@stihl-design-system/components 1.0.0-RC.12 → 1.0.0-RC.13
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/README.md +1 -1
- package/chunks/{CustomReactSelect.Cg_XW3YK.js → CustomReactSelect.CQ1uexBH.js} +332 -332
- package/chunks/{Notification.o6pagKQy.js → Notification.nx5vTamN.js} +31 -32
- package/{combobox.DUzv8jzM.js → combobox.CzBpi97e.js} +1 -1
- package/components/Notification/Notification.d.ts +2 -6
- package/{customreactselect.CXmBRqQ9.js → customreactselect.qf7CIeFs.js} +1 -1
- package/index.es.js +3 -3
- package/{notification.JWhrkEcE.js → notification.6M0OdGXK.js} +1 -1
- package/package.json +4 -4
|
@@ -1,38 +1,38 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { j as n } from "./jsx-runtime.C115EyI4.js";
|
|
3
3
|
import { c as s } from "./index.CvOaL64Y.js";
|
|
4
|
-
import { DSButton as
|
|
5
|
-
import { D as
|
|
6
|
-
import '../assets/Notification.DbRapUJo.css';const
|
|
7
|
-
root:
|
|
4
|
+
import { DSButton as f } from "../button.M4nXjcUn.js";
|
|
5
|
+
import { D as u } from "./Icon.BCmt_XBG.js";
|
|
6
|
+
import '../assets/Notification.DbRapUJo.css';const j = "ds-notification_root_1cajm_1", g = "ds-notification_root--success_1cajm_26", N = "ds-notification_root--error_1cajm_30", h = "ds-notification_root--warning_1cajm_34", I = "ds-notification_root--hide-icon_1cajm_38", x = "ds-notification_content_1cajm_52", A = "ds-notification_content--hide-close-button_1cajm_59", H = "ds-notification_content--hide-icon_1cajm_62", C = "ds-notification_icon_1cajm_66", S = "ds-notification_message_1cajm_70", p = "ds-notification_custom-action-area_1cajm_167", o = {
|
|
7
|
+
root: j,
|
|
8
8
|
"root--success": "ds-notification_root--success_1cajm_26",
|
|
9
|
-
rootSuccess:
|
|
9
|
+
rootSuccess: g,
|
|
10
10
|
"root--error": "ds-notification_root--error_1cajm_30",
|
|
11
|
-
rootError:
|
|
11
|
+
rootError: N,
|
|
12
12
|
"root--warning": "ds-notification_root--warning_1cajm_34",
|
|
13
|
-
rootWarning:
|
|
13
|
+
rootWarning: h,
|
|
14
14
|
"root--hide-icon": "ds-notification_root--hide-icon_1cajm_38",
|
|
15
|
-
rootHideIcon:
|
|
16
|
-
content:
|
|
15
|
+
rootHideIcon: I,
|
|
16
|
+
content: x,
|
|
17
17
|
"content--hide-close-button": "ds-notification_content--hide-close-button_1cajm_59",
|
|
18
|
-
contentHideCloseButton:
|
|
18
|
+
contentHideCloseButton: A,
|
|
19
19
|
"content--hide-icon": "ds-notification_content--hide-icon_1cajm_62",
|
|
20
20
|
contentHideIcon: H,
|
|
21
|
-
icon:
|
|
22
|
-
message:
|
|
21
|
+
icon: C,
|
|
22
|
+
message: S,
|
|
23
23
|
"custom-action-area": "ds-notification_custom-action-area_1cajm_167",
|
|
24
|
-
customActionArea:
|
|
25
|
-
},
|
|
24
|
+
customActionArea: p
|
|
25
|
+
}, k = [
|
|
26
26
|
"success",
|
|
27
27
|
"error",
|
|
28
28
|
"warning",
|
|
29
29
|
"info"
|
|
30
|
-
],
|
|
30
|
+
], w = {
|
|
31
31
|
success: "circle-check-colored",
|
|
32
32
|
error: "diamond-exclamationmark-colored",
|
|
33
33
|
warning: "triangle-exclamationmark-colored",
|
|
34
34
|
info: "circle-info-colored"
|
|
35
|
-
},
|
|
35
|
+
}, O = {
|
|
36
36
|
error: "alert",
|
|
37
37
|
warning: "alert",
|
|
38
38
|
info: "status",
|
|
@@ -42,52 +42,51 @@ import '../assets/Notification.DbRapUJo.css';const g = "ds-notification_root_1ca
|
|
|
42
42
|
variant: t = "info",
|
|
43
43
|
className: a,
|
|
44
44
|
closeButtonLabel: _ = "Close notification",
|
|
45
|
-
customActionArea:
|
|
46
|
-
hideCloseButton: e = !1,
|
|
45
|
+
customActionArea: e,
|
|
47
46
|
hideIcon: c = !1,
|
|
48
|
-
onClose:
|
|
47
|
+
onClose: i,
|
|
49
48
|
...d
|
|
50
49
|
}) => {
|
|
51
|
-
const
|
|
50
|
+
const m = s(o.root, a, {
|
|
52
51
|
[o.rootSuccess]: t === "success",
|
|
53
52
|
[o.rootError]: t === "error",
|
|
54
53
|
[o.rootWarning]: t === "warning",
|
|
55
54
|
[o.rootInfo]: t === "info",
|
|
56
55
|
[o.rootHideIcon]: c
|
|
57
|
-
}),
|
|
58
|
-
[o.contentHideCloseButton]:
|
|
56
|
+
}), l = s(o.content, {
|
|
57
|
+
[o.contentHideCloseButton]: !i,
|
|
59
58
|
[o.contentHideIcon]: c
|
|
60
59
|
});
|
|
61
|
-
return /* @__PURE__ */ n.jsxs("div", { className:
|
|
62
|
-
/* @__PURE__ */ n.jsxs("div", { className:
|
|
60
|
+
return /* @__PURE__ */ n.jsxs("div", { className: m, ...d, role: O[t], children: [
|
|
61
|
+
/* @__PURE__ */ n.jsxs("div", { className: l, children: [
|
|
63
62
|
!c && /* @__PURE__ */ n.jsx(
|
|
64
|
-
|
|
63
|
+
u,
|
|
65
64
|
{
|
|
66
|
-
name:
|
|
65
|
+
name: w[t],
|
|
67
66
|
className: o.icon,
|
|
68
67
|
"aria-hidden": "true"
|
|
69
68
|
}
|
|
70
69
|
),
|
|
71
70
|
/* @__PURE__ */ n.jsx("div", { className: o.message, children: r }),
|
|
72
|
-
|
|
73
|
-
|
|
71
|
+
i && /* @__PURE__ */ n.jsx(
|
|
72
|
+
f,
|
|
74
73
|
{
|
|
75
74
|
hideLabel: !0,
|
|
76
75
|
iconName: "cross",
|
|
77
76
|
isFlush: !0,
|
|
78
77
|
variant: "ghost",
|
|
79
78
|
size: "small",
|
|
80
|
-
onClick:
|
|
79
|
+
onClick: i,
|
|
81
80
|
type: "button",
|
|
82
81
|
children: _
|
|
83
82
|
}
|
|
84
83
|
)
|
|
85
84
|
] }),
|
|
86
|
-
|
|
85
|
+
e && /* @__PURE__ */ n.jsx("div", { className: s({ [o.customActionArea]: !c }), children: e })
|
|
87
86
|
] });
|
|
88
87
|
};
|
|
89
88
|
export {
|
|
90
89
|
B as D,
|
|
91
|
-
|
|
92
|
-
|
|
90
|
+
k as N,
|
|
91
|
+
w as a
|
|
93
92
|
};
|
|
@@ -9,10 +9,6 @@ export interface NotificationProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
9
9
|
closeButtonLabel?: string;
|
|
10
10
|
/** Content within the Notification's action bar. For example a CTA button. */
|
|
11
11
|
customActionArea?: React.ReactNode;
|
|
12
|
-
/** Hides the close button.
|
|
13
|
-
* @default false
|
|
14
|
-
*/
|
|
15
|
-
hideCloseButton?: boolean;
|
|
16
12
|
/** Hides the icon.
|
|
17
13
|
* @default false
|
|
18
14
|
*/
|
|
@@ -21,7 +17,7 @@ export interface NotificationProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
21
17
|
* @default 'info'
|
|
22
18
|
*/
|
|
23
19
|
variant?: NotificationVariant;
|
|
24
|
-
/**
|
|
20
|
+
/** Shows a close button if provided and is called when the close button is clicked. */
|
|
25
21
|
onClose?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
26
22
|
}
|
|
27
23
|
/**
|
|
@@ -32,4 +28,4 @@ export interface NotificationProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
32
28
|
*
|
|
33
29
|
* <div className="ds-info">For more information on the different types of notifications and to determine which is best suited for your needs, please refer to our [Notification Guidelines](/docs/templates-notification-guidelines--documentation) and explore the decision trees provided.</div>
|
|
34
30
|
*/
|
|
35
|
-
export declare const DSNotification: ({ children, variant, className, closeButtonLabel, customActionArea,
|
|
31
|
+
export declare const DSNotification: ({ children, variant, className, closeButtonLabel, customActionArea, hideIcon, onClose, ...rest }: NotificationProps) => JSX.Element;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import "./chunks/jsx-runtime.C115EyI4.js";
|
|
3
3
|
import "./chunks/index.CvOaL64Y.js";
|
|
4
4
|
import "react";
|
|
5
|
-
import { c as l } from "./chunks/CustomReactSelect.
|
|
5
|
+
import { c as l } from "./chunks/CustomReactSelect.CQ1uexBH.js";
|
|
6
6
|
import "./chunks/useBreakpoint.5xBNDiCf.js";
|
|
7
7
|
import "./asterisk.DpzETKdT.js";
|
|
8
8
|
import "./chunks/Icon.BCmt_XBG.js";
|
package/index.es.js
CHANGED
|
@@ -5,8 +5,8 @@ import { DSButton as h } from "./button.M4nXjcUn.js";
|
|
|
5
5
|
import { DSButtonRound as P } from "./buttonround.E56F_805.js";
|
|
6
6
|
import { DSCheckbox as E } from "./checkbox.Cb2_ey6U.js";
|
|
7
7
|
import { D as C, v as R } from "./chunks/CheckboxGroup.S6i5EOc4.js";
|
|
8
|
-
import { DSCombobox as G } from "./combobox.
|
|
9
|
-
import { C as b, b as B, a as H, D as Z, v as X } from "./chunks/CustomReactSelect.
|
|
8
|
+
import { DSCombobox as G } from "./combobox.CzBpi97e.js";
|
|
9
|
+
import { C as b, b as B, a as H, D as Z, v as X } from "./chunks/CustomReactSelect.CQ1uexBH.js";
|
|
10
10
|
import { D as k, v as w } from "./chunks/Dialog.CudsqNag.js";
|
|
11
11
|
import { a as V, D as y, v as K } from "./chunks/Drawer.ueG2Bzr9.js";
|
|
12
12
|
import { D as Y, v as q } from "./chunks/Fieldset.Cjmkgxxk.js";
|
|
@@ -22,7 +22,7 @@ import { D as vo, v as Co } from "./chunks/InputStepper.xmWGU9pU.js";
|
|
|
22
22
|
import { DSLink as Lo } from "./link.DREJAoPG.js";
|
|
23
23
|
import { DSLinkStandalone as Uo } from "./linkstandalone.BBoEniZ_.js";
|
|
24
24
|
import { DSLogo as Bo } from "./logo.Hul8qCFo.js";
|
|
25
|
-
import { D as Zo, a as Xo, N as Fo } from "./chunks/Notification.
|
|
25
|
+
import { D as Zo, a as Xo, N as Fo } from "./chunks/Notification.nx5vTamN.js";
|
|
26
26
|
import { D as wo, a as Mo, o as Vo, v as yo } from "./chunks/RadioGroup.Crj7NoOs.js";
|
|
27
27
|
import { D as Wo, S as Yo, g as qo, v as jo } from "./chunks/Select.E6gLFYLk.js";
|
|
28
28
|
import { DSSkipToContent as Jo } from "./skiptocontent.BxvpIB7H.js";
|
|
@@ -3,7 +3,7 @@ import "./chunks/jsx-runtime.C115EyI4.js";
|
|
|
3
3
|
import "./chunks/index.CvOaL64Y.js";
|
|
4
4
|
import "./button.M4nXjcUn.js";
|
|
5
5
|
import "./chunks/Icon.BCmt_XBG.js";
|
|
6
|
-
import { D as e } from "./chunks/Notification.
|
|
6
|
+
import { D as e } from "./chunks/Notification.nx5vTamN.js";
|
|
7
7
|
export {
|
|
8
8
|
e as DSNotification
|
|
9
9
|
};
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stihl-design-system/components",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.0.0-RC.
|
|
4
|
+
"version": "1.0.0-RC.13",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
|
-
"homepage": "https://
|
|
6
|
+
"homepage": "https://designsystem.stihl.de/",
|
|
7
7
|
"keywords": [
|
|
8
8
|
"stihl",
|
|
9
9
|
"design",
|
|
@@ -139,8 +139,8 @@
|
|
|
139
139
|
},
|
|
140
140
|
"peerDependencies": {
|
|
141
141
|
"classnames": "^2.5.1",
|
|
142
|
-
"react": ">=17.0.0
|
|
143
|
-
"react-dom": ">=17.0.0
|
|
142
|
+
"react": ">=17.0.0 <=19",
|
|
143
|
+
"react-dom": ">=17.0.0 <=19",
|
|
144
144
|
"react-intersection-observer": "^9.10.2",
|
|
145
145
|
"react-select": "^5.8.1"
|
|
146
146
|
}
|