{
- ( ( 'outer' === attributes.titleStyle ) || ( 'tooltip' === attributes.percentagePosition && 'outer' === attributes.percentagePosition ) ) && (
-
- setAttributes({ titleFontSize }) }
+ setAttributes({ title }) }
+ />
+
+
-
+
+ )
+ }
+ {
+ 'style' === tab && (
+
+
+
+
+ { 30 <= attributes.height && (
+ setAttributes({ titleStyle }) }
+ />
+ ) }
+
+
+
+ {
+ ( ( 'outer' === attributes.titleStyle ) || ( 'tooltip' === attributes.percentagePosition && 'outer' === attributes.percentagePosition ) ) && (
+
+ setAttributes({ titleFontSize }) }
+ />
+
+ )
+ }
+
+ setAttributes({ titleColor }),
+ label: __( 'Title', 'otter-blocks' )
+ },
+ {
+ value: attributes.barBackgroundColor,
+ onChange: barBackgroundColor => setAttributes({ barBackgroundColor }),
+ label: __( 'Progress', 'otter-blocks' )
+ },
+ {
+ value: attributes.percentageColor,
+ onChange: percentageColor => setAttributes({ percentageColor }),
+ label: __( 'Percentage', 'otter-blocks' )
+ },
+ {
+ value: attributes.backgroundColor,
+ onChange: backgroundColor => setAttributes({ backgroundColor }),
+ label: __( 'Background', 'otter-blocks' )
+ }
+ ] }
+ >
+
+
+
+
+
+
+
+ setAttributes({ borderRadius }) }
+ step={ 0.1 }
+ initialPosition={ 5 }
+ min={ 0 }
+ max={ 35 }
+ />
+
+
)
}
+
-