@navikt/ds-react 7.33.5 → 7.35.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/cjs/alert/Alert.js +2 -4
- package/cjs/alert/Alert.js.map +1 -1
- package/cjs/alert/base-alert/close-button/BaseAlertCloseButton.d.ts +17 -0
- package/cjs/alert/base-alert/close-button/BaseAlertCloseButton.js +72 -0
- package/cjs/alert/base-alert/close-button/BaseAlertCloseButton.js.map +1 -0
- package/cjs/alert/base-alert/content/BaseAlertContent.d.ts +20 -0
- package/cjs/alert/base-alert/content/BaseAlertContent.js +70 -0
- package/cjs/alert/base-alert/content/BaseAlertContent.js.map +1 -0
- package/cjs/alert/base-alert/header/BaseAlertHeader.d.ts +22 -0
- package/cjs/alert/base-alert/header/BaseAlertHeader.js +77 -0
- package/cjs/alert/base-alert/header/BaseAlertHeader.js.map +1 -0
- package/cjs/alert/base-alert/index.d.ts +1 -0
- package/cjs/alert/base-alert/index.js +39 -0
- package/cjs/alert/base-alert/index.js.map +1 -0
- package/cjs/alert/base-alert/namespace.d.ts +10 -0
- package/cjs/alert/base-alert/namespace.js +14 -0
- package/cjs/alert/base-alert/namespace.js.map +1 -0
- package/cjs/alert/base-alert/root/BaseAlertRoot.context.d.ts +12 -0
- package/cjs/alert/base-alert/root/BaseAlertRoot.context.js +11 -0
- package/cjs/alert/base-alert/root/BaseAlertRoot.context.js.map +1 -0
- package/cjs/alert/base-alert/root/BaseAlertRoot.d.ts +43 -0
- package/cjs/alert/base-alert/root/BaseAlertRoot.js +65 -0
- package/cjs/alert/base-alert/root/BaseAlertRoot.js.map +1 -0
- package/cjs/alert/base-alert/root/BaseAlertRoot.utils.d.ts +9 -0
- package/cjs/alert/base-alert/root/BaseAlertRoot.utils.js +48 -0
- package/cjs/alert/base-alert/root/BaseAlertRoot.utils.js.map +1 -0
- package/cjs/alert/base-alert/title/BaseAlertTitle.d.ts +24 -0
- package/cjs/alert/base-alert/title/BaseAlertTitle.js +77 -0
- package/cjs/alert/base-alert/title/BaseAlertTitle.js.map +1 -0
- package/cjs/alert/global-alert/close-button/GlobalAlertCloseButton.d.ts +17 -0
- package/cjs/alert/global-alert/close-button/GlobalAlertCloseButton.js +19 -0
- package/cjs/alert/global-alert/close-button/GlobalAlertCloseButton.js.map +1 -0
- package/cjs/alert/global-alert/content/GlobalAlertContent.d.ts +18 -0
- package/cjs/alert/global-alert/content/GlobalAlertContent.js +20 -0
- package/cjs/alert/global-alert/content/GlobalAlertContent.js.map +1 -0
- package/cjs/alert/global-alert/header/GlobalAlertHeader.d.ts +17 -0
- package/cjs/alert/global-alert/header/GlobalAlertHeader.js +54 -0
- package/cjs/alert/global-alert/header/GlobalAlertHeader.js.map +1 -0
- package/cjs/alert/global-alert/index.d.ts +2 -0
- package/cjs/alert/global-alert/index.js +11 -0
- package/cjs/alert/global-alert/index.js.map +1 -0
- package/cjs/alert/global-alert/root/GlobalAlertRoot.d.ts +81 -0
- package/cjs/alert/global-alert/root/GlobalAlertRoot.js +69 -0
- package/cjs/alert/global-alert/root/GlobalAlertRoot.js.map +1 -0
- package/cjs/alert/global-alert/title/GlobalAlertTitle.d.ts +17 -0
- package/cjs/alert/global-alert/title/GlobalAlertTitle.js +19 -0
- package/cjs/alert/global-alert/title/GlobalAlertTitle.js.map +1 -0
- package/cjs/alert/info-card/content/InfoCardContent.d.ts +18 -0
- package/cjs/alert/info-card/content/InfoCardContent.js +20 -0
- package/cjs/alert/info-card/content/InfoCardContent.js.map +1 -0
- package/cjs/alert/info-card/header/InfoCardHeader.d.ts +16 -0
- package/cjs/alert/info-card/header/InfoCardHeader.js +18 -0
- package/cjs/alert/info-card/header/InfoCardHeader.js.map +1 -0
- package/cjs/alert/info-card/index.d.ts +2 -0
- package/cjs/alert/info-card/index.js +10 -0
- package/cjs/alert/info-card/index.js.map +1 -0
- package/cjs/alert/info-card/root/InfoCardRoot.d.ts +76 -0
- package/cjs/alert/info-card/root/InfoCardRoot.js +78 -0
- package/cjs/alert/info-card/root/InfoCardRoot.js.map +1 -0
- package/cjs/alert/info-card/title/InfoCardTitle.d.ts +17 -0
- package/cjs/alert/info-card/title/InfoCardTitle.js +19 -0
- package/cjs/alert/info-card/title/InfoCardTitle.js.map +1 -0
- package/cjs/alert/local-alert/close-button/LocalAlertCloseButton.d.ts +17 -0
- package/cjs/alert/local-alert/close-button/LocalAlertCloseButton.js +19 -0
- package/cjs/alert/local-alert/close-button/LocalAlertCloseButton.js.map +1 -0
- package/cjs/alert/local-alert/content/LocalAlertContent.d.ts +18 -0
- package/cjs/alert/local-alert/content/LocalAlertContent.js +20 -0
- package/cjs/alert/local-alert/content/LocalAlertContent.js.map +1 -0
- package/cjs/alert/local-alert/header/LocalAlertHeader.d.ts +17 -0
- package/cjs/alert/local-alert/header/LocalAlertHeader.js +54 -0
- package/cjs/alert/local-alert/header/LocalAlertHeader.js.map +1 -0
- package/cjs/alert/local-alert/index.d.ts +2 -0
- package/cjs/alert/local-alert/index.js +11 -0
- package/cjs/alert/local-alert/index.js.map +1 -0
- package/cjs/alert/local-alert/root/LocalAlertRoot.d.ts +81 -0
- package/cjs/alert/local-alert/root/LocalAlertRoot.js +81 -0
- package/cjs/alert/local-alert/root/LocalAlertRoot.js.map +1 -0
- package/cjs/alert/local-alert/title/LocalAlertTitle.d.ts +17 -0
- package/cjs/alert/local-alert/title/LocalAlertTitle.js +19 -0
- package/cjs/alert/local-alert/title/LocalAlertTitle.js.map +1 -0
- package/cjs/date/Date.locale.d.ts +5 -0
- package/cjs/form/combobox/FilteredOptions/NoSearchHitsMessage.js +3 -1
- package/cjs/form/combobox/FilteredOptions/NoSearchHitsMessage.js.map +1 -1
- package/cjs/index.d.ts +4 -0
- package/cjs/index.js +9 -1
- package/cjs/index.js.map +1 -1
- package/cjs/inline-message/icon/InlineMessageIcon.d.ts +5 -0
- package/cjs/inline-message/icon/InlineMessageIcon.js +24 -0
- package/cjs/inline-message/icon/InlineMessageIcon.js.map +1 -0
- package/cjs/inline-message/index.d.ts +2 -0
- package/cjs/inline-message/index.js +7 -0
- package/cjs/inline-message/index.js.map +1 -0
- package/cjs/inline-message/root/InlineMessage.d.ts +36 -0
- package/cjs/inline-message/root/InlineMessage.js +91 -0
- package/cjs/inline-message/root/InlineMessage.js.map +1 -0
- package/cjs/timeline/period/ClickablePeriod.js +3 -15
- package/cjs/timeline/period/ClickablePeriod.js.map +1 -1
- package/cjs/timeline/pin/PinInternal.js +3 -15
- package/cjs/timeline/pin/PinInternal.js.map +1 -1
- package/cjs/util/i18n/locales/en.d.ts +2 -4
- package/cjs/util/i18n/locales/en.js +2 -4
- package/cjs/util/i18n/locales/en.js.map +1 -1
- package/cjs/util/i18n/locales/nb.d.ts +4 -6
- package/cjs/util/i18n/locales/nb.js +4 -6
- package/cjs/util/i18n/locales/nb.js.map +1 -1
- package/cjs/util/i18n/locales/nn.d.ts +2 -4
- package/cjs/util/i18n/locales/nn.js +2 -4
- package/cjs/util/i18n/locales/nn.js.map +1 -1
- package/esm/alert/Alert.js +2 -4
- package/esm/alert/Alert.js.map +1 -1
- package/esm/alert/base-alert/close-button/BaseAlertCloseButton.d.ts +17 -0
- package/esm/alert/base-alert/close-button/BaseAlertCloseButton.js +36 -0
- package/esm/alert/base-alert/close-button/BaseAlertCloseButton.js.map +1 -0
- package/esm/alert/base-alert/content/BaseAlertContent.d.ts +20 -0
- package/esm/alert/base-alert/content/BaseAlertContent.js +34 -0
- package/esm/alert/base-alert/content/BaseAlertContent.js.map +1 -0
- package/esm/alert/base-alert/header/BaseAlertHeader.d.ts +22 -0
- package/esm/alert/base-alert/header/BaseAlertHeader.js +41 -0
- package/esm/alert/base-alert/header/BaseAlertHeader.js.map +1 -0
- package/esm/alert/base-alert/index.d.ts +1 -0
- package/esm/alert/base-alert/index.js +3 -0
- package/esm/alert/base-alert/index.js.map +1 -0
- package/esm/alert/base-alert/namespace.d.ts +10 -0
- package/esm/alert/base-alert/namespace.js +6 -0
- package/esm/alert/base-alert/namespace.js.map +1 -0
- package/esm/alert/base-alert/root/BaseAlertRoot.context.d.ts +12 -0
- package/esm/alert/base-alert/root/BaseAlertRoot.context.js +7 -0
- package/esm/alert/base-alert/root/BaseAlertRoot.context.js.map +1 -0
- package/esm/alert/base-alert/root/BaseAlertRoot.d.ts +43 -0
- package/esm/alert/base-alert/root/BaseAlertRoot.js +29 -0
- package/esm/alert/base-alert/root/BaseAlertRoot.js.map +1 -0
- package/esm/alert/base-alert/root/BaseAlertRoot.utils.d.ts +9 -0
- package/esm/alert/base-alert/root/BaseAlertRoot.utils.js +42 -0
- package/esm/alert/base-alert/root/BaseAlertRoot.utils.js.map +1 -0
- package/esm/alert/base-alert/title/BaseAlertTitle.d.ts +24 -0
- package/esm/alert/base-alert/title/BaseAlertTitle.js +38 -0
- package/esm/alert/base-alert/title/BaseAlertTitle.js.map +1 -0
- package/esm/alert/global-alert/close-button/GlobalAlertCloseButton.d.ts +17 -0
- package/esm/alert/global-alert/close-button/GlobalAlertCloseButton.js +16 -0
- package/esm/alert/global-alert/close-button/GlobalAlertCloseButton.js.map +1 -0
- package/esm/alert/global-alert/content/GlobalAlertContent.d.ts +18 -0
- package/esm/alert/global-alert/content/GlobalAlertContent.js +17 -0
- package/esm/alert/global-alert/content/GlobalAlertContent.js.map +1 -0
- package/esm/alert/global-alert/header/GlobalAlertHeader.d.ts +17 -0
- package/esm/alert/global-alert/header/GlobalAlertHeader.js +18 -0
- package/esm/alert/global-alert/header/GlobalAlertHeader.js.map +1 -0
- package/esm/alert/global-alert/index.d.ts +2 -0
- package/esm/alert/global-alert/index.js +3 -0
- package/esm/alert/global-alert/index.js.map +1 -0
- package/esm/alert/global-alert/root/GlobalAlertRoot.d.ts +81 -0
- package/esm/alert/global-alert/root/GlobalAlertRoot.js +30 -0
- package/esm/alert/global-alert/root/GlobalAlertRoot.js.map +1 -0
- package/esm/alert/global-alert/title/GlobalAlertTitle.d.ts +17 -0
- package/esm/alert/global-alert/title/GlobalAlertTitle.js +16 -0
- package/esm/alert/global-alert/title/GlobalAlertTitle.js.map +1 -0
- package/esm/alert/info-card/content/InfoCardContent.d.ts +18 -0
- package/esm/alert/info-card/content/InfoCardContent.js +17 -0
- package/esm/alert/info-card/content/InfoCardContent.js.map +1 -0
- package/esm/alert/info-card/header/InfoCardHeader.d.ts +16 -0
- package/esm/alert/info-card/header/InfoCardHeader.js +15 -0
- package/esm/alert/info-card/header/InfoCardHeader.js.map +1 -0
- package/esm/alert/info-card/index.d.ts +2 -0
- package/esm/alert/info-card/index.js +3 -0
- package/esm/alert/info-card/index.js.map +1 -0
- package/esm/alert/info-card/root/InfoCardRoot.d.ts +76 -0
- package/esm/alert/info-card/root/InfoCardRoot.js +40 -0
- package/esm/alert/info-card/root/InfoCardRoot.js.map +1 -0
- package/esm/alert/info-card/title/InfoCardTitle.d.ts +17 -0
- package/esm/alert/info-card/title/InfoCardTitle.js +16 -0
- package/esm/alert/info-card/title/InfoCardTitle.js.map +1 -0
- package/esm/alert/local-alert/close-button/LocalAlertCloseButton.d.ts +17 -0
- package/esm/alert/local-alert/close-button/LocalAlertCloseButton.js +16 -0
- package/esm/alert/local-alert/close-button/LocalAlertCloseButton.js.map +1 -0
- package/esm/alert/local-alert/content/LocalAlertContent.d.ts +18 -0
- package/esm/alert/local-alert/content/LocalAlertContent.js +17 -0
- package/esm/alert/local-alert/content/LocalAlertContent.js.map +1 -0
- package/esm/alert/local-alert/header/LocalAlertHeader.d.ts +17 -0
- package/esm/alert/local-alert/header/LocalAlertHeader.js +18 -0
- package/esm/alert/local-alert/header/LocalAlertHeader.js.map +1 -0
- package/esm/alert/local-alert/index.d.ts +2 -0
- package/esm/alert/local-alert/index.js +3 -0
- package/esm/alert/local-alert/index.js.map +1 -0
- package/esm/alert/local-alert/root/LocalAlertRoot.d.ts +81 -0
- package/esm/alert/local-alert/root/LocalAlertRoot.js +42 -0
- package/esm/alert/local-alert/root/LocalAlertRoot.js.map +1 -0
- package/esm/alert/local-alert/title/LocalAlertTitle.d.ts +17 -0
- package/esm/alert/local-alert/title/LocalAlertTitle.js +16 -0
- package/esm/alert/local-alert/title/LocalAlertTitle.js.map +1 -0
- package/esm/date/Date.locale.d.ts +5 -0
- package/esm/form/combobox/FilteredOptions/NoSearchHitsMessage.js +3 -1
- package/esm/form/combobox/FilteredOptions/NoSearchHitsMessage.js.map +1 -1
- package/esm/index.d.ts +4 -0
- package/esm/index.js +4 -0
- package/esm/index.js.map +1 -1
- package/esm/inline-message/icon/InlineMessageIcon.d.ts +5 -0
- package/esm/inline-message/icon/InlineMessageIcon.js +19 -0
- package/esm/inline-message/icon/InlineMessageIcon.js.map +1 -0
- package/esm/inline-message/index.d.ts +2 -0
- package/esm/inline-message/index.js +3 -0
- package/esm/inline-message/index.js.map +1 -0
- package/esm/inline-message/root/InlineMessage.d.ts +36 -0
- package/esm/inline-message/root/InlineMessage.js +52 -0
- package/esm/inline-message/root/InlineMessage.js.map +1 -0
- package/esm/timeline/period/ClickablePeriod.js +6 -18
- package/esm/timeline/period/ClickablePeriod.js.map +1 -1
- package/esm/timeline/pin/PinInternal.js +6 -18
- package/esm/timeline/pin/PinInternal.js.map +1 -1
- package/esm/util/i18n/locales/en.d.ts +2 -4
- package/esm/util/i18n/locales/en.js +2 -4
- package/esm/util/i18n/locales/en.js.map +1 -1
- package/esm/util/i18n/locales/nb.d.ts +4 -6
- package/esm/util/i18n/locales/nb.js +4 -6
- package/esm/util/i18n/locales/nb.js.map +1 -1
- package/esm/util/i18n/locales/nn.d.ts +2 -4
- package/esm/util/i18n/locales/nn.js +2 -4
- package/esm/util/i18n/locales/nn.js.map +1 -1
- package/package.json +45 -4
- package/src/alert/Alert.tsx +2 -10
- package/src/alert/base-alert/close-button/BaseAlertCloseButton.tsx +44 -0
- package/src/alert/base-alert/content/BaseAlertContent.tsx +43 -0
- package/src/alert/base-alert/header/BaseAlertHeader.tsx +61 -0
- package/src/alert/base-alert/index.ts +2 -0
- package/src/alert/base-alert/namespace.ts +11 -0
- package/src/alert/base-alert/root/BaseAlertRoot.context.tsx +17 -0
- package/src/alert/base-alert/root/BaseAlertRoot.tsx +102 -0
- package/src/alert/base-alert/root/BaseAlertRoot.utils.tsx +67 -0
- package/src/alert/base-alert/title/BaseAlertTitle.tsx +63 -0
- package/src/alert/global-alert/close-button/GlobalAlertCloseButton.tsx +20 -0
- package/src/alert/global-alert/content/GlobalAlertContent.tsx +21 -0
- package/src/alert/global-alert/header/GlobalAlertHeader.tsx +24 -0
- package/src/alert/global-alert/index.ts +16 -0
- package/src/alert/global-alert/root/GlobalAlertRoot.tsx +132 -0
- package/src/alert/global-alert/title/GlobalAlertTitle.tsx +20 -0
- package/src/alert/info-card/content/InfoCardContent.tsx +21 -0
- package/src/alert/info-card/header/InfoCardHeader.tsx +19 -0
- package/src/alert/info-card/index.ts +14 -0
- package/src/alert/info-card/root/InfoCardRoot.tsx +123 -0
- package/src/alert/info-card/title/InfoCardTitle.tsx +20 -0
- package/src/alert/local-alert/close-button/LocalAlertCloseButton.tsx +20 -0
- package/src/alert/local-alert/content/LocalAlertContent.tsx +21 -0
- package/src/alert/local-alert/header/LocalAlertHeader.tsx +24 -0
- package/src/alert/local-alert/index.ts +16 -0
- package/src/alert/local-alert/root/LocalAlertRoot.tsx +133 -0
- package/src/alert/local-alert/title/LocalAlertTitle.tsx +20 -0
- package/src/form/combobox/FilteredOptions/NoSearchHitsMessage.tsx +4 -1
- package/src/index.ts +24 -0
- package/src/inline-message/icon/InlineMessageIcon.tsx +33 -0
- package/src/inline-message/index.ts +3 -0
- package/src/inline-message/root/InlineMessage.tsx +92 -0
- package/src/timeline/period/ClickablePeriod.tsx +5 -34
- package/src/timeline/pin/PinInternal.tsx +5 -28
- package/src/util/i18n/locales/en.ts +2 -5
- package/src/util/i18n/locales/nb.ts +2 -5
- package/src/util/i18n/locales/nn.ts +2 -5
- package/cjs/util/renderStoriesForChromatic.d.ts +0 -5
- package/cjs/util/renderStoriesForChromatic.js +0 -21
- package/cjs/util/renderStoriesForChromatic.js.map +0 -1
- package/esm/util/renderStoriesForChromatic.d.ts +0 -5
- package/esm/util/renderStoriesForChromatic.js +0 -15
- package/esm/util/renderStoriesForChromatic.js.map +0 -1
- package/src/util/renderStoriesForChromatic.tsx +0 -26
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
type BaseAlertCloseButtonProps = React.ButtonHTMLAttributes<HTMLButtonElement>;
|
|
3
|
+
/**
|
|
4
|
+
* @see 🏷️ {@link BaseAlertCloseButtonProps}
|
|
5
|
+
* @example
|
|
6
|
+
* ```jsx
|
|
7
|
+
* <BaseAlert>
|
|
8
|
+
* <BaseAlert.Header>
|
|
9
|
+
* <BaseAlert.Title>Info title</BaseAlert.Title>
|
|
10
|
+
* <BaseAlert.CloseButton onClick={...} />
|
|
11
|
+
* </BaseAlert.Header>
|
|
12
|
+
* </BaseAlert>
|
|
13
|
+
* ```
|
|
14
|
+
*/
|
|
15
|
+
declare const BaseAlertCloseButton: React.ForwardRefExoticComponent<BaseAlertCloseButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
16
|
+
export { BaseAlertCloseButton };
|
|
17
|
+
export type { BaseAlertCloseButtonProps };
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
+
var t = {};
|
|
3
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
+
t[p] = s[p];
|
|
5
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
+
t[p[i]] = s[p[i]];
|
|
9
|
+
}
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
12
|
+
import React, { forwardRef } from "react";
|
|
13
|
+
import { XMarkIcon } from "@navikt/aksel-icons";
|
|
14
|
+
import { Button } from "../../../button/index.js";
|
|
15
|
+
import { useRenameCSS } from "../../../theme/Theme.js";
|
|
16
|
+
import { useI18n } from "../../../util/i18n/i18n.hooks.js";
|
|
17
|
+
/**
|
|
18
|
+
* @see 🏷️ {@link BaseAlertCloseButtonProps}
|
|
19
|
+
* @example
|
|
20
|
+
* ```jsx
|
|
21
|
+
* <BaseAlert>
|
|
22
|
+
* <BaseAlert.Header>
|
|
23
|
+
* <BaseAlert.Title>Info title</BaseAlert.Title>
|
|
24
|
+
* <BaseAlert.CloseButton onClick={...} />
|
|
25
|
+
* </BaseAlert.Header>
|
|
26
|
+
* </BaseAlert>
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
const BaseAlertCloseButton = forwardRef((_a, forwardedRef) => {
|
|
30
|
+
var { className } = _a, restProps = __rest(_a, ["className"]);
|
|
31
|
+
const { cn } = useRenameCSS();
|
|
32
|
+
const translate = useI18n("global");
|
|
33
|
+
return (React.createElement(Button, Object.assign({ ref: forwardedRef, type: "button" }, restProps, { "data-color": "neutral", variant: "tertiary-neutral", className: cn(className, "navds-base-alert__close-button"), size: "small", title: translate("close"), icon: React.createElement(XMarkIcon, { "aria-hidden": true }) })));
|
|
34
|
+
});
|
|
35
|
+
export { BaseAlertCloseButton };
|
|
36
|
+
//# sourceMappingURL=BaseAlertCloseButton.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BaseAlertCloseButton.js","sourceRoot":"","sources":["../../../../src/alert/base-alert/close-button/BaseAlertCloseButton.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AAIxD;;;;;;;;;;;GAWG;AACH,MAAM,oBAAoB,GAAG,UAAU,CAGrC,CAAC,EAAsD,EAAE,YAAY,EAAE,EAAE;QAAxE,EAAE,SAAS,OAA2C,EAAtC,SAAS,cAAzB,aAA2B,CAAF;IAC1B,MAAM,EAAE,EAAE,EAAE,GAAG,YAAY,EAAE,CAAC;IAC9B,MAAM,SAAS,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC;IAEpC,OAAO,CACL,oBAAC,MAAM,kBACL,GAAG,EAAE,YAAY,EACjB,IAAI,EAAC,QAAQ,IACT,SAAS,kBACF,SAAS,EACpB,OAAO,EAAC,kBAAkB,EAC1B,SAAS,EAAE,EAAE,CAAC,SAAS,EAAE,gCAAgC,CAAC,EAC1D,IAAI,EAAC,OAAO,EACZ,KAAK,EAAE,SAAS,CAAC,OAAO,CAAC,EACzB,IAAI,EAAE,oBAAC,SAAS,0BAAe,IAC/B,CACH,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,OAAO,EAAE,oBAAoB,EAAE,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface BaseAlertContentProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* @see 🏷️ {@link BaseAlertContentProps}
|
|
7
|
+
* @example
|
|
8
|
+
* ```jsx
|
|
9
|
+
* <BaseAlert>
|
|
10
|
+
* <BaseAlert.Header>
|
|
11
|
+
* <BaseAlert.Title>Info title</BaseAlert.Title>
|
|
12
|
+
* </BaseAlert.Header>
|
|
13
|
+
*
|
|
14
|
+
* <BaseAlert.Content>Content</BaseAlert.Content>
|
|
15
|
+
* </BaseAlert>
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
declare const BaseAlertContent: React.ForwardRefExoticComponent<BaseAlertContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
19
|
+
export { BaseAlertContent };
|
|
20
|
+
export type { BaseAlertContentProps };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
+
var t = {};
|
|
3
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
+
t[p] = s[p];
|
|
5
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
+
t[p[i]] = s[p[i]];
|
|
9
|
+
}
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
12
|
+
import React, { forwardRef } from "react";
|
|
13
|
+
import { useRenameCSS, useThemeInternal } from "../../../theme/Theme.js";
|
|
14
|
+
/**
|
|
15
|
+
* @see 🏷️ {@link BaseAlertContentProps}
|
|
16
|
+
* @example
|
|
17
|
+
* ```jsx
|
|
18
|
+
* <BaseAlert>
|
|
19
|
+
* <BaseAlert.Header>
|
|
20
|
+
* <BaseAlert.Title>Info title</BaseAlert.Title>
|
|
21
|
+
* </BaseAlert.Header>
|
|
22
|
+
*
|
|
23
|
+
* <BaseAlert.Content>Content</BaseAlert.Content>
|
|
24
|
+
* </BaseAlert>
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
27
|
+
const BaseAlertContent = forwardRef((_a, forwardedRef) => {
|
|
28
|
+
var { children, className } = _a, restProps = __rest(_a, ["children", "className"]);
|
|
29
|
+
const { cn } = useRenameCSS();
|
|
30
|
+
const themeContext = useThemeInternal(false);
|
|
31
|
+
return (React.createElement("div", Object.assign({ ref: forwardedRef, "data-color": themeContext === null || themeContext === void 0 ? void 0 : themeContext.color }, restProps, { className: cn(className, "navds-base-alert__content") }), children));
|
|
32
|
+
});
|
|
33
|
+
export { BaseAlertContent };
|
|
34
|
+
//# sourceMappingURL=BaseAlertContent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BaseAlertContent.js","sourceRoot":"","sources":["../../../../src/alert/base-alert/content/BaseAlertContent.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAMtE;;;;;;;;;;;;GAYG;AACH,MAAM,gBAAgB,GAAG,UAAU,CACjC,CACE,EAA4D,EAC5D,YAAY,EACZ,EAAE;QAFF,EAAE,QAAQ,EAAE,SAAS,OAAuC,EAAlC,SAAS,cAAnC,yBAAqC,CAAF;IAGnC,MAAM,EAAE,EAAE,EAAE,GAAG,YAAY,EAAE,CAAC;IAC9B,MAAM,YAAY,GAAG,gBAAgB,CAAC,KAAK,CAAC,CAAC;IAE7C,OAAO,CACL,2CACE,GAAG,EAAE,YAAY,gBACL,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,KAAK,IAC3B,SAAS,IACb,SAAS,EAAE,EAAE,CAAC,SAAS,EAAE,2BAA2B,CAAC,KAEpD,QAAQ,CACL,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,OAAO,EAAE,gBAAgB,EAAE,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface BaseAlertHeaderProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
/**
|
|
5
|
+
* Icon to display in the header.
|
|
6
|
+
*/
|
|
7
|
+
icon?: React.ReactNode;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* @see 🏷️ {@link BaseAlertHeaderProps}
|
|
11
|
+
* @example
|
|
12
|
+
* ```jsx
|
|
13
|
+
* <BaseAlert>
|
|
14
|
+
* <BaseAlert.Header icon={<InformationSquareIcon aria-hidden />}>
|
|
15
|
+
* <BaseAlert.Title>Info title</BaseAlert.Title>
|
|
16
|
+
* </BaseAlert.Header>
|
|
17
|
+
* </BaseAlert>
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
declare const BaseAlertHeader: React.ForwardRefExoticComponent<BaseAlertHeaderProps & React.RefAttributes<HTMLDivElement>>;
|
|
21
|
+
export { BaseAlertHeader };
|
|
22
|
+
export type { BaseAlertHeaderProps };
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
+
var t = {};
|
|
3
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
+
t[p] = s[p];
|
|
5
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
+
t[p[i]] = s[p[i]];
|
|
9
|
+
}
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
12
|
+
import React, { forwardRef } from "react";
|
|
13
|
+
import { useRenameCSS } from "../../../theme/Theme.js";
|
|
14
|
+
import { BodyShort } from "../../../typography/index.js";
|
|
15
|
+
import { useI18n } from "../../../util/i18n/i18n.hooks.js";
|
|
16
|
+
import { useBaseAlert } from "../root/BaseAlertRoot.context.js";
|
|
17
|
+
import { BaseAlertStatusIcon } from "../root/BaseAlertRoot.utils.js";
|
|
18
|
+
/**
|
|
19
|
+
* @see 🏷️ {@link BaseAlertHeaderProps}
|
|
20
|
+
* @example
|
|
21
|
+
* ```jsx
|
|
22
|
+
* <BaseAlert>
|
|
23
|
+
* <BaseAlert.Header icon={<InformationSquareIcon aria-hidden />}>
|
|
24
|
+
* <BaseAlert.Title>Info title</BaseAlert.Title>
|
|
25
|
+
* </BaseAlert.Header>
|
|
26
|
+
* </BaseAlert>
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
const BaseAlertHeader = forwardRef((_a, forwardedRef) => {
|
|
30
|
+
var { children, className, icon } = _a, restProps = __rest(_a, ["children", "className", "icon"]);
|
|
31
|
+
const { cn } = useRenameCSS();
|
|
32
|
+
const { status, color, statusId } = useBaseAlert();
|
|
33
|
+
const translate = useI18n("global");
|
|
34
|
+
const headerIcon = icon !== null && icon !== void 0 ? icon : (status ? React.createElement(BaseAlertStatusIcon, { status: status }) : null);
|
|
35
|
+
return (React.createElement("div", Object.assign({ ref: forwardedRef }, restProps, { "data-color": color, className: cn(className, "navds-base-alert__header") }),
|
|
36
|
+
headerIcon && (React.createElement("div", { className: cn("navds-base-alert__icon") }, headerIcon)),
|
|
37
|
+
status && (React.createElement(BodyShort, { id: statusId, "aria-hidden": true, visuallyHidden: true }, `${translate(status)}: `)),
|
|
38
|
+
children));
|
|
39
|
+
});
|
|
40
|
+
export { BaseAlertHeader };
|
|
41
|
+
//# sourceMappingURL=BaseAlertHeader.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BaseAlertHeader.js","sourceRoot":"","sources":["../../../../src/alert/base-alert/header/BaseAlertHeader.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAUlE;;;;;;;;;;GAUG;AACH,MAAM,eAAe,GAAG,UAAU,CAChC,CACE,EAAiE,EACjE,YAAY,EACZ,EAAE;QAFF,EAAE,QAAQ,EAAE,SAAS,EAAE,IAAI,OAAsC,EAAjC,SAAS,cAAzC,iCAA2C,CAAF;IAGzC,MAAM,EAAE,EAAE,EAAE,GAAG,YAAY,EAAE,CAAC;IAC9B,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,YAAY,EAAE,CAAC;IACnD,MAAM,SAAS,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC;IAEpC,MAAM,UAAU,GACd,IAAI,aAAJ,IAAI,cAAJ,IAAI,GAAI,CAAC,MAAM,CAAC,CAAC,CAAC,oBAAC,mBAAmB,IAAC,MAAM,EAAE,MAAM,GAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;IAEpE,OAAO,CACL,2CACE,GAAG,EAAE,YAAY,IACb,SAAS,kBACD,KAAK,EACjB,SAAS,EAAE,EAAE,CAAC,SAAS,EAAE,0BAA0B,CAAC;QAEnD,UAAU,IAAI,CACb,6BAAK,SAAS,EAAE,EAAE,CAAC,wBAAwB,CAAC,IAAG,UAAU,CAAO,CACjE;QACA,MAAM,IAAI,CACT,oBAAC,SAAS,IAAC,EAAE,EAAE,QAAQ,uBAAc,cAAc,UAChD,GAAG,SAAS,CAAC,MAAM,CAAC,IAAI,CACf,CACb;QACA,QAAQ,CACL,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,OAAO,EAAE,eAAe,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * as BaseAlert from "./namespace.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/alert/base-alert/index.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;AACb,OAAO,KAAK,SAAS,MAAM,aAAa,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export { BaseAlertCloseButton as CloseButton } from "./close-button/BaseAlertCloseButton.js";
|
|
2
|
+
export { BaseAlertContent as Content } from "./content/BaseAlertContent.js";
|
|
3
|
+
export { BaseAlertTitle as Title } from "./title/BaseAlertTitle.js";
|
|
4
|
+
export { BaseAlertHeader as Header } from "./header/BaseAlertHeader.js";
|
|
5
|
+
export { BaseAlert as Root } from "./root/BaseAlertRoot.js";
|
|
6
|
+
export type { BaseAlertCloseButtonProps as CloseButtonProps } from "./close-button/BaseAlertCloseButton.js";
|
|
7
|
+
export type { BaseAlertContentProps as ContentProps } from "./content/BaseAlertContent.js";
|
|
8
|
+
export type { BaseAlertTitleProps as TitleProps } from "./title/BaseAlertTitle.js";
|
|
9
|
+
export type { BaseAlertHeaderProps as HeaderProps } from "./header/BaseAlertHeader.js";
|
|
10
|
+
export type { BaseAlertProps as RootProps } from "./root/BaseAlertRoot.js";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { BaseAlertCloseButton as CloseButton } from "./close-button/BaseAlertCloseButton.js";
|
|
2
|
+
export { BaseAlertContent as Content } from "./content/BaseAlertContent.js";
|
|
3
|
+
export { BaseAlertTitle as Title } from "./title/BaseAlertTitle.js";
|
|
4
|
+
export { BaseAlertHeader as Header } from "./header/BaseAlertHeader.js";
|
|
5
|
+
export { BaseAlert as Root } from "./root/BaseAlertRoot.js";
|
|
6
|
+
//# sourceMappingURL=namespace.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"namespace.js","sourceRoot":"","sources":["../../../src/alert/base-alert/namespace.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,IAAI,WAAW,EAAE,MAAM,qCAAqC,CAAC;AAC1F,OAAO,EAAE,gBAAgB,IAAI,OAAO,EAAE,MAAM,4BAA4B,CAAC;AACzE,OAAO,EAAE,cAAc,IAAI,KAAK,EAAE,MAAM,wBAAwB,CAAC;AACjE,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,0BAA0B,CAAC;AACrE,OAAO,EAAE,SAAS,IAAI,IAAI,EAAE,MAAM,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { AkselColor } from "../../../types/index.js";
|
|
2
|
+
type BaseAlertContextProps = {
|
|
3
|
+
size: "medium" | "small";
|
|
4
|
+
status?: "announcement" | "success" | "warning" | "error";
|
|
5
|
+
color: AkselColor | undefined;
|
|
6
|
+
statusId: string;
|
|
7
|
+
};
|
|
8
|
+
declare const BaseAlertProvider: import("react").ForwardRefExoticComponent<BaseAlertContextProps & {
|
|
9
|
+
children: React.ReactNode;
|
|
10
|
+
} & import("react").RefAttributes<unknown>>, useBaseAlert: <S extends boolean = true>(strict?: S) => S extends true ? BaseAlertContextProps : BaseAlertContextProps | undefined;
|
|
11
|
+
export { BaseAlertProvider, useBaseAlert };
|
|
12
|
+
export type { BaseAlertContextProps };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { createContext } from "../../../util/create-context.js";
|
|
2
|
+
const [BaseAlertProvider, useBaseAlert] = createContext({
|
|
3
|
+
name: "BaseAlert",
|
|
4
|
+
errorMessage: "useBaseAlert must be used within a BaseAlertProvider",
|
|
5
|
+
});
|
|
6
|
+
export { BaseAlertProvider, useBaseAlert };
|
|
7
|
+
//# sourceMappingURL=BaseAlertRoot.context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BaseAlertRoot.context.js","sourceRoot":"","sources":["../../../../src/alert/base-alert/root/BaseAlertRoot.context.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAS7D,MAAM,CAAC,iBAAiB,EAAE,YAAY,CAAC,GAAG,aAAa,CAAwB;IAC7E,IAAI,EAAE,WAAW;IACjB,YAAY,EAAE,sDAAsD;CACrE,CAAC,CAAC;AAEH,OAAO,EAAE,iBAAiB,EAAE,YAAY,EAAE,CAAC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { AkselColor } from "../../../types/index.js";
|
|
3
|
+
import { type BaseAlertContextProps } from "./BaseAlertRoot.context.js";
|
|
4
|
+
interface BaseAlertProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
5
|
+
/**
|
|
6
|
+
* Component content.
|
|
7
|
+
*/
|
|
8
|
+
children: React.ReactNode;
|
|
9
|
+
/**
|
|
10
|
+
* Changes the size.
|
|
11
|
+
* @default "medium"
|
|
12
|
+
*/
|
|
13
|
+
size?: BaseAlertContextProps["size"];
|
|
14
|
+
/**
|
|
15
|
+
* Overrides color
|
|
16
|
+
*/
|
|
17
|
+
"data-color"?: AkselColor;
|
|
18
|
+
/**
|
|
19
|
+
* Intensity of the alert
|
|
20
|
+
*/
|
|
21
|
+
type: "moderate" | "strong";
|
|
22
|
+
/**
|
|
23
|
+
* Centers content and removes border-radius
|
|
24
|
+
* @default false
|
|
25
|
+
*/
|
|
26
|
+
global?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Type of alert
|
|
29
|
+
*/
|
|
30
|
+
status?: BaseAlertContextProps["status"];
|
|
31
|
+
/**
|
|
32
|
+
* Changes the HTML element used for the root element.
|
|
33
|
+
*
|
|
34
|
+
* **Testing**: When using `axe-core` for accessibility testing, `section` might warn about unique landmarks if you have multiple Alerts on page with the same status.
|
|
35
|
+
* In those cases, consider using `div` as the root element, or adding unique `aria-label` or `aria-labelledby` props.
|
|
36
|
+
* @see [📝 Landmarks unique](https://dequeuniversity.com/rules/axe/4.6/landmark-unique)
|
|
37
|
+
* @default "section"
|
|
38
|
+
*/
|
|
39
|
+
as?: "section" | "div";
|
|
40
|
+
}
|
|
41
|
+
declare const BaseAlert: React.ForwardRefExoticComponent<BaseAlertProps & React.RefAttributes<HTMLDivElement>>;
|
|
42
|
+
export { BaseAlert };
|
|
43
|
+
export type { BaseAlertProps };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
+
var t = {};
|
|
3
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
+
t[p] = s[p];
|
|
5
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
+
t[p[i]] = s[p[i]];
|
|
9
|
+
}
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
12
|
+
import React, { forwardRef } from "react";
|
|
13
|
+
import { useRenameCSS } from "../../../theme/Theme.js";
|
|
14
|
+
import { useId } from "../../../util/index.js";
|
|
15
|
+
import { useI18n } from "../../../util/i18n/i18n.hooks.js";
|
|
16
|
+
import { BaseAlertProvider, } from "./BaseAlertRoot.context.js";
|
|
17
|
+
import { baseAlertStatusToDataColor } from "./BaseAlertRoot.utils.js";
|
|
18
|
+
const BaseAlert = forwardRef((_a, forwardedRef) => {
|
|
19
|
+
var { children, className, size = "medium", "data-color": dataColor, type, global = false, status, as: Component = "section", "aria-label": ariaLabel, role } = _a, restProps = __rest(_a, ["children", "className", "size", "data-color", "type", "global", "status", "as", "aria-label", "role"]);
|
|
20
|
+
const { cn } = useRenameCSS();
|
|
21
|
+
const statusId = useId();
|
|
22
|
+
const translate = useI18n("global");
|
|
23
|
+
const alertColor = status ? baseAlertStatusToDataColor(status) : dataColor;
|
|
24
|
+
return (React.createElement(BaseAlertProvider, { size: size, status: status, color: alertColor, statusId: statusId },
|
|
25
|
+
React.createElement(Component, Object.assign({ "aria-label": ariaLabel !== null && ariaLabel !== void 0 ? ariaLabel : (!status || Component === "div" ? undefined : translate(status)), ref: forwardedRef }, restProps, { className: cn(className, "navds-base-alert"), "data-size": size, "data-color": alertColor, "data-variant": type, "data-global": global }),
|
|
26
|
+
React.createElement("div", { role: role }, children))));
|
|
27
|
+
});
|
|
28
|
+
export { BaseAlert };
|
|
29
|
+
//# sourceMappingURL=BaseAlertRoot.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BaseAlertRoot.js","sourceRoot":"","sources":["../../../../src/alert/base-alert/root/BaseAlertRoot.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAEpD,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AACtC,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AACxD,OAAO,EAEL,iBAAiB,GAClB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,0BAA0B,EAAE,MAAM,uBAAuB,CAAC;AAwCnE,MAAM,SAAS,GAAG,UAAU,CAC1B,CACE,EAYiB,EACjB,YAAY,EACZ,EAAE;QAdF,EACE,QAAQ,EACR,SAAS,EACT,IAAI,GAAG,QAAQ,EACf,YAAY,EAAE,SAAS,EACvB,IAAI,EACJ,MAAM,GAAG,KAAK,EACd,MAAM,EACN,EAAE,EAAE,SAAS,GAAG,SAAS,EACzB,YAAY,EAAE,SAAS,EACvB,IAAI,OAEW,EADZ,SAAS,cAXd,uGAYC,CADa;IAId,MAAM,EAAE,EAAE,EAAE,GAAG,YAAY,EAAE,CAAC;IAE9B,MAAM,QAAQ,GAAG,KAAK,EAAE,CAAC;IACzB,MAAM,SAAS,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC;IAEpC,MAAM,UAAU,GAAG,MAAM,CAAC,CAAC,CAAC,0BAA0B,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;IAE3E,OAAO,CACL,oBAAC,iBAAiB,IAChB,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,UAAU,EACjB,QAAQ,EAAE,QAAQ;QAElB,oBAAC,SAAS,gCAEN,SAAS,aAAT,SAAS,cAAT,SAAS,GACT,CAAC,CAAC,MAAM,IAAI,SAAS,KAAK,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,EAElE,GAAG,EAAE,YAAY,IACb,SAAS,IACb,SAAS,EAAE,EAAE,CAAC,SAAS,EAAE,kBAAkB,CAAC,eACjC,IAAI,gBACH,UAAU,kBACR,IAAI,iBACL,MAAM;YAEnB,6BAAK,IAAI,EAAE,IAAI,IAAG,QAAQ,CAAO,CACvB,CACM,CACrB,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,OAAO,EAAE,SAAS,EAAE,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { AkselColor } from "../../../types/index.js";
|
|
3
|
+
import type { BaseAlertContextProps } from "../root/BaseAlertRoot.context.js";
|
|
4
|
+
declare function baseAlertStatusToDataColor(status: BaseAlertContextProps["status"]): AkselColor;
|
|
5
|
+
declare function BaseAlertStatusIcon({ status, fill, }: {
|
|
6
|
+
status: BaseAlertContextProps["status"];
|
|
7
|
+
fill?: boolean;
|
|
8
|
+
}): React.JSX.Element | null;
|
|
9
|
+
export { BaseAlertStatusIcon, baseAlertStatusToDataColor };
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { CheckmarkCircleFillIcon, CheckmarkCircleIcon, ExclamationmarkTriangleFillIcon, ExclamationmarkTriangleIcon, MegaphoneSpeakingFillIcon, MegaphoneSpeakingIcon, XMarkOctagonFillIcon, XMarkOctagonIcon, } from "@navikt/aksel-icons";
|
|
3
|
+
function baseAlertStatusToDataColor(status) {
|
|
4
|
+
switch (status) {
|
|
5
|
+
case "announcement":
|
|
6
|
+
return "neutral";
|
|
7
|
+
case "success":
|
|
8
|
+
return "success";
|
|
9
|
+
case "warning":
|
|
10
|
+
return "warning";
|
|
11
|
+
case "error":
|
|
12
|
+
return "danger";
|
|
13
|
+
}
|
|
14
|
+
return "neutral";
|
|
15
|
+
}
|
|
16
|
+
const STATUS_ICONS = {
|
|
17
|
+
announcement: {
|
|
18
|
+
fill: MegaphoneSpeakingFillIcon,
|
|
19
|
+
outline: MegaphoneSpeakingIcon,
|
|
20
|
+
},
|
|
21
|
+
success: {
|
|
22
|
+
fill: CheckmarkCircleFillIcon,
|
|
23
|
+
outline: CheckmarkCircleIcon,
|
|
24
|
+
},
|
|
25
|
+
warning: {
|
|
26
|
+
fill: ExclamationmarkTriangleFillIcon,
|
|
27
|
+
outline: ExclamationmarkTriangleIcon,
|
|
28
|
+
},
|
|
29
|
+
error: {
|
|
30
|
+
fill: XMarkOctagonFillIcon,
|
|
31
|
+
outline: XMarkOctagonIcon,
|
|
32
|
+
},
|
|
33
|
+
};
|
|
34
|
+
function BaseAlertStatusIcon({ status, fill = true, }) {
|
|
35
|
+
if (!status) {
|
|
36
|
+
return null;
|
|
37
|
+
}
|
|
38
|
+
const Icon = fill ? STATUS_ICONS[status].fill : STATUS_ICONS[status].outline;
|
|
39
|
+
return React.createElement(Icon, { "aria-hidden": true });
|
|
40
|
+
}
|
|
41
|
+
export { BaseAlertStatusIcon, baseAlertStatusToDataColor };
|
|
42
|
+
//# sourceMappingURL=BaseAlertRoot.utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BaseAlertRoot.utils.js","sourceRoot":"","sources":["../../../../src/alert/base-alert/root/BaseAlertRoot.utils.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EACL,uBAAuB,EACvB,mBAAmB,EACnB,+BAA+B,EAC/B,2BAA2B,EAC3B,yBAAyB,EACzB,qBAAqB,EACrB,oBAAoB,EACpB,gBAAgB,GACjB,MAAM,qBAAqB,CAAC;AAI7B,SAAS,0BAA0B,CACjC,MAAuC;IAEvC,QAAQ,MAAM,EAAE,CAAC;QACf,KAAK,cAAc;YACjB,OAAO,SAAS,CAAC;QACnB,KAAK,SAAS;YACZ,OAAO,SAAS,CAAC;QACnB,KAAK,SAAS;YACZ,OAAO,SAAS,CAAC;QACnB,KAAK,OAAO;YACV,OAAO,QAAQ,CAAC;IACpB,CAAC;IAED,OAAO,SAAS,CAAC;AACnB,CAAC;AAED,MAAM,YAAY,GAAG;IACnB,YAAY,EAAE;QACZ,IAAI,EAAE,yBAAyB;QAC/B,OAAO,EAAE,qBAAqB;KAC/B;IACD,OAAO,EAAE;QACP,IAAI,EAAE,uBAAuB;QAC7B,OAAO,EAAE,mBAAmB;KAC7B;IACD,OAAO,EAAE;QACP,IAAI,EAAE,+BAA+B;QACrC,OAAO,EAAE,2BAA2B;KACrC;IACD,KAAK,EAAE;QACL,IAAI,EAAE,oBAAoB;QAC1B,OAAO,EAAE,gBAAgB;KAC1B;CACO,CAAC;AAEX,SAAS,mBAAmB,CAAC,EAC3B,MAAM,EACN,IAAI,GAAG,IAAI,GAIZ;IACC,IAAI,CAAC,MAAM,EAAE,CAAC;QACZ,OAAO,IAAI,CAAC;IACd,CAAC;IAED,MAAM,IAAI,GAAG,IAAI,CAAC,CAAC,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC;IAE7E,OAAO,oBAAC,IAAI,0BAAe,CAAC;AAC9B,CAAC;AAED,OAAO,EAAE,mBAAmB,EAAE,0BAA0B,EAAE,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface BaseAlertTitleProps extends React.HTMLAttributes<HTMLHeadingElement> {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
/**
|
|
5
|
+
* Changes the HTML element used for the title.
|
|
6
|
+
* @default "h2"
|
|
7
|
+
*/
|
|
8
|
+
as?: "h2" | "h3" | "h4" | "h5" | "h6" | "div";
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Title component for BaseAlert. Remember to use correct heading-level with the `as` prop.
|
|
12
|
+
* @see 🏷️ {@link BaseAlertTitleProps}
|
|
13
|
+
* @example
|
|
14
|
+
* ```jsx
|
|
15
|
+
* <BaseAlert>
|
|
16
|
+
* <BaseAlert.Header>
|
|
17
|
+
* <BaseAlert.Title as="h2">Info title</BaseAlert.Title>
|
|
18
|
+
* </BaseAlert.Header>
|
|
19
|
+
* </BaseAlert>
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
declare const BaseAlertTitle: React.ForwardRefExoticComponent<BaseAlertTitleProps & React.RefAttributes<HTMLHeadingElement>>;
|
|
23
|
+
export { BaseAlertTitle };
|
|
24
|
+
export type { BaseAlertTitleProps };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
+
var t = {};
|
|
3
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
+
t[p] = s[p];
|
|
5
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
+
t[p[i]] = s[p[i]];
|
|
9
|
+
}
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
12
|
+
import cl from "clsx";
|
|
13
|
+
import React, { forwardRef } from "react";
|
|
14
|
+
import { useRenameCSS } from "../../../theme/Theme.js";
|
|
15
|
+
import { BodyShort } from "../../../typography/index.js";
|
|
16
|
+
import { useId } from "../../../util/index.js";
|
|
17
|
+
import { useBaseAlert } from "../root/BaseAlertRoot.context.js";
|
|
18
|
+
/**
|
|
19
|
+
* Title component for BaseAlert. Remember to use correct heading-level with the `as` prop.
|
|
20
|
+
* @see 🏷️ {@link BaseAlertTitleProps}
|
|
21
|
+
* @example
|
|
22
|
+
* ```jsx
|
|
23
|
+
* <BaseAlert>
|
|
24
|
+
* <BaseAlert.Header>
|
|
25
|
+
* <BaseAlert.Title as="h2">Info title</BaseAlert.Title>
|
|
26
|
+
* </BaseAlert.Header>
|
|
27
|
+
* </BaseAlert>
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
30
|
+
const BaseAlertTitle = forwardRef((_a, forwardedRef) => {
|
|
31
|
+
var { children, className, as = "h2", id: idProp } = _a, restProps = __rest(_a, ["children", "className", "as", "id"]);
|
|
32
|
+
const { cn } = useRenameCSS();
|
|
33
|
+
const { size, statusId } = useBaseAlert();
|
|
34
|
+
const titleId = useId(idProp);
|
|
35
|
+
return (React.createElement(BodyShort, Object.assign({ ref: forwardedRef }, restProps, { as: as, size: size === "medium" ? "large" : "medium", weight: "semibold", className: cn(className, "navds-base-alert__title"), id: titleId, "aria-labelledby": cl(statusId, titleId) }), children));
|
|
36
|
+
});
|
|
37
|
+
export { BaseAlertTitle };
|
|
38
|
+
//# sourceMappingURL=BaseAlertTitle.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BaseAlertTitle.js","sourceRoot":"","sources":["../../../../src/alert/base-alert/title/BaseAlertTitle.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,EAAE,MAAM,MAAM,CAAC;AACtB,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AACtC,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAW7D;;;;;;;;;;;GAWG;AACH,MAAM,cAAc,GAAG,UAAU,CAC/B,CACE,EAMsB,EACtB,YAAY,EACZ,EAAE;QARF,EACE,QAAQ,EACR,SAAS,EACT,EAAE,GAAG,IAAI,EACT,EAAE,EAAE,MAAM,OAEU,EADjB,SAAS,cALd,qCAMC,CADa;IAId,MAAM,EAAE,EAAE,EAAE,GAAG,YAAY,EAAE,CAAC;IAC9B,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,YAAY,EAAE,CAAC;IAE1C,MAAM,OAAO,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC;IAE9B,OAAO,CACL,oBAAC,SAAS,kBACR,GAAG,EAAE,YAAY,IACb,SAAS,IACb,EAAE,EAAE,EAAE,EACN,IAAI,EAAE,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,QAAQ,EAC5C,MAAM,EAAC,UAAU,EACjB,SAAS,EAAE,EAAE,CAAC,SAAS,EAAE,yBAAyB,CAAC,EACnD,EAAE,EAAE,OAAO,qBACM,EAAE,CAAC,QAAQ,EAAE,OAAO,CAAC,KAErC,QAAQ,CACC,CACb,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,OAAO,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { BaseAlert } from "../../base-alert/index.js";
|
|
2
|
+
type GlobalAlertCloseButtonProps = BaseAlert.CloseButtonProps;
|
|
3
|
+
/**
|
|
4
|
+
* @see 🏷️ {@link GlobalAlertCloseButtonProps}
|
|
5
|
+
* @example
|
|
6
|
+
* ```jsx
|
|
7
|
+
* <GlobalAlert>
|
|
8
|
+
* <GlobalAlert.Header>
|
|
9
|
+
* <GlobalAlert.Title>Info title</GlobalAlert.Title>
|
|
10
|
+
* <GlobalAlert.CloseButton onClick={() => alert("Closed!")} />
|
|
11
|
+
* </GlobalAlert.Header>
|
|
12
|
+
* </GlobalAlert>
|
|
13
|
+
* ```
|
|
14
|
+
*/
|
|
15
|
+
declare const GlobalAlertCloseButton: import("react").ForwardRefExoticComponent<BaseAlert.CloseButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
16
|
+
export { GlobalAlertCloseButton };
|
|
17
|
+
export type { GlobalAlertCloseButtonProps };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { BaseAlert } from "../../base-alert/index.js";
|
|
2
|
+
/**
|
|
3
|
+
* @see 🏷️ {@link GlobalAlertCloseButtonProps}
|
|
4
|
+
* @example
|
|
5
|
+
* ```jsx
|
|
6
|
+
* <GlobalAlert>
|
|
7
|
+
* <GlobalAlert.Header>
|
|
8
|
+
* <GlobalAlert.Title>Info title</GlobalAlert.Title>
|
|
9
|
+
* <GlobalAlert.CloseButton onClick={() => alert("Closed!")} />
|
|
10
|
+
* </GlobalAlert.Header>
|
|
11
|
+
* </GlobalAlert>
|
|
12
|
+
* ```
|
|
13
|
+
*/
|
|
14
|
+
const GlobalAlertCloseButton = BaseAlert.CloseButton;
|
|
15
|
+
export { GlobalAlertCloseButton };
|
|
16
|
+
//# sourceMappingURL=GlobalAlertCloseButton.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GlobalAlertCloseButton.js","sourceRoot":"","sources":["../../../../src/alert/global-alert/close-button/GlobalAlertCloseButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAI7C;;;;;;;;;;;GAWG;AACH,MAAM,sBAAsB,GAAG,SAAS,CAAC,WAAW,CAAC;AAErD,OAAO,EAAE,sBAAsB,EAAE,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { BaseAlert } from "../../base-alert/index.js";
|
|
2
|
+
type GlobalAlertContentProps = BaseAlert.ContentProps;
|
|
3
|
+
/**
|
|
4
|
+
* @see 🏷️ {@link GlobalAlertContentProps}
|
|
5
|
+
* @example
|
|
6
|
+
* ```jsx
|
|
7
|
+
* <GlobalAlert>
|
|
8
|
+
* <GlobalAlert.Header>
|
|
9
|
+
* <GlobalAlert.Title>Info title</GlobalAlert.Title>
|
|
10
|
+
* </GlobalAlert.Header>
|
|
11
|
+
*
|
|
12
|
+
* <GlobalAlert.Content>Content</GlobalAlert.Content>
|
|
13
|
+
* </GlobalAlert>
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
16
|
+
declare const GlobalAlertContent: import("react").ForwardRefExoticComponent<BaseAlert.ContentProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
17
|
+
export { GlobalAlertContent };
|
|
18
|
+
export type { GlobalAlertContentProps };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { BaseAlert } from "../../base-alert/index.js";
|
|
2
|
+
/**
|
|
3
|
+
* @see 🏷️ {@link GlobalAlertContentProps}
|
|
4
|
+
* @example
|
|
5
|
+
* ```jsx
|
|
6
|
+
* <GlobalAlert>
|
|
7
|
+
* <GlobalAlert.Header>
|
|
8
|
+
* <GlobalAlert.Title>Info title</GlobalAlert.Title>
|
|
9
|
+
* </GlobalAlert.Header>
|
|
10
|
+
*
|
|
11
|
+
* <GlobalAlert.Content>Content</GlobalAlert.Content>
|
|
12
|
+
* </GlobalAlert>
|
|
13
|
+
* ```
|
|
14
|
+
*/
|
|
15
|
+
const GlobalAlertContent = BaseAlert.Content;
|
|
16
|
+
export { GlobalAlertContent };
|
|
17
|
+
//# sourceMappingURL=GlobalAlertContent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GlobalAlertContent.js","sourceRoot":"","sources":["../../../../src/alert/global-alert/content/GlobalAlertContent.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAI7C;;;;;;;;;;;;GAYG;AACH,MAAM,kBAAkB,GAAG,SAAS,CAAC,OAAO,CAAC;AAE7C,OAAO,EAAE,kBAAkB,EAAE,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { BaseAlert } from "../../base-alert/index.js";
|
|
3
|
+
type GlobalAlertHeaderProps = Omit<BaseAlert.HeaderProps, "icon">;
|
|
4
|
+
/**
|
|
5
|
+
* @see 🏷️ {@link GlobalAlertHeaderProps}
|
|
6
|
+
* @example
|
|
7
|
+
* ```jsx
|
|
8
|
+
* <GlobalAlert status="success">
|
|
9
|
+
* <GlobalAlert.Header>
|
|
10
|
+
* <GlobalAlert.Title>Info title</GlobalAlert.Title>
|
|
11
|
+
* </GlobalAlert.Header>
|
|
12
|
+
* </GlobalAlert>
|
|
13
|
+
* ```
|
|
14
|
+
*/
|
|
15
|
+
declare const GlobalAlertHeader: React.ForwardRefExoticComponent<GlobalAlertHeaderProps & React.RefAttributes<HTMLDivElement>>;
|
|
16
|
+
export { GlobalAlertHeader };
|
|
17
|
+
export type { GlobalAlertHeaderProps };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React, { forwardRef } from "react";
|
|
2
|
+
import { BaseAlert } from "../../base-alert/index.js";
|
|
3
|
+
/**
|
|
4
|
+
* @see 🏷️ {@link GlobalAlertHeaderProps}
|
|
5
|
+
* @example
|
|
6
|
+
* ```jsx
|
|
7
|
+
* <GlobalAlert status="success">
|
|
8
|
+
* <GlobalAlert.Header>
|
|
9
|
+
* <GlobalAlert.Title>Info title</GlobalAlert.Title>
|
|
10
|
+
* </GlobalAlert.Header>
|
|
11
|
+
* </GlobalAlert>
|
|
12
|
+
* ```
|
|
13
|
+
*/
|
|
14
|
+
const GlobalAlertHeader = forwardRef((props, forwardedRef) => {
|
|
15
|
+
return React.createElement(BaseAlert.Header, Object.assign({ ref: forwardedRef }, props));
|
|
16
|
+
});
|
|
17
|
+
export { GlobalAlertHeader };
|
|
18
|
+
//# sourceMappingURL=GlobalAlertHeader.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GlobalAlertHeader.js","sourceRoot":"","sources":["../../../../src/alert/global-alert/header/GlobalAlertHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAI7C;;;;;;;;;;GAUG;AACH,MAAM,iBAAiB,GAAG,UAAU,CAClC,CAAC,KAAK,EAAE,YAAY,EAAE,EAAE;IACtB,OAAO,oBAAC,SAAS,CAAC,MAAM,kBAAC,GAAG,EAAE,YAAY,IAAM,KAAK,EAAI,CAAC;AAC5D,CAAC,CACF,CAAC;AAEF,OAAO,EAAE,iBAAiB,EAAE,CAAC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { GlobalAlert, GlobalAlertHeader, GlobalAlertTitle, GlobalAlertContent, GlobalAlertCloseButton, } from "./root/GlobalAlertRoot.js";
|
|
2
|
+
export type { GlobalAlertProps, GlobalAlertHeaderProps, GlobalAlertTitleProps, GlobalAlertContentProps, GlobalAlertCloseButtonProps, } from "./root/GlobalAlertRoot.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/alert/global-alert/index.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;AACb,OAAO,EACL,WAAW,EACX,iBAAiB,EACjB,gBAAgB,EAChB,kBAAkB,EAClB,sBAAsB,GACvB,MAAM,wBAAwB,CAAC"}
|