Commit a759fd9
feat: size and spacing steps (#3452)
* feat: size and spacing steps
* working range with steps
* fix: remove extra assignment
* feat: add markmode in four range control
* feat: apply preset controls to fontSize, padding, margin, height
* feat: generate global css for presets
* feat: size and spacing steps
* working range with steps
* fix: remove extra assignment
* feat: add markmode in four range control
* feat: apply preset controls to fontSize, padding, margin, height
* feat: generate global css for presets
* fix: apply generated css
* fix: make fontSizes string to store CSS variables
* fix: add default to prioritization
* feat: support for custom presets
* feat: dynamically add styles in editor
* feat: dynamically add styles in editor with editor loader
* fix: get current marked value, go to markmode
* fix: css generation should consider custom, by each preset, not by property
* fix: add additional functionalities to usePresetControls
* fix: allow AdvancedRangeControl to set custom onReset
* fix: do not add style for discarded presets
* fix: add comments, title in generated css
* fix: FourRangeControl markmode and initial value
* feat: add row and column gap
* feat: add blockHeight and borderRadius
* feat: add blockHeight and borderRadius loader
* fix: editorLoader merge
* feat: Use Global Typography sizes as preset
* feat: add vertical/horizontal to mark mode for four range
* fix: removing of unit picker according to four range mode
* fix: useTypographyAsPresets reactivity
* feat: initial init
* fix: separate none and custom, fix issue with setting to none
* fix: selecting font pair/type scale overwritting previous changes
* chore: move other functions to utils
* fix: only get the new style for onChange, since changeStyle now handles merging
* fix: set the value when changing from mark to custom
* fix: typography min and max slider for rem
* fix: use only "var" in detecting CSS variable
* fix: FourRangeControl synchronization of markmode; default markmode
* feat: add none presets to padding and margin similar to native
* fix: use extractNumbersAndUnits that can process clamp, min, etc.
* fix: add rem support to allow custom mode to have values when switching, convert from rem if only has px support
* feat: support mimic/clamping by using WP generated presets
* fix: global preset control title
* feat: apply body to html
* fix: add margin to apply html toggle
* fix: remove hasCSSVariableValue, always assume that marks has string value
* fix: get_option is never null
* fix: use wp_json_file_decode
* fix: remove JSON stringify since customPresets is just an array
* fix: separate loading of presets in another function
* fix: use wp_style_engine_get_stylesheet_from_css_rules to generate styles
* fix: translate only the words
* fix: move updating presets with typography to editor loader
* fix: add typography deprecation for font size
* fix: add block height deprecations
* fix: add row and column gaps deprecations
* fix: add row and column gaps deprecations
* tweaked premium notice wording
* fix: still match previous value even the custom values changes
* fix: implement presets in the design system; fix issues with reactivity, variable type, units, etc.
* fix: typography font size steps
* fix: sync mark mode
* fix: sync state when succeeding call to change styles
* fixed value preview
* fix: error in getting css var name
* feat: add use size preset by default option
* added more descriptive text
* temporarily skip since the test breaks now
* fix: two-way value conversion between preset and custom mode
* version bump to 3.16.0 for the default option to kick in
* version bump to 3.16.0 for the default option to kick in
* prevent errors if upgrading and value is a number
* optimized to prevent repetitive calls
* fix: update markmode when changing device type
* fix: move use size presets by default to editor settings
* fix: saving of new typography
* fix: only cofirm when font family is changed
* fix: clean style object for comparison
* update test for global typography
* fix: remove unused hasCSSVariableValue
* fix: add inner column spacing presets
* fix: add inner column > inner column spacing presets
* fix: also clean typography style for consistency
* fix: consider unit conversion during two-way value conversion between preset and custom mode
* fix: consider unit conversion during two-way value conversion between preset and custom mode
* fix: remove placeholder for custom css in number input
* fix: add fallback tooltip for theme.json data with no name like blocksy
* fix: bug fixes
* fix: bug fix
* fix: four range reactivity
* fix: do not actually change value when switching mode
* fix: add presets to contentHeight and innerBlockRowGap
* fix: add deprecation code to affected blocks, including removing V4
* fix: bump attribute added version to 3.16.0 and migration version to 3.15.3
* Added translation
Co-authored-by: Copilot <[email protected]>
---------
Co-authored-by: [email protected] <>
Co-authored-by: Alquen Sarmiento <[email protected]>
Co-authored-by: Mikhaela Tapia <[email protected]>
Co-authored-by: Copilot <[email protected]>1 parent 084fd6c commit a759fd9
File tree
102 files changed
+3949
-338
lines changed- e2e/tests
- src
- block-components
- alignment
- deprecated
- block-div
- button
- columns
- deprecated
- helpers
- borders
- size
- typography
- block
- accordion
- blockquote
- button-group/deprecated
- button
- call-to-action
- card
- carousel
- columns
- column
- count-up
- countdown
- divider
- expand
- feature-grid
- feature
- heading
- hero
- horizontal-scroller
- icon-box
- icon-button
- icon-label
- icon-list-item
- icon-list/deprecated
- icon
- image-box
- image
- map
- notification
- number-box
- posts
- price
- pricing-box
- progress-bar
- progress-circle
- separator
- spacer
- subtitle
- tab-content
- tab-labels
- table-of-contents
- tabs
- team-member
- testimonial
- text
- timeline
- video-popup
- components
- advanced-range-control
- block-css
- font-size-control
- four-range-control
- pro-control
- hooks
- plugins/global-settings
- buttons-and-icons
- preset-controls
- spacing-and-borders
- typography
- utils
- util
- styles
- typography
- welcome
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
102 files changed
+3949
-338
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
88 | | - | |
| 88 | + | |
89 | 89 | | |
90 | | - | |
| 90 | + | |
91 | 91 | | |
92 | 92 | | |
93 | | - | |
94 | | - | |
| 93 | + | |
| 94 | + | |
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
99 | | - | |
| 99 | + | |
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
107 | | - | |
| 107 | + | |
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
235 | 235 | | |
236 | 236 | | |
237 | 237 | | |
| 238 | + | |
238 | 239 | | |
239 | 240 | | |
240 | 241 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
2 | 6 | | |
3 | 7 | | |
4 | 8 | | |
| |||
53 | 57 | | |
54 | 58 | | |
55 | 59 | | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
56 | 67 | | |
57 | 68 | | |
58 | | - | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
59 | 75 | | |
60 | 76 | | |
61 | 77 | | |
62 | | - | |
| 78 | + | |
| 79 | + | |
63 | 80 | | |
64 | 81 | | |
65 | 82 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
86 | 87 | | |
87 | 88 | | |
88 | 89 | | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
89 | 93 | | |
90 | 94 | | |
91 | 95 | | |
| |||
100 | 104 | | |
101 | 105 | | |
102 | 106 | | |
| 107 | + | |
103 | 108 | | |
104 | 109 | | |
105 | 110 | | |
| |||
331 | 336 | | |
332 | 337 | | |
333 | 338 | | |
| 339 | + | |
334 | 340 | | |
335 | 341 | | |
336 | 342 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
7 | 9 | | |
8 | 10 | | |
9 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
211 | 211 | | |
212 | 212 | | |
213 | 213 | | |
214 | | - | |
215 | 214 | | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
216 | 222 | | |
217 | 223 | | |
218 | 224 | | |
| |||
225 | 231 | | |
226 | 232 | | |
227 | 233 | | |
228 | | - | |
229 | 234 | | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
230 | 242 | | |
231 | 243 | | |
232 | 244 | | |
| |||
241 | 253 | | |
242 | 254 | | |
243 | 255 | | |
244 | | - | |
245 | 256 | | |
246 | 257 | | |
247 | 258 | | |
248 | 259 | | |
249 | 260 | | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
250 | 268 | | |
251 | 269 | | |
252 | 270 | | |
| |||
259 | 277 | | |
260 | 278 | | |
261 | 279 | | |
262 | | - | |
263 | 280 | | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
264 | 288 | | |
265 | 289 | | |
266 | 290 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
2 | 4 | | |
3 | 5 | | |
4 | 6 | | |
| |||
38 | 40 | | |
39 | 41 | | |
40 | 42 | | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
22 | 24 | | |
23 | 25 | | |
24 | 26 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
16 | 18 | | |
17 | 19 | | |
18 | 20 | | |
| |||
185 | 187 | | |
186 | 188 | | |
187 | 189 | | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
188 | 193 | | |
189 | 194 | | |
190 | 195 | | |
| |||
228 | 233 | | |
229 | 234 | | |
230 | 235 | | |
| 236 | + | |
231 | 237 | | |
232 | 238 | | |
233 | 239 | | |
| |||
0 commit comments