@progress/kendo-react-spreadsheet
Version:
KendoReact Spreadsheet package
9 lines (8 loc) • 1.4 kB
JavaScript
/**
* @license
*-------------------------------------------------------------------------------------------
* Copyright © 2025 Progress Software Corporation. All rights reserved.
* Licensed under commercial license. See LICENSE.md in the package root for more information
*-------------------------------------------------------------------------------------------
*/
;Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react"),m=require("@progress/kendo-react-dropdowns"),r=require("./utils.js"),f=require("@progress/kendo-react-intl"),a=require("../messages.js");function d(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const s=d(u),l=e=>{const{spreadsheetRef:t,value:n}=e,o=s.useCallback(c=>{if(t.current){const i={command:"PropertyChangeCommand",options:{property:"fontFamily",value:c.value||null}};t.current.executeCommand(i)}},[]);return s.createElement(m.DropDownList,{onChange:o,value:n,data:r.FONT_FAMILIES,defaultValue:r.DEFAULT_FONT_FAMILY,fillMode:"flat",title:f.useLocalization().toLanguageString(a.keys.fontName,a.messages[a.keys.fontName]),leftRightKeysNavigation:!1})};l.displayName="FontFamily";exports.FontFamily=l;