@mindly/ui-components 4.4.0 → 4.5.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 (30) hide show
  1. package/dist/cjs/configs/tailwind/colors.d.ts +6 -0
  2. package/dist/cjs/index.js +2 -2
  3. package/dist/cjs/lib2/features/CardModal/CardModal.d.ts +13 -0
  4. package/dist/cjs/lib2/features/CardModal/index.d.ts +1 -0
  5. package/dist/cjs/lib2/features/index.d.ts +1 -0
  6. package/dist/cjs/lib2/shared/assets/icons/iconClose.d.ts +3 -0
  7. package/dist/cjs/lib2/shared/assets/icons/iconLeftArrow.d.ts +3 -0
  8. package/dist/cjs/lib2/shared/assets/icons/index.d.ts +2 -0
  9. package/dist/cjs/lib2/shared/hooks/index.d.ts +1 -0
  10. package/dist/cjs/lib2/shared/hooks/use-event.d.ts +9 -0
  11. package/dist/cjs/lib2/shared/ui/IconButton/IconButton.d.ts +8 -0
  12. package/dist/cjs/lib2/shared/ui/IconButton/index.d.ts +1 -0
  13. package/dist/cjs/lib2/shared/ui/index.d.ts +1 -0
  14. package/dist/esm/configs/tailwind/colors.d.ts +6 -0
  15. package/dist/esm/index.js +4 -4
  16. package/dist/esm/lib2/features/CardModal/CardModal.d.ts +13 -0
  17. package/dist/esm/lib2/features/CardModal/index.d.ts +1 -0
  18. package/dist/esm/lib2/features/index.d.ts +1 -0
  19. package/dist/esm/lib2/shared/assets/icons/iconClose.d.ts +3 -0
  20. package/dist/esm/lib2/shared/assets/icons/iconLeftArrow.d.ts +3 -0
  21. package/dist/esm/lib2/shared/assets/icons/index.d.ts +2 -0
  22. package/dist/esm/lib2/shared/hooks/index.d.ts +1 -0
  23. package/dist/esm/lib2/shared/hooks/use-event.d.ts +9 -0
  24. package/dist/esm/lib2/shared/ui/IconButton/IconButton.d.ts +8 -0
  25. package/dist/esm/lib2/shared/ui/IconButton/index.d.ts +1 -0
  26. package/dist/esm/lib2/shared/ui/index.d.ts +1 -0
  27. package/dist/index.d.ts +64 -48
  28. package/package.json +1 -1
  29. package/src/configs/tailwind/colors.ts +6 -0
  30. package/src/lib2/shared/css/tailwind.css +4 -0
@@ -0,0 +1,13 @@
1
+ import React, { FC } from 'react';
2
+ type CardModalProps = {
3
+ isOpen: boolean;
4
+ presentingElement?: HTMLElement;
5
+ onDidDismiss?: () => void;
6
+ backButton?: boolean;
7
+ renderHeader?: (props: {
8
+ backButton?: boolean;
9
+ onClose: () => void;
10
+ }) => React.ReactNode;
11
+ };
12
+ declare const CardModal: FC<CardModalProps>;
13
+ export default CardModal;
@@ -0,0 +1 @@
1
+ export { default } from './CardModal';
@@ -1,2 +1,3 @@
1
1
  export * from './CountryOfOriginModal';
2
2
  export * from './ChangeLanguageModal';
3
+ export * from './CardModal';
@@ -0,0 +1,3 @@
1
+ import * as React from 'react';
2
+ declare const _default: React.NamedExoticComponent<React.SVGAttributes<SVGElement>>;
3
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import * as React from 'react';
2
+ declare const _default: React.NamedExoticComponent<React.SVGAttributes<SVGElement>>;
3
+ export default _default;
@@ -3,3 +3,5 @@ export * from './iconCheckboxUnchecked';
3
3
  export * from './iconLanguage';
4
4
  export * from './iconStar';
5
5
  export * from './iconStarFilled';
6
+ export * from './iconClose';
7
+ export * from './iconLeftArrow';
@@ -1 +1,2 @@
1
1
  export * from './use-dom-ref';
2
+ export * from './use-event';
@@ -0,0 +1,9 @@
1
+ type AnyFunction = (...args: any[]) => any;
2
+ /**
3
+ * Similar to useCallback, with a few subtle differences:
4
+ * - The returned function is a stable reference, and will always be the same between renders
5
+ * - No dependency lists required
6
+ * - Properties or state accessed within the callback will always be "current"
7
+ */
8
+ export declare function useEvent<TCallback extends AnyFunction>(callback: TCallback): TCallback;
9
+ export default useEvent;
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ type IconButtonProps = {
3
+ icon: JSX.Element;
4
+ className?: string;
5
+ onClick?: () => void;
6
+ };
7
+ declare const _default: React.NamedExoticComponent<IconButtonProps>;
8
+ export default _default;
@@ -0,0 +1 @@
1
+ export { default as IconButton } from './IconButton';
@@ -12,3 +12,4 @@ export * from './ListBoxItem';
12
12
  export * from './ListBox';
13
13
  export * from './Textarea_v2';
14
14
  export * from './Rating';
15
+ export * from './IconButton';
@@ -7,6 +7,9 @@ declare const _default: {
7
7
  light: string;
8
8
  };
9
9
  };
10
+ gray: {
11
+ black: string;
12
+ };
10
13
  };
11
14
  };
12
15
  typography: {
@@ -48,5 +51,8 @@ declare const _default: {
48
51
  selected: string;
49
52
  };
50
53
  };
54
+ buttons: {
55
+ 'btn-primary': string;
56
+ };
51
57
  };
52
58
  export default _default;