@folkehelseinstituttet/designsystem 0.2.2 → 0.3.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.
Files changed (166) hide show
  1. package/README.md +0 -7
  2. package/fhi-button.js +4 -1
  3. package/fhi-button.js.map +1 -1
  4. package/fhi-icon-arrow-down-left.js +38 -0
  5. package/fhi-icon-arrow-down-left.js.map +1 -0
  6. package/fhi-icon-arrow-down-right.js +38 -0
  7. package/fhi-icon-arrow-down-right.js.map +1 -0
  8. package/fhi-icon-arrow-down.js +38 -0
  9. package/fhi-icon-arrow-down.js.map +1 -0
  10. package/fhi-icon-arrow-left.js +38 -0
  11. package/fhi-icon-arrow-left.js.map +1 -0
  12. package/fhi-icon-arrow-right-left.js +38 -0
  13. package/fhi-icon-arrow-right-left.js.map +1 -0
  14. package/fhi-icon-arrow-right.js +38 -0
  15. package/fhi-icon-arrow-right.js.map +1 -0
  16. package/fhi-icon-arrow-up-down.js +38 -0
  17. package/fhi-icon-arrow-up-down.js.map +1 -0
  18. package/fhi-icon-arrow-up-left.js +38 -0
  19. package/fhi-icon-arrow-up-left.js.map +1 -0
  20. package/fhi-icon-arrow-up-right.js +38 -0
  21. package/fhi-icon-arrow-up-right.js.map +1 -0
  22. package/fhi-icon-arrow-up.js +38 -0
  23. package/fhi-icon-arrow-up.js.map +1 -0
  24. package/fhi-icon-bell.js +38 -0
  25. package/fhi-icon-bell.js.map +1 -0
  26. package/fhi-icon-calendar.js +38 -0
  27. package/fhi-icon-calendar.js.map +1 -0
  28. package/fhi-icon-check.js +38 -0
  29. package/fhi-icon-check.js.map +1 -0
  30. package/fhi-icon-chevron-down.js +38 -0
  31. package/fhi-icon-chevron-down.js.map +1 -0
  32. package/fhi-icon-chevron-left.js +38 -0
  33. package/fhi-icon-chevron-left.js.map +1 -0
  34. package/fhi-icon-chevron-right.js +38 -0
  35. package/fhi-icon-chevron-right.js.map +1 -0
  36. package/fhi-icon-chevron-up.js +38 -0
  37. package/fhi-icon-chevron-up.js.map +1 -0
  38. package/fhi-icon-chevrons-down.js +38 -0
  39. package/fhi-icon-chevrons-down.js.map +1 -0
  40. package/fhi-icon-chevrons-left.js +38 -0
  41. package/fhi-icon-chevrons-left.js.map +1 -0
  42. package/fhi-icon-chevrons-right.js +38 -0
  43. package/fhi-icon-chevrons-right.js.map +1 -0
  44. package/fhi-icon-chevrons-up.js +38 -0
  45. package/fhi-icon-chevrons-up.js.map +1 -0
  46. package/fhi-icon-circle-arrow-down.js +38 -0
  47. package/fhi-icon-circle-arrow-down.js.map +1 -0
  48. package/fhi-icon-circle-arrow-left.js +38 -0
  49. package/fhi-icon-circle-arrow-left.js.map +1 -0
  50. package/fhi-icon-circle-arrow-right.js +38 -0
  51. package/fhi-icon-circle-arrow-right.js.map +1 -0
  52. package/fhi-icon-circle-arrow-up.js +38 -0
  53. package/fhi-icon-circle-arrow-up.js.map +1 -0
  54. package/fhi-icon-circle-check-big.js +38 -0
  55. package/fhi-icon-circle-check-big.js.map +1 -0
  56. package/fhi-icon-circle-check.js +38 -0
  57. package/fhi-icon-circle-check.js.map +1 -0
  58. package/fhi-icon-circle-chevron-down.js +38 -0
  59. package/fhi-icon-circle-chevron-down.js.map +1 -0
  60. package/fhi-icon-circle-chevron-left.js +38 -0
  61. package/fhi-icon-circle-chevron-left.js.map +1 -0
  62. package/fhi-icon-circle-chevron-right.js +38 -0
  63. package/fhi-icon-circle-chevron-right.js.map +1 -0
  64. package/fhi-icon-circle-chevron-up.js +38 -0
  65. package/fhi-icon-circle-chevron-up.js.map +1 -0
  66. package/fhi-icon-circle-exclamation.js +38 -0
  67. package/fhi-icon-circle-exclamation.js.map +1 -0
  68. package/fhi-icon-circle-info.js +38 -0
  69. package/fhi-icon-circle-info.js.map +1 -0
  70. package/fhi-icon-circle-minus.js +38 -0
  71. package/fhi-icon-circle-minus.js.map +1 -0
  72. package/fhi-icon-circle-plus.js +38 -0
  73. package/fhi-icon-circle-plus.js.map +1 -0
  74. package/fhi-icon-circle-question.js +38 -0
  75. package/fhi-icon-circle-question.js.map +1 -0
  76. package/fhi-icon-circle-x.js +38 -0
  77. package/fhi-icon-circle-x.js.map +1 -0
  78. package/fhi-icon-circle.js +38 -0
  79. package/fhi-icon-circle.js.map +1 -0
  80. package/fhi-icon-clock.js +38 -0
  81. package/fhi-icon-clock.js.map +1 -0
  82. package/fhi-icon-copy.js +38 -0
  83. package/fhi-icon-copy.js.map +1 -0
  84. package/fhi-icon-download.js +38 -0
  85. package/fhi-icon-download.js.map +1 -0
  86. package/fhi-icon-ellipsis-vertical.js +38 -0
  87. package/fhi-icon-ellipsis-vertical.js.map +1 -0
  88. package/fhi-icon-ellipsis.js +38 -0
  89. package/fhi-icon-ellipsis.js.map +1 -0
  90. package/fhi-icon-exclamation.js +38 -0
  91. package/fhi-icon-exclamation.js.map +1 -0
  92. package/fhi-icon-expand.js +38 -0
  93. package/fhi-icon-expand.js.map +1 -0
  94. package/fhi-icon-external-link.js +38 -0
  95. package/fhi-icon-external-link.js.map +1 -0
  96. package/fhi-icon-eye-off.js +38 -0
  97. package/fhi-icon-eye-off.js.map +1 -0
  98. package/fhi-icon-eye.js +38 -0
  99. package/fhi-icon-eye.js.map +1 -0
  100. package/fhi-icon-file.js +38 -0
  101. package/fhi-icon-file.js.map +1 -0
  102. package/fhi-icon-gear.js +38 -0
  103. package/fhi-icon-gear.js.map +1 -0
  104. package/fhi-icon-grid-9-dots.js +38 -0
  105. package/fhi-icon-grid-9-dots.js.map +1 -0
  106. package/fhi-icon-grip-horizontal.js +38 -0
  107. package/fhi-icon-grip-horizontal.js.map +1 -0
  108. package/fhi-icon-grip-vertical.js +38 -0
  109. package/fhi-icon-grip-vertical.js.map +1 -0
  110. package/fhi-icon-info.js +38 -0
  111. package/fhi-icon-info.js.map +1 -0
  112. package/fhi-icon-link.js +38 -0
  113. package/fhi-icon-link.js.map +1 -0
  114. package/fhi-icon-lock.js +38 -0
  115. package/fhi-icon-lock.js.map +1 -0
  116. package/fhi-icon-log-in.js +38 -0
  117. package/fhi-icon-log-in.js.map +1 -0
  118. package/fhi-icon-log-out.js +38 -0
  119. package/fhi-icon-log-out.js.map +1 -0
  120. package/fhi-icon-menu.js +38 -0
  121. package/fhi-icon-menu.js.map +1 -0
  122. package/fhi-icon-minus.js +38 -0
  123. package/fhi-icon-minus.js.map +1 -0
  124. package/fhi-icon-paperclip.js +38 -0
  125. package/fhi-icon-paperclip.js.map +1 -0
  126. package/fhi-icon-plus.js +38 -0
  127. package/fhi-icon-plus.js.map +1 -0
  128. package/fhi-icon-printer.js +38 -0
  129. package/fhi-icon-printer.js.map +1 -0
  130. package/fhi-icon-question.js +38 -0
  131. package/fhi-icon-question.js.map +1 -0
  132. package/fhi-icon-refresh.js +38 -0
  133. package/fhi-icon-refresh.js.map +1 -0
  134. package/fhi-icon-rotate-left.js +38 -0
  135. package/fhi-icon-rotate-left.js.map +1 -0
  136. package/fhi-icon-rotate-right.js +38 -0
  137. package/fhi-icon-rotate-right.js.map +1 -0
  138. package/fhi-icon-search.js +38 -0
  139. package/fhi-icon-search.js.map +1 -0
  140. package/fhi-icon-share.js +38 -0
  141. package/fhi-icon-share.js.map +1 -0
  142. package/fhi-icon-sheet.js +38 -0
  143. package/fhi-icon-sheet.js.map +1 -0
  144. package/fhi-icon-square-check-big.js +38 -0
  145. package/fhi-icon-square-check-big.js.map +1 -0
  146. package/fhi-icon-square-check.js +38 -0
  147. package/fhi-icon-square-check.js.map +1 -0
  148. package/fhi-icon-square-pen.js +38 -0
  149. package/fhi-icon-square-pen.js.map +1 -0
  150. package/fhi-icon-square-x.js +38 -0
  151. package/fhi-icon-square-x.js.map +1 -0
  152. package/fhi-icon-square.js +38 -0
  153. package/fhi-icon-square.js.map +1 -0
  154. package/fhi-icon-trash.js +38 -0
  155. package/fhi-icon-trash.js.map +1 -0
  156. package/fhi-icon-upload.js +38 -0
  157. package/fhi-icon-upload.js.map +1 -0
  158. package/fhi-icon-user.js +38 -0
  159. package/fhi-icon-user.js.map +1 -0
  160. package/fhi-icon-x.js +38 -0
  161. package/fhi-icon-x.js.map +1 -0
  162. package/fhi-text-input.js.map +1 -1
  163. package/index.js +243 -6
  164. package/index.js.map +1 -1
  165. package/package.json +7 -4
  166. package/theme/default.css +77 -1
@@ -0,0 +1,38 @@
1
+ import { i as p, n as a, a as l, x as v, t as m } from "./property-WH20NVyT.js";
2
+ var f = Object.defineProperty, w = Object.getOwnPropertyDescriptor, c = (n, r, o, s) => {
3
+ for (var t = s > 1 ? void 0 : s ? w(r, o) : r, h = n.length - 1, i; h >= 0; h--)
4
+ (i = n[h]) && (t = (s ? i(r, o, t) : i(t)) || t);
5
+ return s && t && f(r, o, t), t;
6
+ };
7
+ const g = "fhi-icon-trash";
8
+ let e = class extends l {
9
+ constructor() {
10
+ super(...arguments), this.color = "currentcolor", this.size = 24;
11
+ }
12
+ render() {
13
+ return v`
14
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="${this.size}" height="${this.size}" fill="${this.color}"><path d="M18.25 6.75H5.75V20c0 .256.136.575.405.845.27.27.589.405.845.405h10c.256 0 .575-.136.845-.405.27-.27.405-.589.405-.845zM9.25 17v-6a.75.75 0 0 1 1.5 0v6a.75.75 0 0 1-1.5 0m4 0v-6a.75.75 0 0 1 1.5 0v6a.75.75 0 0 1-1.5 0m2-13c0-.256-.136-.575-.405-.845-.27-.27-.589-.405-.845-.405h-4c-.256 0-.575.136-.845.405-.27.27-.405.589-.405.845v1.25h6.5zm1.5 1.25H21a.75.75 0 0 1 0 1.5h-1.25V20c0 .744-.364 1.425-.845 1.905-.48.48-1.161.845-1.905.845H7c-.744 0-1.425-.364-1.905-.845-.48-.48-.845-1.161-.845-1.905V6.75H3a.75.75 0 0 1 0-1.5h4.25V4c0-.744.364-1.425.845-1.905.48-.48 1.161-.845 1.905-.845h4c.744 0 1.425.364 1.905.845.48.48.845 1.161.845 1.905z"/></svg>
15
+ `;
16
+ }
17
+ };
18
+ e.styles = p`
19
+ :host {
20
+ display: flex;
21
+ max-height: min-content;
22
+ max-width: min-content;
23
+ }
24
+ `;
25
+ c([
26
+ a({ type: String })
27
+ ], e.prototype, "color", 2);
28
+ c([
29
+ a({ type: Number })
30
+ ], e.prototype, "size", 2);
31
+ e = c([
32
+ m(g)
33
+ ], e);
34
+ export {
35
+ e as FhiIconTrash,
36
+ g as FhiIconTrashSelector
37
+ };
38
+ //# sourceMappingURL=fhi-icon-trash.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fhi-icon-trash.js","sources":["../../src/components/icons/fhi-icon-trash.component.ts"],"sourcesContent":["\n/*\n This file is auto-generated by generate-icon-components.js. Do not edit it manually.\n*/\nimport { html, css, LitElement } from \"lit\";\nimport { customElement, property } from \"lit/decorators.js\";\n\nexport const FhiIconTrashSelector = \"fhi-icon-trash\";\n\n@customElement(FhiIconTrashSelector)\nexport class FhiIconTrash extends LitElement {\n @property({ type: String }) color: string = \"currentcolor\";\n\n @property({ type: Number }) size: number = 24;\n\n render() {\n return html`\n <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" width=\"${this.size}\" height=\"${this.size}\" fill=\"${this.color}\"><path d=\"M18.25 6.75H5.75V20c0 .256.136.575.405.845.27.27.589.405.845.405h10c.256 0 .575-.136.845-.405.27-.27.405-.589.405-.845zM9.25 17v-6a.75.75 0 0 1 1.5 0v6a.75.75 0 0 1-1.5 0m4 0v-6a.75.75 0 0 1 1.5 0v6a.75.75 0 0 1-1.5 0m2-13c0-.256-.136-.575-.405-.845-.27-.27-.589-.405-.845-.405h-4c-.256 0-.575.136-.845.405-.27.27-.405.589-.405.845v1.25h6.5zm1.5 1.25H21a.75.75 0 0 1 0 1.5h-1.25V20c0 .744-.364 1.425-.845 1.905-.48.48-1.161.845-1.905.845H7c-.744 0-1.425-.364-1.905-.845-.48-.48-.845-1.161-.845-1.905V6.75H3a.75.75 0 0 1 0-1.5h4.25V4c0-.744.364-1.425.845-1.905.48-.48 1.161-.845 1.905-.845h4c.744 0 1.425.364 1.905.845.48.48.845 1.161.845 1.905z\"/></svg>\n `;\n }\n \n static styles = css`\n :host {\n display: flex;\n max-height: min-content;\n max-width: min-content;\n }\n `;\n }\n"],"names":["FhiIconTrashSelector","FhiIconTrash","LitElement","html","css","__decorateClass","property","customElement"],"mappings":";;;;;;AAOO,MAAMA,IAAuB;AAGvB,IAAAC,IAAN,cAA2BC,EAAW;AAAA,EAAtC,cAAA;AAAA,UAAA,GAAA,SAAA,GACuC,KAAA,QAAA,gBAED,KAAA,OAAA;AAAA,EAAA;AAAA,EAE3C,SAAS;AACA,WAAAC;AAAAA,2EACgE,KAAK,IAAI,aAAa,KAAK,IAAI,WAAW,KAAK,KAAK;AAAA;AAAA,EAAA;AAW7H;AAlBWF,EAWJ,SAASG;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAVYC,EAAA;AAAA,EAA3BC,EAAS,EAAE,MAAM,OAAQ,CAAA;AAAA,GADfL,EACiB,WAAA,SAAA,CAAA;AAEAI,EAAA;AAAA,EAA3BC,EAAS,EAAE,MAAM,OAAQ,CAAA;AAAA,GAHfL,EAGiB,WAAA,QAAA,CAAA;AAHjBA,IAANI,EAAA;AAAA,EADNE,EAAcP,CAAoB;AAAA,GACtBC,CAAA;"}
@@ -0,0 +1,38 @@
1
+ import { i as a, n as h, a as c, x as v, t as m } from "./property-WH20NVyT.js";
2
+ var f = Object.defineProperty, u = Object.getOwnPropertyDescriptor, n = (p, o, s, r) => {
3
+ for (var t = r > 1 ? void 0 : r ? u(o, s) : o, i = p.length - 1, l; i >= 0; i--)
4
+ (l = p[i]) && (t = (r ? l(o, s, t) : l(t)) || t);
5
+ return r && t && f(o, s, t), t;
6
+ };
7
+ const w = "fhi-icon-upload";
8
+ let e = class extends c {
9
+ constructor() {
10
+ super(...arguments), this.color = "currentcolor", this.size = 24;
11
+ }
12
+ render() {
13
+ return v`
14
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="${this.size}" height="${this.size}" fill="${this.color}"><path d="M2.25 19v-4a.75.75 0 0 1 1.5 0v4A1.25 1.25 0 0 0 5 20.25h14A1.25 1.25 0 0 0 20.25 19v-4a.75.75 0 0 1 1.5 0v4A2.75 2.75 0 0 1 19 21.75H5A2.75 2.75 0 0 1 2.25 19m9-4V4.81L7.53 8.53a.75.75 0 1 1-1.06-1.06l5-5 .056-.052a.75.75 0 0 1 1.004.052l5 5 .052.056a.75.75 0 0 1-1.056 1.056l-.056-.052-3.72-3.72V15a.75.75 0 0 1-1.5 0"/></svg>
15
+ `;
16
+ }
17
+ };
18
+ e.styles = a`
19
+ :host {
20
+ display: flex;
21
+ max-height: min-content;
22
+ max-width: min-content;
23
+ }
24
+ `;
25
+ n([
26
+ h({ type: String })
27
+ ], e.prototype, "color", 2);
28
+ n([
29
+ h({ type: Number })
30
+ ], e.prototype, "size", 2);
31
+ e = n([
32
+ m(w)
33
+ ], e);
34
+ export {
35
+ e as FhiIconUpload,
36
+ w as FhiIconUploadSelector
37
+ };
38
+ //# sourceMappingURL=fhi-icon-upload.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fhi-icon-upload.js","sources":["../../src/components/icons/fhi-icon-upload.component.ts"],"sourcesContent":["\n/*\n This file is auto-generated by generate-icon-components.js. Do not edit it manually.\n*/\nimport { html, css, LitElement } from \"lit\";\nimport { customElement, property } from \"lit/decorators.js\";\n\nexport const FhiIconUploadSelector = \"fhi-icon-upload\";\n\n@customElement(FhiIconUploadSelector)\nexport class FhiIconUpload extends LitElement {\n @property({ type: String }) color: string = \"currentcolor\";\n\n @property({ type: Number }) size: number = 24;\n\n render() {\n return html`\n <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" width=\"${this.size}\" height=\"${this.size}\" fill=\"${this.color}\"><path d=\"M2.25 19v-4a.75.75 0 0 1 1.5 0v4A1.25 1.25 0 0 0 5 20.25h14A1.25 1.25 0 0 0 20.25 19v-4a.75.75 0 0 1 1.5 0v4A2.75 2.75 0 0 1 19 21.75H5A2.75 2.75 0 0 1 2.25 19m9-4V4.81L7.53 8.53a.75.75 0 1 1-1.06-1.06l5-5 .056-.052a.75.75 0 0 1 1.004.052l5 5 .052.056a.75.75 0 0 1-1.056 1.056l-.056-.052-3.72-3.72V15a.75.75 0 0 1-1.5 0\"/></svg>\n `;\n }\n \n static styles = css`\n :host {\n display: flex;\n max-height: min-content;\n max-width: min-content;\n }\n `;\n }\n"],"names":["FhiIconUploadSelector","FhiIconUpload","LitElement","html","css","__decorateClass","property","customElement"],"mappings":";;;;;;AAOO,MAAMA,IAAwB;AAGxB,IAAAC,IAAN,cAA4BC,EAAW;AAAA,EAAvC,cAAA;AAAA,UAAA,GAAA,SAAA,GACuC,KAAA,QAAA,gBAED,KAAA,OAAA;AAAA,EAAA;AAAA,EAE3C,SAAS;AACA,WAAAC;AAAAA,2EACgE,KAAK,IAAI,aAAa,KAAK,IAAI,WAAW,KAAK,KAAK;AAAA;AAAA,EAAA;AAW7H;AAlBWF,EAWJ,SAASG;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAVYC,EAAA;AAAA,EAA3BC,EAAS,EAAE,MAAM,OAAQ,CAAA;AAAA,GADfL,EACiB,WAAA,SAAA,CAAA;AAEAI,EAAA;AAAA,EAA3BC,EAAS,EAAE,MAAM,OAAQ,CAAA;AAAA,GAHfL,EAGiB,WAAA,QAAA,CAAA;AAHjBA,IAANI,EAAA;AAAA,EADNE,EAAcP,CAAqB;AAAA,GACvBC,CAAA;"}
@@ -0,0 +1,38 @@
1
+ import { i as l, n as p, a, x as m, t as v } from "./property-WH20NVyT.js";
2
+ var f = Object.defineProperty, u = Object.getOwnPropertyDescriptor, h = (c, r, o, s) => {
3
+ for (var e = s > 1 ? void 0 : s ? u(r, o) : r, i = c.length - 1, n; i >= 0; i--)
4
+ (n = c[i]) && (e = (s ? n(r, o, e) : n(e)) || e);
5
+ return s && e && f(r, o, e), e;
6
+ };
7
+ const w = "fhi-icon-user";
8
+ let t = class extends a {
9
+ constructor() {
10
+ super(...arguments), this.color = "currentcolor", this.size = 24;
11
+ }
12
+ render() {
13
+ return m`
14
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="${this.size}" height="${this.size}" fill="${this.color}"><path d="M16.25 8a4.25 4.25 0 1 0-8.5 0 4.25 4.25 0 0 0 8.5 0m1.5 0a5.74 5.74 0 0 1-2.63 4.828 8.75 8.75 0 0 1 3.068 1.985A8.75 8.75 0 0 1 20.75 21a.75.75 0 0 1-1.5 0 7.25 7.25 0 0 0-6.89-7.241L12 13.75A7.25 7.25 0 0 0 4.75 21a.75.75 0 0 1-1.5 0 8.75 8.75 0 0 1 2.563-6.187 8.75 8.75 0 0 1 3.066-1.985A5.75 5.75 0 1 1 17.75 8"/></svg>
15
+ `;
16
+ }
17
+ };
18
+ t.styles = l`
19
+ :host {
20
+ display: flex;
21
+ max-height: min-content;
22
+ max-width: min-content;
23
+ }
24
+ `;
25
+ h([
26
+ p({ type: String })
27
+ ], t.prototype, "color", 2);
28
+ h([
29
+ p({ type: Number })
30
+ ], t.prototype, "size", 2);
31
+ t = h([
32
+ v(w)
33
+ ], t);
34
+ export {
35
+ t as FhiIconUser,
36
+ w as FhiIconUserSelector
37
+ };
38
+ //# sourceMappingURL=fhi-icon-user.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fhi-icon-user.js","sources":["../../src/components/icons/fhi-icon-user.component.ts"],"sourcesContent":["\n/*\n This file is auto-generated by generate-icon-components.js. Do not edit it manually.\n*/\nimport { html, css, LitElement } from \"lit\";\nimport { customElement, property } from \"lit/decorators.js\";\n\nexport const FhiIconUserSelector = \"fhi-icon-user\";\n\n@customElement(FhiIconUserSelector)\nexport class FhiIconUser extends LitElement {\n @property({ type: String }) color: string = \"currentcolor\";\n\n @property({ type: Number }) size: number = 24;\n\n render() {\n return html`\n <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" width=\"${this.size}\" height=\"${this.size}\" fill=\"${this.color}\"><path d=\"M16.25 8a4.25 4.25 0 1 0-8.5 0 4.25 4.25 0 0 0 8.5 0m1.5 0a5.74 5.74 0 0 1-2.63 4.828 8.75 8.75 0 0 1 3.068 1.985A8.75 8.75 0 0 1 20.75 21a.75.75 0 0 1-1.5 0 7.25 7.25 0 0 0-6.89-7.241L12 13.75A7.25 7.25 0 0 0 4.75 21a.75.75 0 0 1-1.5 0 8.75 8.75 0 0 1 2.563-6.187 8.75 8.75 0 0 1 3.066-1.985A5.75 5.75 0 1 1 17.75 8\"/></svg>\n `;\n }\n \n static styles = css`\n :host {\n display: flex;\n max-height: min-content;\n max-width: min-content;\n }\n `;\n }\n"],"names":["FhiIconUserSelector","FhiIconUser","LitElement","html","css","__decorateClass","property","customElement"],"mappings":";;;;;;AAOO,MAAMA,IAAsB;AAGtB,IAAAC,IAAN,cAA0BC,EAAW;AAAA,EAArC,cAAA;AAAA,UAAA,GAAA,SAAA,GACuC,KAAA,QAAA,gBAED,KAAA,OAAA;AAAA,EAAA;AAAA,EAE3C,SAAS;AACA,WAAAC;AAAAA,2EACgE,KAAK,IAAI,aAAa,KAAK,IAAI,WAAW,KAAK,KAAK;AAAA;AAAA,EAAA;AAW7H;AAlBWF,EAWJ,SAASG;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAVYC,EAAA;AAAA,EAA3BC,EAAS,EAAE,MAAM,OAAQ,CAAA;AAAA,GADfL,EACiB,WAAA,SAAA,CAAA;AAEAI,EAAA;AAAA,EAA3BC,EAAS,EAAE,MAAM,OAAQ,CAAA;AAAA,GAHfL,EAGiB,WAAA,QAAA,CAAA;AAHjBA,IAANI,EAAA;AAAA,EADNE,EAAcP,CAAmB;AAAA,GACrBC,CAAA;"}
package/fhi-icon-x.js ADDED
@@ -0,0 +1,38 @@
1
+ import { i as p, n as c, a, x as v, t as f } from "./property-WH20NVyT.js";
2
+ var m = Object.defineProperty, w = Object.getOwnPropertyDescriptor, n = (h, r, s, o) => {
3
+ for (var t = o > 1 ? void 0 : o ? w(r, s) : r, i = h.length - 1, l; i >= 0; i--)
4
+ (l = h[i]) && (t = (o ? l(r, s, t) : l(t)) || t);
5
+ return o && t && m(r, s, t), t;
6
+ };
7
+ const x = "fhi-icon-x";
8
+ let e = class extends a {
9
+ constructor() {
10
+ super(...arguments), this.color = "currentcolor", this.size = 24;
11
+ }
12
+ render() {
13
+ return v`
14
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="${this.size}" height="${this.size}" fill="${this.color}"><path d="M17.47 5.47a.75.75 0 1 1 1.06 1.06L13.06 12l5.47 5.47.052.056a.75.75 0 0 1-1.056 1.056l-.056-.052L12 13.06l-5.47 5.47a.75.75 0 1 1-1.06-1.06L10.94 12 5.47 6.53l-.052-.056a.75.75 0 0 1 1.056-1.056l.056.052L12 10.94z"/></svg>
15
+ `;
16
+ }
17
+ };
18
+ e.styles = p`
19
+ :host {
20
+ display: flex;
21
+ max-height: min-content;
22
+ max-width: min-content;
23
+ }
24
+ `;
25
+ n([
26
+ c({ type: String })
27
+ ], e.prototype, "color", 2);
28
+ n([
29
+ c({ type: Number })
30
+ ], e.prototype, "size", 2);
31
+ e = n([
32
+ f(x)
33
+ ], e);
34
+ export {
35
+ e as FhiIconX,
36
+ x as FhiIconXSelector
37
+ };
38
+ //# sourceMappingURL=fhi-icon-x.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fhi-icon-x.js","sources":["../../src/components/icons/fhi-icon-x.component.ts"],"sourcesContent":["\n/*\n This file is auto-generated by generate-icon-components.js. Do not edit it manually.\n*/\nimport { html, css, LitElement } from \"lit\";\nimport { customElement, property } from \"lit/decorators.js\";\n\nexport const FhiIconXSelector = \"fhi-icon-x\";\n\n@customElement(FhiIconXSelector)\nexport class FhiIconX extends LitElement {\n @property({ type: String }) color: string = \"currentcolor\";\n\n @property({ type: Number }) size: number = 24;\n\n render() {\n return html`\n <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" width=\"${this.size}\" height=\"${this.size}\" fill=\"${this.color}\"><path d=\"M17.47 5.47a.75.75 0 1 1 1.06 1.06L13.06 12l5.47 5.47.052.056a.75.75 0 0 1-1.056 1.056l-.056-.052L12 13.06l-5.47 5.47a.75.75 0 1 1-1.06-1.06L10.94 12 5.47 6.53l-.052-.056a.75.75 0 0 1 1.056-1.056l.056.052L12 10.94z\"/></svg>\n `;\n }\n \n static styles = css`\n :host {\n display: flex;\n max-height: min-content;\n max-width: min-content;\n }\n `;\n }\n"],"names":["FhiIconXSelector","FhiIconX","LitElement","html","css","__decorateClass","property","customElement"],"mappings":";;;;;;AAOO,MAAMA,IAAmB;AAGnB,IAAAC,IAAN,cAAuBC,EAAW;AAAA,EAAlC,cAAA;AAAA,UAAA,GAAA,SAAA,GACuC,KAAA,QAAA,gBAED,KAAA,OAAA;AAAA,EAAA;AAAA,EAE3C,SAAS;AACA,WAAAC;AAAAA,2EACgE,KAAK,IAAI,aAAa,KAAK,IAAI,WAAW,KAAK,KAAK;AAAA;AAAA,EAAA;AAW7H;AAlBWF,EAWJ,SAASG;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAVYC,EAAA;AAAA,EAA3BC,EAAS,EAAE,MAAM,OAAQ,CAAA;AAAA,GADfL,EACiB,WAAA,SAAA,CAAA;AAEAI,EAAA;AAAA,EAA3BC,EAAS,EAAE,MAAM,OAAQ,CAAA;AAAA,GAHfL,EAGiB,WAAA,QAAA,CAAA;AAHjBA,IAANI,EAAA;AAAA,EADNE,EAAcP,CAAgB;AAAA,GAClBC,CAAA;"}
@@ -1 +1 @@
1
- {"version":3,"file":"fhi-text-input.js","sources":["../../../../node_modules/.pnpm/@lit+reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/base.js","../../../../node_modules/.pnpm/@lit+reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/query.js","../../../../node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/directives/if-defined.js","../../src/components/fhi-text-input/fhi-text-input.ts"],"sourcesContent":["/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nconst e=(e,t,c)=>(c.configurable=!0,c.enumerable=!0,Reflect.decorate&&\"object\"!=typeof t&&Object.defineProperty(e,t,c),c);export{e as desc};\n//# sourceMappingURL=base.js.map\n","import{desc as t}from\"./base.js\";\n/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */function e(e,r){return(n,s,i)=>{const o=t=>t.renderRoot?.querySelector(e)??null;if(r){const{get:e,set:r}=\"object\"==typeof s?n:i??(()=>{const t=Symbol();return{get(){return this[t]},set(e){this[t]=e}}})();return t(n,s,{get(){let t=e.call(this);return void 0===t&&(t=o(this),(null!==t||this.hasUpdated)&&r.call(this,t)),t}})}return t(n,s,{get(){return o(this)}})}}export{e as query};\n//# sourceMappingURL=query.js.map\n","import{nothing as t}from\"../lit-html.js\";\n/**\n * @license\n * Copyright 2018 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */const o=o=>o??t;export{o as ifDefined};\n//# sourceMappingURL=if-defined.js.map\n","import { html, css, LitElement } from 'lit';\nimport { customElement, property, query } from 'lit/decorators.js';\nimport { ifDefined } from 'lit/directives/if-defined.js';\n\nexport const FhiTextInputSelector = 'fhi-text-input';\n\n@customElement(FhiTextInputSelector)\nexport class FhiTextInput extends LitElement {\n static readonly formAssociated = true;\n\n @property({ type: String }) label?: string = undefined;\n\n @property({ type: String }) message?: string = undefined;\n\n @property({ type: String }) placeholder?: string | null = null;\n\n @property({ type: String, reflect: true }) status?: 'error' = undefined;\n\n @property({ type: Boolean, reflect: true }) readonly? = false;\n\n @property({ type: Boolean, reflect: true }) disabled? = false;\n\n @query('#input-element') _input!: HTMLInputElement;\n\n private _name?: string = undefined;\n\n @property({ type: String, reflect: true })\n get name(): string | undefined {\n return this._name;\n }\n set name(newName: string) {\n const oldName = this._name;\n this._name = newName;\n this.requestUpdate('name', oldName);\n this._internals.setFormValue(this._value);\n }\n\n private _value: string = '';\n\n @property({ type: String })\n get value(): string {\n return this._value;\n }\n\n set value(newValue: string) {\n const oldValue = this._value;\n this._value = newValue;\n this.requestUpdate('value', oldValue);\n this._internals.setFormValue(this._value);\n }\n\n private _internals: ElementInternals;\n\n constructor() {\n super();\n this._internals = this.attachInternals();\n }\n\n public connectedCallback(): void {\n super.connectedCallback();\n this._internals.setFormValue(this.value);\n }\n\n public onChange(): void {\n this.dispatchEvent(\n new Event('change', {\n bubbles: true,\n composed: true,\n }),\n );\n }\n\n public onInput(): void {\n this.value = this._input.value;\n this._internals.setFormValue(this.value);\n }\n\n public onKeyDown(event: KeyboardEvent): void {\n if (event.key === 'Enter' && this._internals.form) {\n this._internals.form!.requestSubmit();\n }\n }\n\n public formResetCallback(): void {\n this.value = this.getAttribute('value') || '';\n this._internals.setFormValue(this.value);\n }\n\n render() {\n return html`\n ${this.label && html`<label for=\"input-element\">${this.label}</label>`}\n <input\n id=\"input-element\"\n name=${ifDefined(this.name)}\n placeholder=${ifDefined(this.placeholder)}\n .value=${this.value}\n ?readonly=${this.readonly}\n ?disabled=${this.disabled}\n @change=${this.onChange}\n @input=${this.onInput}\n @keydown=${this.onKeyDown}\n />\n ${this.message ? html`<p class=\"message\">${this.message}</p>` : ''}\n `;\n }\n\n static styles = css`\n :host {\n --typography-font-family: var(--fhi-font-family-roboto-flex);\n\n --opacity-disabled: var(--fhi-opacity-disabled);\n\n /* label */\n --color-label-text: var(--fhi-color-neutral-text-default);\n --color-label-text-error: var(--fhi-color-danger-text-default);\n\n --typography-label-font-weight: var(\n --fhi-typography-label-small-font-weight\n );\n --typography-label-font-size: var(--fhi-typography-label-small-font-size);\n --typography-label-line-height: var(\n --fhi-typography-label-small-line-height\n );\n --typography-label-letter-spacing: var(\n --fhi-typography-label-small-letter-spacing\n );\n\n --dimension-label-padding-bottom: var(--fhi-spacing-050);\n\n /* input */\n --color-input-placeholder: var(--fhi-color-neutral-base-default);\n --color-input-text: var(--fhi-color-neutral-text-default);\n --color-input-text-error: var(--fhi-color-danger-text-default);\n --color-input-background: var(--fhi-color-neutral-background-default);\n --color-input-background-active: var(\n --fhi-color-accent-background-default\n );\n --color-input-background-hover: var(--fhi-color-accent-background-subtle);\n --color-input-background-error: var(\n --fhi-color-danger-background-default\n );\n --color-input-border: var(--fhi-color-neutral-border-default);\n --color-input-border-hover: var(--fhi-color-accent-border-default);\n --color-input-border-active: var(--fhi-color-accent-border-strong);\n --color-input-border-error: var(--fhi-color-danger-border-strong);\n --color-input-border-disabled: var(--fhi-color-neutral-border-default);\n\n --typography-input-font-weight: var(\n --fhi-typography-body-medium-font-weight\n );\n --typography-input-font-size: var(--fhi-typography-body-medium-font-size);\n --typography-input-line-height: var(\n --fhi-typography-body-medium-line-height\n );\n --typography-input-letter-spacing: var(\n --fhi-typography-body-medium-letter-spacing\n );\n\n --dimension-input-border-width: var(--fhi-dimension-border-width);\n\n --dimension-input-height: var(--fhi-spacing-500);\n --dimension-input-border-radius: var(--fhi-border-radius-050);\n --dimension-input-padding-left: var(--fhi-spacing-150);\n --dimension-input-padding-right: var(--fhi-spacing-150);\n\n --motion-input-transition: all var(--fhi-motion-ease-default)\n var(--fhi-motion-duration-quick);\n\n /* message */\n --color-message-text: var(--fhi-color-neutral-text-default);\n --color-message-text-error: var(--fhi-color-danger-text-subtle);\n\n --typography-message-font-weight: var(\n --fhi-typography-body-small-font-weight\n );\n --typography-message-font-size: var(\n --fhi-typography-body-small-font-size\n );\n --typography-message-line-height: var(\n --fhi-typography-body-small-line-height\n );\n --typography-message-letter-spacing: var(\n --fhi-typography-body-small-letter-spacing\n );\n\n --dimension-message-margin-top: var(--fhi-spacing-050);\n }\n\n :host {\n display: flex;\n flex-direction: column;\n font-family: var(--typography-font-family);\n\n label {\n font-weight: var(--typography-label-font-weight);\n font-size: var(--typography-label-font-size);\n line-height: var(--typography-label-line-height);\n letter-spacing: var(--typography-label-letter-spacing);\n color: var(--color-label-text);\n padding-bottom: var(--dimension-label-padding-bottom);\n }\n\n input {\n box-sizing: border-box;\n height: var(--dimension-input-height);\n border: var(--dimension-input-border-width) solid\n var(--color-input-border);\n border-radius: var(--dimension-input-border-radius);\n padding: 0 var(--dimension-input-padding-right) 0\n var(--dimension-input-padding-left);\n color: var(--color-input-text);\n background-color: var(--color-input-background);\n font-family: var(--typography-font-family);\n font-weight: var(--typography-input-font-weight);\n font-size: var(--typography-input-font-size);\n line-height: var(--typography-input-line-height);\n letter-spacing: var(--typography-input-letter-spacing);\n transition: var(--motion-input-transition);\n &:hover {\n border-color: var(--color-input-border-hover);\n background-color: var(--color-input-background-hover);\n }\n &:focus {\n border-color: var(--color-input-border-active);\n background-color: var(--color-input-background-active);\n }\n &::placeholder {\n color: var(--color-input-placeholder);\n }\n }\n\n .message {\n margin: var(--dimension-message-margin-top) 0 0 0;\n color: var(--color-message-text);\n font-weight: var(--typography-message-font-weight);\n font-size: var(--typography-message-font-size);\n line-height: var(--typography-message-line-height);\n letter-spacing: var(--typography-message-letter-spacing);\n }\n }\n\n :host([disabled]) {\n opacity: var(--opacity-disabled);\n cursor: not-allowed;\n * {\n cursor: not-allowed;\n }\n input {\n &:hover {\n border-color: var(--color-input-border);\n background-color: var(--color-input-background);\n }\n }\n }\n\n :host([readonly]:not([disabled])) {\n input {\n border: unset;\n border-radius: unset;\n background-color: unset;\n border-left: var(--dimension-input-border-width) solid\n var(--color-input-border);\n }\n }\n\n :host([status='error']:not([disabled]):not([readonly])) {\n label {\n color: var(--color-label-text-error);\n }\n input {\n border-color: var(--color-input-border-error);\n background-color: var(--color-input-background-error);\n color: var(--color-input-text-error);\n }\n .message {\n color: var(--color-message-text-error);\n }\n }\n `;\n}\n"],"names":["e","t","c","n","s","o","_a","FhiTextInputSelector","FhiTextInput","LitElement","newName","oldName","newValue","oldValue","event","html","ifDefined","css","__decorateClass","property","query","customElement"],"mappings":";AAAA;AAAA;AAAA;AAAA;AAAA;AAKA,MAAMA,IAA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AAEAU,EAAA;AAAA,EAA3BC,EAAS,EAAE,MAAM,OAAQ,CAAA;AAAA,GAPfX,EAOiB,WAAA,eAAA,CAAA;AAEeU,EAAA;AAAA,EAA1CC,EAAS,EAAE,MAAM,QAAQ,SAAS,GAAM,CAAA;AAAA,GAT9BX,EASgC,WAAA,UAAA,CAAA;AAECU,EAAA;AAAA,EAA3CC,EAAS,EAAE,MAAM,SAAS,SAAS,GAAM,CAAA;AAAA,GAX/BX,EAWiC,WAAA,YAAA,CAAA;AAEAU,EAAA;AAAA,EAA3CC,EAAS,EAAE,MAAM,SAAS,SAAS,GAAM,CAAA;AAAA,GAb/BX,EAaiC,WAAA,YAAA,CAAA;AAEnBU,EAAA;AAAA,EAAxBE,EAAM,gBAAgB;AAAA,GAfZZ,EAec,WAAA,UAAA,CAAA;AAKrBU,EAAA;AAAA,EADHC,EAAS,EAAE,MAAM,QAAQ,SAAS,GAAM,CAAA;AAAA,GAnB9BX,EAoBP,WAAA,QAAA,CAAA;AAaAU,EAAA;AAAA,EADHC,EAAS,EAAE,MAAM,OAAQ,CAAA;AAAA,GAhCfX,EAiCP,WAAA,SAAA,CAAA;AAjCOA,IAANU,EAAA;AAAA,EADNG,EAAcd,CAAoB;AAAA,GACtBC,CAAA;","x_google_ignoreList":[0,1,2]}
1
+ {"version":3,"file":"fhi-text-input.js","sources":["../../../../node_modules/.pnpm/@lit+reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/base.js","../../../../node_modules/.pnpm/@lit+reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/query.js","../../../../node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/directives/if-defined.js","../../src/components/fhi-text-input/fhi-text-input.component.ts"],"sourcesContent":["/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nconst e=(e,t,c)=>(c.configurable=!0,c.enumerable=!0,Reflect.decorate&&\"object\"!=typeof t&&Object.defineProperty(e,t,c),c);export{e as desc};\n//# sourceMappingURL=base.js.map\n","import{desc as t}from\"./base.js\";\n/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */function e(e,r){return(n,s,i)=>{const o=t=>t.renderRoot?.querySelector(e)??null;if(r){const{get:e,set:r}=\"object\"==typeof s?n:i??(()=>{const t=Symbol();return{get(){return this[t]},set(e){this[t]=e}}})();return t(n,s,{get(){let t=e.call(this);return void 0===t&&(t=o(this),(null!==t||this.hasUpdated)&&r.call(this,t)),t}})}return t(n,s,{get(){return o(this)}})}}export{e as query};\n//# sourceMappingURL=query.js.map\n","import{nothing as t}from\"../lit-html.js\";\n/**\n * @license\n * Copyright 2018 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */const o=o=>o??t;export{o as ifDefined};\n//# sourceMappingURL=if-defined.js.map\n","import { html, css, LitElement } from 'lit';\nimport { customElement, property, query } from 'lit/decorators.js';\nimport { ifDefined } from 'lit/directives/if-defined.js';\n\nexport const FhiTextInputSelector = 'fhi-text-input';\n\n@customElement(FhiTextInputSelector)\nexport class FhiTextInput extends LitElement {\n static readonly formAssociated = true;\n\n @property({ type: String }) label?: string = undefined;\n\n @property({ type: String }) message?: string = undefined;\n\n @property({ type: String }) placeholder?: string | null = null;\n\n @property({ type: String, reflect: true }) status?: 'error' = undefined;\n\n @property({ type: Boolean, reflect: true }) readonly? = false;\n\n @property({ type: Boolean, reflect: true }) disabled? = false;\n\n @query('#input-element') _input!: HTMLInputElement;\n\n private _name?: string = undefined;\n\n @property({ type: String, reflect: true })\n get name(): string | undefined {\n return this._name;\n }\n set name(newName: string) {\n const oldName = this._name;\n this._name = newName;\n this.requestUpdate('name', oldName);\n this._internals.setFormValue(this._value);\n }\n\n private _value: string = '';\n\n @property({ type: String })\n get value(): string {\n return this._value;\n }\n\n set value(newValue: string) {\n const oldValue = this._value;\n this._value = newValue;\n this.requestUpdate('value', oldValue);\n this._internals.setFormValue(this._value);\n }\n\n private _internals: ElementInternals;\n\n constructor() {\n super();\n this._internals = this.attachInternals();\n }\n\n public connectedCallback(): void {\n super.connectedCallback();\n this._internals.setFormValue(this.value);\n }\n\n public onChange(): void {\n this.dispatchEvent(\n new Event('change', {\n bubbles: true,\n composed: true,\n }),\n );\n }\n\n public onInput(): void {\n this.value = this._input.value;\n this._internals.setFormValue(this.value);\n }\n\n public onKeyDown(event: KeyboardEvent): void {\n if (event.key === 'Enter' && this._internals.form) {\n this._internals.form!.requestSubmit();\n }\n }\n\n public formResetCallback(): void {\n this.value = this.getAttribute('value') || '';\n this._internals.setFormValue(this.value);\n }\n\n render() {\n return html`\n ${this.label && html`<label for=\"input-element\">${this.label}</label>`}\n <input\n id=\"input-element\"\n name=${ifDefined(this.name)}\n placeholder=${ifDefined(this.placeholder)}\n .value=${this.value}\n ?readonly=${this.readonly}\n ?disabled=${this.disabled}\n @change=${this.onChange}\n @input=${this.onInput}\n @keydown=${this.onKeyDown}\n />\n ${this.message ? html`<p class=\"message\">${this.message}</p>` : ''}\n `;\n }\n\n static styles = css`\n :host {\n --typography-font-family: var(--fhi-font-family-roboto-flex);\n\n --opacity-disabled: var(--fhi-opacity-disabled);\n\n /* label */\n --color-label-text: var(--fhi-color-neutral-text-default);\n --color-label-text-error: var(--fhi-color-danger-text-default);\n\n --typography-label-font-weight: var(\n --fhi-typography-label-small-font-weight\n );\n --typography-label-font-size: var(--fhi-typography-label-small-font-size);\n --typography-label-line-height: var(\n --fhi-typography-label-small-line-height\n );\n --typography-label-letter-spacing: var(\n --fhi-typography-label-small-letter-spacing\n );\n\n --dimension-label-padding-bottom: var(--fhi-spacing-050);\n\n /* input */\n --color-input-placeholder: var(--fhi-color-neutral-base-default);\n --color-input-text: var(--fhi-color-neutral-text-default);\n --color-input-text-error: var(--fhi-color-danger-text-default);\n --color-input-background: var(--fhi-color-neutral-background-default);\n --color-input-background-active: var(\n --fhi-color-accent-background-default\n );\n --color-input-background-hover: var(--fhi-color-accent-background-subtle);\n --color-input-background-error: var(\n --fhi-color-danger-background-default\n );\n --color-input-border: var(--fhi-color-neutral-border-default);\n --color-input-border-hover: var(--fhi-color-accent-border-default);\n --color-input-border-active: var(--fhi-color-accent-border-strong);\n --color-input-border-error: var(--fhi-color-danger-border-strong);\n --color-input-border-disabled: var(--fhi-color-neutral-border-default);\n\n --typography-input-font-weight: var(\n --fhi-typography-body-medium-font-weight\n );\n --typography-input-font-size: var(--fhi-typography-body-medium-font-size);\n --typography-input-line-height: var(\n --fhi-typography-body-medium-line-height\n );\n --typography-input-letter-spacing: var(\n --fhi-typography-body-medium-letter-spacing\n );\n\n --dimension-input-border-width: var(--fhi-dimension-border-width);\n\n --dimension-input-height: var(--fhi-spacing-500);\n --dimension-input-border-radius: var(--fhi-border-radius-050);\n --dimension-input-padding-left: var(--fhi-spacing-150);\n --dimension-input-padding-right: var(--fhi-spacing-150);\n\n --motion-input-transition: all var(--fhi-motion-ease-default)\n var(--fhi-motion-duration-quick);\n\n /* message */\n --color-message-text: var(--fhi-color-neutral-text-default);\n --color-message-text-error: var(--fhi-color-danger-text-subtle);\n\n --typography-message-font-weight: var(\n --fhi-typography-body-small-font-weight\n );\n --typography-message-font-size: var(\n --fhi-typography-body-small-font-size\n );\n --typography-message-line-height: var(\n --fhi-typography-body-small-line-height\n );\n --typography-message-letter-spacing: var(\n --fhi-typography-body-small-letter-spacing\n );\n\n --dimension-message-margin-top: var(--fhi-spacing-050);\n }\n\n :host {\n display: flex;\n flex-direction: column;\n font-family: var(--typography-font-family);\n\n label {\n font-weight: var(--typography-label-font-weight);\n font-size: var(--typography-label-font-size);\n line-height: var(--typography-label-line-height);\n letter-spacing: var(--typography-label-letter-spacing);\n color: var(--color-label-text);\n padding-bottom: var(--dimension-label-padding-bottom);\n }\n\n input {\n box-sizing: border-box;\n height: var(--dimension-input-height);\n border: var(--dimension-input-border-width) solid\n var(--color-input-border);\n border-radius: var(--dimension-input-border-radius);\n padding: 0 var(--dimension-input-padding-right) 0\n var(--dimension-input-padding-left);\n color: var(--color-input-text);\n background-color: var(--color-input-background);\n font-family: var(--typography-font-family);\n font-weight: var(--typography-input-font-weight);\n font-size: var(--typography-input-font-size);\n line-height: var(--typography-input-line-height);\n letter-spacing: var(--typography-input-letter-spacing);\n transition: var(--motion-input-transition);\n &:hover {\n border-color: var(--color-input-border-hover);\n background-color: var(--color-input-background-hover);\n }\n &:focus {\n border-color: var(--color-input-border-active);\n background-color: var(--color-input-background-active);\n }\n &::placeholder {\n color: var(--color-input-placeholder);\n }\n }\n\n .message {\n margin: var(--dimension-message-margin-top) 0 0 0;\n color: var(--color-message-text);\n font-weight: var(--typography-message-font-weight);\n font-size: var(--typography-message-font-size);\n line-height: var(--typography-message-line-height);\n letter-spacing: var(--typography-message-letter-spacing);\n }\n }\n\n :host([disabled]) {\n opacity: var(--opacity-disabled);\n cursor: not-allowed;\n * {\n cursor: not-allowed;\n }\n input {\n &:hover {\n border-color: var(--color-input-border);\n background-color: var(--color-input-background);\n }\n }\n }\n\n :host([readonly]:not([disabled])) {\n input {\n border: unset;\n border-radius: unset;\n background-color: unset;\n border-left: var(--dimension-input-border-width) solid\n var(--color-input-border);\n }\n }\n\n :host([status='error']:not([disabled]):not([readonly])) {\n label {\n color: var(--color-label-text-error);\n }\n input {\n border-color: var(--color-input-border-error);\n background-color: var(--color-input-background-error);\n color: var(--color-input-text-error);\n }\n .message {\n color: var(--color-message-text-error);\n }\n }\n `;\n}\n"],"names":["e","t","c","n","s","o","_a","FhiTextInputSelector","FhiTextInput","LitElement","newName","oldName","newValue","oldValue","event","html","ifDefined","css","__decorateClass","property","query","customElement"],"mappings":";AAAA;AAAA;AAAA;AAAA;AAAA;AAKA,MAAMA,IAAE,CAAC,GAAEC,GAAEC,OAAKA,EAAE,eAAa,IAAGA,EAAE,aAAW,IAAG,QAAQ,YAAoB,OAAOD,KAAjB,YAAoB,OAAO,eAAe,GAAEA,GAAEC,CAAC,GAAEA;ACJvH;AAAA;AAAA;AAAA;AAAA;AAIG,SAASF,EAAE,GAAE,GAAE;AAAC,SAAM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AA;AAAA,EAA3CC,EAAS,EAAE,MAAM,SAAS,SAAS,GAAM,CAAA;AAAA,GAX/BX,EAWiC,WAAA,YAAA,CAAA;AAEAU,EAAA;AAAA,EAA3CC,EAAS,EAAE,MAAM,SAAS,SAAS,GAAM,CAAA;AAAA,GAb/BX,EAaiC,WAAA,YAAA,CAAA;AAEnBU,EAAA;AAAA,EAAxBE,EAAM,gBAAgB;AAAA,GAfZZ,EAec,WAAA,UAAA,CAAA;AAKrBU,EAAA;AAAA,EADHC,EAAS,EAAE,MAAM,QAAQ,SAAS,GAAM,CAAA;AAAA,GAnB9BX,EAoBP,WAAA,QAAA,CAAA;AAaAU,EAAA;AAAA,EADHC,EAAS,EAAE,MAAM,OAAQ,CAAA;AAAA,GAhCfX,EAiCP,WAAA,SAAA,CAAA;AAjCOA,IAANU,EAAA;AAAA,EADNG,EAAcd,CAAoB;AAAA,GACtBC,CAAA;","x_google_ignoreList":[0,1,2]}
package/index.js CHANGED
@@ -1,9 +1,246 @@
1
- import { FhiTextInput as o, FhiTextInputSelector as r } from "./fhi-text-input.js";
2
- import { FhiButton as i, FhiButtonSelector as n } from "./fhi-button.js";
1
+ import { FhiButton as e, FhiButtonSelector as c } from "./fhi-button.js";
2
+ import { FhiTextInput as n, FhiTextInputSelector as t } from "./fhi-text-input.js";
3
+ import { FhiIconArrowDownLeft as I, FhiIconArrowDownLeftSelector as F } from "./fhi-icon-arrow-down-left.js";
4
+ import { FhiIconArrowDownRight as p, FhiIconArrowDownRightSelector as f } from "./fhi-icon-arrow-down-right.js";
5
+ import { FhiIconArrowDown as x, FhiIconArrowDownSelector as m } from "./fhi-icon-arrow-down.js";
6
+ import { FhiIconArrowLeft as a, FhiIconArrowLeftSelector as w } from "./fhi-icon-arrow-left.js";
7
+ import { FhiIconArrowRightLeft as u, FhiIconArrowRightLeftSelector as A } from "./fhi-icon-arrow-right-left.js";
8
+ import { FhiIconArrowRight as g, FhiIconArrowRightSelector as v } from "./fhi-icon-arrow-right.js";
9
+ import { FhiIconArrowUpDown as D, FhiIconArrowUpDownSelector as U } from "./fhi-icon-arrow-up-down.js";
10
+ import { FhiIconArrowUpLeft as E, FhiIconArrowUpLeftSelector as d } from "./fhi-icon-arrow-up-left.js";
11
+ import { FhiIconArrowUpRight as P, FhiIconArrowUpRightSelector as B } from "./fhi-icon-arrow-up-right.js";
12
+ import { FhiIconArrowUp as y, FhiIconArrowUpSelector as M } from "./fhi-icon-arrow-up.js";
13
+ import { FhiIconBell as O, FhiIconBellSelector as Q } from "./fhi-icon-bell.js";
14
+ import { FhiIconCalendar as V, FhiIconCalendarSelector as z } from "./fhi-icon-calendar.js";
15
+ import { FhiIconCheck as b, FhiIconCheckSelector as j } from "./fhi-icon-check.js";
16
+ import { FhiIconChevronDown as K, FhiIconChevronDownSelector as N } from "./fhi-icon-chevron-down.js";
17
+ import { FhiIconChevronLeft as Y, FhiIconChevronLeftSelector as Z } from "./fhi-icon-chevron-left.js";
18
+ import { FhiIconChevronRight as $, FhiIconChevronRightSelector as oo } from "./fhi-icon-chevron-right.js";
19
+ import { FhiIconChevronUp as eo, FhiIconChevronUpSelector as co } from "./fhi-icon-chevron-up.js";
20
+ import { FhiIconChevronsDown as no, FhiIconChevronsDownSelector as to } from "./fhi-icon-chevrons-down.js";
21
+ import { FhiIconChevronsLeft as Io, FhiIconChevronsLeftSelector as Fo } from "./fhi-icon-chevrons-left.js";
22
+ import { FhiIconChevronsRight as po, FhiIconChevronsRightSelector as fo } from "./fhi-icon-chevrons-right.js";
23
+ import { FhiIconChevronsUp as xo, FhiIconChevronsUpSelector as mo } from "./fhi-icon-chevrons-up.js";
24
+ import { FhiIconCircleArrowDown as ao, FhiIconCircleArrowDownSelector as wo } from "./fhi-icon-circle-arrow-down.js";
25
+ import { FhiIconCircleArrowLeft as uo, FhiIconCircleArrowLeftSelector as Ao } from "./fhi-icon-circle-arrow-left.js";
26
+ import { FhiIconCircleArrowRight as go, FhiIconCircleArrowRightSelector as vo } from "./fhi-icon-circle-arrow-right.js";
27
+ import { FhiIconCircleArrowUp as Do, FhiIconCircleArrowUpSelector as Uo } from "./fhi-icon-circle-arrow-up.js";
28
+ import { FhiIconCircleCheckBig as Eo, FhiIconCircleCheckBigSelector as qo } from "./fhi-icon-circle-check-big.js";
29
+ import { FhiIconCircleCheck as Bo, FhiIconCircleCheckSelector as Go } from "./fhi-icon-circle-check.js";
30
+ import { FhiIconCircleChevronDown as Mo, FhiIconCircleChevronDownSelector as Xo } from "./fhi-icon-circle-chevron-down.js";
31
+ import { FhiIconCircleChevronLeft as Qo, FhiIconCircleChevronLeftSelector as To } from "./fhi-icon-circle-chevron-left.js";
32
+ import { FhiIconCircleChevronRight as zo, FhiIconCircleChevronRightSelector as Ho } from "./fhi-icon-circle-chevron-right.js";
33
+ import { FhiIconCircleChevronUp as jo, FhiIconCircleChevronUpSelector as Jo } from "./fhi-icon-circle-chevron-up.js";
34
+ import { FhiIconCircleExclamation as No, FhiIconCircleExclamationSelector as Wo } from "./fhi-icon-circle-exclamation.js";
35
+ import { FhiIconCircleInfo as Zo, FhiIconCircleInfoSelector as _o } from "./fhi-icon-circle-info.js";
36
+ import { FhiIconCircleMinus as or, FhiIconCircleMinusSelector as rr } from "./fhi-icon-circle-minus.js";
37
+ import { FhiIconCirclePlus as cr, FhiIconCirclePlusSelector as ir } from "./fhi-icon-circle-plus.js";
38
+ import { FhiIconCircleQuestion as tr, FhiIconCircleQuestionSelector as hr } from "./fhi-icon-circle-question.js";
39
+ import { FhiIconCircleX as Fr, FhiIconCircleXSelector as lr } from "./fhi-icon-circle-x.js";
40
+ import { FhiIconCircle as fr, FhiIconCircleSelector as Sr } from "./fhi-icon-circle.js";
41
+ import { FhiIconClock as mr, FhiIconClockSelector as Cr } from "./fhi-icon-clock.js";
42
+ import { FhiIconCopy as wr, FhiIconCopySelector as sr } from "./fhi-icon-copy.js";
43
+ import { FhiIconDownload as Ar, FhiIconDownloadSelector as Lr } from "./fhi-icon-download.js";
44
+ import { FhiIconEllipsisVertical as vr, FhiIconEllipsisVerticalSelector as Rr } from "./fhi-icon-ellipsis-vertical.js";
45
+ import { FhiIconEllipsis as Ur, FhiIconEllipsisSelector as kr } from "./fhi-icon-ellipsis.js";
46
+ import { FhiIconExclamation as dr, FhiIconExclamationSelector as qr } from "./fhi-icon-exclamation.js";
47
+ import { FhiIconExpand as Br, FhiIconExpandSelector as Gr } from "./fhi-icon-expand.js";
48
+ import { FhiIconExternalLink as Mr, FhiIconExternalLinkSelector as Xr } from "./fhi-icon-external-link.js";
49
+ import { FhiIconEyeOff as Qr, FhiIconEyeOffSelector as Tr } from "./fhi-icon-eye-off.js";
50
+ import { FhiIconEye as zr, FhiIconEyeSelector as Hr } from "./fhi-icon-eye.js";
51
+ import { FhiIconFile as jr, FhiIconFileSelector as Jr } from "./fhi-icon-file.js";
52
+ import { FhiIconGear as Nr, FhiIconGearSelector as Wr } from "./fhi-icon-gear.js";
53
+ import { FhiIconGrid9Dots as Zr, FhiIconGrid9DotsSelector as _r } from "./fhi-icon-grid-9-dots.js";
54
+ import { FhiIconGripHorizontal as oe, FhiIconGripHorizontalSelector as re } from "./fhi-icon-grip-horizontal.js";
55
+ import { FhiIconGripVertical as ce, FhiIconGripVerticalSelector as ie } from "./fhi-icon-grip-vertical.js";
56
+ import { FhiIconInfo as te, FhiIconInfoSelector as he } from "./fhi-icon-info.js";
57
+ import { FhiIconLink as Fe, FhiIconLinkSelector as le } from "./fhi-icon-link.js";
58
+ import { FhiIconLock as fe, FhiIconLockSelector as Se } from "./fhi-icon-lock.js";
59
+ import { FhiIconLogIn as me, FhiIconLogInSelector as Ce } from "./fhi-icon-log-in.js";
60
+ import { FhiIconLogOut as we, FhiIconLogOutSelector as se } from "./fhi-icon-log-out.js";
61
+ import { FhiIconMenu as Ae, FhiIconMenuSelector as Le } from "./fhi-icon-menu.js";
62
+ import { FhiIconMinus as ve, FhiIconMinusSelector as Re } from "./fhi-icon-minus.js";
63
+ import { FhiIconPaperclip as Ue, FhiIconPaperclipSelector as ke } from "./fhi-icon-paperclip.js";
64
+ import { FhiIconPlus as de, FhiIconPlusSelector as qe } from "./fhi-icon-plus.js";
65
+ import { FhiIconPrinter as Be, FhiIconPrinterSelector as Ge } from "./fhi-icon-printer.js";
66
+ import { FhiIconQuestion as Me, FhiIconQuestionSelector as Xe } from "./fhi-icon-question.js";
67
+ import { FhiIconRefresh as Qe, FhiIconRefreshSelector as Te } from "./fhi-icon-refresh.js";
68
+ import { FhiIconRotateLeft as ze, FhiIconRotateLeftSelector as He } from "./fhi-icon-rotate-left.js";
69
+ import { FhiIconRotateRight as je, FhiIconRotateRightSelector as Je } from "./fhi-icon-rotate-right.js";
70
+ import { FhiIconSearch as Ne, FhiIconSearchSelector as We } from "./fhi-icon-search.js";
71
+ import { FhiIconShare as Ze, FhiIconShareSelector as _e } from "./fhi-icon-share.js";
72
+ import { FhiIconSheet as oc, FhiIconSheetSelector as rc } from "./fhi-icon-sheet.js";
73
+ import { FhiIconSquareCheckBig as cc, FhiIconSquareCheckBigSelector as ic } from "./fhi-icon-square-check-big.js";
74
+ import { FhiIconSquareCheck as tc, FhiIconSquareCheckSelector as hc } from "./fhi-icon-square-check.js";
75
+ import { FhiIconSquarePen as Fc, FhiIconSquarePenSelector as lc } from "./fhi-icon-square-pen.js";
76
+ import { FhiIconSquareX as fc, FhiIconSquareXSelector as Sc } from "./fhi-icon-square-x.js";
77
+ import { FhiIconSquare as mc, FhiIconSquareSelector as Cc } from "./fhi-icon-square.js";
78
+ import { FhiIconTrash as wc, FhiIconTrashSelector as sc } from "./fhi-icon-trash.js";
79
+ import { FhiIconUpload as Ac, FhiIconUploadSelector as Lc } from "./fhi-icon-upload.js";
80
+ import { FhiIconUser as vc, FhiIconUserSelector as Rc } from "./fhi-icon-user.js";
81
+ import { FhiIconX as Uc, FhiIconXSelector as kc } from "./fhi-icon-x.js";
3
82
  export {
4
- i as FhiButton,
5
- n as FhiButtonSelector,
6
- o as FhiTextInput,
7
- r as FhiTextInputSelector
83
+ e as FhiButton,
84
+ c as FhiButtonSelector,
85
+ x as FhiIconArrowDown,
86
+ I as FhiIconArrowDownLeft,
87
+ F as FhiIconArrowDownLeftSelector,
88
+ p as FhiIconArrowDownRight,
89
+ f as FhiIconArrowDownRightSelector,
90
+ m as FhiIconArrowDownSelector,
91
+ a as FhiIconArrowLeft,
92
+ w as FhiIconArrowLeftSelector,
93
+ g as FhiIconArrowRight,
94
+ u as FhiIconArrowRightLeft,
95
+ A as FhiIconArrowRightLeftSelector,
96
+ v as FhiIconArrowRightSelector,
97
+ y as FhiIconArrowUp,
98
+ D as FhiIconArrowUpDown,
99
+ U as FhiIconArrowUpDownSelector,
100
+ E as FhiIconArrowUpLeft,
101
+ d as FhiIconArrowUpLeftSelector,
102
+ P as FhiIconArrowUpRight,
103
+ B as FhiIconArrowUpRightSelector,
104
+ M as FhiIconArrowUpSelector,
105
+ O as FhiIconBell,
106
+ Q as FhiIconBellSelector,
107
+ V as FhiIconCalendar,
108
+ z as FhiIconCalendarSelector,
109
+ b as FhiIconCheck,
110
+ j as FhiIconCheckSelector,
111
+ K as FhiIconChevronDown,
112
+ N as FhiIconChevronDownSelector,
113
+ Y as FhiIconChevronLeft,
114
+ Z as FhiIconChevronLeftSelector,
115
+ $ as FhiIconChevronRight,
116
+ oo as FhiIconChevronRightSelector,
117
+ eo as FhiIconChevronUp,
118
+ co as FhiIconChevronUpSelector,
119
+ no as FhiIconChevronsDown,
120
+ to as FhiIconChevronsDownSelector,
121
+ Io as FhiIconChevronsLeft,
122
+ Fo as FhiIconChevronsLeftSelector,
123
+ po as FhiIconChevronsRight,
124
+ fo as FhiIconChevronsRightSelector,
125
+ xo as FhiIconChevronsUp,
126
+ mo as FhiIconChevronsUpSelector,
127
+ fr as FhiIconCircle,
128
+ ao as FhiIconCircleArrowDown,
129
+ wo as FhiIconCircleArrowDownSelector,
130
+ uo as FhiIconCircleArrowLeft,
131
+ Ao as FhiIconCircleArrowLeftSelector,
132
+ go as FhiIconCircleArrowRight,
133
+ vo as FhiIconCircleArrowRightSelector,
134
+ Do as FhiIconCircleArrowUp,
135
+ Uo as FhiIconCircleArrowUpSelector,
136
+ Bo as FhiIconCircleCheck,
137
+ Eo as FhiIconCircleCheckBig,
138
+ qo as FhiIconCircleCheckBigSelector,
139
+ Go as FhiIconCircleCheckSelector,
140
+ Mo as FhiIconCircleChevronDown,
141
+ Xo as FhiIconCircleChevronDownSelector,
142
+ Qo as FhiIconCircleChevronLeft,
143
+ To as FhiIconCircleChevronLeftSelector,
144
+ zo as FhiIconCircleChevronRight,
145
+ Ho as FhiIconCircleChevronRightSelector,
146
+ jo as FhiIconCircleChevronUp,
147
+ Jo as FhiIconCircleChevronUpSelector,
148
+ No as FhiIconCircleExclamation,
149
+ Wo as FhiIconCircleExclamationSelector,
150
+ Zo as FhiIconCircleInfo,
151
+ _o as FhiIconCircleInfoSelector,
152
+ or as FhiIconCircleMinus,
153
+ rr as FhiIconCircleMinusSelector,
154
+ cr as FhiIconCirclePlus,
155
+ ir as FhiIconCirclePlusSelector,
156
+ tr as FhiIconCircleQuestion,
157
+ hr as FhiIconCircleQuestionSelector,
158
+ Sr as FhiIconCircleSelector,
159
+ Fr as FhiIconCircleX,
160
+ lr as FhiIconCircleXSelector,
161
+ mr as FhiIconClock,
162
+ Cr as FhiIconClockSelector,
163
+ wr as FhiIconCopy,
164
+ sr as FhiIconCopySelector,
165
+ Ar as FhiIconDownload,
166
+ Lr as FhiIconDownloadSelector,
167
+ Ur as FhiIconEllipsis,
168
+ kr as FhiIconEllipsisSelector,
169
+ vr as FhiIconEllipsisVertical,
170
+ Rr as FhiIconEllipsisVerticalSelector,
171
+ dr as FhiIconExclamation,
172
+ qr as FhiIconExclamationSelector,
173
+ Br as FhiIconExpand,
174
+ Gr as FhiIconExpandSelector,
175
+ Mr as FhiIconExternalLink,
176
+ Xr as FhiIconExternalLinkSelector,
177
+ zr as FhiIconEye,
178
+ Qr as FhiIconEyeOff,
179
+ Tr as FhiIconEyeOffSelector,
180
+ Hr as FhiIconEyeSelector,
181
+ jr as FhiIconFile,
182
+ Jr as FhiIconFileSelector,
183
+ Nr as FhiIconGear,
184
+ Wr as FhiIconGearSelector,
185
+ Zr as FhiIconGrid9Dots,
186
+ _r as FhiIconGrid9DotsSelector,
187
+ oe as FhiIconGripHorizontal,
188
+ re as FhiIconGripHorizontalSelector,
189
+ ce as FhiIconGripVertical,
190
+ ie as FhiIconGripVerticalSelector,
191
+ te as FhiIconInfo,
192
+ he as FhiIconInfoSelector,
193
+ Fe as FhiIconLink,
194
+ le as FhiIconLinkSelector,
195
+ fe as FhiIconLock,
196
+ Se as FhiIconLockSelector,
197
+ me as FhiIconLogIn,
198
+ Ce as FhiIconLogInSelector,
199
+ we as FhiIconLogOut,
200
+ se as FhiIconLogOutSelector,
201
+ Ae as FhiIconMenu,
202
+ Le as FhiIconMenuSelector,
203
+ ve as FhiIconMinus,
204
+ Re as FhiIconMinusSelector,
205
+ Ue as FhiIconPaperclip,
206
+ ke as FhiIconPaperclipSelector,
207
+ de as FhiIconPlus,
208
+ qe as FhiIconPlusSelector,
209
+ Be as FhiIconPrinter,
210
+ Ge as FhiIconPrinterSelector,
211
+ Me as FhiIconQuestion,
212
+ Xe as FhiIconQuestionSelector,
213
+ Qe as FhiIconRefresh,
214
+ Te as FhiIconRefreshSelector,
215
+ ze as FhiIconRotateLeft,
216
+ He as FhiIconRotateLeftSelector,
217
+ je as FhiIconRotateRight,
218
+ Je as FhiIconRotateRightSelector,
219
+ Ne as FhiIconSearch,
220
+ We as FhiIconSearchSelector,
221
+ Ze as FhiIconShare,
222
+ _e as FhiIconShareSelector,
223
+ oc as FhiIconSheet,
224
+ rc as FhiIconSheetSelector,
225
+ mc as FhiIconSquare,
226
+ tc as FhiIconSquareCheck,
227
+ cc as FhiIconSquareCheckBig,
228
+ ic as FhiIconSquareCheckBigSelector,
229
+ hc as FhiIconSquareCheckSelector,
230
+ Fc as FhiIconSquarePen,
231
+ lc as FhiIconSquarePenSelector,
232
+ Cc as FhiIconSquareSelector,
233
+ fc as FhiIconSquareX,
234
+ Sc as FhiIconSquareXSelector,
235
+ wc as FhiIconTrash,
236
+ sc as FhiIconTrashSelector,
237
+ Ac as FhiIconUpload,
238
+ Lc as FhiIconUploadSelector,
239
+ vc as FhiIconUser,
240
+ Rc as FhiIconUserSelector,
241
+ Uc as FhiIconX,
242
+ kc as FhiIconXSelector,
243
+ n as FhiTextInput,
244
+ t as FhiTextInputSelector
8
245
  };
9
246
  //# sourceMappingURL=index.js.map
package/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "title": "FHI Designsystem",
3
3
  "author": "FHI Designsystem team",
4
4
  "name": "@folkehelseinstituttet/designsystem",
5
- "version": "0.2.2",
5
+ "version": "0.3.0",
6
6
  "description": "The official design system for the Norwegian Institute of Public Health implemented as web components",
7
7
  "keywords": [
8
8
  "fhi",
@@ -41,6 +41,7 @@
41
41
  "build:npm": "tsc && cross-env DEPLOY_TARGET=npm vite build",
42
42
  "storybook": "storybook dev -p 6006",
43
43
  "storybook:build": "storybook build",
44
+ "generate:icons": "node ./scripts/generate-icon-components.js --input ./src/assets/icons/ --output ./src/components/icons --clean-output-folder",
44
45
  "test": "wtr ./**/*.test.ts --node-resolve --playwright --browsers chromium webkit",
45
46
  "lint": "pnpm lint:eslint && pnpm lint:prettier",
46
47
  "lint:eslint": "eslint \"**/*.{js,ts}\"",
@@ -59,6 +60,8 @@
59
60
  "@esm-bundle/chai": "~4.3.4-fix.0",
60
61
  "@open-wc/testing": "~4.0.0",
61
62
  "@playwright/test": "^1.51.1",
63
+ "@release-it/conventional-changelog": "~8.0.2",
64
+ "@storybook/addon-actions": "~8.3.6",
62
65
  "@storybook/addon-essentials": "~8.3.0",
63
66
  "@storybook/addon-links": "~8.3.0",
64
67
  "@storybook/blocks": "~8.3.0",
@@ -74,12 +77,12 @@
74
77
  "cross-env": "7.0.3",
75
78
  "lit": "~3.2.0",
76
79
  "mocha": "~10.7.0",
80
+ "release-it": "~17.6.0",
77
81
  "storybook": "~8.3.0",
82
+ "storybook-design-token": "^3.2.0",
78
83
  "vite": "~5.4.0",
79
84
  "vite-plugin-generate-file": "~0.2.0",
80
85
  "vite-plugin-static-copy": "~1.0.6",
81
- "release-it": "~17.6.0",
82
- "@release-it/conventional-changelog": "~8.0.2",
83
- "@storybook/addon-actions": "~8.3.6"
86
+ "svgo": "^3.3.2"
84
87
  }
85
88
  }