@mindly/ui-components 5.21.0 → 5.23.0

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 (36) hide show
  1. package/dist/cjs/index.js +6 -6
  2. package/dist/cjs/lib2/shared/assets/icons/IconArrowDown.d.ts +2 -0
  3. package/dist/cjs/lib2/shared/assets/icons/IconBookmark.d.ts +2 -0
  4. package/dist/cjs/lib2/shared/assets/icons/IconCalendarFilled.d.ts +3 -0
  5. package/dist/cjs/lib2/shared/assets/icons/IconCancel.d.ts +2 -0
  6. package/dist/cjs/lib2/shared/assets/icons/IconCancelRounded.d.ts +1 -2
  7. package/dist/cjs/lib2/shared/assets/icons/IconChatFilled.d.ts +3 -0
  8. package/dist/cjs/lib2/shared/assets/icons/IconClient.d.ts +2 -0
  9. package/dist/cjs/lib2/shared/assets/icons/IconClientFilled.d.ts +2 -0
  10. package/dist/cjs/lib2/shared/assets/icons/IconPaid.d.ts +2 -0
  11. package/dist/cjs/lib2/shared/assets/icons/IconSearch.d.ts +2 -0
  12. package/dist/cjs/lib2/shared/assets/icons/IconUserNotFound.d.ts +3 -0
  13. package/dist/cjs/lib2/shared/assets/icons/index.d.ts +10 -0
  14. package/dist/cjs/lib2/shared/hooks/useCircleRating.d.ts +8 -7
  15. package/dist/cjs/lib2/shared/types/ratingCircleTypes.d.ts +9 -0
  16. package/dist/cjs/lib2/shared/ui/ListItems/{ListItem.d.ts → Item.d.ts} +3 -3
  17. package/dist/cjs/lib2/shared/ui/ListItems/index.d.ts +1 -1
  18. package/dist/esm/index.js +6 -6
  19. package/dist/esm/lib2/shared/assets/icons/IconArrowDown.d.ts +2 -0
  20. package/dist/esm/lib2/shared/assets/icons/IconBookmark.d.ts +2 -0
  21. package/dist/esm/lib2/shared/assets/icons/IconCalendarFilled.d.ts +3 -0
  22. package/dist/esm/lib2/shared/assets/icons/IconCancel.d.ts +2 -0
  23. package/dist/esm/lib2/shared/assets/icons/IconCancelRounded.d.ts +1 -2
  24. package/dist/esm/lib2/shared/assets/icons/IconChatFilled.d.ts +3 -0
  25. package/dist/esm/lib2/shared/assets/icons/IconClient.d.ts +2 -0
  26. package/dist/esm/lib2/shared/assets/icons/IconClientFilled.d.ts +2 -0
  27. package/dist/esm/lib2/shared/assets/icons/IconPaid.d.ts +2 -0
  28. package/dist/esm/lib2/shared/assets/icons/IconSearch.d.ts +2 -0
  29. package/dist/esm/lib2/shared/assets/icons/IconUserNotFound.d.ts +3 -0
  30. package/dist/esm/lib2/shared/assets/icons/index.d.ts +10 -0
  31. package/dist/esm/lib2/shared/hooks/useCircleRating.d.ts +8 -7
  32. package/dist/esm/lib2/shared/types/ratingCircleTypes.d.ts +9 -0
  33. package/dist/esm/lib2/shared/ui/ListItems/{ListItem.d.ts → Item.d.ts} +3 -3
  34. package/dist/esm/lib2/shared/ui/ListItems/index.d.ts +1 -1
  35. package/dist/index.d.ts +44 -11
  36. package/package.json +1 -1
@@ -0,0 +1,2 @@
1
+ import { SVGProps } from 'react';
2
+ export declare const IconArrowDown: ({ width, height, color, ...other }: SVGProps<SVGSVGElement>) => JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { SVGProps } from 'react';
2
+ export declare const IconBookmark: ({ width, height, color, ...other }: SVGProps<SVGSVGElement>) => JSX.Element;
@@ -0,0 +1,3 @@
1
+ import { SVGProps } from 'react';
2
+ export declare const IconCalendarFilled: ({ width, height, color, ...props }: SVGProps<SVGSVGElement>) => JSX.Element;
3
+ export default IconCalendarFilled;
@@ -0,0 +1,2 @@
1
+ import { SVGProps } from 'react';
2
+ export declare const IconCancel: ({ width, height, color, ...other }: SVGProps<SVGSVGElement>) => JSX.Element;
@@ -1,10 +1,9 @@
1
1
  import * as React from 'react';
2
- import { FC } from 'react';
3
2
  interface IconProps extends React.SVGAttributes<SVGElement> {
4
3
  size?: number | string;
5
4
  color?: string;
6
5
  className?: string;
7
6
  style?: React.CSSProperties;
8
7
  }
9
- export declare const IconCancelRounded: FC<IconProps>;
8
+ export declare function IconCancelRounded({ color, size, ...other }: IconProps): JSX.Element;
10
9
  export {};
@@ -0,0 +1,3 @@
1
+ import { SVGProps } from 'react';
2
+ export declare const IconChatFilled: ({ width, height, color, ...props }: SVGProps<SVGSVGElement>) => JSX.Element;
3
+ export default IconChatFilled;
@@ -0,0 +1,2 @@
1
+ import { SVGProps } from 'react';
2
+ export declare const IconClient: ({ width, height, color, ...other }: SVGProps<SVGSVGElement>) => JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { SVGProps } from 'react';
2
+ export declare const IconClientFilled: ({ width, height, color, ...other }: SVGProps<SVGSVGElement>) => JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { SVGProps } from 'react';
2
+ export declare const IconPaid: ({ width, height, color, ...other }: SVGProps<SVGSVGElement>) => JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { SVGProps } from 'react';
2
+ export declare const IconSearch: ({ width, height, color, ...other }: SVGProps<SVGSVGElement>) => JSX.Element;
@@ -0,0 +1,3 @@
1
+ import { SVGProps } from 'react';
2
+ export declare const IconUserNotFound: (props: SVGProps<SVGSVGElement>) => JSX.Element;
3
+ export default IconUserNotFound;
@@ -43,3 +43,13 @@ export * from './IconCheckSmall';
43
43
  export * from './IconCheck';
44
44
  export * from './IconCapFilled';
45
45
  export * from './IconCancelRounded';
46
+ export * from './IconUserNotFound';
47
+ export * from './IconSearch';
48
+ export * from './IconPaid';
49
+ export * from './IconClient';
50
+ export * from './IconClientFilled';
51
+ export * from './IconChatFilled';
52
+ export * from './IconCancel';
53
+ export * from './IconCalendarFilled';
54
+ export * from './IconBookmark';
55
+ export * from './IconArrowDown';
@@ -1,5 +1,5 @@
1
- import { WithTranslation } from 'react-i18next';
2
- import { CircleRatingRange, CircleRatingDataProps, CircleRatingDataResult, ProgressRangeProps, BreakPointPositionResult, CircleRatingContextData } from '../types/ratingCircleTypes';
1
+ import { SizeValues, CircleRatingRange, CircleRatingDataProps, CircleRatingDataResult, CircleRatingLegendProps, ProgressRangeProps, BreakPointPositionResult, CircleRatingContextData } from '../types/ratingCircleTypes';
2
+ export declare const SIZES: SizeValues;
3
3
  export declare const BREAKPOINT_ICON_SIZE = 20;
4
4
  export declare function useCircleRatingRenderData({ progress, size, maxValue, isReverse, }: CircleRatingDataProps): CircleRatingDataResult;
5
5
  export declare function useRangeIndex({ progress, maxValue, ranges, isReverse }: ProgressRangeProps): number;
@@ -13,11 +13,12 @@ export declare function useBreakPointsPosition({ maxValue, breakPoints, radius,
13
13
  radius?: number;
14
14
  strokeWidth?: number;
15
15
  }): BreakPointPositionResult[];
16
- export declare function useRatingCircleLegend({ ranges, t, isReverse }: {
17
- ranges: CircleRatingRange[];
18
- t: WithTranslation['t'];
19
- isReverse?: boolean;
20
- }): string[];
16
+ export declare function useRatingCircleLegend({ ranges, t, isReverse, isPercentage, }: CircleRatingLegendProps): string[];
17
+ export declare function useRatingCircleContentValue({ progress, isPercentage, decimal, }: {
18
+ progress: number;
19
+ isPercentage?: boolean;
20
+ decimal?: number;
21
+ }): string;
21
22
  export declare function useRatingCircleBreakPoints({ ranges, maxValue, isReverse, }: {
22
23
  ranges: CircleRatingRange[];
23
24
  maxValue: number;
@@ -1,3 +1,4 @@
1
+ import { WithTranslation } from 'react-i18next';
1
2
  export declare enum CircleRatingSize {
2
3
  'S' = "S",
3
4
  'M' = "M",
@@ -44,17 +45,25 @@ export type BreakPointPositionResult = {
44
45
  top: number;
45
46
  left: number;
46
47
  };
48
+ export type CircleRatingLegendProps = {
49
+ ranges: CircleRatingRange[];
50
+ t: WithTranslation['t'];
51
+ isReverse?: boolean;
52
+ isPercentage?: boolean;
53
+ };
47
54
  export type CircleRatingComponentProps = {
48
55
  size: keyof typeof CircleRatingSize;
49
56
  content?: CircleRatingContent | null;
50
57
  progress: number;
51
58
  ranges: CircleRatingRange[];
59
+ decimal?: number;
52
60
  isColorless?: boolean;
53
61
  isRatingDisabled?: boolean;
54
62
  isShowLegend?: boolean;
55
63
  isShowBreakPoints?: boolean;
56
64
  isReverse?: boolean;
57
65
  isZeroTransparent?: boolean;
66
+ className?: string;
58
67
  };
59
68
  export type CircleRatingContextProps = CircleRatingComponentProps & {
60
69
  legend?: string[];
@@ -1,15 +1,15 @@
1
1
  import * as React from 'react';
2
- type ListItemProps = React.HTMLAttributes<HTMLIonItemElement> & {
2
+ type ItemProps = React.HTMLAttributes<HTMLIonItemElement> & {
3
3
  leftContent?: React.ReactNode;
4
4
  rightContent?: React.ReactNode;
5
5
  withBorders?: boolean;
6
6
  isDisabled?: boolean;
7
7
  };
8
- export declare const ListItem: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLIonItemElement> & {
8
+ export declare const Item: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLIonItemElement> & {
9
9
  leftContent?: React.ReactNode;
10
10
  rightContent?: React.ReactNode;
11
11
  withBorders?: boolean | undefined;
12
12
  isDisabled?: boolean | undefined;
13
13
  } & React.RefAttributes<HTMLIonItemElement>>;
14
- declare const _default: React.NamedExoticComponent<ListItemProps>;
14
+ declare const _default: React.NamedExoticComponent<ItemProps>;
15
15
  export default _default;
@@ -1,2 +1,2 @@
1
1
  export { default as ListItems } from './ListItems';
2
- export { default as ListItem } from './ListItem';
2
+ export { default as Item } from './Item';