@kroo-web/design-system 1.0.44 → 1.0.46

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.
Files changed (54) hide show
  1. package/dist/cjs/components/Accordion/index.d.ts +21 -0
  2. package/dist/cjs/{product/components → components}/Button/index.d.ts +1 -1
  3. package/dist/cjs/{product/components → components}/Callout/index.d.ts +1 -1
  4. package/dist/cjs/components/Card/index.d.ts +22 -0
  5. package/dist/cjs/components/ComboBox/index.d.ts +16 -0
  6. package/dist/cjs/{product/components → components}/index.d.ts +3 -0
  7. package/dist/cjs/index.d.ts +1 -1
  8. package/dist/cjs/index.js +30 -8
  9. package/dist/esm/components/Accordion/index.d.ts +21 -0
  10. package/dist/esm/{product/components → components}/Button/index.d.ts +1 -1
  11. package/dist/esm/{product/components → components}/Callout/index.d.ts +1 -1
  12. package/dist/esm/components/Card/index.d.ts +22 -0
  13. package/dist/esm/components/ComboBox/index.d.ts +16 -0
  14. package/dist/esm/{product/components → components}/index.d.ts +3 -0
  15. package/dist/esm/index.d.ts +1 -1
  16. package/dist/esm/index.js +30 -8
  17. package/dist/styles/tokens/marketing.css +47 -1
  18. package/dist/styles/tokens/product.css +1 -0
  19. package/dist/types.d.ts +59 -5
  20. package/package.json +2 -1
  21. /package/dist/cjs/{product/components → components}/Columns/index.d.ts +0 -0
  22. /package/dist/cjs/{product/components → components}/DatePicker/index.d.ts +0 -0
  23. /package/dist/cjs/{product/components → components}/Disclosure/index.d.ts +0 -0
  24. /package/dist/cjs/{product/components → components}/Form/index.d.ts +0 -0
  25. /package/dist/cjs/{product/components → components}/Loading/index.d.ts +0 -0
  26. /package/dist/cjs/{product/components → components}/Modal/index.d.ts +0 -0
  27. /package/dist/cjs/{product/components → components}/NumberField/index.d.ts +0 -0
  28. /package/dist/cjs/{product/components → components}/ProgressIndicator/index.d.ts +0 -0
  29. /package/dist/cjs/{product/components → components}/RadioGroup/index.d.ts +0 -0
  30. /package/dist/cjs/{product/components → components}/Range/index.d.ts +0 -0
  31. /package/dist/cjs/{product/components → components}/Select/index.d.ts +0 -0
  32. /package/dist/cjs/{product/components → components}/Skeleton/index.d.ts +0 -0
  33. /package/dist/cjs/{product/components → components}/TextField/index.d.ts +0 -0
  34. /package/dist/cjs/{product/components → components}/Toast/index.d.ts +0 -0
  35. /package/dist/cjs/{product/components → components}/Tooltip/index.d.ts +0 -0
  36. /package/dist/cjs/{product/components → components}/Typography/index.d.ts +0 -0
  37. /package/dist/cjs/{product/components → components}/shared/FormField/index.d.ts +0 -0
  38. /package/dist/esm/{product/components → components}/Columns/index.d.ts +0 -0
  39. /package/dist/esm/{product/components → components}/DatePicker/index.d.ts +0 -0
  40. /package/dist/esm/{product/components → components}/Disclosure/index.d.ts +0 -0
  41. /package/dist/esm/{product/components → components}/Form/index.d.ts +0 -0
  42. /package/dist/esm/{product/components → components}/Loading/index.d.ts +0 -0
  43. /package/dist/esm/{product/components → components}/Modal/index.d.ts +0 -0
  44. /package/dist/esm/{product/components → components}/NumberField/index.d.ts +0 -0
  45. /package/dist/esm/{product/components → components}/ProgressIndicator/index.d.ts +0 -0
  46. /package/dist/esm/{product/components → components}/RadioGroup/index.d.ts +0 -0
  47. /package/dist/esm/{product/components → components}/Range/index.d.ts +0 -0
  48. /package/dist/esm/{product/components → components}/Select/index.d.ts +0 -0
  49. /package/dist/esm/{product/components → components}/Skeleton/index.d.ts +0 -0
  50. /package/dist/esm/{product/components → components}/TextField/index.d.ts +0 -0
  51. /package/dist/esm/{product/components → components}/Toast/index.d.ts +0 -0
  52. /package/dist/esm/{product/components → components}/Tooltip/index.d.ts +0 -0
  53. /package/dist/esm/{product/components → components}/Typography/index.d.ts +0 -0
  54. /package/dist/esm/{product/components → components}/shared/FormField/index.d.ts +0 -0
@@ -0,0 +1,21 @@
1
+ import React from "react";
2
+ import * as AccordionPrimitive from "@radix-ui/react-accordion";
3
+ export type TAccordionRootProps = React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Root> & {
4
+ children: React.ReactNode;
5
+ filled?: boolean;
6
+ };
7
+ declare const Accordion: React.ForwardRefExoticComponent<TAccordionRootProps & React.RefAttributes<HTMLDivElement>>;
8
+ declare const AccordionItem: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
9
+ export type TAccordionControlsProps = {
10
+ location: "left" | "right";
11
+ };
12
+ export type TAccordionTriggerProps = React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Trigger> & {
13
+ controls?: React.ReactNode;
14
+ controlsOptions?: TAccordionControlsProps;
15
+ };
16
+ declare const AccordionTrigger: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & {
17
+ controls?: React.ReactNode;
18
+ controlsOptions?: TAccordionControlsProps | undefined;
19
+ } & React.RefAttributes<HTMLButtonElement>>;
20
+ declare const AccordionContent: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
21
+ export { Accordion, AccordionItem, AccordionTrigger, AccordionContent };
@@ -1,5 +1,5 @@
1
1
  import React, { PropsWithChildren } from "react";
2
- import { PolymorphicPropsWithoutRef } from "../../../types/PolymorphicWithoutRef";
2
+ import { PolymorphicPropsWithoutRef } from "../../types/PolymorphicWithoutRef";
3
3
  declare const defaultElement = "button";
4
4
  export type TButtonDefaultProps = {
5
5
  visualType?: "button";
@@ -1,5 +1,5 @@
1
1
  import React, { PropsWithChildren } from "react";
2
- import { TIconProps } from "../../../icons";
2
+ import { TIconProps } from "../../icons";
3
3
  import { TTypographyProps } from "../Typography";
4
4
  export type TCalloutRootProps = {
5
5
  type?: "info" | "warning" | "error";
@@ -0,0 +1,22 @@
1
+ import React from 'react';
2
+ import { PropsWithChildren } from 'react';
3
+ import { PolymorphicPropsWithoutRef } from '../../types/PolymorphicWithoutRef';
4
+ declare const defaultElement = "div";
5
+ export type TCardVariants = {
6
+ visual?: 'primary' | 'secondary' | 'tertiary';
7
+ size?: {
8
+ vertical: 'none' | 'extra-small' | 'small' | 'medium' | 'large';
9
+ horizontal: 'none' | 'extra-small' | 'small' | 'medium' | 'large';
10
+ };
11
+ radius?: 'none' | 'small' | 'medium' | 'large';
12
+ elementType?: 'div';
13
+ };
14
+ export interface ICardOwnProps extends React.HTMLAttributes<HTMLDivElement>, PropsWithChildren {
15
+ as?: 'div';
16
+ variants?: TCardVariants;
17
+ className?: string;
18
+ isSquare?: boolean;
19
+ }
20
+ export type ICardProps<T extends React.ElementType = typeof defaultElement> = PolymorphicPropsWithoutRef<ICardOwnProps, T>;
21
+ export declare function Card<T extends React.ElementType = typeof defaultElement>({ as, children, variants, className, isSquare, ...rest }: ICardProps<T>): React.JSX.Element;
22
+ export {};
@@ -0,0 +1,16 @@
1
+ import React from "react";
2
+ import { ControllerRenderProps, FieldValues } from "react-hook-form";
3
+ export type TComboBoxItem = {
4
+ text: string;
5
+ img: string;
6
+ };
7
+ export type TComboBoxProps = {
8
+ label: string;
9
+ name: string;
10
+ options: TComboBoxItem[];
11
+ onSelect?: (item: TComboBoxItem) => void;
12
+ alwaysOpen?: boolean;
13
+ field: ControllerRenderProps<FieldValues>;
14
+ };
15
+ export declare const ComboBox: (props: Omit<TComboBoxProps, "field">) => React.JSX.Element;
16
+ export declare const Field: ({ label, options, onSelect, alwaysOpen, field: { onBlur, ...restField }, }: TComboBoxProps) => React.JSX.Element;
@@ -1,6 +1,9 @@
1
+ export * from "./Accordion";
1
2
  export * from "./Button";
2
3
  export * from './Callout';
4
+ export * from "./Card";
3
5
  export * from "./Columns";
6
+ export * from "./ComboBox";
4
7
  export * from "./DatePicker";
5
8
  export * from "./Disclosure";
6
9
  export * from "./Form";
@@ -1,2 +1,2 @@
1
- export * from './product/components';
1
+ export * from './components';
2
2
  export * from "./icons";