@warp-ds/elements 2.2.0-next.2 → 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 +3356 -349
- package/dist/index.js.map +4 -4
- package/dist/packages/affix/index.d.ts +1 -1
- package/dist/packages/affix/index.js +7 -6
- package/dist/packages/affix/index.js.map +3 -3
- package/dist/packages/alert/alert.test.d.ts +1 -0
- package/dist/packages/alert/index.d.ts +11 -16
- package/dist/packages/attention/index.d.ts +1 -1
- package/dist/packages/attention/index.js +5 -7
- package/dist/packages/attention/index.js.map +3 -3
- package/dist/packages/badge/index.d.ts +3 -2
- package/dist/packages/badge/index.js +1 -1
- package/dist/packages/badge/index.js.map +1 -1
- package/dist/packages/box/index.d.ts +5 -3
- package/dist/packages/box/index.js +1 -1
- package/dist/packages/box/index.js.map +1 -1
- package/dist/packages/breadcrumbs/index.d.ts +1 -1
- package/dist/packages/breadcrumbs/index.js +5 -7
- package/dist/packages/breadcrumbs/index.js.map +3 -3
- package/dist/packages/button/button.test.d.ts +1 -0
- package/dist/packages/button/index.d.ts +28 -52
- package/dist/packages/card/card.test.d.ts +1 -0
- package/dist/packages/card/index.d.ts +6 -15
- package/dist/packages/expandable/expandable.test.d.ts +1 -0
- package/dist/packages/expandable/index.d.ts +13 -51
- package/dist/packages/modal/index.d.ts +3 -3
- package/dist/packages/modal/index.js +302 -351
- package/dist/packages/modal/index.js.map +4 -4
- package/dist/packages/modal/modal-footer.d.ts +2 -2
- package/dist/packages/modal/modal-header.d.ts +12 -20
- package/dist/packages/modal/modal-main.d.ts +14 -24
- package/dist/packages/pill/index.d.ts +1 -1
- package/dist/packages/pill/index.js +6 -8
- package/dist/packages/pill/index.js.map +3 -3
- package/dist/packages/select/index.d.ts +12 -2
- package/dist/packages/select/index.js +306 -11
- package/dist/packages/select/index.js.map +4 -4
- package/dist/packages/styles.d.ts +2 -0
- package/dist/packages/textfield/index.d.ts +7 -7
- package/dist/packages/textfield/index.js +294 -5
- package/dist/packages/textfield/index.js.map +4 -4
- package/dist/packages/toast/index.d.ts +3 -0
- package/dist/packages/toast/index.js +8 -10
- package/dist/packages/toast/index.js.map +3 -3
- package/dist/packages/toast/toast-container.d.ts +3 -4
- package/dist/packages/toast/toast.d.ts +4 -6
- package/dist/packages/utils/expand-transition.d.ts +3 -2
- package/dist/packages/utils/index.d.ts +1 -1
- package/dist/packages/utils/unstyled-heading.d.ts +4 -3
- package/package.json +27 -15
- package/dist/packages/alert/index.js +0 -2466
- package/dist/packages/alert/index.js.map +0 -7
- package/dist/packages/button/index.js +0 -2183
- 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,24 +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: any[];
|
|
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;
|
|
18
10
|
role: string;
|
|
11
|
+
constructor();
|
|
19
12
|
connectedCallback(): void;
|
|
20
13
|
get _wrapperClasses(): string;
|
|
21
14
|
get _iconClasses(): string;
|
|
15
|
+
static styles: import("lit").CSSResult[];
|
|
22
16
|
get _icon(): import("lit").TemplateResult<1> | "";
|
|
23
17
|
render(): import("lit").TemplateResult<1>;
|
|
24
18
|
}
|
|
19
|
+
export { WarpAlert };
|
|
@@ -60,7 +60,7 @@ export class WarpAttention extends WarpAttention_base {
|
|
|
60
60
|
reflect: boolean;
|
|
61
61
|
};
|
|
62
62
|
};
|
|
63
|
-
static styles:
|
|
63
|
+
static styles: (import("lit").CSSResult | (import("lit").CSSResult | CSSStyleSheet | import("lit").CSSResultArray)[])[];
|
|
64
64
|
handleDone(): void;
|
|
65
65
|
show: boolean;
|
|
66
66
|
placement: string;
|
|
@@ -1029,7 +1029,7 @@ var r = function() {
|
|
|
1029
1029
|
}, []).join(" ");
|
|
1030
1030
|
};
|
|
1031
1031
|
|
|
1032
|
-
// node_modules/.pnpm/@lingui+core@5.2.0_@lingui+babel-plugin-lingui-macro@5.2.0_babel-plugin-macros@3.1.
|
|
1032
|
+
// node_modules/.pnpm/@lingui+core@5.2.0_@lingui+babel-plugin-lingui-macro@5.2.0_babel-plugin-macros@3.1.0_ty_33a2537ce57a59324989ce8020998d0e/node_modules/@lingui/core/dist/index.mjs
|
|
1033
1033
|
var import_unraw = __toESM(require_dist(), 1);
|
|
1034
1034
|
|
|
1035
1035
|
// node_modules/.pnpm/@lingui+message-utils@5.2.0/node_modules/@lingui/message-utils/dist/compileMessage.mjs
|
|
@@ -1351,7 +1351,7 @@ Message: ${message}`);
|
|
|
1351
1351
|
}
|
|
1352
1352
|
}
|
|
1353
1353
|
|
|
1354
|
-
// node_modules/.pnpm/@lingui+core@5.2.0_@lingui+babel-plugin-lingui-macro@5.2.0_babel-plugin-macros@3.1.
|
|
1354
|
+
// node_modules/.pnpm/@lingui+core@5.2.0_@lingui+babel-plugin-lingui-macro@5.2.0_babel-plugin-macros@3.1.0_ty_33a2537ce57a59324989ce8020998d0e/node_modules/@lingui/core/dist/index.mjs
|
|
1355
1355
|
var isString = (s) => typeof s === "string";
|
|
1356
1356
|
var isFunction = (f) => typeof f === "function";
|
|
1357
1357
|
var cache = /* @__PURE__ */ new Map();
|
|
@@ -3281,7 +3281,7 @@ async function useRecompute(state) {
|
|
|
3281
3281
|
return state;
|
|
3282
3282
|
}
|
|
3283
3283
|
|
|
3284
|
-
// node_modules/.pnpm/@warp-ds+css@2.1.1_@warp-ds+uno@2.1.0_unocss@0.62.0_postcss@8.5.1_rollup@4.32.1_vite@5.
|
|
3284
|
+
// node_modules/.pnpm/@warp-ds+css@2.1.1_@warp-ds+uno@2.1.0_unocss@0.62.0_postcss@8.5.1_rollup@4.32.1_vite@5._43dfacbc4a7d78ad84ef685a7085e344/node_modules/@warp-ds/css/component-classes/index.js
|
|
3285
3285
|
var buttonDefaultStyling = "font-bold focusable justify-center transition-colors ease-in-out";
|
|
3286
3286
|
var buttonColors = {
|
|
3287
3287
|
primary: "s-text-inverted bg-[--w-color-button-primary-background] hover:bg-[--w-color-button-primary-background-hover] active:bg-[--w-color-button-primary-background-active]",
|
|
@@ -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") {
|
|
@@ -3584,7 +3582,7 @@ var messages4 = JSON.parse('{"attention.aria.callout":["Gr\xF8nn taleboble som i
|
|
|
3584
3582
|
// packages/attention/locales/sv/messages.mjs
|
|
3585
3583
|
var messages5 = JSON.parse('{"attention.aria.callout":["En gr\xF6n pratbubbla som introducerar n\xE5got nytt"],"attention.aria.close":["St\xE4ng"],"attention.aria.highlight":["En pratbubbla med viktig information"],"attention.aria.pointingDown":["pekar ned"],"attention.aria.pointingLeft":["pekar v\xE4nster"],"attention.aria.pointingRight":["pekar h\xF6ger"],"attention.aria.pointingUp":["pekar upp"],"attention.aria.popover":["En vit pratbubbla som ger ytterligare information"],"attention.aria.tooltip":["En svart pratbubbla som ger kompletterande information"]}');
|
|
3586
3584
|
|
|
3587
|
-
// node_modules/.pnpm/@warp-ds+icons@2.5.0_@lingui+core@5.2.0_@lingui+babel-plugin-lingui-macro@5.2.0_babel-
|
|
3585
|
+
// node_modules/.pnpm/@warp-ds+icons@2.5.0_@lingui+core@5.2.0_@lingui+babel-plugin-lingui-macro@5.2.0_babel-p_f73b1d3c5bd9121d6f30248535f1f172/node_modules/@warp-ds/icons/dist/elements/close-16.js
|
|
3588
3586
|
import { LitElement } from "lit";
|
|
3589
3587
|
import { unsafeStatic, html } from "lit/static-html.js";
|
|
3590
3588
|
var messages6 = JSON.parse('{"icon.title.close":["Kryss"]}');
|