@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.
Files changed (59) hide show
  1. package/dist/custom-elements.json +812 -0
  2. package/dist/index.js +3356 -349
  3. package/dist/index.js.map +4 -4
  4. package/dist/packages/affix/index.d.ts +1 -1
  5. package/dist/packages/affix/index.js +7 -6
  6. package/dist/packages/affix/index.js.map +3 -3
  7. package/dist/packages/alert/alert.test.d.ts +1 -0
  8. package/dist/packages/alert/index.d.ts +11 -16
  9. package/dist/packages/attention/index.d.ts +1 -1
  10. package/dist/packages/attention/index.js +5 -7
  11. package/dist/packages/attention/index.js.map +3 -3
  12. package/dist/packages/badge/index.d.ts +3 -2
  13. package/dist/packages/badge/index.js +1 -1
  14. package/dist/packages/badge/index.js.map +1 -1
  15. package/dist/packages/box/index.d.ts +5 -3
  16. package/dist/packages/box/index.js +1 -1
  17. package/dist/packages/box/index.js.map +1 -1
  18. package/dist/packages/breadcrumbs/index.d.ts +1 -1
  19. package/dist/packages/breadcrumbs/index.js +5 -7
  20. package/dist/packages/breadcrumbs/index.js.map +3 -3
  21. package/dist/packages/button/button.test.d.ts +1 -0
  22. package/dist/packages/button/index.d.ts +28 -52
  23. package/dist/packages/card/card.test.d.ts +1 -0
  24. package/dist/packages/card/index.d.ts +6 -15
  25. package/dist/packages/expandable/expandable.test.d.ts +1 -0
  26. package/dist/packages/expandable/index.d.ts +13 -51
  27. package/dist/packages/modal/index.d.ts +3 -3
  28. package/dist/packages/modal/index.js +302 -351
  29. package/dist/packages/modal/index.js.map +4 -4
  30. package/dist/packages/modal/modal-footer.d.ts +2 -2
  31. package/dist/packages/modal/modal-header.d.ts +12 -20
  32. package/dist/packages/modal/modal-main.d.ts +14 -24
  33. package/dist/packages/pill/index.d.ts +1 -1
  34. package/dist/packages/pill/index.js +6 -8
  35. package/dist/packages/pill/index.js.map +3 -3
  36. package/dist/packages/select/index.d.ts +12 -2
  37. package/dist/packages/select/index.js +306 -11
  38. package/dist/packages/select/index.js.map +4 -4
  39. package/dist/packages/styles.d.ts +2 -0
  40. package/dist/packages/textfield/index.d.ts +7 -7
  41. package/dist/packages/textfield/index.js +294 -5
  42. package/dist/packages/textfield/index.js.map +4 -4
  43. package/dist/packages/toast/index.d.ts +3 -0
  44. package/dist/packages/toast/index.js +8 -10
  45. package/dist/packages/toast/index.js.map +3 -3
  46. package/dist/packages/toast/toast-container.d.ts +3 -4
  47. package/dist/packages/toast/toast.d.ts +4 -6
  48. package/dist/packages/utils/expand-transition.d.ts +3 -2
  49. package/dist/packages/utils/index.d.ts +1 -1
  50. package/dist/packages/utils/unstyled-heading.d.ts +4 -3
  51. package/package.json +27 -15
  52. package/dist/packages/alert/index.js +0 -2466
  53. package/dist/packages/alert/index.js.map +0 -7
  54. package/dist/packages/button/index.js +0 -2183
  55. package/dist/packages/button/index.js.map +0 -7
  56. package/dist/packages/card/index.js +0 -2131
  57. package/dist/packages/card/index.js.map +0 -7
  58. package/dist/packages/expandable/index.js +0 -2346
  59. package/dist/packages/expandable/index.js.map +0 -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
- static properties: {
12
- title: {
13
- type: StringConstructor;
14
- };
15
- back: {
16
- type: BooleanConstructor;
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
- get titleEl(): any;
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
- static properties: {
10
- show: {
11
- type: BooleanConstructor;
12
- };
13
- "content-id": {
14
- type: StringConstructor;
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
- get dialogEl(): any;
32
- get dialogInnerEl(): any;
33
- get contentEl(): any;
34
- updated(changedProperties: any): void;
19
+ updated(changedProperties: Map<string, unknown>): 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: any[];
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-plugin-_hyhbgchrkasknlbocfng7geeci/node_modules/@warp-ds/icons/dist/elements/close-16.js
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.0_typescri_qfhfd5z2jpd4amxt2golzdalsi/node_modules/@lingui/core/dist/index.mjs
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.0_typescri_qfhfd5z2jpd4amxt2golzdalsi/node_modules/@lingui/core/dist/index.mjs
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-plugin-_hyhbgchrkasknlbocfng7geeci/node_modules/@warp-ds/icons/dist/elements/close-16.js
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.3.3_@t_sgrraibu65gdmqpe655kfrpl6a/node_modules/@warp-ds/css/component-classes/index.js
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",
@@ -2099,9 +2099,7 @@ import WarpElement from "@warp-ds/elements-core";
2099
2099
  var supportedLocales2 = ["en", "nb", "fi", "da", "sv"];
2100
2100
  var defaultLocale3 = "en";
2101
2101
  var getSupportedLocale2 = (usedLocale) => {
2102
- return supportedLocales2.find(
2103
- (locale) => usedLocale === locale || usedLocale.toLowerCase().includes(locale)
2104
- ) || defaultLocale3;
2102
+ return supportedLocales2.find((locale) => usedLocale === locale || usedLocale.toLowerCase().includes(locale)) || defaultLocale3;
2105
2103
  };
2106
2104
  function detectLocale2() {
2107
2105
  if (typeof window === "undefined") {