@commercetools/nimbus 0.0.3 → 0.0.4-rc11

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
@@ -10,8 +10,8 @@ import { AriaLinkOptions } from 'react-aria';
10
10
  import { AriaToggleButtonGroupProps } from 'react-aria';
11
11
  import { AriaToggleButtonProps } from 'react-aria';
12
12
  import { Bleed } from '@chakra-ui/react';
13
- import { CardContentProps } from './card.slots';
14
- import { CardHeaderProps } from './card.slots';
13
+ import { CardContentProps as CardContentProps_2 } from './card.slots';
14
+ import { CardHeaderProps as CardHeaderProps_2 } from './card.slots';
15
15
  import { CardProps as CardProps_2 } from './card.types';
16
16
  import { Code } from '@chakra-ui/react';
17
17
  import { ConditionalValue } from '@chakra-ui/react';
@@ -209,7 +209,7 @@ declare const alertRecipe: SlotRecipeDefinition<"title" | "description" | "icon"
209
209
  tone: {
210
210
  critical: {
211
211
  root: {
212
- colorPalette: "error";
212
+ colorPalette: "critical";
213
213
  };
214
214
  };
215
215
  info: {
@@ -224,7 +224,7 @@ colorPalette: "amber";
224
224
  };
225
225
  positive: {
226
226
  root: {
227
- colorPalette: "success";
227
+ colorPalette: "positive";
228
228
  };
229
229
  };
230
230
  };
@@ -453,7 +453,7 @@ colorPalette: "primary";
453
453
  };
454
454
  critical: {
455
455
  button: {
456
- colorPalette: "error";
456
+ colorPalette: "critical";
457
457
  };
458
458
  };
459
459
  neutral: {
@@ -484,15 +484,31 @@ declare type ButtonRootProps = HTMLChakraProps<"button", ButtonRecipeProps>;
484
484
  export declare const Card: {
485
485
  Root: ForwardRefExoticComponent<CardProps_2 & RefAttributes<HTMLDivElement>>;
486
486
  Header: {
487
- ({ children, ...props }: CardHeaderProps): null;
487
+ ({ children, ...props }: CardHeaderProps_2): null;
488
488
  displayName: string;
489
489
  };
490
490
  Content: {
491
- ({ children, ...props }: CardContentProps): null;
491
+ ({ children, ...props }: CardContentProps_2): null;
492
492
  displayName: string;
493
493
  };
494
494
  };
495
495
 
496
+ export declare const CardContent: {
497
+ ({ children, ...props }: CardContentProps): null;
498
+ displayName: string;
499
+ };
500
+
501
+ declare interface CardContentProps extends HTMLChakraProps<"div", CardRecipeProps> {
502
+ }
503
+
504
+ export declare const CardHeader: {
505
+ ({ children, ...props }: CardHeaderProps): null;
506
+ displayName: string;
507
+ };
508
+
509
+ declare interface CardHeaderProps extends HTMLChakraProps<"div", CardRecipeProps> {
510
+ }
511
+
496
512
  /**
497
513
  * Main props interface for the Card component.
498
514
  * Extends CardVariantProps to include both root props and variant props,
@@ -562,6 +578,8 @@ backgroundColor: "colorPalette.2";
562
578
  declare interface CardRecipeProps extends RecipeProps<"div">, UnstyledProp {
563
579
  }
564
580
 
581
+ export declare const CardRoot: ForwardRefExoticComponent<CardProps & RefAttributes<HTMLDivElement>>;
582
+
565
583
  /**
566
584
  * Root props interface that extends Chakra's HTML props with our recipe props.
567
585
  * This creates a complete set of props for the root element, combining
@@ -779,7 +797,21 @@ export declare interface FormFieldProps extends FormFieldRootSlotProps {
779
797
  * Recipe configuration for the FormField component.
780
798
  * Defines the styling variants and base styles using Chakra UI's recipe system.
781
799
  */
782
- declare const formFieldRecipe: SlotRecipeDefinition<"error" | "input" | "label" | "description" | "root" | "popover", {
800
+ declare const formFieldRecipe: SlotRecipeDefinition<"input" | "label" | "description" | "root" | "error" | "popover", {
801
+ size: {
802
+ md: {
803
+ root: {
804
+ "--form-field-font-size": "fontSizes.350";
805
+ "--form-field-line-height": "lineHeights.500";
806
+ };
807
+ };
808
+ sm: {
809
+ root: {
810
+ "--form-field-font-size": "fontSizes.300";
811
+ "--form-field-line-height": "lineHeights.450";
812
+ };
813
+ };
814
+ };
783
815
  direction: {
784
816
  column: {
785
817
  root: {
@@ -1294,6 +1326,8 @@ export declare const ToggleButtonGroup: {
1294
1326
  Button: ToggleButtonGroupButtonComponent_2;
1295
1327
  };
1296
1328
 
1329
+ export declare const ToggleButtonGroupButton: ToggleButtonGroupButtonComponent;
1330
+
1297
1331
  /** Type signature for the `ToggleButtonGroup.Button` sub-component (using `forwardRef`). */
1298
1332
  export declare type ToggleButtonGroupButtonComponent = ForwardRefExoticComponent<ToggleButtonGroupButtonProps & RefAttributes<typeof ToggleButton>>;
1299
1333
 
@@ -1306,6 +1340,8 @@ declare type ToggleButtonGroupButtonSlotProps = HTMLChakraProps<"button", Recipe
1306
1340
  /** Final external props for the `<ToggleButtonGroup>` component, including `children`. */
1307
1341
  export declare type ToggleButtonGroupProps = PropsWithChildren<ToggleButtonGroupRootProps>;
1308
1342
 
1343
+ export declare const ToggleButtonGroupRoot: ToggleButtonGroupRootComponent;
1344
+
1309
1345
  /** Type signature for the main `ToggleButtonGroup` component (using `forwardRef`). */
1310
1346
  export declare type ToggleButtonGroupRootComponent = ForwardRefExoticComponent<ToggleButtonGroupProps & RefAttributes<typeof ToggleButtonGroup_2>>;
1311
1347