@warp-ds/elements 2.2.0-next.3 → 2.2.0-next.4
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/custom-elements.json +812 -0
- package/dist/index.js +3125 -3100
- package/dist/index.js.map +4 -4
- package/dist/packages/affix/index.js +1 -0
- package/dist/packages/affix/index.js.map +2 -2
- package/dist/packages/alert/alert.test.d.ts +1 -0
- package/dist/packages/alert/index.d.ts +13 -17
- package/dist/packages/attention/index.js +1 -3
- package/dist/packages/attention/index.js.map +2 -2
- package/dist/packages/breadcrumbs/index.js +2 -4
- package/dist/packages/breadcrumbs/index.js.map +2 -2
- package/dist/packages/button/button.test.d.ts +1 -1
- package/dist/packages/button/index.d.ts +3 -3
- package/dist/packages/card/card.test.d.ts +1 -0
- package/dist/packages/card/index.d.ts +6 -16
- package/dist/packages/expandable/expandable.test.d.ts +1 -0
- package/dist/packages/expandable/index.d.ts +13 -51
- package/dist/packages/modal/index.js +129 -129
- package/dist/packages/modal/index.js.map +2 -2
- package/dist/packages/modal/modal-main.d.ts +1 -1
- package/dist/packages/pill/index.js +1 -3
- package/dist/packages/pill/index.js.map +2 -2
- package/dist/packages/select/index.js +2 -4
- package/dist/packages/select/index.js.map +2 -2
- package/dist/packages/textfield/index.d.ts +2 -2
- package/dist/packages/textfield/index.js +5 -2
- package/dist/packages/textfield/index.js.map +2 -2
- package/dist/packages/toast/index.js +1 -3
- package/dist/packages/toast/index.js.map +2 -2
- package/package.json +21 -12
- package/dist/packages/alert/index.js +0 -2466
- package/dist/packages/alert/index.js.map +0 -7
- package/dist/packages/button/index.js +0 -2479
- package/dist/packages/button/index.js.map +0 -7
- package/dist/packages/card/index.js +0 -2131
- package/dist/packages/card/index.js.map +0 -7
- package/dist/packages/expandable/index.js +0 -2346
- package/dist/packages/expandable/index.js.map +0 -7
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './index.js';
|
|
@@ -1,23 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
reflect: boolean;
|
|
10
|
-
};
|
|
11
|
-
role: {
|
|
12
|
-
type: StringConstructor;
|
|
13
|
-
reflect: boolean;
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
static styles: (import("lit").CSSResult | (import("lit").CSSResult | CSSStyleSheet | import("lit").CSSResultArray)[])[];
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
import '@warp-ds/icons/elements/info-16';
|
|
3
|
+
import '@warp-ds/icons/elements/warning-16';
|
|
4
|
+
import '@warp-ds/icons/elements/error-16';
|
|
5
|
+
import '@warp-ds/icons/elements/success-16';
|
|
6
|
+
type AlertVariants = 'negative' | 'positive' | 'warning' | 'info';
|
|
7
|
+
declare class WarpAlert extends LitElement {
|
|
8
|
+
variant: AlertVariants;
|
|
17
9
|
show: boolean;
|
|
10
|
+
role: string;
|
|
11
|
+
constructor();
|
|
12
|
+
connectedCallback(): void;
|
|
18
13
|
get _wrapperClasses(): string;
|
|
19
14
|
get _iconClasses(): string;
|
|
15
|
+
static styles: import("lit").CSSResult[];
|
|
20
16
|
get _icon(): import("lit").TemplateResult<1> | "";
|
|
21
17
|
render(): import("lit").TemplateResult<1>;
|
|
22
18
|
}
|
|
23
|
-
|
|
19
|
+
export { WarpAlert };
|
|
@@ -3518,9 +3518,7 @@ import { ifDefined } from "lit/directives/if-defined.js";
|
|
|
3518
3518
|
var supportedLocales = ["en", "nb", "fi", "da", "sv"];
|
|
3519
3519
|
var defaultLocale2 = "en";
|
|
3520
3520
|
var getSupportedLocale = (usedLocale) => {
|
|
3521
|
-
return supportedLocales.find(
|
|
3522
|
-
(locale) => usedLocale === locale || usedLocale.toLowerCase().includes(locale)
|
|
3523
|
-
) || defaultLocale2;
|
|
3521
|
+
return supportedLocales.find((locale) => usedLocale === locale || usedLocale.toLowerCase().includes(locale)) || defaultLocale2;
|
|
3524
3522
|
};
|
|
3525
3523
|
function detectLocale() {
|
|
3526
3524
|
if (typeof window === "undefined") {
|