corvée(dépendances) ajoute Carbon Fields
This commit is contained in:
parent
135cc65eed
commit
62368587e5
459 changed files with 72750 additions and 26 deletions
21
web/vendor/htmlburger/carbon-fields/packages/blocks/fields/file/index.js
vendored
Normal file
21
web/vendor/htmlburger/carbon-fields/packages/blocks/fields/file/index.js
vendored
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
/**
|
||||
* External dependencies.
|
||||
*/
|
||||
import { addFilter } from '@wordpress/hooks';
|
||||
import { __ } from '@wordpress/i18n';
|
||||
|
||||
/**
|
||||
* Internal dependencies.
|
||||
*/
|
||||
import './style.scss';
|
||||
|
||||
addFilter( 'carbon-fields.file.block', 'carbon-fields/blocks', ( OriginalFileField ) => ( props ) => {
|
||||
return (
|
||||
<OriginalFileField
|
||||
buttonLabel={ __( 'Select File', 'carbon-fields-ui' ) }
|
||||
mediaLibraryButtonLabel={ __( 'Use File', 'carbon-fields-ui' ) }
|
||||
mediaLibraryTitle={ __( 'Select File', 'carbon-fields-ui' ) }
|
||||
{ ...props }
|
||||
/>
|
||||
);
|
||||
} );
|
||||
21
web/vendor/htmlburger/carbon-fields/packages/blocks/fields/file/style.scss
vendored
Normal file
21
web/vendor/htmlburger/carbon-fields/packages/blocks/fields/file/style.scss
vendored
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
/* ==========================================================================
|
||||
File
|
||||
========================================================================== */
|
||||
|
||||
.cf-file__inner {
|
||||
.edit-post-sidebar & {
|
||||
border-color: $gb-dark-gray-150;
|
||||
}
|
||||
}
|
||||
|
||||
.cf-file__content {
|
||||
.edit-post-sidebar & {
|
||||
border-color: $gb-dark-gray-150;
|
||||
}
|
||||
}
|
||||
|
||||
.cf-file__name {
|
||||
.edit-post-sidebar & {
|
||||
border-color: $gb-dark-gray-150;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue