Skip to content

Commit 11a204e

Browse files
committed
init
1 parent 8535c8d commit 11a204e

File tree

23 files changed

+1969
-893
lines changed

23 files changed

+1969
-893
lines changed

src/block/design-library/edit.js

Lines changed: 225 additions & 98 deletions
Large diffs are not rendered by default.

src/components/color-scheme-preview/editor.scss

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,3 +76,15 @@
7676
.stk-scheme--is-disabled {
7777
opacity: 0.1;
7878
}
79+
80+
.stk-scheme--is-collapsed {
81+
flex-direction: row;
82+
gap: 4px;
83+
align-items: center;
84+
max-height: 30px;
85+
86+
.stk-global-color-scheme__preview__typography {
87+
margin-bottom: 0;
88+
font-size: 12px;
89+
}
90+
}

src/components/color-scheme-preview/index.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,18 @@ export const DEFAULT_COLOR_SCHEME_COLORS = {
1414
const NOOP = () => {}
1515

1616
const ColorSchemePreview = ( {
17-
colors, withWrapper = false, onClick = NOOP, isDisabled = false,
17+
colors,
18+
withWrapper = false,
19+
onClick = NOOP,
20+
isDisabled = false,
21+
isCollapsed = false,
1822
} ) => {
1923
const TagName = onClick === NOOP ? 'div' : Button
2024
const additionalProps = onClick === NOOP ? {} : { onClick }
2125

2226
const classNames = classnames( 'stk-global-color-scheme__preview__background', {
2327
'stk-scheme--is-disabled': isDisabled,
28+
'stk-scheme--is-collapsed': isCollapsed,
2429
} )
2530

2631
return (

src/components/color-schemes-help/index.js

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,15 @@ import { Link } from '~stackable/components'
44
import { __ } from '@wordpress/i18n'
55
import { dispatch } from '@wordpress/data'
66

7-
export const ColorSchemesHelp = () => {
7+
export const ColorSchemesHelp = props => {
8+
const {
9+
customText, callback, renderComponent,
10+
} = props
811
const onClick = () => {
12+
if ( callback ) {
13+
callback()
14+
}
15+
916
// Open the global settings sidebar.
1017
dispatch( 'core/edit-post' )?.openGeneralSidebar( 'stackable-global-settings/sidebar' ) // For Block Editor
1118
dispatch( 'core/edit-site' )?.openGeneralSidebar( 'stackable-global-settings/sidebar' ) // For Site Editor
@@ -30,8 +37,13 @@ export const ColorSchemesHelp = () => {
3037
}, 10 )
3138
}
3239

40+
if ( renderComponent ) {
41+
return renderComponent( onClick )
42+
}
43+
3344
return <>
34-
<span>{ __( 'Change the color scheme.', i18n ) }</span>
45+
{ customText ? customText
46+
: <span>{ __( 'Change the color scheme.', i18n ) }</span> }
3547
&nbsp;
3648
<Link onClick={ onClick }> { __( 'Manage your color schemes.', i18n ) } </Link>
3749
</>
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"FAQ": {
3+
"heading_placeholder": "Frequently Asked Questions (FAQs)",
4+
"description_placeholder": "Find answers to the most common questions about [Your Product/Service]. If you can't find what you're looking for here, please contact us.",
5+
6+
"question-1_placeholder": "What features does your service offer?",
7+
"answer-1_placeholder": "Our service offers a comprehensive set of features designed to help you manage your tasks. Key features include Feature A, Feature B, and Feature C. You can find a full list and details on our Features Page.",
8+
9+
"question-2_placeholder": "Is our Service integrated with other products?",
10+
"answer-2_placeholder": "Yes, our Service offers integrations with various popular products and services to streamline your workflow. We currently integrate with Product A, Product B, and Product C. You can find more information about our current integrations and how to set them up on our [Integrations Page Link]. We are continuously working on adding more integrations.",
11+
12+
"question-3_placeholder": "What are the pricing options involved?",
13+
"answer-3_placeholder": "We offer several pricing options to suit different needs. You can view a detailed breakdown of our plans and features on our Pricing Page. We have a free tier, monthly subscriptions, and annual plans.",
14+
15+
"question-4_placeholder": "What payment methods do you accept?",
16+
"answer-4_placeholder": "We accept various convenient payment methods, including major credit cards (Visa, MasterCard, American Express), and in some cases, bank transfers. You can select your preferred payment method during the checkout or subscription process.",
17+
18+
"question-5_placeholder": "What is your cancellation/refund policy?",
19+
"answer-5_placeholder": "Our cancellation policy allows you to cancel your subscription at any time through your account settings. Regarding refunds, our policy is we offer a 30-day money-back guarantee. Please refer to our Terms of Service Page for complete details.",
20+
21+
"question-6_placeholder": "What are your hours of operation?",
22+
"answer-6_placeholder": "Our standard hours of operation are Monday to Friday, 9:00 AM to 5:00 PM in Pacific Standard Time (PST).",
23+
24+
"question-7_placeholder": "How can I contact customer support?",
25+
"answer-7_placeholder": "You can contact our customer support team through several channels: Submit a request via our Support Contact Form. Email us directly at [email protected]. Use our live chat feature available on our website during business hours. Our support hours are Monday-Friday, 9 AM - 5 PM Pacific Standard Time (PST).",
26+
27+
"question-8_placeholder": "How can I provide feedback?",
28+
"answer-8_placeholder": "We highly value your feedback as it helps us improve. You can provide feedback through several methods: Use the feedback form on our website, or email your suggestions or comments to [email protected]. You can also participate in surveys. We review all feedback submitted."
29+
}
30+
}

0 commit comments

Comments
 (0)