Skip to content

Commit 45dda00

Browse files
committed
Merge branch 'feature/custom-colors'
2 parents e9c12c6 + 29d1f40 commit 45dda00

File tree

37 files changed

+15666
-4138
lines changed

37 files changed

+15666
-4138
lines changed

build/index-rtl.css

Lines changed: 131 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,131 @@
1+
/*!*********************************************************************************************************************************************************************************************************************************************************************************************************!*\
2+
!*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/@wordpress/scripts/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/js/blocks/components/AlertButton/editor.scss ***!
3+
\*********************************************************************************************************************************************************************************************************************************************************************************************************/
4+
.alerts-dlx-button-popover-base-control {
5+
padding: 16px;
6+
}
7+
8+
.alertx-dlx-button-link {
9+
max-width: 100%;
10+
border: 1px solid #ddd;
11+
border-radius: 2px;
12+
}
13+
14+
.alerts-dlx-button-wrapper {
15+
position: relative;
16+
display: inline-flex;
17+
align-items: center;
18+
}
19+
20+
.alerts-dlx-button-wrapper .alertx-dlx-button-link-icon {
21+
visibility: hidden;
22+
}
23+
.alerts-dlx-button-wrapper:hover .alertx-dlx-button-link-icon, .alerts-dlx-button-wrapper:focus .alertx-dlx-button-link-icon {
24+
visibility: visible;
25+
}
26+
27+
.alerts-dlx-link-toggle {
28+
margin-top: 15px;
29+
}
30+
/*!*********************************************************************************************************************************************************************************************************************************************************************************************************!*\
31+
!*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/@wordpress/scripts/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/js/blocks/components/unit-picker/editor.scss ***!
32+
\*********************************************************************************************************************************************************************************************************************************************************************************************************/
33+
/* Unit Picker Component - Forked from @GenerateBlocks */
34+
.components-has-units-control-header__units {
35+
display: flex;
36+
justify-content: space-between;
37+
margin-bottom: 5px;
38+
align-items: center;
39+
}
40+
41+
.components-has-control__units .components-has-control-buttons__units button.components-button {
42+
background: #fff;
43+
box-shadow: none !important;
44+
color: #929da7;
45+
font-size: 10px;
46+
padding: 0 5px;
47+
position: relative;
48+
text-align: center;
49+
text-shadow: none;
50+
border: 0;
51+
border-radius: 0 !important;
52+
line-height: 20px;
53+
padding: 0 5px;
54+
height: auto;
55+
}
56+
.components-has-control__units .components-has-control-buttons__units button.components-button.is-primary {
57+
background: #fff !important;
58+
color: #000 !important;
59+
cursor: default;
60+
z-index: 1;
61+
font-weight: bold;
62+
}
63+
/*!********************************************************************************************************************************************************************************************************************************************************************************************************!*\
64+
!*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/@wordpress/scripts/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/js/blocks/components/IconPicker/editor.scss ***!
65+
\********************************************************************************************************************************************************************************************************************************************************************************************************/
66+
.alerts-dlx-icon-popover .components-popover__content > div {
67+
min-width: 350px;
68+
}
69+
70+
.alerts-dlx-icon-picker {
71+
padding: 16px;
72+
text-align: center;
73+
}
74+
.alerts-dlx-icon-picker h2 {
75+
margin: 0;
76+
padding: 0;
77+
}
78+
79+
.alerts-dlx-icon-list {
80+
display: grid;
81+
grid-template-columns: 1fr 1fr 1fr;
82+
grid-gap: 10px;
83+
justify-content: center;
84+
max-height: 350px;
85+
overflow: auto;
86+
padding-top: 15px;
87+
}
88+
.alerts-dlx-icon-list li {
89+
text-align: center;
90+
}
91+
.alerts-dlx-icon-list svg {
92+
width: 24px;
93+
height: 24px;
94+
}
95+
96+
.alerts-dlx-custom-icon-input button:first-child {
97+
margin-left: 15px;
98+
}
99+
.alerts-dlx-custom-icon-input button:last-child {
100+
margin-right: 15px;
101+
}
102+
103+
.components-base-control.alerts-dlx-icon-wrapper {
104+
font-size: 1em;
105+
}
106+
107+
.alerts-dlx-icon-preview {
108+
display: flex;
109+
justify-content: center;
110+
font-size: 1em;
111+
}
112+
.alerts-dlx-icon-preview svg {
113+
width: 1.2em;
114+
height: 1.2em;
115+
margin-top: 0.175em;
116+
}
117+
118+
.alerts-dlx-custom-icon-preview svg {
119+
max-width: 48px;
120+
max-height: 48px;
121+
}
122+
123+
button.components-button.alerts-dlx-icon-preview-button {
124+
display: flex;
125+
align-items: flex-start;
126+
justify-content: center;
127+
padding: 0;
128+
margin: 0;
129+
font-size: inherit;
130+
line-height: 0;
131+
}

build/index.asset.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<?php return array('dependencies' => array('react', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => '20767cf3a2fb917b8168');
1+
<?php return array('dependencies' => array('react', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => '891adba2c48a7c6e999c');

build/index.css

Lines changed: 133 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/index.css.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/index.js

Lines changed: 6443 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/js/blocks/bootstrap/block.json

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,42 @@
5252
"type": "boolean",
5353
"default": true
5454
},
55+
"innerBlocksEnabled": {
56+
"type": "boolean",
57+
"default": false
58+
},
59+
"closeButtonEnabled": {
60+
"type": "boolean",
61+
"default": false
62+
},
63+
"closeButtonExpiration": {
64+
"type": "number",
65+
"default": 0
66+
},
67+
"colorPrimary": {
68+
"type": "string",
69+
"default": "var(--alerts-dlx-bootstrap-color-primary, #084298)"
70+
},
71+
"colorBorder": {
72+
"type": "string",
73+
"default": "var(--alerts-dlx-bootstrap-color-border, #b6d4fe)"
74+
},
75+
"colorAccent": {
76+
"type": "string",
77+
"default": "var(--alerts-dlx-bootstrap-color-accent, #26559c)"
78+
},
79+
"colorAlt": {
80+
"type": "string",
81+
"default": "var(--alerts-dlx-bootstrap-color-alt, #084298)"
82+
},
83+
"colorBold": {
84+
"type": "string",
85+
"default": "var(--alerts-dlx-bootstrap-color-bold, #084298)"
86+
},
87+
"colorLight": {
88+
"type": "string",
89+
"default": "var(--alerts-dlx-bootstrap-color-light, #cfe2ff)"
90+
},
5591
"buttonText": {
5692
"type": "string",
5793
"default": ""
@@ -165,6 +201,10 @@
165201
{
166202
"name": "dark",
167203
"label": "Dark"
204+
},
205+
{
206+
"name": "custom",
207+
"label": "Custom"
168208
}
169209
],
170210
"supports": {

build/js/blocks/chakraui/block.json

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,42 @@
119119
"alertGroup": {
120120
"type": "string",
121121
"default": "chakra"
122+
},
123+
"closeButtonEnabled": {
124+
"type": "boolean",
125+
"default": false
126+
},
127+
"closeButtonExpiration": {
128+
"type": "number",
129+
"default": 0
130+
},
131+
"innerBlocksEnabled": {
132+
"type": "boolean",
133+
"default": false
134+
},
135+
"colorPrimary": {
136+
"type": "string",
137+
"default": "var(--alerts-dlx-chakra-color-primary, #014361)"
138+
},
139+
"colorBorder": {
140+
"type": "string",
141+
"default": "var(--alerts-dlx-chakra-color-border, #014361)"
142+
},
143+
"colorAccent": {
144+
"type": "string",
145+
"default": "var(--alerts-dlx-chakra-color-accent, #3182ce)"
146+
},
147+
"colorAlt": {
148+
"type": "string",
149+
"default": "var(--alerts-dlx-chakra-color-alt, #2d76bb)"
150+
},
151+
"colorBold": {
152+
"type": "string",
153+
"default": "var(--alerts-dlx-chakra-color-bold, #2d76bb)"
154+
},
155+
"colorLight": {
156+
"type": "string",
157+
"default": "var(--alerts-dlx-chakra-color-light, #bee3f8)"
122158
}
123159
},
124160
"example": {
@@ -149,6 +185,10 @@
149185
{
150186
"name": "error",
151187
"label": "Error"
188+
},
189+
{
190+
"name": "custom",
191+
"label": "Custom"
152192
}
153193
],
154194
"supports": {

0 commit comments

Comments
 (0)