@warp-ds/elements 2.2.0-next.2 → 2.2.0-next.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.
- package/dist/index.js +3426 -444
- package/dist/index.js.map +4 -4
- package/dist/packages/affix/index.d.ts +1 -1
- package/dist/packages/affix/index.js +6 -6
- package/dist/packages/affix/index.js.map +2 -2
- package/dist/packages/alert/index.d.ts +3 -4
- package/dist/packages/alert/index.js +8 -8
- package/dist/packages/alert/index.js.map +1 -1
- package/dist/packages/attention/index.d.ts +1 -1
- package/dist/packages/attention/index.js +4 -4
- package/dist/packages/attention/index.js.map +2 -2
- 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 +3 -3
- package/dist/packages/breadcrumbs/index.js.map +2 -2
- package/dist/packages/button/button.test.d.ts +1 -0
- package/dist/packages/button/index.d.ts +28 -52
- package/dist/packages/button/index.js +302 -6
- package/dist/packages/button/index.js.map +4 -4
- package/dist/packages/card/index.d.ts +3 -2
- package/dist/packages/card/index.js +3 -3
- package/dist/packages/card/index.js.map +1 -1
- package/dist/packages/expandable/index.d.ts +1 -1
- package/dist/packages/expandable/index.js +6 -6
- package/dist/packages/expandable/index.js.map +2 -2
- package/dist/packages/modal/index.d.ts +3 -3
- package/dist/packages/modal/index.js +299 -348
- 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 +5 -5
- package/dist/packages/pill/index.js.map +2 -2
- package/dist/packages/select/index.d.ts +12 -2
- package/dist/packages/select/index.js +304 -7
- package/dist/packages/select/index.js.map +4 -4
- package/dist/packages/styles.d.ts +2 -0
- package/dist/packages/textfield/index.d.ts +5 -5
- package/dist/packages/textfield/index.js +289 -3
- package/dist/packages/textfield/index.js.map +4 -4
- package/dist/packages/toast/index.d.ts +3 -0
- package/dist/packages/toast/index.js +7 -7
- package/dist/packages/toast/index.js.map +1 -1
- 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 +10 -7
|
@@ -7,8 +7,8 @@ declare const ModalFooter_base: {
|
|
|
7
7
|
};
|
|
8
8
|
[x: string]: any;
|
|
9
9
|
};
|
|
10
|
-
export class ModalFooter extends ModalFooter_base {
|
|
11
|
-
static styles: any[];
|
|
10
|
+
export declare class ModalFooter extends ModalFooter_base {
|
|
12
11
|
render(): import("lit").TemplateResult<1>;
|
|
12
|
+
static styles: import("lit").CSSResult;
|
|
13
13
|
}
|
|
14
14
|
export {};
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import { nothing, PropertyValues } from 'lit';
|
|
2
|
+
import '@warp-ds/icons/elements/arrow-left-16';
|
|
3
|
+
import '@warp-ds/icons/elements/close-16';
|
|
1
4
|
declare const ModalHeader_base: {
|
|
2
5
|
new (): {
|
|
3
6
|
[x: string]: any;
|
|
@@ -7,31 +10,20 @@ declare const ModalHeader_base: {
|
|
|
7
10
|
};
|
|
8
11
|
[x: string]: any;
|
|
9
12
|
};
|
|
10
|
-
export class ModalHeader extends ModalHeader_base {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
};
|
|
18
|
-
"no-close": {
|
|
19
|
-
type: BooleanConstructor;
|
|
20
|
-
};
|
|
21
|
-
_hasTopContent: {
|
|
22
|
-
state: boolean;
|
|
23
|
-
};
|
|
24
|
-
};
|
|
25
|
-
static styles: any[];
|
|
26
|
-
_hasTopContent: boolean;
|
|
13
|
+
export declare class ModalHeader extends ModalHeader_base {
|
|
14
|
+
title: string;
|
|
15
|
+
back: boolean;
|
|
16
|
+
noClose: boolean;
|
|
17
|
+
private _hasTopContent;
|
|
18
|
+
titleEl: HTMLElement;
|
|
19
|
+
constructor();
|
|
27
20
|
render(): import("lit").TemplateResult<1>;
|
|
28
|
-
|
|
29
|
-
willUpdate(changedProperties: any): Promise<void>;
|
|
21
|
+
willUpdate(changedProperties: PropertyValues<this>): Promise<void>;
|
|
30
22
|
get titleClasses(): string;
|
|
31
23
|
get backButton(): typeof nothing | import("lit").TemplateResult<1>;
|
|
32
24
|
get closeButton(): typeof nothing | import("lit").TemplateResult<1>;
|
|
33
25
|
emitBack(): void;
|
|
34
26
|
handleTopSlotChange(slotEvent: any): void;
|
|
27
|
+
static styles: import("lit").CSSResult;
|
|
35
28
|
}
|
|
36
|
-
import { nothing } from 'lit';
|
|
37
29
|
export {};
|
|
@@ -5,33 +5,23 @@ declare const ModalMain_base: {
|
|
|
5
5
|
};
|
|
6
6
|
[x: string]: any;
|
|
7
7
|
};
|
|
8
|
-
export class ModalMain extends ModalMain_base {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
"ignore-backdrop-clicks": {
|
|
17
|
-
type: BooleanConstructor;
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
|
-
static styles: any[];
|
|
21
|
-
/** @param {KeyboardEvent} evt */
|
|
22
|
-
interceptEscape(evt: KeyboardEvent): void;
|
|
23
|
-
/** @param {MouseEvent} evt */
|
|
24
|
-
closeOnBackdropClick(evt: MouseEvent): void;
|
|
25
|
-
/** @param {Event} evt */
|
|
26
|
-
eventPreventer(evt: Event): void;
|
|
27
|
-
modifyBorderRadius(): void;
|
|
8
|
+
export declare class ModalMain extends ModalMain_base {
|
|
9
|
+
show: boolean;
|
|
10
|
+
contentId: string;
|
|
11
|
+
ignoreBackdropClicks: boolean;
|
|
12
|
+
dialogEl: HTMLDialogElement;
|
|
13
|
+
dialogInnerEl: HTMLElement;
|
|
14
|
+
contentEl: HTMLElement;
|
|
15
|
+
constructor();
|
|
28
16
|
open(): Promise<void>;
|
|
29
17
|
close(): void;
|
|
30
18
|
render(): import("lit").TemplateResult<1>;
|
|
31
|
-
|
|
32
|
-
get dialogInnerEl(): any;
|
|
33
|
-
get contentEl(): any;
|
|
34
|
-
updated(changedProperties: any): void;
|
|
19
|
+
updated(changedProperties: Map<string, any>): void;
|
|
35
20
|
handleListeners(verb?: string): void;
|
|
21
|
+
eventPreventer(evt: Event): void;
|
|
22
|
+
closeOnBackdropClick(evt: MouseEvent): void;
|
|
23
|
+
interceptEscape(evt: KeyboardEvent): void;
|
|
24
|
+
modifyBorderRadius(): void;
|
|
25
|
+
static styles: import("lit").CSSResult[];
|
|
36
26
|
}
|
|
37
27
|
export {};
|
|
@@ -6,7 +6,7 @@ declare const WarpPill_base: {
|
|
|
6
6
|
createProperty(name: any, options: any): void;
|
|
7
7
|
};
|
|
8
8
|
export class WarpPill extends WarpPill_base {
|
|
9
|
-
static styles:
|
|
9
|
+
static styles: (import("lit").CSSResult | CSSStyleSheet | import("lit").CSSResultArray)[][];
|
|
10
10
|
static properties: {
|
|
11
11
|
canClose: {
|
|
12
12
|
type: BooleanConstructor;
|
|
@@ -1013,11 +1013,11 @@ var require_parser = __commonJS({
|
|
|
1013
1013
|
}
|
|
1014
1014
|
});
|
|
1015
1015
|
|
|
1016
|
-
// node_modules/.pnpm/@warp-ds+icons@2.5.0_@lingui+core@5.2.0_@lingui+babel-plugin-lingui-macro@5.2.0_babel-
|
|
1016
|
+
// 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
|
|
1017
1017
|
import { LitElement } from "lit";
|
|
1018
1018
|
import { unsafeStatic, html } from "lit/static-html.js";
|
|
1019
1019
|
|
|
1020
|
-
// node_modules/.pnpm/@lingui+core@5.2.0_@lingui+babel-plugin-lingui-macro@5.2.0_babel-plugin-macros@3.1.
|
|
1020
|
+
// 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
|
|
1021
1021
|
var import_unraw = __toESM(require_dist(), 1);
|
|
1022
1022
|
|
|
1023
1023
|
// node_modules/.pnpm/@lingui+message-utils@5.2.0/node_modules/@lingui/message-utils/dist/compileMessage.mjs
|
|
@@ -1339,7 +1339,7 @@ Message: ${message}`);
|
|
|
1339
1339
|
}
|
|
1340
1340
|
}
|
|
1341
1341
|
|
|
1342
|
-
// node_modules/.pnpm/@lingui+core@5.2.0_@lingui+babel-plugin-lingui-macro@5.2.0_babel-plugin-macros@3.1.
|
|
1342
|
+
// 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
|
|
1343
1343
|
var isString = (s) => typeof s === "string";
|
|
1344
1344
|
var isFunction = (f) => typeof f === "function";
|
|
1345
1345
|
var cache = /* @__PURE__ */ new Map();
|
|
@@ -1747,7 +1747,7 @@ function setupI18n(params = {}) {
|
|
|
1747
1747
|
}
|
|
1748
1748
|
var i18n = setupI18n();
|
|
1749
1749
|
|
|
1750
|
-
// node_modules/.pnpm/@warp-ds+icons@2.5.0_@lingui+core@5.2.0_@lingui+babel-plugin-lingui-macro@5.2.0_babel-
|
|
1750
|
+
// 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
|
|
1751
1751
|
var messages = JSON.parse('{"icon.title.close":["Kryss"]}');
|
|
1752
1752
|
var messages2 = JSON.parse('{"icon.title.close":["Cross"]}');
|
|
1753
1753
|
var messages3 = JSON.parse('{"icon.title.close":["Rasti"]}');
|
|
@@ -1852,7 +1852,7 @@ var r = function() {
|
|
|
1852
1852
|
}, []).join(" ");
|
|
1853
1853
|
};
|
|
1854
1854
|
|
|
1855
|
-
// 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.
|
|
1855
|
+
// 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
|
|
1856
1856
|
var pill = {
|
|
1857
1857
|
wrapper: "flex items-center",
|
|
1858
1858
|
button: "inline-flex items-center focusable text-xs transition-all",
|