@commercetools/nimbus 0.0.7-rc9-experimental → 0.0.7-rc9

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
@@ -33,6 +33,7 @@ import { Heading } from '@chakra-ui/react';
33
33
  import { Highlight as Highlight_2 } from '@chakra-ui/react';
34
34
  import { HTMLAttributes } from 'react';
35
35
  import { HTMLChakraProps } from '@chakra-ui/react';
36
+ import { ImageProps as ImageProps_2 } from '@chakra-ui/react';
36
37
  import { JSX } from 'react/jsx-runtime';
37
38
  import { JSX as JSX_2 } from 'react';
38
39
  import { JsxStyleProps } from '@chakra-ui/react';
@@ -63,6 +64,14 @@ import { SlotRecipeDefinition } from '@chakra-ui/react';
63
64
  import { StackProps as StackProps_2 } from '@chakra-ui/react';
64
65
  import { SystemContext } from '@chakra-ui/react';
65
66
  import { Table } from '@chakra-ui/react';
67
+ import { Tag } from 'react-aria-components';
68
+ import { TagGroup as TagGroup_2 } from 'react-aria-components';
69
+ import { TagGroupProps as TagGroupProps_2 } from 'react-aria-components';
70
+ import { TagGroupRootComponent as TagGroupRootComponent_2 } from './tag-group.types';
71
+ import { TagGroupTagComponent as TagGroupTagComponent_2 } from './tag-group.types';
72
+ import { TagGroupTagListProps as TagGroupTagListProps_2 } from './tag-group.types';
73
+ import { TagListProps } from 'react-aria-components';
74
+ import { TagProps } from 'react-aria-components';
66
75
  import { TextFieldProps } from 'react-aria-components';
67
76
  import { TextProps as TextProps_2 } from '@chakra-ui/react';
68
77
  import { ThemeProviderProps } from 'next-themes';
@@ -850,7 +859,7 @@ declare interface FormFieldRootSlotProps extends HTMLChakraProps<"div", RecipeVa
850
859
  declare type FunctionalAvatarProps = AvatarRootProps & AvatarComponentProps;
851
860
 
852
861
  /** combine chakra-button props with aria-button props */
853
- declare type FunctionalButtonProps = ButtonRootProps & AriaButtonProps & {
862
+ declare type FunctionalButtonProps = AriaButtonProps & Omit<ButtonRootProps, keyof AriaButtonProps> & {
854
863
  [key: `data-${string}`]: unknown;
855
864
  };
856
865
 
@@ -875,6 +884,12 @@ export { Heading }
875
884
 
876
885
  export { Highlight_2 as Highlight }
877
886
 
887
+ /**
888
+ * Icon
889
+ * displays icon components
890
+ */
891
+ export declare const Icon: ForwardRefExoticComponent<IconProps & RefAttributes<SVGSVGElement>>;
892
+
878
893
  /**
879
894
  * IconButton
880
895
  * ============================================================
@@ -891,6 +906,90 @@ export declare interface IconButtonProps extends ButtonProps {
891
906
  "aria-label": string;
892
907
  }
893
908
 
909
+ /**
910
+ * Main props interface for the Icon component.
911
+ * Extends IconVariantProps to include both root props and variant props,
912
+ * while adding support for React children.
913
+ */
914
+ export declare interface IconProps extends IconVariantProps {
915
+ /**
916
+ * Accepts only a single child - an icon-component or SVG html-element.
917
+ * Alternatively, as shorthand, use the `as` property.
918
+ */
919
+ children?: React.ReactNode;
920
+ /**
921
+ * Colors the icon, accepts a color token from the theme or a custom value
922
+ */
923
+ color?: BoxProps["color"];
924
+ /**
925
+ * Accepts a React component to be rendered as the icon .
926
+ */
927
+ as?: BoxProps["as"];
928
+ }
929
+
930
+ /**
931
+ * Recipe configuration for the Icon component.
932
+ * Defines the styling variants and base styles using Chakra UI's recipe system.
933
+ */
934
+ declare const iconRecipe: RecipeDefinition< {
935
+ /**
936
+ * allows applying a predefined size to the icon
937
+ */
938
+ size: {
939
+ "2xs": {
940
+ boxSize: "600";
941
+ };
942
+ xs: {
943
+ boxSize: "800";
944
+ };
945
+ sm: {
946
+ boxSize: "900";
947
+ };
948
+ md: {
949
+ boxSize: "1000";
950
+ };
951
+ lg: {
952
+ boxSize: "1200";
953
+ };
954
+ xl: {
955
+ boxSize: "1400";
956
+ };
957
+ };
958
+ }>;
959
+
960
+ /**
961
+ * Base recipe props interface that combines Chakra UI's recipe props
962
+ * with the unstyled prop option for the svg element.
963
+ */
964
+ declare interface IconRecipeProps extends RecipeProps<"svg">, UnstyledProp {
965
+ }
966
+
967
+ /**
968
+ * Root props interface that extends Chakra's HTML props with our recipe props.
969
+ * This creates a complete set of props for the root element, combining
970
+ * HTML attributes, Chakra's styling system, and our custom recipe props.
971
+ */
972
+ declare interface IconRootSlotProps extends HTMLChakraProps<"svg", IconRecipeProps> {
973
+ }
974
+
975
+ /**
976
+ * Combines the root props with Chakra UI's recipe variant props.
977
+ * This allows the component to accept both structural props from Root
978
+ * and styling variants from the recipe.
979
+ */
980
+ declare type IconVariantProps = Omit<IconRootSlotProps, keyof React.SVGProps<SVGSVGElement> | "css" | "unstyled" | "asChild" | "recipe"> & RecipeVariantProps<typeof iconRecipe>;
981
+
982
+ /**
983
+ * Image
984
+ *
985
+ * Use this component to display an image.
986
+ */
987
+ declare const Image_2: ForwardRefExoticComponent<ImageProps & RefAttributes<HTMLImageElement>>;
988
+ export { Image_2 as Image }
989
+
990
+ export declare interface ImageProps extends ImageProps_2 {
991
+ }
992
+
894
993
  export { Kbd }
895
994
 
896
995
  /**
@@ -1247,6 +1346,81 @@ export declare const TableRow: (props: TableRowProps) => JSX.Element;
1247
1346
 
1248
1347
  export declare type TableRowProps = React.ComponentProps<typeof Table.Row>;
1249
1348
 
1349
+ /**
1350
+ * TagGroup
1351
+ * ============================================================
1352
+ * A tag group is a focusable list of labels, categories, keywords, filters, or other items, with support for keyboard navigation, selection, and removal.
1353
+ *
1354
+ */
1355
+ export declare const TagGroup: {
1356
+ Root: TagGroupRootComponent_2;
1357
+ TagList: {
1358
+ <T extends object>({ children, ref, ...rest }: TagGroupTagListProps_2<T> & RefAttributes<HTMLDivElement>): JSX.Element;
1359
+ displayName: string;
1360
+ };
1361
+ Tag: TagGroupTagComponent_2;
1362
+ };
1363
+
1364
+ /** Final external props for the `<TagGroup>` component, including `children`. */
1365
+ export declare type TagGroupProps = PropsWithChildren<TagGroupRootProps>;
1366
+
1367
+ /** Type signature for the main `TagGroup` component (using `forwardRef`). */
1368
+ export declare type TagGroupRootComponent = FC<TagGroupRootProps & RefAttributes<typeof TagGroup_2>>;
1369
+
1370
+ /** Combined props for the root element (Chakra styles + Aria behavior + Recipe variants). */
1371
+ declare type TagGroupRootProps = TagGroupRootSlotProps & TagGroupProps_2 & RecipeVariantProps<typeof tagGroupSlotRecipe>;
1372
+
1373
+ /** Base Chakra styling props for the root `div` slot. */
1374
+ declare type TagGroupRootSlotProps = HTMLChakraProps<"div", RecipeProps<"div">>;
1375
+
1376
+ /**
1377
+ * Recipe configuration for the TagGroup component.
1378
+ * Defines the styling variants and base styles using Chakra UI's recipe system.
1379
+ */
1380
+ declare const tagGroupSlotRecipe: SlotRecipeDefinition<"root" | "tagList" | "tag", {
1381
+ size: {
1382
+ sm: {
1383
+ tag: {
1384
+ minH: "600";
1385
+ paddingX: "200";
1386
+ fontSize: "350";
1387
+ lineHeight: "400";
1388
+ };
1389
+ };
1390
+ md: {
1391
+ tag: {
1392
+ minH: "800";
1393
+ paddingX: "200";
1394
+ paddingY: "100";
1395
+ };
1396
+ };
1397
+ lg: {
1398
+ tag: {
1399
+ minH: "1000";
1400
+ padding: "200";
1401
+ };
1402
+ };
1403
+ };
1404
+ }>;
1405
+
1406
+ /** Type signature for the `TagGroup.Tag` sub-component (using `forwardRef`). */
1407
+ export declare type TagGroupTagComponent = FC<TagGroupTagProps & RefAttributes<typeof Tag>>;
1408
+
1409
+ /** Type signature for the `TagGroup.TagList` sub-component (using `forwardRef`). */
1410
+ export declare type TagGroupTagListComponent<T extends object> = FC<TagGroupTagListProps<T> & RefAttributes<HTMLDivElement>>;
1411
+
1412
+ /** Combined props for the tagList element (Chakra styles + Aria behavior + Recipe variants). */
1413
+ export declare type TagGroupTagListProps<T extends object> = TagListProps<T> & Omit<TagGroupTagListSlotProps, keyof TagListProps<T>>;
1414
+
1415
+ /** Base Chakra styling props for the root `div` slot. */
1416
+ declare type TagGroupTagListSlotProps = HTMLChakraProps<"div", RecipeProps<"div">>;
1417
+
1418
+ /** Combined props for the tag element (Chakra styles + Aria behavior + Recipe variants). */
1419
+ export declare type TagGroupTagProps = TagProps & Omit<TagGroupTagSlotProps, keyof TagProps>;
1420
+
1421
+ /** Base Chakra styling props for the root `div` slot. */
1422
+ declare type TagGroupTagSlotProps = HTMLChakraProps<"div", RecipeProps<"div">>;
1423
+
1250
1424
  /**
1251
1425
  * Render Text
1252
1426
  *
@@ -1261,7 +1435,7 @@ export { Text_2 as Text }
1261
1435
  /**
1262
1436
  * TextInput
1263
1437
  * ============================================================
1264
- * An input component that takes in a text as input
1438
+ * An input component that takes in text as input
1265
1439
  *
1266
1440
  * Features:
1267
1441
  *
@@ -1272,7 +1446,7 @@ export { Text_2 as Text }
1272
1446
  */
1273
1447
  export declare const TextInput: ForwardRefExoticComponent<TextInputProps & RefAttributes<HTMLInputElement>>;
1274
1448
 
1275
- export declare interface TextInputProps extends TextFieldProps, Omit<TextInputRootProps, keyof TextFieldProps | "as" | "asChild"> {
1449
+ export declare interface TextInputProps extends TextFieldProps, Omit<TextInputRootSlotProps, keyof TextFieldProps | "as" | "asChild"> {
1276
1450
  }
1277
1451
 
1278
1452
  /**
@@ -1312,7 +1486,7 @@ backgroundColor: "primary.2";
1312
1486
  declare interface TextInputRecipeProps extends RecipeVariantProps<typeof textInputRecipe>, UnstyledProp {
1313
1487
  }
1314
1488
 
1315
- declare type TextInputRootProps = HTMLChakraProps<"input", TextInputRecipeProps>;
1489
+ declare type TextInputRootSlotProps = HTMLChakraProps<"input", TextInputRecipeProps>;
1316
1490
 
1317
1491
  export declare interface TextProps extends TextProps_2 {
1318
1492
  }