@progress/kendo-themes-html
Version:
A collection of HTML helpers used for developing Kendo UI themes
2 lines (1 loc) • 19.4 kB
JavaScript
var s=(...e)=>e.filter(t=>t!==!0&&!!t).map(t=>Array.isArray(t)?s(...t):typeof t=="object"?Object.keys(t).map((o,i)=>t[i]||t[o]&&o||null).filter(o=>o!==null).join(" "):t).filter(t=>!!t).join(" ");var T=(e,t)=>s({[`${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"}),K=(e,t)=>{let{valid:o,invalid:i,hover:a,focus:l,checked:m,active:u,selected:g,disabled:N,indeterminate:p,loading:I,empty:M,readonly:C,highlighted:R,...O}=t;return s({"k-valid":o,"k-invalid":i,"k-hover":a,"k-focus":l,"k-checked":m,"k-active":u,"k-selected":g,"k-disabled":N,"k-indeterminate":p&&!m,"k-loading":I,"k-empty":M,"k-readonly":C,"k-highlighted":R},Object.keys(O).reduce((b,v)=>(v.startsWith("k-")?b[v]=O[v]:b[`k-${v}`]=O[v],b),{}))};function Ee(e,t){if(!t)return{};let o=Array.isArray(t)?t:[t];return Object.fromEntries(o.map(i=>[`k-${i}`,!0]))}var r={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"},U={undefined:void 0,solid:"solid",flat:"flat",outline:"outline",clear:"clear",link:"link"},S={undefined:void 0,outline:"outline",solid:"solid",duotone:"duotone"},n={undefined:void 0,inherit:"inherit",base:"base",primary:"primary",secondary:"secondary",tertiary:"tertiary",info:"info",success:"success",warning:"warning",error:"error",inverse:"inverse"},d={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 it,jsx as Ae}from"react/jsx-runtime";var re="k-font-icon",rt=[],st={size:[r.undefined,r.xsmall,r.small,r.medium,r.large,r.xlarge,r.xxlarge,r.xxxlarge],themeColor:[n.undefined,n.base,n.primary,n.secondary,n.tertiary,n.success,n.warning,n.error,n.info]},at={},G=e=>{let{size:t,themeColor:o,icon:i,rotate:a,flip:l,...m}=e;return i?Ae("span",{...m,className:s(e.className,re,T(re,{size:t}),{[`k-i-${i}`]:i,[`k-color-${o}`]:o,[`k-rotate-${a}`]:a,"k-flip-h":l==="h"||l==="both","k-flip-v":l==="v"||l==="both"}),"aria-hidden":"true"}):Ae(it,{})};G.states=rt;G.options=st;G.className=re;G.defaultOptions=at;var Le=G;import{Fragment as ut,jsx as j}from"react/jsx-runtime";var se="k-svg-icon",lt=[],mt={size:[r.undefined,r.xsmall,r.small,r.medium,r.large,r.xlarge,r.xxlarge,r.xxxlarge],themeColor:[n.undefined,n.base,n.primary,n.secondary,n.tertiary,n.success,n.warning,n.error,n.info],variant:[S.outline,S.solid,S.duotone]},ae={viewBox:"0 0 24 24",variant:S.outline},J=e=>{let{size:t,themeColor:o,rotate:i,flip:a,viewBox:l=ae.viewBox,variant:m=ae.variant,icon:u,...g}=e;if(!u)return j(ut,{});if(u==="none")return j("span",{...g,className:s(e.className,se,T("k-icon",{size:t}),"k-none"),"aria-hidden":"true"});let N=typeof u=="object"&&u.name&&u.name,p=typeof u=="object"?m&&u.variants?.[m]||u.variants?.outline||u.content:void 0;return j("span",{...g,className:s(e.className,se,T("k-icon",{size:t}),{[`k-svg-i-${N}`]:N,[`k-color-${o}`]:o,[`k-rotate-${i}`]:i,"k-flip-h":a==="h"||a==="both","k-flip-v":a==="v"||a==="both"}),"aria-hidden":"true",children:j("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof u=="object"?u.viewBox:l,dangerouslySetInnerHTML:p!==void 0?{__html:p}:void 0,children:u?void 0:e.children})})};J.states=lt;J.options=mt;J.className=se;J.defaultOptions=ae;var ie=J;import*as le from"@progress/kendo-svg-icons";var Oe="icon",Se="icons";import{useContext as pt}from"react";import{createContext as ct}from"react";var ye=ct({iconsType:"svg"});import{Fragment as Te,jsx as q}from"react/jsx-runtime";var ee="k-icon",dt=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),ft=[],xt={size:[r.undefined,r.xsmall,r.small,r.medium,r.large,r.xlarge,r.xxlarge,r.xxxlarge],themeColor:[n.undefined,n.base,n.primary,n.secondary,n.tertiary,n.success,n.warning,n.error,n.info],variant:[S.outline,S.solid,S.duotone]},te={viewBox:"0 0 24 24",type:"svg",variant:S.outline},f=e=>{let{iconsType:t}=pt(ye),{size:o,themeColor:i,icon:a,type:l=t||te.type,rotate:m,flip:u,viewBox:g=te.viewBox,variant:N=te.variant,...p}=e;if(!a)return q(Te,{});if((t||l)==="svg"){if(a==="none")return q(ie,{...p,className:s(e.className,ee),icon:a,size:o,variant:N});let M=le[a]?a:dt(`${a}-icon`);return le[M]?q(ie,{...p,className:s(e.className,ee),icon:le[M],size:o,themeColor:i,rotate:m,flip:u,viewBox:g,variant:N}):q(Te,{})}return q(Le,{...p,className:s(e.className,ee),icon:a,size:o,themeColor:i,rotate:m,flip:u})};f.states=ft;f.options=xt;f.defaultOptions=te;f.className=ee;f.moduleName=Oe;f.folderName=Se;f.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 k="menu",E=k;import{jsx as Q,jsxs as Ce}from"react/jsx-runtime";var me="k-menu-item",Mt=[d.hover,d.focus,d.active,d.selected,d.disabled],bt={},we={iconPosition:"before"},h=e=>{let{hover:t,focus:o,active:i,selected:a,disabled:l,icon:m,text:u,first:g,last:N,showArrow:p,arrowIconName:I,iconPosition:M=we.iconPosition,dir:C,children:R,expanded:O,...b}=e,v=I;return v||(v=C==="rtl"?"chevron-left":"chevron-right"),Ce("li",{...b,className:s(e.className,me,"k-item",K(me,{focus:o,disabled:l,hover:t,active:i,selected:a}),{"k-first":g,"k-last":N}),role:"menuitem",...p&&{"aria-haspopup":"menu"},...p&&{"aria-expanded":O?"true":"false"},...l&&{"aria-disabled":"true"},...o&&{tabIndex:0},children:[Ce("span",{className:s("k-link k-menu-link"),children:[m&&M==="before"&&Q(f,{className:"k-menu-link-icon",icon:m}),Q("span",{className:"k-menu-link-text",children:u}),m&&M==="after"&&Q(f,{className:"k-menu-link-icon",icon:m}),p&&Q("span",{className:"k-menu-expand-arrow","aria-hidden":"true",children:Q(f,{icon:v})})]}),R]})};h.states=Mt;h.options=bt;h.className=me;h.defaultOptions=we;h.moduleName=k;h.folderName=E;import{jsx as Y,jsxs as _e}from"react/jsx-runtime";var ue="k-menu-item",ht=[d.hover,d.focus,d.active,d.selected,d.disabled],Nt={},ce={dir:"ltr",iconPosition:"before"},A=e=>{let{hover:t,focus:o,active:i,selected:a,disabled:l,icon:m,text:u,first:g,last:N,showArrow:p,arrowIconName:I,iconPosition:M=ce.iconPosition,dir:C=ce.dir,children:R,popup:O,expanded:b,...v}=e,w=I;return w||(w=C==="rtl"?"chevron-left":"chevron-right"),_e("li",{role:"menuitem",...v,className:s(e.className,ue,"k-item",K(ue,{focus:o,disabled:l}),{"k-first":g,"k-last":N}),...p&&{"aria-haspopup":"menu"},...p&&{"aria-expanded":b?"true":"false"},...l&&{"aria-disabled":"true"},...o&&{tabIndex:0},children:[_e("span",{className:s("k-link k-menu-link",K("k-menu-link",{hover:t,active:i,selected:a,disabled:l})),children:[m&&M==="before"&&Y(f,{className:"k-menu-link-icon",icon:m}),Y("span",{className:"k-menu-link-text",children:u}),m&&M==="after"&&Y(f,{className:"k-menu-link-icon",icon:m}),p&&Y("span",{className:"k-menu-expand-arrow","aria-hidden":"true",children:Y(f,{icon:w})})]}),R,O]})};A.states=ht;A.options=Nt;A.className=ue;A.defaultOptions=ce;A.moduleName=k;A.folderName=E;var pe="button",Pe=pe;import{Fragment as Re,jsx as $,jsxs as Ke}from"react/jsx-runtime";var Z="k-button",It=["icon-button"],gt=[d.hover,d.focus,d.active,d.selected,d.disabled,d.generating],vt={size:[r.undefined,r.xsmall,r.small,r.medium,r.large],rounded:[B.undefined,B.none,B.small,B.medium,B.large,B.full],fillMode:[U.undefined,U.solid,U.flat,U.outline,U.clear,U.link],themeColor:[n.undefined,n.base,n.primary,n.secondary,n.tertiary,n.success,n.warning,n.error,n.info,n.inverse]},de={showArrow:!1,arrowIconName:"chevron-down"},c=e=>{let{as:t="button",size:o,rounded:i,fillMode:a,themeColor:l,showArrow:m=de.showArrow,arrowIconName:u=de.arrowIconName,variant:g,hover:N,focus:p,active:I,selected:M,disabled:C,togglable:R,ariaDisabled:O,icon:b,iconSize:v,text:w,iconClassName:je,className:et,...tt}=e,ot=b!=null,nt=e.children!==void 0;return Ke(t,{className:s(et,Z,Ee(Z,g),T(Z,{size:o,rounded:i,fillMode:a,themeColor:l}),K(Z,{hover:N,focus:p,active:I,disabled:C||O,selected:M}),{"k-icon-button":!w&&!nt&&ot}),"aria-pressed":R?M?"true":"false":void 0,...tt,"aria-disabled":O?"true":void 0,disabled:C||void 0,children:[typeof b=="string"&&b&&$(f,{className:s(je,"k-button-icon"),icon:b,size:v}),b&&typeof b!="string"&&$(Re,{children:b}),w?Ke(Re,{children:[w&&$("span",{className:"k-button-text",children:w}),e.children]}):e.children&&$("span",{className:"k-button-text",children:e.children}),m&&$("span",{className:"k-menu-button-arrow k-button-arrow",children:$(f,{icon:u})})]})};c.states=gt;c.options=vt;c.variants=It;c.className=Z;c.defaultOptions=de;c.moduleName=pe;c.folderName=Pe;c.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 kt}from"react/jsx-runtime";var Be=e=>kt(c,{icon:"folder",...e,"aria-label":e["aria-label"]||"Folder",children:void 0});import{jsx as Et}from"react/jsx-runtime";var Ue=e=>Et(c,{icon:"folder",children:"Button",...e});import{jsx as At}from"react/jsx-runtime";var He=e=>At(c,{children:"Button",...e});import{jsx as fe}from"react/jsx-runtime";var Lt=c.options,Ot=c.states,St={...c.defaultOptions,variant:"text"},yt=[{name:"icon-only",title:"Icon Only"},{name:"icon-and-text",title:"Icon & Text"},{name:"text",title:"Text"}],Tt=[],F=e=>{let{variant:t,...o}=e;switch(t){case"icon-only":return fe(Be,{...o,icon:"star"});case"icon-and-text":return fe(Ue,{...o,icon:"star",children:"Button"});default:return fe(He,{...o,children:"Button"})}};F.options=Lt;F.states=Ot;F.variants=yt;F.defaultOptions=St;F.modifiers=Tt;F.className=c.className;import{jsx as Pt}from"react/jsx-runtime";var ze="k-menu-scroll-wrapper",Ct=[],wt={},_t={},H=e=>{let{className:t,children:o,orientation:i,...a}=e;return Pt("div",{...a,className:s(t,ze,{"k-menu-scroll-wrapper-vertical":i==="vertical"}),children:o})};H.states=Ct;H.options=wt;H.className=ze;H.defaultOptions=_t;H.moduleName=k;H.folderName=E;var De=H;import{Fragment as xe,jsx as z,jsxs as oe}from"react/jsx-runtime";var Me="k-menu",Rt=[],Kt={},ne={orientation:"horizontal",header:!0,scrollButtonsPosition:"around"},x=e=>{let{children:t,orientation:o=ne.orientation,header:i=ne.header,scrollable:a,scrollButtonsPosition:l=ne.scrollButtonsPosition,wrapperStyles:m,dir:u,popup:g,contextMenu:N,...p}=e,I={horizontal:{prev:u!=="rtl"?"left":"right",next:u!=="rtl"?"right":"left"},vertical:{prev:"up",next:"down"}},M=z("ul",{dir:u,...p,className:s(e.className,"k-reset",Me,{[`${Me}-${o}`]:o,"k-header":i}),role:N?"menu":"menubar",...o==="vertical"&&{"aria-orientation":"vertical"},children:t});return oe(xe,{children:[a?oe(De,{orientation:o,style:m,dir:e.dir,children:[l==="start"&&oe(xe,{children:[z(c,{fillMode:"flat",icon:`chevron-${I[o].prev}`,className:"k-menu-scroll-button k-menu-scroll-button-prev",tabIndex:-1,"aria-label":"Scroll previous"}),z(c,{fillMode:"flat",icon:`chevron-${I[o].next}`,className:"k-menu-scroll-button k-menu-scroll-button-next",tabIndex:-1,"aria-label":"Scroll next"})]}),l==="around"&&z(c,{fillMode:"flat",icon:`chevron-${I[o].prev}`,className:"k-menu-scroll-button k-menu-scroll-button-prev",tabIndex:-1,"aria-label":"Scroll previous"}),M,l==="end"&&oe(xe,{children:[z(c,{fillMode:"flat",icon:`chevron-${I[o].prev}`,className:"k-menu-scroll-button k-menu-scroll-button-prev",tabIndex:-1,"aria-label":"Scroll previous"}),z(c,{fillMode:"flat",icon:`chevron-${I[o].next}`,className:"k-menu-scroll-button k-menu-scroll-button-next",tabIndex:-1,"aria-label":"Scroll next"})]}),l==="around"&&z(c,{fillMode:"flat",icon:`chevron-${I[o].next}`,className:"k-menu-scroll-button k-menu-scroll-button-next",tabIndex:-1,"aria-label":"Scroll next"})]}):M,g]})};x.states=Rt;x.options=Kt;x.className=Me;x.defaultOptions=ne;x.moduleName=k;x.folderName=E;x.ariaSpec={selector:".k-menu",rules:[{selector:".k-menu:not(.k-context-menu)",attribute:"role=menubar",usage:"Announces the Menu menubar role."},{selector:".k-menu.k-menu-vertical",attribute:"aria-orientation=vertical",usage:"Announces the Menu orientation when vertical."},{selector:".k-menu-item",attribute:"role=menuitem",usage:"Announces the Menu item role."},{selector:".k-menu-item",attribute:"aria-haspopup=menu (when present)",usage:"Indicates a popup menu is associated with the item."},{selector:".k-menu-item",attribute:"aria-expanded=true/false (when present)",usage:"Indicates whether the submenu is expanded."},{selector:".k-menu-item.k-disabled",attribute:"aria-disabled=true",usage:"Informs assistive technologies that a Menu item is disabled."},{selector:".k-menu-expand-arrow",attribute:"aria-hidden=true",usage:"Expand arrow elements are hidden from assistive technologies."},{selector:".k-menu-popup .k-menu-group",attribute:"role=menu",usage:"The role of the nested menu displayed in a popup."},{selector:".k-menu-scroll-button",attribute:"tabindex=-1",usage:"Scroll buttons are removed from the tab sequence."},{selector:".k-menu-scroll-button",attribute:"aria-label",usage:"Scroll buttons have an accessible label."},{selector:".k-menu-item.k-focus",attribute:"tabindex=0",usage:"The focused item has tabindex 0."},{selector:".k-menu-item",attribute:"aria-controls=ul.k-menu-group id (when present)",usage:"Points to the ID of the submenu. Only present when the item controls a submenu element."},{selector:".k-menu-popup .k-menu-group",attribute:"id",usage:"Each nested menu has a deterministic id linked to the parent aria-controls."}]};import{jsx as Bt}from"react/jsx-runtime";var be="k-separator",$e={orientation:"horizontal"},V=e=>{let{orientation:t=$e.orientation,...o}=e;return Bt("li",{...o,className:s(e.className,"k-item",be,{[`${be}-${t}`]:t}),role:"separator"})};V.className=be;V.defaultOptions=$e;V.moduleName=k;V.folderName=E;import{Fragment as Bn,jsx as Un}from"react/jsx-runtime";import{jsx as Dt}from"react/jsx-runtime";var he="k-menu-group",Ut=[],Ht={size:[r.undefined,r.small,r.medium,r.large]},zt={},L=e=>{let{children:t,size:o,...i}=e;return Dt("ul",{role:"menu",...i,className:s(e.className,he,T(he,{size:o})),children:t})};L.states=Ut;L.options=Ht;L.className=he;L.defaultOptions=zt;L.moduleName=k;L.folderName=E;import{Fragment as $t,jsx as X,jsxs as Ft}from"react/jsx-runtime";var Ne=e=>X(x,{children:Ft($t,{children:[X(h,{first:!0,text:"Item 1"}),X(h,{showArrow:!0,arrowIconName:"chevron-down",text:"Item 2"}),X(h,{showArrow:!0,arrowIconName:"chevron-down",text:"Item 3"}),X(h,{text:"Item 4"}),X(h,{last:!0,text:"Item 5"})]}),...e});var Ie="popup",Fe=Ie;import{jsx as Ve}from"react/jsx-runtime";var Xe="k-animation-container",Vt=[],Xt={},ge={positionMode:"absolute",shown:!0},_=e=>{let{positionMode:t=ge.positionMode,shown:o=ge.shown,animationStyle:i,offset:a,...l}=e;return Ve("div",{...l,style:{...a,...e.style},className:s(e.className,Xe,{"k-animation-container-shown":o,"k-animation-container-fixed":t==="fixed"}),children:Ve("div",{className:"k-child-animation-container",style:i,children:e.children})})};_.states=Vt;_.options=Xt;_.className=Xe;_.defaultOptions=ge;_.moduleName=Ie;_.folderName=Fe;var ve="popup",We=ve;import{jsx as Ge}from"react/jsx-runtime";var Je="k-popup",Wt=[],Gt={},qe={positionMode:"absolute"},y=e=>{let{offset:t,positionMode:o=qe.positionMode,animationStyle:i,containerClassName:a,containerRole:l,containerAriaLabel:m,...u}=e;return Ge(_,{positionMode:o,offset:t,animationStyle:i,className:a,role:l,"aria-label":m,children:Ge("div",{...u,className:s(e.className,Je),children:e.children})})};y.states=Wt;y.options=Gt;y.className=Je;y.defaultOptions=qe;y.moduleName=ve;y.folderName=We;y.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.'}]};import{Fragment as dr,jsx as cr,jsxs as pr}from"react/jsx-runtime";import{Fragment as hr,jsx as br,jsxs as Nr}from"react/jsx-runtime";import{Fragment as Er,jsx as kr,jsxs as Ar}from"react/jsx-runtime";import{Fragment as Tr,jsx as yr,jsxs as Cr}from"react/jsx-runtime";import{jsx as D,jsxs as Zt}from"react/jsx-runtime";var Jt={...x.options,scrollable:{type:"boolean"}},qt=x.states,Qe={...x.defaultOptions,variant:"horizontal"},Qt=[{name:"horizontal",title:"Horizontal"},{name:"vertical",title:"Vertical"}],Yt=[{name:"opened",title:"Opened"}],W=e=>{let{variant:t,modifiers:o,...i}={...Qe,...e},a={},l=t==="vertical"?{left:"200px",top:"30px"}:{left:"90px",top:"auto"};return Object.keys(o||{}).forEach(m=>{m==="opened"&&(a.opened=!!o?.[m],a.popup=o?.[m]?D(y,{className:"k-menu-popup",offset:l,children:Zt(L,{children:[D(A,{text:"Item 1"}),D(A,{text:"Item 2"}),D(V,{}),D(A,{text:"Item 3"})]})}):null)}),t==="vertical"?D(Ne,{...i,...a,orientation:"vertical",style:{width:"200px"}}):D(Ne,{...i,...a})};W.options=Jt;W.states=qt;W.variants=Qt;W.defaultOptions=Qe;W.modifiers=Yt;W.className=x.className;var ke="context-menu",Ye=ke;import{jsx as oo}from"react/jsx-runtime";var Ze="k-context-menu",jt=[],eo={},to={},P=e=>{let{children:t,...o}=e;return oo(L,{...o,className:s(e.className,Ze),role:"menu",children:t})};P.states=jt;P.options=eo;P.className=Ze;P.defaultOptions=to;P.moduleName=ke;P.folderName=Ye;P.ariaSpec={selector:".k-context-menu",rules:[{selector:".k-context-menu",attribute:"role=menu",usage:"The context menu implements the menu role."},{selector:".k-menu-item",attribute:"role=menuitem",usage:"Announces the Menu item role."},{selector:".k-menu-item",attribute:"aria-haspopup=menu (when present)",usage:"Indicates a popup menu is associated with the item."},{selector:".k-menu-item",attribute:"aria-expanded=true/false (when present)",usage:"Indicates whether the submenu is expanded."},{selector:".k-menu-item.k-disabled",attribute:"aria-disabled=true",usage:"Informs assistive technologies that a Menu item is disabled."},{selector:".k-menu-expand-arrow",attribute:"aria-hidden=true",usage:"Expand arrow elements are hidden from assistive technologies."},{selector:".k-menu-item.k-focus",attribute:"tabindex=0",usage:"The focused item has tabindex 0."},{selector:".k-menu-item",attribute:"aria-controls=ul.k-menu-group id (when present)",usage:"Points to the ID of the submenu."},{selector:".k-menu-popup .k-menu-group",attribute:"id",usage:"Each nested menu has an id linked to parent aria-controls."}]};var is=P;export{Ze as CONTEXTMENU_CLASSNAME,P as ContextMenu,is as default};