diff --git a/apps/storybook/src/stories/core/PricingCard.stories.js b/apps/storybook/src/stories/core/PricingCard.stories.js index 361f6c32..162dd4f9 100644 --- a/apps/storybook/src/stories/core/PricingCard.stories.js +++ b/apps/storybook/src/stories/core/PricingCard.stories.js @@ -7,6 +7,20 @@ const defaultFeatures = [ { icon: 'pi-check', label: '24/7 support' } ] +const renderWithButtonSlot = (slotContent) => (args) => ({ + components: { PricingCard }, + setup() { + return { args } + }, + template: ` + + + + ` +}) + export default { title: 'Core/PricingCard', component: PricingCard, @@ -53,23 +67,6 @@ export default { control: 'text', description: 'Custom text replacing numeric price' }, - buttonLabel: { - control: 'text', - description: 'Call-to-action label' - }, - buttonLink: { - control: 'text', - description: 'CTA destination URL' - }, - buttonTarget: { - control: 'select', - options: ['_self', '_blank'], - description: 'CTA target behavior' - }, - buttonHidden: { - control: 'boolean', - description: 'Hides the CTA area' - }, orientation: { control: 'select', options: ['vertical', 'horizontal'], @@ -89,13 +86,17 @@ export const Default = { annualPrice: '$39', currentPeriod: 'monthly', priceLabel: 'start at', - buttonLabel: 'Get Started', - buttonLink: '#', - buttonTarget: '_self', customPrice: '', - buttonHidden: false, orientation: 'vertical' - } + }, + render: renderWithButtonSlot(` + + Get Started + + `) } export const Popular = { @@ -103,43 +104,38 @@ export const Popular = { ...Default.args, popular: true, title: 'Business' - } + }, + render: Default.render } export const AnnualBilling = { args: { ...Default.args, currentPeriod: 'annual' - } + }, + render: Default.render } export const CustomPrice = { args: { ...Default.args, title: 'Enterprise', - customPrice: 'Contact us', - buttonLabel: 'Talk to Sales' - } -} - -export const WithoutButton = { - args: { - ...Default.args, - buttonHidden: true - } + customPrice: 'Contact us' + }, + render: renderWithButtonSlot(` + + Talk to Sales + + `) } export const Horizontal = { args: { ...Default.args, orientation: 'horizontal' - } -} - -export const HorizontalWithoutButton = { - args: { - ...Default.args, - buttonHidden: true, - orientation: 'horizontal' - } + }, + render: Default.render } diff --git a/packages/theme/src/tailwind/semantic-colors-plugin.js b/packages/theme/src/tailwind/semantic-colors-plugin.js index fd4e40eb..4ae16a11 100644 --- a/packages/theme/src/tailwind/semantic-colors-plugin.js +++ b/packages/theme/src/tailwind/semantic-colors-plugin.js @@ -62,6 +62,7 @@ export const semanticColors = () => { '.bg-backdrop': { 'background-color': 'var(--background-backdrop)' }, '.bg-primary': { 'background-color': 'var(--background-primary)' }, '.bg-primaryHover': { 'background-color': 'var(--background-primaryHover)' }, + '.bg-primary-mask': { 'background-color': 'var(--background-primaryMask)' }, }; const borderColors = { diff --git a/packages/theme/src/tokens/primitives/colors.js b/packages/theme/src/tokens/primitives/colors.js index 0137bd6d..a5e1c47b 100644 --- a/packages/theme/src/tokens/primitives/colors.js +++ b/packages/theme/src/tokens/primitives/colors.js @@ -127,6 +127,16 @@ export const primitives = { '900': '#7F1D1D', '950': '#450A0A', }, + alpha: { + neutral: { + '25': '#00000040', + }, + brand: { + primary: { + '65': '#FE601F29', + }, + }, + }, }; export default { diff --git a/packages/webkit/src/components/box-grid-selection/box-grid-selection.vue b/packages/webkit/src/components/box-grid-selection/box-grid-selection.vue index d5c7b186..3055a725 100644 --- a/packages/webkit/src/components/box-grid-selection/box-grid-selection.vue +++ b/packages/webkit/src/components/box-grid-selection/box-grid-selection.vue @@ -1,3 +1,29 @@ + + - -