@rikstv/shared-components 3.2.7-alpha.2 → 3.2.7-alpha.3
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.
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsxs as a, jsx as s } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as B, useState as o } from "react";
|
|
3
|
+
import { H as F, B as T } from "../typography/Typography-CXNJ1SFo.mjs";
|
|
3
4
|
import "../icons/HeartToggle-Bwgo4FxH.mjs";
|
|
4
|
-
import { S as
|
|
5
|
-
import { H as x, B as O } from "../typography/Typography-CXNJ1SFo.mjs";
|
|
5
|
+
import { S as b, a as x, b as d, c as O } from "../icons/Icons-CVv5JxOX.mjs";
|
|
6
6
|
const H = "_rds-alert--icon_m8jce_67", R = "_rds-alert--content-title_m8jce_79", D = "_rds-alert--content_m8jce_79", E = "_rds-alert--dismiss_m8jce_109", M = "_dismissed_m8jce_138", V = "_dismiss-fade-out_m8jce_1", e = {
|
|
7
7
|
rdsAlertIcon: H,
|
|
8
8
|
rdsAlertContentTitle: R,
|
|
@@ -11,10 +11,10 @@ const H = "_rds-alert--icon_m8jce_67", R = "_rds-alert--content-title_m8jce_79",
|
|
|
11
11
|
dismissed: M,
|
|
12
12
|
dismissFadeOut: V
|
|
13
13
|
}, q = {
|
|
14
|
-
warning: { title: "Advarsel", Icon:
|
|
14
|
+
warning: { title: "Advarsel", Icon: x },
|
|
15
15
|
error: { title: "Feil", Icon: d },
|
|
16
16
|
info: { title: "Informasjon", Icon: d },
|
|
17
|
-
success: { title: "Vellykket", Icon:
|
|
17
|
+
success: { title: "Vellykket", Icon: O }
|
|
18
18
|
}, z = B(
|
|
19
19
|
({
|
|
20
20
|
className: c,
|
|
@@ -52,11 +52,11 @@ const H = "_rds-alert--icon_m8jce_67", R = "_rds-alert--content-title_m8jce_79",
|
|
|
52
52
|
children: [
|
|
53
53
|
/* @__PURE__ */ s(S, { className: e.rdsAlertIcon }),
|
|
54
54
|
/* @__PURE__ */ a("div", { className: e.rdsAlertContent, children: [
|
|
55
|
-
/* @__PURE__ */ s(
|
|
56
|
-
/* @__PURE__ */ s(
|
|
55
|
+
/* @__PURE__ */ s(F, { className: e.rdsAlertContentTitle, as: "span", children: A || N }),
|
|
56
|
+
/* @__PURE__ */ s(T, { as: "div", children: f }),
|
|
57
57
|
u
|
|
58
58
|
] }),
|
|
59
|
-
w && /* @__PURE__ */ s("div", { className: e.rdsAlertDismiss, children: /* @__PURE__ */ s("button", { "aria-label": "Avvis varsel", onClick: () => l(!0), children: /* @__PURE__ */ s(
|
|
59
|
+
w && /* @__PURE__ */ s("div", { className: e.rdsAlertDismiss, children: /* @__PURE__ */ s("button", { "aria-label": "Avvis varsel", onClick: () => l(!0), children: /* @__PURE__ */ s(b, {}) }) })
|
|
60
60
|
]
|
|
61
61
|
}
|
|
62
62
|
);
|
|
@@ -10,9 +10,7 @@ import { HTMLAttributes, ReactElement, ReactNode } from 'react';
|
|
|
10
10
|
* Dismiss icon can be hidden by passing `dismissible={false}`
|
|
11
11
|
*
|
|
12
12
|
* An optional link to details can be passed as `LinkToDetails={JsxElement}`
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
*/
|
|
13
|
+
*/
|
|
16
14
|
export declare const Alert: import('react').ForwardRefExoticComponent<Props & import('react').RefAttributes<HTMLDivElement>>;
|
|
17
15
|
export interface Props extends HTMLAttributes<HTMLDivElement> {
|
|
18
16
|
className?: string;
|
|
@@ -6,7 +6,7 @@ import { G as N } from "./components/spacing/GutterPadding-Bd7tSm3F.mjs";
|
|
|
6
6
|
import { N as Q } from "./components/notificationDot/NotificationDot-C2_j4FdL.mjs";
|
|
7
7
|
import { A as _ } from "./components/accordion/Accordion-rewqLwCV.mjs";
|
|
8
8
|
import { P as U } from "./components/panel/Panel-CPz2fLQW.mjs";
|
|
9
|
-
import { A as z } from "./components/alert/Alert-
|
|
9
|
+
import { A as z } from "./components/alert/Alert-BVUcZip2.mjs";
|
|
10
10
|
import { B as K, a as X } from "./components/breadcrumb/Breadcrumb-BJNLZ7iB.mjs";
|
|
11
11
|
import { P as Z } from "./components/progress/Progress-CjnegHvC.mjs";
|
|
12
12
|
import { L as re } from "./components/loader/Loader-gjL6yh1f.mjs";
|