@yext/visual-editor 0.0.23 → 0.0.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -6,7 +6,7 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
6
6
  import * as class_variance_authority_dist_types from 'class-variance-authority/dist/types';
7
7
  import { VariantProps } from 'class-variance-authority';
8
8
  import * as react_jsx_runtime_js from 'react/jsx-runtime.js';
9
- import { AddressType, ImageType, CTA as CTA$1, Coordinate, GetDirectionsConfig, HoursType, DayOfWeekNames } from '@yext/pages-components';
9
+ import { LinkType, AddressType, ImageType, CTA as CTA$1, Coordinate, GetDirectionsConfig, HoursType, DayOfWeekNames } from '@yext/pages-components';
10
10
  import * as class_variance_authority_dist_types_js from 'class-variance-authority/dist/types.js';
11
11
 
12
12
  declare const usePlatformBridgeDocument: () => any;
@@ -141,7 +141,7 @@ declare const YextEntityFieldSelector: <T extends Record<string, any>, U>(props:
141
141
 
142
142
  declare const resolveYextEntityField: <T>(document: any, entityField: YextEntityField<T>) => T | undefined;
143
143
 
144
- declare const themeMangerTwMergeConfiguration: {
144
+ declare const themeManagerTwMergeConfiguration: {
145
145
  extend: {
146
146
  classGroups: {
147
147
  "font-family": {
@@ -156,8 +156,14 @@ declare const themeMangerTwMergeConfiguration: {
156
156
  "text-color": {
157
157
  text: ((value: string) => boolean)[];
158
158
  }[];
159
- "gap-y": {
160
- "gap-y": ((value: string) => boolean)[];
159
+ gap: {
160
+ gap: ((value: string) => boolean)[];
161
+ }[];
162
+ py: {
163
+ py: ((value: string) => boolean)[];
164
+ }[];
165
+ px: {
166
+ px: ((value: string) => boolean)[];
161
167
  }[];
162
168
  "max-w": {
163
169
  "max-w": ((value: string) => boolean)[];
@@ -171,7 +177,7 @@ declare const themeMangerTwMergeConfiguration: {
171
177
  };
172
178
  };
173
179
  };
174
- declare function themeMangerCn(...inputs: ClassValue[]): string;
180
+ declare function themeManagerCn(...inputs: ClassValue[]): string;
175
181
 
176
182
  type FontRegistry = Record<string, FontSpecification>;
177
183
  type FontSpecification = {
@@ -218,12 +224,29 @@ declare const validateSlug: (content: string) => boolean;
218
224
  */
219
225
  declare const normalizeSlug: (content: string) => string;
220
226
 
227
+ declare const getFontSizeOptions: (includeLargeSizes?: boolean) => {
228
+ label: string;
229
+ value: string;
230
+ }[];
231
+ declare const getBorderRadiusOptions: () => {
232
+ label: string;
233
+ value: string;
234
+ }[];
235
+ declare const getSpacingOptions: () => {
236
+ label: string;
237
+ value: string;
238
+ }[];
239
+
240
+ declare const applyAnalytics: (document: Record<string, any>) => string | undefined;
241
+
221
242
  type EditorProps = {
222
243
  document: any;
223
244
  componentRegistry: Map<string, Config<any>>;
224
245
  themeConfig?: ThemeConfig;
246
+ localDev?: boolean;
247
+ forceThemeMode?: boolean;
225
248
  };
226
- declare const Editor: ({ document, componentRegistry, themeConfig, }: EditorProps) => react_jsx_runtime.JSX.Element;
249
+ declare const Editor: ({ document, componentRegistry, themeConfig, localDev, forceThemeMode, }: EditorProps) => react_jsx_runtime.JSX.Element;
227
250
 
228
251
  type EntityFieldProps = {
229
252
  displayName?: string;
@@ -240,7 +263,11 @@ type NumberFieldWithDefaultOptionProps = {
240
263
  };
241
264
  declare const NumberFieldWithDefaultOption: ({ label, defaultCustomValue, }: NumberFieldWithDefaultOptionProps) => CustomField<NumberOrDefault>;
242
265
 
243
- declare const FontSizeSelector: (label?: string) => Field;
266
+ declare const FontSizeSelector: (label?: string, includeLargeSizes?: boolean) => Field;
267
+
268
+ declare const BorderRadiusSelector: (label?: string) => Field;
269
+
270
+ declare const SpacingSelector: (spacingType: "padding" | "gap", label?: string) => Field;
244
271
 
245
272
  declare const bodyVariants: (props?: ({
246
273
  fontSize?: "default" | "base" | "xs" | "sm" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl" | null | undefined;
@@ -254,9 +281,9 @@ declare const Body: React.ForwardRefExoticComponent<BodyProps & React.RefAttribu
254
281
 
255
282
  declare const buttonVariants: (props?: ({
256
283
  variant?: "link" | "primary" | null | undefined;
257
- size?: "small" | "default" | "icon" | "large" | null | undefined;
284
+ size?: "small" | "icon" | "large" | null | undefined;
258
285
  fontSize?: "default" | "base" | "xs" | "sm" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | null | undefined;
259
- borderRadius?: "default" | "none" | "large" | "medium" | "full" | null | undefined;
286
+ borderRadius?: "default" | "none" | "xs" | "sm" | "lg" | "xl" | "2xl" | "3xl" | "md" | "full" | null | undefined;
260
287
  } & class_variance_authority_dist_types.ClassProp) | undefined) => string;
261
288
  interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
262
289
  asChild?: boolean;
@@ -266,18 +293,19 @@ declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAtt
266
293
  interface CTAProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
267
294
  label?: string;
268
295
  link?: string;
296
+ linkType?: LinkType;
269
297
  variant?: ButtonProps["variant"];
270
298
  size?: ButtonProps["size"];
271
299
  borderRadius?: ButtonProps["borderRadius"];
272
300
  fontSize?: ButtonProps["fontSize"];
273
301
  }
274
302
  declare const CTA: {
275
- ({ label, link, variant, size, borderRadius, className, fontSize, }: CTAProps): react_jsx_runtime_js.JSX.Element;
303
+ ({ label, link, linkType, variant, size, borderRadius, className, fontSize, }: CTAProps): react_jsx_runtime_js.JSX.Element;
276
304
  displayName: string;
277
305
  };
278
306
 
279
307
  declare const headingVariants: (props?: ({
280
- level?: 2 | 1 | 3 | 4 | 5 | 6 | null | undefined;
308
+ level?: 2 | 1 | 3 | 5 | 4 | 6 | null | undefined;
281
309
  fontSize?: "default" | "base" | "xs" | "sm" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl" | null | undefined;
282
310
  weight?: "default" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | null | undefined;
283
311
  color?: "default" | "text" | "accent" | "secondary" | "primary" | "background" | null | undefined;
@@ -321,9 +349,9 @@ interface BodyTextProps extends BodyProps {
321
349
  declare const BodyTextComponent: ComponentConfig<BodyTextProps>;
322
350
 
323
351
  declare const imageWrapperVariants: (props?: ({
324
- size?: "small" | "large" | "medium" | "full" | null | undefined;
352
+ size?: "small" | "large" | "full" | "medium" | null | undefined;
325
353
  aspectRatio?: "video" | "auto" | "square" | "portrait" | null | undefined;
326
- rounded?: "small" | "none" | "large" | "medium" | "full" | null | undefined;
354
+ rounded?: "small" | "none" | "large" | "full" | "medium" | null | undefined;
327
355
  } & class_variance_authority_dist_types_js.ClassProp) | undefined) => string;
328
356
  interface ImageWrapperProps extends VariantProps<typeof imageWrapperVariants> {
329
357
  image: YextEntityField<ImageType>;
@@ -336,6 +364,7 @@ interface CardProps {
336
364
  text: YextEntityField<string>;
337
365
  fontSize: HeadingProps["fontSize"];
338
366
  color: HeadingProps["color"];
367
+ weight: HeadingProps["weight"];
339
368
  transform: HeadingProps["transform"];
340
369
  level: HeadingLevel;
341
370
  };
@@ -343,6 +372,7 @@ interface CardProps {
343
372
  text: YextEntityField<string>;
344
373
  fontSize: HeadingProps["fontSize"];
345
374
  color: HeadingProps["color"];
375
+ weight: HeadingProps["weight"];
346
376
  transform: HeadingProps["transform"];
347
377
  level: HeadingLevel;
348
378
  };
@@ -350,6 +380,7 @@ interface CardProps {
350
380
  text: YextEntityField<string>;
351
381
  fontSize: BodyProps["fontSize"];
352
382
  color: BodyProps["color"];
383
+ weight: BodyProps["fontWeight"];
353
384
  transform: BodyProps["textTransform"];
354
385
  };
355
386
  image: {
@@ -378,7 +409,7 @@ interface CTAWrapperProps {
378
409
  declare const CTAWrapperComponent: ComponentConfig<CTAWrapperProps>;
379
410
 
380
411
  declare const emailsVariants: (props?: ({
381
- fontSize?: "default" | "xs" | "sm" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "medium" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl" | null | undefined;
412
+ fontSize?: "default" | "xs" | "sm" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl" | "medium" | null | undefined;
382
413
  fontWeight?: "default" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | null | undefined;
383
414
  color?: "default" | "text" | "accent" | "secondary" | "primary" | "background" | null | undefined;
384
415
  } & class_variance_authority_dist_types_js.ClassProp) | undefined) => string;
@@ -389,16 +420,22 @@ interface EmailsProps extends VariantProps<typeof emailsVariants> {
389
420
  }
390
421
  declare const EmailsComponent: ComponentConfig<EmailsProps>;
391
422
 
392
- declare const flexContainerVariants: (props?: ({
393
- direction?: "row" | "column" | null | undefined;
394
- alignment?: "end" | "start" | "center" | "stretch" | null | undefined;
395
- justification?: "end" | "start" | "center" | "spaceBetween" | "spaceAround" | null | undefined;
396
- spacing?: "small" | "large" | "medium" | null | undefined;
397
- wrap?: "wrap" | "nowrap" | null | undefined;
398
- } & class_variance_authority_dist_types_js.ClassProp) | undefined) => string;
399
- interface FlexContainerProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof flexContainerVariants> {
423
+ declare const layoutVariants: (props?: ({
424
+ gap?: "0" | "1" | "2" | "3" | "4" | "default" | "none" | "5" | "6" | "7" | "8" | "12" | "16" | "24" | "14" | "20" | "0.5" | "1.5" | "2.5" | "10" | "3.5" | "9" | "11" | null | undefined;
425
+ verticalPadding?: "0" | "1" | "2" | "3" | "4" | "default" | "5" | "6" | "7" | "8" | "12" | "16" | "24" | "14" | "20" | "0.5" | "1.5" | "2.5" | "10" | "3.5" | "9" | "11" | null | undefined;
426
+ horizontalPadding?: "0" | "1" | "2" | "3" | "4" | "default" | "5" | "6" | "7" | "8" | "12" | "16" | "24" | "14" | "20" | "0.5" | "1.5" | "2.5" | "10" | "3.5" | "9" | "11" | null | undefined;
427
+ backgroundColor?: "default" | "text" | "accent" | "inherit" | "secondary" | "primary" | "background" | null | undefined;
428
+ } & class_variance_authority_dist_types.ClassProp) | undefined) => string;
429
+ declare const innerLayoutVariants: (props?: ({
430
+ maxContentWidth?: "default" | "none" | "lg" | "xl" | "xxl" | null | undefined;
431
+ } & class_variance_authority_dist_types.ClassProp) | undefined) => string;
432
+
433
+ interface FlexProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof layoutVariants>, VariantProps<typeof innerLayoutVariants> {
434
+ justifyContent: "start" | "center" | "end";
435
+ direction: "row" | "column";
436
+ wrap: "wrap" | "nowrap";
400
437
  }
401
- declare const FlexContainerComponent: ComponentConfig<FlexContainerProps>;
438
+ declare const FlexContainerComponent: ComponentConfig<FlexProps>;
402
439
 
403
440
  declare const footerVariants: (props?: ({
404
441
  backgroundColor?: "default" | "text" | "accent" | "secondary" | "primary" | "background" | null | undefined;
@@ -423,25 +460,14 @@ type GetDirectionsProps = {
423
460
  };
424
461
  declare const GetDirectionsComponent: ComponentConfig<GetDirectionsProps>;
425
462
 
426
- declare const backgroundVariants: (props?: ({
427
- backgroundColor?: "default" | "text" | "accent" | "secondary" | "primary" | "background" | null | undefined;
428
- maxContentWidth?: "default" | "lg" | "xl" | "xxl" | null | undefined;
429
- } & class_variance_authority_dist_types_js.ClassProp) | undefined) => string;
430
- declare const gridSectionVariants: (props?: ({
431
- horizontalSpacing?: "small" | "large" | "medium" | null | undefined;
432
- } & class_variance_authority_dist_types_js.ClassProp) | undefined) => string;
433
- declare const columnVariants: (props?: ({
434
- verticalAlignment?: "end" | "start" | "center" | "spaceBetween" | null | undefined;
435
- } & class_variance_authority_dist_types_js.ClassProp) | undefined) => string;
436
- interface ColumnProps extends VariantProps<typeof columnVariants> {
463
+ interface ColumnProps {
464
+ justifyContent: "center" | "start" | "end" | "spaceBetween";
437
465
  span?: number;
438
466
  }
439
- interface GridSectionProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof gridSectionVariants>, VariantProps<typeof backgroundVariants> {
440
- verticalPadding: string;
441
- distribution: "auto" | "manual";
467
+ interface GridProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof layoutVariants>, VariantProps<typeof innerLayoutVariants> {
442
468
  columns: ColumnProps[];
443
469
  }
444
- declare const GridSectionComponent: ComponentConfig<GridSectionProps>;
470
+ declare const GridSectionComponent: ComponentConfig<GridProps>;
445
471
 
446
472
  declare const headerVariants: (props?: ({
447
473
  backgroundColor?: "default" | "text" | "accent" | "secondary" | "primary" | "background" | null | undefined;
@@ -532,4 +558,4 @@ interface TextListProps extends VariantProps<typeof textListVariants> {
532
558
  }
533
559
  declare const TextListComponent: ComponentConfig<TextListProps>;
534
560
 
535
- export { AddressComponent as Address, type AddressProps, Banner, type BannerProps, Body, type BodyProps, BodyTextComponent as BodyText, type BodyTextProps, Button, type ButtonProps, CTA, type CTAProps, CTAWrapperComponent as CTAWrapper, type CTAWrapperProps, CardComponent as Card, type CardProps, DocumentContext, Editor, EmailsComponent as Emails, type EmailsProps, EntityField, FlexContainerComponent as FlexContainer, type FlexContainerProps, type FontRegistry, FontSizeSelector, Footer, type FooterProps, GetDirectionsComponent as GetDirections, type GetDirectionsProps, GridSectionComponent as GridSection, type GridSectionProps, Header, type HeaderProps, Heading, type HeadingProps, HeadingTextComponent as HeadingText, type HeadingTextProps, HoursStatusComponent as HoursStatus, type HoursStatusProps, HoursTableComponent as HoursTable, type HoursTableProps, ImageWrapperComponent as ImageWrapper, type ImageWrapperProps, NumberFieldWithDefaultOption, type NumberFieldWithDefaultOptionProps, type NumberOrDefault, PhoneComponent as Phone, type PhoneProps, PromoComponent as Promo, type PromoProps, type RenderYextEntityFieldSelectorProps, Section, type SectionProps, TailwindConfigContext, TextListComponent as TextList, type TextListProps, type ThemeConfig, VisualEditorProvider, type YextEntityField, YextEntityFieldSelector, applyTheme, bodyVariants, buttonVariants, constructFontSelectOptions, defaultFonts, getFontWeightOptions, getFontWeightOverrideOptions, headingVariants, normalizeSlug, resolveYextEntityField, sectionVariants, themeMangerCn, themeMangerTwMergeConfiguration, themeResolver, useDocument, useEntityFields, usePlatformBridgeDocument, usePlatformBridgeEntityFields, useTailwindConfig, validateSlug };
561
+ export { AddressComponent as Address, type AddressProps, Banner, type BannerProps, Body, type BodyProps, BodyTextComponent as BodyText, type BodyTextProps, BorderRadiusSelector, Button, type ButtonProps, CTA, type CTAProps, CTAWrapperComponent as CTAWrapper, type CTAWrapperProps, CardComponent as Card, type CardProps, DocumentContext, Editor, EmailsComponent as Emails, type EmailsProps, EntityField, FlexContainerComponent as Flex, type FlexProps, type FontRegistry, FontSizeSelector, Footer, type FooterProps, GetDirectionsComponent as GetDirections, type GetDirectionsProps, GridSectionComponent as Grid, type GridProps, Header, type HeaderProps, Heading, type HeadingProps, HeadingTextComponent as HeadingText, type HeadingTextProps, HoursStatusComponent as HoursStatus, type HoursStatusProps, HoursTableComponent as HoursTable, type HoursTableProps, ImageWrapperComponent as ImageWrapper, type ImageWrapperProps, NumberFieldWithDefaultOption, type NumberFieldWithDefaultOptionProps, type NumberOrDefault, PhoneComponent as Phone, type PhoneProps, PromoComponent as Promo, type PromoProps, type RenderYextEntityFieldSelectorProps, Section, type SectionProps, SpacingSelector, TailwindConfigContext, TextListComponent as TextList, type TextListProps, type ThemeConfig, VisualEditorProvider, type YextEntityField, YextEntityFieldSelector, type YextFieldDefinition, type YextSchemaField, applyAnalytics, applyTheme, bodyVariants, buttonVariants, constructFontSelectOptions, defaultFonts, getBorderRadiusOptions, getFontSizeOptions, getFontWeightOptions, getFontWeightOverrideOptions, getSpacingOptions, headingVariants, normalizeSlug, resolveYextEntityField, sectionVariants, themeManagerCn, themeManagerTwMergeConfiguration, themeResolver, useDocument, useEntityFields, usePlatformBridgeDocument, usePlatformBridgeEntityFields, useTailwindConfig, validateSlug };
package/dist/index.d.ts CHANGED
@@ -6,7 +6,7 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
6
6
  import * as class_variance_authority_dist_types from 'class-variance-authority/dist/types';
7
7
  import { VariantProps } from 'class-variance-authority';
8
8
  import * as react_jsx_runtime_js from 'react/jsx-runtime.js';
9
- import { AddressType, ImageType, CTA as CTA$1, Coordinate, GetDirectionsConfig, HoursType, DayOfWeekNames } from '@yext/pages-components';
9
+ import { LinkType, AddressType, ImageType, CTA as CTA$1, Coordinate, GetDirectionsConfig, HoursType, DayOfWeekNames } from '@yext/pages-components';
10
10
  import * as class_variance_authority_dist_types_js from 'class-variance-authority/dist/types.js';
11
11
 
12
12
  declare const usePlatformBridgeDocument: () => any;
@@ -141,7 +141,7 @@ declare const YextEntityFieldSelector: <T extends Record<string, any>, U>(props:
141
141
 
142
142
  declare const resolveYextEntityField: <T>(document: any, entityField: YextEntityField<T>) => T | undefined;
143
143
 
144
- declare const themeMangerTwMergeConfiguration: {
144
+ declare const themeManagerTwMergeConfiguration: {
145
145
  extend: {
146
146
  classGroups: {
147
147
  "font-family": {
@@ -156,8 +156,14 @@ declare const themeMangerTwMergeConfiguration: {
156
156
  "text-color": {
157
157
  text: ((value: string) => boolean)[];
158
158
  }[];
159
- "gap-y": {
160
- "gap-y": ((value: string) => boolean)[];
159
+ gap: {
160
+ gap: ((value: string) => boolean)[];
161
+ }[];
162
+ py: {
163
+ py: ((value: string) => boolean)[];
164
+ }[];
165
+ px: {
166
+ px: ((value: string) => boolean)[];
161
167
  }[];
162
168
  "max-w": {
163
169
  "max-w": ((value: string) => boolean)[];
@@ -171,7 +177,7 @@ declare const themeMangerTwMergeConfiguration: {
171
177
  };
172
178
  };
173
179
  };
174
- declare function themeMangerCn(...inputs: ClassValue[]): string;
180
+ declare function themeManagerCn(...inputs: ClassValue[]): string;
175
181
 
176
182
  type FontRegistry = Record<string, FontSpecification>;
177
183
  type FontSpecification = {
@@ -218,12 +224,29 @@ declare const validateSlug: (content: string) => boolean;
218
224
  */
219
225
  declare const normalizeSlug: (content: string) => string;
220
226
 
227
+ declare const getFontSizeOptions: (includeLargeSizes?: boolean) => {
228
+ label: string;
229
+ value: string;
230
+ }[];
231
+ declare const getBorderRadiusOptions: () => {
232
+ label: string;
233
+ value: string;
234
+ }[];
235
+ declare const getSpacingOptions: () => {
236
+ label: string;
237
+ value: string;
238
+ }[];
239
+
240
+ declare const applyAnalytics: (document: Record<string, any>) => string | undefined;
241
+
221
242
  type EditorProps = {
222
243
  document: any;
223
244
  componentRegistry: Map<string, Config<any>>;
224
245
  themeConfig?: ThemeConfig;
246
+ localDev?: boolean;
247
+ forceThemeMode?: boolean;
225
248
  };
226
- declare const Editor: ({ document, componentRegistry, themeConfig, }: EditorProps) => react_jsx_runtime.JSX.Element;
249
+ declare const Editor: ({ document, componentRegistry, themeConfig, localDev, forceThemeMode, }: EditorProps) => react_jsx_runtime.JSX.Element;
227
250
 
228
251
  type EntityFieldProps = {
229
252
  displayName?: string;
@@ -240,7 +263,11 @@ type NumberFieldWithDefaultOptionProps = {
240
263
  };
241
264
  declare const NumberFieldWithDefaultOption: ({ label, defaultCustomValue, }: NumberFieldWithDefaultOptionProps) => CustomField<NumberOrDefault>;
242
265
 
243
- declare const FontSizeSelector: (label?: string) => Field;
266
+ declare const FontSizeSelector: (label?: string, includeLargeSizes?: boolean) => Field;
267
+
268
+ declare const BorderRadiusSelector: (label?: string) => Field;
269
+
270
+ declare const SpacingSelector: (spacingType: "padding" | "gap", label?: string) => Field;
244
271
 
245
272
  declare const bodyVariants: (props?: ({
246
273
  fontSize?: "default" | "base" | "xs" | "sm" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl" | null | undefined;
@@ -254,9 +281,9 @@ declare const Body: React.ForwardRefExoticComponent<BodyProps & React.RefAttribu
254
281
 
255
282
  declare const buttonVariants: (props?: ({
256
283
  variant?: "link" | "primary" | null | undefined;
257
- size?: "small" | "default" | "icon" | "large" | null | undefined;
284
+ size?: "small" | "icon" | "large" | null | undefined;
258
285
  fontSize?: "default" | "base" | "xs" | "sm" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | null | undefined;
259
- borderRadius?: "default" | "none" | "large" | "medium" | "full" | null | undefined;
286
+ borderRadius?: "default" | "none" | "xs" | "sm" | "lg" | "xl" | "2xl" | "3xl" | "md" | "full" | null | undefined;
260
287
  } & class_variance_authority_dist_types.ClassProp) | undefined) => string;
261
288
  interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
262
289
  asChild?: boolean;
@@ -266,18 +293,19 @@ declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAtt
266
293
  interface CTAProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
267
294
  label?: string;
268
295
  link?: string;
296
+ linkType?: LinkType;
269
297
  variant?: ButtonProps["variant"];
270
298
  size?: ButtonProps["size"];
271
299
  borderRadius?: ButtonProps["borderRadius"];
272
300
  fontSize?: ButtonProps["fontSize"];
273
301
  }
274
302
  declare const CTA: {
275
- ({ label, link, variant, size, borderRadius, className, fontSize, }: CTAProps): react_jsx_runtime_js.JSX.Element;
303
+ ({ label, link, linkType, variant, size, borderRadius, className, fontSize, }: CTAProps): react_jsx_runtime_js.JSX.Element;
276
304
  displayName: string;
277
305
  };
278
306
 
279
307
  declare const headingVariants: (props?: ({
280
- level?: 2 | 1 | 3 | 4 | 5 | 6 | null | undefined;
308
+ level?: 2 | 1 | 3 | 5 | 4 | 6 | null | undefined;
281
309
  fontSize?: "default" | "base" | "xs" | "sm" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl" | null | undefined;
282
310
  weight?: "default" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | null | undefined;
283
311
  color?: "default" | "text" | "accent" | "secondary" | "primary" | "background" | null | undefined;
@@ -321,9 +349,9 @@ interface BodyTextProps extends BodyProps {
321
349
  declare const BodyTextComponent: ComponentConfig<BodyTextProps>;
322
350
 
323
351
  declare const imageWrapperVariants: (props?: ({
324
- size?: "small" | "large" | "medium" | "full" | null | undefined;
352
+ size?: "small" | "large" | "full" | "medium" | null | undefined;
325
353
  aspectRatio?: "video" | "auto" | "square" | "portrait" | null | undefined;
326
- rounded?: "small" | "none" | "large" | "medium" | "full" | null | undefined;
354
+ rounded?: "small" | "none" | "large" | "full" | "medium" | null | undefined;
327
355
  } & class_variance_authority_dist_types_js.ClassProp) | undefined) => string;
328
356
  interface ImageWrapperProps extends VariantProps<typeof imageWrapperVariants> {
329
357
  image: YextEntityField<ImageType>;
@@ -336,6 +364,7 @@ interface CardProps {
336
364
  text: YextEntityField<string>;
337
365
  fontSize: HeadingProps["fontSize"];
338
366
  color: HeadingProps["color"];
367
+ weight: HeadingProps["weight"];
339
368
  transform: HeadingProps["transform"];
340
369
  level: HeadingLevel;
341
370
  };
@@ -343,6 +372,7 @@ interface CardProps {
343
372
  text: YextEntityField<string>;
344
373
  fontSize: HeadingProps["fontSize"];
345
374
  color: HeadingProps["color"];
375
+ weight: HeadingProps["weight"];
346
376
  transform: HeadingProps["transform"];
347
377
  level: HeadingLevel;
348
378
  };
@@ -350,6 +380,7 @@ interface CardProps {
350
380
  text: YextEntityField<string>;
351
381
  fontSize: BodyProps["fontSize"];
352
382
  color: BodyProps["color"];
383
+ weight: BodyProps["fontWeight"];
353
384
  transform: BodyProps["textTransform"];
354
385
  };
355
386
  image: {
@@ -378,7 +409,7 @@ interface CTAWrapperProps {
378
409
  declare const CTAWrapperComponent: ComponentConfig<CTAWrapperProps>;
379
410
 
380
411
  declare const emailsVariants: (props?: ({
381
- fontSize?: "default" | "xs" | "sm" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "medium" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl" | null | undefined;
412
+ fontSize?: "default" | "xs" | "sm" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl" | "medium" | null | undefined;
382
413
  fontWeight?: "default" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | null | undefined;
383
414
  color?: "default" | "text" | "accent" | "secondary" | "primary" | "background" | null | undefined;
384
415
  } & class_variance_authority_dist_types_js.ClassProp) | undefined) => string;
@@ -389,16 +420,22 @@ interface EmailsProps extends VariantProps<typeof emailsVariants> {
389
420
  }
390
421
  declare const EmailsComponent: ComponentConfig<EmailsProps>;
391
422
 
392
- declare const flexContainerVariants: (props?: ({
393
- direction?: "row" | "column" | null | undefined;
394
- alignment?: "end" | "start" | "center" | "stretch" | null | undefined;
395
- justification?: "end" | "start" | "center" | "spaceBetween" | "spaceAround" | null | undefined;
396
- spacing?: "small" | "large" | "medium" | null | undefined;
397
- wrap?: "wrap" | "nowrap" | null | undefined;
398
- } & class_variance_authority_dist_types_js.ClassProp) | undefined) => string;
399
- interface FlexContainerProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof flexContainerVariants> {
423
+ declare const layoutVariants: (props?: ({
424
+ gap?: "0" | "1" | "2" | "3" | "4" | "default" | "none" | "5" | "6" | "7" | "8" | "12" | "16" | "24" | "14" | "20" | "0.5" | "1.5" | "2.5" | "10" | "3.5" | "9" | "11" | null | undefined;
425
+ verticalPadding?: "0" | "1" | "2" | "3" | "4" | "default" | "5" | "6" | "7" | "8" | "12" | "16" | "24" | "14" | "20" | "0.5" | "1.5" | "2.5" | "10" | "3.5" | "9" | "11" | null | undefined;
426
+ horizontalPadding?: "0" | "1" | "2" | "3" | "4" | "default" | "5" | "6" | "7" | "8" | "12" | "16" | "24" | "14" | "20" | "0.5" | "1.5" | "2.5" | "10" | "3.5" | "9" | "11" | null | undefined;
427
+ backgroundColor?: "default" | "text" | "accent" | "inherit" | "secondary" | "primary" | "background" | null | undefined;
428
+ } & class_variance_authority_dist_types.ClassProp) | undefined) => string;
429
+ declare const innerLayoutVariants: (props?: ({
430
+ maxContentWidth?: "default" | "none" | "lg" | "xl" | "xxl" | null | undefined;
431
+ } & class_variance_authority_dist_types.ClassProp) | undefined) => string;
432
+
433
+ interface FlexProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof layoutVariants>, VariantProps<typeof innerLayoutVariants> {
434
+ justifyContent: "start" | "center" | "end";
435
+ direction: "row" | "column";
436
+ wrap: "wrap" | "nowrap";
400
437
  }
401
- declare const FlexContainerComponent: ComponentConfig<FlexContainerProps>;
438
+ declare const FlexContainerComponent: ComponentConfig<FlexProps>;
402
439
 
403
440
  declare const footerVariants: (props?: ({
404
441
  backgroundColor?: "default" | "text" | "accent" | "secondary" | "primary" | "background" | null | undefined;
@@ -423,25 +460,14 @@ type GetDirectionsProps = {
423
460
  };
424
461
  declare const GetDirectionsComponent: ComponentConfig<GetDirectionsProps>;
425
462
 
426
- declare const backgroundVariants: (props?: ({
427
- backgroundColor?: "default" | "text" | "accent" | "secondary" | "primary" | "background" | null | undefined;
428
- maxContentWidth?: "default" | "lg" | "xl" | "xxl" | null | undefined;
429
- } & class_variance_authority_dist_types_js.ClassProp) | undefined) => string;
430
- declare const gridSectionVariants: (props?: ({
431
- horizontalSpacing?: "small" | "large" | "medium" | null | undefined;
432
- } & class_variance_authority_dist_types_js.ClassProp) | undefined) => string;
433
- declare const columnVariants: (props?: ({
434
- verticalAlignment?: "end" | "start" | "center" | "spaceBetween" | null | undefined;
435
- } & class_variance_authority_dist_types_js.ClassProp) | undefined) => string;
436
- interface ColumnProps extends VariantProps<typeof columnVariants> {
463
+ interface ColumnProps {
464
+ justifyContent: "center" | "start" | "end" | "spaceBetween";
437
465
  span?: number;
438
466
  }
439
- interface GridSectionProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof gridSectionVariants>, VariantProps<typeof backgroundVariants> {
440
- verticalPadding: string;
441
- distribution: "auto" | "manual";
467
+ interface GridProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof layoutVariants>, VariantProps<typeof innerLayoutVariants> {
442
468
  columns: ColumnProps[];
443
469
  }
444
- declare const GridSectionComponent: ComponentConfig<GridSectionProps>;
470
+ declare const GridSectionComponent: ComponentConfig<GridProps>;
445
471
 
446
472
  declare const headerVariants: (props?: ({
447
473
  backgroundColor?: "default" | "text" | "accent" | "secondary" | "primary" | "background" | null | undefined;
@@ -532,4 +558,4 @@ interface TextListProps extends VariantProps<typeof textListVariants> {
532
558
  }
533
559
  declare const TextListComponent: ComponentConfig<TextListProps>;
534
560
 
535
- export { AddressComponent as Address, type AddressProps, Banner, type BannerProps, Body, type BodyProps, BodyTextComponent as BodyText, type BodyTextProps, Button, type ButtonProps, CTA, type CTAProps, CTAWrapperComponent as CTAWrapper, type CTAWrapperProps, CardComponent as Card, type CardProps, DocumentContext, Editor, EmailsComponent as Emails, type EmailsProps, EntityField, FlexContainerComponent as FlexContainer, type FlexContainerProps, type FontRegistry, FontSizeSelector, Footer, type FooterProps, GetDirectionsComponent as GetDirections, type GetDirectionsProps, GridSectionComponent as GridSection, type GridSectionProps, Header, type HeaderProps, Heading, type HeadingProps, HeadingTextComponent as HeadingText, type HeadingTextProps, HoursStatusComponent as HoursStatus, type HoursStatusProps, HoursTableComponent as HoursTable, type HoursTableProps, ImageWrapperComponent as ImageWrapper, type ImageWrapperProps, NumberFieldWithDefaultOption, type NumberFieldWithDefaultOptionProps, type NumberOrDefault, PhoneComponent as Phone, type PhoneProps, PromoComponent as Promo, type PromoProps, type RenderYextEntityFieldSelectorProps, Section, type SectionProps, TailwindConfigContext, TextListComponent as TextList, type TextListProps, type ThemeConfig, VisualEditorProvider, type YextEntityField, YextEntityFieldSelector, applyTheme, bodyVariants, buttonVariants, constructFontSelectOptions, defaultFonts, getFontWeightOptions, getFontWeightOverrideOptions, headingVariants, normalizeSlug, resolveYextEntityField, sectionVariants, themeMangerCn, themeMangerTwMergeConfiguration, themeResolver, useDocument, useEntityFields, usePlatformBridgeDocument, usePlatformBridgeEntityFields, useTailwindConfig, validateSlug };
561
+ export { AddressComponent as Address, type AddressProps, Banner, type BannerProps, Body, type BodyProps, BodyTextComponent as BodyText, type BodyTextProps, BorderRadiusSelector, Button, type ButtonProps, CTA, type CTAProps, CTAWrapperComponent as CTAWrapper, type CTAWrapperProps, CardComponent as Card, type CardProps, DocumentContext, Editor, EmailsComponent as Emails, type EmailsProps, EntityField, FlexContainerComponent as Flex, type FlexProps, type FontRegistry, FontSizeSelector, Footer, type FooterProps, GetDirectionsComponent as GetDirections, type GetDirectionsProps, GridSectionComponent as Grid, type GridProps, Header, type HeaderProps, Heading, type HeadingProps, HeadingTextComponent as HeadingText, type HeadingTextProps, HoursStatusComponent as HoursStatus, type HoursStatusProps, HoursTableComponent as HoursTable, type HoursTableProps, ImageWrapperComponent as ImageWrapper, type ImageWrapperProps, NumberFieldWithDefaultOption, type NumberFieldWithDefaultOptionProps, type NumberOrDefault, PhoneComponent as Phone, type PhoneProps, PromoComponent as Promo, type PromoProps, type RenderYextEntityFieldSelectorProps, Section, type SectionProps, SpacingSelector, TailwindConfigContext, TextListComponent as TextList, type TextListProps, type ThemeConfig, VisualEditorProvider, type YextEntityField, YextEntityFieldSelector, type YextFieldDefinition, type YextSchemaField, applyAnalytics, applyTheme, bodyVariants, buttonVariants, constructFontSelectOptions, defaultFonts, getBorderRadiusOptions, getFontSizeOptions, getFontWeightOptions, getFontWeightOverrideOptions, getSpacingOptions, headingVariants, normalizeSlug, resolveYextEntityField, sectionVariants, themeManagerCn, themeManagerTwMergeConfiguration, themeResolver, useDocument, useEntityFields, usePlatformBridgeDocument, usePlatformBridgeEntityFields, useTailwindConfig, validateSlug };