UNPKG

@wordpress/components

Version:
8 lines (7 loc) 1.26 kB
{ "version": 3, "sources": ["../../src/range-control/input-range.tsx"], "sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { forwardRef } from '@wordpress/element';\n\n/**\n * Internal dependencies\n */\nimport { InputRange as BaseInputRange } from './styles/range-control-styles';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nfunction InputRange(props, ref) {\n const {\n describedBy,\n label,\n value,\n ...otherProps\n } = props;\n return /*#__PURE__*/_jsx(BaseInputRange, {\n ...otherProps,\n \"aria-describedby\": describedBy,\n \"aria-label\": label,\n \"aria-hidden\": false,\n ref: ref,\n tabIndex: 0,\n type: \"range\",\n value: value\n });\n}\nconst ForwardedComponent = forwardRef(InputRange);\nexport default ForwardedComponent;"], "mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,qBAA2B;AAK3B,kCAA6C;AAC7C,yBAA4B;AAC5B,SAAS,WAAW,OAAO,KAAK;AAC9B,QAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA,GAAG;AAAA,EACL,IAAI;AACJ,SAAoB,uCAAAA,KAAK,4BAAAC,YAAgB;AAAA,IACvC,GAAG;AAAA,IACH,oBAAoB;AAAA,IACpB,cAAc;AAAA,IACd,eAAe;AAAA,IACf;AAAA,IACA,UAAU;AAAA,IACV,MAAM;AAAA,IACN;AAAA,EACF,CAAC;AACH;AACA,IAAM,yBAAqB,2BAAW,UAAU;AAChD,IAAO,sBAAQ;", "names": ["_jsx", "BaseInputRange"] }