@foris/avocado-not-front 0.1.4 → 0.2.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.
- package/dist/avocado-not-front.es.js +1529 -1503
- package/dist/avocado-not-front.umd.js +79 -69
- package/dist/hooks/index.d.ts +2 -1
- package/dist/hooks/useText.d.ts +10 -0
- package/dist/types/components.type.d.ts +23 -0
- package/dist/types/index.d.ts +1 -2
- package/package.json +4 -4
package/dist/hooks/index.d.ts
CHANGED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { TextNotFrontProps } from '../types';
|
|
2
|
+
/**
|
|
3
|
+
* Custom hook that creates a Text component.
|
|
4
|
+
* This hook takes in the `TextNotFrontProps` and returns a Text component with the specified properties.
|
|
5
|
+
*
|
|
6
|
+
* @returns {Object} Returns an object containing the `createText` function.
|
|
7
|
+
*/
|
|
8
|
+
export declare const useText: () => {
|
|
9
|
+
createText: (json: TextNotFrontProps) => JSX.Element | null;
|
|
10
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { HeadingProps, CardNotificationProps, TextProps } 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
|
+
}
|
|
9
|
+
export interface HeadingNotFrontProps extends HeadingProps {
|
|
10
|
+
content?: string;
|
|
11
|
+
variant?: 'h1' | 'h2' | 'h3' | 'h4';
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Interface for the props used in the TextNotFront component.
|
|
15
|
+
* Extends the basic TextProps interface, with a required `content` property.
|
|
16
|
+
*/
|
|
17
|
+
export interface TextNotFrontProps extends TextProps {
|
|
18
|
+
/**
|
|
19
|
+
* The content to be displayed in the component.
|
|
20
|
+
* This property is required and will define the text shown in the component.
|
|
21
|
+
*/
|
|
22
|
+
content: string;
|
|
23
|
+
}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export * from './
|
|
2
|
-
export * from './heading.type';
|
|
1
|
+
export * from './components.type';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@foris/avocado-not-front",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -22,9 +22,9 @@
|
|
|
22
22
|
"react-dom": "18.2.0",
|
|
23
23
|
"react-select": "5.8.0",
|
|
24
24
|
"react-select-async-paginate": "0.7.3",
|
|
25
|
-
"@foris/avocado-icons": "1.
|
|
26
|
-
"@foris/avocado-
|
|
27
|
-
"@foris/avocado-
|
|
25
|
+
"@foris/avocado-icons": "1.13.0",
|
|
26
|
+
"@foris/avocado-core": "0.10.0",
|
|
27
|
+
"@foris/avocado-suite": "0.31.0"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@testing-library/jest-dom": "6.4.0",
|