PluginProbe
BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot / 4.9.5
BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot v4.9.5
4.9.5 4.9.4 4.9.3 4.9.2 4.9.1 4.9.0 4.8.2 4.8.1 4.8.0 4.7.0 4.6.2 4.6.1 4.6.0 4.5.6 4.5.5 4.5.4 4.5.3 4.5.2 4.5.1 4.5.0 4.4.1 4.4.0 3.3.4 3.4.0 3.4.1 All 203 releases
betterdocs / react-src / gutenberg / blocks / breadcrumb / src / atttributes.js

atttributes.js in BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot 4.9.5, at react-src/gutenberg/blocks/breadcrumb/src/atttributes.js

123 lines 2.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 import { __ } from '@wordpress/i18n';
2
3 import {
4 BREADCRUMB_TITLE_PADDING,
5 BREADCRUMB_TITLE_MARGIN,
6 BREADCRUMB_ICON_MARGIN,
7 BREADCRUMB_ICON_PADDING,
8 BREADCRUMB_TITLE_MARGIN_LAYOUT_TWO,
9 BREADCRUMB_TITLE_PADDING_LAYOUT_TWO,
10 BREADCRUMB_ICON_MARGIN_LAYOUT_TWO,
11 BREADCRUMB_ICON_PADDING_LAYOUT_TWO
12 } from './constants';
13 import {
14 generateTypographyAttributes,
15 generateDimensionsAttributes,
16 } from '../../../util/helpers';
17 import * as prefixes from './typographyPrefixConstants';
18
19
20 const attributes = {
21 // the following 4 attributes is must required for responsive options and asset generation for frontend
22 // responsive control attributes ⬇
23 resOption: {
24 type: 'string',
25 default: 'Desktop',
26 },
27 // blockId attribute for making unique className and other uniqueness ⬇
28 blockId: {
29 type: 'string',
30 },
31 blockRoot: {
32 type: 'string',
33 default: 'better_docs',
34 },
35 // blockMeta is for keeping all the styles ⬇
36 blockMeta: {
37 type: 'object',
38 },
39 ...generateTypographyAttributes(Object.values(prefixes)),
40 ...generateDimensionsAttributes(BREADCRUMB_TITLE_MARGIN, {
41 top:0,
42 right:0,
43 bottom:0,
44 left:0
45 }),
46 ...generateDimensionsAttributes(BREADCRUMB_TITLE_PADDING, {
47 top:0,
48 right:0,
49 bottom:0,
50 left:0
51 }),
52 ...generateDimensionsAttributes(BREADCRUMB_TITLE_MARGIN_LAYOUT_TWO, {
53 top:0,
54 right:0,
55 bottom:0,
56 left:0
57 }),
58 ...generateDimensionsAttributes(BREADCRUMB_TITLE_PADDING_LAYOUT_TWO, {
59 top:0,
60 right:0,
61 bottom:0,
62 left:0
63 }),
64 breadcrumb_title_color:{
65 type:'string',
66 default:'#566e8b'
67 },
68 breadcrumb_title_color_layout_two:{
69 type:'string',
70 default:'#667085'
71 },
72 breadcrumb_icon_color:{
73 type:'string',
74 default:'#566e8b'
75 },
76 breadcrumb_icon_color_two:{
77 type:'string',
78 default:'#566e8b'
79 },
80 ...generateDimensionsAttributes(BREADCRUMB_ICON_MARGIN, {
81 top:0,
82 right:0,
83 bottom:0,
84 left:0
85 }),
86 ...generateDimensionsAttributes(BREADCRUMB_ICON_PADDING, {
87 top:0,
88 right:0,
89 bottom:0,
90 left:0
91 }),
92 ...generateDimensionsAttributes(BREADCRUMB_ICON_MARGIN_LAYOUT_TWO, {
93 top:0,
94 right:0,
95 bottom:0,
96 left:0
97 }),
98 ...generateDimensionsAttributes(BREADCRUMB_ICON_PADDING_LAYOUT_TWO, {
99 top:0,
100 right:0,
101 bottom:0,
102 left:0
103 }),
104 align:{
105 type:'string',
106 default:'left'
107 },
108 align_layout_two:{
109 type:'string',
110 default:'left'
111 },
112 layout:{
113 type:"string",
114 default:'layout-1'
115 },
116 wrapper_background_color_layout_two:{
117 type:"string",
118 default:'#F9FAFB'
119 }
120 }
121
122 export default attributes;
123