@folkehelseinstituttet/designsystem 0.40.0 → 0.40.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/decorate-DFXIek-k.js +611 -0
- package/decorate-DFXIek-k.js.map +1 -0
- package/fhi-body.js +23 -32
- package/fhi-body.js.map +1 -1
- package/fhi-button.js +90 -112
- package/fhi-button.js.map +1 -1
- package/fhi-checkbox.js +53 -66
- package/fhi-checkbox.js.map +1 -1
- package/fhi-data-table-cell.js +23 -29
- package/fhi-data-table-cell.js.map +1 -1
- package/fhi-data-table-row.js +40 -65
- package/fhi-data-table-row.js.map +1 -1
- package/fhi-data-table.js +30 -36
- package/fhi-data-table.js.map +1 -1
- package/fhi-date-input.component-Bus7CeKM.js +278 -0
- package/fhi-date-input.component-Bus7CeKM.js.map +1 -0
- package/fhi-date-input.js +2 -305
- package/fhi-display.js +29 -46
- package/fhi-display.js.map +1 -1
- package/fhi-flex.js +40 -50
- package/fhi-flex.js.map +1 -1
- package/fhi-grid.js +30 -46
- package/fhi-grid.js.map +1 -1
- package/fhi-headline.js +29 -46
- package/fhi-headline.js.map +1 -1
- package/fhi-icon-arrow-down-left.js +26 -43
- package/fhi-icon-arrow-down-left.js.map +1 -1
- package/fhi-icon-arrow-down-right.js +26 -43
- package/fhi-icon-arrow-down-right.js.map +1 -1
- package/fhi-icon-arrow-down.js +26 -43
- package/fhi-icon-arrow-down.js.map +1 -1
- package/fhi-icon-arrow-left.js +26 -43
- package/fhi-icon-arrow-left.js.map +1 -1
- package/fhi-icon-arrow-right-left.js +26 -43
- package/fhi-icon-arrow-right-left.js.map +1 -1
- package/fhi-icon-arrow-right.js +26 -43
- package/fhi-icon-arrow-right.js.map +1 -1
- package/fhi-icon-arrow-up-down.js +26 -43
- package/fhi-icon-arrow-up-down.js.map +1 -1
- package/fhi-icon-arrow-up-left.js +26 -43
- package/fhi-icon-arrow-up-left.js.map +1 -1
- package/fhi-icon-arrow-up-right.js +26 -43
- package/fhi-icon-arrow-up-right.js.map +1 -1
- package/fhi-icon-arrow-up.js +26 -43
- package/fhi-icon-arrow-up.js.map +1 -1
- package/fhi-icon-bell.js +26 -43
- package/fhi-icon-bell.js.map +1 -1
- package/fhi-icon-calendar-clock.js +26 -43
- package/fhi-icon-calendar-clock.js.map +1 -1
- package/fhi-icon-calendar.js +26 -43
- package/fhi-icon-calendar.js.map +1 -1
- package/fhi-icon-chart-bar-stacked.js +26 -43
- package/fhi-icon-chart-bar-stacked.js.map +1 -1
- package/fhi-icon-chart-bar.js +26 -43
- package/fhi-icon-chart-bar.js.map +1 -1
- package/fhi-icon-chart-column-stacked.js +26 -43
- package/fhi-icon-chart-column-stacked.js.map +1 -1
- package/fhi-icon-chart-column.js +26 -43
- package/fhi-icon-chart-column.js.map +1 -1
- package/fhi-icon-chart-line.js +26 -43
- package/fhi-icon-chart-line.js.map +1 -1
- package/fhi-icon-chart-no-axes-combined.js +26 -43
- package/fhi-icon-chart-no-axes-combined.js.map +1 -1
- package/fhi-icon-chart-pie.js +26 -43
- package/fhi-icon-chart-pie.js.map +1 -1
- package/fhi-icon-check.js +26 -43
- package/fhi-icon-check.js.map +1 -1
- package/fhi-icon-chevron-down.js +26 -43
- package/fhi-icon-chevron-down.js.map +1 -1
- package/fhi-icon-chevron-left.js +26 -43
- package/fhi-icon-chevron-left.js.map +1 -1
- package/fhi-icon-chevron-right.js +26 -43
- package/fhi-icon-chevron-right.js.map +1 -1
- package/fhi-icon-chevron-up.js +26 -43
- package/fhi-icon-chevron-up.js.map +1 -1
- package/fhi-icon-chevrons-down.js +26 -43
- package/fhi-icon-chevrons-down.js.map +1 -1
- package/fhi-icon-chevrons-left.js +26 -43
- package/fhi-icon-chevrons-left.js.map +1 -1
- package/fhi-icon-chevrons-right.js +26 -43
- package/fhi-icon-chevrons-right.js.map +1 -1
- package/fhi-icon-chevrons-up.js +26 -43
- package/fhi-icon-chevrons-up.js.map +1 -1
- package/fhi-icon-circle-arrow-down.js +26 -43
- package/fhi-icon-circle-arrow-down.js.map +1 -1
- package/fhi-icon-circle-arrow-left.js +26 -43
- package/fhi-icon-circle-arrow-left.js.map +1 -1
- package/fhi-icon-circle-arrow-right.js +26 -43
- package/fhi-icon-circle-arrow-right.js.map +1 -1
- package/fhi-icon-circle-arrow-up.js +26 -43
- package/fhi-icon-circle-arrow-up.js.map +1 -1
- package/fhi-icon-circle-check-big.js +26 -43
- package/fhi-icon-circle-check-big.js.map +1 -1
- package/fhi-icon-circle-check.js +26 -43
- package/fhi-icon-circle-check.js.map +1 -1
- package/fhi-icon-circle-chevron-down.js +26 -43
- package/fhi-icon-circle-chevron-down.js.map +1 -1
- package/fhi-icon-circle-chevron-left.js +26 -43
- package/fhi-icon-circle-chevron-left.js.map +1 -1
- package/fhi-icon-circle-chevron-right.js +26 -43
- package/fhi-icon-circle-chevron-right.js.map +1 -1
- package/fhi-icon-circle-chevron-up.js +26 -43
- package/fhi-icon-circle-chevron-up.js.map +1 -1
- package/fhi-icon-circle-exclamation.js +26 -43
- package/fhi-icon-circle-exclamation.js.map +1 -1
- package/fhi-icon-circle-info.js +26 -43
- package/fhi-icon-circle-info.js.map +1 -1
- package/fhi-icon-circle-minus.js +26 -43
- package/fhi-icon-circle-minus.js.map +1 -1
- package/fhi-icon-circle-plus.js +26 -43
- package/fhi-icon-circle-plus.js.map +1 -1
- package/fhi-icon-circle-question.js +26 -43
- package/fhi-icon-circle-question.js.map +1 -1
- package/fhi-icon-circle-x.js +26 -43
- package/fhi-icon-circle-x.js.map +1 -1
- package/fhi-icon-circle.js +26 -43
- package/fhi-icon-circle.js.map +1 -1
- package/fhi-icon-clock.js +26 -43
- package/fhi-icon-clock.js.map +1 -1
- package/fhi-icon-copy.js +26 -43
- package/fhi-icon-copy.js.map +1 -1
- package/fhi-icon-download.js +26 -43
- package/fhi-icon-download.js.map +1 -1
- package/fhi-icon-ellipsis-vertical.js +26 -43
- package/fhi-icon-ellipsis-vertical.js.map +1 -1
- package/fhi-icon-ellipsis.js +26 -43
- package/fhi-icon-ellipsis.js.map +1 -1
- package/fhi-icon-exclamation.js +26 -43
- package/fhi-icon-exclamation.js.map +1 -1
- package/fhi-icon-expand.js +26 -43
- package/fhi-icon-expand.js.map +1 -1
- package/fhi-icon-external-link.js +26 -43
- package/fhi-icon-external-link.js.map +1 -1
- package/fhi-icon-eye-off.js +26 -43
- package/fhi-icon-eye-off.js.map +1 -1
- package/fhi-icon-eye.js +26 -43
- package/fhi-icon-eye.js.map +1 -1
- package/fhi-icon-file-text.js +26 -43
- package/fhi-icon-file-text.js.map +1 -1
- package/fhi-icon-file.js +26 -43
- package/fhi-icon-file.js.map +1 -1
- package/fhi-icon-filter.js +26 -43
- package/fhi-icon-filter.js.map +1 -1
- package/fhi-icon-folder.js +26 -43
- package/fhi-icon-folder.js.map +1 -1
- package/fhi-icon-gear.js +26 -43
- package/fhi-icon-gear.js.map +1 -1
- package/fhi-icon-grid-9-dots.js +26 -43
- package/fhi-icon-grid-9-dots.js.map +1 -1
- package/fhi-icon-grip-horizontal.js +26 -43
- package/fhi-icon-grip-horizontal.js.map +1 -1
- package/fhi-icon-grip-vertical.js +26 -43
- package/fhi-icon-grip-vertical.js.map +1 -1
- package/fhi-icon-history.js +26 -43
- package/fhi-icon-history.js.map +1 -1
- package/fhi-icon-info.js +26 -43
- package/fhi-icon-info.js.map +1 -1
- package/fhi-icon-link-2-off.js +26 -43
- package/fhi-icon-link-2-off.js.map +1 -1
- package/fhi-icon-link-2.js +26 -43
- package/fhi-icon-link-2.js.map +1 -1
- package/fhi-icon-link.js +26 -43
- package/fhi-icon-link.js.map +1 -1
- package/fhi-icon-lock-open.js +26 -43
- package/fhi-icon-lock-open.js.map +1 -1
- package/fhi-icon-lock.js +26 -43
- package/fhi-icon-lock.js.map +1 -1
- package/fhi-icon-log-in.js +26 -43
- package/fhi-icon-log-in.js.map +1 -1
- package/fhi-icon-log-out.js +26 -43
- package/fhi-icon-log-out.js.map +1 -1
- package/fhi-icon-mail.js +26 -43
- package/fhi-icon-mail.js.map +1 -1
- package/fhi-icon-map-pin.js +26 -43
- package/fhi-icon-map-pin.js.map +1 -1
- package/fhi-icon-menu.js +26 -43
- package/fhi-icon-menu.js.map +1 -1
- package/fhi-icon-message.js +26 -43
- package/fhi-icon-message.js.map +1 -1
- package/fhi-icon-minus.js +26 -43
- package/fhi-icon-minus.js.map +1 -1
- package/fhi-icon-octagon-alert.js +26 -43
- package/fhi-icon-octagon-alert.js.map +1 -1
- package/fhi-icon-paperclip.js +26 -43
- package/fhi-icon-paperclip.js.map +1 -1
- package/fhi-icon-pencil.js +26 -43
- package/fhi-icon-pencil.js.map +1 -1
- package/fhi-icon-phone.js +26 -43
- package/fhi-icon-phone.js.map +1 -1
- package/fhi-icon-pin-off.js +26 -43
- package/fhi-icon-pin-off.js.map +1 -1
- package/fhi-icon-pin.js +26 -43
- package/fhi-icon-pin.js.map +1 -1
- package/fhi-icon-plus.js +26 -43
- package/fhi-icon-plus.js.map +1 -1
- package/fhi-icon-printer.js +26 -43
- package/fhi-icon-printer.js.map +1 -1
- package/fhi-icon-question.js +26 -43
- package/fhi-icon-question.js.map +1 -1
- package/fhi-icon-refresh.js +26 -43
- package/fhi-icon-refresh.js.map +1 -1
- package/fhi-icon-rotate-left.js +26 -43
- package/fhi-icon-rotate-left.js.map +1 -1
- package/fhi-icon-rotate-right.js +26 -43
- package/fhi-icon-rotate-right.js.map +1 -1
- package/fhi-icon-search.js +26 -43
- package/fhi-icon-search.js.map +1 -1
- package/fhi-icon-send.js +26 -43
- package/fhi-icon-send.js.map +1 -1
- package/fhi-icon-share.js +26 -43
- package/fhi-icon-share.js.map +1 -1
- package/fhi-icon-sheet.js +26 -43
- package/fhi-icon-sheet.js.map +1 -1
- package/fhi-icon-square-check-big.js +26 -43
- package/fhi-icon-square-check-big.js.map +1 -1
- package/fhi-icon-square-check.js +26 -43
- package/fhi-icon-square-check.js.map +1 -1
- package/fhi-icon-square-pen.js +26 -43
- package/fhi-icon-square-pen.js.map +1 -1
- package/fhi-icon-square-x.js +26 -43
- package/fhi-icon-square-x.js.map +1 -1
- package/fhi-icon-square.js +26 -43
- package/fhi-icon-square.js.map +1 -1
- package/fhi-icon-trash.js +26 -43
- package/fhi-icon-trash.js.map +1 -1
- package/fhi-icon-triangle-alert.js +26 -43
- package/fhi-icon-triangle-alert.js.map +1 -1
- package/fhi-icon-upload.js +26 -43
- package/fhi-icon-upload.js.map +1 -1
- package/fhi-icon-user.js +26 -43
- package/fhi-icon-user.js.map +1 -1
- package/fhi-icon-x.js +26 -43
- package/fhi-icon-x.js.map +1 -1
- package/fhi-label.js +23 -32
- package/fhi-label.js.map +1 -1
- package/fhi-modal-dialog.js +76 -111
- package/fhi-modal-dialog.js.map +1 -1
- package/fhi-radio.js +91 -109
- package/fhi-radio.js.map +1 -1
- package/fhi-tag.js +32 -44
- package/fhi-tag.js.map +1 -1
- package/fhi-text-input.js +96 -126
- package/fhi-text-input.js.map +1 -1
- package/fhi-title.js +29 -46
- package/fhi-title.js.map +1 -1
- package/fhi-tooltip.component-DJNDfrHK.js +919 -0
- package/fhi-tooltip.component-DJNDfrHK.js.map +1 -0
- package/fhi-tooltip.js +2 -1162
- package/fonts/RobotoFlex.ttf.js.map +1 -1
- package/if-defined-Dl-W5B5_.js +7 -0
- package/if-defined-Dl-W5B5_.js.map +1 -0
- package/index.js +123 -369
- package/package.json +1 -1
- package/theme/default.css +1 -1
- package/unsafe-html-CBTN3162.js +50 -0
- package/unsafe-html-CBTN3162.js.map +1 -0
- package/web-types.json +1 -1
- package/base-D76d76ww.js +0 -10
- package/base-D76d76ww.js.map +0 -1
- package/fhi-date-input.js.map +0 -1
- package/fhi-tooltip.js.map +0 -1
- package/if-defined-B_sR6Mtk.js +0 -11
- package/if-defined-B_sR6Mtk.js.map +0 -1
- package/index.js.map +0 -1
- package/property-B2Ico5CW.js +0 -605
- package/property-B2Ico5CW.js.map +0 -1
- package/query-Ddbd72Um.js +0 -21
- package/query-Ddbd72Um.js.map +0 -1
- package/unsafe-html-DfuTUjUu.js +0 -48
- package/unsafe-html-DfuTUjUu.js.map +0 -1
package/fhi-icon-arrow-up.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fhi-icon-arrow-up.js","sources":["../../src/components/icons/fhi-icon-arrow-up.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 FhiIconArrowUpSelector = \"fhi-icon-arrow-up\";\n\n/**\n * ## FhiIconArrowUp\n * \n * {@link https://designsystem.fhi.no/?path=/docs/ikoner--docs}\n * \n * @tag fhi-icon-arrow-up\n * @element fhi-icon-arrow-up\n */\n@customElement(FhiIconArrowUpSelector)\nexport class FhiIconArrowUp 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=\"M11.25 19V6.81l-5.72 5.72a.75.75 0 1 1-1.06-1.06l7-7 .056-.052a.75.75 0 0 1 1.004.052l7 7 .052.056a.75.75 0 0 1-1.056 1.056l-.056-.052-5.72-5.72V19a.75.75 0 1 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"],"
|
|
1
|
+
{"version":3,"file":"fhi-icon-arrow-up.js","names":[],"sources":["../../src/components/icons/fhi-icon-arrow-up.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 FhiIconArrowUpSelector = \"fhi-icon-arrow-up\";\n\n/**\n * ## FhiIconArrowUp\n * \n * {@link https://designsystem.fhi.no/?path=/docs/ikoner--docs}\n * \n * @tag fhi-icon-arrow-up\n * @element fhi-icon-arrow-up\n */\n@customElement(FhiIconArrowUpSelector)\nexport class FhiIconArrowUp 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=\"M11.25 19V6.81l-5.72 5.72a.75.75 0 1 1-1.06-1.06l7-7 .056-.052a.75.75 0 0 1 1.004.052l7 7 .052.056a.75.75 0 0 1-1.056 1.056l-.056-.052-5.72-5.72V19a.75.75 0 1 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"],"mappings":";;AAOA,IAAa,IAAyB,qBAW/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-bell.js
CHANGED
|
@@ -1,52 +1,35 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
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-bell.component.ts
|
|
3
|
+
var o = "fhi-icon-bell", 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="M13.043 20.639a.75.75 0 0 1 1.314.722 2.692 2.692 0 0 1-4.623.156l-.091-.156-.034-.069a.75.75 0 0 1 1.308-.719l.04.066.086.134a1.19 1.19 0 0 0 2-.134m4.2-12.9A5.25 5.25 0 0 0 6.75 8c0 3.61-.775 5.987-1.592 7.484a9 9 0 0 1-.469.766h14.622a9 9 0 0 1-.47-.766C18.026 13.987 17.25 11.611 17.25 8zM18.75 8c0 3.39.725 5.513 1.408 6.766.343.628.68 1.045.918 1.297a3 3 0 0 0 .338.311l.004.003h-.001A.75.75 0 0 1 21 17.75H3a.75.75 0 0 1-.417-1.373h-.001l.004-.003.062-.05c.06-.05.156-.136.276-.262.238-.251.575-.668.918-1.296C4.525 13.513 5.25 11.389 5.25 8a6.75 6.75 0 1 1 13.5 0"/></svg>
|
|
29
19
|
`;
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
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
|
-
|
|
40
|
-
h({ type: String })
|
|
41
|
-
], t.prototype, "color", 2);
|
|
42
|
-
a([
|
|
43
|
-
h({ type: String })
|
|
44
|
-
], t.prototype, "size", 2);
|
|
45
|
-
t = a([
|
|
46
|
-
p(f)
|
|
47
|
-
], t);
|
|
48
|
-
export {
|
|
49
|
-
t as FhiIconBell,
|
|
50
|
-
f as FhiIconBellSelector
|
|
29
|
+
}
|
|
51
30
|
};
|
|
52
|
-
|
|
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 FhiIconBell, o as FhiIconBellSelector };
|
|
34
|
+
|
|
35
|
+
//# sourceMappingURL=fhi-icon-bell.js.map
|
package/fhi-icon-bell.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fhi-icon-bell.js","sources":["../../src/components/icons/fhi-icon-bell.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 FhiIconBellSelector = \"fhi-icon-bell\";\n\n/**\n * ## FhiIconBell\n * \n * {@link https://designsystem.fhi.no/?path=/docs/ikoner--docs}\n * \n * @tag fhi-icon-bell\n * @element fhi-icon-bell\n */\n@customElement(FhiIconBellSelector)\nexport class FhiIconBell 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=\"M13.043 20.639a.75.75 0 0 1 1.314.722 2.692 2.692 0 0 1-4.623.156l-.091-.156-.034-.069a.75.75 0 0 1 1.308-.719l.04.066.086.134a1.19 1.19 0 0 0 2-.134m4.2-12.9A5.25 5.25 0 0 0 6.75 8c0 3.61-.775 5.987-1.592 7.484a9 9 0 0 1-.469.766h14.622a9 9 0 0 1-.47-.766C18.026 13.987 17.25 11.611 17.25 8zM18.75 8c0 3.39.725 5.513 1.408 6.766.343.628.68 1.045.918 1.297a3 3 0 0 0 .338.311l.004.003h-.001A.75.75 0 0 1 21 17.75H3a.75.75 0 0 1-.417-1.373h-.001l.004-.003.062-.05c.06-.05.156-.136.276-.262.238-.251.575-.668.918-1.296C4.525 13.513 5.25 11.389 5.25 8a6.75 6.75 0 1 1 13.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"],"
|
|
1
|
+
{"version":3,"file":"fhi-icon-bell.js","names":[],"sources":["../../src/components/icons/fhi-icon-bell.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 FhiIconBellSelector = \"fhi-icon-bell\";\n\n/**\n * ## FhiIconBell\n * \n * {@link https://designsystem.fhi.no/?path=/docs/ikoner--docs}\n * \n * @tag fhi-icon-bell\n * @element fhi-icon-bell\n */\n@customElement(FhiIconBellSelector)\nexport class FhiIconBell 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=\"M13.043 20.639a.75.75 0 0 1 1.314.722 2.692 2.692 0 0 1-4.623.156l-.091-.156-.034-.069a.75.75 0 0 1 1.308-.719l.04.066.086.134a1.19 1.19 0 0 0 2-.134m4.2-12.9A5.25 5.25 0 0 0 6.75 8c0 3.61-.775 5.987-1.592 7.484a9 9 0 0 1-.469.766h14.622a9 9 0 0 1-.47-.766C18.026 13.987 17.25 11.611 17.25 8zM18.75 8c0 3.39.725 5.513 1.408 6.766.343.628.68 1.045.918 1.297a3 3 0 0 0 .338.311l.004.003h-.001A.75.75 0 0 1 21 17.75H3a.75.75 0 0 1-.417-1.373h-.001l.004-.003.062-.05c.06-.05.156-.136.276-.262.238-.251.575-.668.918-1.296C4.525 13.513 5.25 11.389 5.25 8a6.75 6.75 0 1 1 13.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"],"mappings":";;AAOA,IAAa,IAAsB,iBAW5B,IAAA,cAA0B,EAAW;;4BAOE,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,CAAmB,CAAA,GAAA,CAAA"}
|
|
@@ -1,52 +1,35 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
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-calendar-clock.component.ts
|
|
3
|
+
var o = "fhi-icon-calendar-clock", 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="M16 1.25a.75.75 0 0 1 .75.75v1.25H19A2.75 2.75 0 0 1 21.75 6v1.5a.75.75 0 0 1-1.5 0V6a1.25 1.25 0 0 0-1.126-1.244L19 4.75h-2.25V6a.75.75 0 0 1-1.5 0V4.75h-6.5V6a.75.75 0 0 1-1.5 0V4.75H5A1.25 1.25 0 0 0 3.75 6v3.25H8a.75.75 0 0 1 0 1.5H3.75V20A1.25 1.25 0 0 0 5 21.25h3.5a.75.75 0 0 1 0 1.5H5A2.75 2.75 0 0 1 2.25 20V6A2.75 2.75 0 0 1 5 3.25h2.25V2a.75.75 0 0 1 1.5 0v1.25h6.5V2a.75.75 0 0 1 .75-.75m0 8a6.75 6.75 0 1 1 0 13.5 6.75 6.75 0 0 1 0-13.5m0 1.5a5.25 5.25 0 1 0 0 10.5 5.25 5.25 0 0 0 0-10.5m0 2.5a.75.75 0 0 1 .75.75v1.938l1.219.976a.75.75 0 0 1-.938 1.172l-1.5-1.2a.75.75 0 0 1-.281-.586V14a.75.75 0 0 1 .75-.75"/></svg>
|
|
29
19
|
`;
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
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
|
-
|
|
40
|
-
h({ type: String })
|
|
41
|
-
], t.prototype, "color", 2);
|
|
42
|
-
l([
|
|
43
|
-
h({ type: String })
|
|
44
|
-
], t.prototype, "size", 2);
|
|
45
|
-
t = l([
|
|
46
|
-
p(d)
|
|
47
|
-
], t);
|
|
48
|
-
export {
|
|
49
|
-
t as FhiIconCalendarClock,
|
|
50
|
-
d as FhiIconCalendarClockSelector
|
|
29
|
+
}
|
|
51
30
|
};
|
|
52
|
-
|
|
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 FhiIconCalendarClock, o as FhiIconCalendarClockSelector };
|
|
34
|
+
|
|
35
|
+
//# sourceMappingURL=fhi-icon-calendar-clock.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fhi-icon-calendar-clock.js","sources":["../../src/components/icons/fhi-icon-calendar-clock.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 FhiIconCalendarClockSelector = \"fhi-icon-calendar-clock\";\n\n/**\n * ## FhiIconCalendarClock\n * \n * {@link https://designsystem.fhi.no/?path=/docs/ikoner--docs}\n * \n * @tag fhi-icon-calendar-clock\n * @element fhi-icon-calendar-clock\n */\n@customElement(FhiIconCalendarClockSelector)\nexport class FhiIconCalendarClock 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=\"M16 1.25a.75.75 0 0 1 .75.75v1.25H19A2.75 2.75 0 0 1 21.75 6v1.5a.75.75 0 0 1-1.5 0V6a1.25 1.25 0 0 0-1.126-1.244L19 4.75h-2.25V6a.75.75 0 0 1-1.5 0V4.75h-6.5V6a.75.75 0 0 1-1.5 0V4.75H5A1.25 1.25 0 0 0 3.75 6v3.25H8a.75.75 0 0 1 0 1.5H3.75V20A1.25 1.25 0 0 0 5 21.25h3.5a.75.75 0 0 1 0 1.5H5A2.75 2.75 0 0 1 2.25 20V6A2.75 2.75 0 0 1 5 3.25h2.25V2a.75.75 0 0 1 1.5 0v1.25h6.5V2a.75.75 0 0 1 .75-.75m0 8a6.75 6.75 0 1 1 0 13.5 6.75 6.75 0 0 1 0-13.5m0 1.5a5.25 5.25 0 1 0 0 10.5 5.25 5.25 0 0 0 0-10.5m0 2.5a.75.75 0 0 1 .75.75v1.938l1.219.976a.75.75 0 0 1-.938 1.172l-1.5-1.2a.75.75 0 0 1-.281-.586V14a.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"],"
|
|
1
|
+
{"version":3,"file":"fhi-icon-calendar-clock.js","names":[],"sources":["../../src/components/icons/fhi-icon-calendar-clock.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 FhiIconCalendarClockSelector = \"fhi-icon-calendar-clock\";\n\n/**\n * ## FhiIconCalendarClock\n * \n * {@link https://designsystem.fhi.no/?path=/docs/ikoner--docs}\n * \n * @tag fhi-icon-calendar-clock\n * @element fhi-icon-calendar-clock\n */\n@customElement(FhiIconCalendarClockSelector)\nexport class FhiIconCalendarClock 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=\"M16 1.25a.75.75 0 0 1 .75.75v1.25H19A2.75 2.75 0 0 1 21.75 6v1.5a.75.75 0 0 1-1.5 0V6a1.25 1.25 0 0 0-1.126-1.244L19 4.75h-2.25V6a.75.75 0 0 1-1.5 0V4.75h-6.5V6a.75.75 0 0 1-1.5 0V4.75H5A1.25 1.25 0 0 0 3.75 6v3.25H8a.75.75 0 0 1 0 1.5H3.75V20A1.25 1.25 0 0 0 5 21.25h3.5a.75.75 0 0 1 0 1.5H5A2.75 2.75 0 0 1 2.25 20V6A2.75 2.75 0 0 1 5 3.25h2.25V2a.75.75 0 0 1 1.5 0v1.25h6.5V2a.75.75 0 0 1 .75-.75m0 8a6.75 6.75 0 1 1 0 13.5 6.75 6.75 0 0 1 0-13.5m0 1.5a5.25 5.25 0 1 0 0 10.5 5.25 5.25 0 0 0 0-10.5m0 2.5a.75.75 0 0 1 .75.75v1.938l1.219.976a.75.75 0 0 1-.938 1.172l-1.5-1.2a.75.75 0 0 1-.281-.586V14a.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,IAA+B,2BAWrC,IAAA,cAAmC,EAAW;;4BAOP,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,CAA4B,CAAA,GAAA,CAAA"}
|
package/fhi-icon-calendar.js
CHANGED
|
@@ -1,52 +1,35 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
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-calendar.component.ts
|
|
3
|
+
var o = "fhi-icon-calendar", 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="M20.25 10.75H3.75V20c0 .69.56 1.25 1.25 1.25h14c.69 0 1.25-.56 1.25-1.25zm-5-4.75V4.75h-6.5V6a.75.75 0 0 1-1.5 0V4.75H5c-.69 0-1.25.56-1.25 1.25v3.25h16.5V6c0-.69-.56-1.25-1.25-1.25h-2.25V6a.75.75 0 0 1-1.5 0m6.5 14A2.75 2.75 0 0 1 19 22.75H5A2.75 2.75 0 0 1 2.25 20V6A2.75 2.75 0 0 1 5 3.25h2.25V2a.75.75 0 0 1 1.5 0v1.25h6.5V2a.75.75 0 0 1 1.5 0v1.25H19A2.75 2.75 0 0 1 21.75 6z"/></svg>
|
|
29
19
|
`;
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
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
|
-
|
|
40
|
-
l({ type: String })
|
|
41
|
-
], t.prototype, "color", 2);
|
|
42
|
-
h([
|
|
43
|
-
l({ type: String })
|
|
44
|
-
], t.prototype, "size", 2);
|
|
45
|
-
t = h([
|
|
46
|
-
p(v)
|
|
47
|
-
], t);
|
|
48
|
-
export {
|
|
49
|
-
t as FhiIconCalendar,
|
|
50
|
-
v as FhiIconCalendarSelector
|
|
29
|
+
}
|
|
51
30
|
};
|
|
52
|
-
|
|
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 FhiIconCalendar, o as FhiIconCalendarSelector };
|
|
34
|
+
|
|
35
|
+
//# sourceMappingURL=fhi-icon-calendar.js.map
|
package/fhi-icon-calendar.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fhi-icon-calendar.js","sources":["../../src/components/icons/fhi-icon-calendar.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 FhiIconCalendarSelector = \"fhi-icon-calendar\";\n\n/**\n * ## FhiIconCalendar\n * \n * {@link https://designsystem.fhi.no/?path=/docs/ikoner--docs}\n * \n * @tag fhi-icon-calendar\n * @element fhi-icon-calendar\n */\n@customElement(FhiIconCalendarSelector)\nexport class FhiIconCalendar 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=\"M20.25 10.75H3.75V20c0 .69.56 1.25 1.25 1.25h14c.69 0 1.25-.56 1.25-1.25zm-5-4.75V4.75h-6.5V6a.75.75 0 0 1-1.5 0V4.75H5c-.69 0-1.25.56-1.25 1.25v3.25h16.5V6c0-.69-.56-1.25-1.25-1.25h-2.25V6a.75.75 0 0 1-1.5 0m6.5 14A2.75 2.75 0 0 1 19 22.75H5A2.75 2.75 0 0 1 2.25 20V6A2.75 2.75 0 0 1 5 3.25h2.25V2a.75.75 0 0 1 1.5 0v1.25h6.5V2a.75.75 0 0 1 1.5 0v1.25H19A2.75 2.75 0 0 1 21.75 6z\"/></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"],"
|
|
1
|
+
{"version":3,"file":"fhi-icon-calendar.js","names":[],"sources":["../../src/components/icons/fhi-icon-calendar.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 FhiIconCalendarSelector = \"fhi-icon-calendar\";\n\n/**\n * ## FhiIconCalendar\n * \n * {@link https://designsystem.fhi.no/?path=/docs/ikoner--docs}\n * \n * @tag fhi-icon-calendar\n * @element fhi-icon-calendar\n */\n@customElement(FhiIconCalendarSelector)\nexport class FhiIconCalendar 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=\"M20.25 10.75H3.75V20c0 .69.56 1.25 1.25 1.25h14c.69 0 1.25-.56 1.25-1.25zm-5-4.75V4.75h-6.5V6a.75.75 0 0 1-1.5 0V4.75H5c-.69 0-1.25.56-1.25 1.25v3.25h16.5V6c0-.69-.56-1.25-1.25-1.25h-2.25V6a.75.75 0 0 1-1.5 0m6.5 14A2.75 2.75 0 0 1 19 22.75H5A2.75 2.75 0 0 1 2.25 20V6A2.75 2.75 0 0 1 5 3.25h2.25V2a.75.75 0 0 1 1.5 0v1.25h6.5V2a.75.75 0 0 1 1.5 0v1.25H19A2.75 2.75 0 0 1 21.75 6z\"/></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,IAA0B,qBAWhC,IAAA,cAA8B,EAAW;;4BAOF,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,CAAuB,CAAA,GAAA,CAAA"}
|
|
@@ -1,52 +1,35 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
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 v`
|
|
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-chart-bar-stacked.component.ts
|
|
3
|
+
var o = "fhi-icon-chart-bar-stacked", 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="M3 2.25a.75.75 0 0 1 .75.75v16A1.25 1.25 0 0 0 5 20.25h16a.75.75 0 0 1 0 1.5H5A2.75 2.75 0 0 1 2.25 19V3A.75.75 0 0 1 3 2.25m12 10c.966 0 1.75.784 1.75 1.75v2A1.75 1.75 0 0 1 15 17.75H8A1.75 1.75 0 0 1 6.25 16v-2c0-.966.784-1.75 1.75-1.75zm-7 1.5a.25.25 0 0 0-.25.25v2c0 .138.112.25.25.25h2.25v-2.5zm3.75 2.5H15a.25.25 0 0 0 .25-.25v-2a.25.25 0 0 0-.25-.25h-3.25zm6.25-12c.966 0 1.75.784 1.75 1.75v2A1.75 1.75 0 0 1 18 9.75H8A1.75 1.75 0 0 1 6.25 8V6c0-.966.784-1.75 1.75-1.75zm-2.25 4H18a.25.25 0 0 0 .25-.25V6a.25.25 0 0 0-.25-.25h-2.25zM8 5.75a.25.25 0 0 0-.25.25v2c0 .138.112.25.25.25h6.25v-2.5z"/></svg>
|
|
29
19
|
`;
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
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
|
-
|
|
40
|
-
o({ type: String })
|
|
41
|
-
], t.prototype, "color", 2);
|
|
42
|
-
h([
|
|
43
|
-
o({ type: String })
|
|
44
|
-
], t.prototype, "size", 2);
|
|
45
|
-
t = h([
|
|
46
|
-
u(g)
|
|
47
|
-
], t);
|
|
48
|
-
export {
|
|
49
|
-
t as FhiIconChartBarStacked,
|
|
50
|
-
g as FhiIconChartBarStackedSelector
|
|
29
|
+
}
|
|
51
30
|
};
|
|
52
|
-
|
|
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 FhiIconChartBarStacked, o as FhiIconChartBarStackedSelector };
|
|
34
|
+
|
|
35
|
+
//# sourceMappingURL=fhi-icon-chart-bar-stacked.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fhi-icon-chart-bar-stacked.js","sources":["../../src/components/icons/fhi-icon-chart-bar-stacked.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 FhiIconChartBarStackedSelector = \"fhi-icon-chart-bar-stacked\";\n\n/**\n * ## FhiIconChartBarStacked\n * \n * {@link https://designsystem.fhi.no/?path=/docs/ikoner--docs}\n * \n * @tag fhi-icon-chart-bar-stacked\n * @element fhi-icon-chart-bar-stacked\n */\n@customElement(FhiIconChartBarStackedSelector)\nexport class FhiIconChartBarStacked 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=\"M3 2.25a.75.75 0 0 1 .75.75v16A1.25 1.25 0 0 0 5 20.25h16a.75.75 0 0 1 0 1.5H5A2.75 2.75 0 0 1 2.25 19V3A.75.75 0 0 1 3 2.25m12 10c.966 0 1.75.784 1.75 1.75v2A1.75 1.75 0 0 1 15 17.75H8A1.75 1.75 0 0 1 6.25 16v-2c0-.966.784-1.75 1.75-1.75zm-7 1.5a.25.25 0 0 0-.25.25v2c0 .138.112.25.25.25h2.25v-2.5zm3.75 2.5H15a.25.25 0 0 0 .25-.25v-2a.25.25 0 0 0-.25-.25h-3.25zm6.25-12c.966 0 1.75.784 1.75 1.75v2A1.75 1.75 0 0 1 18 9.75H8A1.75 1.75 0 0 1 6.25 8V6c0-.966.784-1.75 1.75-1.75zm-2.25 4H18a.25.25 0 0 0 .25-.25V6a.25.25 0 0 0-.25-.25h-2.25zM8 5.75a.25.25 0 0 0-.25.25v2c0 .138.112.25.25.25h6.25v-2.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"],"
|
|
1
|
+
{"version":3,"file":"fhi-icon-chart-bar-stacked.js","names":[],"sources":["../../src/components/icons/fhi-icon-chart-bar-stacked.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 FhiIconChartBarStackedSelector = \"fhi-icon-chart-bar-stacked\";\n\n/**\n * ## FhiIconChartBarStacked\n * \n * {@link https://designsystem.fhi.no/?path=/docs/ikoner--docs}\n * \n * @tag fhi-icon-chart-bar-stacked\n * @element fhi-icon-chart-bar-stacked\n */\n@customElement(FhiIconChartBarStackedSelector)\nexport class FhiIconChartBarStacked 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=\"M3 2.25a.75.75 0 0 1 .75.75v16A1.25 1.25 0 0 0 5 20.25h16a.75.75 0 0 1 0 1.5H5A2.75 2.75 0 0 1 2.25 19V3A.75.75 0 0 1 3 2.25m12 10c.966 0 1.75.784 1.75 1.75v2A1.75 1.75 0 0 1 15 17.75H8A1.75 1.75 0 0 1 6.25 16v-2c0-.966.784-1.75 1.75-1.75zm-7 1.5a.25.25 0 0 0-.25.25v2c0 .138.112.25.25.25h2.25v-2.5zm3.75 2.5H15a.25.25 0 0 0 .25-.25v-2a.25.25 0 0 0-.25-.25h-3.25zm6.25-12c.966 0 1.75.784 1.75 1.75v2A1.75 1.75 0 0 1 18 9.75H8A1.75 1.75 0 0 1 6.25 8V6c0-.966.784-1.75 1.75-1.75zm-2.25 4H18a.25.25 0 0 0 .25-.25V6a.25.25 0 0 0-.25-.25h-2.25zM8 5.75a.25.25 0 0 0-.25.25v2c0 .138.112.25.25.25h6.25v-2.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,IAAiC,8BAWvC,IAAA,cAAqC,EAAW;;4BAOT,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,CAA8B,CAAA,GAAA,CAAA"}
|
package/fhi-icon-chart-bar.js
CHANGED
|
@@ -1,52 +1,35 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
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-chart-bar.component.ts
|
|
3
|
+
var o = "fhi-icon-chart-bar", 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="M3 2.25a.75.75 0 0 1 .75.75v16A1.25 1.25 0 0 0 5 20.25h16a.75.75 0 0 1 0 1.5H5A2.75 2.75 0 0 1 2.25 19V3A.75.75 0 0 1 3 2.25m12 13a.75.75 0 0 1 0 1.5H7a.75.75 0 0 1 0-1.5zm4-5a.75.75 0 0 1 0 1.5H7a.75.75 0 0 1 0-1.5zm-9-5a.75.75 0 0 1 0 1.5H7a.75.75 0 0 1 0-1.5z"/></svg>
|
|
29
19
|
`;
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
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
|
-
|
|
40
|
-
l({ type: String })
|
|
41
|
-
], t.prototype, "color", 2);
|
|
42
|
-
h([
|
|
43
|
-
l({ type: String })
|
|
44
|
-
], t.prototype, "size", 2);
|
|
45
|
-
t = h([
|
|
46
|
-
p(f)
|
|
47
|
-
], t);
|
|
48
|
-
export {
|
|
49
|
-
t as FhiIconChartBar,
|
|
50
|
-
f as FhiIconChartBarSelector
|
|
29
|
+
}
|
|
51
30
|
};
|
|
52
|
-
|
|
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 FhiIconChartBar, o as FhiIconChartBarSelector };
|
|
34
|
+
|
|
35
|
+
//# sourceMappingURL=fhi-icon-chart-bar.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fhi-icon-chart-bar.js","sources":["../../src/components/icons/fhi-icon-chart-bar.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 FhiIconChartBarSelector = \"fhi-icon-chart-bar\";\n\n/**\n * ## FhiIconChartBar\n * \n * {@link https://designsystem.fhi.no/?path=/docs/ikoner--docs}\n * \n * @tag fhi-icon-chart-bar\n * @element fhi-icon-chart-bar\n */\n@customElement(FhiIconChartBarSelector)\nexport class FhiIconChartBar 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=\"M3 2.25a.75.75 0 0 1 .75.75v16A1.25 1.25 0 0 0 5 20.25h16a.75.75 0 0 1 0 1.5H5A2.75 2.75 0 0 1 2.25 19V3A.75.75 0 0 1 3 2.25m12 13a.75.75 0 0 1 0 1.5H7a.75.75 0 0 1 0-1.5zm4-5a.75.75 0 0 1 0 1.5H7a.75.75 0 0 1 0-1.5zm-9-5a.75.75 0 0 1 0 1.5H7a.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"],"
|
|
1
|
+
{"version":3,"file":"fhi-icon-chart-bar.js","names":[],"sources":["../../src/components/icons/fhi-icon-chart-bar.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 FhiIconChartBarSelector = \"fhi-icon-chart-bar\";\n\n/**\n * ## FhiIconChartBar\n * \n * {@link https://designsystem.fhi.no/?path=/docs/ikoner--docs}\n * \n * @tag fhi-icon-chart-bar\n * @element fhi-icon-chart-bar\n */\n@customElement(FhiIconChartBarSelector)\nexport class FhiIconChartBar 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=\"M3 2.25a.75.75 0 0 1 .75.75v16A1.25 1.25 0 0 0 5 20.25h16a.75.75 0 0 1 0 1.5H5A2.75 2.75 0 0 1 2.25 19V3A.75.75 0 0 1 3 2.25m12 13a.75.75 0 0 1 0 1.5H7a.75.75 0 0 1 0-1.5zm4-5a.75.75 0 0 1 0 1.5H7a.75.75 0 0 1 0-1.5zm-9-5a.75.75 0 0 1 0 1.5H7a.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,IAA0B,sBAWhC,IAAA,cAA8B,EAAW;;4BAOF,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,CAAuB,CAAA,GAAA,CAAA"}
|