@frontify/fondue 12.0.0-beta.339 → 12.0.0-beta.340

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.ts CHANGED
@@ -420,6 +420,8 @@ export declare const BOX_TEST_ID = "fondue-box";
420
420
 
421
421
  export declare const BOX_TEXT_ALIAS_TOKENS_CLASSES: string[];
422
422
 
423
+ declare type BoxColor = 'neutral' | 'selected' | 'disabled' | 'positive' | 'negative' | 'warning';
424
+
423
425
  export declare type BoxProps = {
424
426
  'data-test-id'?: string;
425
427
  as?: ContainerHTMLElement;
@@ -12280,7 +12282,7 @@ export declare const PADDING_VALUES_MAP: Record<SpacingValue, string>;
12280
12282
 
12281
12283
  export declare enum PaddingSizes {
12282
12284
  None = "tw-p-0",
12283
- Small = "tw-p-2",
12285
+ Small = "tw-py-2 tw-px-3",
12284
12286
  Medium = "tw-p-5",
12285
12287
  Large = "tw-p-6",
12286
12288
  XLarge = "tw-p-8"
@@ -13138,7 +13140,7 @@ declare const Targets: {
13138
13140
  declare type TargetValue = (typeof Targets)[keyof typeof Targets];
13139
13141
 
13140
13142
  declare const Text_2: {
13141
- ({ children, as: Tag, weight, size, color, decoration, wordBreak, whitespace, overflow, display, ...props }: TextProps): ReactElement;
13143
+ ({ children, as: Tag, weight, size, color, decoration, wordBreak, whitespace, overflow, boxColor, display, ...props }: TextProps): ReactElement;
13142
13144
  displayName: string;
13143
13145
  };
13144
13146
  export { Text_2 as Text }
@@ -13240,6 +13242,8 @@ export declare type TextProps = SharedTypographyProps & AriaAttributes & {
13240
13242
  weight?: TextWeight;
13241
13243
  as?: 'a' | 'abbr' | 'address' | 'em' | 'label' | 'li' | 'span' | 'strong' | 'time' | 'p';
13242
13244
  color?: TextColor;
13245
+ /** @description optional color prop that uses the inverse box color when accessibility contrast is needed */
13246
+ boxColor?: BoxColor;
13243
13247
  children?: ReactNode;
13244
13248
  };
13245
13249