@mindly/ui-components 4.3.6 → 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 (49) hide show
  1. package/dist/cjs/configs/tailwind/colors.d.ts +12 -0
  2. package/dist/cjs/index.js +4 -4
  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/iconStar.d.ts +3 -0
  9. package/dist/cjs/lib2/shared/assets/icons/iconStarFilled.d.ts +3 -0
  10. package/dist/cjs/lib2/shared/assets/icons/index.d.ts +4 -0
  11. package/dist/cjs/lib2/shared/hooks/index.d.ts +1 -0
  12. package/dist/cjs/lib2/shared/hooks/use-event.d.ts +9 -0
  13. package/dist/cjs/lib2/shared/ui/IconButton/IconButton.d.ts +8 -0
  14. package/dist/cjs/lib2/shared/ui/IconButton/index.d.ts +1 -0
  15. package/dist/cjs/lib2/shared/ui/Rating/Rating.d.ts +4 -0
  16. package/dist/cjs/lib2/shared/ui/Rating/Rating.stories.d.ts +6 -0
  17. package/dist/cjs/lib2/shared/ui/Rating/index.d.ts +1 -0
  18. package/dist/cjs/lib2/shared/ui/Rating/types.d.ts +6 -0
  19. package/dist/cjs/lib2/shared/ui/Textarea_v2/Textarea_v2.d.ts +4 -0
  20. package/dist/cjs/lib2/shared/ui/Textarea_v2/index.d.ts +1 -0
  21. package/dist/cjs/lib2/shared/ui/Textarea_v2/types.d.ts +6 -0
  22. package/dist/cjs/lib2/shared/ui/index.d.ts +3 -0
  23. package/dist/esm/configs/tailwind/colors.d.ts +12 -0
  24. package/dist/esm/index.js +4 -4
  25. package/dist/esm/lib2/features/CardModal/CardModal.d.ts +13 -0
  26. package/dist/esm/lib2/features/CardModal/index.d.ts +1 -0
  27. package/dist/esm/lib2/features/index.d.ts +1 -0
  28. package/dist/esm/lib2/shared/assets/icons/iconClose.d.ts +3 -0
  29. package/dist/esm/lib2/shared/assets/icons/iconLeftArrow.d.ts +3 -0
  30. package/dist/esm/lib2/shared/assets/icons/iconStar.d.ts +3 -0
  31. package/dist/esm/lib2/shared/assets/icons/iconStarFilled.d.ts +3 -0
  32. package/dist/esm/lib2/shared/assets/icons/index.d.ts +4 -0
  33. package/dist/esm/lib2/shared/hooks/index.d.ts +1 -0
  34. package/dist/esm/lib2/shared/hooks/use-event.d.ts +9 -0
  35. package/dist/esm/lib2/shared/ui/IconButton/IconButton.d.ts +8 -0
  36. package/dist/esm/lib2/shared/ui/IconButton/index.d.ts +1 -0
  37. package/dist/esm/lib2/shared/ui/Rating/Rating.d.ts +4 -0
  38. package/dist/esm/lib2/shared/ui/Rating/Rating.stories.d.ts +6 -0
  39. package/dist/esm/lib2/shared/ui/Rating/index.d.ts +1 -0
  40. package/dist/esm/lib2/shared/ui/Rating/types.d.ts +6 -0
  41. package/dist/esm/lib2/shared/ui/Textarea_v2/Textarea_v2.d.ts +4 -0
  42. package/dist/esm/lib2/shared/ui/Textarea_v2/index.d.ts +1 -0
  43. package/dist/esm/lib2/shared/ui/Textarea_v2/types.d.ts +6 -0
  44. package/dist/esm/lib2/shared/ui/index.d.ts +3 -0
  45. package/dist/index.d.ts +79 -46
  46. package/package.json +1 -1
  47. package/src/configs/tailwind/colors.ts +12 -0
  48. package/src/lib2/shared/css/tailwind.css +7 -0
  49. package/src/lib2/shared/css/variables.css +1 -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;
@@ -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;
@@ -1,3 +1,7 @@
1
1
  export * from './iconCheckboxChecked';
2
2
  export * from './iconCheckboxUnchecked';
3
3
  export * from './iconLanguage';
4
+ export * from './iconStar';
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';
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { RatingProps } from './types';
3
+ declare const _default: React.NamedExoticComponent<RatingProps>;
4
+ export default _default;
@@ -0,0 +1,6 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import Rating from './Rating';
3
+ declare const meta: Meta<typeof Rating>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof Rating>;
6
+ export declare const Default: Story;
@@ -0,0 +1 @@
1
+ export { default as Rating } from './Rating';
@@ -0,0 +1,6 @@
1
+ export type RatingProps = {
2
+ initialRating?: number;
3
+ onChange?: (value: number) => void;
4
+ onClick?: (value: number) => void;
5
+ onHover?: (value: number) => void;
6
+ };
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { TextareaV2Props } from './types';
3
+ declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<TextareaV2Props & React.RefAttributes<HTMLIonTextareaElement>>>;
4
+ export default _default;
@@ -0,0 +1 @@
1
+ export { default as Textarea_v2 } from './Textarea_v2';
@@ -0,0 +1,6 @@
1
+ import { JSX } from '@ionic/core/components';
2
+ export interface TextareaV2Props extends Omit<JSX.IonTextarea, 'color' | 'enterkeyhint' | 'inputmode' | 'mode'> {
3
+ borderTop?: boolean;
4
+ showCounter?: boolean;
5
+ className?: string;
6
+ }
@@ -10,3 +10,6 @@ export * from './Badge';
10
10
  export * from './AppHeader_v2';
11
11
  export * from './ListBoxItem';
12
12
  export * from './ListBox';
13
+ export * from './Textarea_v2';
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: {
@@ -42,5 +45,14 @@ declare const _default: {
42
45
  borders: {
43
46
  divider: string;
44
47
  };
48
+ controls: {
49
+ element: {
50
+ unselected: string;
51
+ selected: string;
52
+ };
53
+ };
54
+ buttons: {
55
+ 'btn-primary': string;
56
+ };
45
57
  };
46
58
  export default _default;