@progress/kendo-themes-html 14.0.0-dev.5 → 14.0.0-dev.6
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/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 c=(...t)=>t.filter(e=>e!==!0&&!!e).map(e=>Array.isArray(e)?c(...e):typeof e=="object"?Object.keys(e).map((r,a)=>e[a]||e[r]&&r||null).filter(r=>r!==null).join(" "):e).filter(e=>!!e).join(" ");var g=(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"}),G=(t,e)=>{let{valid:r,invalid:a,hover:l,focus:d,checked:i,active:p,selected:f,disabled:h,indeterminate:M,loading:v,empty:I,readonly:A,highlighted:L,...B}=e;return c({"k-valid":r,"k-invalid":a,"k-hover":l,"k-focus":d,"k-checked":i,"k-active":p,"k-selected":f,"k-disabled":h,"k-indeterminate":M&&!i,"k-loading":v,"k-empty":I,"k-readonly":A,"k-highlighted":L},Object.keys(B).reduce((b,u)=>(u.startsWith("k-")?b[u]=B[u]:b[`k-${u}`]=B[u],b),{}))};function X(t,e){if(!e)return{};let r=Array.isArray(e)?e:[e];return Object.fromEntries(r.map(a=>[`k-${a}`,!0]))}var n={undefined:void 0,xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"},T={undefined:void 0,none:"none",small:"small",medium:"medium",large:"large",full:"full"},N={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"},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 he,jsx as q}from"react/jsx-runtime";var z="k-font-icon",pe=[],fe={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]},xe={},C=t=>{let{size:e,themeColor:r,icon:a,rotate:l,flip:d,...i}=t;return a?q("span",{...i,className:c(t.className,z,g(z,{size:e}),{[`k-i-${a}`]:a,[`k-color-${r}`]:r,[`k-rotate-${l}`]:l,"k-flip-h":d==="h"||d==="both","k-flip-v":d==="v"||d==="both"}),"aria-hidden":"true"}):q(he,{})};C.states=pe;C.options=fe;C.className=z;C.defaultOptions=xe;var W=C;import{Fragment as Te,jsx as w}from"react/jsx-runtime";var P="k-svg-icon",be=[],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]},j={viewBox:"0 0 24 24"},O=t=>{let{size:e,themeColor:r,rotate:a,flip:l,viewBox:d=j.viewBox,icon:i,...p}=t;if(!i)return w(Te,{});if(i==="none")return w("span",{...p,className:c(t.className,P,g("k-icon",{size:e}),"k-none"),"aria-hidden":"true"});let f=typeof i=="object"&&i.name&&i.name;return w("span",{...p,className:c(t.className,P,g("k-icon",{size:e}),{[`k-svg-i-${f}`]:f,[`k-color-${r}`]:r,[`k-rotate-${a}`]:a,"k-flip-h":l==="h"||l==="both","k-flip-v":l==="v"||l==="both"}),"aria-hidden":"true",children:w("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})})};O.states=be;O.options=ge;O.className=P;O.defaultOptions=j;var H=O;import*as R from"@progress/kendo-svg-icons";var J="icon",Q="icons";import{useContext as ye}from"react";import{createContext as Ne}from"react";var Y=Ne({iconsType:"svg"});import{Fragment as Z,jsx as S}from"react/jsx-runtime";var K="k-icon",ve=t=>t.replace(/([-_][a-z0-9])/gi,e=>e.toUpperCase().replace("-","").replace("_","")),Be=[],ke={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]},$={viewBox:"0 0 24 24",type:"svg"},m=t=>{let{iconsType:e}=ye(Y),{size:r,themeColor:a,icon:l,type:d=e||$.type,rotate:i,flip:p,viewBox:f=$.viewBox,...h}=t;if(!l)return S(Z,{});if((e||d)==="svg"){if(l==="none")return S(H,{...h,className:c(t.className,K),icon:l,size:r});let v=R[l]?l:ve(`${l}-icon`);return R[v]?S(H,{...h,className:c(t.className,K),icon:R[v],size:r,themeColor:a,rotate:i,flip:p,viewBox:f}):S(Z,{})}return S(W,{...h,className:c(t.className,K),icon:l,size:r,themeColor:a,rotate:i,flip:p})};m.states=Be;m.options=ke;m.defaultOptions=$;m.className=K;m.moduleName=J;m.folderName=Q;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 U="button",ee=U;import{Fragment as Ee,jsx as E,jsxs as te}from"react/jsx-runtime";var _="k-button",Ce=["icon-button"],Oe=[y.hover,y.focus,y.active,y.selected,y.disabled,y.generating],Se={size:[n.undefined,n.xsmall,n.small,n.medium,n.large],rounded:[T.undefined,T.none,T.small,T.medium,T.large,T.full],fillMode:[N.undefined,N.solid,N.flat,N.outline,N.clear,N.link],themeColor:[o.undefined,o.base,o.primary,o.secondary,o.tertiary,o.success,o.warning,o.error,o.info,o.inverse]},F={showArrow:!1,arrowIconName:"chevron-down"},s=t=>{let{as:e="button",size:r,rounded:a,fillMode:l,themeColor:d,showArrow:i=F.showArrow,arrowIconName:p=F.arrowIconName,variant:f,hover:h,focus:M,active:v,selected:I,disabled:A,togglable:L,ariaDisabled:B,icon:b,text:u,iconClassName:le,className:ce,...de}=t,ue=b!==void 0,me=t.children!==void 0;return te(e,{className:c(ce,_,X(_,f),g(_,{size:r,rounded:a,fillMode:l,themeColor:d}),G(_,{hover:h,focus:M,active:v,disabled:A||B,selected:I}),{"k-icon-button":!u&&!me&&ue}),...de,"aria-pressed":L?I?"true":"false":void 0,"aria-disabled":B?"true":void 0,disabled:A||void 0,children:[b&&E(m,{className:c(le,"k-button-icon"),icon:b}),u?te(Ee,{children:[u&&E("span",{className:"k-button-text",children:u}),t.children]}):t.children&&E("span",{className:"k-button-text",children:t.children}),i&&E("span",{className:"k-menu-button-arrow k-button-arrow",children:E(m,{icon:p})})]})};s.states=Oe;s.options=Se;s.variants=Ce;s.className=_;s.defaultOptions=F;s.moduleName=U;s.folderName=ee;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 _e}from"react/jsx-runtime";var oe=t=>_e(s,{icon:"folder",...t,"aria-label":t["aria-label"]||"Folder",children:void 0});import{jsx as Me}from"react/jsx-runtime";var ne=t=>Me(s,{icon:"folder",children:"Button",...t});import{jsx as Ie}from"react/jsx-runtime";var re=t=>Ie(s,{children:"Button",...t});import{jsx as D}from"react/jsx-runtime";var Ae=s.options,we=s.states,Ke={...s.defaultOptions,variant:"text"},Le=[{name:"icon-only",title:"Icon Only"},{name:"icon-and-text",title:"Icon & Text"},{name:"text",title:"Text"}],ze=[],k=t=>{let{variant:e,...r}=t;switch(e){case"icon-only":return D(oe,{...r,icon:"star"});case"icon-and-text":return D(ne,{...r,icon:"star",children:"Button"});default:return D(re,{...r,children:"Button"})}};k.options=Ae;k.states=we;k.variants=Le;k.defaultOptions=Ke;k.modifiers=ze;k.className=s.className;var V="speech-to-text-button",se=V;import{jsx as Pe}from"react/jsx-runtime";var ie="k-speech-to-text-button",ae={icon:"microphone
|
|
1
|
+
var c=(...t)=>t.filter(e=>e!==!0&&!!e).map(e=>Array.isArray(e)?c(...e):typeof e=="object"?Object.keys(e).map((r,a)=>e[a]||e[r]&&r||null).filter(r=>r!==null).join(" "):e).filter(e=>!!e).join(" ");var g=(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"}),G=(t,e)=>{let{valid:r,invalid:a,hover:l,focus:d,checked:i,active:p,selected:f,disabled:h,indeterminate:M,loading:v,empty:I,readonly:A,highlighted:L,...B}=e;return c({"k-valid":r,"k-invalid":a,"k-hover":l,"k-focus":d,"k-checked":i,"k-active":p,"k-selected":f,"k-disabled":h,"k-indeterminate":M&&!i,"k-loading":v,"k-empty":I,"k-readonly":A,"k-highlighted":L},Object.keys(B).reduce((b,u)=>(u.startsWith("k-")?b[u]=B[u]:b[`k-${u}`]=B[u],b),{}))};function X(t,e){if(!e)return{};let r=Array.isArray(e)?e:[e];return Object.fromEntries(r.map(a=>[`k-${a}`,!0]))}var n={undefined:void 0,xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"},T={undefined:void 0,none:"none",small:"small",medium:"medium",large:"large",full:"full"},N={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"},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 he,jsx as q}from"react/jsx-runtime";var z="k-font-icon",pe=[],fe={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]},xe={},C=t=>{let{size:e,themeColor:r,icon:a,rotate:l,flip:d,...i}=t;return a?q("span",{...i,className:c(t.className,z,g(z,{size:e}),{[`k-i-${a}`]:a,[`k-color-${r}`]:r,[`k-rotate-${l}`]:l,"k-flip-h":d==="h"||d==="both","k-flip-v":d==="v"||d==="both"}),"aria-hidden":"true"}):q(he,{})};C.states=pe;C.options=fe;C.className=z;C.defaultOptions=xe;var W=C;import{Fragment as Te,jsx as w}from"react/jsx-runtime";var P="k-svg-icon",be=[],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]},j={viewBox:"0 0 24 24"},O=t=>{let{size:e,themeColor:r,rotate:a,flip:l,viewBox:d=j.viewBox,icon:i,...p}=t;if(!i)return w(Te,{});if(i==="none")return w("span",{...p,className:c(t.className,P,g("k-icon",{size:e}),"k-none"),"aria-hidden":"true"});let f=typeof i=="object"&&i.name&&i.name;return w("span",{...p,className:c(t.className,P,g("k-icon",{size:e}),{[`k-svg-i-${f}`]:f,[`k-color-${r}`]:r,[`k-rotate-${a}`]:a,"k-flip-h":l==="h"||l==="both","k-flip-v":l==="v"||l==="both"}),"aria-hidden":"true",children:w("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})})};O.states=be;O.options=ge;O.className=P;O.defaultOptions=j;var H=O;import*as R from"@progress/kendo-svg-icons";var J="icon",Q="icons";import{useContext as ye}from"react";import{createContext as Ne}from"react";var Y=Ne({iconsType:"svg"});import{Fragment as Z,jsx as S}from"react/jsx-runtime";var K="k-icon",ve=t=>t.replace(/([-_][a-z0-9])/gi,e=>e.toUpperCase().replace("-","").replace("_","")),Be=[],ke={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]},$={viewBox:"0 0 24 24",type:"svg"},m=t=>{let{iconsType:e}=ye(Y),{size:r,themeColor:a,icon:l,type:d=e||$.type,rotate:i,flip:p,viewBox:f=$.viewBox,...h}=t;if(!l)return S(Z,{});if((e||d)==="svg"){if(l==="none")return S(H,{...h,className:c(t.className,K),icon:l,size:r});let v=R[l]?l:ve(`${l}-icon`);return R[v]?S(H,{...h,className:c(t.className,K),icon:R[v],size:r,themeColor:a,rotate:i,flip:p,viewBox:f}):S(Z,{})}return S(W,{...h,className:c(t.className,K),icon:l,size:r,themeColor:a,rotate:i,flip:p})};m.states=Be;m.options=ke;m.defaultOptions=$;m.className=K;m.moduleName=J;m.folderName=Q;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 U="button",ee=U;import{Fragment as Ee,jsx as E,jsxs as te}from"react/jsx-runtime";var _="k-button",Ce=["icon-button"],Oe=[y.hover,y.focus,y.active,y.selected,y.disabled,y.generating],Se={size:[n.undefined,n.xsmall,n.small,n.medium,n.large],rounded:[T.undefined,T.none,T.small,T.medium,T.large,T.full],fillMode:[N.undefined,N.solid,N.flat,N.outline,N.clear,N.link],themeColor:[o.undefined,o.base,o.primary,o.secondary,o.tertiary,o.success,o.warning,o.error,o.info,o.inverse]},F={showArrow:!1,arrowIconName:"chevron-down"},s=t=>{let{as:e="button",size:r,rounded:a,fillMode:l,themeColor:d,showArrow:i=F.showArrow,arrowIconName:p=F.arrowIconName,variant:f,hover:h,focus:M,active:v,selected:I,disabled:A,togglable:L,ariaDisabled:B,icon:b,text:u,iconClassName:le,className:ce,...de}=t,ue=b!==void 0,me=t.children!==void 0;return te(e,{className:c(ce,_,X(_,f),g(_,{size:r,rounded:a,fillMode:l,themeColor:d}),G(_,{hover:h,focus:M,active:v,disabled:A||B,selected:I}),{"k-icon-button":!u&&!me&&ue}),...de,"aria-pressed":L?I?"true":"false":void 0,"aria-disabled":B?"true":void 0,disabled:A||void 0,children:[b&&E(m,{className:c(le,"k-button-icon"),icon:b}),u?te(Ee,{children:[u&&E("span",{className:"k-button-text",children:u}),t.children]}):t.children&&E("span",{className:"k-button-text",children:t.children}),i&&E("span",{className:"k-menu-button-arrow k-button-arrow",children:E(m,{icon:p})})]})};s.states=Oe;s.options=Se;s.variants=Ce;s.className=_;s.defaultOptions=F;s.moduleName=U;s.folderName=ee;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 _e}from"react/jsx-runtime";var oe=t=>_e(s,{icon:"folder",...t,"aria-label":t["aria-label"]||"Folder",children:void 0});import{jsx as Me}from"react/jsx-runtime";var ne=t=>Me(s,{icon:"folder",children:"Button",...t});import{jsx as Ie}from"react/jsx-runtime";var re=t=>Ie(s,{children:"Button",...t});import{jsx as D}from"react/jsx-runtime";var Ae=s.options,we=s.states,Ke={...s.defaultOptions,variant:"text"},Le=[{name:"icon-only",title:"Icon Only"},{name:"icon-and-text",title:"Icon & Text"},{name:"text",title:"Text"}],ze=[],k=t=>{let{variant:e,...r}=t;switch(e){case"icon-only":return D(oe,{...r,icon:"star"});case"icon-and-text":return D(ne,{...r,icon:"star",children:"Button"});default:return D(re,{...r,children:"Button"})}};k.options=Ae;k.states=we;k.variants=Le;k.defaultOptions=Ke;k.modifiers=ze;k.className=s.className;var V="speech-to-text-button",se=V;import{jsx as Pe}from"react/jsx-runtime";var ie="k-speech-to-text-button",ae={icon:"microphone"},x=t=>{let{listening:e=!1,icon:r=ae.icon,...a}=t;return Pe(s,{...a,icon:e?"stop":r,className:c(t.className,ie,{"k-listening":e}),"aria-pressed":e?"true":"false","aria-label":e?"Stop listening":"Start listening"})};x.states=s.states;x.options=s.options;x.className=ie;x.defaultOptions=ae;x.moduleName=V;x.folderName=se;x.ariaSpec={selector:".k-speech-to-text-button",rules:[{selector:".k-button.k-speech-to-text-button",attribute:"role=button or nodeName=button",usage:"If the used element is not <button>, explicitly set its role to button."},{selector:".k-button.k-speech-to-text-button",attribute:"aria-pressed",usage:"Announces the toggle behaviour of the button."},{selector:".k-button.k-speech-to-text-button",attribute:"aria-label",usage:"Accessible name for the speech-to-text button."}]};var Jt=x;export{ie as SPEECH_TO_TEXT_BUTTON_CLASSNAME,x as SpeechToTextButton,Jt 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((r,a)=>e[a]||e[r]&&r||null).filter(r=>r!==null).join(" "):e).filter(e=>!!e).join(" ");var g=(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"}),G=(t,e)=>{let{valid:r,invalid:a,hover:l,focus:d,checked:i,active:p,selected:x,disabled:h,indeterminate:M,loading:B,empty:I,readonly:A,highlighted:K,...v}=e;return c({"k-valid":r,"k-invalid":a,"k-hover":l,"k-focus":d,"k-checked":i,"k-active":p,"k-selected":x,"k-disabled":h,"k-indeterminate":M&&!i,"k-loading":B,"k-empty":I,"k-readonly":A,"k-highlighted":K},Object.keys(v).reduce((b,u)=>(u.startsWith("k-")?b[u]=v[u]:b[`k-${u}`]=v[u],b),{}))};function X(t,e){if(!e)return{};let r=Array.isArray(e)?e:[e];return Object.fromEntries(r.map(a=>[`k-${a}`,!0]))}var n={undefined:void 0,xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"},T={undefined:void 0,none:"none",small:"small",medium:"medium",large:"large",full:"full"},N={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"},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 he,jsx as q}from"react/jsx-runtime";var z="k-font-icon",pe=[],fe={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]},xe={},C=t=>{let{size:e,themeColor:r,icon:a,rotate:l,flip:d,...i}=t;return a?q("span",{...i,className:c(t.className,z,g(z,{size:e}),{[`k-i-${a}`]:a,[`k-color-${r}`]:r,[`k-rotate-${l}`]:l,"k-flip-h":d==="h"||d==="both","k-flip-v":d==="v"||d==="both"}),"aria-hidden":"true"}):q(he,{})};C.states=pe;C.options=fe;C.className=z;C.defaultOptions=xe;var W=C;import{Fragment as Te,jsx as w}from"react/jsx-runtime";var P="k-svg-icon",be=[],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]},J={viewBox:"0 0 24 24"},O=t=>{let{size:e,themeColor:r,rotate:a,flip:l,viewBox:d=J.viewBox,icon:i,...p}=t;if(!i)return w(Te,{});if(i==="none")return w("span",{...p,className:c(t.className,P,g("k-icon",{size:e}),"k-none"),"aria-hidden":"true"});let x=typeof i=="object"&&i.name&&i.name;return w("span",{...p,className:c(t.className,P,g("k-icon",{size:e}),{[`k-svg-i-${x}`]:x,[`k-color-${r}`]:r,[`k-rotate-${a}`]:a,"k-flip-h":l==="h"||l==="both","k-flip-v":l==="v"||l==="both"}),"aria-hidden":"true",children:w("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})})};O.states=be;O.options=ge;O.className=P;O.defaultOptions=J;var H=O;import*as R from"@progress/kendo-svg-icons";var Q="icon",Y="icons";import{useContext as ye}from"react";import{createContext as Ne}from"react";var Z=Ne({iconsType:"svg"});import{Fragment as j,jsx as S}from"react/jsx-runtime";var L="k-icon",Be=t=>t.replace(/([-_][a-z0-9])/gi,e=>e.toUpperCase().replace("-","").replace("_","")),ve=[],ke={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]},$={viewBox:"0 0 24 24",type:"svg"},m=t=>{let{iconsType:e}=ye(Z),{size:r,themeColor:a,icon:l,type:d=e||$.type,rotate:i,flip:p,viewBox:x=$.viewBox,...h}=t;if(!l)return S(j,{});if((e||d)==="svg"){if(l==="none")return S(H,{...h,className:c(t.className,L),icon:l,size:r});let B=R[l]?l:Be(`${l}-icon`);return R[B]?S(H,{...h,className:c(t.className,L),icon:R[B],size:r,themeColor:a,rotate:i,flip:p,viewBox:x}):S(j,{})}return S(W,{...h,className:c(t.className,L),icon:l,size:r,themeColor:a,rotate:i,flip:p})};m.states=ve;m.options=ke;m.defaultOptions=$;m.className=L;m.moduleName=Q;m.folderName=Y;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 U="button",ee=U;import{Fragment as Ee,jsx as E,jsxs as te}from"react/jsx-runtime";var _="k-button",Ce=["icon-button"],Oe=[y.hover,y.focus,y.active,y.selected,y.disabled,y.generating],Se={size:[n.undefined,n.xsmall,n.small,n.medium,n.large],rounded:[T.undefined,T.none,T.small,T.medium,T.large,T.full],fillMode:[N.undefined,N.solid,N.flat,N.outline,N.clear,N.link],themeColor:[o.undefined,o.base,o.primary,o.secondary,o.tertiary,o.success,o.warning,o.error,o.info,o.inverse]},F={showArrow:!1,arrowIconName:"chevron-down"},s=t=>{let{as:e="button",size:r,rounded:a,fillMode:l,themeColor:d,showArrow:i=F.showArrow,arrowIconName:p=F.arrowIconName,variant:x,hover:h,focus:M,active:B,selected:I,disabled:A,togglable:K,ariaDisabled:v,icon:b,text:u,iconClassName:le,className:ce,...de}=t,ue=b!==void 0,me=t.children!==void 0;return te(e,{className:c(ce,_,X(_,x),g(_,{size:r,rounded:a,fillMode:l,themeColor:d}),G(_,{hover:h,focus:M,active:B,disabled:A||v,selected:I}),{"k-icon-button":!u&&!me&&ue}),...de,"aria-pressed":K?I?"true":"false":void 0,"aria-disabled":v?"true":void 0,disabled:A||void 0,children:[b&&E(m,{className:c(le,"k-button-icon"),icon:b}),u?te(Ee,{children:[u&&E("span",{className:"k-button-text",children:u}),t.children]}):t.children&&E("span",{className:"k-button-text",children:t.children}),i&&E("span",{className:"k-menu-button-arrow k-button-arrow",children:E(m,{icon:p})})]})};s.states=Oe;s.options=Se;s.variants=Ce;s.className=_;s.defaultOptions=F;s.moduleName=U;s.folderName=ee;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 _e}from"react/jsx-runtime";var oe=t=>_e(s,{icon:"folder",...t,"aria-label":t["aria-label"]||"Folder",children:void 0});import{jsx as Me}from"react/jsx-runtime";var ne=t=>Me(s,{icon:"folder",children:"Button",...t});import{jsx as Ie}from"react/jsx-runtime";var re=t=>Ie(s,{children:"Button",...t});import{jsx as D}from"react/jsx-runtime";var Ae=s.options,we=s.states,Le={...s.defaultOptions,variant:"text"},Ke=[{name:"icon-only",title:"Icon Only"},{name:"icon-and-text",title:"Icon & Text"},{name:"text",title:"Text"}],ze=[],k=t=>{let{variant:e,...r}=t;switch(e){case"icon-only":return D(oe,{...r,icon:"star"});case"icon-and-text":return D(ne,{...r,icon:"star",children:"Button"});default:return D(re,{...r,children:"Button"})}};k.options=Ae;k.states=we;k.variants=Ke;k.defaultOptions=Le;k.modifiers=ze;k.className=s.className;var V="speech-to-text-button",se=V;import{jsx as Pe}from"react/jsx-runtime";var ie="k-speech-to-text-button",ae={icon:"microphone
|
|
1
|
+
var c=(...t)=>t.filter(e=>e!==!0&&!!e).map(e=>Array.isArray(e)?c(...e):typeof e=="object"?Object.keys(e).map((r,a)=>e[a]||e[r]&&r||null).filter(r=>r!==null).join(" "):e).filter(e=>!!e).join(" ");var g=(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"}),G=(t,e)=>{let{valid:r,invalid:a,hover:l,focus:d,checked:i,active:p,selected:x,disabled:h,indeterminate:M,loading:B,empty:I,readonly:A,highlighted:K,...v}=e;return c({"k-valid":r,"k-invalid":a,"k-hover":l,"k-focus":d,"k-checked":i,"k-active":p,"k-selected":x,"k-disabled":h,"k-indeterminate":M&&!i,"k-loading":B,"k-empty":I,"k-readonly":A,"k-highlighted":K},Object.keys(v).reduce((b,u)=>(u.startsWith("k-")?b[u]=v[u]:b[`k-${u}`]=v[u],b),{}))};function X(t,e){if(!e)return{};let r=Array.isArray(e)?e:[e];return Object.fromEntries(r.map(a=>[`k-${a}`,!0]))}var n={undefined:void 0,xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"},T={undefined:void 0,none:"none",small:"small",medium:"medium",large:"large",full:"full"},N={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"},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 he,jsx as q}from"react/jsx-runtime";var z="k-font-icon",pe=[],fe={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]},xe={},C=t=>{let{size:e,themeColor:r,icon:a,rotate:l,flip:d,...i}=t;return a?q("span",{...i,className:c(t.className,z,g(z,{size:e}),{[`k-i-${a}`]:a,[`k-color-${r}`]:r,[`k-rotate-${l}`]:l,"k-flip-h":d==="h"||d==="both","k-flip-v":d==="v"||d==="both"}),"aria-hidden":"true"}):q(he,{})};C.states=pe;C.options=fe;C.className=z;C.defaultOptions=xe;var W=C;import{Fragment as Te,jsx as w}from"react/jsx-runtime";var P="k-svg-icon",be=[],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]},J={viewBox:"0 0 24 24"},O=t=>{let{size:e,themeColor:r,rotate:a,flip:l,viewBox:d=J.viewBox,icon:i,...p}=t;if(!i)return w(Te,{});if(i==="none")return w("span",{...p,className:c(t.className,P,g("k-icon",{size:e}),"k-none"),"aria-hidden":"true"});let x=typeof i=="object"&&i.name&&i.name;return w("span",{...p,className:c(t.className,P,g("k-icon",{size:e}),{[`k-svg-i-${x}`]:x,[`k-color-${r}`]:r,[`k-rotate-${a}`]:a,"k-flip-h":l==="h"||l==="both","k-flip-v":l==="v"||l==="both"}),"aria-hidden":"true",children:w("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})})};O.states=be;O.options=ge;O.className=P;O.defaultOptions=J;var H=O;import*as R from"@progress/kendo-svg-icons";var Q="icon",Y="icons";import{useContext as ye}from"react";import{createContext as Ne}from"react";var Z=Ne({iconsType:"svg"});import{Fragment as j,jsx as S}from"react/jsx-runtime";var L="k-icon",Be=t=>t.replace(/([-_][a-z0-9])/gi,e=>e.toUpperCase().replace("-","").replace("_","")),ve=[],ke={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]},$={viewBox:"0 0 24 24",type:"svg"},m=t=>{let{iconsType:e}=ye(Z),{size:r,themeColor:a,icon:l,type:d=e||$.type,rotate:i,flip:p,viewBox:x=$.viewBox,...h}=t;if(!l)return S(j,{});if((e||d)==="svg"){if(l==="none")return S(H,{...h,className:c(t.className,L),icon:l,size:r});let B=R[l]?l:Be(`${l}-icon`);return R[B]?S(H,{...h,className:c(t.className,L),icon:R[B],size:r,themeColor:a,rotate:i,flip:p,viewBox:x}):S(j,{})}return S(W,{...h,className:c(t.className,L),icon:l,size:r,themeColor:a,rotate:i,flip:p})};m.states=ve;m.options=ke;m.defaultOptions=$;m.className=L;m.moduleName=Q;m.folderName=Y;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 U="button",ee=U;import{Fragment as Ee,jsx as E,jsxs as te}from"react/jsx-runtime";var _="k-button",Ce=["icon-button"],Oe=[y.hover,y.focus,y.active,y.selected,y.disabled,y.generating],Se={size:[n.undefined,n.xsmall,n.small,n.medium,n.large],rounded:[T.undefined,T.none,T.small,T.medium,T.large,T.full],fillMode:[N.undefined,N.solid,N.flat,N.outline,N.clear,N.link],themeColor:[o.undefined,o.base,o.primary,o.secondary,o.tertiary,o.success,o.warning,o.error,o.info,o.inverse]},F={showArrow:!1,arrowIconName:"chevron-down"},s=t=>{let{as:e="button",size:r,rounded:a,fillMode:l,themeColor:d,showArrow:i=F.showArrow,arrowIconName:p=F.arrowIconName,variant:x,hover:h,focus:M,active:B,selected:I,disabled:A,togglable:K,ariaDisabled:v,icon:b,text:u,iconClassName:le,className:ce,...de}=t,ue=b!==void 0,me=t.children!==void 0;return te(e,{className:c(ce,_,X(_,x),g(_,{size:r,rounded:a,fillMode:l,themeColor:d}),G(_,{hover:h,focus:M,active:B,disabled:A||v,selected:I}),{"k-icon-button":!u&&!me&&ue}),...de,"aria-pressed":K?I?"true":"false":void 0,"aria-disabled":v?"true":void 0,disabled:A||void 0,children:[b&&E(m,{className:c(le,"k-button-icon"),icon:b}),u?te(Ee,{children:[u&&E("span",{className:"k-button-text",children:u}),t.children]}):t.children&&E("span",{className:"k-button-text",children:t.children}),i&&E("span",{className:"k-menu-button-arrow k-button-arrow",children:E(m,{icon:p})})]})};s.states=Oe;s.options=Se;s.variants=Ce;s.className=_;s.defaultOptions=F;s.moduleName=U;s.folderName=ee;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 _e}from"react/jsx-runtime";var oe=t=>_e(s,{icon:"folder",...t,"aria-label":t["aria-label"]||"Folder",children:void 0});import{jsx as Me}from"react/jsx-runtime";var ne=t=>Me(s,{icon:"folder",children:"Button",...t});import{jsx as Ie}from"react/jsx-runtime";var re=t=>Ie(s,{children:"Button",...t});import{jsx as D}from"react/jsx-runtime";var Ae=s.options,we=s.states,Le={...s.defaultOptions,variant:"text"},Ke=[{name:"icon-only",title:"Icon Only"},{name:"icon-and-text",title:"Icon & Text"},{name:"text",title:"Text"}],ze=[],k=t=>{let{variant:e,...r}=t;switch(e){case"icon-only":return D(oe,{...r,icon:"star"});case"icon-and-text":return D(ne,{...r,icon:"star",children:"Button"});default:return D(re,{...r,children:"Button"})}};k.options=Ae;k.states=we;k.variants=Ke;k.defaultOptions=Le;k.modifiers=ze;k.className=s.className;var V="speech-to-text-button",se=V;import{jsx as Pe}from"react/jsx-runtime";var ie="k-speech-to-text-button",ae={icon:"microphone"},f=t=>{let{listening:e=!1,icon:r=ae.icon,...a}=t;return Pe(s,{...a,icon:e?"stop":r,className:c(t.className,ie,{"k-listening":e}),"aria-pressed":e?"true":"false","aria-label":e?"Stop listening":"Start listening"})};f.states=s.states;f.options=s.options;f.className=ie;f.defaultOptions=ae;f.moduleName=V;f.folderName=se;f.ariaSpec={selector:".k-speech-to-text-button",rules:[{selector:".k-button.k-speech-to-text-button",attribute:"role=button or nodeName=button",usage:"If the used element is not <button>, explicitly set its role to button."},{selector:".k-button.k-speech-to-text-button",attribute:"aria-pressed",usage:"Announces the toggle behaviour of the button."},{selector:".k-button.k-speech-to-text-button",attribute:"aria-label",usage:"Accessible name for the speech-to-text button."}]};import{jsx as He}from"react/jsx-runtime";var eo=t=>He(f,{listening:!0,...t});export{eo as SpeechToTextButtonListening};
|
|
@@ -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((r,a)=>e[a]||e[r]&&r||null).filter(r=>r!==null).join(" "):e).filter(e=>!!e).join(" ");var g=(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"}),G=(t,e)=>{let{valid:r,invalid:a,hover:l,focus:d,checked:i,active:p,selected:x,disabled:h,indeterminate:M,loading:B,empty:I,readonly:A,highlighted:L,...v}=e;return c({"k-valid":r,"k-invalid":a,"k-hover":l,"k-focus":d,"k-checked":i,"k-active":p,"k-selected":x,"k-disabled":h,"k-indeterminate":M&&!i,"k-loading":B,"k-empty":I,"k-readonly":A,"k-highlighted":L},Object.keys(v).reduce((b,u)=>(u.startsWith("k-")?b[u]=v[u]:b[`k-${u}`]=v[u],b),{}))};function X(t,e){if(!e)return{};let r=Array.isArray(e)?e:[e];return Object.fromEntries(r.map(a=>[`k-${a}`,!0]))}var n={undefined:void 0,xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"},T={undefined:void 0,none:"none",small:"small",medium:"medium",large:"large",full:"full"},N={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"},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 he,jsx as q}from"react/jsx-runtime";var z="k-font-icon",pe=[],fe={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]},xe={},C=t=>{let{size:e,themeColor:r,icon:a,rotate:l,flip:d,...i}=t;return a?q("span",{...i,className:c(t.className,z,g(z,{size:e}),{[`k-i-${a}`]:a,[`k-color-${r}`]:r,[`k-rotate-${l}`]:l,"k-flip-h":d==="h"||d==="both","k-flip-v":d==="v"||d==="both"}),"aria-hidden":"true"}):q(he,{})};C.states=pe;C.options=fe;C.className=z;C.defaultOptions=xe;var W=C;import{Fragment as Te,jsx as w}from"react/jsx-runtime";var P="k-svg-icon",be=[],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]},J={viewBox:"0 0 24 24"},O=t=>{let{size:e,themeColor:r,rotate:a,flip:l,viewBox:d=J.viewBox,icon:i,...p}=t;if(!i)return w(Te,{});if(i==="none")return w("span",{...p,className:c(t.className,P,g("k-icon",{size:e}),"k-none"),"aria-hidden":"true"});let x=typeof i=="object"&&i.name&&i.name;return w("span",{...p,className:c(t.className,P,g("k-icon",{size:e}),{[`k-svg-i-${x}`]:x,[`k-color-${r}`]:r,[`k-rotate-${a}`]:a,"k-flip-h":l==="h"||l==="both","k-flip-v":l==="v"||l==="both"}),"aria-hidden":"true",children:w("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})})};O.states=be;O.options=ge;O.className=P;O.defaultOptions=J;var H=O;import*as R from"@progress/kendo-svg-icons";var Q="icon",Y="icons";import{useContext as ye}from"react";import{createContext as Ne}from"react";var Z=Ne({iconsType:"svg"});import{Fragment as j,jsx as S}from"react/jsx-runtime";var K="k-icon",Be=t=>t.replace(/([-_][a-z0-9])/gi,e=>e.toUpperCase().replace("-","").replace("_","")),ve=[],ke={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]},$={viewBox:"0 0 24 24",type:"svg"},m=t=>{let{iconsType:e}=ye(Z),{size:r,themeColor:a,icon:l,type:d=e||$.type,rotate:i,flip:p,viewBox:x=$.viewBox,...h}=t;if(!l)return S(j,{});if((e||d)==="svg"){if(l==="none")return S(H,{...h,className:c(t.className,K),icon:l,size:r});let B=R[l]?l:Be(`${l}-icon`);return R[B]?S(H,{...h,className:c(t.className,K),icon:R[B],size:r,themeColor:a,rotate:i,flip:p,viewBox:x}):S(j,{})}return S(W,{...h,className:c(t.className,K),icon:l,size:r,themeColor:a,rotate:i,flip:p})};m.states=ve;m.options=ke;m.defaultOptions=$;m.className=K;m.moduleName=Q;m.folderName=Y;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 U="button",ee=U;import{Fragment as Ee,jsx as E,jsxs as te}from"react/jsx-runtime";var _="k-button",Ce=["icon-button"],Oe=[y.hover,y.focus,y.active,y.selected,y.disabled,y.generating],Se={size:[n.undefined,n.xsmall,n.small,n.medium,n.large],rounded:[T.undefined,T.none,T.small,T.medium,T.large,T.full],fillMode:[N.undefined,N.solid,N.flat,N.outline,N.clear,N.link],themeColor:[o.undefined,o.base,o.primary,o.secondary,o.tertiary,o.success,o.warning,o.error,o.info,o.inverse]},F={showArrow:!1,arrowIconName:"chevron-down"},s=t=>{let{as:e="button",size:r,rounded:a,fillMode:l,themeColor:d,showArrow:i=F.showArrow,arrowIconName:p=F.arrowIconName,variant:x,hover:h,focus:M,active:B,selected:I,disabled:A,togglable:L,ariaDisabled:v,icon:b,text:u,iconClassName:le,className:ce,...de}=t,ue=b!==void 0,me=t.children!==void 0;return te(e,{className:c(ce,_,X(_,x),g(_,{size:r,rounded:a,fillMode:l,themeColor:d}),G(_,{hover:h,focus:M,active:B,disabled:A||v,selected:I}),{"k-icon-button":!u&&!me&&ue}),...de,"aria-pressed":L?I?"true":"false":void 0,"aria-disabled":v?"true":void 0,disabled:A||void 0,children:[b&&E(m,{className:c(le,"k-button-icon"),icon:b}),u?te(Ee,{children:[u&&E("span",{className:"k-button-text",children:u}),t.children]}):t.children&&E("span",{className:"k-button-text",children:t.children}),i&&E("span",{className:"k-menu-button-arrow k-button-arrow",children:E(m,{icon:p})})]})};s.states=Oe;s.options=Se;s.variants=Ce;s.className=_;s.defaultOptions=F;s.moduleName=U;s.folderName=ee;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 _e}from"react/jsx-runtime";var oe=t=>_e(s,{icon:"folder",...t,"aria-label":t["aria-label"]||"Folder",children:void 0});import{jsx as Me}from"react/jsx-runtime";var ne=t=>Me(s,{icon:"folder",children:"Button",...t});import{jsx as Ie}from"react/jsx-runtime";var re=t=>Ie(s,{children:"Button",...t});import{jsx as D}from"react/jsx-runtime";var Ae=s.options,we=s.states,Ke={...s.defaultOptions,variant:"text"},Le=[{name:"icon-only",title:"Icon Only"},{name:"icon-and-text",title:"Icon & Text"},{name:"text",title:"Text"}],ze=[],k=t=>{let{variant:e,...r}=t;switch(e){case"icon-only":return D(oe,{...r,icon:"star"});case"icon-and-text":return D(ne,{...r,icon:"star",children:"Button"});default:return D(re,{...r,children:"Button"})}};k.options=Ae;k.states=we;k.variants=Le;k.defaultOptions=Ke;k.modifiers=ze;k.className=s.className;var V="speech-to-text-button",se=V;import{jsx as Pe}from"react/jsx-runtime";var ie="k-speech-to-text-button",ae={icon:"microphone
|
|
1
|
+
var c=(...t)=>t.filter(e=>e!==!0&&!!e).map(e=>Array.isArray(e)?c(...e):typeof e=="object"?Object.keys(e).map((r,a)=>e[a]||e[r]&&r||null).filter(r=>r!==null).join(" "):e).filter(e=>!!e).join(" ");var g=(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"}),G=(t,e)=>{let{valid:r,invalid:a,hover:l,focus:d,checked:i,active:p,selected:x,disabled:h,indeterminate:M,loading:B,empty:I,readonly:A,highlighted:L,...v}=e;return c({"k-valid":r,"k-invalid":a,"k-hover":l,"k-focus":d,"k-checked":i,"k-active":p,"k-selected":x,"k-disabled":h,"k-indeterminate":M&&!i,"k-loading":B,"k-empty":I,"k-readonly":A,"k-highlighted":L},Object.keys(v).reduce((b,u)=>(u.startsWith("k-")?b[u]=v[u]:b[`k-${u}`]=v[u],b),{}))};function X(t,e){if(!e)return{};let r=Array.isArray(e)?e:[e];return Object.fromEntries(r.map(a=>[`k-${a}`,!0]))}var n={undefined:void 0,xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"},T={undefined:void 0,none:"none",small:"small",medium:"medium",large:"large",full:"full"},N={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"},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 he,jsx as q}from"react/jsx-runtime";var z="k-font-icon",pe=[],fe={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]},xe={},C=t=>{let{size:e,themeColor:r,icon:a,rotate:l,flip:d,...i}=t;return a?q("span",{...i,className:c(t.className,z,g(z,{size:e}),{[`k-i-${a}`]:a,[`k-color-${r}`]:r,[`k-rotate-${l}`]:l,"k-flip-h":d==="h"||d==="both","k-flip-v":d==="v"||d==="both"}),"aria-hidden":"true"}):q(he,{})};C.states=pe;C.options=fe;C.className=z;C.defaultOptions=xe;var W=C;import{Fragment as Te,jsx as w}from"react/jsx-runtime";var P="k-svg-icon",be=[],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]},J={viewBox:"0 0 24 24"},O=t=>{let{size:e,themeColor:r,rotate:a,flip:l,viewBox:d=J.viewBox,icon:i,...p}=t;if(!i)return w(Te,{});if(i==="none")return w("span",{...p,className:c(t.className,P,g("k-icon",{size:e}),"k-none"),"aria-hidden":"true"});let x=typeof i=="object"&&i.name&&i.name;return w("span",{...p,className:c(t.className,P,g("k-icon",{size:e}),{[`k-svg-i-${x}`]:x,[`k-color-${r}`]:r,[`k-rotate-${a}`]:a,"k-flip-h":l==="h"||l==="both","k-flip-v":l==="v"||l==="both"}),"aria-hidden":"true",children:w("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})})};O.states=be;O.options=ge;O.className=P;O.defaultOptions=J;var H=O;import*as R from"@progress/kendo-svg-icons";var Q="icon",Y="icons";import{useContext as ye}from"react";import{createContext as Ne}from"react";var Z=Ne({iconsType:"svg"});import{Fragment as j,jsx as S}from"react/jsx-runtime";var K="k-icon",Be=t=>t.replace(/([-_][a-z0-9])/gi,e=>e.toUpperCase().replace("-","").replace("_","")),ve=[],ke={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]},$={viewBox:"0 0 24 24",type:"svg"},m=t=>{let{iconsType:e}=ye(Z),{size:r,themeColor:a,icon:l,type:d=e||$.type,rotate:i,flip:p,viewBox:x=$.viewBox,...h}=t;if(!l)return S(j,{});if((e||d)==="svg"){if(l==="none")return S(H,{...h,className:c(t.className,K),icon:l,size:r});let B=R[l]?l:Be(`${l}-icon`);return R[B]?S(H,{...h,className:c(t.className,K),icon:R[B],size:r,themeColor:a,rotate:i,flip:p,viewBox:x}):S(j,{})}return S(W,{...h,className:c(t.className,K),icon:l,size:r,themeColor:a,rotate:i,flip:p})};m.states=ve;m.options=ke;m.defaultOptions=$;m.className=K;m.moduleName=Q;m.folderName=Y;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 U="button",ee=U;import{Fragment as Ee,jsx as E,jsxs as te}from"react/jsx-runtime";var _="k-button",Ce=["icon-button"],Oe=[y.hover,y.focus,y.active,y.selected,y.disabled,y.generating],Se={size:[n.undefined,n.xsmall,n.small,n.medium,n.large],rounded:[T.undefined,T.none,T.small,T.medium,T.large,T.full],fillMode:[N.undefined,N.solid,N.flat,N.outline,N.clear,N.link],themeColor:[o.undefined,o.base,o.primary,o.secondary,o.tertiary,o.success,o.warning,o.error,o.info,o.inverse]},F={showArrow:!1,arrowIconName:"chevron-down"},s=t=>{let{as:e="button",size:r,rounded:a,fillMode:l,themeColor:d,showArrow:i=F.showArrow,arrowIconName:p=F.arrowIconName,variant:x,hover:h,focus:M,active:B,selected:I,disabled:A,togglable:L,ariaDisabled:v,icon:b,text:u,iconClassName:le,className:ce,...de}=t,ue=b!==void 0,me=t.children!==void 0;return te(e,{className:c(ce,_,X(_,x),g(_,{size:r,rounded:a,fillMode:l,themeColor:d}),G(_,{hover:h,focus:M,active:B,disabled:A||v,selected:I}),{"k-icon-button":!u&&!me&&ue}),...de,"aria-pressed":L?I?"true":"false":void 0,"aria-disabled":v?"true":void 0,disabled:A||void 0,children:[b&&E(m,{className:c(le,"k-button-icon"),icon:b}),u?te(Ee,{children:[u&&E("span",{className:"k-button-text",children:u}),t.children]}):t.children&&E("span",{className:"k-button-text",children:t.children}),i&&E("span",{className:"k-menu-button-arrow k-button-arrow",children:E(m,{icon:p})})]})};s.states=Oe;s.options=Se;s.variants=Ce;s.className=_;s.defaultOptions=F;s.moduleName=U;s.folderName=ee;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 _e}from"react/jsx-runtime";var oe=t=>_e(s,{icon:"folder",...t,"aria-label":t["aria-label"]||"Folder",children:void 0});import{jsx as Me}from"react/jsx-runtime";var ne=t=>Me(s,{icon:"folder",children:"Button",...t});import{jsx as Ie}from"react/jsx-runtime";var re=t=>Ie(s,{children:"Button",...t});import{jsx as D}from"react/jsx-runtime";var Ae=s.options,we=s.states,Ke={...s.defaultOptions,variant:"text"},Le=[{name:"icon-only",title:"Icon Only"},{name:"icon-and-text",title:"Icon & Text"},{name:"text",title:"Text"}],ze=[],k=t=>{let{variant:e,...r}=t;switch(e){case"icon-only":return D(oe,{...r,icon:"star"});case"icon-and-text":return D(ne,{...r,icon:"star",children:"Button"});default:return D(re,{...r,children:"Button"})}};k.options=Ae;k.states=we;k.variants=Le;k.defaultOptions=Ke;k.modifiers=ze;k.className=s.className;var V="speech-to-text-button",se=V;import{jsx as Pe}from"react/jsx-runtime";var ie="k-speech-to-text-button",ae={icon:"microphone"},f=t=>{let{listening:e=!1,icon:r=ae.icon,...a}=t;return Pe(s,{...a,icon:e?"stop":r,className:c(t.className,ie,{"k-listening":e}),"aria-pressed":e?"true":"false","aria-label":e?"Stop listening":"Start listening"})};f.states=s.states;f.options=s.options;f.className=ie;f.defaultOptions=ae;f.moduleName=V;f.folderName=se;f.ariaSpec={selector:".k-speech-to-text-button",rules:[{selector:".k-button.k-speech-to-text-button",attribute:"role=button or nodeName=button",usage:"If the used element is not <button>, explicitly set its role to button."},{selector:".k-button.k-speech-to-text-button",attribute:"aria-pressed",usage:"Announces the toggle behaviour of the button."},{selector:".k-button.k-speech-to-text-button",attribute:"aria-label",usage:"Accessible name for the speech-to-text button."}]};import{jsx as He}from"react/jsx-runtime";var eo=t=>He(f,{...t});export{eo as SpeechToTextButtonNormal};
|