UNPKG

@wordpress/components

Version:
8 lines (7 loc) 1.21 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": ";AAGA,SAAS,kBAAkB;AAK3B,SAAS,cAAc,sBAAsB;AAC7C,SAAS,OAAO,YAAY;AAC5B,SAAS,WAAW,OAAO,KAAK;AAC9B,QAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA,GAAG;AAAA,EACL,IAAI;AACJ,SAAoB,qBAAK,gBAAgB;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,qBAAqB,WAAW,UAAU;AAChD,IAAO,sBAAQ;", "names": [] }