@folkehelseinstituttet/designsystem 0.40.0 → 0.40.2

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 (271) hide show
  1. package/decorate-DFXIek-k.js +611 -0
  2. package/decorate-DFXIek-k.js.map +1 -0
  3. package/fhi-body.js +23 -32
  4. package/fhi-body.js.map +1 -1
  5. package/fhi-button.js +90 -112
  6. package/fhi-button.js.map +1 -1
  7. package/fhi-checkbox.js +53 -66
  8. package/fhi-checkbox.js.map +1 -1
  9. package/fhi-data-table-cell.js +23 -29
  10. package/fhi-data-table-cell.js.map +1 -1
  11. package/fhi-data-table-row.js +40 -65
  12. package/fhi-data-table-row.js.map +1 -1
  13. package/fhi-data-table.js +30 -36
  14. package/fhi-data-table.js.map +1 -1
  15. package/fhi-date-input.component-Bus7CeKM.js +278 -0
  16. package/fhi-date-input.component-Bus7CeKM.js.map +1 -0
  17. package/fhi-date-input.js +2 -305
  18. package/fhi-display.js +29 -46
  19. package/fhi-display.js.map +1 -1
  20. package/fhi-flex.js +40 -50
  21. package/fhi-flex.js.map +1 -1
  22. package/fhi-grid.js +30 -46
  23. package/fhi-grid.js.map +1 -1
  24. package/fhi-headline.js +29 -46
  25. package/fhi-headline.js.map +1 -1
  26. package/fhi-icon-arrow-down-left.js +26 -43
  27. package/fhi-icon-arrow-down-left.js.map +1 -1
  28. package/fhi-icon-arrow-down-right.js +26 -43
  29. package/fhi-icon-arrow-down-right.js.map +1 -1
  30. package/fhi-icon-arrow-down.js +26 -43
  31. package/fhi-icon-arrow-down.js.map +1 -1
  32. package/fhi-icon-arrow-left.js +26 -43
  33. package/fhi-icon-arrow-left.js.map +1 -1
  34. package/fhi-icon-arrow-right-left.js +26 -43
  35. package/fhi-icon-arrow-right-left.js.map +1 -1
  36. package/fhi-icon-arrow-right.js +26 -43
  37. package/fhi-icon-arrow-right.js.map +1 -1
  38. package/fhi-icon-arrow-up-down.js +26 -43
  39. package/fhi-icon-arrow-up-down.js.map +1 -1
  40. package/fhi-icon-arrow-up-left.js +26 -43
  41. package/fhi-icon-arrow-up-left.js.map +1 -1
  42. package/fhi-icon-arrow-up-right.js +26 -43
  43. package/fhi-icon-arrow-up-right.js.map +1 -1
  44. package/fhi-icon-arrow-up.js +26 -43
  45. package/fhi-icon-arrow-up.js.map +1 -1
  46. package/fhi-icon-bell.js +26 -43
  47. package/fhi-icon-bell.js.map +1 -1
  48. package/fhi-icon-calendar-clock.js +26 -43
  49. package/fhi-icon-calendar-clock.js.map +1 -1
  50. package/fhi-icon-calendar.js +26 -43
  51. package/fhi-icon-calendar.js.map +1 -1
  52. package/fhi-icon-chart-bar-stacked.js +26 -43
  53. package/fhi-icon-chart-bar-stacked.js.map +1 -1
  54. package/fhi-icon-chart-bar.js +26 -43
  55. package/fhi-icon-chart-bar.js.map +1 -1
  56. package/fhi-icon-chart-column-stacked.js +26 -43
  57. package/fhi-icon-chart-column-stacked.js.map +1 -1
  58. package/fhi-icon-chart-column.js +26 -43
  59. package/fhi-icon-chart-column.js.map +1 -1
  60. package/fhi-icon-chart-line.js +26 -43
  61. package/fhi-icon-chart-line.js.map +1 -1
  62. package/fhi-icon-chart-no-axes-combined.js +26 -43
  63. package/fhi-icon-chart-no-axes-combined.js.map +1 -1
  64. package/fhi-icon-chart-pie.js +26 -43
  65. package/fhi-icon-chart-pie.js.map +1 -1
  66. package/fhi-icon-check.js +26 -43
  67. package/fhi-icon-check.js.map +1 -1
  68. package/fhi-icon-chevron-down.js +26 -43
  69. package/fhi-icon-chevron-down.js.map +1 -1
  70. package/fhi-icon-chevron-left.js +26 -43
  71. package/fhi-icon-chevron-left.js.map +1 -1
  72. package/fhi-icon-chevron-right.js +26 -43
  73. package/fhi-icon-chevron-right.js.map +1 -1
  74. package/fhi-icon-chevron-up.js +26 -43
  75. package/fhi-icon-chevron-up.js.map +1 -1
  76. package/fhi-icon-chevrons-down.js +26 -43
  77. package/fhi-icon-chevrons-down.js.map +1 -1
  78. package/fhi-icon-chevrons-left.js +26 -43
  79. package/fhi-icon-chevrons-left.js.map +1 -1
  80. package/fhi-icon-chevrons-right.js +26 -43
  81. package/fhi-icon-chevrons-right.js.map +1 -1
  82. package/fhi-icon-chevrons-up.js +26 -43
  83. package/fhi-icon-chevrons-up.js.map +1 -1
  84. package/fhi-icon-circle-arrow-down.js +26 -43
  85. package/fhi-icon-circle-arrow-down.js.map +1 -1
  86. package/fhi-icon-circle-arrow-left.js +26 -43
  87. package/fhi-icon-circle-arrow-left.js.map +1 -1
  88. package/fhi-icon-circle-arrow-right.js +26 -43
  89. package/fhi-icon-circle-arrow-right.js.map +1 -1
  90. package/fhi-icon-circle-arrow-up.js +26 -43
  91. package/fhi-icon-circle-arrow-up.js.map +1 -1
  92. package/fhi-icon-circle-check-big.js +26 -43
  93. package/fhi-icon-circle-check-big.js.map +1 -1
  94. package/fhi-icon-circle-check.js +26 -43
  95. package/fhi-icon-circle-check.js.map +1 -1
  96. package/fhi-icon-circle-chevron-down.js +26 -43
  97. package/fhi-icon-circle-chevron-down.js.map +1 -1
  98. package/fhi-icon-circle-chevron-left.js +26 -43
  99. package/fhi-icon-circle-chevron-left.js.map +1 -1
  100. package/fhi-icon-circle-chevron-right.js +26 -43
  101. package/fhi-icon-circle-chevron-right.js.map +1 -1
  102. package/fhi-icon-circle-chevron-up.js +26 -43
  103. package/fhi-icon-circle-chevron-up.js.map +1 -1
  104. package/fhi-icon-circle-exclamation.js +26 -43
  105. package/fhi-icon-circle-exclamation.js.map +1 -1
  106. package/fhi-icon-circle-info.js +26 -43
  107. package/fhi-icon-circle-info.js.map +1 -1
  108. package/fhi-icon-circle-minus.js +26 -43
  109. package/fhi-icon-circle-minus.js.map +1 -1
  110. package/fhi-icon-circle-plus.js +26 -43
  111. package/fhi-icon-circle-plus.js.map +1 -1
  112. package/fhi-icon-circle-question.js +26 -43
  113. package/fhi-icon-circle-question.js.map +1 -1
  114. package/fhi-icon-circle-x.js +26 -43
  115. package/fhi-icon-circle-x.js.map +1 -1
  116. package/fhi-icon-circle.js +26 -43
  117. package/fhi-icon-circle.js.map +1 -1
  118. package/fhi-icon-clock.js +26 -43
  119. package/fhi-icon-clock.js.map +1 -1
  120. package/fhi-icon-copy.js +26 -43
  121. package/fhi-icon-copy.js.map +1 -1
  122. package/fhi-icon-download.js +26 -43
  123. package/fhi-icon-download.js.map +1 -1
  124. package/fhi-icon-ellipsis-vertical.js +26 -43
  125. package/fhi-icon-ellipsis-vertical.js.map +1 -1
  126. package/fhi-icon-ellipsis.js +26 -43
  127. package/fhi-icon-ellipsis.js.map +1 -1
  128. package/fhi-icon-exclamation.js +26 -43
  129. package/fhi-icon-exclamation.js.map +1 -1
  130. package/fhi-icon-expand.js +26 -43
  131. package/fhi-icon-expand.js.map +1 -1
  132. package/fhi-icon-external-link.js +26 -43
  133. package/fhi-icon-external-link.js.map +1 -1
  134. package/fhi-icon-eye-off.js +26 -43
  135. package/fhi-icon-eye-off.js.map +1 -1
  136. package/fhi-icon-eye.js +26 -43
  137. package/fhi-icon-eye.js.map +1 -1
  138. package/fhi-icon-file-text.js +26 -43
  139. package/fhi-icon-file-text.js.map +1 -1
  140. package/fhi-icon-file.js +26 -43
  141. package/fhi-icon-file.js.map +1 -1
  142. package/fhi-icon-filter.js +26 -43
  143. package/fhi-icon-filter.js.map +1 -1
  144. package/fhi-icon-folder.js +26 -43
  145. package/fhi-icon-folder.js.map +1 -1
  146. package/fhi-icon-gear.js +26 -43
  147. package/fhi-icon-gear.js.map +1 -1
  148. package/fhi-icon-grid-9-dots.js +26 -43
  149. package/fhi-icon-grid-9-dots.js.map +1 -1
  150. package/fhi-icon-grip-horizontal.js +26 -43
  151. package/fhi-icon-grip-horizontal.js.map +1 -1
  152. package/fhi-icon-grip-vertical.js +26 -43
  153. package/fhi-icon-grip-vertical.js.map +1 -1
  154. package/fhi-icon-history.js +26 -43
  155. package/fhi-icon-history.js.map +1 -1
  156. package/fhi-icon-info.js +26 -43
  157. package/fhi-icon-info.js.map +1 -1
  158. package/fhi-icon-link-2-off.js +26 -43
  159. package/fhi-icon-link-2-off.js.map +1 -1
  160. package/fhi-icon-link-2.js +26 -43
  161. package/fhi-icon-link-2.js.map +1 -1
  162. package/fhi-icon-link.js +26 -43
  163. package/fhi-icon-link.js.map +1 -1
  164. package/fhi-icon-lock-open.js +26 -43
  165. package/fhi-icon-lock-open.js.map +1 -1
  166. package/fhi-icon-lock.js +26 -43
  167. package/fhi-icon-lock.js.map +1 -1
  168. package/fhi-icon-log-in.js +26 -43
  169. package/fhi-icon-log-in.js.map +1 -1
  170. package/fhi-icon-log-out.js +26 -43
  171. package/fhi-icon-log-out.js.map +1 -1
  172. package/fhi-icon-mail.js +26 -43
  173. package/fhi-icon-mail.js.map +1 -1
  174. package/fhi-icon-map-pin.js +26 -43
  175. package/fhi-icon-map-pin.js.map +1 -1
  176. package/fhi-icon-menu.js +26 -43
  177. package/fhi-icon-menu.js.map +1 -1
  178. package/fhi-icon-message.js +26 -43
  179. package/fhi-icon-message.js.map +1 -1
  180. package/fhi-icon-minus.js +26 -43
  181. package/fhi-icon-minus.js.map +1 -1
  182. package/fhi-icon-octagon-alert.js +26 -43
  183. package/fhi-icon-octagon-alert.js.map +1 -1
  184. package/fhi-icon-paperclip.js +26 -43
  185. package/fhi-icon-paperclip.js.map +1 -1
  186. package/fhi-icon-pencil.js +26 -43
  187. package/fhi-icon-pencil.js.map +1 -1
  188. package/fhi-icon-phone.js +26 -43
  189. package/fhi-icon-phone.js.map +1 -1
  190. package/fhi-icon-pin-off.js +26 -43
  191. package/fhi-icon-pin-off.js.map +1 -1
  192. package/fhi-icon-pin.js +26 -43
  193. package/fhi-icon-pin.js.map +1 -1
  194. package/fhi-icon-plus.js +26 -43
  195. package/fhi-icon-plus.js.map +1 -1
  196. package/fhi-icon-printer.js +26 -43
  197. package/fhi-icon-printer.js.map +1 -1
  198. package/fhi-icon-question.js +26 -43
  199. package/fhi-icon-question.js.map +1 -1
  200. package/fhi-icon-refresh.js +26 -43
  201. package/fhi-icon-refresh.js.map +1 -1
  202. package/fhi-icon-rotate-left.js +26 -43
  203. package/fhi-icon-rotate-left.js.map +1 -1
  204. package/fhi-icon-rotate-right.js +26 -43
  205. package/fhi-icon-rotate-right.js.map +1 -1
  206. package/fhi-icon-search.js +26 -43
  207. package/fhi-icon-search.js.map +1 -1
  208. package/fhi-icon-send.js +26 -43
  209. package/fhi-icon-send.js.map +1 -1
  210. package/fhi-icon-share.js +26 -43
  211. package/fhi-icon-share.js.map +1 -1
  212. package/fhi-icon-sheet.js +26 -43
  213. package/fhi-icon-sheet.js.map +1 -1
  214. package/fhi-icon-square-check-big.js +26 -43
  215. package/fhi-icon-square-check-big.js.map +1 -1
  216. package/fhi-icon-square-check.js +26 -43
  217. package/fhi-icon-square-check.js.map +1 -1
  218. package/fhi-icon-square-pen.js +26 -43
  219. package/fhi-icon-square-pen.js.map +1 -1
  220. package/fhi-icon-square-x.js +26 -43
  221. package/fhi-icon-square-x.js.map +1 -1
  222. package/fhi-icon-square.js +26 -43
  223. package/fhi-icon-square.js.map +1 -1
  224. package/fhi-icon-trash.js +26 -43
  225. package/fhi-icon-trash.js.map +1 -1
  226. package/fhi-icon-triangle-alert.js +26 -43
  227. package/fhi-icon-triangle-alert.js.map +1 -1
  228. package/fhi-icon-upload.js +26 -43
  229. package/fhi-icon-upload.js.map +1 -1
  230. package/fhi-icon-user.js +26 -43
  231. package/fhi-icon-user.js.map +1 -1
  232. package/fhi-icon-x.js +26 -43
  233. package/fhi-icon-x.js.map +1 -1
  234. package/fhi-label.js +23 -32
  235. package/fhi-label.js.map +1 -1
  236. package/fhi-modal-dialog.js +76 -111
  237. package/fhi-modal-dialog.js.map +1 -1
  238. package/fhi-radio.js +91 -109
  239. package/fhi-radio.js.map +1 -1
  240. package/fhi-tag.js +32 -44
  241. package/fhi-tag.js.map +1 -1
  242. package/fhi-text-input.js +96 -126
  243. package/fhi-text-input.js.map +1 -1
  244. package/fhi-title.js +29 -46
  245. package/fhi-title.js.map +1 -1
  246. package/fhi-tooltip.component-DJNDfrHK.js +919 -0
  247. package/fhi-tooltip.component-DJNDfrHK.js.map +1 -0
  248. package/fhi-tooltip.js +2 -1162
  249. package/fonts/RobotoFlex.ttf +0 -0
  250. package/if-defined-Dl-W5B5_.js +7 -0
  251. package/if-defined-Dl-W5B5_.js.map +1 -0
  252. package/index.js +123 -369
  253. package/package.json +1 -1
  254. package/theme/default.css +480 -1
  255. package/unsafe-html-CBTN3162.js +50 -0
  256. package/unsafe-html-CBTN3162.js.map +1 -0
  257. package/web-types.json +1 -1
  258. package/base-D76d76ww.js +0 -10
  259. package/base-D76d76ww.js.map +0 -1
  260. package/fhi-date-input.js.map +0 -1
  261. package/fhi-tooltip.js.map +0 -1
  262. package/fonts/RobotoFlex.ttf.js.map +0 -1
  263. package/if-defined-B_sR6Mtk.js +0 -11
  264. package/if-defined-B_sR6Mtk.js.map +0 -1
  265. package/index.js.map +0 -1
  266. package/property-B2Ico5CW.js +0 -605
  267. package/property-B2Ico5CW.js.map +0 -1
  268. package/query-Ddbd72Um.js +0 -21
  269. package/query-Ddbd72Um.js.map +0 -1
  270. package/unsafe-html-DfuTUjUu.js +0 -48
  271. package/unsafe-html-DfuTUjUu.js.map +0 -1
@@ -1,52 +1,35 @@
1
- import { i as c, n as h, a as m, b as u, t as p } from "./property-B2Ico5CW.js";
2
- var g = Object.defineProperty, z = Object.getOwnPropertyDescriptor, o = (l, s, i, r) => {
3
- for (var e = r > 1 ? void 0 : r ? z(s, i) : s, n = l.length - 1, a; n >= 0; n--)
4
- (a = l[n]) && (e = (r ? a(s, i, e) : a(e)) || e);
5
- return r && e && g(s, i, e), e;
6
- };
7
- const f = "fhi-icon-message";
8
- let t = class extends m {
9
- constructor() {
10
- super(...arguments), this.color = "currentcolor", this.size = "medium";
11
- }
12
- get _size() {
13
- switch (this.size) {
14
- case "xsmall":
15
- return "1rem";
16
- case "small":
17
- return "1.25rem";
18
- case "medium":
19
- return "1.5rem";
20
- case "large":
21
- return "2rem";
22
- default:
23
- return String(this.size).endsWith("px") || String(this.size).endsWith("rem") ? String(this.size) : isNaN(Number(this.size)) ? (console.warn(`Invalid size value: ${this.size}. Falling back to default size '1.5rem'.`), "1.5rem") : `${this.size}px`;
24
- }
25
- }
26
- render() {
27
- return u`
1
+ import { a as e, d as t, o as n, s as r, t as i, u as a } from "./decorate-DFXIek-k.js";
2
+ //#region src/components/icons/fhi-icon-message.component.ts
3
+ var o = "fhi-icon-message", s = class extends r {
4
+ constructor(...e) {
5
+ super(...e), this.color = "currentcolor", this.size = "medium";
6
+ }
7
+ get _size() {
8
+ switch (this.size) {
9
+ case "xsmall": return "1rem";
10
+ case "small": return "1.25rem";
11
+ case "medium": return "1.5rem";
12
+ case "large": return "2rem";
13
+ default: return String(this.size).endsWith("px") || String(this.size).endsWith("rem") ? String(this.size) : isNaN(Number(this.size)) ? (console.warn(`Invalid size value: ${this.size}. Falling back to default size '1.5rem'.`), "1.5rem") : `${this.size}px`;
14
+ }
15
+ }
16
+ render() {
17
+ return a`
28
18
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="${this._size}" height="${this._size}" fill="${this.color}"><path d="M6.266 4.112a9.75 9.75 0 0 1 12.636.985 9.752 9.752 0 0 1-4.638 16.38 9.75 9.75 0 0 1-6.416-.669L2.241 22.71a.75.75 0 0 1-.951-.95l1.9-5.61a9.75 9.75 0 0 1-.668-6.414 9.75 9.75 0 0 1 3.744-5.623m6.383-.345a8.251 8.251 0 0 0-7.982 11.99.75.75 0 0 1 .042.583l-1.512 4.461 4.462-1.511.073-.02a.75.75 0 0 1 .51.063 8.252 8.252 0 0 0 9.6-13.175 8.25 8.25 0 0 0-5.193-2.39"/></svg>
29
19
  `;
30
- }
31
- };
32
- t.styles = c`
20
+ }
21
+ static {
22
+ this.styles = t`
33
23
  :host {
34
24
  display: flex;
35
25
  max-height: min-content;
36
26
  max-width: min-content;
37
27
  }
38
28
  `;
39
- o([
40
- h({ type: String })
41
- ], t.prototype, "color", 2);
42
- o([
43
- h({ type: String })
44
- ], t.prototype, "size", 2);
45
- t = o([
46
- p(f)
47
- ], t);
48
- export {
49
- t as FhiIconMessage,
50
- f as FhiIconMessageSelector
29
+ }
51
30
  };
52
- //# sourceMappingURL=fhi-icon-message.js.map
31
+ i([e({ type: String })], s.prototype, "color", void 0), i([e({ type: String })], s.prototype, "size", void 0), s = i([n(o)], s);
32
+ //#endregion
33
+ export { s as FhiIconMessage, o as FhiIconMessageSelector };
34
+
35
+ //# sourceMappingURL=fhi-icon-message.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"fhi-icon-message.js","sources":["../../src/components/icons/fhi-icon-message.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 FhiIconMessageSelector = \"fhi-icon-message\";\n\n/**\n * ## FhiIconMessage\n * \n * {@link https://designsystem.fhi.no/?path=/docs/ikoner--docs}\n * \n * @tag fhi-icon-message\n * @element fhi-icon-message\n */\n@customElement(FhiIconMessageSelector)\nexport class FhiIconMessage extends LitElement {\n\n /**\n * Sets the color for the icon.\n * Should preferably be a color token. See [Color Tokens](https://designsystem.fhi.no/?path=/docs/design-tokens-farger--docs)\n * @type {string}\n */ \n @property({ type: String }) color: string = \"currentcolor\";\n\n /**\n * Sets the size of the icon. Can be one of the predefined sizes, a number value, rem or px.\n * Number values are treated as px.\n * @type { 'xsmall' | 'small' | 'medium' | 'large' | number | string}\n */\n @property({ type: String }) size: 'xsmall' | 'small' | 'medium' | 'large' | number | `${number}px` | `${number}rem` = 'medium';\n\n private get _size(): string {\n switch (this.size) {\n case 'xsmall': \n return '1rem'; \n case 'small':\n return '1.25rem';\n case 'medium':\n return '1.5rem'; \n case 'large':\n return '2rem'; \n default:\n if (String(this.size).endsWith('px') || String(this.size).endsWith('rem')) {\n return String(this.size);\n }\n if (isNaN(Number(this.size))) {\n console.warn(`Invalid size value: ${this.size}. Falling back to default size '1.5rem'.`)\n return '1.5rem';\n }\n return `${this.size}px`;\n }\n }\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=\"M6.266 4.112a9.75 9.75 0 0 1 12.636.985 9.752 9.752 0 0 1-4.638 16.38 9.75 9.75 0 0 1-6.416-.669L2.241 22.71a.75.75 0 0 1-.951-.95l1.9-5.61a9.75 9.75 0 0 1-.668-6.414 9.75 9.75 0 0 1 3.744-5.623m6.383-.345a8.251 8.251 0 0 0-7.982 11.99.75.75 0 0 1 .042.583l-1.512 4.461 4.462-1.511.073-.02a.75.75 0 0 1 .51.063 8.252 8.252 0 0 0 9.6-13.175 8.25 8.25 0 0 0-5.193-2.39\"/></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":["FhiIconMessageSelector","FhiIconMessage","LitElement","html","css","__decorateClass","property","customElement"],"mappings":";;;;;;AAOO,MAAMA,IAAyB;AAW/B,IAAMC,IAAN,cAA6BC,EAAW;AAAA,EAAxC,cAAA;AAAA,UAAA,GAAA,SAAA,GAOuB,KAAA,QAAgB,gBAOhB,KAAA,OAA0F;AAAA,EAAA;AAAA,EAEtH,IAAY,QAAgB;AAC1B,YAAQ,KAAK,MAAA;AAAA,MACX,KAAK;AACH,eAAO;AAAA,MACT,KAAK;AACH,eAAO;AAAA,MACT,KAAK;AACH,eAAO;AAAA,MACT,KAAK;AACH,eAAO;AAAA,MACT;AACE,eAAI,OAAO,KAAK,IAAI,EAAE,SAAS,IAAI,KAAK,OAAO,KAAK,IAAI,EAAE,SAAS,KAAK,IAC/D,OAAO,KAAK,IAAI,IAErB,MAAM,OAAO,KAAK,IAAI,CAAC,KACzB,QAAQ,KAAK,uBAAuB,KAAK,IAAI,0CAA0C,GAChF,YAEF,GAAG,KAAK,IAAI;AAAA,IAAA;AAAA,EAEzB;AAAA,EAEA,SAAS;AACP,WAAOC;AAAAA,2EACgE,KAAK,KAAK,aAAa,KAAK,KAAK,WAAW,KAAK,KAAK;AAAA;AAAA,EAE/H;AASA;AAnDWF,EA4CJ,SAASG;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AArCYC,EAAA;AAAA,EAA3BC,EAAS,EAAE,MAAM,OAAA,CAAQ;AAAA,GAPfL,EAOiB,WAAA,SAAA,CAAA;AAOAI,EAAA;AAAA,EAA3BC,EAAS,EAAE,MAAM,OAAA,CAAQ;AAAA,GAdfL,EAciB,WAAA,QAAA,CAAA;AAdjBA,IAANI,EAAA;AAAA,EADNE,EAAcP,CAAsB;AAAA,GACxBC,CAAA;"}
1
+ {"version":3,"file":"fhi-icon-message.js","names":[],"sources":["../../src/components/icons/fhi-icon-message.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 FhiIconMessageSelector = \"fhi-icon-message\";\n\n/**\n * ## FhiIconMessage\n * \n * {@link https://designsystem.fhi.no/?path=/docs/ikoner--docs}\n * \n * @tag fhi-icon-message\n * @element fhi-icon-message\n */\n@customElement(FhiIconMessageSelector)\nexport class FhiIconMessage extends LitElement {\n\n /**\n * Sets the color for the icon.\n * Should preferably be a color token. See [Color Tokens](https://designsystem.fhi.no/?path=/docs/design-tokens-farger--docs)\n * @type {string}\n */ \n @property({ type: String }) color: string = \"currentcolor\";\n\n /**\n * Sets the size of the icon. Can be one of the predefined sizes, a number value, rem or px.\n * Number values are treated as px.\n * @type { 'xsmall' | 'small' | 'medium' | 'large' | number | string}\n */\n @property({ type: String }) size: 'xsmall' | 'small' | 'medium' | 'large' | number | `${number}px` | `${number}rem` = 'medium';\n\n private get _size(): string {\n switch (this.size) {\n case 'xsmall': \n return '1rem'; \n case 'small':\n return '1.25rem';\n case 'medium':\n return '1.5rem'; \n case 'large':\n return '2rem'; \n default:\n if (String(this.size).endsWith('px') || String(this.size).endsWith('rem')) {\n return String(this.size);\n }\n if (isNaN(Number(this.size))) {\n console.warn(`Invalid size value: ${this.size}. Falling back to default size '1.5rem'.`)\n return '1.5rem';\n }\n return `${this.size}px`;\n }\n }\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=\"M6.266 4.112a9.75 9.75 0 0 1 12.636.985 9.752 9.752 0 0 1-4.638 16.38 9.75 9.75 0 0 1-6.416-.669L2.241 22.71a.75.75 0 0 1-.951-.95l1.9-5.61a9.75 9.75 0 0 1-.668-6.414 9.75 9.75 0 0 1 3.744-5.623m6.383-.345a8.251 8.251 0 0 0-7.982 11.99.75.75 0 0 1 .042.583l-1.512 4.461 4.462-1.511.073-.02a.75.75 0 0 1 .51.063 8.252 8.252 0 0 0 9.6-13.175 8.25 8.25 0 0 0-5.193-2.39\"/></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"],"mappings":";;AAOA,IAAa,IAAyB,oBAW/B,IAAA,cAA6B,EAAW;;4BAOD,4BAO0E;;CAEtH,IAAY,QAAgB;EAC1B,QAAQ,KAAK,MAAb;GACE,KAAK,UACH,OAAO;GACT,KAAK,SACH,OAAO;GACT,KAAK,UACH,OAAO;GACT,KAAK,SACH,OAAO;GACT,SAQE,OAPI,OAAO,KAAK,IAAI,EAAE,SAAS,IAAI,KAAK,OAAO,KAAK,IAAI,EAAE,SAAS,KAAK,IAC/D,OAAO,KAAK,IAAI,IAErB,MAAM,OAAO,KAAK,IAAI,CAAC,KACzB,QAAQ,KAAK,uBAAuB,KAAK,KAAK,yCAAyC,GAChF,YAEF,GAAG,KAAK,KAAK;EACxB;CACF;CAEA,SAAS;EACP,OAAO,CAAI;2EAC4D,KAAK,MAAM,YAAY,KAAK,MAAM,UAAU,KAAK,MAAM;;CAEhI;;gBAEgB,CAAG;;;;;;;;AAOnB;GA5CC,EAAS,EAAE,MAAM,OAAO,CAAC,CAAA,GAAA,EAAA,WAAA,SAAA,KAAA,CAAA,MAOzB,EAAS,EAAE,MAAM,OAAO,CAAC,CAAA,GAAA,EAAA,WAAA,QAAA,KAAA,CAAA,UAf3B,EAAc,CAAsB,CAAA,GAAA,CAAA"}
package/fhi-icon-minus.js CHANGED
@@ -1,52 +1,35 @@
1
- import { i as c, n as a, a as m, b as u, t as p } from "./property-B2Ico5CW.js";
2
- var g = Object.defineProperty, z = Object.getOwnPropertyDescriptor, h = (l, i, r, s) => {
3
- for (var e = s > 1 ? void 0 : s ? z(i, r) : i, n = l.length - 1, o; n >= 0; n--)
4
- (o = l[n]) && (e = (s ? o(i, r, e) : o(e)) || e);
5
- return s && e && g(i, r, e), e;
6
- };
7
- const f = "fhi-icon-minus";
8
- let t = class extends m {
9
- constructor() {
10
- super(...arguments), this.color = "currentcolor", this.size = "medium";
11
- }
12
- get _size() {
13
- switch (this.size) {
14
- case "xsmall":
15
- return "1rem";
16
- case "small":
17
- return "1.25rem";
18
- case "medium":
19
- return "1.5rem";
20
- case "large":
21
- return "2rem";
22
- default:
23
- return String(this.size).endsWith("px") || String(this.size).endsWith("rem") ? String(this.size) : isNaN(Number(this.size)) ? (console.warn(`Invalid size value: ${this.size}. Falling back to default size '1.5rem'.`), "1.5rem") : `${this.size}px`;
24
- }
25
- }
26
- render() {
27
- return u`
1
+ import { a as e, d as t, o as n, s as r, t as i, u as a } from "./decorate-DFXIek-k.js";
2
+ //#region src/components/icons/fhi-icon-minus.component.ts
3
+ var o = "fhi-icon-minus", s = class extends r {
4
+ constructor(...e) {
5
+ super(...e), this.color = "currentcolor", this.size = "medium";
6
+ }
7
+ get _size() {
8
+ switch (this.size) {
9
+ case "xsmall": return "1rem";
10
+ case "small": return "1.25rem";
11
+ case "medium": return "1.5rem";
12
+ case "large": return "2rem";
13
+ default: return String(this.size).endsWith("px") || String(this.size).endsWith("rem") ? String(this.size) : isNaN(Number(this.size)) ? (console.warn(`Invalid size value: ${this.size}. Falling back to default size '1.5rem'.`), "1.5rem") : `${this.size}px`;
14
+ }
15
+ }
16
+ render() {
17
+ return a`
28
18
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="${this._size}" height="${this._size}" fill="${this.color}"><path d="M19 11.25a.75.75 0 0 1 0 1.5H5a.75.75 0 0 1 0-1.5z"/></svg>
29
19
  `;
30
- }
31
- };
32
- t.styles = c`
20
+ }
21
+ static {
22
+ this.styles = t`
33
23
  :host {
34
24
  display: flex;
35
25
  max-height: min-content;
36
26
  max-width: min-content;
37
27
  }
38
28
  `;
39
- h([
40
- a({ type: String })
41
- ], t.prototype, "color", 2);
42
- h([
43
- a({ type: String })
44
- ], t.prototype, "size", 2);
45
- t = h([
46
- p(f)
47
- ], t);
48
- export {
49
- t as FhiIconMinus,
50
- f as FhiIconMinusSelector
29
+ }
51
30
  };
52
- //# sourceMappingURL=fhi-icon-minus.js.map
31
+ i([e({ type: String })], s.prototype, "color", void 0), i([e({ type: String })], s.prototype, "size", void 0), s = i([n(o)], s);
32
+ //#endregion
33
+ export { s as FhiIconMinus, o as FhiIconMinusSelector };
34
+
35
+ //# sourceMappingURL=fhi-icon-minus.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"fhi-icon-minus.js","sources":["../../src/components/icons/fhi-icon-minus.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 FhiIconMinusSelector = \"fhi-icon-minus\";\n\n/**\n * ## FhiIconMinus\n * \n * {@link https://designsystem.fhi.no/?path=/docs/ikoner--docs}\n * \n * @tag fhi-icon-minus\n * @element fhi-icon-minus\n */\n@customElement(FhiIconMinusSelector)\nexport class FhiIconMinus extends LitElement {\n\n /**\n * Sets the color for the icon.\n * Should preferably be a color token. See [Color Tokens](https://designsystem.fhi.no/?path=/docs/design-tokens-farger--docs)\n * @type {string}\n */ \n @property({ type: String }) color: string = \"currentcolor\";\n\n /**\n * Sets the size of the icon. Can be one of the predefined sizes, a number value, rem or px.\n * Number values are treated as px.\n * @type { 'xsmall' | 'small' | 'medium' | 'large' | number | string}\n */\n @property({ type: String }) size: 'xsmall' | 'small' | 'medium' | 'large' | number | `${number}px` | `${number}rem` = 'medium';\n\n private get _size(): string {\n switch (this.size) {\n case 'xsmall': \n return '1rem'; \n case 'small':\n return '1.25rem';\n case 'medium':\n return '1.5rem'; \n case 'large':\n return '2rem'; \n default:\n if (String(this.size).endsWith('px') || String(this.size).endsWith('rem')) {\n return String(this.size);\n }\n if (isNaN(Number(this.size))) {\n console.warn(`Invalid size value: ${this.size}. Falling back to default size '1.5rem'.`)\n return '1.5rem';\n }\n return `${this.size}px`;\n }\n }\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=\"M19 11.25a.75.75 0 0 1 0 1.5H5a.75.75 0 0 1 0-1.5z\"/></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":["FhiIconMinusSelector","FhiIconMinus","LitElement","html","css","__decorateClass","property","customElement"],"mappings":";;;;;;AAOO,MAAMA,IAAuB;AAW7B,IAAMC,IAAN,cAA2BC,EAAW;AAAA,EAAtC,cAAA;AAAA,UAAA,GAAA,SAAA,GAOuB,KAAA,QAAgB,gBAOhB,KAAA,OAA0F;AAAA,EAAA;AAAA,EAEtH,IAAY,QAAgB;AAC1B,YAAQ,KAAK,MAAA;AAAA,MACX,KAAK;AACH,eAAO;AAAA,MACT,KAAK;AACH,eAAO;AAAA,MACT,KAAK;AACH,eAAO;AAAA,MACT,KAAK;AACH,eAAO;AAAA,MACT;AACE,eAAI,OAAO,KAAK,IAAI,EAAE,SAAS,IAAI,KAAK,OAAO,KAAK,IAAI,EAAE,SAAS,KAAK,IAC/D,OAAO,KAAK,IAAI,IAErB,MAAM,OAAO,KAAK,IAAI,CAAC,KACzB,QAAQ,KAAK,uBAAuB,KAAK,IAAI,0CAA0C,GAChF,YAEF,GAAG,KAAK,IAAI;AAAA,IAAA;AAAA,EAEzB;AAAA,EAEA,SAAS;AACP,WAAOC;AAAAA,2EACgE,KAAK,KAAK,aAAa,KAAK,KAAK,WAAW,KAAK,KAAK;AAAA;AAAA,EAE/H;AASA;AAnDWF,EA4CJ,SAASG;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AArCYC,EAAA;AAAA,EAA3BC,EAAS,EAAE,MAAM,OAAA,CAAQ;AAAA,GAPfL,EAOiB,WAAA,SAAA,CAAA;AAOAI,EAAA;AAAA,EAA3BC,EAAS,EAAE,MAAM,OAAA,CAAQ;AAAA,GAdfL,EAciB,WAAA,QAAA,CAAA;AAdjBA,IAANI,EAAA;AAAA,EADNE,EAAcP,CAAoB;AAAA,GACtBC,CAAA;"}
1
+ {"version":3,"file":"fhi-icon-minus.js","names":[],"sources":["../../src/components/icons/fhi-icon-minus.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 FhiIconMinusSelector = \"fhi-icon-minus\";\n\n/**\n * ## FhiIconMinus\n * \n * {@link https://designsystem.fhi.no/?path=/docs/ikoner--docs}\n * \n * @tag fhi-icon-minus\n * @element fhi-icon-minus\n */\n@customElement(FhiIconMinusSelector)\nexport class FhiIconMinus extends LitElement {\n\n /**\n * Sets the color for the icon.\n * Should preferably be a color token. See [Color Tokens](https://designsystem.fhi.no/?path=/docs/design-tokens-farger--docs)\n * @type {string}\n */ \n @property({ type: String }) color: string = \"currentcolor\";\n\n /**\n * Sets the size of the icon. Can be one of the predefined sizes, a number value, rem or px.\n * Number values are treated as px.\n * @type { 'xsmall' | 'small' | 'medium' | 'large' | number | string}\n */\n @property({ type: String }) size: 'xsmall' | 'small' | 'medium' | 'large' | number | `${number}px` | `${number}rem` = 'medium';\n\n private get _size(): string {\n switch (this.size) {\n case 'xsmall': \n return '1rem'; \n case 'small':\n return '1.25rem';\n case 'medium':\n return '1.5rem'; \n case 'large':\n return '2rem'; \n default:\n if (String(this.size).endsWith('px') || String(this.size).endsWith('rem')) {\n return String(this.size);\n }\n if (isNaN(Number(this.size))) {\n console.warn(`Invalid size value: ${this.size}. Falling back to default size '1.5rem'.`)\n return '1.5rem';\n }\n return `${this.size}px`;\n }\n }\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=\"M19 11.25a.75.75 0 0 1 0 1.5H5a.75.75 0 0 1 0-1.5z\"/></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"],"mappings":";;AAOA,IAAa,IAAuB,kBAW7B,IAAA,cAA2B,EAAW;;4BAOC,4BAO0E;;CAEtH,IAAY,QAAgB;EAC1B,QAAQ,KAAK,MAAb;GACE,KAAK,UACH,OAAO;GACT,KAAK,SACH,OAAO;GACT,KAAK,UACH,OAAO;GACT,KAAK,SACH,OAAO;GACT,SAQE,OAPI,OAAO,KAAK,IAAI,EAAE,SAAS,IAAI,KAAK,OAAO,KAAK,IAAI,EAAE,SAAS,KAAK,IAC/D,OAAO,KAAK,IAAI,IAErB,MAAM,OAAO,KAAK,IAAI,CAAC,KACzB,QAAQ,KAAK,uBAAuB,KAAK,KAAK,yCAAyC,GAChF,YAEF,GAAG,KAAK,KAAK;EACxB;CACF;CAEA,SAAS;EACP,OAAO,CAAI;2EAC4D,KAAK,MAAM,YAAY,KAAK,MAAM,UAAU,KAAK,MAAM;;CAEhI;;gBAEgB,CAAG;;;;;;;;AAOnB;GA5CC,EAAS,EAAE,MAAM,OAAO,CAAC,CAAA,GAAA,EAAA,WAAA,SAAA,KAAA,CAAA,MAOzB,EAAS,EAAE,MAAM,OAAO,CAAC,CAAA,GAAA,EAAA,WAAA,QAAA,KAAA,CAAA,UAf3B,EAAc,CAAoB,CAAA,GAAA,CAAA"}
@@ -1,52 +1,35 @@
1
- import { i as h, n as c, a as m, b as u, t as p } from "./property-B2Ico5CW.js";
2
- var g = Object.defineProperty, v = Object.getOwnPropertyDescriptor, n = (o, r, s, i) => {
3
- for (var e = i > 1 ? void 0 : i ? v(r, s) : r, a = o.length - 1, l; a >= 0; a--)
4
- (l = o[a]) && (e = (i ? l(r, s, e) : l(e)) || e);
5
- return i && e && g(r, s, e), e;
6
- };
7
- const z = "fhi-icon-octagon-alert";
8
- let t = class extends m {
9
- constructor() {
10
- super(...arguments), this.color = "currentcolor", this.size = "medium";
11
- }
12
- get _size() {
13
- switch (this.size) {
14
- case "xsmall":
15
- return "1rem";
16
- case "small":
17
- return "1.25rem";
18
- case "medium":
19
- return "1.5rem";
20
- case "large":
21
- return "2rem";
22
- default:
23
- return String(this.size).endsWith("px") || String(this.size).endsWith("rem") ? String(this.size) : isNaN(Number(this.size)) ? (console.warn(`Invalid size value: ${this.size}. Falling back to default size '1.5rem'.`), "1.5rem") : `${this.size}px`;
24
- }
25
- }
26
- render() {
27
- return u`
1
+ import { a as e, d as t, o as n, s as r, t as i, u as a } from "./decorate-DFXIek-k.js";
2
+ //#region src/components/icons/fhi-icon-octagon-alert.component.ts
3
+ var o = "fhi-icon-octagon-alert", s = class extends r {
4
+ constructor(...e) {
5
+ super(...e), this.color = "currentcolor", this.size = "medium";
6
+ }
7
+ get _size() {
8
+ switch (this.size) {
9
+ case "xsmall": return "1rem";
10
+ case "small": return "1.25rem";
11
+ case "medium": return "1.5rem";
12
+ case "large": return "2rem";
13
+ default: return String(this.size).endsWith("px") || String(this.size).endsWith("rem") ? String(this.size) : isNaN(Number(this.size)) ? (console.warn(`Invalid size value: ${this.size}. Falling back to default size '1.5rem'.`), "1.5rem") : `${this.size}px`;
14
+ }
15
+ }
16
+ render() {
17
+ return a`
28
18
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="${this._size}" height="${this._size}" fill="${this.color}"><path d="M15.584 1.264a2.75 2.75 0 0 1 1.673.792h-.001l4.687 4.687h.001a2.75 2.75 0 0 1 .806 1.944v6.626a2.75 2.75 0 0 1-.806 1.944v-.001l-4.688 4.687v.001a2.75 2.75 0 0 1-1.944.806H8.689a2.75 2.75 0 0 1-1.945-.806l-4.687-4.688a2.75 2.75 0 0 1-.806-1.944V8.689l.014-.272c.062-.63.34-1.222.792-1.673l4.687-4.687a2.75 2.75 0 0 1 1.944-.806h6.626zM8.688 2.75c-.33 0-.649.132-.883.366L3.116 7.805a1.25 1.25 0 0 0-.366.883v6.624l.006.123c.028.287.155.555.36.76l4.689 4.689.091.083c.223.182.503.283.792.283h6.624c.33 0 .649-.132.883-.366l4.689-4.689.083-.091a1.25 1.25 0 0 0 .283-.792V8.688c0-.33-.132-.649-.366-.883l-4.689-4.689a1.25 1.25 0 0 0-.76-.36l-.123-.006zM12.01 15a1 1 0 1 1 0 2H12a1 1 0 1 1 0-2zM12 7.25a.75.75 0 0 1 .75.75v4a.75.75 0 0 1-1.5 0V8a.75.75 0 0 1 .75-.75"/></svg>
29
19
  `;
30
- }
31
- };
32
- t.styles = h`
20
+ }
21
+ static {
22
+ this.styles = t`
33
23
  :host {
34
24
  display: flex;
35
25
  max-height: min-content;
36
26
  max-width: min-content;
37
27
  }
38
28
  `;
39
- n([
40
- c({ type: String })
41
- ], t.prototype, "color", 2);
42
- n([
43
- c({ type: String })
44
- ], t.prototype, "size", 2);
45
- t = n([
46
- p(z)
47
- ], t);
48
- export {
49
- t as FhiIconOctagonAlert,
50
- z as FhiIconOctagonAlertSelector
29
+ }
51
30
  };
52
- //# sourceMappingURL=fhi-icon-octagon-alert.js.map
31
+ i([e({ type: String })], s.prototype, "color", void 0), i([e({ type: String })], s.prototype, "size", void 0), s = i([n(o)], s);
32
+ //#endregion
33
+ export { s as FhiIconOctagonAlert, o as FhiIconOctagonAlertSelector };
34
+
35
+ //# sourceMappingURL=fhi-icon-octagon-alert.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"fhi-icon-octagon-alert.js","sources":["../../src/components/icons/fhi-icon-octagon-alert.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 FhiIconOctagonAlertSelector = \"fhi-icon-octagon-alert\";\n\n/**\n * ## FhiIconOctagonAlert\n * \n * {@link https://designsystem.fhi.no/?path=/docs/ikoner--docs}\n * \n * @tag fhi-icon-octagon-alert\n * @element fhi-icon-octagon-alert\n */\n@customElement(FhiIconOctagonAlertSelector)\nexport class FhiIconOctagonAlert extends LitElement {\n\n /**\n * Sets the color for the icon.\n * Should preferably be a color token. See [Color Tokens](https://designsystem.fhi.no/?path=/docs/design-tokens-farger--docs)\n * @type {string}\n */ \n @property({ type: String }) color: string = \"currentcolor\";\n\n /**\n * Sets the size of the icon. Can be one of the predefined sizes, a number value, rem or px.\n * Number values are treated as px.\n * @type { 'xsmall' | 'small' | 'medium' | 'large' | number | string}\n */\n @property({ type: String }) size: 'xsmall' | 'small' | 'medium' | 'large' | number | `${number}px` | `${number}rem` = 'medium';\n\n private get _size(): string {\n switch (this.size) {\n case 'xsmall': \n return '1rem'; \n case 'small':\n return '1.25rem';\n case 'medium':\n return '1.5rem'; \n case 'large':\n return '2rem'; \n default:\n if (String(this.size).endsWith('px') || String(this.size).endsWith('rem')) {\n return String(this.size);\n }\n if (isNaN(Number(this.size))) {\n console.warn(`Invalid size value: ${this.size}. Falling back to default size '1.5rem'.`)\n return '1.5rem';\n }\n return `${this.size}px`;\n }\n }\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=\"M15.584 1.264a2.75 2.75 0 0 1 1.673.792h-.001l4.687 4.687h.001a2.75 2.75 0 0 1 .806 1.944v6.626a2.75 2.75 0 0 1-.806 1.944v-.001l-4.688 4.687v.001a2.75 2.75 0 0 1-1.944.806H8.689a2.75 2.75 0 0 1-1.945-.806l-4.687-4.688a2.75 2.75 0 0 1-.806-1.944V8.689l.014-.272c.062-.63.34-1.222.792-1.673l4.687-4.687a2.75 2.75 0 0 1 1.944-.806h6.626zM8.688 2.75c-.33 0-.649.132-.883.366L3.116 7.805a1.25 1.25 0 0 0-.366.883v6.624l.006.123c.028.287.155.555.36.76l4.689 4.689.091.083c.223.182.503.283.792.283h6.624c.33 0 .649-.132.883-.366l4.689-4.689.083-.091a1.25 1.25 0 0 0 .283-.792V8.688c0-.33-.132-.649-.366-.883l-4.689-4.689a1.25 1.25 0 0 0-.76-.36l-.123-.006zM12.01 15a1 1 0 1 1 0 2H12a1 1 0 1 1 0-2zM12 7.25a.75.75 0 0 1 .75.75v4a.75.75 0 0 1-1.5 0V8a.75.75 0 0 1 .75-.75\"/></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":["FhiIconOctagonAlertSelector","FhiIconOctagonAlert","LitElement","html","css","__decorateClass","property","customElement"],"mappings":";;;;;;AAOO,MAAMA,IAA8B;AAWpC,IAAMC,IAAN,cAAkCC,EAAW;AAAA,EAA7C,cAAA;AAAA,UAAA,GAAA,SAAA,GAOuB,KAAA,QAAgB,gBAOhB,KAAA,OAA0F;AAAA,EAAA;AAAA,EAEtH,IAAY,QAAgB;AAC1B,YAAQ,KAAK,MAAA;AAAA,MACX,KAAK;AACH,eAAO;AAAA,MACT,KAAK;AACH,eAAO;AAAA,MACT,KAAK;AACH,eAAO;AAAA,MACT,KAAK;AACH,eAAO;AAAA,MACT;AACE,eAAI,OAAO,KAAK,IAAI,EAAE,SAAS,IAAI,KAAK,OAAO,KAAK,IAAI,EAAE,SAAS,KAAK,IAC/D,OAAO,KAAK,IAAI,IAErB,MAAM,OAAO,KAAK,IAAI,CAAC,KACzB,QAAQ,KAAK,uBAAuB,KAAK,IAAI,0CAA0C,GAChF,YAEF,GAAG,KAAK,IAAI;AAAA,IAAA;AAAA,EAEzB;AAAA,EAEA,SAAS;AACP,WAAOC;AAAAA,2EACgE,KAAK,KAAK,aAAa,KAAK,KAAK,WAAW,KAAK,KAAK;AAAA;AAAA,EAE/H;AASA;AAnDWF,EA4CJ,SAASG;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AArCYC,EAAA;AAAA,EAA3BC,EAAS,EAAE,MAAM,OAAA,CAAQ;AAAA,GAPfL,EAOiB,WAAA,SAAA,CAAA;AAOAI,EAAA;AAAA,EAA3BC,EAAS,EAAE,MAAM,OAAA,CAAQ;AAAA,GAdfL,EAciB,WAAA,QAAA,CAAA;AAdjBA,IAANI,EAAA;AAAA,EADNE,EAAcP,CAA2B;AAAA,GAC7BC,CAAA;"}
1
+ {"version":3,"file":"fhi-icon-octagon-alert.js","names":[],"sources":["../../src/components/icons/fhi-icon-octagon-alert.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 FhiIconOctagonAlertSelector = \"fhi-icon-octagon-alert\";\n\n/**\n * ## FhiIconOctagonAlert\n * \n * {@link https://designsystem.fhi.no/?path=/docs/ikoner--docs}\n * \n * @tag fhi-icon-octagon-alert\n * @element fhi-icon-octagon-alert\n */\n@customElement(FhiIconOctagonAlertSelector)\nexport class FhiIconOctagonAlert extends LitElement {\n\n /**\n * Sets the color for the icon.\n * Should preferably be a color token. See [Color Tokens](https://designsystem.fhi.no/?path=/docs/design-tokens-farger--docs)\n * @type {string}\n */ \n @property({ type: String }) color: string = \"currentcolor\";\n\n /**\n * Sets the size of the icon. Can be one of the predefined sizes, a number value, rem or px.\n * Number values are treated as px.\n * @type { 'xsmall' | 'small' | 'medium' | 'large' | number | string}\n */\n @property({ type: String }) size: 'xsmall' | 'small' | 'medium' | 'large' | number | `${number}px` | `${number}rem` = 'medium';\n\n private get _size(): string {\n switch (this.size) {\n case 'xsmall': \n return '1rem'; \n case 'small':\n return '1.25rem';\n case 'medium':\n return '1.5rem'; \n case 'large':\n return '2rem'; \n default:\n if (String(this.size).endsWith('px') || String(this.size).endsWith('rem')) {\n return String(this.size);\n }\n if (isNaN(Number(this.size))) {\n console.warn(`Invalid size value: ${this.size}. Falling back to default size '1.5rem'.`)\n return '1.5rem';\n }\n return `${this.size}px`;\n }\n }\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=\"M15.584 1.264a2.75 2.75 0 0 1 1.673.792h-.001l4.687 4.687h.001a2.75 2.75 0 0 1 .806 1.944v6.626a2.75 2.75 0 0 1-.806 1.944v-.001l-4.688 4.687v.001a2.75 2.75 0 0 1-1.944.806H8.689a2.75 2.75 0 0 1-1.945-.806l-4.687-4.688a2.75 2.75 0 0 1-.806-1.944V8.689l.014-.272c.062-.63.34-1.222.792-1.673l4.687-4.687a2.75 2.75 0 0 1 1.944-.806h6.626zM8.688 2.75c-.33 0-.649.132-.883.366L3.116 7.805a1.25 1.25 0 0 0-.366.883v6.624l.006.123c.028.287.155.555.36.76l4.689 4.689.091.083c.223.182.503.283.792.283h6.624c.33 0 .649-.132.883-.366l4.689-4.689.083-.091a1.25 1.25 0 0 0 .283-.792V8.688c0-.33-.132-.649-.366-.883l-4.689-4.689a1.25 1.25 0 0 0-.76-.36l-.123-.006zM12.01 15a1 1 0 1 1 0 2H12a1 1 0 1 1 0-2zM12 7.25a.75.75 0 0 1 .75.75v4a.75.75 0 0 1-1.5 0V8a.75.75 0 0 1 .75-.75\"/></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"],"mappings":";;AAOA,IAAa,IAA8B,0BAWpC,IAAA,cAAkC,EAAW;;4BAON,4BAO0E;;CAEtH,IAAY,QAAgB;EAC1B,QAAQ,KAAK,MAAb;GACE,KAAK,UACH,OAAO;GACT,KAAK,SACH,OAAO;GACT,KAAK,UACH,OAAO;GACT,KAAK,SACH,OAAO;GACT,SAQE,OAPI,OAAO,KAAK,IAAI,EAAE,SAAS,IAAI,KAAK,OAAO,KAAK,IAAI,EAAE,SAAS,KAAK,IAC/D,OAAO,KAAK,IAAI,IAErB,MAAM,OAAO,KAAK,IAAI,CAAC,KACzB,QAAQ,KAAK,uBAAuB,KAAK,KAAK,yCAAyC,GAChF,YAEF,GAAG,KAAK,KAAK;EACxB;CACF;CAEA,SAAS;EACP,OAAO,CAAI;2EAC4D,KAAK,MAAM,YAAY,KAAK,MAAM,UAAU,KAAK,MAAM;;CAEhI;;gBAEgB,CAAG;;;;;;;;AAOnB;GA5CC,EAAS,EAAE,MAAM,OAAO,CAAC,CAAA,GAAA,EAAA,WAAA,SAAA,KAAA,CAAA,MAOzB,EAAS,EAAE,MAAM,OAAO,CAAC,CAAA,GAAA,EAAA,WAAA,QAAA,KAAA,CAAA,UAf3B,EAAc,CAA2B,CAAA,GAAA,CAAA"}
@@ -1,52 +1,35 @@
1
- import { i as h, n as a, a as p, b as m, t as u } from "./property-B2Ico5CW.js";
2
- var g = Object.defineProperty, z = Object.getOwnPropertyDescriptor, c = (o, r, s, i) => {
3
- for (var e = i > 1 ? void 0 : i ? z(r, s) : r, l = o.length - 1, n; l >= 0; l--)
4
- (n = o[l]) && (e = (i ? n(r, s, e) : n(e)) || e);
5
- return i && e && g(r, s, e), e;
6
- };
7
- const f = "fhi-icon-paperclip";
8
- let t = class extends p {
9
- constructor() {
10
- super(...arguments), this.color = "currentcolor", this.size = "medium";
11
- }
12
- get _size() {
13
- switch (this.size) {
14
- case "xsmall":
15
- return "1rem";
16
- case "small":
17
- return "1.25rem";
18
- case "medium":
19
- return "1.5rem";
20
- case "large":
21
- return "2rem";
22
- default:
23
- return String(this.size).endsWith("px") || String(this.size).endsWith("rem") ? String(this.size) : isNaN(Number(this.size)) ? (console.warn(`Invalid size value: ${this.size}. Falling back to default size '1.5rem'.`), "1.5rem") : `${this.size}px`;
24
- }
25
- }
26
- render() {
27
- return m`
1
+ import { a as e, d as t, o as n, s as r, t as i, u as a } from "./decorate-DFXIek-k.js";
2
+ //#region src/components/icons/fhi-icon-paperclip.component.ts
3
+ var o = "fhi-icon-paperclip", s = class extends r {
4
+ constructor(...e) {
5
+ super(...e), this.color = "currentcolor", this.size = "medium";
6
+ }
7
+ get _size() {
8
+ switch (this.size) {
9
+ case "xsmall": return "1rem";
10
+ case "small": return "1.25rem";
11
+ case "medium": return "1.5rem";
12
+ case "large": return "2rem";
13
+ default: return String(this.size).endsWith("px") || String(this.size).endsWith("rem") ? String(this.size) : isNaN(Number(this.size)) ? (console.warn(`Invalid size value: ${this.size}. Falling back to default size '1.5rem'.`), "1.5rem") : `${this.size}px`;
14
+ }
15
+ }
16
+ render() {
17
+ return a`
28
18
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="${this._size}" height="${this._size}" fill="${this.color}"><path d="M15.731 1.439c1.269.074 2.436.668 3.3 1.53.862.864 1.456 2.031 1.53 3.3.071 1.206-.331 2.451-1.324 3.545l-.207.216-8.5 8.5c-.644.644-1.412.919-2.168.874-.737-.043-1.404-.386-1.892-.873-.488-.488-.831-1.156-.874-1.893-.045-.756.23-1.524.874-2.168l8.5-8.5a.75.75 0 1 1 1.06 1.06l-8.5 8.5c-.356.357-.455.713-.437 1.02.019.325.175.658.437.92s.595.418.92.438c.307.017.664-.082 1.02-.438l8.5-8.5.154-.161c.737-.81.986-1.667.94-2.452-.05-.857-.457-1.69-1.094-2.327s-1.47-1.044-2.327-1.094c-.785-.046-1.642.203-2.452.94l-.16.155-8.5 8.5c-1.357 1.355-1.831 2.837-1.75 4.207.08 1.387.737 2.72 1.75 3.732 1.011 1.012 2.344 1.668 3.732 1.75 1.369.08 2.85-.394 4.207-1.75l9.5-9.5a.75.75 0 1 1 1.06 1.06l-9.5 9.5c-1.644 1.644-3.537 2.294-5.355 2.187-1.8-.106-3.467-.948-4.705-2.186s-2.081-2.906-2.187-4.706c-.107-1.818.543-3.711 2.187-5.355l8.5-8.5.216-.207c1.094-.993 2.339-1.395 3.545-1.324"/></svg>
29
19
  `;
30
- }
31
- };
32
- t.styles = h`
20
+ }
21
+ static {
22
+ this.styles = t`
33
23
  :host {
34
24
  display: flex;
35
25
  max-height: min-content;
36
26
  max-width: min-content;
37
27
  }
38
28
  `;
39
- c([
40
- a({ type: String })
41
- ], t.prototype, "color", 2);
42
- c([
43
- a({ type: String })
44
- ], t.prototype, "size", 2);
45
- t = c([
46
- u(f)
47
- ], t);
48
- export {
49
- t as FhiIconPaperclip,
50
- f as FhiIconPaperclipSelector
29
+ }
51
30
  };
52
- //# sourceMappingURL=fhi-icon-paperclip.js.map
31
+ i([e({ type: String })], s.prototype, "color", void 0), i([e({ type: String })], s.prototype, "size", void 0), s = i([n(o)], s);
32
+ //#endregion
33
+ export { s as FhiIconPaperclip, o as FhiIconPaperclipSelector };
34
+
35
+ //# sourceMappingURL=fhi-icon-paperclip.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"fhi-icon-paperclip.js","sources":["../../src/components/icons/fhi-icon-paperclip.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 FhiIconPaperclipSelector = \"fhi-icon-paperclip\";\n\n/**\n * ## FhiIconPaperclip\n * \n * {@link https://designsystem.fhi.no/?path=/docs/ikoner--docs}\n * \n * @tag fhi-icon-paperclip\n * @element fhi-icon-paperclip\n */\n@customElement(FhiIconPaperclipSelector)\nexport class FhiIconPaperclip extends LitElement {\n\n /**\n * Sets the color for the icon.\n * Should preferably be a color token. See [Color Tokens](https://designsystem.fhi.no/?path=/docs/design-tokens-farger--docs)\n * @type {string}\n */ \n @property({ type: String }) color: string = \"currentcolor\";\n\n /**\n * Sets the size of the icon. Can be one of the predefined sizes, a number value, rem or px.\n * Number values are treated as px.\n * @type { 'xsmall' | 'small' | 'medium' | 'large' | number | string}\n */\n @property({ type: String }) size: 'xsmall' | 'small' | 'medium' | 'large' | number | `${number}px` | `${number}rem` = 'medium';\n\n private get _size(): string {\n switch (this.size) {\n case 'xsmall': \n return '1rem'; \n case 'small':\n return '1.25rem';\n case 'medium':\n return '1.5rem'; \n case 'large':\n return '2rem'; \n default:\n if (String(this.size).endsWith('px') || String(this.size).endsWith('rem')) {\n return String(this.size);\n }\n if (isNaN(Number(this.size))) {\n console.warn(`Invalid size value: ${this.size}. Falling back to default size '1.5rem'.`)\n return '1.5rem';\n }\n return `${this.size}px`;\n }\n }\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=\"M15.731 1.439c1.269.074 2.436.668 3.3 1.53.862.864 1.456 2.031 1.53 3.3.071 1.206-.331 2.451-1.324 3.545l-.207.216-8.5 8.5c-.644.644-1.412.919-2.168.874-.737-.043-1.404-.386-1.892-.873-.488-.488-.831-1.156-.874-1.893-.045-.756.23-1.524.874-2.168l8.5-8.5a.75.75 0 1 1 1.06 1.06l-8.5 8.5c-.356.357-.455.713-.437 1.02.019.325.175.658.437.92s.595.418.92.438c.307.017.664-.082 1.02-.438l8.5-8.5.154-.161c.737-.81.986-1.667.94-2.452-.05-.857-.457-1.69-1.094-2.327s-1.47-1.044-2.327-1.094c-.785-.046-1.642.203-2.452.94l-.16.155-8.5 8.5c-1.357 1.355-1.831 2.837-1.75 4.207.08 1.387.737 2.72 1.75 3.732 1.011 1.012 2.344 1.668 3.732 1.75 1.369.08 2.85-.394 4.207-1.75l9.5-9.5a.75.75 0 1 1 1.06 1.06l-9.5 9.5c-1.644 1.644-3.537 2.294-5.355 2.187-1.8-.106-3.467-.948-4.705-2.186s-2.081-2.906-2.187-4.706c-.107-1.818.543-3.711 2.187-5.355l8.5-8.5.216-.207c1.094-.993 2.339-1.395 3.545-1.324\"/></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":["FhiIconPaperclipSelector","FhiIconPaperclip","LitElement","html","css","__decorateClass","property","customElement"],"mappings":";;;;;;AAOO,MAAMA,IAA2B;AAWjC,IAAMC,IAAN,cAA+BC,EAAW;AAAA,EAA1C,cAAA;AAAA,UAAA,GAAA,SAAA,GAOuB,KAAA,QAAgB,gBAOhB,KAAA,OAA0F;AAAA,EAAA;AAAA,EAEtH,IAAY,QAAgB;AAC1B,YAAQ,KAAK,MAAA;AAAA,MACX,KAAK;AACH,eAAO;AAAA,MACT,KAAK;AACH,eAAO;AAAA,MACT,KAAK;AACH,eAAO;AAAA,MACT,KAAK;AACH,eAAO;AAAA,MACT;AACE,eAAI,OAAO,KAAK,IAAI,EAAE,SAAS,IAAI,KAAK,OAAO,KAAK,IAAI,EAAE,SAAS,KAAK,IAC/D,OAAO,KAAK,IAAI,IAErB,MAAM,OAAO,KAAK,IAAI,CAAC,KACzB,QAAQ,KAAK,uBAAuB,KAAK,IAAI,0CAA0C,GAChF,YAEF,GAAG,KAAK,IAAI;AAAA,IAAA;AAAA,EAEzB;AAAA,EAEA,SAAS;AACP,WAAOC;AAAAA,2EACgE,KAAK,KAAK,aAAa,KAAK,KAAK,WAAW,KAAK,KAAK;AAAA;AAAA,EAE/H;AASA;AAnDWF,EA4CJ,SAASG;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AArCYC,EAAA;AAAA,EAA3BC,EAAS,EAAE,MAAM,OAAA,CAAQ;AAAA,GAPfL,EAOiB,WAAA,SAAA,CAAA;AAOAI,EAAA;AAAA,EAA3BC,EAAS,EAAE,MAAM,OAAA,CAAQ;AAAA,GAdfL,EAciB,WAAA,QAAA,CAAA;AAdjBA,IAANI,EAAA;AAAA,EADNE,EAAcP,CAAwB;AAAA,GAC1BC,CAAA;"}
1
+ {"version":3,"file":"fhi-icon-paperclip.js","names":[],"sources":["../../src/components/icons/fhi-icon-paperclip.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 FhiIconPaperclipSelector = \"fhi-icon-paperclip\";\n\n/**\n * ## FhiIconPaperclip\n * \n * {@link https://designsystem.fhi.no/?path=/docs/ikoner--docs}\n * \n * @tag fhi-icon-paperclip\n * @element fhi-icon-paperclip\n */\n@customElement(FhiIconPaperclipSelector)\nexport class FhiIconPaperclip extends LitElement {\n\n /**\n * Sets the color for the icon.\n * Should preferably be a color token. See [Color Tokens](https://designsystem.fhi.no/?path=/docs/design-tokens-farger--docs)\n * @type {string}\n */ \n @property({ type: String }) color: string = \"currentcolor\";\n\n /**\n * Sets the size of the icon. Can be one of the predefined sizes, a number value, rem or px.\n * Number values are treated as px.\n * @type { 'xsmall' | 'small' | 'medium' | 'large' | number | string}\n */\n @property({ type: String }) size: 'xsmall' | 'small' | 'medium' | 'large' | number | `${number}px` | `${number}rem` = 'medium';\n\n private get _size(): string {\n switch (this.size) {\n case 'xsmall': \n return '1rem'; \n case 'small':\n return '1.25rem';\n case 'medium':\n return '1.5rem'; \n case 'large':\n return '2rem'; \n default:\n if (String(this.size).endsWith('px') || String(this.size).endsWith('rem')) {\n return String(this.size);\n }\n if (isNaN(Number(this.size))) {\n console.warn(`Invalid size value: ${this.size}. Falling back to default size '1.5rem'.`)\n return '1.5rem';\n }\n return `${this.size}px`;\n }\n }\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=\"M15.731 1.439c1.269.074 2.436.668 3.3 1.53.862.864 1.456 2.031 1.53 3.3.071 1.206-.331 2.451-1.324 3.545l-.207.216-8.5 8.5c-.644.644-1.412.919-2.168.874-.737-.043-1.404-.386-1.892-.873-.488-.488-.831-1.156-.874-1.893-.045-.756.23-1.524.874-2.168l8.5-8.5a.75.75 0 1 1 1.06 1.06l-8.5 8.5c-.356.357-.455.713-.437 1.02.019.325.175.658.437.92s.595.418.92.438c.307.017.664-.082 1.02-.438l8.5-8.5.154-.161c.737-.81.986-1.667.94-2.452-.05-.857-.457-1.69-1.094-2.327s-1.47-1.044-2.327-1.094c-.785-.046-1.642.203-2.452.94l-.16.155-8.5 8.5c-1.357 1.355-1.831 2.837-1.75 4.207.08 1.387.737 2.72 1.75 3.732 1.011 1.012 2.344 1.668 3.732 1.75 1.369.08 2.85-.394 4.207-1.75l9.5-9.5a.75.75 0 1 1 1.06 1.06l-9.5 9.5c-1.644 1.644-3.537 2.294-5.355 2.187-1.8-.106-3.467-.948-4.705-2.186s-2.081-2.906-2.187-4.706c-.107-1.818.543-3.711 2.187-5.355l8.5-8.5.216-.207c1.094-.993 2.339-1.395 3.545-1.324\"/></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"],"mappings":";;AAOA,IAAa,IAA2B,sBAWjC,IAAA,cAA+B,EAAW;;4BAOH,4BAO0E;;CAEtH,IAAY,QAAgB;EAC1B,QAAQ,KAAK,MAAb;GACE,KAAK,UACH,OAAO;GACT,KAAK,SACH,OAAO;GACT,KAAK,UACH,OAAO;GACT,KAAK,SACH,OAAO;GACT,SAQE,OAPI,OAAO,KAAK,IAAI,EAAE,SAAS,IAAI,KAAK,OAAO,KAAK,IAAI,EAAE,SAAS,KAAK,IAC/D,OAAO,KAAK,IAAI,IAErB,MAAM,OAAO,KAAK,IAAI,CAAC,KACzB,QAAQ,KAAK,uBAAuB,KAAK,KAAK,yCAAyC,GAChF,YAEF,GAAG,KAAK,KAAK;EACxB;CACF;CAEA,SAAS;EACP,OAAO,CAAI;2EAC4D,KAAK,MAAM,YAAY,KAAK,MAAM,UAAU,KAAK,MAAM;;CAEhI;;gBAEgB,CAAG;;;;;;;;AAOnB;GA5CC,EAAS,EAAE,MAAM,OAAO,CAAC,CAAA,GAAA,EAAA,WAAA,SAAA,KAAA,CAAA,MAOzB,EAAS,EAAE,MAAM,OAAO,CAAC,CAAA,GAAA,EAAA,WAAA,QAAA,KAAA,CAAA,UAf3B,EAAc,CAAwB,CAAA,GAAA,CAAA"}
@@ -1,52 +1,35 @@
1
- import { i as h, n as c, a as m, b as p, t as u } from "./property-B2Ico5CW.js";
2
- var g = Object.defineProperty, z = Object.getOwnPropertyDescriptor, a = (o, i, s, r) => {
3
- for (var e = r > 1 ? void 0 : r ? z(i, s) : i, n = o.length - 1, l; n >= 0; n--)
4
- (l = o[n]) && (e = (r ? l(i, s, e) : l(e)) || e);
5
- return r && e && g(i, s, e), e;
6
- };
7
- const f = "fhi-icon-pencil";
8
- let t = class extends m {
9
- constructor() {
10
- super(...arguments), this.color = "currentcolor", this.size = "medium";
11
- }
12
- get _size() {
13
- switch (this.size) {
14
- case "xsmall":
15
- return "1rem";
16
- case "small":
17
- return "1.25rem";
18
- case "medium":
19
- return "1.5rem";
20
- case "large":
21
- return "2rem";
22
- default:
23
- return String(this.size).endsWith("px") || String(this.size).endsWith("rem") ? String(this.size) : isNaN(Number(this.size)) ? (console.warn(`Invalid size value: ${this.size}. Falling back to default size '1.5rem'.`), "1.5rem") : `${this.size}px`;
24
- }
25
- }
26
- render() {
27
- return p`
1
+ import { a as e, d as t, o as n, s as r, t as i, u as a } from "./decorate-DFXIek-k.js";
2
+ //#region src/components/icons/fhi-icon-pencil.component.ts
3
+ var o = "fhi-icon-pencil", s = class extends r {
4
+ constructor(...e) {
5
+ super(...e), this.color = "currentcolor", this.size = "medium";
6
+ }
7
+ get _size() {
8
+ switch (this.size) {
9
+ case "xsmall": return "1rem";
10
+ case "small": return "1.25rem";
11
+ case "medium": return "1.5rem";
12
+ case "large": return "2rem";
13
+ default: return String(this.size).endsWith("px") || String(this.size).endsWith("rem") ? String(this.size) : isNaN(Number(this.size)) ? (console.warn(`Invalid size value: ${this.size}. Falling back to default size '1.5rem'.`), "1.5rem") : `${this.size}px`;
14
+ }
15
+ }
16
+ render() {
17
+ return a`
28
18
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="${this._size}" height="${this._size}" fill="${this.color}"><path d="M19.182 1.25a3.57 3.57 0 0 1 2.644 5.965l-.122.128-2.1 2.1a1 1 0 0 1-.074.087 1 1 0 0 1-.09.075L8.359 20.691l-.001.001a2.75 2.75 0 0 1-.982.63l-.16.054-4.354 1.32H2.86a1.25 1.25 0 0 1-1.556-1.554v-.003l1.321-4.353.001-.002a2.75 2.75 0 0 1 .688-1.14L14.396 4.556a.8.8 0 0 1 .159-.159l2.102-2.102a3.57 3.57 0 0 1 2.525-1.045M4.372 16.705a1.25 1.25 0 0 0-.313.517l-1.185 3.902 3.904-1.184c.196-.06.375-.166.52-.31L17.933 8.993l-2.926-2.926zM19.182 2.75a2.07 2.07 0 0 0-1.463.605l-1.652 1.652 2.926 2.926 1.65-1.65a2.07 2.07 0 0 0-1.461-3.533"/></svg>
29
19
  `;
30
- }
31
- };
32
- t.styles = h`
20
+ }
21
+ static {
22
+ this.styles = t`
33
23
  :host {
34
24
  display: flex;
35
25
  max-height: min-content;
36
26
  max-width: min-content;
37
27
  }
38
28
  `;
39
- a([
40
- c({ type: String })
41
- ], t.prototype, "color", 2);
42
- a([
43
- c({ type: String })
44
- ], t.prototype, "size", 2);
45
- t = a([
46
- u(f)
47
- ], t);
48
- export {
49
- t as FhiIconPencil,
50
- f as FhiIconPencilSelector
29
+ }
51
30
  };
52
- //# sourceMappingURL=fhi-icon-pencil.js.map
31
+ i([e({ type: String })], s.prototype, "color", void 0), i([e({ type: String })], s.prototype, "size", void 0), s = i([n(o)], s);
32
+ //#endregion
33
+ export { s as FhiIconPencil, o as FhiIconPencilSelector };
34
+
35
+ //# sourceMappingURL=fhi-icon-pencil.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"fhi-icon-pencil.js","sources":["../../src/components/icons/fhi-icon-pencil.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 FhiIconPencilSelector = \"fhi-icon-pencil\";\n\n/**\n * ## FhiIconPencil\n * \n * {@link https://designsystem.fhi.no/?path=/docs/ikoner--docs}\n * \n * @tag fhi-icon-pencil\n * @element fhi-icon-pencil\n */\n@customElement(FhiIconPencilSelector)\nexport class FhiIconPencil extends LitElement {\n\n /**\n * Sets the color for the icon.\n * Should preferably be a color token. See [Color Tokens](https://designsystem.fhi.no/?path=/docs/design-tokens-farger--docs)\n * @type {string}\n */ \n @property({ type: String }) color: string = \"currentcolor\";\n\n /**\n * Sets the size of the icon. Can be one of the predefined sizes, a number value, rem or px.\n * Number values are treated as px.\n * @type { 'xsmall' | 'small' | 'medium' | 'large' | number | string}\n */\n @property({ type: String }) size: 'xsmall' | 'small' | 'medium' | 'large' | number | `${number}px` | `${number}rem` = 'medium';\n\n private get _size(): string {\n switch (this.size) {\n case 'xsmall': \n return '1rem'; \n case 'small':\n return '1.25rem';\n case 'medium':\n return '1.5rem'; \n case 'large':\n return '2rem'; \n default:\n if (String(this.size).endsWith('px') || String(this.size).endsWith('rem')) {\n return String(this.size);\n }\n if (isNaN(Number(this.size))) {\n console.warn(`Invalid size value: ${this.size}. Falling back to default size '1.5rem'.`)\n return '1.5rem';\n }\n return `${this.size}px`;\n }\n }\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=\"M19.182 1.25a3.57 3.57 0 0 1 2.644 5.965l-.122.128-2.1 2.1a1 1 0 0 1-.074.087 1 1 0 0 1-.09.075L8.359 20.691l-.001.001a2.75 2.75 0 0 1-.982.63l-.16.054-4.354 1.32H2.86a1.25 1.25 0 0 1-1.556-1.554v-.003l1.321-4.353.001-.002a2.75 2.75 0 0 1 .688-1.14L14.396 4.556a.8.8 0 0 1 .159-.159l2.102-2.102a3.57 3.57 0 0 1 2.525-1.045M4.372 16.705a1.25 1.25 0 0 0-.313.517l-1.185 3.902 3.904-1.184c.196-.06.375-.166.52-.31L17.933 8.993l-2.926-2.926zM19.182 2.75a2.07 2.07 0 0 0-1.463.605l-1.652 1.652 2.926 2.926 1.65-1.65a2.07 2.07 0 0 0-1.461-3.533\"/></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":["FhiIconPencilSelector","FhiIconPencil","LitElement","html","css","__decorateClass","property","customElement"],"mappings":";;;;;;AAOO,MAAMA,IAAwB;AAW9B,IAAMC,IAAN,cAA4BC,EAAW;AAAA,EAAvC,cAAA;AAAA,UAAA,GAAA,SAAA,GAOuB,KAAA,QAAgB,gBAOhB,KAAA,OAA0F;AAAA,EAAA;AAAA,EAEtH,IAAY,QAAgB;AAC1B,YAAQ,KAAK,MAAA;AAAA,MACX,KAAK;AACH,eAAO;AAAA,MACT,KAAK;AACH,eAAO;AAAA,MACT,KAAK;AACH,eAAO;AAAA,MACT,KAAK;AACH,eAAO;AAAA,MACT;AACE,eAAI,OAAO,KAAK,IAAI,EAAE,SAAS,IAAI,KAAK,OAAO,KAAK,IAAI,EAAE,SAAS,KAAK,IAC/D,OAAO,KAAK,IAAI,IAErB,MAAM,OAAO,KAAK,IAAI,CAAC,KACzB,QAAQ,KAAK,uBAAuB,KAAK,IAAI,0CAA0C,GAChF,YAEF,GAAG,KAAK,IAAI;AAAA,IAAA;AAAA,EAEzB;AAAA,EAEA,SAAS;AACP,WAAOC;AAAAA,2EACgE,KAAK,KAAK,aAAa,KAAK,KAAK,WAAW,KAAK,KAAK;AAAA;AAAA,EAE/H;AASA;AAnDWF,EA4CJ,SAASG;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AArCYC,EAAA;AAAA,EAA3BC,EAAS,EAAE,MAAM,OAAA,CAAQ;AAAA,GAPfL,EAOiB,WAAA,SAAA,CAAA;AAOAI,EAAA;AAAA,EAA3BC,EAAS,EAAE,MAAM,OAAA,CAAQ;AAAA,GAdfL,EAciB,WAAA,QAAA,CAAA;AAdjBA,IAANI,EAAA;AAAA,EADNE,EAAcP,CAAqB;AAAA,GACvBC,CAAA;"}
1
+ {"version":3,"file":"fhi-icon-pencil.js","names":[],"sources":["../../src/components/icons/fhi-icon-pencil.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 FhiIconPencilSelector = \"fhi-icon-pencil\";\n\n/**\n * ## FhiIconPencil\n * \n * {@link https://designsystem.fhi.no/?path=/docs/ikoner--docs}\n * \n * @tag fhi-icon-pencil\n * @element fhi-icon-pencil\n */\n@customElement(FhiIconPencilSelector)\nexport class FhiIconPencil extends LitElement {\n\n /**\n * Sets the color for the icon.\n * Should preferably be a color token. See [Color Tokens](https://designsystem.fhi.no/?path=/docs/design-tokens-farger--docs)\n * @type {string}\n */ \n @property({ type: String }) color: string = \"currentcolor\";\n\n /**\n * Sets the size of the icon. Can be one of the predefined sizes, a number value, rem or px.\n * Number values are treated as px.\n * @type { 'xsmall' | 'small' | 'medium' | 'large' | number | string}\n */\n @property({ type: String }) size: 'xsmall' | 'small' | 'medium' | 'large' | number | `${number}px` | `${number}rem` = 'medium';\n\n private get _size(): string {\n switch (this.size) {\n case 'xsmall': \n return '1rem'; \n case 'small':\n return '1.25rem';\n case 'medium':\n return '1.5rem'; \n case 'large':\n return '2rem'; \n default:\n if (String(this.size).endsWith('px') || String(this.size).endsWith('rem')) {\n return String(this.size);\n }\n if (isNaN(Number(this.size))) {\n console.warn(`Invalid size value: ${this.size}. Falling back to default size '1.5rem'.`)\n return '1.5rem';\n }\n return `${this.size}px`;\n }\n }\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=\"M19.182 1.25a3.57 3.57 0 0 1 2.644 5.965l-.122.128-2.1 2.1a1 1 0 0 1-.074.087 1 1 0 0 1-.09.075L8.359 20.691l-.001.001a2.75 2.75 0 0 1-.982.63l-.16.054-4.354 1.32H2.86a1.25 1.25 0 0 1-1.556-1.554v-.003l1.321-4.353.001-.002a2.75 2.75 0 0 1 .688-1.14L14.396 4.556a.8.8 0 0 1 .159-.159l2.102-2.102a3.57 3.57 0 0 1 2.525-1.045M4.372 16.705a1.25 1.25 0 0 0-.313.517l-1.185 3.902 3.904-1.184c.196-.06.375-.166.52-.31L17.933 8.993l-2.926-2.926zM19.182 2.75a2.07 2.07 0 0 0-1.463.605l-1.652 1.652 2.926 2.926 1.65-1.65a2.07 2.07 0 0 0-1.461-3.533\"/></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"],"mappings":";;AAOA,IAAa,IAAwB,mBAW9B,IAAA,cAA4B,EAAW;;4BAOA,4BAO0E;;CAEtH,IAAY,QAAgB;EAC1B,QAAQ,KAAK,MAAb;GACE,KAAK,UACH,OAAO;GACT,KAAK,SACH,OAAO;GACT,KAAK,UACH,OAAO;GACT,KAAK,SACH,OAAO;GACT,SAQE,OAPI,OAAO,KAAK,IAAI,EAAE,SAAS,IAAI,KAAK,OAAO,KAAK,IAAI,EAAE,SAAS,KAAK,IAC/D,OAAO,KAAK,IAAI,IAErB,MAAM,OAAO,KAAK,IAAI,CAAC,KACzB,QAAQ,KAAK,uBAAuB,KAAK,KAAK,yCAAyC,GAChF,YAEF,GAAG,KAAK,KAAK;EACxB;CACF;CAEA,SAAS;EACP,OAAO,CAAI;2EAC4D,KAAK,MAAM,YAAY,KAAK,MAAM,UAAU,KAAK,MAAM;;CAEhI;;gBAEgB,CAAG;;;;;;;;AAOnB;GA5CC,EAAS,EAAE,MAAM,OAAO,CAAC,CAAA,GAAA,EAAA,WAAA,SAAA,KAAA,CAAA,MAOzB,EAAS,EAAE,MAAM,OAAO,CAAC,CAAA,GAAA,EAAA,WAAA,QAAA,KAAA,CAAA,UAf3B,EAAc,CAAqB,CAAA,GAAA,CAAA"}
package/fhi-icon-phone.js CHANGED
@@ -1,52 +1,35 @@
1
- import { i as c, n as h, a as m, b as p, t as u } from "./property-B2Ico5CW.js";
2
- var z = Object.defineProperty, g = Object.getOwnPropertyDescriptor, n = (o, r, s, i) => {
3
- for (var e = i > 1 ? void 0 : i ? g(r, s) : r, a = o.length - 1, l; a >= 0; a--)
4
- (l = o[a]) && (e = (i ? l(r, s, e) : l(e)) || e);
5
- return i && e && z(r, s, e), e;
6
- };
7
- const v = "fhi-icon-phone";
8
- let t = class extends m {
9
- constructor() {
10
- super(...arguments), this.color = "currentcolor", this.size = "medium";
11
- }
12
- get _size() {
13
- switch (this.size) {
14
- case "xsmall":
15
- return "1rem";
16
- case "small":
17
- return "1.25rem";
18
- case "medium":
19
- return "1.5rem";
20
- case "large":
21
- return "2rem";
22
- default:
23
- return String(this.size).endsWith("px") || String(this.size).endsWith("rem") ? String(this.size) : isNaN(Number(this.size)) ? (console.warn(`Invalid size value: ${this.size}. Falling back to default size '1.5rem'.`), "1.5rem") : `${this.size}px`;
24
- }
25
- }
26
- render() {
27
- return p`
1
+ import { a as e, d as t, o as n, s as r, t as i, u as a } from "./decorate-DFXIek-k.js";
2
+ //#region src/components/icons/fhi-icon-phone.component.ts
3
+ var o = "fhi-icon-phone", s = class extends r {
4
+ constructor(...e) {
5
+ super(...e), this.color = "currentcolor", this.size = "medium";
6
+ }
7
+ get _size() {
8
+ switch (this.size) {
9
+ case "xsmall": return "1rem";
10
+ case "small": return "1.25rem";
11
+ case "medium": return "1.5rem";
12
+ case "large": return "2rem";
13
+ default: return String(this.size).endsWith("px") || String(this.size).endsWith("rem") ? String(this.size) : isNaN(Number(this.size)) ? (console.warn(`Invalid size value: ${this.size}. Falling back to default size '1.5rem'.`), "1.5rem") : `${this.size}px`;
14
+ }
15
+ }
16
+ render() {
17
+ return a`
28
18
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="${this._size}" height="${this._size}" fill="${this.color}"><path d="M7.11 1.251a2.75 2.75 0 0 1 2.696 2.12l.047.244v.007c.119.904.34 1.79.659 2.645l.062.185a2.75 2.75 0 0 1-.681 2.715l-.003.004-.858.856a15.25 15.25 0 0 0 4.94 4.94l.86-.86a2.75 2.75 0 0 1 2.899-.62c.748.28 1.521.483 2.308.61l.34.05h.005a2.75 2.75 0 0 1 2.365 2.773v2.997a2.75 2.75 0 0 1-.89 2.038 2.75 2.75 0 0 1-2.107.712l-.014-.001a20.54 20.54 0 0 1-8.95-3.183l-.467-.305a20.25 20.25 0 0 1-5.761-5.921A20.54 20.54 0 0 1 1.374 4.26l-.002-.012A2.755 2.755 0 0 1 3 1.484a2.75 2.75 0 0 1 1.11-.234zM3.98 2.757a1.253 1.253 0 0 0-1.115 1.35 19 19 0 0 0 2.657 7.86l.297.475.003.006a18.75 18.75 0 0 0 5.338 5.487l.432.282.006.004a19.04 19.04 0 0 0 8.288 2.952 1.26 1.26 0 0 0 .959-.323 1.25 1.25 0 0 0 .404-.927V16.92l.001-.019a1.25 1.25 0 0 0-1.075-1.268v-.001a13.6 13.6 0 0 1-2.968-.74h-.002a1.25 1.25 0 0 0-1.318.282L14.62 16.44a.75.75 0 0 1-.901.122 16.75 16.75 0 0 1-6.281-6.28.75.75 0 0 1 .122-.902l1.27-1.27a1.25 1.25 0 0 0 .278-1.316l-.001-.002a13.6 13.6 0 0 1-.74-2.967l-.021-.111a1.25 1.25 0 0 0-1.229-.964H4.11z"/></svg>
29
19
  `;
30
- }
31
- };
32
- t.styles = c`
20
+ }
21
+ static {
22
+ this.styles = t`
33
23
  :host {
34
24
  display: flex;
35
25
  max-height: min-content;
36
26
  max-width: min-content;
37
27
  }
38
28
  `;
39
- n([
40
- h({ type: String })
41
- ], t.prototype, "color", 2);
42
- n([
43
- h({ type: String })
44
- ], t.prototype, "size", 2);
45
- t = n([
46
- u(v)
47
- ], t);
48
- export {
49
- t as FhiIconPhone,
50
- v as FhiIconPhoneSelector
29
+ }
51
30
  };
52
- //# sourceMappingURL=fhi-icon-phone.js.map
31
+ i([e({ type: String })], s.prototype, "color", void 0), i([e({ type: String })], s.prototype, "size", void 0), s = i([n(o)], s);
32
+ //#endregion
33
+ export { s as FhiIconPhone, o as FhiIconPhoneSelector };
34
+
35
+ //# sourceMappingURL=fhi-icon-phone.js.map