@wordpress/block-library
Version:
Block library for the WordPress editor.
1 lines • 840 B
Source Map (JSON)
{"version":3,"file":"max-terms-control.cjs","names":["RangeControl","__"],"sources":["../../../../src/terms-query/edit/inspector-controls/max-terms-control.jsx"],"sourcesContent":["import { __ } from '@wordpress/i18n';\nimport { RangeControl } from '@wordpress/components';\n\nexport default function MaxTermsControl( { value, onChange, ...props } ) {\n\treturn (\n\t\t<RangeControl\n\t\t\tvalue={ value }\n\t\t\tmin={ 0 }\n\t\t\tmax={ 100 }\n\t\t\tonChange={ onChange }\n\t\t\thelp={ __(\n\t\t\t\t'Limit the number of terms you want to show. To show all terms, use 0 (zero).'\n\t\t\t) }\n\t\t\t{ ...props }\n\t\t/>\n\t);\n}\n"],"mappings":";;;;;;;;;AAGA,SAAwB,gBAAiB,EAAE,OAAO,UAAU,GAAG,SAAU;CACxE,OACC,iBAAA,GAAA,kBAAA,IAAA,CAACA,sBAAAA,cAAD;EACS;EACR,KAAM;EACN,KAAM;EACK;EACX,OAAA,GAAOC,gBAAAA,GAAAA,CACN,8EACD;EACA,GAAK;CACL,CAAA;AAEH"}