@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-grid.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fhi-grid.js","sources":["../../src/components/fhi-grid/fhi-grid.component.ts"],"sourcesContent":["import { html, css, LitElement, PropertyValues } from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\n\nexport const FhiGridSelector = 'fhi-grid';\ntype FhiUnitType = 'px' | 'rem';\ntype FhiGapWidthUnit = `${number}${FhiUnitType}` | number;\n\n/**\n * ## FHI Grid\n *\n * {@link https://designsystem.fhi.no/?path=/docs/komponenter-grid--docs}\n *\n * The `<fhi-grid>` component is a grid container that uses CSS Grid Layout to organize its child elements into a structured grid format.\n * It allows for easy control over the number of columns and the spacing between grid items.\n *\n * @tag fhi-grid\n * @element fhi-grid\n *\n */\n@customElement(FhiGridSelector)\nexport class FhiGrid extends LitElement {\n /**\n * Sets the gap between items within the grid container. It can be one of the preset values, a rem or px value, or a number.\n * If you give a number, it will be treated as pixels.\n * @type {'small' | 'medium' | 'large' | number | string}\n */\n @property({ type: String }) gap:\n | 'small'\n | 'medium'\n | 'large'\n | FhiGapWidthUnit = 'medium';\n\n /**\n * Sets the number of columns in the grid layout.\n * @type {number}\n */\n @property({ type: Number }) columns = 12;\n\n /**\n * Sets the number of rows in the grid layout.\n * @type {number}\n */\n @property({ type: Number }) rows = 1;\n\n updated(changedProperties: PropertyValues<this>) {\n super.updated(changedProperties);\n\n if (changedProperties.has('columns')) {\n this.style.gridTemplateColumns = `repeat( ${this.columns}, 1fr )`;\n }\n\n if (changedProperties.has('rows')) {\n this.style.gridTemplateRows = `repeat( ${this.rows}, 1fr )`;\n }\n\n if (changedProperties.has('gap')) {\n switch (this.gap) {\n case 'large':\n case 'medium':\n case 'small':\n this.style.gap = '';\n return;\n default:\n const gapValue = Number(this.gap) ? `${this.gap}px` : this.gap;\n this.style.gap = gapValue as string;\n return;\n }\n }\n }\n\n render() {\n return html`<slot></slot>`;\n }\n\n static styles = css`\n :host {\n --dimension-grid-gap-small: var(--fhi-spacing-100);\n --dimension-grid-gap-medium: var(--fhi-spacing-200);\n --dimension-grid-gap-large: var(--fhi-spacing-300);\n }\n :host {\n display: grid;\n gap: var(--dimension-grid-gap-medium);\n }\n :host([gap='small']) {\n gap: var(--dimension-grid-gap-small);\n }\n\n :host([gap='medium']) {\n gap: var(--dimension-grid-gap-medium);\n }\n\n :host([gap='large']) {\n gap: var(--dimension-grid-gap-large);\n }\n `;\n}\n"],"
|
|
1
|
+
{"version":3,"file":"fhi-grid.js","names":[],"sources":["../../src/components/fhi-grid/fhi-grid.component.ts"],"sourcesContent":["import { html, css, LitElement, PropertyValues } from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\n\nexport const FhiGridSelector = 'fhi-grid';\ntype FhiUnitType = 'px' | 'rem';\ntype FhiGapWidthUnit = `${number}${FhiUnitType}` | number;\n\n/**\n * ## FHI Grid\n *\n * {@link https://designsystem.fhi.no/?path=/docs/komponenter-grid--docs}\n *\n * The `<fhi-grid>` component is a grid container that uses CSS Grid Layout to organize its child elements into a structured grid format.\n * It allows for easy control over the number of columns and the spacing between grid items.\n *\n * @tag fhi-grid\n * @element fhi-grid\n *\n */\n@customElement(FhiGridSelector)\nexport class FhiGrid extends LitElement {\n /**\n * Sets the gap between items within the grid container. It can be one of the preset values, a rem or px value, or a number.\n * If you give a number, it will be treated as pixels.\n * @type {'small' | 'medium' | 'large' | number | string}\n */\n @property({ type: String }) gap:\n | 'small'\n | 'medium'\n | 'large'\n | FhiGapWidthUnit = 'medium';\n\n /**\n * Sets the number of columns in the grid layout.\n * @type {number}\n */\n @property({ type: Number }) columns = 12;\n\n /**\n * Sets the number of rows in the grid layout.\n * @type {number}\n */\n @property({ type: Number }) rows = 1;\n\n updated(changedProperties: PropertyValues<this>) {\n super.updated(changedProperties);\n\n if (changedProperties.has('columns')) {\n this.style.gridTemplateColumns = `repeat( ${this.columns}, 1fr )`;\n }\n\n if (changedProperties.has('rows')) {\n this.style.gridTemplateRows = `repeat( ${this.rows}, 1fr )`;\n }\n\n if (changedProperties.has('gap')) {\n switch (this.gap) {\n case 'large':\n case 'medium':\n case 'small':\n this.style.gap = '';\n return;\n default:\n const gapValue = Number(this.gap) ? `${this.gap}px` : this.gap;\n this.style.gap = gapValue as string;\n return;\n }\n }\n }\n\n render() {\n return html`<slot></slot>`;\n }\n\n static styles = css`\n :host {\n --dimension-grid-gap-small: var(--fhi-spacing-100);\n --dimension-grid-gap-medium: var(--fhi-spacing-200);\n --dimension-grid-gap-large: var(--fhi-spacing-300);\n }\n :host {\n display: grid;\n gap: var(--dimension-grid-gap-medium);\n }\n :host([gap='small']) {\n gap: var(--dimension-grid-gap-small);\n }\n\n :host([gap='medium']) {\n gap: var(--dimension-grid-gap-medium);\n }\n\n :host([gap='large']) {\n gap: var(--dimension-grid-gap-large);\n }\n `;\n}\n"],"mappings":";;AAGA,IAAa,IAAkB,YAiBxB,IAAA,cAAsB,EAAW;;0BAUhB,yBAMgB,gBAMH;;CAEnC,QAAQ,GAAyC;EAW/C,IAVA,MAAM,QAAQ,CAAiB,GAE3B,EAAkB,IAAI,SAAS,MACjC,KAAK,MAAM,sBAAsB,WAAW,KAAK,QAAQ,WAGvD,EAAkB,IAAI,MAAM,MAC9B,KAAK,MAAM,mBAAmB,WAAW,KAAK,KAAK,WAGjD,EAAkB,IAAI,KAAK,GAC7B,QAAQ,KAAK,KAAb;GACE,KAAK;GACL,KAAK;GACL,KAAK;IACH,KAAK,MAAM,MAAM;IACjB;GACF;IACE,IAAM,IAAW,OAAO,KAAK,GAAG,IAAI,GAAG,KAAK,IAAI,MAAM,KAAK;IAC3D,KAAK,MAAM,MAAM;IACjB;EACJ;CAEJ;CAEA,SAAS;EACP,OAAO,CAAI;CACb;;gBAEgB,CAAG;;;;;;;;;;;;;;;;;;;;;;;AAsBrB;GAtEG,EAAS,EAAE,MAAM,OAAO,CAAC,CAAA,GAAA,EAAA,WAAA,OAAA,KAAA,CAAA,MAUzB,EAAS,EAAE,MAAM,OAAO,CAAC,CAAA,GAAA,EAAA,WAAA,WAAA,KAAA,CAAA,MAMzB,EAAS,EAAE,MAAM,OAAO,CAAC,CAAA,GAAA,EAAA,WAAA,QAAA,KAAA,CAAA,UAvB3B,EAAc,CAAe,CAAA,GAAA,CAAA"}
|
package/fhi-headline.js
CHANGED
|
@@ -1,36 +1,26 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
new TypeError(
|
|
18
|
-
`The level property must be set to a number between 1 and 6. Current value: ${this.level}`
|
|
19
|
-
)
|
|
20
|
-
);
|
|
21
|
-
}
|
|
22
|
-
e.has("color") && (this.style.color = typeof this.color == "string" ? this.color : "currentcolor");
|
|
23
|
-
}
|
|
24
|
-
render() {
|
|
25
|
-
const e = `
|
|
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
|
+
import { t as o } from "./unsafe-html-CBTN3162.js";
|
|
3
|
+
//#region src/components/typography/fhi-headline/fhi-headline.component.ts
|
|
4
|
+
var s = "fhi-headline", c = class extends r {
|
|
5
|
+
constructor(...e) {
|
|
6
|
+
super(...e), this.size = "medium", this.color = "currentcolor";
|
|
7
|
+
}
|
|
8
|
+
updated(e) {
|
|
9
|
+
if (super.updated(e), e.has("level")) {
|
|
10
|
+
let e = Number(this.level);
|
|
11
|
+
(isNaN(e) || e < 1 || e > 6) && console.error(/* @__PURE__ */ TypeError(`The level property must be set to a number between 1 and 6. Current value: ${this.level}`));
|
|
12
|
+
}
|
|
13
|
+
e.has("color") && (this.style.color = typeof this.color == "string" ? this.color : "currentcolor");
|
|
14
|
+
}
|
|
15
|
+
render() {
|
|
16
|
+
return a`${o(`
|
|
26
17
|
<h${this.level} class="headline">
|
|
27
18
|
<slot></slot>
|
|
28
19
|
</h${this.level}>
|
|
29
|
-
`;
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
l.styles = p`
|
|
20
|
+
`)}`;
|
|
21
|
+
}
|
|
22
|
+
static {
|
|
23
|
+
this.styles = t`
|
|
34
24
|
:host {
|
|
35
25
|
display: block;
|
|
36
26
|
contain: layout;
|
|
@@ -68,20 +58,13 @@ l.styles = p`
|
|
|
68
58
|
}
|
|
69
59
|
}
|
|
70
60
|
`;
|
|
71
|
-
|
|
72
|
-
s({ type: String, reflect: !0 })
|
|
73
|
-
], l.prototype, "size", 2);
|
|
74
|
-
a([
|
|
75
|
-
s({ type: String })
|
|
76
|
-
], l.prototype, "color", 2);
|
|
77
|
-
a([
|
|
78
|
-
s({ type: Number })
|
|
79
|
-
], l.prototype, "level", 2);
|
|
80
|
-
l = a([
|
|
81
|
-
y(v)
|
|
82
|
-
], l);
|
|
83
|
-
export {
|
|
84
|
-
l as FhiHeadline,
|
|
85
|
-
v as FhiHeadlineSelector
|
|
61
|
+
}
|
|
86
62
|
};
|
|
87
|
-
|
|
63
|
+
i([e({
|
|
64
|
+
type: String,
|
|
65
|
+
reflect: !0
|
|
66
|
+
})], c.prototype, "size", void 0), i([e({ type: String })], c.prototype, "color", void 0), i([e({ type: Number })], c.prototype, "level", void 0), c = i([n(s)], c);
|
|
67
|
+
//#endregion
|
|
68
|
+
export { c as FhiHeadline, s as FhiHeadlineSelector };
|
|
69
|
+
|
|
70
|
+
//# sourceMappingURL=fhi-headline.js.map
|
package/fhi-headline.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fhi-headline.js","sources":["../../src/components/typography/fhi-headline/fhi-headline.component.ts"],"sourcesContent":["import { html, css, LitElement, PropertyValues } from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\nimport { unsafeHTML } from 'lit/directives/unsafe-html.js';\n\nexport const FhiHeadlineSelector = 'fhi-headline';\n\nexport type HeadlineLevel = 1 | 2 | 3 | 4 | 5 | 6;\n\n/**\n * ## FHI Headline\n *\n * {@link https://designsystem.fhi.no/?path=/story/komponenter-typography-headline--preview}\n *\n * The `<fhi-headline>` component is used to display standard headline text in accordance with the FHI Design System guidelines.\n *\n * For smaller, less prominent title text, use the `<fhi-title>` component instead.\n *\n * For larger, more prominent headline text, use the `<fhi-display>` component instead.\n *\n * Use this component instead of the standard HTML heading elements, `<h1>` - `<h6>`, to ensure consistent styling across your application.\n *\n * @tag fhi-headline\n * @element fhi-headline\n *\n * @slot - The content of the fhi-headline component. This should be pure text.\n */\n@customElement(FhiHeadlineSelector)\nexport class FhiHeadline extends LitElement {\n /**\n * Sets the size of the text styles.\n * @reflect\n * @type {'large' | 'medium' | 'small'}\n */\n @property({ type: String, reflect: true }) size:\n | 'large'\n | 'medium'\n | 'small' = 'medium';\n\n /**\n * Sets color of the given text. It supports any valid CSS color value (e.g. hex, rgb, rgba, hsl, hsla, color names).\n *\n * It is recommended to use Design Tokens for colors defined in the FHI Design System.\n * See: {@link https://designsystem.fhi.no/?path=/docs/design-tokens-farger--docs}\n *\n * Example:\n * ```html\n * <fhi-headline color=\"var(--fhi-color-primary-text-default)\">\n * This text will be in the primary text color.\n * </fhi-headline>\n * ```\n *\n * @type {string}\n */\n @property({ type: String }) color?: string = 'currentcolor';\n\n /**\n * Sets the heading level for the text, corresponding to HTML heading elements `<h1>` to `<h6>`.\n * @type {1 | 2 | 3 | 4 | 5 | 6}\n */\n @property({ type: Number }) level!: HeadlineLevel;\n\n updated(changedProperties: PropertyValues<this>) {\n super.updated(changedProperties);\n\n if (changedProperties.has('level')) {\n const levelAsNumber = Number(this.level);\n if (isNaN(levelAsNumber) || levelAsNumber < 1 || levelAsNumber > 6) {\n console.error(\n new TypeError(\n `The level property must be set to a number between 1 and 6. Current value: ${this.level}`,\n ),\n );\n }\n }\n\n if (changedProperties.has('color')) {\n this.style.color =\n typeof this.color === 'string' ? this.color : 'currentcolor';\n }\n }\n\n render() {\n const template = `\n <h${this.level} class=\"headline\">\n <slot></slot>\n </h${this.level}>\n `;\n return html`${unsafeHTML(template)}`;\n }\n\n static styles = css`\n :host {\n display: block;\n contain: layout;\n .headline {\n font-family: var(--fhi-font-family-default);\n -webkit-font-smoothing: antialiased;\n margin: 0;\n }\n }\n\n :host([size='large']) {\n .headline {\n font-size: var(--fhi-typography-headline-large-font-size);\n font-weight: var(--fhi-typography-headline-large-font-weight);\n line-height: var(--fhi-typography-headline-large-line-height);\n letter-spacing: var(--fhi-typography-headline-large-letter-spacing);\n }\n }\n\n :host([size='medium']) {\n .headline {\n font-size: var(--fhi-typography-headline-medium-font-size);\n font-weight: var(--fhi-typography-headline-medium-font-weight);\n line-height: var(--fhi-typography-headline-medium-line-height);\n letter-spacing: var(--fhi-typography-headline-medium-letter-spacing);\n }\n }\n\n :host([size='small']) {\n .headline {\n font-size: var(--fhi-typography-headline-small-font-size);\n font-weight: var(--fhi-typography-headline-small-font-weight);\n line-height: var(--fhi-typography-headline-small-line-height);\n letter-spacing: var(--fhi-typography-headline-small-letter-spacing);\n }\n }\n `;\n}\n"],"
|
|
1
|
+
{"version":3,"file":"fhi-headline.js","names":[],"sources":["../../src/components/typography/fhi-headline/fhi-headline.component.ts"],"sourcesContent":["import { html, css, LitElement, PropertyValues } from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\nimport { unsafeHTML } from 'lit/directives/unsafe-html.js';\n\nexport const FhiHeadlineSelector = 'fhi-headline';\n\nexport type HeadlineLevel = 1 | 2 | 3 | 4 | 5 | 6;\n\n/**\n * ## FHI Headline\n *\n * {@link https://designsystem.fhi.no/?path=/story/komponenter-typography-headline--preview}\n *\n * The `<fhi-headline>` component is used to display standard headline text in accordance with the FHI Design System guidelines.\n *\n * For smaller, less prominent title text, use the `<fhi-title>` component instead.\n *\n * For larger, more prominent headline text, use the `<fhi-display>` component instead.\n *\n * Use this component instead of the standard HTML heading elements, `<h1>` - `<h6>`, to ensure consistent styling across your application.\n *\n * @tag fhi-headline\n * @element fhi-headline\n *\n * @slot - The content of the fhi-headline component. This should be pure text.\n */\n@customElement(FhiHeadlineSelector)\nexport class FhiHeadline extends LitElement {\n /**\n * Sets the size of the text styles.\n * @reflect\n * @type {'large' | 'medium' | 'small'}\n */\n @property({ type: String, reflect: true }) size:\n | 'large'\n | 'medium'\n | 'small' = 'medium';\n\n /**\n * Sets color of the given text. It supports any valid CSS color value (e.g. hex, rgb, rgba, hsl, hsla, color names).\n *\n * It is recommended to use Design Tokens for colors defined in the FHI Design System.\n * See: {@link https://designsystem.fhi.no/?path=/docs/design-tokens-farger--docs}\n *\n * Example:\n * ```html\n * <fhi-headline color=\"var(--fhi-color-primary-text-default)\">\n * This text will be in the primary text color.\n * </fhi-headline>\n * ```\n *\n * @type {string}\n */\n @property({ type: String }) color?: string = 'currentcolor';\n\n /**\n * Sets the heading level for the text, corresponding to HTML heading elements `<h1>` to `<h6>`.\n * @type {1 | 2 | 3 | 4 | 5 | 6}\n */\n @property({ type: Number }) level!: HeadlineLevel;\n\n updated(changedProperties: PropertyValues<this>) {\n super.updated(changedProperties);\n\n if (changedProperties.has('level')) {\n const levelAsNumber = Number(this.level);\n if (isNaN(levelAsNumber) || levelAsNumber < 1 || levelAsNumber > 6) {\n console.error(\n new TypeError(\n `The level property must be set to a number between 1 and 6. Current value: ${this.level}`,\n ),\n );\n }\n }\n\n if (changedProperties.has('color')) {\n this.style.color =\n typeof this.color === 'string' ? this.color : 'currentcolor';\n }\n }\n\n render() {\n const template = `\n <h${this.level} class=\"headline\">\n <slot></slot>\n </h${this.level}>\n `;\n return html`${unsafeHTML(template)}`;\n }\n\n static styles = css`\n :host {\n display: block;\n contain: layout;\n .headline {\n font-family: var(--fhi-font-family-default);\n -webkit-font-smoothing: antialiased;\n margin: 0;\n }\n }\n\n :host([size='large']) {\n .headline {\n font-size: var(--fhi-typography-headline-large-font-size);\n font-weight: var(--fhi-typography-headline-large-font-weight);\n line-height: var(--fhi-typography-headline-large-line-height);\n letter-spacing: var(--fhi-typography-headline-large-letter-spacing);\n }\n }\n\n :host([size='medium']) {\n .headline {\n font-size: var(--fhi-typography-headline-medium-font-size);\n font-weight: var(--fhi-typography-headline-medium-font-weight);\n line-height: var(--fhi-typography-headline-medium-line-height);\n letter-spacing: var(--fhi-typography-headline-medium-letter-spacing);\n }\n }\n\n :host([size='small']) {\n .headline {\n font-size: var(--fhi-typography-headline-small-font-size);\n font-weight: var(--fhi-typography-headline-small-font-weight);\n line-height: var(--fhi-typography-headline-small-line-height);\n letter-spacing: var(--fhi-typography-headline-small-letter-spacing);\n }\n }\n `;\n}\n"],"mappings":";;;AAIA,IAAa,IAAsB,gBAuB5B,IAAA,cAA0B,EAAW;;2BAS5B,uBAiB+B;;CAQ7C,QAAQ,GAAyC;EAG/C,IAFA,MAAM,QAAQ,CAAiB,GAE3B,EAAkB,IAAI,OAAO,GAAG;GAClC,IAAM,IAAgB,OAAO,KAAK,KAAK;GACvC,CAAI,MAAM,CAAa,KAAK,IAAgB,KAAK,IAAgB,MAC/D,QAAQ,MACN,gBAAI,UACF,8EAA8E,KAAK,OACrF,CACF;EAEJ;EAEA,AAAI,EAAkB,IAAI,OAAO,MAC/B,KAAK,MAAM,QACT,OAAO,KAAK,SAAU,WAAW,KAAK,QAAQ;CAEpD;CAEA,SAAS;EAMP,OAAO,CAAI,GAAG,EAAW;UAJnB,KAAK,MAAM;;WAEV,KAAK,MAAM;KAEe;CACnC;;gBAEgB,CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsCrB;GA/FG,EAAS;CAAE,MAAM;CAAQ,SAAS;AAAK,CAAC,CAAA,GAAA,EAAA,WAAA,QAAA,KAAA,CAAA,MAoBxC,EAAS,EAAE,MAAM,OAAO,CAAC,CAAA,GAAA,EAAA,WAAA,SAAA,KAAA,CAAA,MAMzB,EAAS,EAAE,MAAM,OAAO,CAAC,CAAA,GAAA,EAAA,WAAA,SAAA,KAAA,CAAA,UAjC3B,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-arrow-down-left.component.ts
|
|
3
|
+
var o = "fhi-icon-arrow-down-left", 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.526 6.418a.75.75 0 0 1 1.056 1.056l-.052.056-8.72 8.72H17a.75.75 0 0 1 0 1.5H7a.75.75 0 0 1-.75-.75V7a.75.75 0 1 1 1.5 0v8.19l8.72-8.72z"/></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(g)
|
|
47
|
-
], t);
|
|
48
|
-
export {
|
|
49
|
-
t as FhiIconArrowDownLeft,
|
|
50
|
-
g as FhiIconArrowDownLeftSelector
|
|
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 FhiIconArrowDownLeft, o as FhiIconArrowDownLeftSelector };
|
|
34
|
+
|
|
35
|
+
//# sourceMappingURL=fhi-icon-arrow-down-left.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fhi-icon-arrow-down-left.js","sources":["../../src/components/icons/fhi-icon-arrow-down-left.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 FhiIconArrowDownLeftSelector = \"fhi-icon-arrow-down-left\";\n\n/**\n * ## FhiIconArrowDownLeft\n * \n * {@link https://designsystem.fhi.no/?path=/docs/ikoner--docs}\n * \n * @tag fhi-icon-arrow-down-left\n * @element fhi-icon-arrow-down-left\n */\n@customElement(FhiIconArrowDownLeftSelector)\nexport class FhiIconArrowDownLeft 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.526 6.418a.75.75 0 0 1 1.056 1.056l-.052.056-8.72 8.72H17a.75.75 0 0 1 0 1.5H7a.75.75 0 0 1-.75-.75V7a.75.75 0 1 1 1.5 0v8.19l8.72-8.72z\"/></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-down-left.js","names":[],"sources":["../../src/components/icons/fhi-icon-arrow-down-left.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 FhiIconArrowDownLeftSelector = \"fhi-icon-arrow-down-left\";\n\n/**\n * ## FhiIconArrowDownLeft\n * \n * {@link https://designsystem.fhi.no/?path=/docs/ikoner--docs}\n * \n * @tag fhi-icon-arrow-down-left\n * @element fhi-icon-arrow-down-left\n */\n@customElement(FhiIconArrowDownLeftSelector)\nexport class FhiIconArrowDownLeft 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.526 6.418a.75.75 0 0 1 1.056 1.056l-.052.056-8.72 8.72H17a.75.75 0 0 1 0 1.5H7a.75.75 0 0 1-.75-.75V7a.75.75 0 1 1 1.5 0v8.19l8.72-8.72z\"/></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,4BAWrC,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"}
|
|
@@ -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-arrow-down-right.component.ts
|
|
3
|
+
var o = "fhi-icon-arrow-down-right", 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.47 6.47a.75.75 0 0 1 1.004-.052l.056.052 8.72 8.72V7a.75.75 0 0 1 1.5 0v10a.75.75 0 0 1-.75.75H7a.75.75 0 0 1 0-1.5h8.19L6.47 7.53l-.052-.056A.75.75 0 0 1 6.47 6.47"/></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
|
-
a({ type: String })
|
|
41
|
-
], t.prototype, "color", 2);
|
|
42
|
-
h([
|
|
43
|
-
a({ type: String })
|
|
44
|
-
], t.prototype, "size", 2);
|
|
45
|
-
t = h([
|
|
46
|
-
p(z)
|
|
47
|
-
], t);
|
|
48
|
-
export {
|
|
49
|
-
t as FhiIconArrowDownRight,
|
|
50
|
-
z as FhiIconArrowDownRightSelector
|
|
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 FhiIconArrowDownRight, o as FhiIconArrowDownRightSelector };
|
|
34
|
+
|
|
35
|
+
//# sourceMappingURL=fhi-icon-arrow-down-right.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fhi-icon-arrow-down-right.js","sources":["../../src/components/icons/fhi-icon-arrow-down-right.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 FhiIconArrowDownRightSelector = \"fhi-icon-arrow-down-right\";\n\n/**\n * ## FhiIconArrowDownRight\n * \n * {@link https://designsystem.fhi.no/?path=/docs/ikoner--docs}\n * \n * @tag fhi-icon-arrow-down-right\n * @element fhi-icon-arrow-down-right\n */\n@customElement(FhiIconArrowDownRightSelector)\nexport class FhiIconArrowDownRight 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.47 6.47a.75.75 0 0 1 1.004-.052l.056.052 8.72 8.72V7a.75.75 0 0 1 1.5 0v10a.75.75 0 0 1-.75.75H7a.75.75 0 0 1 0-1.5h8.19L6.47 7.53l-.052-.056A.75.75 0 0 1 6.47 6.47\"/></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-down-right.js","names":[],"sources":["../../src/components/icons/fhi-icon-arrow-down-right.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 FhiIconArrowDownRightSelector = \"fhi-icon-arrow-down-right\";\n\n/**\n * ## FhiIconArrowDownRight\n * \n * {@link https://designsystem.fhi.no/?path=/docs/ikoner--docs}\n * \n * @tag fhi-icon-arrow-down-right\n * @element fhi-icon-arrow-down-right\n */\n@customElement(FhiIconArrowDownRightSelector)\nexport class FhiIconArrowDownRight 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.47 6.47a.75.75 0 0 1 1.004-.052l.056.052 8.72 8.72V7a.75.75 0 0 1 1.5 0v10a.75.75 0 0 1-.75.75H7a.75.75 0 0 1 0-1.5h8.19L6.47 7.53l-.052-.056A.75.75 0 0 1 6.47 6.47\"/></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,IAAgC,6BAWtC,IAAA,cAAoC,EAAW;;4BAOR,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,CAA6B,CAAA,GAAA,CAAA"}
|
package/fhi-icon-arrow-down.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-arrow-down.component.ts
|
|
3
|
+
var o = "fhi-icon-arrow-down", 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="M11.25 5a.75.75 0 0 1 1.5 0v12.19l5.72-5.72a.75.75 0 1 1 1.06 1.06l-7 7a.75.75 0 0 1-1.003.052l-.057-.052-7-7-.052-.056a.75.75 0 0 1 1.056-1.056l.056.052 5.72 5.72z"/></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
|
-
], r.prototype, "color", 2);
|
|
42
|
-
l([
|
|
43
|
-
h({ type: String })
|
|
44
|
-
], r.prototype, "size", 2);
|
|
45
|
-
r = l([
|
|
46
|
-
p(z)
|
|
47
|
-
], r);
|
|
48
|
-
export {
|
|
49
|
-
r as FhiIconArrowDown,
|
|
50
|
-
z as FhiIconArrowDownSelector
|
|
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 FhiIconArrowDown, o as FhiIconArrowDownSelector };
|
|
34
|
+
|
|
35
|
+
//# sourceMappingURL=fhi-icon-arrow-down.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fhi-icon-arrow-down.js","sources":["../../src/components/icons/fhi-icon-arrow-down.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 FhiIconArrowDownSelector = \"fhi-icon-arrow-down\";\n\n/**\n * ## FhiIconArrowDown\n * \n * {@link https://designsystem.fhi.no/?path=/docs/ikoner--docs}\n * \n * @tag fhi-icon-arrow-down\n * @element fhi-icon-arrow-down\n */\n@customElement(FhiIconArrowDownSelector)\nexport class FhiIconArrowDown 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 5a.75.75 0 0 1 1.5 0v12.19l5.72-5.72a.75.75 0 1 1 1.06 1.06l-7 7a.75.75 0 0 1-1.003.052l-.057-.052-7-7-.052-.056a.75.75 0 0 1 1.056-1.056l.056.052 5.72 5.72z\"/></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-down.js","names":[],"sources":["../../src/components/icons/fhi-icon-arrow-down.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 FhiIconArrowDownSelector = \"fhi-icon-arrow-down\";\n\n/**\n * ## FhiIconArrowDown\n * \n * {@link https://designsystem.fhi.no/?path=/docs/ikoner--docs}\n * \n * @tag fhi-icon-arrow-down\n * @element fhi-icon-arrow-down\n */\n@customElement(FhiIconArrowDownSelector)\nexport class FhiIconArrowDown 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 5a.75.75 0 0 1 1.5 0v12.19l5.72-5.72a.75.75 0 1 1 1.06 1.06l-7 7a.75.75 0 0 1-1.003.052l-.057-.052-7-7-.052-.056a.75.75 0 0 1 1.056-1.056l.056.052 5.72 5.72z\"/></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,uBAWjC,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"}
|
package/fhi-icon-arrow-left.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-arrow-left.component.ts
|
|
3
|
+
var o = "fhi-icon-arrow-left", 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="M11.47 4.47a.75.75 0 1 1 1.06 1.06l-5.72 5.72H19a.75.75 0 1 1 0 1.5H6.81l5.72 5.72.052.056a.75.75 0 0 1-1.056 1.056l-.056-.052-7-7a.75.75 0 0 1 0-1.06z"/></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(z)
|
|
47
|
-
], t);
|
|
48
|
-
export {
|
|
49
|
-
t as FhiIconArrowLeft,
|
|
50
|
-
z as FhiIconArrowLeftSelector
|
|
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 FhiIconArrowLeft, o as FhiIconArrowLeftSelector };
|
|
34
|
+
|
|
35
|
+
//# sourceMappingURL=fhi-icon-arrow-left.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fhi-icon-arrow-left.js","sources":["../../src/components/icons/fhi-icon-arrow-left.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 FhiIconArrowLeftSelector = \"fhi-icon-arrow-left\";\n\n/**\n * ## FhiIconArrowLeft\n * \n * {@link https://designsystem.fhi.no/?path=/docs/ikoner--docs}\n * \n * @tag fhi-icon-arrow-left\n * @element fhi-icon-arrow-left\n */\n@customElement(FhiIconArrowLeftSelector)\nexport class FhiIconArrowLeft 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.47 4.47a.75.75 0 1 1 1.06 1.06l-5.72 5.72H19a.75.75 0 1 1 0 1.5H6.81l5.72 5.72.052.056a.75.75 0 0 1-1.056 1.056l-.056-.052-7-7a.75.75 0 0 1 0-1.06z\"/></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-left.js","names":[],"sources":["../../src/components/icons/fhi-icon-arrow-left.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 FhiIconArrowLeftSelector = \"fhi-icon-arrow-left\";\n\n/**\n * ## FhiIconArrowLeft\n * \n * {@link https://designsystem.fhi.no/?path=/docs/ikoner--docs}\n * \n * @tag fhi-icon-arrow-left\n * @element fhi-icon-arrow-left\n */\n@customElement(FhiIconArrowLeftSelector)\nexport class FhiIconArrowLeft 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.47 4.47a.75.75 0 1 1 1.06 1.06l-5.72 5.72H19a.75.75 0 1 1 0 1.5H6.81l5.72 5.72.052.056a.75.75 0 0 1-1.056 1.056l-.056-.052-7-7a.75.75 0 0 1 0-1.06z\"/></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,uBAWjC,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"}
|