@foris/avocado-not-front 0.0.1 → 0.1.1

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.
@@ -0,0 +1,3 @@
1
+ import { useCardNotification } from './useCardNotification';
2
+ import { useHeading } from './useHeading';
3
+ export { useCardNotification, useHeading };
@@ -1,7 +1,8 @@
1
+ import { CardNotificationNotFrontProps } from '../types';
1
2
  /**
2
- * Custom hook to create a card notification component
3
+ * Custom hook to create a CardNotification component
3
4
  * @returns { createCardNotification }
4
5
  */
5
6
  export declare const useCardNotification: () => {
6
- createCardNotification: (props: CardNotificationProps) => JSX.Element | null;
7
+ createCardNotification: (json: CardNotificationNotFrontProps) => JSX.Element | null;
7
8
  };
@@ -0,0 +1,8 @@
1
+ import { HeadingNotFrontProps } from '../types';
2
+ /**
3
+ * Custom hook to create a Heading component
4
+ * @returns { createHeading }
5
+ */
6
+ export declare const useHeading: () => {
7
+ createHeading: (json: HeadingNotFrontProps) => JSX.Element | null;
8
+ };
package/dist/index.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { useCardNotification } from './hooks/useCardNotification';
2
- export { useCardNotification };
1
+ export * from './hooks';
2
+ export * from './types';
@@ -0,0 +1,8 @@
1
+ import { CardNotificationProps } from '../../../avocado-suite';
2
+ export interface CardNotificationNotFrontProps extends CardNotificationProps {
3
+ /**
4
+ * @deprecated Use `content` instead. This property will be removed in the future.
5
+ */
6
+ description?: string;
7
+ content?: string;
8
+ }
@@ -0,0 +1,5 @@
1
+ import { HeadingProps } from '../../../avocado-suite';
2
+ export interface HeadingNotFrontProps extends HeadingProps {
3
+ content?: string;
4
+ variant?: 'h1' | 'h2' | 'h3' | 'h4';
5
+ }
@@ -0,0 +1,2 @@
1
+ export * from './cardNotification.type';
2
+ export * from './heading.type';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@foris/avocado-not-front",
3
- "version": "0.0.1",
3
+ "version": "0.1.1",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -24,7 +24,7 @@
24
24
  "react-select-async-paginate": "0.7.3",
25
25
  "@foris/avocado-core": "0.10.0",
26
26
  "@foris/avocado-icons": "1.11.0",
27
- "@foris/avocado-suite": "0.30.5"
27
+ "@foris/avocado-suite": "0.30.7"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@testing-library/jest-dom": "6.4.0",