Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
143 commits
Select commit Hold shift + click to select a range
fbe4c83
feat: size and spacing steps
Mar 7, 2025
a4bdd09
working range with steps
Mar 7, 2025
473d162
fix: remove extra assignment
Arukuen Mar 18, 2025
44fa10b
feat: add markmode in four range control
Arukuen Mar 18, 2025
868503d
feat: apply preset controls to fontSize, padding, margin, height
Arukuen Mar 18, 2025
d840726
feat: generate global css for presets
Arukuen Mar 18, 2025
6169719
feat: size and spacing steps
Mar 7, 2025
120bbe2
working range with steps
Mar 7, 2025
f40b72b
fix: remove extra assignment
Arukuen Mar 18, 2025
53ec598
feat: add markmode in four range control
Arukuen Mar 18, 2025
811e0b2
feat: apply preset controls to fontSize, padding, margin, height
Arukuen Mar 18, 2025
74eedd5
feat: generate global css for presets
Arukuen Mar 18, 2025
287f8c7
Merge branch 'feat/size-control-steps' of https://github.com/gambitph…
Arukuen Mar 18, 2025
9c36600
fix: apply generated css
Arukuen Mar 20, 2025
787a54a
fix: make fontSizes string to store CSS variables
Arukuen Mar 23, 2025
8254dd1
fix: add default to prioritization
Arukuen Mar 23, 2025
cf47f72
feat: support for custom presets
Arukuen Mar 25, 2025
526115e
feat: dynamically add styles in editor
Arukuen Mar 25, 2025
47cd13c
feat: dynamically add styles in editor with editor loader
Arukuen Mar 25, 2025
09cfc86
fix: get current marked value, go to markmode
Arukuen Mar 25, 2025
d85dffa
fix: css generation should consider custom, by each preset, not by pr…
Arukuen Mar 26, 2025
4d37e1a
fix: add additional functionalities to usePresetControls
Arukuen Mar 27, 2025
1a97892
fix: allow AdvancedRangeControl to set custom onReset
Arukuen Mar 27, 2025
8c52346
fix: do not add style for discarded presets
Arukuen Mar 27, 2025
6a26a97
fix: add comments, title in generated css
Arukuen Mar 30, 2025
754bfcb
fix: FourRangeControl markmode and initial value
Arukuen Mar 30, 2025
01d221a
feat: add row and column gap
Arukuen Mar 30, 2025
c957630
feat: add blockHeight and borderRadius
Arukuen Mar 31, 2025
6227528
feat: add blockHeight and borderRadius loader
Arukuen Mar 31, 2025
8b0e8cf
Merge branch 'feat/size-control-steps' into develop
Arukuen Mar 31, 2025
5d22e5f
fix: editorLoader merge
Arukuen Mar 31, 2025
962b841
feat: Use Global Typography sizes as preset
Arukuen Apr 2, 2025
d0b7cba
feat: add vertical/horizontal to mark mode for four range
Arukuen Apr 2, 2025
0d6e5fa
fix: removing of unit picker according to four range mode
Arukuen Apr 2, 2025
9047dca
fix: useTypographyAsPresets reactivity
Arukuen Apr 3, 2025
d4dc17f
Merge branch 'develop' into feat/size-control-steps
Arukuen Apr 4, 2025
cd1cbc1
feat: initial init
Arukuen Apr 4, 2025
045f6a0
fix: separate none and custom, fix issue with setting to none
Arukuen Apr 5, 2025
bbe3dca
fix: selecting font pair/type scale overwritting previous changes
Arukuen Apr 6, 2025
c817ada
chore: move other functions to utils
Arukuen Apr 6, 2025
477cfbe
fix: only get the new style for onChange, since changeStyle now handl…
Arukuen Apr 6, 2025
3f4f8ec
fix: set the value when changing from mark to custom
Arukuen Apr 6, 2025
0b33f3a
fix: typography min and max slider for rem
Arukuen Apr 6, 2025
558d0fe
fix: use only "var" in detecting CSS variable
Arukuen Apr 6, 2025
f74c488
fix: FourRangeControl synchronization of markmode; default markmode
Arukuen Apr 7, 2025
f86d210
feat: add none presets to padding and margin similar to native
Arukuen Apr 7, 2025
888ad9b
fix: use extractNumbersAndUnits that can process clamp, min, etc.
Arukuen Apr 7, 2025
ea5101e
fix: add rem support to allow custom mode to have values when switchi…
Arukuen Apr 7, 2025
ae3813a
feat: support mimic/clamping by using WP generated presets
Arukuen Apr 8, 2025
9a558c8
fix: global preset control title
Arukuen Apr 9, 2025
054216e
feat: apply body to html
Arukuen Apr 10, 2025
5ac5abc
Merge branch 'feat/size-control-steps' into feat/typography-typescale
Arukuen Apr 10, 2025
f912ffe
fix: add margin to apply html toggle
Arukuen Apr 10, 2025
1ec5add
fix: remove hasCSSVariableValue, always assume that marks has string …
Arukuen Apr 11, 2025
5ff4602
fix: get_option is never null
Arukuen Apr 11, 2025
c6d157a
fix: use wp_json_file_decode
Arukuen Apr 11, 2025
0746077
fix: remove JSON stringify since customPresets is just an array
Arukuen Apr 11, 2025
3c0c069
fix: separate loading of presets in another function
Arukuen Apr 11, 2025
2d1512f
fix: use wp_style_engine_get_stylesheet_from_css_rules to generate st…
Arukuen Apr 11, 2025
c979509
fix: translate only the words
Arukuen Apr 11, 2025
17ae06e
fix: move updating presets with typography to editor loader
Arukuen Apr 12, 2025
4098a50
fix: add typography deprecation for font size
Arukuen Apr 14, 2025
4a68153
fix: add block height deprecations
Arukuen Apr 14, 2025
4441660
fix: add row and column gaps deprecations
Arukuen Apr 14, 2025
38d75f0
fix: add row and column gaps deprecations
Arukuen Apr 15, 2025
4dc5987
Merge branch 'develop' into feat/size-control-steps
May 7, 2025
130d498
tweaked premium notice wording
May 7, 2025
46a7b29
fix: still match previous value even the custom values changes
Arukuen May 9, 2025
8efb71e
fix: implement presets in the design system; fix issues with reactivi…
Arukuen May 14, 2025
feb3274
fix: typography font size steps
Arukuen May 15, 2025
7352dd2
fix: sync mark mode
Arukuen May 15, 2025
b596683
fix: sync state when succeeding call to change styles
Arukuen May 15, 2025
02de0dc
fixed value preview
May 15, 2025
a2916e9
Merge branch 'develop' into feat/size-control-steps
May 15, 2025
43159bb
fix: error in getting css var name
Arukuen May 19, 2025
3b6e30e
feat: add use size preset by default option
Arukuen May 19, 2025
c928793
added more descriptive text
May 24, 2025
163bb2f
Merge branch 'develop' into feat/size-control-steps
May 24, 2025
1291164
temporarily skip since the test breaks now
May 24, 2025
9e2ee7d
fix: two-way value conversion between preset and custom mode
Arukuen May 25, 2025
189a73e
Merge branch 'feat/size-control-steps' of https://github.com/gambitph…
Arukuen May 25, 2025
523668a
version bump to 3.16.0 for the default option to kick in
May 25, 2025
c8977ba
Merge branch 'feat/size-control-steps' of https://github.com/gambitph…
May 25, 2025
85c3c9d
version bump to 3.16.0 for the default option to kick in
May 25, 2025
71766f6
prevent errors if upgrading and value is a number
May 25, 2025
d45d9cd
optimized to prevent repetitive calls
May 25, 2025
d8a2699
fix: update markmode when changing device type
Arukuen May 25, 2025
7e588d2
fix: move use size presets by default to editor settings
Arukuen May 25, 2025
1384c6e
fix: saving of new typography
Arukuen May 25, 2025
30cc1d3
fix: only cofirm when font family is changed
Arukuen May 25, 2025
277341f
fix: clean style object for comparison
Arukuen May 25, 2025
96190c7
update test for global typography
kaeizen May 26, 2025
961c7d2
fix: remove unused hasCSSVariableValue
Arukuen May 26, 2025
1e35989
Merge branch 'feat/size-control-steps' of https://github.com/gambitph…
Arukuen May 26, 2025
0b671a4
fix: add inner column spacing presets
Arukuen May 26, 2025
abe4a87
fix: add inner column > inner column spacing presets
Arukuen May 26, 2025
1cb15b0
fix: also clean typography style for consistency
Arukuen May 26, 2025
34ef9b9
fix: consider unit conversion during two-way value conversion between…
Arukuen May 26, 2025
825b58f
fix: consider unit conversion during two-way value conversion between…
Arukuen May 26, 2025
9bd6a27
fix: remove placeholder for custom css in number input
Arukuen May 26, 2025
fac5fb6
fix: add fallback tooltip for theme.json data with no name like blocksy
Arukuen May 26, 2025
e853ebd
fix: bug fixes
Arukuen May 27, 2025
3a660e2
fix: bug fix
Arukuen May 27, 2025
218c7b6
fix: four range reactivity
Arukuen May 27, 2025
11a204e
init
kaeizen May 28, 2025
5238261
Merge branch 'feat/size-control-steps' into feat/new-design-library
kaeizen May 28, 2025
6ed023b
fix: do not actually change value when switching mode
Arukuen May 28, 2025
3f3feb1
Merge branch 'feat/size-control-steps' into feat/new-design-library
kaeizen May 28, 2025
9b469a1
remove error
kaeizen May 28, 2025
a7aea62
fix render of preview
kaeizen May 28, 2025
bc53b53
Merge branch 'develop' into feat/new-design-library
kaeizen Jun 2, 2025
7044dab
updates
kaeizen Jun 2, 2025
ee3d178
fix preview of designs
kaeizen Jun 2, 2025
68ecb80
updates
kaeizen Jun 2, 2025
c7fbc67
update placeholder defaults
kaeizen Jun 2, 2025
37fa05a
fix fatal error
kaeizen Jun 2, 2025
86c02b2
fix issues from user testing
kaeizen Jun 2, 2025
ce8013e
updates
kaeizen Jun 4, 2025
2ac2d58
Merge branch 'develop' into feat/new-design-library
kaeizen Jun 4, 2025
9ecdfd8
add fixes
kaeizen Jun 4, 2025
a6b6853
fix color schemes not being applied
kaeizen Jun 5, 2025
8f7f600
add other categories, add background to category
kaeizen Jun 5, 2025
415d0d6
fix spinner when fetching from cloud
kaeizen Jun 5, 2025
7806c7a
add confirm dialog when going to color schemes
kaeizen Jun 5, 2025
c51f1d4
add plain button compatibility for tove
kaeizen Jun 5, 2025
e14304d
add default placeholders for testimonials
kaeizen Jun 5, 2025
d9a58f6
update blocklist
kaeizen Jun 5, 2025
2bdccb9
Merge branch 'develop' into feat/new-design-library
Jun 6, 2025
8d8414b
fix issues
kaeizen Jun 10, 2025
2db13d3
fix remaining issues
kaeizen Jun 12, 2025
38205d0
Merge branch 'develop' into feat/new-design-library
kaeizen Jun 16, 2025
c12aff2
apply fixes
kaeizen Jun 16, 2025
f80bd6f
add fixes
kaeizen Jun 20, 2025
c4f7e35
update placeholders
kaeizen Jul 1, 2025
bfa4ddf
Merge branch 'develop' into feat/new-design-library
kaeizen Jul 1, 2025
f68bb40
fix scale for selected designs when switching categories
kaeizen Jul 1, 2025
fc74efa
fix error handling for image download/upload
kaeizen Jul 1, 2025
c0eb2f5
update placeholders, fix design render
kaeizen Jul 1, 2025
faf05f5
remove designs for v2
kaeizen Jul 3, 2025
22b308c
Merge branch 'develop' into feat/new-design-library
Jul 3, 2025
a593090
update designs
kaeizen Jul 3, 2025
1364680
Merge branch 'develop' into feat/new-design-library
Jul 3, 2025
be8c421
inherit text color for subtitle
kaeizen Jul 4, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
415 changes: 293 additions & 122 deletions src/block/design-library/edit.js

Large diffs are not rendered by default.

14 changes: 8 additions & 6 deletions src/block/icon-list/substitute.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
export const substitute = {
from: 'stackable/icon-list',
transform: () => {
transform: ( oldAttributes, innerBlocks ) => {
const newInnerBlocks = innerBlocks.reduce( ( newInnerBlocks, innerBlock ) => {
const attributes = innerBlock[ 1 ]

newInnerBlocks.push( [ 'core/list-item', { content: attributes.text } ] )
return newInnerBlocks
}, [] )
return [
'core/list',
{},
[
[ 'core/list-item', { content: 'First item list' } ],
[ 'core/list-item', { content: 'Second item list' } ],
[ 'core/list-item', { content: 'Third item list' } ],
],
newInnerBlocks,
]
},
}
Expand Down
4 changes: 4 additions & 0 deletions src/compatibility/tove/style.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
:where(.stk-has-block-style-inheritance.stk--is-tove-theme) :is(.stk-block-button, .stk-block-icon-button, .stk-block-pagination):is(.is-style-plain) .stk-button {
border-width: 0;
box-shadow: none;
}
12 changes: 12 additions & 0 deletions src/components/color-scheme-preview/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -76,3 +76,15 @@
.stk-scheme--is-disabled {
opacity: 0.1;
}

.stk-scheme--is-collapsed {
flex-direction: row;
gap: 4px;
align-items: center;
max-height: 30px;

.stk-global-color-scheme__preview__typography {
margin-bottom: 0;
font-size: 12px;
}
}
7 changes: 6 additions & 1 deletion src/components/color-scheme-preview/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,18 @@ export const DEFAULT_COLOR_SCHEME_COLORS = {
const NOOP = () => {}

const ColorSchemePreview = ( {
colors, withWrapper = false, onClick = NOOP, isDisabled = false,
colors,
withWrapper = false,
onClick = NOOP,
isDisabled = false,
isCollapsed = false,
} ) => {
const TagName = onClick === NOOP ? 'div' : Button
const additionalProps = onClick === NOOP ? {} : { onClick }

const classNames = classnames( 'stk-global-color-scheme__preview__background', {
'stk-scheme--is-disabled': isDisabled,
'stk-scheme--is-collapsed': isCollapsed,
} )

return (
Expand Down
21 changes: 17 additions & 4 deletions src/components/color-schemes-help/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,20 @@ import { Link } from '~stackable/components'
import { __ } from '@wordpress/i18n'
import { dispatch } from '@wordpress/data'

export const ColorSchemesHelp = () => {
export const ColorSchemesHelp = props => {
const {
customText, callback, className,
} = props
const onClick = () => {
let cancelOnClick = false
if ( callback ) {
cancelOnClick = callback()
}

if ( cancelOnClick ) {
return
}

// Open the global settings sidebar.
dispatch( 'core/edit-post' )?.openGeneralSidebar( 'stackable-global-settings/sidebar' ) // For Block Editor
dispatch( 'core/edit-site' )?.openGeneralSidebar( 'stackable-global-settings/sidebar' ) // For Site Editor
Expand All @@ -31,9 +43,10 @@ export const ColorSchemesHelp = () => {
}

return <>
<span>{ __( 'Change the color scheme.', i18n ) }</span>
&nbsp;
<Link onClick={ onClick }> { __( 'Manage your color schemes.', i18n ) } </Link>
{ customText || customText === '' ? customText
: <span>{ __( 'Change the color scheme.', i18n ) }</span> }
{ customText !== '' && <>&nbsp;</> }
<Link className={ className } onClick={ onClick }> { __( 'Manage your color schemes.', i18n ) } </Link>
</>
}

502 changes: 502 additions & 0 deletions src/components/design-library-list/default.json

Large diffs are not rendered by default.

Loading
Loading