@axa-fr/design-system-slash-react 1.2.1-alpha.122 → 1.2.1-alpha.123
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/Tag/Tag.d.ts +2 -2
- package/dist/Tag/Tag.js +1 -1
- package/dist/index.d.ts +1 -1
- package/package.json +2 -2
package/dist/Tag/Tag.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ type TagModifier = "success" | "information" | "warning" | "error" | "default" |
|
|
|
4
4
|
/**
|
|
5
5
|
* @deprecated instead use warning
|
|
6
6
|
*/
|
|
7
|
-
type TagModifierDecrepated = "danger";
|
|
7
|
+
type TagModifierDecrepated = "danger" | "info";
|
|
8
8
|
type TagProps = ComponentPropsWithRef<"span"> & {
|
|
9
9
|
classModifier?: `${TagModifier | TagModifierDecrepated}` | string;
|
|
10
10
|
disabled?: boolean;
|
|
@@ -20,7 +20,7 @@ type TagProps = ComponentPropsWithRef<"span"> & {
|
|
|
20
20
|
* @param {object} props - The properties object.
|
|
21
21
|
* @param {React.ReactNode} props.children - The content to be displayed inside the tag.
|
|
22
22
|
* @param {string} [props.className] - Additional class names to apply to the tag.
|
|
23
|
-
* @param {string} [props.classModifier] - Modifier class to apply specific styles. Note: "danger" is deprecated, use "warning" instead.
|
|
23
|
+
* @param {string} [props.classModifier] - Modifier class to apply specific styles. Note: "danger" is deprecated, use "warning" instead. "info" is deprecated, use "information" instead
|
|
24
24
|
* @param {boolean} [props.disabled] - If true, the tag will be disabled.
|
|
25
25
|
* @param {React.Ref<HTMLSpanElement>} ref - The ref to the span element.
|
|
26
26
|
* @returns {JSX.Element} The rendered Tag component.
|
package/dist/Tag/Tag.js
CHANGED
|
@@ -13,7 +13,7 @@ import "@axa-fr/design-system-slash-css/dist/Tag/Tag.scss";
|
|
|
13
13
|
* @param {object} props - The properties object.
|
|
14
14
|
* @param {React.ReactNode} props.children - The content to be displayed inside the tag.
|
|
15
15
|
* @param {string} [props.className] - Additional class names to apply to the tag.
|
|
16
|
-
* @param {string} [props.classModifier] - Modifier class to apply specific styles. Note: "danger" is deprecated, use "warning" instead.
|
|
16
|
+
* @param {string} [props.classModifier] - Modifier class to apply specific styles. Note: "danger" is deprecated, use "warning" instead. "info" is deprecated, use "information" instead
|
|
17
17
|
* @param {boolean} [props.disabled] - If true, the tag will be disabled.
|
|
18
18
|
* @param {React.Ref<HTMLSpanElement>} ref - The ref to the span element.
|
|
19
19
|
* @returns {JSX.Element} The rendered Tag component.
|
package/dist/index.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ import { Tag } from "./Tag/Tag";
|
|
|
8
8
|
export { Action } from "./Action/Action";
|
|
9
9
|
/** @deprecated Use `Tag` instead. */
|
|
10
10
|
declare const Badge: import("react").ForwardRefExoticComponent<Omit<import("react").PropsWithChildren<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement> & {
|
|
11
|
-
classModifier?: `${("error" | "warning" | "success" | "information" | "default" | "dark" | "purple" | "gray") | "danger"}` | string;
|
|
11
|
+
classModifier?: `${("error" | "warning" | "success" | "information" | "default" | "dark" | "purple" | "gray") | ("info" | "danger")}` | string;
|
|
12
12
|
disabled?: boolean;
|
|
13
13
|
}>, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
14
14
|
export { Badge, Tag };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@axa-fr/design-system-slash-react",
|
|
3
|
-
"version": "1.2.1-alpha.
|
|
3
|
+
"version": "1.2.1-alpha.123",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
},
|
|
48
48
|
"homepage": "https://github.com/AxaFrance/design-system#readme",
|
|
49
49
|
"peerDependencies": {
|
|
50
|
-
"@axa-fr/design-system-slash-css": "1.2.1-alpha.
|
|
50
|
+
"@axa-fr/design-system-slash-css": "1.2.1-alpha.123",
|
|
51
51
|
"@material-symbols/svg-400": ">= 0.19.0",
|
|
52
52
|
"react": ">= 18"
|
|
53
53
|
},
|