@progress/kendo-themes-html 14.0.0-dev.5 → 14.0.0-dev.7
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/chat/chat-message.js +1 -1
- package/dist/cjs/chat/chat.spec.js +1 -1
- package/dist/cjs/chat/demos/chat.js +1 -1
- package/dist/cjs/chat/templates/chat-empty.js +1 -1
- package/dist/cjs/chat/templates/chat-expandable.js +1 -1
- package/dist/cjs/chat/templates/chat-failed.js +1 -1
- package/dist/cjs/chat/templates/chat-message-skeleton.js +1 -1
- package/dist/cjs/chat/templates/chat-message-toolbar.js +1 -1
- package/dist/cjs/chat/templates/chat-normal.js +1 -1
- package/dist/cjs/chat/templates/chat-pinned.js +1 -1
- package/dist/cjs/chat/templates/chat-stop-response.js +1 -1
- package/dist/cjs/chat/templates/chat-textarea-file.js +1 -1
- package/dist/cjs/chat/templates/chat-typing.js +1 -1
- package/dist/cjs/chat/templates/chat-upload.js +1 -1
- package/dist/cjs/editor/demos/editor.js +1 -1
- package/dist/cjs/editor/templates/editor-normal.js +1 -1
- package/dist/cjs/editor/templates/editor-resizable.js +1 -1
- package/dist/cjs/editor/templates/editor-responsive-toolbar.js +1 -1
- package/dist/cjs/imageeditor/templates/imageeditor-crop.js +1 -1
- package/dist/cjs/imageeditor/templates/imageeditor-resize.js +1 -1
- package/dist/cjs/index.js +8 -8
- package/dist/cjs/prompt/demos/prompt.js +1 -1
- package/dist/cjs/prompt/templates/prompt-inline-input-only.js +1 -1
- package/dist/cjs/prompt/templates/prompt-inline.js +1 -1
- package/dist/cjs/prompt/templates/prompt-more-actions.js +1 -1
- package/dist/cjs/prompt/templates/prompt-normal.js +1 -1
- package/dist/cjs/prompt/templates/prompt-output.js +1 -1
- package/dist/cjs/prompt/templates/prompt-popup.js +1 -1
- package/dist/cjs/prompt/templates/prompt-settings.js +1 -1
- package/dist/cjs/prompt/templates/prompt-suggestions.js +1 -1
- package/dist/cjs/prompt-box/prompt-box.spec.js +1 -1
- package/dist/cjs/prompt-box/templates/prompt-box-auto-expanded.js +1 -1
- package/dist/cjs/prompt-box/templates/prompt-box-auto.js +1 -1
- package/dist/cjs/prompt-box/templates/prompt-box-multi.js +1 -1
- package/dist/cjs/prompt-box/templates/prompt-box-single.js +1 -1
- package/dist/cjs/prompt-box/templates/prompt-box-stop-response.js +1 -1
- package/dist/cjs/rating/demos/rating.js +1 -1
- package/dist/cjs/rating/rating-item.js +1 -1
- package/dist/cjs/rating/rating.spec.js +1 -1
- package/dist/cjs/rating/templates/rating-disabled.js +1 -1
- package/dist/cjs/rating/templates/rating-normal.js +1 -1
- package/dist/cjs/rating/templates/rating-readonly.js +1 -1
- package/dist/cjs/rating/templates/rating-with-label.js +1 -1
- package/dist/cjs/smart-box/smart-box-send-button.js +1 -1
- package/dist/cjs/smart-box/templates/smart-box-disabled-send.js +1 -1
- package/dist/cjs/smart-box/templates/smart-box-normal.js +1 -1
- package/dist/cjs/smart-box/templates/smart-box-opened-focused.js +1 -1
- package/dist/cjs/smart-box/templates/smart-box-processing.js +1 -1
- package/dist/cjs/speech-to-text-button/demos/speech-to-text-button.js +1 -1
- package/dist/cjs/speech-to-text-button/speech-to-text-button.spec.js +1 -1
- package/dist/cjs/speech-to-text-button/templates/speech-to-text-button-listening.js +1 -1
- package/dist/cjs/speech-to-text-button/templates/speech-to-text-button-normal.js +1 -1
- package/dist/cjs/spreadsheet/demos/spreadsheet.js +1 -1
- package/dist/cjs/spreadsheet/spreadsheet-header.js +1 -1
- package/dist/cjs/spreadsheet/spreadsheet-view.js +1 -1
- package/dist/cjs/spreadsheet/templates/spreadsheet-formula-open.js +1 -1
- package/dist/cjs/spreadsheet/templates/spreadsheet-normal.js +1 -1
- package/dist/esm/chat/chat-message.mjs +1 -1
- package/dist/esm/chat/chat.spec.mjs +1 -1
- package/dist/esm/chat/demos/chat.mjs +1 -1
- package/dist/esm/chat/templates/chat-empty.mjs +1 -1
- package/dist/esm/chat/templates/chat-expandable.mjs +1 -1
- package/dist/esm/chat/templates/chat-failed.mjs +1 -1
- package/dist/esm/chat/templates/chat-message-skeleton.mjs +1 -1
- package/dist/esm/chat/templates/chat-message-toolbar.mjs +1 -1
- package/dist/esm/chat/templates/chat-normal.mjs +1 -1
- package/dist/esm/chat/templates/chat-pinned.mjs +1 -1
- package/dist/esm/chat/templates/chat-stop-response.mjs +1 -1
- package/dist/esm/chat/templates/chat-textarea-file.mjs +1 -1
- package/dist/esm/chat/templates/chat-typing.mjs +1 -1
- package/dist/esm/chat/templates/chat-upload.mjs +1 -1
- package/dist/esm/editor/demos/editor.mjs +1 -1
- package/dist/esm/editor/templates/editor-normal.mjs +1 -1
- package/dist/esm/editor/templates/editor-resizable.mjs +1 -1
- package/dist/esm/editor/templates/editor-responsive-toolbar.mjs +1 -1
- package/dist/esm/imageeditor/templates/imageeditor-crop.mjs +1 -1
- package/dist/esm/imageeditor/templates/imageeditor-resize.mjs +1 -1
- package/dist/esm/index.mjs +8 -8
- package/dist/esm/prompt/demos/prompt.mjs +1 -1
- package/dist/esm/prompt/templates/prompt-inline-input-only.mjs +1 -1
- package/dist/esm/prompt/templates/prompt-inline.mjs +1 -1
- package/dist/esm/prompt/templates/prompt-more-actions.mjs +1 -1
- package/dist/esm/prompt/templates/prompt-normal.mjs +1 -1
- package/dist/esm/prompt/templates/prompt-output.mjs +1 -1
- package/dist/esm/prompt/templates/prompt-popup.mjs +1 -1
- package/dist/esm/prompt/templates/prompt-settings.mjs +1 -1
- package/dist/esm/prompt/templates/prompt-suggestions.mjs +1 -1
- package/dist/esm/prompt-box/prompt-box.spec.mjs +1 -1
- package/dist/esm/prompt-box/templates/prompt-box-auto-expanded.mjs +1 -1
- package/dist/esm/prompt-box/templates/prompt-box-auto.mjs +1 -1
- package/dist/esm/prompt-box/templates/prompt-box-multi.mjs +1 -1
- package/dist/esm/prompt-box/templates/prompt-box-single.mjs +1 -1
- package/dist/esm/prompt-box/templates/prompt-box-stop-response.mjs +1 -1
- package/dist/esm/rating/demos/rating.mjs +1 -1
- package/dist/esm/rating/rating-item.mjs +1 -1
- package/dist/esm/rating/rating.spec.mjs +1 -1
- package/dist/esm/rating/templates/rating-disabled.mjs +1 -1
- package/dist/esm/rating/templates/rating-normal.mjs +1 -1
- package/dist/esm/rating/templates/rating-readonly.mjs +1 -1
- package/dist/esm/rating/templates/rating-with-label.mjs +1 -1
- package/dist/esm/smart-box/smart-box-send-button.mjs +1 -1
- package/dist/esm/smart-box/templates/smart-box-disabled-send.mjs +1 -1
- package/dist/esm/smart-box/templates/smart-box-normal.mjs +1 -1
- package/dist/esm/smart-box/templates/smart-box-opened-focused.mjs +1 -1
- package/dist/esm/smart-box/templates/smart-box-processing.mjs +1 -1
- package/dist/esm/speech-to-text-button/demos/speech-to-text-button.mjs +1 -1
- package/dist/esm/speech-to-text-button/speech-to-text-button.spec.mjs +1 -1
- package/dist/esm/speech-to-text-button/templates/speech-to-text-button-listening.mjs +1 -1
- package/dist/esm/speech-to-text-button/templates/speech-to-text-button-normal.mjs +1 -1
- package/dist/esm/spreadsheet/demos/spreadsheet.mjs +1 -1
- package/dist/esm/spreadsheet/spreadsheet-header.mjs +1 -1
- package/dist/esm/spreadsheet/spreadsheet-view.mjs +1 -1
- package/dist/esm/spreadsheet/templates/spreadsheet-formula-open.mjs +1 -1
- package/dist/esm/spreadsheet/templates/spreadsheet-normal.mjs +1 -1
- package/package.json +3 -3
- package/src/_preview/tests/preview-components.tsx +2 -2
- package/src/_preview/tests/preview-elevations.tsx +3 -3
- package/src/chat/chat-message.tsx +3 -3
- package/src/chat/chat.spec.tsx +2 -2
- package/src/chat/tests/chat-files-layout.tsx +8 -8
- package/src/chat/tests/chat-files-pin.tsx +2 -2
- package/src/chat/tests/chat-files.tsx +6 -6
- package/src/chat/tests/chat-message-toolbar.tsx +2 -2
- package/src/drawer/tests/drawer-item-states.tsx +3 -3
- package/src/editor/demos/editor.tsx +1 -1
- package/src/editor/templates/editor-normal.tsx +1 -1
- package/src/editor/templates/editor-resizable.tsx +1 -1
- package/src/editor/templates/editor-responsive-toolbar.tsx +1 -1
- package/src/editor/tests/editor-table-wizard.tsx +1 -1
- package/src/editor/tests/editor.tsx +2 -2
- package/src/grid/tests/grid-assistant-window.tsx +4 -4
- package/src/grid/tests/grid-row-pinning-adaptive.tsx +1 -1
- package/src/grid/tests/grid-semantic-search-popup.tsx +10 -10
- package/src/grid/tests/grid-toolbar.tsx +2 -2
- package/src/imageeditor/templates/imageeditor-crop.tsx +1 -1
- package/src/imageeditor/templates/imageeditor-resize.tsx +1 -1
- package/src/prompt/demos/prompt.tsx +4 -4
- package/src/prompt/templates/prompt-inline.tsx +1 -1
- package/src/prompt/templates/prompt-output.tsx +4 -4
- package/src/prompt/tests/prompt-inline-response-generation.tsx +2 -2
- package/src/prompt-box/prompt-box.spec.tsx +1 -1
- package/src/prompt-box/tests/prompt-box-affixes.tsx +8 -8
- package/src/prompt-box/tests/prompt-box-files.tsx +2 -2
- package/src/rating/rating-item.tsx +20 -5
- package/src/smart-box/smart-box-send-button.tsx +1 -1
- package/src/smart-box/templates/smart-box-disabled-send.tsx +1 -1
- package/src/smart-box/templates/smart-box-normal.tsx +1 -1
- package/src/smart-box/templates/smart-box-opened-focused.tsx +1 -1
- package/src/smart-box/templates/smart-box-processing.tsx +1 -1
- package/src/speech-to-text-button/speech-to-text-button.spec.tsx +2 -2
- package/src/spreadsheet/spreadsheet-header.tsx +1 -1
- package/src/spreadsheet/tests/spreadsheet-tools.tsx +1 -1
- package/src/toolbar/tests/toolbar-fill-modes.tsx +2 -2
|
@@ -1 +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((
|
|
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 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"}),E=(o,e)=>{let{valid:r,invalid:a,hover:s,focus:c,checked:i,active:p,selected:d,disabled:f,indeterminate:$,loading:N,empty:K,readonly:U,highlighted:q,...S}=e;return l({"k-valid":r,"k-invalid":a,"k-hover":s,"k-focus":c,"k-checked":i,"k-active":p,"k-selected":d,"k-disabled":f,"k-indeterminate":$&&!i,"k-loading":N,"k-empty":K,"k-readonly":U,"k-highlighted":q},Object.keys(S).reduce((z,g)=>(g.startsWith("k-")?z[g]=S[g]:z[`k-${g}`]=S[g],z),{}))};var n={undefined:void 0,xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"};var t={undefined:void 0,inherit:"inherit",base:"base",primary:"primary",secondary:"secondary",tertiary:"tertiary",info:"info",success:"success",warning:"warning",error:"error",inverse:"inverse"},y={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 X,jsx as _}from"react/jsx-runtime";var M="k-font-icon",W=[],J={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]},Q={},v=o=>{let{size:e,themeColor:r,icon:a,rotate:s,flip:c,...i}=o;return a?_("span",{...i,className:l(o.className,M,h(M,{size:e}),{[`k-i-${a}`]:a,[`k-color-${r}`]:r,[`k-rotate-${s}`]:s,"k-flip-h":c==="h"||c==="both","k-flip-v":c==="v"||c==="both"}),"aria-hidden":"true"}):_(X,{})};v.states=W;v.options=J;v.className=M;v.defaultOptions=Q;var B=v;import{Fragment as ee,jsx as C}from"react/jsx-runtime";var O="k-svg-icon",Y=[],Z={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]},R={viewBox:"0 0 24 24"},m=o=>{let{size:e,themeColor:r,rotate:a,flip:s,viewBox:c=R.viewBox,icon:i,...p}=o;if(!i)return C(ee,{});if(i==="none")return C("span",{...p,className:l(o.className,O,h("k-icon",{size:e}),"k-none"),"aria-hidden":"true"});let d=typeof i=="object"&&i.name&&i.name;return C("span",{...p,className:l(o.className,O,h("k-icon",{size:e}),{[`k-svg-i-${d}`]:d,[`k-color-${r}`]:r,[`k-rotate-${a}`]:a,"k-flip-h":s==="h"||s==="both","k-flip-v":s==="v"||s==="both"}),"aria-hidden":"true",children:C("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof i=="object"?i.viewBox:c,dangerouslySetInnerHTML:typeof i=="object"?{__html:i.content}:void 0,children:i?void 0:o.children})})};m.states=Y;m.options=Z;m.className=O;m.defaultOptions=R;var T=m;import*as w from"@progress/kendo-svg-icons";var H="icon",F="icons";import{useContext as oe}from"react";import{createContext as te}from"react";var P=te({iconsType:"svg"});import{Fragment as G,jsx as k}from"react/jsx-runtime";var I="k-icon",ne=o=>o.replace(/([-_][a-z0-9])/gi,e=>e.toUpperCase().replace("-","").replace("_","")),ie=[],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]},A={viewBox:"0 0 24 24",type:"svg"},x=o=>{let{iconsType:e}=oe(P),{size:r,themeColor:a,icon:s,type:c=e||A.type,rotate:i,flip:p,viewBox:d=A.viewBox,...f}=o;if(!s)return k(G,{});if((e||c)==="svg"){if(s==="none")return k(T,{...f,className:l(o.className,I),icon:s,size:r});let N=w[s]?s:ne(`${s}-icon`);return w[N]?k(T,{...f,className:l(o.className,I),icon:w[N],size:r,themeColor:a,rotate:i,flip:p,viewBox:d}):k(G,{})}return k(B,{...f,className:l(o.className,I),icon:s,size:r,themeColor:a,rotate:i,flip:p})};x.states=ie;x.options=se;x.defaultOptions=A;x.className=I;x.moduleName=H;x.folderName=F;x.ariaSpec={selector:".k-icon, .k-svg-icon",rules:[{selector:".k-icon, .k-svg-icon",attribute:"aria-hidden=true",usage:"Hides the icon element and all its children from assistive technologies."}]};import{Fragment as le,jsx as u,jsxs as ce}from"react/jsx-runtime";var L="k-rating-item",re=[y.hover,y.focus,y.selected,y.disabled],ae={},D={iconType:"solid"},V={name:"star",content:'<path d="M256 391.5 117.2 480 154 314.1 32 202.4 192.9 188 256 32l63.1 156L480 202.4 358 314.1 394.8 480z"></path>',viewBox:"0 0 512 512"},j={name:"star-outline",content:'<path d="M480 202.4 319.1 188 256 32l-63.1 156L32 202.4l122 111.7L117.2 480 256 391.5 394.8 480 358 314.1zM256 353.6l-90.8 57.9 24-108.5-82.1-75.2 108.1-9.7L256 117.3l40.8 100.8 108.1 9.7-82.1 75.2 24.1 108.5z"></path>',viewBox:"0 0 512 512"},b=o=>{let{iconType:e=D.iconType,hover:r,focus:a,selected:s,disabled:c,dir:i,...p}=o,d;switch(e){case"split":d=ce(le,{children:[u("span",{className:"k-rating-precision-complement",children:u(m,{className:"k-icon",icon:j,size:"xlarge"})}),u("span",{className:"k-rating-precision-part",style:{clipPath:`inset(${i==="rtl"?"0px 0px 0px 50%":"0px 50% 0px 0px"})`},children:u(m,{className:"k-icon",icon:V,size:"xlarge"})}),u("span",{style:{width:"24px",height:"24px",display:"block"}})]});break;case"outline":d=u(m,{className:"k-icon",icon:j,size:"xlarge"});break;case"solid":d=u(m,{className:"k-icon",icon:V,size:"xlarge"});break;default:return}return u("span",{...p,className:l(L,E(L,{hover:r,focus:a,selected:s,disabled:c})),dir:i,children:d})};b.states=re;b.options=ae;b.className=L;b.defaultOptions=D;var je=b;export{L as RATINGITEM_CLASSNAME,b as RatingItem,je as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var l=(...t)=>t.filter(e=>e!==!0&&!!e).map(e=>Array.isArray(e)?l(...e):typeof e=="object"?Object.keys(e).map((r
|
|
1
|
+
var l=(...t)=>t.filter(e=>e!==!0&&!!e).map(e=>Array.isArray(e)?l(...e):typeof e=="object"?Object.keys(e).map((s,r)=>e[r]||e[s]&&s||null).filter(s=>s!==null).join(" "):e).filter(e=>!!e).join(" ");var N=(t,e)=>l({[`${t}-xs`]:e.size==="xsmall",[`${t}-sm`]:e.size==="small",[`${t}-md`]:e.size==="medium",[`${t}-lg`]:e.size==="large",[`${t}-xl`]:e.size==="xlarge",[`${t}-xxl`]:e.size==="xxlarge",[`${t}-xxxl`]:e.size==="xxxlarge"},{[`${t}-${e.fillMode}`]:e.fillMode},{[`${t}-${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"}),M=(t,e)=>{let{valid:s,invalid:r,hover:i,focus:c,checked:a,active:d,selected:m,disabled:p,indeterminate:T,loading:y,empty:z,readonly:h,highlighted:ee,...L}=e;return l({"k-valid":s,"k-invalid":r,"k-hover":i,"k-focus":c,"k-checked":a,"k-active":d,"k-selected":m,"k-disabled":p,"k-indeterminate":T&&!a,"k-loading":y,"k-empty":z,"k-readonly":h,"k-highlighted":ee},Object.keys(L).reduce((w,k)=>(k.startsWith("k-")?w[k]=L[k]:w[`k-${k}`]=L[k],w),{}))};var o={undefined:void 0,xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"};var n={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"};import{Fragment as ae,jsx as K}from"react/jsx-runtime";var E="k-font-icon",te=[],ne={size:[o.undefined,o.xsmall,o.small,o.medium,o.large,o.xlarge,o.xxlarge,o.xxxlarge],themeColor:[n.undefined,n.base,n.primary,n.secondary,n.tertiary,n.success,n.warning,n.error,n.info]},oe={},S=t=>{let{size:e,themeColor:s,icon:r,rotate:i,flip:c,...a}=t;return r?K("span",{...a,className:l(t.className,E,N(E,{size:e}),{[`k-i-${r}`]:r,[`k-color-${s}`]:s,[`k-rotate-${i}`]:i,"k-flip-h":c==="h"||c==="both","k-flip-v":c==="v"||c==="both"}),"aria-hidden":"true"}):K(ae,{})};S.states=te;S.options=ne;S.className=E;S.defaultOptions=oe;var V=S;import{Fragment as re,jsx as R}from"react/jsx-runtime";var _="k-svg-icon",ie=[],se={size:[o.undefined,o.xsmall,o.small,o.medium,o.large,o.xlarge,o.xxlarge,o.xxxlarge],themeColor:[n.undefined,n.base,n.primary,n.secondary,n.tertiary,n.success,n.warning,n.error,n.info]},U={viewBox:"0 0 24 24"},u=t=>{let{size:e,themeColor:s,rotate:r,flip:i,viewBox:c=U.viewBox,icon:a,...d}=t;if(!a)return R(re,{});if(a==="none")return R("span",{...d,className:l(t.className,_,N("k-icon",{size:e}),"k-none"),"aria-hidden":"true"});let m=typeof a=="object"&&a.name&&a.name;return R("span",{...d,className:l(t.className,_,N("k-icon",{size:e}),{[`k-svg-i-${m}`]:m,[`k-color-${s}`]:s,[`k-rotate-${r}`]:r,"k-flip-h":i==="h"||i==="both","k-flip-v":i==="v"||i==="both"}),"aria-hidden":"true",children:R("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof a=="object"?a.viewBox:c,dangerouslySetInnerHTML:typeof a=="object"?{__html:a.content}:void 0,children:a?void 0:t.children})})};u.states=ie;u.options=se;u.className=_;u.defaultOptions=U;var $=u;import*as B from"@progress/kendo-svg-icons";var j="icon",q="icons";import{useContext as ce}from"react";import{createContext as le}from"react";var J=le({iconsType:"svg"});import{Fragment as W,jsx as C}from"react/jsx-runtime";var A="k-icon",de=t=>t.replace(/([-_][a-z0-9])/gi,e=>e.toUpperCase().replace("-","").replace("_","")),me=[],pe={size:[o.undefined,o.xsmall,o.small,o.medium,o.large,o.xlarge,o.xxlarge,o.xxxlarge],themeColor:[n.undefined,n.base,n.primary,n.secondary,n.tertiary,n.success,n.warning,n.error,n.info]},H={viewBox:"0 0 24 24",type:"svg"},b=t=>{let{iconsType:e}=ce(J),{size:s,themeColor:r,icon:i,type:c=e||H.type,rotate:a,flip:d,viewBox:m=H.viewBox,...p}=t;if(!i)return C(W,{});if((e||c)==="svg"){if(i==="none")return C($,{...p,className:l(t.className,A),icon:i,size:s});let y=B[i]?i:de(`${i}-icon`);return B[y]?C($,{...p,className:l(t.className,A),icon:B[y],size:s,themeColor:r,rotate:a,flip:d,viewBox:m}):C(W,{})}return C(V,{...p,className:l(t.className,A),icon:i,size:s,themeColor:r,rotate:a,flip:d})};b.states=me;b.options=pe;b.defaultOptions=H;b.className=A;b.moduleName=j;b.folderName=q;b.ariaSpec={selector:".k-icon, .k-svg-icon",rules:[{selector:".k-icon, .k-svg-icon",attribute:"aria-hidden=true",usage:"Hides the icon element and all its children from assistive technologies."}]};import{Fragment as ge,jsx as g,jsxs as xe}from"react/jsx-runtime";var P="k-rating-item",ue=[f.hover,f.focus,f.selected,f.disabled],fe={},Y={iconType:"solid"},X={name:"star",content:'<path d="M256 391.5 117.2 480 154 314.1 32 202.4 192.9 188 256 32l63.1 156L480 202.4 358 314.1 394.8 480z"></path>',viewBox:"0 0 512 512"},Q={name:"star-outline",content:'<path d="M480 202.4 319.1 188 256 32l-63.1 156L32 202.4l122 111.7L117.2 480 256 391.5 394.8 480 358 314.1zM256 353.6l-90.8 57.9 24-108.5-82.1-75.2 108.1-9.7L256 117.3l40.8 100.8 108.1 9.7-82.1 75.2 24.1 108.5z"></path>',viewBox:"0 0 512 512"},I=t=>{let{iconType:e=Y.iconType,hover:s,focus:r,selected:i,disabled:c,dir:a,...d}=t,m;switch(e){case"split":m=xe(ge,{children:[g("span",{className:"k-rating-precision-complement",children:g(u,{className:"k-icon",icon:Q,size:"xlarge"})}),g("span",{className:"k-rating-precision-part",style:{clipPath:`inset(${a==="rtl"?"0px 0px 0px 50%":"0px 50% 0px 0px"})`},children:g(u,{className:"k-icon",icon:X,size:"xlarge"})}),g("span",{style:{width:"24px",height:"24px",display:"block"}})]});break;case"outline":m=g(u,{className:"k-icon",icon:Q,size:"xlarge"});break;case"solid":m=g(u,{className:"k-icon",icon:X,size:"xlarge"});break;default:return}return g("span",{...d,className:l(P,M(P,{hover:s,focus:r,selected:i,disabled:c})),dir:a,children:m})};I.states=ue;I.options=fe;I.className=P;I.defaultOptions=Y;var O=I;var F="rating",Z=F;import{jsx as v,jsxs as ye}from"react/jsx-runtime";var G="k-rating",he=[f.disabled,f.readonly],be={},D={max:5,min:0},x=t=>{let{value:e,max:s=D.max,min:r=D.min,disabled:i,readonly:c,label:a,dir:d,...m}=t,p=[],T=Math.floor(e),y=e%1===.5,z=s-Math.ceil(e);for(let h=0;h<T;h++)p.push(v(O,{dir:d,iconType:"solid",selected:!0}));y&&p.push(v(O,{dir:d,iconType:"split",selected:!0}));for(let h=0;h<z;h++)p.push(v(O,{dir:d,iconType:"outline"}));return ye("span",{...m,className:l(t.className,G,M(G,{disabled:i,readonly:c})),dir:d,role:"slider",tabIndex:i?void 0:0,"aria-valuenow":e,"aria-valuemin":r,"aria-valuemax":s,"aria-disabled":i?"true":void 0,"aria-readonly":c?"true":void 0,children:[v("span",{className:"k-rating-container",children:p}),a&&v("span",{className:"k-rating-label",children:v("span",{children:a})})]})};x.states=he;x.options=be;x.className=G;x.defaultOptions=D;x.moduleName=F;x.folderName=Z;x.ariaSpec={selector:".k-rating",rules:[{selector:".k-rating",attribute:"role=slider",usage:"Announces the slider role of the Rating element."},{selector:".k-rating",attribute:"aria-label or aria-labelledby or title",usage:"The Rating needs an accessible name to be assigned to it."},{selector:".k-rating",attribute:"aria-valuenow",usage:"Specifies the currently selected value in the Rating."},{selector:".k-rating",attribute:"aria-valuemin",usage:"Specifies the minimum available value in the Rating."},{selector:".k-rating",attribute:"aria-valuemax",usage:"Specifies the maximum available value in the Rating."},{selector:".k-rating:not(.k-disabled)",attribute:"tabindex=0",usage:"The element must be focusable. Disabled ratings are removed from tab order."},{selector:".k-rating.k-disabled",attribute:"aria-disabled=true",usage:"Rendered only when the Rating is disabled."},{selector:".k-rating.k-readonly",attribute:"aria-readonly=true (when readonly)",usage:"Rendered only when the Rating is readonly. Readonly ratings remain focusable but their value cannot be changed."}]};var it=x;export{G as RATING_CLASSNAME,x as Rating,it as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var c=(...t)=>t.filter(e=>e!==!0&&!!e).map(e=>Array.isArray(e)?c(...e):typeof e=="object"?Object.keys(e).map((n,l)=>e[l]||e[n]&&n||null).filter(n=>n!==null).join(" "):e).filter(e=>!!e).join(" ");var
|
|
1
|
+
var c=(...t)=>t.filter(e=>e!==!0&&!!e).map(e=>Array.isArray(e)?c(...e):typeof e=="object"?Object.keys(e).map((n,l)=>e[l]||e[n]&&n||null).filter(n=>n!==null).join(" "):e).filter(e=>!!e).join(" ");var R=(t,e)=>c({[`${t}-xs`]:e.size==="xsmall",[`${t}-sm`]:e.size==="small",[`${t}-md`]:e.size==="medium",[`${t}-lg`]:e.size==="large",[`${t}-xl`]:e.size==="xlarge",[`${t}-xxl`]:e.size==="xxlarge",[`${t}-xxxl`]:e.size==="xxxlarge"},{[`${t}-${e.fillMode}`]:e.fillMode},{[`${t}-${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"}),M=(t,e)=>{let{valid:n,invalid:l,hover:r,focus:d,checked:i,active:m,selected:p,disabled:u,indeterminate:T,loading:y,empty:L,readonly:h,highlighted:ae,...w}=e;return c({"k-valid":n,"k-invalid":l,"k-hover":r,"k-focus":d,"k-checked":i,"k-active":m,"k-selected":p,"k-disabled":u,"k-indeterminate":T&&!i,"k-loading":y,"k-empty":L,"k-readonly":h,"k-highlighted":ae},Object.keys(w).reduce((E,N)=>(N.startsWith("k-")?E[N]=w[N]:E[`k-${N}`]=w[N],E),{}))};var a={undefined:void 0,xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"};var o={undefined:void 0,inherit:"inherit",base:"base",primary:"primary",secondary:"secondary",tertiary:"tertiary",info:"info",success:"success",warning:"warning",error:"error",inverse:"inverse"},g={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 V}from"react/jsx-runtime";var _="k-font-icon",ie=[],re={size:[a.undefined,a.xsmall,a.small,a.medium,a.large,a.xlarge,a.xxlarge,a.xxxlarge],themeColor:[o.undefined,o.base,o.primary,o.secondary,o.tertiary,o.success,o.warning,o.error,o.info]},se={},S=t=>{let{size:e,themeColor:n,icon:l,rotate:r,flip:d,...i}=t;return l?V("span",{...i,className:c(t.className,_,R(_,{size:e}),{[`k-i-${l}`]:l,[`k-color-${n}`]:n,[`k-rotate-${r}`]:r,"k-flip-h":d==="h"||d==="both","k-flip-v":d==="v"||d==="both"}),"aria-hidden":"true"}):V(le,{})};S.states=ie;S.options=re;S.className=_;S.defaultOptions=se;var U=S;import{Fragment as me,jsx as O}from"react/jsx-runtime";var $="k-svg-icon",ce=[],de={size:[a.undefined,a.xsmall,a.small,a.medium,a.large,a.xlarge,a.xxlarge,a.xxxlarge],themeColor:[o.undefined,o.base,o.primary,o.secondary,o.tertiary,o.success,o.warning,o.error,o.info]},W={viewBox:"0 0 24 24"},f=t=>{let{size:e,themeColor:n,rotate:l,flip:r,viewBox:d=W.viewBox,icon:i,...m}=t;if(!i)return O(me,{});if(i==="none")return O("span",{...m,className:c(t.className,$,R("k-icon",{size:e}),"k-none"),"aria-hidden":"true"});let p=typeof i=="object"&&i.name&&i.name;return O("span",{...m,className:c(t.className,$,R("k-icon",{size:e}),{[`k-svg-i-${p}`]:p,[`k-color-${n}`]:n,[`k-rotate-${l}`]:l,"k-flip-h":r==="h"||r==="both","k-flip-v":r==="v"||r==="both"}),"aria-hidden":"true",children:O("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof i=="object"?i.viewBox:d,dangerouslySetInnerHTML:typeof i=="object"?{__html:i.content}:void 0,children:i?void 0:t.children})})};f.states=ce;f.options=de;f.className=$;f.defaultOptions=W;var B=f;import*as H from"@progress/kendo-svg-icons";var q="icon",J="icons";import{useContext as ue}from"react";import{createContext as pe}from"react";var X=pe({iconsType:"svg"});import{Fragment as Q,jsx as C}from"react/jsx-runtime";var A="k-icon",fe=t=>t.replace(/([-_][a-z0-9])/gi,e=>e.toUpperCase().replace("-","").replace("_","")),ge=[],xe={size:[a.undefined,a.xsmall,a.small,a.medium,a.large,a.xlarge,a.xxlarge,a.xxxlarge],themeColor:[o.undefined,o.base,o.primary,o.secondary,o.tertiary,o.success,o.warning,o.error,o.info]},P={viewBox:"0 0 24 24",type:"svg"},b=t=>{let{iconsType:e}=ue(X),{size:n,themeColor:l,icon:r,type:d=e||P.type,rotate:i,flip:m,viewBox:p=P.viewBox,...u}=t;if(!r)return C(Q,{});if((e||d)==="svg"){if(r==="none")return C(B,{...u,className:c(t.className,A),icon:r,size:n});let y=H[r]?r:fe(`${r}-icon`);return H[y]?C(B,{...u,className:c(t.className,A),icon:H[y],size:n,themeColor:l,rotate:i,flip:m,viewBox:p}):C(Q,{})}return C(U,{...u,className:c(t.className,A),icon:r,size:n,themeColor:l,rotate:i,flip:m})};b.states=ge;b.options=xe;b.defaultOptions=P;b.className=A;b.moduleName=q;b.folderName=J;b.ariaSpec={selector:".k-icon, .k-svg-icon",rules:[{selector:".k-icon, .k-svg-icon",attribute:"aria-hidden=true",usage:"Hides the icon element and all its children from assistive technologies."}]};import{Fragment as ye,jsx as x,jsxs as ve}from"react/jsx-runtime";var D="k-rating-item",he=[g.hover,g.focus,g.selected,g.disabled],be={},j={iconType:"solid"},Y={name:"star",content:'<path d="M256 391.5 117.2 480 154 314.1 32 202.4 192.9 188 256 32l63.1 156L480 202.4 358 314.1 394.8 480z"></path>',viewBox:"0 0 512 512"},Z={name:"star-outline",content:'<path d="M480 202.4 319.1 188 256 32l-63.1 156L32 202.4l122 111.7L117.2 480 256 391.5 394.8 480 358 314.1zM256 353.6l-90.8 57.9 24-108.5-82.1-75.2 108.1-9.7L256 117.3l40.8 100.8 108.1 9.7-82.1 75.2 24.1 108.5z"></path>',viewBox:"0 0 512 512"},I=t=>{let{iconType:e=j.iconType,hover:n,focus:l,selected:r,disabled:d,dir:i,...m}=t,p;switch(e){case"split":p=ve(ye,{children:[x("span",{className:"k-rating-precision-complement",children:x(f,{className:"k-icon",icon:Z,size:"xlarge"})}),x("span",{className:"k-rating-precision-part",style:{clipPath:`inset(${i==="rtl"?"0px 0px 0px 50%":"0px 50% 0px 0px"})`},children:x(f,{className:"k-icon",icon:Y,size:"xlarge"})}),x("span",{style:{width:"24px",height:"24px",display:"block"}})]});break;case"outline":p=x(f,{className:"k-icon",icon:Z,size:"xlarge"});break;case"solid":p=x(f,{className:"k-icon",icon:Y,size:"xlarge"});break;default:return}return x("span",{...m,className:c(D,M(D,{hover:n,focus:l,selected:r,disabled:d})),dir:i,children:p})};I.states=he;I.options=be;I.className=D;I.defaultOptions=j;var z=I;var F="rating",ee=F;import{jsx as v,jsxs as Re}from"react/jsx-runtime";var G="k-rating",ke=[g.disabled,g.readonly],Ne={},K={max:5,min:0},s=t=>{let{value:e,max:n=K.max,min:l=K.min,disabled:r,readonly:d,label:i,dir:m,...p}=t,u=[],T=Math.floor(e),y=e%1===.5,L=n-Math.ceil(e);for(let h=0;h<T;h++)u.push(v(z,{dir:m,iconType:"solid",selected:!0}));y&&u.push(v(z,{dir:m,iconType:"split",selected:!0}));for(let h=0;h<L;h++)u.push(v(z,{dir:m,iconType:"outline"}));return Re("span",{...p,className:c(t.className,G,M(G,{disabled:r,readonly:d})),dir:m,role:"slider",tabIndex:r?void 0:0,"aria-valuenow":e,"aria-valuemin":l,"aria-valuemax":n,"aria-disabled":r?"true":void 0,"aria-readonly":d?"true":void 0,children:[v("span",{className:"k-rating-container",children:u}),i&&v("span",{className:"k-rating-label",children:v("span",{children:i})})]})};s.states=ke;s.options=Ne;s.className=G;s.defaultOptions=K;s.moduleName=F;s.folderName=ee;s.ariaSpec={selector:".k-rating",rules:[{selector:".k-rating",attribute:"role=slider",usage:"Announces the slider role of the Rating element."},{selector:".k-rating",attribute:"aria-label or aria-labelledby or title",usage:"The Rating needs an accessible name to be assigned to it."},{selector:".k-rating",attribute:"aria-valuenow",usage:"Specifies the currently selected value in the Rating."},{selector:".k-rating",attribute:"aria-valuemin",usage:"Specifies the minimum available value in the Rating."},{selector:".k-rating",attribute:"aria-valuemax",usage:"Specifies the maximum available value in the Rating."},{selector:".k-rating:not(.k-disabled)",attribute:"tabindex=0",usage:"The element must be focusable. Disabled ratings are removed from tab order."},{selector:".k-rating.k-disabled",attribute:"aria-disabled=true",usage:"Rendered only when the Rating is disabled."},{selector:".k-rating.k-readonly",attribute:"aria-readonly=true (when readonly)",usage:"Rendered only when the Rating is readonly. Readonly ratings remain focusable but their value cannot be changed."}]};import{jsx as Se}from"react/jsx-runtime";var te=({value:t=2.5,...e})=>Se(s,{value:t,...e,"aria-label":e["aria-label"]||"Rating"});import{jsx as Ce}from"react/jsx-runtime";var oe=({value:t=2.5,max:e=5,...n})=>Ce(s,{label:`${t} / ${e}`,value:t,max:e,...n,"aria-label":n["aria-label"]||"Rating"});import{jsx as Tt}from"react/jsx-runtime";import{jsx as ne}from"react/jsx-runtime";var Ie=s.options,Te=s.states,Me={...s.defaultOptions,variant:"normal"},Oe=[{name:"normal",title:"Normal"},{name:"label",title:"With label"}],Ae=[],k=t=>{let{variant:e,...n}=t;return e==="label"?ne(oe,{...n}):ne(te,{...n})};k.options=Ie;k.states=Te;k.variants=Oe;k.defaultOptions=Me;k.modifiers=Ae;k.className=s.className;import{jsx as ze}from"react/jsx-runtime";var Vt=({value:t=2.5,...e})=>ze(s,{disabled:!0,value:t,"aria-label":e["aria-label"]||"Disabled rating",...e});export{Vt as RatingDisabled};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var c=(...t)=>t.filter(e=>e!==!0&&!!e).map(e=>Array.isArray(e)?c(...e):typeof e=="object"?Object.keys(e).map((n,l)=>e[l]||e[n]&&n||null).filter(n=>n!==null).join(" "):e).filter(e=>!!e).join(" ");var
|
|
1
|
+
var c=(...t)=>t.filter(e=>e!==!0&&!!e).map(e=>Array.isArray(e)?c(...e):typeof e=="object"?Object.keys(e).map((n,l)=>e[l]||e[n]&&n||null).filter(n=>n!==null).join(" "):e).filter(e=>!!e).join(" ");var R=(t,e)=>c({[`${t}-xs`]:e.size==="xsmall",[`${t}-sm`]:e.size==="small",[`${t}-md`]:e.size==="medium",[`${t}-lg`]:e.size==="large",[`${t}-xl`]:e.size==="xlarge",[`${t}-xxl`]:e.size==="xxlarge",[`${t}-xxxl`]:e.size==="xxxlarge"},{[`${t}-${e.fillMode}`]:e.fillMode},{[`${t}-${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"}),M=(t,e)=>{let{valid:n,invalid:l,hover:r,focus:d,checked:i,active:m,selected:p,disabled:u,indeterminate:T,loading:y,empty:L,readonly:h,highlighted:ae,...w}=e;return c({"k-valid":n,"k-invalid":l,"k-hover":r,"k-focus":d,"k-checked":i,"k-active":m,"k-selected":p,"k-disabled":u,"k-indeterminate":T&&!i,"k-loading":y,"k-empty":L,"k-readonly":h,"k-highlighted":ae},Object.keys(w).reduce((E,N)=>(N.startsWith("k-")?E[N]=w[N]:E[`k-${N}`]=w[N],E),{}))};var a={undefined:void 0,xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"};var o={undefined:void 0,inherit:"inherit",base:"base",primary:"primary",secondary:"secondary",tertiary:"tertiary",info:"info",success:"success",warning:"warning",error:"error",inverse:"inverse"},g={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 V}from"react/jsx-runtime";var _="k-font-icon",ie=[],re={size:[a.undefined,a.xsmall,a.small,a.medium,a.large,a.xlarge,a.xxlarge,a.xxxlarge],themeColor:[o.undefined,o.base,o.primary,o.secondary,o.tertiary,o.success,o.warning,o.error,o.info]},se={},S=t=>{let{size:e,themeColor:n,icon:l,rotate:r,flip:d,...i}=t;return l?V("span",{...i,className:c(t.className,_,R(_,{size:e}),{[`k-i-${l}`]:l,[`k-color-${n}`]:n,[`k-rotate-${r}`]:r,"k-flip-h":d==="h"||d==="both","k-flip-v":d==="v"||d==="both"}),"aria-hidden":"true"}):V(le,{})};S.states=ie;S.options=re;S.className=_;S.defaultOptions=se;var U=S;import{Fragment as me,jsx as O}from"react/jsx-runtime";var $="k-svg-icon",ce=[],de={size:[a.undefined,a.xsmall,a.small,a.medium,a.large,a.xlarge,a.xxlarge,a.xxxlarge],themeColor:[o.undefined,o.base,o.primary,o.secondary,o.tertiary,o.success,o.warning,o.error,o.info]},W={viewBox:"0 0 24 24"},f=t=>{let{size:e,themeColor:n,rotate:l,flip:r,viewBox:d=W.viewBox,icon:i,...m}=t;if(!i)return O(me,{});if(i==="none")return O("span",{...m,className:c(t.className,$,R("k-icon",{size:e}),"k-none"),"aria-hidden":"true"});let p=typeof i=="object"&&i.name&&i.name;return O("span",{...m,className:c(t.className,$,R("k-icon",{size:e}),{[`k-svg-i-${p}`]:p,[`k-color-${n}`]:n,[`k-rotate-${l}`]:l,"k-flip-h":r==="h"||r==="both","k-flip-v":r==="v"||r==="both"}),"aria-hidden":"true",children:O("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof i=="object"?i.viewBox:d,dangerouslySetInnerHTML:typeof i=="object"?{__html:i.content}:void 0,children:i?void 0:t.children})})};f.states=ce;f.options=de;f.className=$;f.defaultOptions=W;var B=f;import*as H from"@progress/kendo-svg-icons";var q="icon",J="icons";import{useContext as ue}from"react";import{createContext as pe}from"react";var X=pe({iconsType:"svg"});import{Fragment as Q,jsx as C}from"react/jsx-runtime";var A="k-icon",fe=t=>t.replace(/([-_][a-z0-9])/gi,e=>e.toUpperCase().replace("-","").replace("_","")),ge=[],xe={size:[a.undefined,a.xsmall,a.small,a.medium,a.large,a.xlarge,a.xxlarge,a.xxxlarge],themeColor:[o.undefined,o.base,o.primary,o.secondary,o.tertiary,o.success,o.warning,o.error,o.info]},P={viewBox:"0 0 24 24",type:"svg"},b=t=>{let{iconsType:e}=ue(X),{size:n,themeColor:l,icon:r,type:d=e||P.type,rotate:i,flip:m,viewBox:p=P.viewBox,...u}=t;if(!r)return C(Q,{});if((e||d)==="svg"){if(r==="none")return C(B,{...u,className:c(t.className,A),icon:r,size:n});let y=H[r]?r:fe(`${r}-icon`);return H[y]?C(B,{...u,className:c(t.className,A),icon:H[y],size:n,themeColor:l,rotate:i,flip:m,viewBox:p}):C(Q,{})}return C(U,{...u,className:c(t.className,A),icon:r,size:n,themeColor:l,rotate:i,flip:m})};b.states=ge;b.options=xe;b.defaultOptions=P;b.className=A;b.moduleName=q;b.folderName=J;b.ariaSpec={selector:".k-icon, .k-svg-icon",rules:[{selector:".k-icon, .k-svg-icon",attribute:"aria-hidden=true",usage:"Hides the icon element and all its children from assistive technologies."}]};import{Fragment as ye,jsx as x,jsxs as ve}from"react/jsx-runtime";var D="k-rating-item",he=[g.hover,g.focus,g.selected,g.disabled],be={},j={iconType:"solid"},Y={name:"star",content:'<path d="M256 391.5 117.2 480 154 314.1 32 202.4 192.9 188 256 32l63.1 156L480 202.4 358 314.1 394.8 480z"></path>',viewBox:"0 0 512 512"},Z={name:"star-outline",content:'<path d="M480 202.4 319.1 188 256 32l-63.1 156L32 202.4l122 111.7L117.2 480 256 391.5 394.8 480 358 314.1zM256 353.6l-90.8 57.9 24-108.5-82.1-75.2 108.1-9.7L256 117.3l40.8 100.8 108.1 9.7-82.1 75.2 24.1 108.5z"></path>',viewBox:"0 0 512 512"},I=t=>{let{iconType:e=j.iconType,hover:n,focus:l,selected:r,disabled:d,dir:i,...m}=t,p;switch(e){case"split":p=ve(ye,{children:[x("span",{className:"k-rating-precision-complement",children:x(f,{className:"k-icon",icon:Z,size:"xlarge"})}),x("span",{className:"k-rating-precision-part",style:{clipPath:`inset(${i==="rtl"?"0px 0px 0px 50%":"0px 50% 0px 0px"})`},children:x(f,{className:"k-icon",icon:Y,size:"xlarge"})}),x("span",{style:{width:"24px",height:"24px",display:"block"}})]});break;case"outline":p=x(f,{className:"k-icon",icon:Z,size:"xlarge"});break;case"solid":p=x(f,{className:"k-icon",icon:Y,size:"xlarge"});break;default:return}return x("span",{...m,className:c(D,M(D,{hover:n,focus:l,selected:r,disabled:d})),dir:i,children:p})};I.states=he;I.options=be;I.className=D;I.defaultOptions=j;var z=I;var F="rating",ee=F;import{jsx as v,jsxs as Re}from"react/jsx-runtime";var G="k-rating",ke=[g.disabled,g.readonly],Ne={},K={max:5,min:0},s=t=>{let{value:e,max:n=K.max,min:l=K.min,disabled:r,readonly:d,label:i,dir:m,...p}=t,u=[],T=Math.floor(e),y=e%1===.5,L=n-Math.ceil(e);for(let h=0;h<T;h++)u.push(v(z,{dir:m,iconType:"solid",selected:!0}));y&&u.push(v(z,{dir:m,iconType:"split",selected:!0}));for(let h=0;h<L;h++)u.push(v(z,{dir:m,iconType:"outline"}));return Re("span",{...p,className:c(t.className,G,M(G,{disabled:r,readonly:d})),dir:m,role:"slider",tabIndex:r?void 0:0,"aria-valuenow":e,"aria-valuemin":l,"aria-valuemax":n,"aria-disabled":r?"true":void 0,"aria-readonly":d?"true":void 0,children:[v("span",{className:"k-rating-container",children:u}),i&&v("span",{className:"k-rating-label",children:v("span",{children:i})})]})};s.states=ke;s.options=Ne;s.className=G;s.defaultOptions=K;s.moduleName=F;s.folderName=ee;s.ariaSpec={selector:".k-rating",rules:[{selector:".k-rating",attribute:"role=slider",usage:"Announces the slider role of the Rating element."},{selector:".k-rating",attribute:"aria-label or aria-labelledby or title",usage:"The Rating needs an accessible name to be assigned to it."},{selector:".k-rating",attribute:"aria-valuenow",usage:"Specifies the currently selected value in the Rating."},{selector:".k-rating",attribute:"aria-valuemin",usage:"Specifies the minimum available value in the Rating."},{selector:".k-rating",attribute:"aria-valuemax",usage:"Specifies the maximum available value in the Rating."},{selector:".k-rating:not(.k-disabled)",attribute:"tabindex=0",usage:"The element must be focusable. Disabled ratings are removed from tab order."},{selector:".k-rating.k-disabled",attribute:"aria-disabled=true",usage:"Rendered only when the Rating is disabled."},{selector:".k-rating.k-readonly",attribute:"aria-readonly=true (when readonly)",usage:"Rendered only when the Rating is readonly. Readonly ratings remain focusable but their value cannot be changed."}]};import{jsx as Se}from"react/jsx-runtime";var te=({value:t=2.5,max:e=5,...n})=>Se(s,{label:`${t} / ${e}`,value:t,max:e,...n,"aria-label":n["aria-label"]||"Rating"});import{jsx as Rt}from"react/jsx-runtime";import{jsx as Tt}from"react/jsx-runtime";import{jsx as oe}from"react/jsx-runtime";var Ce=s.options,Ie=s.states,Te={...s.defaultOptions,variant:"normal"},Me=[{name:"normal",title:"Normal"},{name:"label",title:"With label"}],Oe=[],k=t=>{let{variant:e,...n}=t;return e==="label"?oe(te,{...n}):oe(ne,{...n})};k.options=Ce;k.states=Ie;k.variants=Me;k.defaultOptions=Te;k.modifiers=Oe;k.className=s.className;import{jsx as Ae}from"react/jsx-runtime";var ne=({value:t=2.5,...e})=>Ae(s,{value:t,...e,"aria-label":e["aria-label"]||"Rating"});export{ne as RatingNormal};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var c=(...t)=>t.filter(e=>e!==!0&&!!e).map(e=>Array.isArray(e)?c(...e):typeof e=="object"?Object.keys(e).map((n,l)=>e[l]||e[n]&&n||null).filter(n=>n!==null).join(" "):e).filter(e=>!!e).join(" ");var
|
|
1
|
+
var c=(...t)=>t.filter(e=>e!==!0&&!!e).map(e=>Array.isArray(e)?c(...e):typeof e=="object"?Object.keys(e).map((n,l)=>e[l]||e[n]&&n||null).filter(n=>n!==null).join(" "):e).filter(e=>!!e).join(" ");var R=(t,e)=>c({[`${t}-xs`]:e.size==="xsmall",[`${t}-sm`]:e.size==="small",[`${t}-md`]:e.size==="medium",[`${t}-lg`]:e.size==="large",[`${t}-xl`]:e.size==="xlarge",[`${t}-xxl`]:e.size==="xxlarge",[`${t}-xxxl`]:e.size==="xxxlarge"},{[`${t}-${e.fillMode}`]:e.fillMode},{[`${t}-${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"}),M=(t,e)=>{let{valid:n,invalid:l,hover:r,focus:d,checked:i,active:m,selected:p,disabled:u,indeterminate:T,loading:y,empty:L,readonly:h,highlighted:ae,...w}=e;return c({"k-valid":n,"k-invalid":l,"k-hover":r,"k-focus":d,"k-checked":i,"k-active":m,"k-selected":p,"k-disabled":u,"k-indeterminate":T&&!i,"k-loading":y,"k-empty":L,"k-readonly":h,"k-highlighted":ae},Object.keys(w).reduce((E,N)=>(N.startsWith("k-")?E[N]=w[N]:E[`k-${N}`]=w[N],E),{}))};var a={undefined:void 0,xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"};var o={undefined:void 0,inherit:"inherit",base:"base",primary:"primary",secondary:"secondary",tertiary:"tertiary",info:"info",success:"success",warning:"warning",error:"error",inverse:"inverse"},g={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 V}from"react/jsx-runtime";var _="k-font-icon",ie=[],re={size:[a.undefined,a.xsmall,a.small,a.medium,a.large,a.xlarge,a.xxlarge,a.xxxlarge],themeColor:[o.undefined,o.base,o.primary,o.secondary,o.tertiary,o.success,o.warning,o.error,o.info]},se={},S=t=>{let{size:e,themeColor:n,icon:l,rotate:r,flip:d,...i}=t;return l?V("span",{...i,className:c(t.className,_,R(_,{size:e}),{[`k-i-${l}`]:l,[`k-color-${n}`]:n,[`k-rotate-${r}`]:r,"k-flip-h":d==="h"||d==="both","k-flip-v":d==="v"||d==="both"}),"aria-hidden":"true"}):V(le,{})};S.states=ie;S.options=re;S.className=_;S.defaultOptions=se;var U=S;import{Fragment as me,jsx as O}from"react/jsx-runtime";var $="k-svg-icon",ce=[],de={size:[a.undefined,a.xsmall,a.small,a.medium,a.large,a.xlarge,a.xxlarge,a.xxxlarge],themeColor:[o.undefined,o.base,o.primary,o.secondary,o.tertiary,o.success,o.warning,o.error,o.info]},W={viewBox:"0 0 24 24"},f=t=>{let{size:e,themeColor:n,rotate:l,flip:r,viewBox:d=W.viewBox,icon:i,...m}=t;if(!i)return O(me,{});if(i==="none")return O("span",{...m,className:c(t.className,$,R("k-icon",{size:e}),"k-none"),"aria-hidden":"true"});let p=typeof i=="object"&&i.name&&i.name;return O("span",{...m,className:c(t.className,$,R("k-icon",{size:e}),{[`k-svg-i-${p}`]:p,[`k-color-${n}`]:n,[`k-rotate-${l}`]:l,"k-flip-h":r==="h"||r==="both","k-flip-v":r==="v"||r==="both"}),"aria-hidden":"true",children:O("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof i=="object"?i.viewBox:d,dangerouslySetInnerHTML:typeof i=="object"?{__html:i.content}:void 0,children:i?void 0:t.children})})};f.states=ce;f.options=de;f.className=$;f.defaultOptions=W;var B=f;import*as H from"@progress/kendo-svg-icons";var q="icon",J="icons";import{useContext as ue}from"react";import{createContext as pe}from"react";var X=pe({iconsType:"svg"});import{Fragment as Q,jsx as C}from"react/jsx-runtime";var A="k-icon",fe=t=>t.replace(/([-_][a-z0-9])/gi,e=>e.toUpperCase().replace("-","").replace("_","")),ge=[],xe={size:[a.undefined,a.xsmall,a.small,a.medium,a.large,a.xlarge,a.xxlarge,a.xxxlarge],themeColor:[o.undefined,o.base,o.primary,o.secondary,o.tertiary,o.success,o.warning,o.error,o.info]},P={viewBox:"0 0 24 24",type:"svg"},b=t=>{let{iconsType:e}=ue(X),{size:n,themeColor:l,icon:r,type:d=e||P.type,rotate:i,flip:m,viewBox:p=P.viewBox,...u}=t;if(!r)return C(Q,{});if((e||d)==="svg"){if(r==="none")return C(B,{...u,className:c(t.className,A),icon:r,size:n});let y=H[r]?r:fe(`${r}-icon`);return H[y]?C(B,{...u,className:c(t.className,A),icon:H[y],size:n,themeColor:l,rotate:i,flip:m,viewBox:p}):C(Q,{})}return C(U,{...u,className:c(t.className,A),icon:r,size:n,themeColor:l,rotate:i,flip:m})};b.states=ge;b.options=xe;b.defaultOptions=P;b.className=A;b.moduleName=q;b.folderName=J;b.ariaSpec={selector:".k-icon, .k-svg-icon",rules:[{selector:".k-icon, .k-svg-icon",attribute:"aria-hidden=true",usage:"Hides the icon element and all its children from assistive technologies."}]};import{Fragment as ye,jsx as x,jsxs as ve}from"react/jsx-runtime";var D="k-rating-item",he=[g.hover,g.focus,g.selected,g.disabled],be={},j={iconType:"solid"},Y={name:"star",content:'<path d="M256 391.5 117.2 480 154 314.1 32 202.4 192.9 188 256 32l63.1 156L480 202.4 358 314.1 394.8 480z"></path>',viewBox:"0 0 512 512"},Z={name:"star-outline",content:'<path d="M480 202.4 319.1 188 256 32l-63.1 156L32 202.4l122 111.7L117.2 480 256 391.5 394.8 480 358 314.1zM256 353.6l-90.8 57.9 24-108.5-82.1-75.2 108.1-9.7L256 117.3l40.8 100.8 108.1 9.7-82.1 75.2 24.1 108.5z"></path>',viewBox:"0 0 512 512"},I=t=>{let{iconType:e=j.iconType,hover:n,focus:l,selected:r,disabled:d,dir:i,...m}=t,p;switch(e){case"split":p=ve(ye,{children:[x("span",{className:"k-rating-precision-complement",children:x(f,{className:"k-icon",icon:Z,size:"xlarge"})}),x("span",{className:"k-rating-precision-part",style:{clipPath:`inset(${i==="rtl"?"0px 0px 0px 50%":"0px 50% 0px 0px"})`},children:x(f,{className:"k-icon",icon:Y,size:"xlarge"})}),x("span",{style:{width:"24px",height:"24px",display:"block"}})]});break;case"outline":p=x(f,{className:"k-icon",icon:Z,size:"xlarge"});break;case"solid":p=x(f,{className:"k-icon",icon:Y,size:"xlarge"});break;default:return}return x("span",{...m,className:c(D,M(D,{hover:n,focus:l,selected:r,disabled:d})),dir:i,children:p})};I.states=he;I.options=be;I.className=D;I.defaultOptions=j;var z=I;var F="rating",ee=F;import{jsx as v,jsxs as Re}from"react/jsx-runtime";var G="k-rating",ke=[g.disabled,g.readonly],Ne={},K={max:5,min:0},s=t=>{let{value:e,max:n=K.max,min:l=K.min,disabled:r,readonly:d,label:i,dir:m,...p}=t,u=[],T=Math.floor(e),y=e%1===.5,L=n-Math.ceil(e);for(let h=0;h<T;h++)u.push(v(z,{dir:m,iconType:"solid",selected:!0}));y&&u.push(v(z,{dir:m,iconType:"split",selected:!0}));for(let h=0;h<L;h++)u.push(v(z,{dir:m,iconType:"outline"}));return Re("span",{...p,className:c(t.className,G,M(G,{disabled:r,readonly:d})),dir:m,role:"slider",tabIndex:r?void 0:0,"aria-valuenow":e,"aria-valuemin":l,"aria-valuemax":n,"aria-disabled":r?"true":void 0,"aria-readonly":d?"true":void 0,children:[v("span",{className:"k-rating-container",children:u}),i&&v("span",{className:"k-rating-label",children:v("span",{children:i})})]})};s.states=ke;s.options=Ne;s.className=G;s.defaultOptions=K;s.moduleName=F;s.folderName=ee;s.ariaSpec={selector:".k-rating",rules:[{selector:".k-rating",attribute:"role=slider",usage:"Announces the slider role of the Rating element."},{selector:".k-rating",attribute:"aria-label or aria-labelledby or title",usage:"The Rating needs an accessible name to be assigned to it."},{selector:".k-rating",attribute:"aria-valuenow",usage:"Specifies the currently selected value in the Rating."},{selector:".k-rating",attribute:"aria-valuemin",usage:"Specifies the minimum available value in the Rating."},{selector:".k-rating",attribute:"aria-valuemax",usage:"Specifies the maximum available value in the Rating."},{selector:".k-rating:not(.k-disabled)",attribute:"tabindex=0",usage:"The element must be focusable. Disabled ratings are removed from tab order."},{selector:".k-rating.k-disabled",attribute:"aria-disabled=true",usage:"Rendered only when the Rating is disabled."},{selector:".k-rating.k-readonly",attribute:"aria-readonly=true (when readonly)",usage:"Rendered only when the Rating is readonly. Readonly ratings remain focusable but their value cannot be changed."}]};import{jsx as Se}from"react/jsx-runtime";var te=({value:t=2.5,...e})=>Se(s,{value:t,...e,"aria-label":e["aria-label"]||"Rating"});import{jsx as Ce}from"react/jsx-runtime";var oe=({value:t=2.5,max:e=5,...n})=>Ce(s,{label:`${t} / ${e}`,value:t,max:e,...n,"aria-label":n["aria-label"]||"Rating"});import{jsx as Tt}from"react/jsx-runtime";import{jsx as ne}from"react/jsx-runtime";var Ie=s.options,Te=s.states,Me={...s.defaultOptions,variant:"normal"},Oe=[{name:"normal",title:"Normal"},{name:"label",title:"With label"}],Ae=[],k=t=>{let{variant:e,...n}=t;return e==="label"?ne(oe,{...n}):ne(te,{...n})};k.options=Ie;k.states=Te;k.variants=Oe;k.defaultOptions=Me;k.modifiers=Ae;k.className=s.className;import{jsx as ze}from"react/jsx-runtime";var Vt=({value:t=2.5,...e})=>ze(s,{readonly:!0,value:t,"aria-label":e["aria-label"]||"Read-only rating",...e});export{Vt as RatingReadonly};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var c=(...t)=>t.filter(e=>e!==!0&&!!e).map(e=>Array.isArray(e)?c(...e):typeof e=="object"?Object.keys(e).map((n,l)=>e[l]||e[n]&&n||null).filter(n=>n!==null).join(" "):e).filter(e=>!!e).join(" ");var
|
|
1
|
+
var c=(...t)=>t.filter(e=>e!==!0&&!!e).map(e=>Array.isArray(e)?c(...e):typeof e=="object"?Object.keys(e).map((n,l)=>e[l]||e[n]&&n||null).filter(n=>n!==null).join(" "):e).filter(e=>!!e).join(" ");var R=(t,e)=>c({[`${t}-xs`]:e.size==="xsmall",[`${t}-sm`]:e.size==="small",[`${t}-md`]:e.size==="medium",[`${t}-lg`]:e.size==="large",[`${t}-xl`]:e.size==="xlarge",[`${t}-xxl`]:e.size==="xxlarge",[`${t}-xxxl`]:e.size==="xxxlarge"},{[`${t}-${e.fillMode}`]:e.fillMode},{[`${t}-${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"}),M=(t,e)=>{let{valid:n,invalid:l,hover:r,focus:d,checked:i,active:m,selected:p,disabled:u,indeterminate:T,loading:y,empty:L,readonly:h,highlighted:ae,...w}=e;return c({"k-valid":n,"k-invalid":l,"k-hover":r,"k-focus":d,"k-checked":i,"k-active":m,"k-selected":p,"k-disabled":u,"k-indeterminate":T&&!i,"k-loading":y,"k-empty":L,"k-readonly":h,"k-highlighted":ae},Object.keys(w).reduce((E,N)=>(N.startsWith("k-")?E[N]=w[N]:E[`k-${N}`]=w[N],E),{}))};var a={undefined:void 0,xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"};var o={undefined:void 0,inherit:"inherit",base:"base",primary:"primary",secondary:"secondary",tertiary:"tertiary",info:"info",success:"success",warning:"warning",error:"error",inverse:"inverse"},g={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 V}from"react/jsx-runtime";var _="k-font-icon",ie=[],re={size:[a.undefined,a.xsmall,a.small,a.medium,a.large,a.xlarge,a.xxlarge,a.xxxlarge],themeColor:[o.undefined,o.base,o.primary,o.secondary,o.tertiary,o.success,o.warning,o.error,o.info]},se={},S=t=>{let{size:e,themeColor:n,icon:l,rotate:r,flip:d,...i}=t;return l?V("span",{...i,className:c(t.className,_,R(_,{size:e}),{[`k-i-${l}`]:l,[`k-color-${n}`]:n,[`k-rotate-${r}`]:r,"k-flip-h":d==="h"||d==="both","k-flip-v":d==="v"||d==="both"}),"aria-hidden":"true"}):V(le,{})};S.states=ie;S.options=re;S.className=_;S.defaultOptions=se;var U=S;import{Fragment as me,jsx as O}from"react/jsx-runtime";var $="k-svg-icon",ce=[],de={size:[a.undefined,a.xsmall,a.small,a.medium,a.large,a.xlarge,a.xxlarge,a.xxxlarge],themeColor:[o.undefined,o.base,o.primary,o.secondary,o.tertiary,o.success,o.warning,o.error,o.info]},W={viewBox:"0 0 24 24"},f=t=>{let{size:e,themeColor:n,rotate:l,flip:r,viewBox:d=W.viewBox,icon:i,...m}=t;if(!i)return O(me,{});if(i==="none")return O("span",{...m,className:c(t.className,$,R("k-icon",{size:e}),"k-none"),"aria-hidden":"true"});let p=typeof i=="object"&&i.name&&i.name;return O("span",{...m,className:c(t.className,$,R("k-icon",{size:e}),{[`k-svg-i-${p}`]:p,[`k-color-${n}`]:n,[`k-rotate-${l}`]:l,"k-flip-h":r==="h"||r==="both","k-flip-v":r==="v"||r==="both"}),"aria-hidden":"true",children:O("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof i=="object"?i.viewBox:d,dangerouslySetInnerHTML:typeof i=="object"?{__html:i.content}:void 0,children:i?void 0:t.children})})};f.states=ce;f.options=de;f.className=$;f.defaultOptions=W;var B=f;import*as H from"@progress/kendo-svg-icons";var q="icon",J="icons";import{useContext as ue}from"react";import{createContext as pe}from"react";var X=pe({iconsType:"svg"});import{Fragment as Q,jsx as C}from"react/jsx-runtime";var A="k-icon",fe=t=>t.replace(/([-_][a-z0-9])/gi,e=>e.toUpperCase().replace("-","").replace("_","")),ge=[],xe={size:[a.undefined,a.xsmall,a.small,a.medium,a.large,a.xlarge,a.xxlarge,a.xxxlarge],themeColor:[o.undefined,o.base,o.primary,o.secondary,o.tertiary,o.success,o.warning,o.error,o.info]},P={viewBox:"0 0 24 24",type:"svg"},b=t=>{let{iconsType:e}=ue(X),{size:n,themeColor:l,icon:r,type:d=e||P.type,rotate:i,flip:m,viewBox:p=P.viewBox,...u}=t;if(!r)return C(Q,{});if((e||d)==="svg"){if(r==="none")return C(B,{...u,className:c(t.className,A),icon:r,size:n});let y=H[r]?r:fe(`${r}-icon`);return H[y]?C(B,{...u,className:c(t.className,A),icon:H[y],size:n,themeColor:l,rotate:i,flip:m,viewBox:p}):C(Q,{})}return C(U,{...u,className:c(t.className,A),icon:r,size:n,themeColor:l,rotate:i,flip:m})};b.states=ge;b.options=xe;b.defaultOptions=P;b.className=A;b.moduleName=q;b.folderName=J;b.ariaSpec={selector:".k-icon, .k-svg-icon",rules:[{selector:".k-icon, .k-svg-icon",attribute:"aria-hidden=true",usage:"Hides the icon element and all its children from assistive technologies."}]};import{Fragment as ye,jsx as x,jsxs as ve}from"react/jsx-runtime";var D="k-rating-item",he=[g.hover,g.focus,g.selected,g.disabled],be={},j={iconType:"solid"},Y={name:"star",content:'<path d="M256 391.5 117.2 480 154 314.1 32 202.4 192.9 188 256 32l63.1 156L480 202.4 358 314.1 394.8 480z"></path>',viewBox:"0 0 512 512"},Z={name:"star-outline",content:'<path d="M480 202.4 319.1 188 256 32l-63.1 156L32 202.4l122 111.7L117.2 480 256 391.5 394.8 480 358 314.1zM256 353.6l-90.8 57.9 24-108.5-82.1-75.2 108.1-9.7L256 117.3l40.8 100.8 108.1 9.7-82.1 75.2 24.1 108.5z"></path>',viewBox:"0 0 512 512"},I=t=>{let{iconType:e=j.iconType,hover:n,focus:l,selected:r,disabled:d,dir:i,...m}=t,p;switch(e){case"split":p=ve(ye,{children:[x("span",{className:"k-rating-precision-complement",children:x(f,{className:"k-icon",icon:Z,size:"xlarge"})}),x("span",{className:"k-rating-precision-part",style:{clipPath:`inset(${i==="rtl"?"0px 0px 0px 50%":"0px 50% 0px 0px"})`},children:x(f,{className:"k-icon",icon:Y,size:"xlarge"})}),x("span",{style:{width:"24px",height:"24px",display:"block"}})]});break;case"outline":p=x(f,{className:"k-icon",icon:Z,size:"xlarge"});break;case"solid":p=x(f,{className:"k-icon",icon:Y,size:"xlarge"});break;default:return}return x("span",{...m,className:c(D,M(D,{hover:n,focus:l,selected:r,disabled:d})),dir:i,children:p})};I.states=he;I.options=be;I.className=D;I.defaultOptions=j;var z=I;var F="rating",ee=F;import{jsx as v,jsxs as Re}from"react/jsx-runtime";var G="k-rating",ke=[g.disabled,g.readonly],Ne={},K={max:5,min:0},s=t=>{let{value:e,max:n=K.max,min:l=K.min,disabled:r,readonly:d,label:i,dir:m,...p}=t,u=[],T=Math.floor(e),y=e%1===.5,L=n-Math.ceil(e);for(let h=0;h<T;h++)u.push(v(z,{dir:m,iconType:"solid",selected:!0}));y&&u.push(v(z,{dir:m,iconType:"split",selected:!0}));for(let h=0;h<L;h++)u.push(v(z,{dir:m,iconType:"outline"}));return Re("span",{...p,className:c(t.className,G,M(G,{disabled:r,readonly:d})),dir:m,role:"slider",tabIndex:r?void 0:0,"aria-valuenow":e,"aria-valuemin":l,"aria-valuemax":n,"aria-disabled":r?"true":void 0,"aria-readonly":d?"true":void 0,children:[v("span",{className:"k-rating-container",children:u}),i&&v("span",{className:"k-rating-label",children:v("span",{children:i})})]})};s.states=ke;s.options=Ne;s.className=G;s.defaultOptions=K;s.moduleName=F;s.folderName=ee;s.ariaSpec={selector:".k-rating",rules:[{selector:".k-rating",attribute:"role=slider",usage:"Announces the slider role of the Rating element."},{selector:".k-rating",attribute:"aria-label or aria-labelledby or title",usage:"The Rating needs an accessible name to be assigned to it."},{selector:".k-rating",attribute:"aria-valuenow",usage:"Specifies the currently selected value in the Rating."},{selector:".k-rating",attribute:"aria-valuemin",usage:"Specifies the minimum available value in the Rating."},{selector:".k-rating",attribute:"aria-valuemax",usage:"Specifies the maximum available value in the Rating."},{selector:".k-rating:not(.k-disabled)",attribute:"tabindex=0",usage:"The element must be focusable. Disabled ratings are removed from tab order."},{selector:".k-rating.k-disabled",attribute:"aria-disabled=true",usage:"Rendered only when the Rating is disabled."},{selector:".k-rating.k-readonly",attribute:"aria-readonly=true (when readonly)",usage:"Rendered only when the Rating is readonly. Readonly ratings remain focusable but their value cannot be changed."}]};import{jsx as Se}from"react/jsx-runtime";var te=({value:t=2.5,...e})=>Se(s,{value:t,...e,"aria-label":e["aria-label"]||"Rating"});import{jsx as Rt}from"react/jsx-runtime";import{jsx as Tt}from"react/jsx-runtime";import{jsx as oe}from"react/jsx-runtime";var Ce=s.options,Ie=s.states,Te={...s.defaultOptions,variant:"normal"},Me=[{name:"normal",title:"Normal"},{name:"label",title:"With label"}],Oe=[],k=t=>{let{variant:e,...n}=t;return e==="label"?oe(ne,{...n}):oe(te,{...n})};k.options=Ce;k.states=Ie;k.variants=Me;k.defaultOptions=Te;k.modifiers=Oe;k.className=s.className;import{jsx as Ae}from"react/jsx-runtime";var ne=({value:t=2.5,max:e=5,...n})=>Ae(s,{label:`${t} / ${e}`,value:t,max:e,...n,"aria-label":n["aria-label"]||"Rating"});export{ne as RatingWithLabel};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var l=(...t)=>t.filter(e=>e!==!0&&!!e).map(e=>Array.isArray(e)?l(...e):typeof e=="object"?Object.keys(e).map((r,d)=>e[d]||e[r]&&r||null).filter(r=>r!==null).join(" "):e).filter(e=>!!e).join(" ");var h=(t,e)=>l({[`${t}-xs`]:e.size==="xsmall",[`${t}-sm`]:e.size==="small",[`${t}-md`]:e.size==="medium",[`${t}-lg`]:e.size==="large",[`${t}-xl`]:e.size==="xlarge",[`${t}-xxl`]:e.size==="xxlarge",[`${t}-xxxl`]:e.size==="xxxlarge"},{[`${t}-${e.fillMode}`]:e.fillMode},{[`${t}-${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"}),V=(t,e)=>{let{valid:r,invalid:d,hover:a,focus:c,checked:i,active:p,selected:f,disabled:x,indeterminate:M,loading:v,empty:A,readonly:z,highlighted:K,...B}=e;return l({"k-valid":r,"k-invalid":d,"k-hover":a,"k-focus":c,"k-checked":i,"k-active":p,"k-selected":f,"k-disabled":x,"k-indeterminate":M&&!i,"k-loading":v,"k-empty":A,"k-readonly":z,"k-highlighted":K},Object.keys(B).reduce((g,u)=>(u.startsWith("k-")?g[u]=B[u]:g[`k-${u}`]=B[u],g),{}))};function G(t,e){if(!e)return{};let r=Array.isArray(e)?e:[e];return Object.fromEntries(r.map(d=>[`k-${d}`,!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"},y={undefined:void 0,solid:"solid",flat:"flat",outline:"outline",clear:"clear",link:"link"},o={undefined:void 0,inherit:"inherit",base:"base",primary:"primary",secondary:"secondary",tertiary:"tertiary",info:"info",success:"success",warning:"warning",error:"error",inverse:"inverse"},N={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 fe,jsx as q}from"react/jsx-runtime";var L="k-font-icon",ue=[],me={size:[n.undefined,n.xsmall,n.small,n.medium,n.large,n.xlarge,n.xxlarge,n.xxxlarge],themeColor:[o.undefined,o.base,o.primary,o.secondary,o.tertiary,o.success,o.warning,o.error,o.info]},pe={},S=t=>{let{size:e,themeColor:r,icon:d,rotate:a,flip:c,...i}=t;return d?q("span",{...i,className:l(t.className,L,h(L,{size:e}),{[`k-i-${d}`]:d,[`k-color-${r}`]:r,[`k-rotate-${a}`]:a,"k-flip-h":c==="h"||c==="both","k-flip-v":c==="v"||c==="both"}),"aria-hidden":"true"}):q(fe,{})};S.states=ue;S.options=me;S.className=L;S.defaultOptions=pe;var W=S;import{Fragment as he,jsx as _}from"react/jsx-runtime";var $="k-svg-icon",xe=[],ge={size:[n.undefined,n.xsmall,n.small,n.medium,n.large,n.xlarge,n.xxlarge,n.xxxlarge],themeColor:[o.undefined,o.base,o.primary,o.secondary,o.tertiary,o.success,o.warning,o.error,o.info]},X={viewBox:"0 0 24 24"},C=t=>{let{size:e,themeColor:r,rotate:d,flip:a,viewBox:c=X.viewBox,icon:i,...p}=t;if(!i)return _(he,{});if(i==="none")return _("span",{...p,className:l(t.className,$,h("k-icon",{size:e}),"k-none"),"aria-hidden":"true"});let f=typeof i=="object"&&i.name&&i.name;return _("span",{...p,className:l(t.className,$,h("k-icon",{size:e}),{[`k-svg-i-${f}`]:f,[`k-color-${r}`]:r,[`k-rotate-${d}`]:d,"k-flip-h":a==="h"||a==="both","k-flip-v":a==="v"||a==="both"}),"aria-hidden":"true",children:_("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof i=="object"?i.viewBox:c,dangerouslySetInnerHTML:typeof i=="object"?{__html:i.content}:void 0,children:i?void 0:t.children})})};C.states=xe;C.options=ge;C.className=$;C.defaultOptions=X;var R=C;import*as P from"@progress/kendo-svg-icons";var j="icon",J="icons";import{useContext as ye}from"react";import{createContext as be}from"react";var Q=be({iconsType:"svg"});import{Fragment as Y,jsx as T}from"react/jsx-runtime";var E="k-icon",Ne=t=>t.replace(/([-_][a-z0-9])/gi,e=>e.toUpperCase().replace("-","").replace("_","")),ve=[],Be={size:[n.undefined,n.xsmall,n.small,n.medium,n.large,n.xlarge,n.xxlarge,n.xxxlarge],themeColor:[o.undefined,o.base,o.primary,o.secondary,o.tertiary,o.success,o.warning,o.error,o.info]},H={viewBox:"0 0 24 24",type:"svg"},m=t=>{let{iconsType:e}=ye(Q),{size:r,themeColor:d,icon:a,type:c=e||H.type,rotate:i,flip:p,viewBox:f=H.viewBox,...x}=t;if(!a)return T(Y,{});if((e||c)==="svg"){if(a==="none")return T(R,{...x,className:l(t.className,E),icon:a,size:r});let v=P[a]?a:Ne(`${a}-icon`);return P[v]?T(R,{...x,className:l(t.className,E),icon:P[v],size:r,themeColor:d,rotate:i,flip:p,viewBox:f}):T(Y,{})}return T(W,{...x,className:l(t.className,E),icon:a,size:r,themeColor:d,rotate:i,flip:p})};m.states=ve;m.options=Be;m.defaultOptions=H;m.className=E;m.moduleName=j;m.folderName=J;m.ariaSpec={selector:".k-icon, .k-svg-icon",rules:[{selector:".k-icon, .k-svg-icon",attribute:"aria-hidden=true",usage:"Hides the icon element and all its children from assistive technologies."}]};var F="button",Z=F;import{Fragment as Te,jsx as O,jsxs as ee}from"react/jsx-runtime";var I="k-button",ke=["icon-button"],Se=[N.hover,N.focus,N.active,N.selected,N.disabled,N.generating],Ce={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:[y.undefined,y.solid,y.flat,y.outline,y.clear,y.link],themeColor:[o.undefined,o.base,o.primary,o.secondary,o.tertiary,o.success,o.warning,o.error,o.info,o.inverse]},U={showArrow:!1,arrowIconName:"chevron-down"},s=t=>{let{as:e="button",size:r,rounded:d,fillMode:a,themeColor:c,showArrow:i=U.showArrow,arrowIconName:p=U.arrowIconName,variant:f,hover:x,focus:M,active:v,selected:A,disabled:z,togglable:K,ariaDisabled:B,icon:g,text:u,iconClassName:ie,className:ae,...le}=t,de=g!==void 0,ce=t.children!==void 0;return ee(e,{className:l(ae,I,G(I,f),h(I,{size:r,rounded:d,fillMode:a,themeColor:c}),V(I,{hover:x,focus:M,active:v,disabled:z||B,selected:A}),{"k-icon-button":!u&&!ce&&de}),...le,"aria-pressed":K?A?"true":"false":void 0,"aria-disabled":B?"true":void 0,disabled:z||void 0,children:[g&&O(m,{className:l(ie,"k-button-icon"),icon:g}),u?ee(Te,{children:[u&&O("span",{className:"k-button-text",children:u}),t.children]}):t.children&&O("span",{className:"k-button-text",children:t.children}),i&&O("span",{className:"k-menu-button-arrow k-button-arrow",children:O(m,{icon:p})})]})};s.states=Se;s.options=Ce;s.variants=ke;s.className=I;s.defaultOptions=U;s.moduleName=F;s.folderName=Z;s.ariaSpec={selector:".k-button",rules:[{selector:".k-button",attribute:"role=button or nodeName=button",usage:"The button role is implicit from the native <button> element."},{selector:".k-button",attribute:"aria-label (when icon-only)",usage:"Required for icon-only buttons that have no visible text."},{selector:".k-button",attribute:"aria-pressed (when togglable)",usage:"Indicates the pressed state of a toggle button."},{selector:".k-button",attribute:"disabled (when disabled)",usage:"Rendered when the button is disabled."}]};import{jsx as Oe}from"react/jsx-runtime";var te=t=>Oe(s,{icon:"folder",...t,"aria-label":t["aria-label"]||"Folder",children:void 0});import{jsx as Ie}from"react/jsx-runtime";var oe=t=>Ie(s,{icon:"folder",children:"Button",...t});import{jsx as we}from"react/jsx-runtime";var ne=t=>we(s,{children:"Button",...t});import{jsx as D}from"react/jsx-runtime";var Me=s.options,Ae=s.states,ze={...s.defaultOptions,variant:"text"},_e=[{name:"icon-only",title:"Icon Only"},{name:"icon-and-text",title:"Icon & Text"},{name:"text",title:"Text"}],Ee=[],k=t=>{let{variant:e,...r}=t;switch(e){case"icon-only":return D(te,{...r,icon:"star"});case"icon-and-text":return D(oe,{...r,icon:"star",children:"Button"});default:return D(ne,{...r,children:"Button"})}};k.options=Me;k.states=Ae;k.variants=_e;k.defaultOptions=ze;k.modifiers=Ee;k.className=s.className;import{jsx as Ke}from"react/jsx-runtime";var re="k-smart-box-send",se={processing:!1},w=t=>{let{processing:e=se.processing,...r}=t;return Ke(s,{...r,rounded:"full",size:"small",icon:e?"stop
|
|
1
|
+
var l=(...t)=>t.filter(e=>e!==!0&&!!e).map(e=>Array.isArray(e)?l(...e):typeof e=="object"?Object.keys(e).map((r,d)=>e[d]||e[r]&&r||null).filter(r=>r!==null).join(" "):e).filter(e=>!!e).join(" ");var h=(t,e)=>l({[`${t}-xs`]:e.size==="xsmall",[`${t}-sm`]:e.size==="small",[`${t}-md`]:e.size==="medium",[`${t}-lg`]:e.size==="large",[`${t}-xl`]:e.size==="xlarge",[`${t}-xxl`]:e.size==="xxlarge",[`${t}-xxxl`]:e.size==="xxxlarge"},{[`${t}-${e.fillMode}`]:e.fillMode},{[`${t}-${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"}),V=(t,e)=>{let{valid:r,invalid:d,hover:a,focus:c,checked:i,active:p,selected:f,disabled:x,indeterminate:M,loading:v,empty:A,readonly:z,highlighted:K,...B}=e;return l({"k-valid":r,"k-invalid":d,"k-hover":a,"k-focus":c,"k-checked":i,"k-active":p,"k-selected":f,"k-disabled":x,"k-indeterminate":M&&!i,"k-loading":v,"k-empty":A,"k-readonly":z,"k-highlighted":K},Object.keys(B).reduce((g,u)=>(u.startsWith("k-")?g[u]=B[u]:g[`k-${u}`]=B[u],g),{}))};function G(t,e){if(!e)return{};let r=Array.isArray(e)?e:[e];return Object.fromEntries(r.map(d=>[`k-${d}`,!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"},y={undefined:void 0,solid:"solid",flat:"flat",outline:"outline",clear:"clear",link:"link"},o={undefined:void 0,inherit:"inherit",base:"base",primary:"primary",secondary:"secondary",tertiary:"tertiary",info:"info",success:"success",warning:"warning",error:"error",inverse:"inverse"},N={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 fe,jsx as q}from"react/jsx-runtime";var L="k-font-icon",ue=[],me={size:[n.undefined,n.xsmall,n.small,n.medium,n.large,n.xlarge,n.xxlarge,n.xxxlarge],themeColor:[o.undefined,o.base,o.primary,o.secondary,o.tertiary,o.success,o.warning,o.error,o.info]},pe={},S=t=>{let{size:e,themeColor:r,icon:d,rotate:a,flip:c,...i}=t;return d?q("span",{...i,className:l(t.className,L,h(L,{size:e}),{[`k-i-${d}`]:d,[`k-color-${r}`]:r,[`k-rotate-${a}`]:a,"k-flip-h":c==="h"||c==="both","k-flip-v":c==="v"||c==="both"}),"aria-hidden":"true"}):q(fe,{})};S.states=ue;S.options=me;S.className=L;S.defaultOptions=pe;var W=S;import{Fragment as he,jsx as _}from"react/jsx-runtime";var $="k-svg-icon",xe=[],ge={size:[n.undefined,n.xsmall,n.small,n.medium,n.large,n.xlarge,n.xxlarge,n.xxxlarge],themeColor:[o.undefined,o.base,o.primary,o.secondary,o.tertiary,o.success,o.warning,o.error,o.info]},X={viewBox:"0 0 24 24"},C=t=>{let{size:e,themeColor:r,rotate:d,flip:a,viewBox:c=X.viewBox,icon:i,...p}=t;if(!i)return _(he,{});if(i==="none")return _("span",{...p,className:l(t.className,$,h("k-icon",{size:e}),"k-none"),"aria-hidden":"true"});let f=typeof i=="object"&&i.name&&i.name;return _("span",{...p,className:l(t.className,$,h("k-icon",{size:e}),{[`k-svg-i-${f}`]:f,[`k-color-${r}`]:r,[`k-rotate-${d}`]:d,"k-flip-h":a==="h"||a==="both","k-flip-v":a==="v"||a==="both"}),"aria-hidden":"true",children:_("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof i=="object"?i.viewBox:c,dangerouslySetInnerHTML:typeof i=="object"?{__html:i.content}:void 0,children:i?void 0:t.children})})};C.states=xe;C.options=ge;C.className=$;C.defaultOptions=X;var R=C;import*as P from"@progress/kendo-svg-icons";var j="icon",J="icons";import{useContext as ye}from"react";import{createContext as be}from"react";var Q=be({iconsType:"svg"});import{Fragment as Y,jsx as T}from"react/jsx-runtime";var E="k-icon",Ne=t=>t.replace(/([-_][a-z0-9])/gi,e=>e.toUpperCase().replace("-","").replace("_","")),ve=[],Be={size:[n.undefined,n.xsmall,n.small,n.medium,n.large,n.xlarge,n.xxlarge,n.xxxlarge],themeColor:[o.undefined,o.base,o.primary,o.secondary,o.tertiary,o.success,o.warning,o.error,o.info]},H={viewBox:"0 0 24 24",type:"svg"},m=t=>{let{iconsType:e}=ye(Q),{size:r,themeColor:d,icon:a,type:c=e||H.type,rotate:i,flip:p,viewBox:f=H.viewBox,...x}=t;if(!a)return T(Y,{});if((e||c)==="svg"){if(a==="none")return T(R,{...x,className:l(t.className,E),icon:a,size:r});let v=P[a]?a:Ne(`${a}-icon`);return P[v]?T(R,{...x,className:l(t.className,E),icon:P[v],size:r,themeColor:d,rotate:i,flip:p,viewBox:f}):T(Y,{})}return T(W,{...x,className:l(t.className,E),icon:a,size:r,themeColor:d,rotate:i,flip:p})};m.states=ve;m.options=Be;m.defaultOptions=H;m.className=E;m.moduleName=j;m.folderName=J;m.ariaSpec={selector:".k-icon, .k-svg-icon",rules:[{selector:".k-icon, .k-svg-icon",attribute:"aria-hidden=true",usage:"Hides the icon element and all its children from assistive technologies."}]};var F="button",Z=F;import{Fragment as Te,jsx as O,jsxs as ee}from"react/jsx-runtime";var I="k-button",ke=["icon-button"],Se=[N.hover,N.focus,N.active,N.selected,N.disabled,N.generating],Ce={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:[y.undefined,y.solid,y.flat,y.outline,y.clear,y.link],themeColor:[o.undefined,o.base,o.primary,o.secondary,o.tertiary,o.success,o.warning,o.error,o.info,o.inverse]},U={showArrow:!1,arrowIconName:"chevron-down"},s=t=>{let{as:e="button",size:r,rounded:d,fillMode:a,themeColor:c,showArrow:i=U.showArrow,arrowIconName:p=U.arrowIconName,variant:f,hover:x,focus:M,active:v,selected:A,disabled:z,togglable:K,ariaDisabled:B,icon:g,text:u,iconClassName:ie,className:ae,...le}=t,de=g!==void 0,ce=t.children!==void 0;return ee(e,{className:l(ae,I,G(I,f),h(I,{size:r,rounded:d,fillMode:a,themeColor:c}),V(I,{hover:x,focus:M,active:v,disabled:z||B,selected:A}),{"k-icon-button":!u&&!ce&&de}),...le,"aria-pressed":K?A?"true":"false":void 0,"aria-disabled":B?"true":void 0,disabled:z||void 0,children:[g&&O(m,{className:l(ie,"k-button-icon"),icon:g}),u?ee(Te,{children:[u&&O("span",{className:"k-button-text",children:u}),t.children]}):t.children&&O("span",{className:"k-button-text",children:t.children}),i&&O("span",{className:"k-menu-button-arrow k-button-arrow",children:O(m,{icon:p})})]})};s.states=Se;s.options=Ce;s.variants=ke;s.className=I;s.defaultOptions=U;s.moduleName=F;s.folderName=Z;s.ariaSpec={selector:".k-button",rules:[{selector:".k-button",attribute:"role=button or nodeName=button",usage:"The button role is implicit from the native <button> element."},{selector:".k-button",attribute:"aria-label (when icon-only)",usage:"Required for icon-only buttons that have no visible text."},{selector:".k-button",attribute:"aria-pressed (when togglable)",usage:"Indicates the pressed state of a toggle button."},{selector:".k-button",attribute:"disabled (when disabled)",usage:"Rendered when the button is disabled."}]};import{jsx as Oe}from"react/jsx-runtime";var te=t=>Oe(s,{icon:"folder",...t,"aria-label":t["aria-label"]||"Folder",children:void 0});import{jsx as Ie}from"react/jsx-runtime";var oe=t=>Ie(s,{icon:"folder",children:"Button",...t});import{jsx as we}from"react/jsx-runtime";var ne=t=>we(s,{children:"Button",...t});import{jsx as D}from"react/jsx-runtime";var Me=s.options,Ae=s.states,ze={...s.defaultOptions,variant:"text"},_e=[{name:"icon-only",title:"Icon Only"},{name:"icon-and-text",title:"Icon & Text"},{name:"text",title:"Text"}],Ee=[],k=t=>{let{variant:e,...r}=t;switch(e){case"icon-only":return D(te,{...r,icon:"star"});case"icon-and-text":return D(oe,{...r,icon:"star",children:"Button"});default:return D(ne,{...r,children:"Button"})}};k.options=Me;k.states=Ae;k.variants=_e;k.defaultOptions=ze;k.modifiers=Ee;k.className=s.className;import{jsx as Ke}from"react/jsx-runtime";var re="k-smart-box-send",se={processing:!1},w=t=>{let{processing:e=se.processing,...r}=t;return Ke(s,{...r,rounded:"full",size:"small",icon:e?"stop":"arrow-up",active:e,"aria-pressed":e?"true":void 0,"aria-label":e?"Stop processing":"Send",className:l(t.className,re,{"k-processing":e})})};w.states=s.states;w.options=s.options;w.className=re;w.defaultOptions=se;var qt=w;export{re as SMART_BOX_SEND_BUTTON_CLASSNAME,w as SmartBoxSendButton,qt as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var n=(...e)=>e.filter(t=>t!==!0&&!!t).map(t=>Array.isArray(t)?n(...t):typeof t=="object"?Object.keys(t).map((o,s)=>t[s]||t[o]&&o||null).filter(o=>o!==null).join(" "):t).filter(t=>!!t).join(" ");var N=(e,t)=>n({[`${e}-xs`]:t.size==="xsmall",[`${e}-sm`]:t.size==="small",[`${e}-md`]:t.size==="medium",[`${e}-lg`]:t.size==="large",[`${e}-xl`]:t.size==="xlarge",[`${e}-xxl`]:t.size==="xxlarge",[`${e}-xxxl`]:t.size==="xxxlarge"},{[`${e}-${t.fillMode}`]:t.fillMode},{[`${e}-${t.themeColor}`]:t.themeColor},{"k-rounded-sm":t.rounded==="small","k-rounded-md":t.rounded==="medium","k-rounded-lg":t.rounded==="large","k-rounded-full":t.rounded==="full","k-rounded-none":t.rounded==="none"}),y=(e,t)=>{let{valid:o,invalid:s,hover:a,focus:c,checked:l,active:m,selected:b,disabled:x,indeterminate:g,loading:h,empty:I,readonly:M,highlighted:F,..._}=t;return n({"k-valid":o,"k-invalid":s,"k-hover":a,"k-focus":c,"k-checked":l,"k-active":m,"k-selected":b,"k-disabled":x,"k-indeterminate":g&&!l,"k-loading":h,"k-empty":I,"k-readonly":M,"k-highlighted":F},Object.keys(_).reduce((R,T)=>(T.startsWith("k-")?R[T]=_[T]:R[`k-${T}`]=_[T],R),{}))};function rt(e,t){if(!t)return{};let o=Array.isArray(t)?t:[t];return Object.fromEntries(o.map(s=>[`k-${s}`,!0]))}var r={undefined:void 0,xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"},d={undefined:void 0,none:"none",small:"small",medium:"medium",large:"large",full:"full"},L={undefined:void 0,solid:"solid",flat:"flat",outline:"outline",clear:"clear",link:"link"},p={undefined:void 0,inherit:"inherit",base:"base",primary:"primary",secondary:"secondary",tertiary:"tertiary",info:"info",success:"success",warning:"warning",error:"error",inverse:"inverse"},i={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 Ee={};function k(e){return Ee[e]=(Ee[e]||0)+1,`k-${e}-${Ee[e]}`}var ie="input",xe=ie;import{jsx as io}from"react/jsx-runtime";var he="k-input",oo=[i.hover,i.focus,i.valid,i.invalid,i.required,i.disabled,i.loading,i.readonly],no={size:[r.undefined,r.small,r.medium,r.large],rounded:[d.undefined,d.none,d.small,d.medium,d.large,d.full],fillMode:[L.undefined,L.solid,L.flat,L.outline]},so={},A=e=>{let{hover:t,focus:o,disabled:s,invalid:a,valid:c,loading:l,readonly:m,size:b,rounded:x,fillMode:g,...h}=e;return io("span",{...h,className:n(e.className,he,N(he,{size:b,rounded:x,fillMode:g}),y(he,{hover:t,focus:o,disabled:s,invalid:a,valid:c,loading:l,readonly:m}))})};A.states=oo;A.options=no;A.className=he;A.defaultOptions=so;A.moduleName=ie;A.folderName=xe;import{jsx as co}from"react/jsx-runtime";var Le="k-picker",ao=[i.hover,i.focus,i.valid,i.invalid,i.required,i.disabled,i.loading,i.readonly],ro={size:[r.undefined,r.small,r.medium,r.large],rounded:[d.undefined,d.none,d.small,d.medium,d.large,d.full],fillMode:[L.undefined,L.solid,L.flat,L.outline]},lo={},J=e=>{let{hover:t,focus:o,disabled:s,invalid:a,valid:c,loading:l,readonly:m,size:b,rounded:x,fillMode:g,...h}=e;return co("span",{...h,className:n(e.className,Le,N(Le,{size:b,rounded:x,fillMode:g}),y(Le,{hover:t,focus:o,disabled:s,invalid:a,valid:c,loading:l,readonly:m})),children:e.children})};J.states=ao;J.options=ro;J.className=Le;J.defaultOptions=lo;J.moduleName=ie;J.folderName=xe;import{Fragment as fo,jsx as lt}from"react/jsx-runtime";var Be="k-font-icon",po=[],mo={size:[r.undefined,r.xsmall,r.small,r.medium,r.large,r.xlarge,r.xxlarge,r.xxxlarge],themeColor:[p.undefined,p.base,p.primary,p.secondary,p.tertiary,p.success,p.warning,p.error,p.info]},uo={},ae=e=>{let{size:t,themeColor:o,icon:s,rotate:a,flip:c,...l}=e;return s?lt("span",{...l,className:n(e.className,Be,N(Be,{size:t}),{[`k-i-${s}`]:s,[`k-color-${o}`]:o,[`k-rotate-${a}`]:a,"k-flip-h":c==="h"||c==="both","k-flip-v":c==="v"||c==="both"}),"aria-hidden":"true"}):lt(fo,{})};ae.states=po;ae.options=mo;ae.className=Be;ae.defaultOptions=uo;var ct=ae;import{Fragment as ho,jsx as Ne}from"react/jsx-runtime";var Ke="k-svg-icon",bo=[],xo={size:[r.undefined,r.xsmall,r.small,r.medium,r.large,r.xlarge,r.xxlarge,r.xxxlarge],themeColor:[p.undefined,p.base,p.primary,p.secondary,p.tertiary,p.success,p.warning,p.error,p.info]},pt={viewBox:"0 0 24 24"},re=e=>{let{size:t,themeColor:o,rotate:s,flip:a,viewBox:c=pt.viewBox,icon:l,...m}=e;if(!l)return Ne(ho,{});if(l==="none")return Ne("span",{...m,className:n(e.className,Ke,N("k-icon",{size:t}),"k-none"),"aria-hidden":"true"});let b=typeof l=="object"&&l.name&&l.name;return Ne("span",{...m,className:n(e.className,Ke,N("k-icon",{size:t}),{[`k-svg-i-${b}`]:b,[`k-color-${o}`]:o,[`k-rotate-${s}`]:s,"k-flip-h":a==="h"||a==="both","k-flip-v":a==="v"||a==="both"}),"aria-hidden":"true",children:Ne("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof l=="object"?l.viewBox:c,dangerouslySetInnerHTML:typeof l=="object"?{__html:l.content}:void 0,children:l?void 0:e.children})})};re.states=bo;re.options=xo;re.className=Ke;re.defaultOptions=pt;var Re=re;import*as Pe from"@progress/kendo-svg-icons";var dt="icon",mt="icons";import{useContext as No}from"react";import{createContext as Lo}from"react";var ut=Lo({iconsType:"svg"});import{Fragment as ft,jsx as le}from"react/jsx-runtime";var ge="k-icon",go=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),Io=[],ko={size:[r.undefined,r.xsmall,r.small,r.medium,r.large,r.xlarge,r.xxlarge,r.xxxlarge],themeColor:[p.undefined,p.base,p.primary,p.secondary,p.tertiary,p.success,p.warning,p.error,p.info]},_e={viewBox:"0 0 24 24",type:"svg"},u=e=>{let{iconsType:t}=No(ut),{size:o,themeColor:s,icon:a,type:c=t||_e.type,rotate:l,flip:m,viewBox:b=_e.viewBox,...x}=e;if(!a)return le(ft,{});if((t||c)==="svg"){if(a==="none")return le(Re,{...x,className:n(e.className,ge),icon:a,size:o});let h=Pe[a]?a:go(`${a}-icon`);return Pe[h]?le(Re,{...x,className:n(e.className,ge),icon:Pe[h],size:o,themeColor:s,rotate:l,flip:m,viewBox:b}):le(ft,{})}return le(ct,{...x,className:n(e.className,ge),icon:a,size:o,themeColor:s,rotate:l,flip:m})};u.states=Io;u.options=ko;u.defaultOptions=_e;u.className=ge;u.moduleName=dt;u.folderName=mt;u.ariaSpec={selector:".k-icon, .k-svg-icon",rules:[{selector:".k-icon, .k-svg-icon",attribute:"aria-hidden=true",usage:"Hides the icon element and all its children from assistive technologies."}]};import{Fragment as So,jsx as He}from"react/jsx-runtime";var bt="k-clear-value",Co=[i.disabled,i.loading,i.readonly],vo={},ce=e=>{let{disabled:t,loading:o,readonly:s,value:a}=e;return t||s||o||!a?He(So,{}):He("span",{className:n(e.className,bt),children:He(u,{icon:"x"})})};ce.states=Co;ce.options=vo;ce.className=bt;import{jsx as Ao}from"react/jsx-runtime";var we="k-input-inner",Mo=[],yo={},Ie={type:"text",autocomplete:"off",value:"",placeholder:""},V=e=>{let{value:t=Ie.value,type:o=Ie.type,placeholder:s=Ie.placeholder,autocomplete:a=Ie.autocomplete,disabled:c,readOnly:l,...m}=e;return Ao("input",{...m,type:o,className:n(e.className,we,N(we,e)),placeholder:s,autoComplete:a,defaultValue:t,disabled:c||void 0,readOnly:l||void 0})};V.states=Mo;V.options=yo;V.className=we;import{jsx as xt,jsxs as Eo}from"react/jsx-runtime";var ze="k-input-inner",Oo=[],To={},De=e=>{let{value:t,placeholder:o,showValue:s,valueIcon:a,valueIconName:c,...l}=e;return Eo("span",{...l,className:n(e.className,ze,N(ze,e)),children:[a,!a&&c&&xt(u,{className:"k-input-value-icon",icon:c}),s&&!t&&o,s&&t&&xt("span",{className:"k-input-value-text",children:t})]})};De.states=Oo;De.options=To;De.className=ze;import{jsx as Ro}from"react/jsx-runtime";var Ue="k-input-inner",Bo=[],Ko={},ht={value:"",placeholder:""},Ge=e=>{let{value:t=ht.value,placeholder:o=ht.placeholder,rows:s,disabled:a,...c}=e;return Ro("textarea",{...c,className:n(e.className,Ue,N(Ue,e)),placeholder:o,rows:s,defaultValue:t,disabled:a||void 0})};Ge.states=Bo;Ge.options=Ko;Ge.className=Ue;import{Fragment as _o,jsx as Lt}from"react/jsx-runtime";var Nt="k-input-loading-icon",Po=[i.disabled,i.loading],ke=e=>{let{disabled:t,loading:o}=e;return t||!o?Lt(_o,{}):Lt("span",{className:n(e.className,Nt,"k-icon k-i-loading")})};ke.states=Po;ke.className=Nt;import{Fragment as zo,jsx as gt}from"react/jsx-runtime";var It="k-input-validation-icon",Ho=[i.valid,i.invalid,i.disabled,i.loading],wo={},pe=e=>{let{valid:t,invalid:o,disabled:s,loading:a}=e,c=o?"warning-circle":"check-circle";return s||a||!!!(t||o)?gt(zo,{}):gt(u,{className:n(It),icon:c})};pe.states=Ho;pe.options=wo;pe.className=It;import{Fragment as Go,jsx as kt}from"react/jsx-runtime";var Do="k-input-prefix",Uo={direction:"horizontal"},Ce=e=>{let{direction:t=Uo.direction,...o}=e;return e.children?kt("span",{...o,className:n(Do,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):kt(Go,{})};import{Fragment as $o,jsx as Ct}from"react/jsx-runtime";var Fo="k-input-suffix",Vo={direction:"horizontal"},ve=e=>{let{direction:t=Vo.direction,...o}=e;return e.children?Ct("span",{...o,className:n(Fo,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):Ct($o,{})};import{jsx as Bi}from"react/jsx-runtime";import{jsx as _i}from"react/jsx-runtime";import{jsx as Wo}from"react/jsx-runtime";var vt="k-input-separator",Xo={direction:"vertical"},Q=e=>{let{direction:t=Xo.direction,...o}=e;return Wo("span",{...o,className:n(vt,e.className,{[`${vt}-${t}`]:t})})};var Fe="button",St=Fe;import{Fragment as Yo,jsx as de,jsxs as Mt}from"react/jsx-runtime";var me="k-button",qo=["icon-button"],Jo=[i.hover,i.focus,i.active,i.selected,i.disabled,i.generating],Qo={size:[r.undefined,r.xsmall,r.small,r.medium,r.large],rounded:[d.undefined,d.none,d.small,d.medium,d.large,d.full],fillMode:[L.undefined,L.solid,L.flat,L.outline,L.clear,L.link],themeColor:[p.undefined,p.base,p.primary,p.secondary,p.tertiary,p.success,p.warning,p.error,p.info,p.inverse]},Ve={showArrow:!1,arrowIconName:"chevron-down"},f=e=>{let{as:t="button",size:o,rounded:s,fillMode:a,themeColor:c,showArrow:l=Ve.showArrow,arrowIconName:m=Ve.arrowIconName,variant:b,hover:x,focus:g,active:h,selected:I,disabled:M,togglable:F,ariaDisabled:_,icon:R,text:T,iconClassName:be,className:Te,...jt}=e,eo=R!==void 0,to=e.children!==void 0;return Mt(t,{className:n(Te,me,rt(me,b),N(me,{size:o,rounded:s,fillMode:a,themeColor:c}),y(me,{hover:x,focus:g,active:h,disabled:M||_,selected:I}),{"k-icon-button":!T&&!to&&eo}),...jt,"aria-pressed":F?I?"true":"false":void 0,"aria-disabled":_?"true":void 0,disabled:M||void 0,children:[R&&de(u,{className:n(be,"k-button-icon"),icon:R}),T?Mt(Yo,{children:[T&&de("span",{className:"k-button-text",children:T}),e.children]}):e.children&&de("span",{className:"k-button-text",children:e.children}),l&&de("span",{className:"k-menu-button-arrow k-button-arrow",children:de(u,{icon:m})})]})};f.states=Jo;f.options=Qo;f.variants=qo;f.className=me;f.defaultOptions=Ve;f.moduleName=Fe;f.folderName=St;f.ariaSpec={selector:".k-button",rules:[{selector:".k-button",attribute:"role=button or nodeName=button",usage:"The button role is implicit from the native <button> element."},{selector:".k-button",attribute:"aria-label (when icon-only)",usage:"Required for icon-only buttons that have no visible text."},{selector:".k-button",attribute:"aria-pressed (when togglable)",usage:"Indicates the pressed state of a toggle button."},{selector:".k-button",attribute:"disabled (when disabled)",usage:"Rendered when the button is disabled."}]};import{jsx as Zo}from"react/jsx-runtime";var Se=e=>Zo(f,{children:"Button",...e});import{Fragment as yt,jsx as H,jsxs as $e}from"react/jsx-runtime";var jo=A.states,en=A.defaultOptions,tn=A.options,on=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"},{name:"validation-icon",title:"Validation Icon"},{name:"separators",title:"Separators"}],nn=[],Y=e=>{let{modifiers:t,valid:o,invalid:s,loading:a,disabled:c,readonly:l,...m}=e,b=t?.prefix,x=t?.suffix,g=t?.["clear-button"],h=t?.["validation-icon"],I=t?.separators;return $e(A,{...m,valid:o,invalid:s,loading:a,disabled:c,readonly:l,style:{width:300},children:[b&&$e(yt,{children:[H(Ce,{children:H(u,{icon:"lock"})}),I&&H(Q,{})]}),H(V,{placeholder:"Placeholder",value:"Value"}),h&&H(pe,{valid:o,invalid:s,loading:a,disabled:c}),H(ke,{loading:a,disabled:c}),g&&H(ce,{loading:a,disabled:c,readonly:l,value:"Value"}),x&&$e(yt,{children:[I&&H(Q,{}),H(ve,{children:H(Se,{size:m.size,fillMode:"clear",children:"Send"})})]})]})};Y.options=tn;Y.states=jo;Y.variants=nn;Y.defaultOptions=en;Y.modifiers=on;Y.className=A.className;var Xe="popup",At=Xe;import{jsx as Ot}from"react/jsx-runtime";var Tt="k-animation-container",sn=[],an={},Et={positionMode:"absolute"},G=e=>{let{positionMode:t=Et.positionMode,animationStyle:o,offset:s,...a}=e;return Ot("div",{...a,style:{...s,...e.style},className:n(e.className,Tt,"k-animation-container-shown",{"k-animation-container-fixed":t==="fixed"}),children:Ot("div",{className:"k-child-animation-container",style:o,children:e.children})})};G.states=sn;G.options=an;G.className=Tt;G.defaultOptions=Et;G.moduleName=Xe;G.folderName=At;var We="popup",Bt=We;import{jsx as Kt}from"react/jsx-runtime";var Rt="k-popup",rn=[],ln={},Pt={positionMode:"absolute"},w=e=>{let{offset:t,positionMode:o=Pt.positionMode,animationStyle:s,containerClassName:a,containerRole:c,containerAriaLabel:l,...m}=e;return Kt(G,{positionMode:o,offset:t,animationStyle:s,className:a,role:c,"aria-label":l,children:Kt("div",{...m,className:n(e.className,Rt),children:e.children})})};w.states=rn;w.options=ln;w.className=Rt;w.defaultOptions=Pt;w.moduleName=We;w.folderName=Bt;w.ariaSpec={selector:".k-popup",rules:[{selector:".k-animation-container",attribute:"role (when appended to body)",usage:'Container gets role="region" when appended to document body. Popup is a building block \u2014 ARIA semantics come from consuming components.'}]};var qe="smart-box",_t=qe;import{Fragment as Je,jsx as Z,jsxs as Me}from"react/jsx-runtime";var Ht="k-smart-box",cn=[i.hover,i.focus,i.disabled],pn={size:[r.undefined,r.small,r.medium,r.large],rounded:[d.undefined,d.none,d.small,d.medium,d.large,d.full],fillMode:[L.undefined,L.solid,L.flat,L.outline]},wt={separators:!0},E=e=>{let{size:t,rounded:o,fillMode:s,separators:a=wt.separators,prefix:c,suffix:l,value:m,placeholder:b,hover:x,focus:g,disabled:h,popup:I,opened:M,processing:F,inputAriaLabel:_,inputAriaControls:R,inputAriaActiveDescendant:T,inputAriaAutocomplete:be,...Te}=e;return Me(Je,{children:[Me(A,{...Te,size:t,rounded:o,fillMode:s,hover:x,focus:g,disabled:h,loading:F,className:n(e.className,Ht),children:[c&&Me(Je,{children:[Z(Ce,{children:c}),a&&Z(Q,{})]}),Z(V,{placeholder:b,value:m,role:"combobox","aria-haspopup":"listbox","aria-expanded":M?"true":"false","aria-autocomplete":be,"aria-controls":M?R:void 0,"aria-activedescendant":M?T:void 0,"aria-label":_}),l&&Me(Je,{children:[a&&Z(Q,{}),Z(ve,{children:l})]})]}),M&&I&&Z(w,{className:"k-smart-box-popup",children:I})]})};E.states=cn;E.options=pn;E.className=Ht;E.defaultOptions=wt;E.moduleName=qe;E.folderName=_t;E.ariaSpec={selector:".k-smart-box",rules:[{selector:".k-smart-box .k-input-inner",attribute:"role=combobox",usage:"Announces the combobox role for the SmartBox input."},{selector:".k-smart-box .k-input-inner",attribute:"aria-label or aria-labelledby",usage:'Provides an accessible label for the SmartBox (e.g., "AI-powered search").'},{selector:".k-smart-box .k-input-inner",attribute:"aria-expanded",usage:"Indicates whether the suggestion popup is currently visible."},{selector:".k-smart-box .k-input-inner",attribute:"aria-haspopup=listbox",usage:"Indicates that the SmartBox has a popup listbox with suggestions."},{selector:".k-smart-box .k-input-inner",attribute:"aria-controls (when present)",usage:"References the ID of the popup listbox element when the popup is open."},{selector:".k-smart-box .k-input-inner",attribute:"aria-autocomplete (when present)",usage:"Indicates the autocomplete behavior of the input field."},{selector:".k-smart-box .k-input-inner",attribute:"aria-activedescendant (when present)",usage:"When the popup is open and keyboard navigation is active, references the ID of the currently focused list item."},{selector:".k-smart-box .k-input-prefix .k-icon",attribute:"aria-hidden=true",usage:"Decorative icons in the prefix area are hidden from screen readers."},{selector:".k-smart-box .k-input-suffix .k-button",attribute:"aria-label",usage:'Suffix buttons must have accessible labels describing their function (e.g., "Start voice input", "Send prompt").'},{selector:".k-smart-box .k-smart-box-send",attribute:"aria-label",usage:'The send button must be labelled to indicate its current action (e.g., "Send" or "Stop processing").'},{selector:".k-smart-box .k-smart-box-send.k-disabled",attribute:"disabled or aria-disabled=true",usage:"Indicates the button is disabled when there is no input or processing is not active."},{selector:".k-smart-box .k-smart-box-send.k-processing",attribute:"aria-pressed=true",usage:"Indicates that processing is in progress. The button changes function to stop processing."}]};import{jsx as dn}from"react/jsx-runtime";var $=e=>dn(f,{icon:"folder",...e,"aria-label":e["aria-label"]||"Folder",children:void 0});import{jsx as mn}from"react/jsx-runtime";var zt=e=>mn(f,{icon:"folder",children:"Button",...e});import{jsx as Qe}from"react/jsx-runtime";var un=f.options,fn=f.states,bn={...f.defaultOptions,variant:"text"},xn=[{name:"icon-only",title:"Icon Only"},{name:"icon-and-text",title:"Icon & Text"},{name:"text",title:"Text"}],hn=[],j=e=>{let{variant:t,...o}=e;switch(t){case"icon-only":return Qe($,{...o,icon:"star"});case"icon-and-text":return Qe(zt,{...o,icon:"star",children:"Button"});default:return Qe(Se,{...o,children:"Button"})}};j.options=un;j.states=fn;j.variants=xn;j.defaultOptions=bn;j.modifiers=hn;j.className=f.className;import{jsx as Ln}from"react/jsx-runtime";var Dt="k-smart-box-send",Ut={processing:!1},z=e=>{let{processing:t=Ut.processing,...o}=e;return Ln(f,{...o,rounded:"full",size:"small",icon:t?"stop-sm":"arrow-up-outline",active:t,"aria-pressed":t?"true":void 0,"aria-label":t?"Stop processing":"Send",className:n(e.className,Dt,{"k-processing":t})})};z.states=f.states;z.options=f.options;z.className=Dt;z.defaultOptions=Ut;import{Fragment as vr,jsx as Cr,jsxs as Sr}from"react/jsx-runtime";import je from"react";import{jsx as Gt}from"react/jsx-runtime";var Nn="k-list-group-sticky-header",Ye=e=>Gt("div",{className:n(Nn,e.className),children:Gt("div",{className:"k-list-header-text",children:e.children})});import{jsx as In}from"react/jsx-runtime";var gn="k-no-data",Ze=e=>{let{live:t,...o}=e;return In("span",{...o,className:n(gn,e.className),"aria-live":t?"polite":void 0,children:e.children})};var X="list",ee=X;import{jsx as Ft,jsxs as Vt}from"react/jsx-runtime";var et="k-list",kn=[],Cn={size:[r.undefined,r.small,r.medium,r.large]},vn={},C=e=>{let{size:t,virtualization:o,children:s,header:a,optionLabel:c,customValue:l,noData:m,screenReaders:b,...x}=e,h=je.Children.toArray(s)[0],I=h?.props?.children?je.Children.count(h.props.children):je.Children.count(s);return Vt("div",{...x,className:n(e.className,et,N(et,{size:t}),{"k-virtual-list":o}),children:[c,l,a&&Ft(Ye,{children:a}),s||(m!==void 0?m:Ft(Ze,{live:!0,children:"No data found."})),b&&s&&Vt(Ze,{className:"k-sr-only",live:!0,children:[I," items found."]})]})};C.states=kn;C.options=Cn;C.className=et;C.defaultOptions=vn;C.moduleName=X;C.folderName=ee;C.ariaSpec={selector:".k-list",rules:[{selector:".k-list .k-no-data",attribute:"aria-live=polite",usage:'Announces "No data found" to screen readers.'}]};import{jsx as An}from"react/jsx-runtime";var $t="k-list-container",Sn=[],Mn={},yn={},te=e=>{let{...t}=e;return An("div",{...t,className:n(e.className,$t),children:e.children})};te.states=Sn;te.options=Mn;te.className=$t;te.defaultOptions=yn;te.moduleName=X;te.folderName=ee;var W="checkbox",oe=W;import{jsx as Xt}from"react/jsx-runtime";var ye="k-checkbox",On=[i.hover,i.focus,i.valid,i.invalid,i.required,i.disabled,i.checked,i.indeterminate],Tn={size:[r.undefined,r.small,r.medium,r.large],rounded:[d.undefined,d.none,d.small,d.medium,d.large,d.full]},En={},B=e=>{let{id:t,checked:o,indeterminate:s,hover:a,focus:c,disabled:l,invalid:m,valid:b,required:x,size:g,rounded:h,wrapperRole:I,...M}=e;return Xt("span",{className:"k-checkbox-wrap",role:I,children:Xt("input",{...M,id:t,type:"checkbox",defaultChecked:o,required:x,disabled:l||void 0,"aria-invalid":m?"true":void 0,className:n(e.className,ye,N(ye,{size:g,rounded:h}),y(ye,{hover:a,focus:c,disabled:l,invalid:m,valid:b,indeterminate:s,checked:o}))})})};B.states=On;B.options=Tn;B.className=ye;B.defaultOptions=En;B.moduleName=W;B.folderName=oe;B.ariaSpec={selector:".k-checkbox",rules:[{selector:".k-checkbox",attribute:"role=checkbox or type=checkbox",usage:"Announces the checkbox role of the element."},{selector:".k-checkbox",attribute:"label for or aria-label or aria-labelledby (when has accessible name)",usage:"The input requires an accessible name to which it will be assigned."},{selector:".k-checkbox",attribute:"aria-checked=true/false/mixed or checked",usage:"For native checkboxes the checked state is handled by the browser. aria-checked is used for custom implementations."},{selector:".k-checkbox",attribute:"aria-describedby (when has hint or error)",usage:"Points to the hint or error message for the checkbox."},{selector:".k-checkbox",attribute:"disabled or aria-disabled=true (when disabled)",usage:"For native checkboxes use the HTML disabled attribute. aria-disabled for custom implementations."},{selector:".k-invalid, .ng-invalid",attribute:"aria-invalid=true (when invalid)",usage:"Rendered only when the CheckBox is in a form and announces the invalid state."}]};var P=B;import{jsx as Rn}from"react/jsx-runtime";var Wt="k-checkbox-list",Bn=[],Kn={},qt={layout:"vertical"},v=e=>{let{layout:t=qt.layout,...o}=e;return Rn("ul",{...o,className:n(e.className,Wt,{[`k-list-${t}`]:t}),children:e.children})};v.states=Bn;v.options=Kn;v.className=Wt;v.defaultOptions=qt;v.moduleName=W;v.folderName=oe;import{jsx as wn}from"react/jsx-runtime";var Jt="k-checkbox-list-item",Pn=[],_n={},Hn={},S=e=>{let{...t}=e;return wn("li",{...t,className:n(e.className,Jt),children:e.children})};S.states=Pn;S.options=_n;S.className=Jt;S.defaultOptions=Hn;S.moduleName=W;S.folderName=oe;import{Fragment as zn,jsx as Qt,jsxs as Dn}from"react/jsx-runtime";var D=({children:e="Label",id:t="cb-label-after",...o})=>Dn(zn,{children:[Qt(P,{id:t,...o}),Qt("label",{className:"k-checkbox-label",htmlFor:t,children:e})]});import{Fragment as ml,jsx as dl,jsxs as ul}from"react/jsx-runtime";import{Fragment as Ll,jsx as hl,jsxs as Nl}from"react/jsx-runtime";import{Fragment as vl,jsx as Cl,jsxs as Sl}from"react/jsx-runtime";import{jsx as Ol}from"react/jsx-runtime";import{jsx as Kl}from"react/jsx-runtime";import{jsx as Hl}from"react/jsx-runtime";import{jsx as K,jsxs as Yt}from"react/jsx-runtime";var Un=v.options,Gn=v.states,Fn={...v.defaultOptions,variant:"vertical"},Vn=[{name:"vertical",title:"Vertical"},{name:"horizontal",title:"Horizontal"}],$n=[],ne=e=>{let{variant:t,...o}=e;return t==="horizontal"?Yt(v,{layout:"horizontal",...o,children:[K(S,{children:K(D,{id:k("cb"),defaultChecked:!0,children:"Label"})}),K(S,{children:K(D,{id:k("cb"),children:"Label"})}),K(S,{children:K(D,{id:k("cb"),children:"Label"})})]}):Yt(v,{...o,children:[K(S,{children:K(D,{id:k("cb"),defaultChecked:!0,children:"Label"})}),K(S,{children:K(D,{id:k("cb"),children:"Label"})}),K(S,{children:K(D,{id:k("cb"),children:"Label"})})]})};ne.options=Un;ne.states=Gn;ne.variants=Vn;ne.defaultOptions=Fn;ne.modifiers=$n;ne.className=v.className;import{jsx as Yn}from"react/jsx-runtime";var Xn=P.options,Wn=P.states,qn=P.defaultOptions,Jn=[],Qn=[],se=e=>Yn(D,{id:k("checkbox"),...e,defaultChecked:!0,children:"Label"});se.options=Xn;se.states=Wn;se.variants=Jn;se.defaultOptions=qn;se.modifiers=Qn;se.className=P.className;import{jsx as q,jsxs as ts}from"react/jsx-runtime";var tt="k-list-item",Zn=[i.hover,i.focus,i.selected,i.disabled],jn={},es={},O=e=>{let{text:t,groupLabel:o,group:s,iconName:a,iconClassName:c,showCheckbox:l,checked:m,hover:b,focus:x,selected:g,disabled:h,actions:I,description:M,id:F,..._}=e,R=t||e.children;return ts("li",{..._,id:F,role:s?"presentation":"option",tabIndex:s?void 0:x?0:-1,"aria-selected":!s&&g?"true":s?void 0:"false","aria-disabled":!s&&h?"true":void 0,className:n(e.className,s?"k-list-group-item":tt,y(tt,{hover:b,focus:x,disabled:h,selected:g})),children:[l&&q(B,{checked:m}),a&&q("span",{className:"k-list-item-icon-wrapper",children:q(u,{icon:a,className:n("k-list-item-icon",c)})}),q("span",{className:"k-list-item-text",children:R}),I&&q("div",{className:"k-list-item-actions",children:I}),M&&q("span",{className:"k-list-item-description",children:M}),o&&o!==""&&q("div",{className:"k-list-item-group-label",children:o})]})};O.states=Zn;O.options=jn;O.className=tt;O.defaultOptions=es;O.moduleName=X;O.folderName=ee;O.ariaSpec={selector:".k-list-item",rules:[{selector:".k-list-item",attribute:"role=option",usage:"Each list item is an option in the listbox."},{selector:".k-list-item",attribute:"id",usage:"ID for aria-activedescendant reference."},{selector:".k-list-item",attribute:"aria-selected (when selectable)",usage:"Indicates the selected state of the option."},{selector:".k-list-group-item",attribute:"role=presentation",usage:"Group headers are presentational, not selectable options."},{selector:".k-list-item-icon",attribute:"aria-hidden=true",usage:"Decorative icons are hidden from assistive technology."}]};import{jsx as ns}from"react/jsx-runtime";var os="k-list-ul",ue=e=>{let{children:t,role:o,id:s,...a}=e;return ns("ul",{...a,id:s,role:o,className:n(os,e.className),children:t})};ue.ariaSpec={selector:".k-list-ul",rules:[{selector:'.k-list-ul[role="listbox"]',attribute:"role=listbox",usage:"For ungrouped lists, the UL has the listbox role."},{selector:'.k-list-ul[role="listbox"]',attribute:"aria-label or aria-labelledby (when has accessible name)",usage:"Accessible name for the listbox."},{selector:'.k-list-ul[role="group"]',attribute:"role=group",usage:"For grouped sublists under a group header."},{selector:'.k-list-ul[role="group"]',attribute:"aria-labelledby (when grouped)",usage:"References the group header ID."}]};import{jsx as ot,jsxs as is}from"react/jsx-runtime";var ss="k-list-content",U=e=>{let{virtualization:t,grouping:o,"aria-label":s,"aria-labelledby":a,listboxId:c,...l}=e;return is("div",{...l,className:n(ss,e.className),role:o?"listbox":void 0,id:o?c:void 0,"aria-label":o?s:void 0,"aria-labelledby":o?a:void 0,children:[o?e.children:ot(ue,{role:"listbox",id:c,"aria-label":s,"aria-labelledby":a,children:e.children}),t&&ot("div",{className:"k-height-container",children:ot("div",{})})]})};U.ariaSpec={selector:".k-list-content",rules:[{selector:'.k-list-content[role="listbox"]',attribute:"role=listbox",usage:"For grouped lists, the list content container has the listbox role."},{selector:'.k-list-content[role="listbox"]',attribute:"aria-label or aria-labelledby (when has accessible name)",usage:"Accessible name for the listbox."}]};import{Fragment as yc,jsx as Mc,jsxs as Ac}from"react/jsx-runtime";import{jsx as nt,jsxs as rs}from"react/jsx-runtime";var as="k-list-group-item",st=e=>{let{groupIconName:t,...o}=e;return rs("li",{...o,role:"presentation",className:n(as,e.className),children:[t&&nt("span",{className:"k-list-item-icon-wrapper",children:nt(u,{icon:t,className:"k-list-item-icon"})}),nt("span",{className:"k-list-item-text",children:e.children})]})};st.ariaSpec={selector:".k-list-group-item",rules:[{selector:".k-list-group-item",attribute:"role=presentation",usage:"Group headers are presentational, not selectable options."},{selector:".k-list-group-item",attribute:"id (when referenced)",usage:"ID for aria-labelledby on the parent group UL."}]};import{jsx as ds}from"react/jsx-runtime";var it="k-list-optionlabel",ls=[i.hover,i.focus,i.selected,i.disabled],cs={},ps={},Ae=e=>{let{text:t,hover:o,focus:s,selected:a,disabled:c,...l}=e;return ds("div",{...l,className:n(it,y(it,{hover:o,focus:s,selected:a,disabled:c})),children:t})};Ae.states=ls;Ae.options=cs;Ae.className=it;Ae.defaultOptions=ps;import{jsx as bs}from"react/jsx-runtime";var at="k-list-custom-value",ms=[i.hover,i.focus,i.selected,i.disabled],us={},fs={},Oe=e=>{let{text:t,hover:o,focus:s,selected:a,disabled:c,...l}=e;return bs("div",{...l,className:n(at,y(at,{hover:o,focus:s,selected:a,disabled:c})),children:t})};Oe.states=ms;Oe.options=us;Oe.className=at;Oe.defaultOptions=fs;import{Fragment as Vc,jsx as Fc,jsxs as $c}from"react/jsx-runtime";import{Fragment as Yc,jsx as Qc,jsxs as Zc}from"react/jsx-runtime";import{Fragment as ip,jsx as np,jsxs as sp}from"react/jsx-runtime";import{Fragment as mp,jsx as pp,jsxs as dp}from"react/jsx-runtime";import{jsx as xp}from"react/jsx-runtime";import{Fragment as kp,jsx as Ip,jsxs as Cp}from"react/jsx-runtime";import{Fragment as qp,jsx as Xp,jsxs as Wp}from"react/jsx-runtime";import{Fragment as nd,jsx as od,jsxs as sd}from"react/jsx-runtime";import{Fragment as dd,jsx as pd,jsxs as md}from"react/jsx-runtime";import{Fragment as Zt,jsx as fe,jsxs as xs}from"react/jsx-runtime";var Sd=e=>fe(E,{...e,separators:!1,inputAriaLabel:"AI-powered search",prefix:fe(Zt,{children:fe(u,{icon:"sparkles",className:"k-accent-icon","aria-hidden":"true"})}),suffix:xs(Zt,{children:[fe($,{icon:"microphone-outline",fillMode:"clear",rounded:"full",size:"small","aria-label":"Start voice input"}),fe(z,{disabled:!0})]})});export{Sd as SmartBoxDisabledSend};
|
|
1
|
+
var n=(...e)=>e.filter(t=>t!==!0&&!!t).map(t=>Array.isArray(t)?n(...t):typeof t=="object"?Object.keys(t).map((o,s)=>t[s]||t[o]&&o||null).filter(o=>o!==null).join(" "):t).filter(t=>!!t).join(" ");var N=(e,t)=>n({[`${e}-xs`]:t.size==="xsmall",[`${e}-sm`]:t.size==="small",[`${e}-md`]:t.size==="medium",[`${e}-lg`]:t.size==="large",[`${e}-xl`]:t.size==="xlarge",[`${e}-xxl`]:t.size==="xxlarge",[`${e}-xxxl`]:t.size==="xxxlarge"},{[`${e}-${t.fillMode}`]:t.fillMode},{[`${e}-${t.themeColor}`]:t.themeColor},{"k-rounded-sm":t.rounded==="small","k-rounded-md":t.rounded==="medium","k-rounded-lg":t.rounded==="large","k-rounded-full":t.rounded==="full","k-rounded-none":t.rounded==="none"}),y=(e,t)=>{let{valid:o,invalid:s,hover:a,focus:c,checked:l,active:m,selected:b,disabled:x,indeterminate:g,loading:h,empty:I,readonly:M,highlighted:F,..._}=t;return n({"k-valid":o,"k-invalid":s,"k-hover":a,"k-focus":c,"k-checked":l,"k-active":m,"k-selected":b,"k-disabled":x,"k-indeterminate":g&&!l,"k-loading":h,"k-empty":I,"k-readonly":M,"k-highlighted":F},Object.keys(_).reduce((R,T)=>(T.startsWith("k-")?R[T]=_[T]:R[`k-${T}`]=_[T],R),{}))};function rt(e,t){if(!t)return{};let o=Array.isArray(t)?t:[t];return Object.fromEntries(o.map(s=>[`k-${s}`,!0]))}var r={undefined:void 0,xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"},d={undefined:void 0,none:"none",small:"small",medium:"medium",large:"large",full:"full"},L={undefined:void 0,solid:"solid",flat:"flat",outline:"outline",clear:"clear",link:"link"},p={undefined:void 0,inherit:"inherit",base:"base",primary:"primary",secondary:"secondary",tertiary:"tertiary",info:"info",success:"success",warning:"warning",error:"error",inverse:"inverse"},i={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 Ee={};function k(e){return Ee[e]=(Ee[e]||0)+1,`k-${e}-${Ee[e]}`}var ie="input",xe=ie;import{jsx as io}from"react/jsx-runtime";var he="k-input",oo=[i.hover,i.focus,i.valid,i.invalid,i.required,i.disabled,i.loading,i.readonly],no={size:[r.undefined,r.small,r.medium,r.large],rounded:[d.undefined,d.none,d.small,d.medium,d.large,d.full],fillMode:[L.undefined,L.solid,L.flat,L.outline]},so={},A=e=>{let{hover:t,focus:o,disabled:s,invalid:a,valid:c,loading:l,readonly:m,size:b,rounded:x,fillMode:g,...h}=e;return io("span",{...h,className:n(e.className,he,N(he,{size:b,rounded:x,fillMode:g}),y(he,{hover:t,focus:o,disabled:s,invalid:a,valid:c,loading:l,readonly:m}))})};A.states=oo;A.options=no;A.className=he;A.defaultOptions=so;A.moduleName=ie;A.folderName=xe;import{jsx as co}from"react/jsx-runtime";var Le="k-picker",ao=[i.hover,i.focus,i.valid,i.invalid,i.required,i.disabled,i.loading,i.readonly],ro={size:[r.undefined,r.small,r.medium,r.large],rounded:[d.undefined,d.none,d.small,d.medium,d.large,d.full],fillMode:[L.undefined,L.solid,L.flat,L.outline]},lo={},J=e=>{let{hover:t,focus:o,disabled:s,invalid:a,valid:c,loading:l,readonly:m,size:b,rounded:x,fillMode:g,...h}=e;return co("span",{...h,className:n(e.className,Le,N(Le,{size:b,rounded:x,fillMode:g}),y(Le,{hover:t,focus:o,disabled:s,invalid:a,valid:c,loading:l,readonly:m})),children:e.children})};J.states=ao;J.options=ro;J.className=Le;J.defaultOptions=lo;J.moduleName=ie;J.folderName=xe;import{Fragment as fo,jsx as lt}from"react/jsx-runtime";var Be="k-font-icon",po=[],mo={size:[r.undefined,r.xsmall,r.small,r.medium,r.large,r.xlarge,r.xxlarge,r.xxxlarge],themeColor:[p.undefined,p.base,p.primary,p.secondary,p.tertiary,p.success,p.warning,p.error,p.info]},uo={},ae=e=>{let{size:t,themeColor:o,icon:s,rotate:a,flip:c,...l}=e;return s?lt("span",{...l,className:n(e.className,Be,N(Be,{size:t}),{[`k-i-${s}`]:s,[`k-color-${o}`]:o,[`k-rotate-${a}`]:a,"k-flip-h":c==="h"||c==="both","k-flip-v":c==="v"||c==="both"}),"aria-hidden":"true"}):lt(fo,{})};ae.states=po;ae.options=mo;ae.className=Be;ae.defaultOptions=uo;var ct=ae;import{Fragment as ho,jsx as Ne}from"react/jsx-runtime";var Ke="k-svg-icon",bo=[],xo={size:[r.undefined,r.xsmall,r.small,r.medium,r.large,r.xlarge,r.xxlarge,r.xxxlarge],themeColor:[p.undefined,p.base,p.primary,p.secondary,p.tertiary,p.success,p.warning,p.error,p.info]},pt={viewBox:"0 0 24 24"},re=e=>{let{size:t,themeColor:o,rotate:s,flip:a,viewBox:c=pt.viewBox,icon:l,...m}=e;if(!l)return Ne(ho,{});if(l==="none")return Ne("span",{...m,className:n(e.className,Ke,N("k-icon",{size:t}),"k-none"),"aria-hidden":"true"});let b=typeof l=="object"&&l.name&&l.name;return Ne("span",{...m,className:n(e.className,Ke,N("k-icon",{size:t}),{[`k-svg-i-${b}`]:b,[`k-color-${o}`]:o,[`k-rotate-${s}`]:s,"k-flip-h":a==="h"||a==="both","k-flip-v":a==="v"||a==="both"}),"aria-hidden":"true",children:Ne("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof l=="object"?l.viewBox:c,dangerouslySetInnerHTML:typeof l=="object"?{__html:l.content}:void 0,children:l?void 0:e.children})})};re.states=bo;re.options=xo;re.className=Ke;re.defaultOptions=pt;var Re=re;import*as Pe from"@progress/kendo-svg-icons";var dt="icon",mt="icons";import{useContext as No}from"react";import{createContext as Lo}from"react";var ut=Lo({iconsType:"svg"});import{Fragment as ft,jsx as le}from"react/jsx-runtime";var ge="k-icon",go=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),Io=[],ko={size:[r.undefined,r.xsmall,r.small,r.medium,r.large,r.xlarge,r.xxlarge,r.xxxlarge],themeColor:[p.undefined,p.base,p.primary,p.secondary,p.tertiary,p.success,p.warning,p.error,p.info]},_e={viewBox:"0 0 24 24",type:"svg"},u=e=>{let{iconsType:t}=No(ut),{size:o,themeColor:s,icon:a,type:c=t||_e.type,rotate:l,flip:m,viewBox:b=_e.viewBox,...x}=e;if(!a)return le(ft,{});if((t||c)==="svg"){if(a==="none")return le(Re,{...x,className:n(e.className,ge),icon:a,size:o});let h=Pe[a]?a:go(`${a}-icon`);return Pe[h]?le(Re,{...x,className:n(e.className,ge),icon:Pe[h],size:o,themeColor:s,rotate:l,flip:m,viewBox:b}):le(ft,{})}return le(ct,{...x,className:n(e.className,ge),icon:a,size:o,themeColor:s,rotate:l,flip:m})};u.states=Io;u.options=ko;u.defaultOptions=_e;u.className=ge;u.moduleName=dt;u.folderName=mt;u.ariaSpec={selector:".k-icon, .k-svg-icon",rules:[{selector:".k-icon, .k-svg-icon",attribute:"aria-hidden=true",usage:"Hides the icon element and all its children from assistive technologies."}]};import{Fragment as So,jsx as He}from"react/jsx-runtime";var bt="k-clear-value",Co=[i.disabled,i.loading,i.readonly],vo={},ce=e=>{let{disabled:t,loading:o,readonly:s,value:a}=e;return t||s||o||!a?He(So,{}):He("span",{className:n(e.className,bt),children:He(u,{icon:"x"})})};ce.states=Co;ce.options=vo;ce.className=bt;import{jsx as Ao}from"react/jsx-runtime";var we="k-input-inner",Mo=[],yo={},Ie={type:"text",autocomplete:"off",value:"",placeholder:""},V=e=>{let{value:t=Ie.value,type:o=Ie.type,placeholder:s=Ie.placeholder,autocomplete:a=Ie.autocomplete,disabled:c,readOnly:l,...m}=e;return Ao("input",{...m,type:o,className:n(e.className,we,N(we,e)),placeholder:s,autoComplete:a,defaultValue:t,disabled:c||void 0,readOnly:l||void 0})};V.states=Mo;V.options=yo;V.className=we;import{jsx as xt,jsxs as Eo}from"react/jsx-runtime";var ze="k-input-inner",Oo=[],To={},De=e=>{let{value:t,placeholder:o,showValue:s,valueIcon:a,valueIconName:c,...l}=e;return Eo("span",{...l,className:n(e.className,ze,N(ze,e)),children:[a,!a&&c&&xt(u,{className:"k-input-value-icon",icon:c}),s&&!t&&o,s&&t&&xt("span",{className:"k-input-value-text",children:t})]})};De.states=Oo;De.options=To;De.className=ze;import{jsx as Ro}from"react/jsx-runtime";var Ue="k-input-inner",Bo=[],Ko={},ht={value:"",placeholder:""},Ge=e=>{let{value:t=ht.value,placeholder:o=ht.placeholder,rows:s,disabled:a,...c}=e;return Ro("textarea",{...c,className:n(e.className,Ue,N(Ue,e)),placeholder:o,rows:s,defaultValue:t,disabled:a||void 0})};Ge.states=Bo;Ge.options=Ko;Ge.className=Ue;import{Fragment as _o,jsx as Lt}from"react/jsx-runtime";var Nt="k-input-loading-icon",Po=[i.disabled,i.loading],ke=e=>{let{disabled:t,loading:o}=e;return t||!o?Lt(_o,{}):Lt("span",{className:n(e.className,Nt,"k-icon k-i-loading")})};ke.states=Po;ke.className=Nt;import{Fragment as zo,jsx as gt}from"react/jsx-runtime";var It="k-input-validation-icon",Ho=[i.valid,i.invalid,i.disabled,i.loading],wo={},pe=e=>{let{valid:t,invalid:o,disabled:s,loading:a}=e,c=o?"warning-circle":"check-circle";return s||a||!!!(t||o)?gt(zo,{}):gt(u,{className:n(It),icon:c})};pe.states=Ho;pe.options=wo;pe.className=It;import{Fragment as Go,jsx as kt}from"react/jsx-runtime";var Do="k-input-prefix",Uo={direction:"horizontal"},Ce=e=>{let{direction:t=Uo.direction,...o}=e;return e.children?kt("span",{...o,className:n(Do,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):kt(Go,{})};import{Fragment as $o,jsx as Ct}from"react/jsx-runtime";var Fo="k-input-suffix",Vo={direction:"horizontal"},ve=e=>{let{direction:t=Vo.direction,...o}=e;return e.children?Ct("span",{...o,className:n(Fo,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):Ct($o,{})};import{jsx as Bi}from"react/jsx-runtime";import{jsx as _i}from"react/jsx-runtime";import{jsx as Wo}from"react/jsx-runtime";var vt="k-input-separator",Xo={direction:"vertical"},Q=e=>{let{direction:t=Xo.direction,...o}=e;return Wo("span",{...o,className:n(vt,e.className,{[`${vt}-${t}`]:t})})};var Fe="button",St=Fe;import{Fragment as Yo,jsx as de,jsxs as Mt}from"react/jsx-runtime";var me="k-button",qo=["icon-button"],Jo=[i.hover,i.focus,i.active,i.selected,i.disabled,i.generating],Qo={size:[r.undefined,r.xsmall,r.small,r.medium,r.large],rounded:[d.undefined,d.none,d.small,d.medium,d.large,d.full],fillMode:[L.undefined,L.solid,L.flat,L.outline,L.clear,L.link],themeColor:[p.undefined,p.base,p.primary,p.secondary,p.tertiary,p.success,p.warning,p.error,p.info,p.inverse]},Ve={showArrow:!1,arrowIconName:"chevron-down"},f=e=>{let{as:t="button",size:o,rounded:s,fillMode:a,themeColor:c,showArrow:l=Ve.showArrow,arrowIconName:m=Ve.arrowIconName,variant:b,hover:x,focus:g,active:h,selected:I,disabled:M,togglable:F,ariaDisabled:_,icon:R,text:T,iconClassName:be,className:Te,...jt}=e,eo=R!==void 0,to=e.children!==void 0;return Mt(t,{className:n(Te,me,rt(me,b),N(me,{size:o,rounded:s,fillMode:a,themeColor:c}),y(me,{hover:x,focus:g,active:h,disabled:M||_,selected:I}),{"k-icon-button":!T&&!to&&eo}),...jt,"aria-pressed":F?I?"true":"false":void 0,"aria-disabled":_?"true":void 0,disabled:M||void 0,children:[R&&de(u,{className:n(be,"k-button-icon"),icon:R}),T?Mt(Yo,{children:[T&&de("span",{className:"k-button-text",children:T}),e.children]}):e.children&&de("span",{className:"k-button-text",children:e.children}),l&&de("span",{className:"k-menu-button-arrow k-button-arrow",children:de(u,{icon:m})})]})};f.states=Jo;f.options=Qo;f.variants=qo;f.className=me;f.defaultOptions=Ve;f.moduleName=Fe;f.folderName=St;f.ariaSpec={selector:".k-button",rules:[{selector:".k-button",attribute:"role=button or nodeName=button",usage:"The button role is implicit from the native <button> element."},{selector:".k-button",attribute:"aria-label (when icon-only)",usage:"Required for icon-only buttons that have no visible text."},{selector:".k-button",attribute:"aria-pressed (when togglable)",usage:"Indicates the pressed state of a toggle button."},{selector:".k-button",attribute:"disabled (when disabled)",usage:"Rendered when the button is disabled."}]};import{jsx as Zo}from"react/jsx-runtime";var Se=e=>Zo(f,{children:"Button",...e});import{Fragment as yt,jsx as H,jsxs as $e}from"react/jsx-runtime";var jo=A.states,en=A.defaultOptions,tn=A.options,on=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"},{name:"validation-icon",title:"Validation Icon"},{name:"separators",title:"Separators"}],nn=[],Y=e=>{let{modifiers:t,valid:o,invalid:s,loading:a,disabled:c,readonly:l,...m}=e,b=t?.prefix,x=t?.suffix,g=t?.["clear-button"],h=t?.["validation-icon"],I=t?.separators;return $e(A,{...m,valid:o,invalid:s,loading:a,disabled:c,readonly:l,style:{width:300},children:[b&&$e(yt,{children:[H(Ce,{children:H(u,{icon:"lock"})}),I&&H(Q,{})]}),H(V,{placeholder:"Placeholder",value:"Value"}),h&&H(pe,{valid:o,invalid:s,loading:a,disabled:c}),H(ke,{loading:a,disabled:c}),g&&H(ce,{loading:a,disabled:c,readonly:l,value:"Value"}),x&&$e(yt,{children:[I&&H(Q,{}),H(ve,{children:H(Se,{size:m.size,fillMode:"clear",children:"Send"})})]})]})};Y.options=tn;Y.states=jo;Y.variants=nn;Y.defaultOptions=en;Y.modifiers=on;Y.className=A.className;var Xe="popup",At=Xe;import{jsx as Ot}from"react/jsx-runtime";var Tt="k-animation-container",sn=[],an={},Et={positionMode:"absolute"},G=e=>{let{positionMode:t=Et.positionMode,animationStyle:o,offset:s,...a}=e;return Ot("div",{...a,style:{...s,...e.style},className:n(e.className,Tt,"k-animation-container-shown",{"k-animation-container-fixed":t==="fixed"}),children:Ot("div",{className:"k-child-animation-container",style:o,children:e.children})})};G.states=sn;G.options=an;G.className=Tt;G.defaultOptions=Et;G.moduleName=Xe;G.folderName=At;var We="popup",Bt=We;import{jsx as Kt}from"react/jsx-runtime";var Rt="k-popup",rn=[],ln={},Pt={positionMode:"absolute"},w=e=>{let{offset:t,positionMode:o=Pt.positionMode,animationStyle:s,containerClassName:a,containerRole:c,containerAriaLabel:l,...m}=e;return Kt(G,{positionMode:o,offset:t,animationStyle:s,className:a,role:c,"aria-label":l,children:Kt("div",{...m,className:n(e.className,Rt),children:e.children})})};w.states=rn;w.options=ln;w.className=Rt;w.defaultOptions=Pt;w.moduleName=We;w.folderName=Bt;w.ariaSpec={selector:".k-popup",rules:[{selector:".k-animation-container",attribute:"role (when appended to body)",usage:'Container gets role="region" when appended to document body. Popup is a building block \u2014 ARIA semantics come from consuming components.'}]};var qe="smart-box",_t=qe;import{Fragment as Je,jsx as Z,jsxs as Me}from"react/jsx-runtime";var Ht="k-smart-box",cn=[i.hover,i.focus,i.disabled],pn={size:[r.undefined,r.small,r.medium,r.large],rounded:[d.undefined,d.none,d.small,d.medium,d.large,d.full],fillMode:[L.undefined,L.solid,L.flat,L.outline]},wt={separators:!0},E=e=>{let{size:t,rounded:o,fillMode:s,separators:a=wt.separators,prefix:c,suffix:l,value:m,placeholder:b,hover:x,focus:g,disabled:h,popup:I,opened:M,processing:F,inputAriaLabel:_,inputAriaControls:R,inputAriaActiveDescendant:T,inputAriaAutocomplete:be,...Te}=e;return Me(Je,{children:[Me(A,{...Te,size:t,rounded:o,fillMode:s,hover:x,focus:g,disabled:h,loading:F,className:n(e.className,Ht),children:[c&&Me(Je,{children:[Z(Ce,{children:c}),a&&Z(Q,{})]}),Z(V,{placeholder:b,value:m,role:"combobox","aria-haspopup":"listbox","aria-expanded":M?"true":"false","aria-autocomplete":be,"aria-controls":M?R:void 0,"aria-activedescendant":M?T:void 0,"aria-label":_}),l&&Me(Je,{children:[a&&Z(Q,{}),Z(ve,{children:l})]})]}),M&&I&&Z(w,{className:"k-smart-box-popup",children:I})]})};E.states=cn;E.options=pn;E.className=Ht;E.defaultOptions=wt;E.moduleName=qe;E.folderName=_t;E.ariaSpec={selector:".k-smart-box",rules:[{selector:".k-smart-box .k-input-inner",attribute:"role=combobox",usage:"Announces the combobox role for the SmartBox input."},{selector:".k-smart-box .k-input-inner",attribute:"aria-label or aria-labelledby",usage:'Provides an accessible label for the SmartBox (e.g., "AI-powered search").'},{selector:".k-smart-box .k-input-inner",attribute:"aria-expanded",usage:"Indicates whether the suggestion popup is currently visible."},{selector:".k-smart-box .k-input-inner",attribute:"aria-haspopup=listbox",usage:"Indicates that the SmartBox has a popup listbox with suggestions."},{selector:".k-smart-box .k-input-inner",attribute:"aria-controls (when present)",usage:"References the ID of the popup listbox element when the popup is open."},{selector:".k-smart-box .k-input-inner",attribute:"aria-autocomplete (when present)",usage:"Indicates the autocomplete behavior of the input field."},{selector:".k-smart-box .k-input-inner",attribute:"aria-activedescendant (when present)",usage:"When the popup is open and keyboard navigation is active, references the ID of the currently focused list item."},{selector:".k-smart-box .k-input-prefix .k-icon",attribute:"aria-hidden=true",usage:"Decorative icons in the prefix area are hidden from screen readers."},{selector:".k-smart-box .k-input-suffix .k-button",attribute:"aria-label",usage:'Suffix buttons must have accessible labels describing their function (e.g., "Start voice input", "Send prompt").'},{selector:".k-smart-box .k-smart-box-send",attribute:"aria-label",usage:'The send button must be labelled to indicate its current action (e.g., "Send" or "Stop processing").'},{selector:".k-smart-box .k-smart-box-send.k-disabled",attribute:"disabled or aria-disabled=true",usage:"Indicates the button is disabled when there is no input or processing is not active."},{selector:".k-smart-box .k-smart-box-send.k-processing",attribute:"aria-pressed=true",usage:"Indicates that processing is in progress. The button changes function to stop processing."}]};import{jsx as dn}from"react/jsx-runtime";var $=e=>dn(f,{icon:"folder",...e,"aria-label":e["aria-label"]||"Folder",children:void 0});import{jsx as mn}from"react/jsx-runtime";var zt=e=>mn(f,{icon:"folder",children:"Button",...e});import{jsx as Qe}from"react/jsx-runtime";var un=f.options,fn=f.states,bn={...f.defaultOptions,variant:"text"},xn=[{name:"icon-only",title:"Icon Only"},{name:"icon-and-text",title:"Icon & Text"},{name:"text",title:"Text"}],hn=[],j=e=>{let{variant:t,...o}=e;switch(t){case"icon-only":return Qe($,{...o,icon:"star"});case"icon-and-text":return Qe(zt,{...o,icon:"star",children:"Button"});default:return Qe(Se,{...o,children:"Button"})}};j.options=un;j.states=fn;j.variants=xn;j.defaultOptions=bn;j.modifiers=hn;j.className=f.className;import{jsx as Ln}from"react/jsx-runtime";var Dt="k-smart-box-send",Ut={processing:!1},z=e=>{let{processing:t=Ut.processing,...o}=e;return Ln(f,{...o,rounded:"full",size:"small",icon:t?"stop":"arrow-up",active:t,"aria-pressed":t?"true":void 0,"aria-label":t?"Stop processing":"Send",className:n(e.className,Dt,{"k-processing":t})})};z.states=f.states;z.options=f.options;z.className=Dt;z.defaultOptions=Ut;import{Fragment as vr,jsx as Cr,jsxs as Sr}from"react/jsx-runtime";import je from"react";import{jsx as Gt}from"react/jsx-runtime";var Nn="k-list-group-sticky-header",Ye=e=>Gt("div",{className:n(Nn,e.className),children:Gt("div",{className:"k-list-header-text",children:e.children})});import{jsx as In}from"react/jsx-runtime";var gn="k-no-data",Ze=e=>{let{live:t,...o}=e;return In("span",{...o,className:n(gn,e.className),"aria-live":t?"polite":void 0,children:e.children})};var X="list",ee=X;import{jsx as Ft,jsxs as Vt}from"react/jsx-runtime";var et="k-list",kn=[],Cn={size:[r.undefined,r.small,r.medium,r.large]},vn={},C=e=>{let{size:t,virtualization:o,children:s,header:a,optionLabel:c,customValue:l,noData:m,screenReaders:b,...x}=e,h=je.Children.toArray(s)[0],I=h?.props?.children?je.Children.count(h.props.children):je.Children.count(s);return Vt("div",{...x,className:n(e.className,et,N(et,{size:t}),{"k-virtual-list":o}),children:[c,l,a&&Ft(Ye,{children:a}),s||(m!==void 0?m:Ft(Ze,{live:!0,children:"No data found."})),b&&s&&Vt(Ze,{className:"k-sr-only",live:!0,children:[I," items found."]})]})};C.states=kn;C.options=Cn;C.className=et;C.defaultOptions=vn;C.moduleName=X;C.folderName=ee;C.ariaSpec={selector:".k-list",rules:[{selector:".k-list .k-no-data",attribute:"aria-live=polite",usage:'Announces "No data found" to screen readers.'}]};import{jsx as An}from"react/jsx-runtime";var $t="k-list-container",Sn=[],Mn={},yn={},te=e=>{let{...t}=e;return An("div",{...t,className:n(e.className,$t),children:e.children})};te.states=Sn;te.options=Mn;te.className=$t;te.defaultOptions=yn;te.moduleName=X;te.folderName=ee;var W="checkbox",oe=W;import{jsx as Xt}from"react/jsx-runtime";var ye="k-checkbox",On=[i.hover,i.focus,i.valid,i.invalid,i.required,i.disabled,i.checked,i.indeterminate],Tn={size:[r.undefined,r.small,r.medium,r.large],rounded:[d.undefined,d.none,d.small,d.medium,d.large,d.full]},En={},B=e=>{let{id:t,checked:o,indeterminate:s,hover:a,focus:c,disabled:l,invalid:m,valid:b,required:x,size:g,rounded:h,wrapperRole:I,...M}=e;return Xt("span",{className:"k-checkbox-wrap",role:I,children:Xt("input",{...M,id:t,type:"checkbox",defaultChecked:o,required:x,disabled:l||void 0,"aria-invalid":m?"true":void 0,className:n(e.className,ye,N(ye,{size:g,rounded:h}),y(ye,{hover:a,focus:c,disabled:l,invalid:m,valid:b,indeterminate:s,checked:o}))})})};B.states=On;B.options=Tn;B.className=ye;B.defaultOptions=En;B.moduleName=W;B.folderName=oe;B.ariaSpec={selector:".k-checkbox",rules:[{selector:".k-checkbox",attribute:"role=checkbox or type=checkbox",usage:"Announces the checkbox role of the element."},{selector:".k-checkbox",attribute:"label for or aria-label or aria-labelledby (when has accessible name)",usage:"The input requires an accessible name to which it will be assigned."},{selector:".k-checkbox",attribute:"aria-checked=true/false/mixed or checked",usage:"For native checkboxes the checked state is handled by the browser. aria-checked is used for custom implementations."},{selector:".k-checkbox",attribute:"aria-describedby (when has hint or error)",usage:"Points to the hint or error message for the checkbox."},{selector:".k-checkbox",attribute:"disabled or aria-disabled=true (when disabled)",usage:"For native checkboxes use the HTML disabled attribute. aria-disabled for custom implementations."},{selector:".k-invalid, .ng-invalid",attribute:"aria-invalid=true (when invalid)",usage:"Rendered only when the CheckBox is in a form and announces the invalid state."}]};var P=B;import{jsx as Rn}from"react/jsx-runtime";var Wt="k-checkbox-list",Bn=[],Kn={},qt={layout:"vertical"},v=e=>{let{layout:t=qt.layout,...o}=e;return Rn("ul",{...o,className:n(e.className,Wt,{[`k-list-${t}`]:t}),children:e.children})};v.states=Bn;v.options=Kn;v.className=Wt;v.defaultOptions=qt;v.moduleName=W;v.folderName=oe;import{jsx as wn}from"react/jsx-runtime";var Jt="k-checkbox-list-item",Pn=[],_n={},Hn={},S=e=>{let{...t}=e;return wn("li",{...t,className:n(e.className,Jt),children:e.children})};S.states=Pn;S.options=_n;S.className=Jt;S.defaultOptions=Hn;S.moduleName=W;S.folderName=oe;import{Fragment as zn,jsx as Qt,jsxs as Dn}from"react/jsx-runtime";var D=({children:e="Label",id:t="cb-label-after",...o})=>Dn(zn,{children:[Qt(P,{id:t,...o}),Qt("label",{className:"k-checkbox-label",htmlFor:t,children:e})]});import{Fragment as ml,jsx as dl,jsxs as ul}from"react/jsx-runtime";import{Fragment as Ll,jsx as hl,jsxs as Nl}from"react/jsx-runtime";import{Fragment as vl,jsx as Cl,jsxs as Sl}from"react/jsx-runtime";import{jsx as Ol}from"react/jsx-runtime";import{jsx as Kl}from"react/jsx-runtime";import{jsx as Hl}from"react/jsx-runtime";import{jsx as K,jsxs as Yt}from"react/jsx-runtime";var Un=v.options,Gn=v.states,Fn={...v.defaultOptions,variant:"vertical"},Vn=[{name:"vertical",title:"Vertical"},{name:"horizontal",title:"Horizontal"}],$n=[],ne=e=>{let{variant:t,...o}=e;return t==="horizontal"?Yt(v,{layout:"horizontal",...o,children:[K(S,{children:K(D,{id:k("cb"),defaultChecked:!0,children:"Label"})}),K(S,{children:K(D,{id:k("cb"),children:"Label"})}),K(S,{children:K(D,{id:k("cb"),children:"Label"})})]}):Yt(v,{...o,children:[K(S,{children:K(D,{id:k("cb"),defaultChecked:!0,children:"Label"})}),K(S,{children:K(D,{id:k("cb"),children:"Label"})}),K(S,{children:K(D,{id:k("cb"),children:"Label"})})]})};ne.options=Un;ne.states=Gn;ne.variants=Vn;ne.defaultOptions=Fn;ne.modifiers=$n;ne.className=v.className;import{jsx as Yn}from"react/jsx-runtime";var Xn=P.options,Wn=P.states,qn=P.defaultOptions,Jn=[],Qn=[],se=e=>Yn(D,{id:k("checkbox"),...e,defaultChecked:!0,children:"Label"});se.options=Xn;se.states=Wn;se.variants=Jn;se.defaultOptions=qn;se.modifiers=Qn;se.className=P.className;import{jsx as q,jsxs as ts}from"react/jsx-runtime";var tt="k-list-item",Zn=[i.hover,i.focus,i.selected,i.disabled],jn={},es={},O=e=>{let{text:t,groupLabel:o,group:s,iconName:a,iconClassName:c,showCheckbox:l,checked:m,hover:b,focus:x,selected:g,disabled:h,actions:I,description:M,id:F,..._}=e,R=t||e.children;return ts("li",{..._,id:F,role:s?"presentation":"option",tabIndex:s?void 0:x?0:-1,"aria-selected":!s&&g?"true":s?void 0:"false","aria-disabled":!s&&h?"true":void 0,className:n(e.className,s?"k-list-group-item":tt,y(tt,{hover:b,focus:x,disabled:h,selected:g})),children:[l&&q(B,{checked:m}),a&&q("span",{className:"k-list-item-icon-wrapper",children:q(u,{icon:a,className:n("k-list-item-icon",c)})}),q("span",{className:"k-list-item-text",children:R}),I&&q("div",{className:"k-list-item-actions",children:I}),M&&q("span",{className:"k-list-item-description",children:M}),o&&o!==""&&q("div",{className:"k-list-item-group-label",children:o})]})};O.states=Zn;O.options=jn;O.className=tt;O.defaultOptions=es;O.moduleName=X;O.folderName=ee;O.ariaSpec={selector:".k-list-item",rules:[{selector:".k-list-item",attribute:"role=option",usage:"Each list item is an option in the listbox."},{selector:".k-list-item",attribute:"id",usage:"ID for aria-activedescendant reference."},{selector:".k-list-item",attribute:"aria-selected (when selectable)",usage:"Indicates the selected state of the option."},{selector:".k-list-group-item",attribute:"role=presentation",usage:"Group headers are presentational, not selectable options."},{selector:".k-list-item-icon",attribute:"aria-hidden=true",usage:"Decorative icons are hidden from assistive technology."}]};import{jsx as ns}from"react/jsx-runtime";var os="k-list-ul",ue=e=>{let{children:t,role:o,id:s,...a}=e;return ns("ul",{...a,id:s,role:o,className:n(os,e.className),children:t})};ue.ariaSpec={selector:".k-list-ul",rules:[{selector:'.k-list-ul[role="listbox"]',attribute:"role=listbox",usage:"For ungrouped lists, the UL has the listbox role."},{selector:'.k-list-ul[role="listbox"]',attribute:"aria-label or aria-labelledby (when has accessible name)",usage:"Accessible name for the listbox."},{selector:'.k-list-ul[role="group"]',attribute:"role=group",usage:"For grouped sublists under a group header."},{selector:'.k-list-ul[role="group"]',attribute:"aria-labelledby (when grouped)",usage:"References the group header ID."}]};import{jsx as ot,jsxs as is}from"react/jsx-runtime";var ss="k-list-content",U=e=>{let{virtualization:t,grouping:o,"aria-label":s,"aria-labelledby":a,listboxId:c,...l}=e;return is("div",{...l,className:n(ss,e.className),role:o?"listbox":void 0,id:o?c:void 0,"aria-label":o?s:void 0,"aria-labelledby":o?a:void 0,children:[o?e.children:ot(ue,{role:"listbox",id:c,"aria-label":s,"aria-labelledby":a,children:e.children}),t&&ot("div",{className:"k-height-container",children:ot("div",{})})]})};U.ariaSpec={selector:".k-list-content",rules:[{selector:'.k-list-content[role="listbox"]',attribute:"role=listbox",usage:"For grouped lists, the list content container has the listbox role."},{selector:'.k-list-content[role="listbox"]',attribute:"aria-label or aria-labelledby (when has accessible name)",usage:"Accessible name for the listbox."}]};import{Fragment as yc,jsx as Mc,jsxs as Ac}from"react/jsx-runtime";import{jsx as nt,jsxs as rs}from"react/jsx-runtime";var as="k-list-group-item",st=e=>{let{groupIconName:t,...o}=e;return rs("li",{...o,role:"presentation",className:n(as,e.className),children:[t&&nt("span",{className:"k-list-item-icon-wrapper",children:nt(u,{icon:t,className:"k-list-item-icon"})}),nt("span",{className:"k-list-item-text",children:e.children})]})};st.ariaSpec={selector:".k-list-group-item",rules:[{selector:".k-list-group-item",attribute:"role=presentation",usage:"Group headers are presentational, not selectable options."},{selector:".k-list-group-item",attribute:"id (when referenced)",usage:"ID for aria-labelledby on the parent group UL."}]};import{jsx as ds}from"react/jsx-runtime";var it="k-list-optionlabel",ls=[i.hover,i.focus,i.selected,i.disabled],cs={},ps={},Ae=e=>{let{text:t,hover:o,focus:s,selected:a,disabled:c,...l}=e;return ds("div",{...l,className:n(it,y(it,{hover:o,focus:s,selected:a,disabled:c})),children:t})};Ae.states=ls;Ae.options=cs;Ae.className=it;Ae.defaultOptions=ps;import{jsx as bs}from"react/jsx-runtime";var at="k-list-custom-value",ms=[i.hover,i.focus,i.selected,i.disabled],us={},fs={},Oe=e=>{let{text:t,hover:o,focus:s,selected:a,disabled:c,...l}=e;return bs("div",{...l,className:n(at,y(at,{hover:o,focus:s,selected:a,disabled:c})),children:t})};Oe.states=ms;Oe.options=us;Oe.className=at;Oe.defaultOptions=fs;import{Fragment as Vc,jsx as Fc,jsxs as $c}from"react/jsx-runtime";import{Fragment as Yc,jsx as Qc,jsxs as Zc}from"react/jsx-runtime";import{Fragment as ip,jsx as np,jsxs as sp}from"react/jsx-runtime";import{Fragment as mp,jsx as pp,jsxs as dp}from"react/jsx-runtime";import{jsx as xp}from"react/jsx-runtime";import{Fragment as kp,jsx as Ip,jsxs as Cp}from"react/jsx-runtime";import{Fragment as qp,jsx as Xp,jsxs as Wp}from"react/jsx-runtime";import{Fragment as nd,jsx as od,jsxs as sd}from"react/jsx-runtime";import{Fragment as dd,jsx as pd,jsxs as md}from"react/jsx-runtime";import{Fragment as Zt,jsx as fe,jsxs as xs}from"react/jsx-runtime";var Sd=e=>fe(E,{...e,separators:!1,inputAriaLabel:"AI-powered search",prefix:fe(Zt,{children:fe(u,{icon:"sparkles",className:"k-accent-icon","aria-hidden":"true"})}),suffix:xs(Zt,{children:[fe($,{icon:"microphone",fillMode:"clear",rounded:"full",size:"small","aria-label":"Start voice input"}),fe(z,{disabled:!0})]})});export{Sd as SmartBoxDisabledSend};
|