{"version":3,"file":"text-NrSOoUTk.js","sources":["../../src/atoms/text.ts"],"sourcesContent":["import { css, html, LitElement } from \"lit\";\nimport { customElement } from \"lit/decorators/custom-element.js\";\nimport { property } from \"lit/decorators/property.js\";\nimport { sharedStyles } from \"../styles/shared\";\nimport { Size } from \"shared\";\n\n@customElement(\"bs-text\")\nclass BsText extends LitElement {\n\t@property({ reflect: true }) size: Size = \"medium\";\n\t@property({ type: Boolean, reflect: true }) margin = false;\n\t@property({ type: Boolean, reflect: true }) label = false;\n\n\tstatic get styles() {\n\t\treturn [\n\t\t\tsharedStyles,\n\t\t\tcss`\n\t\t\t\t:host {\n\t\t\t\t\tdisplay: block;\n\t\t\t\t\tfont-size: var(--text-font-size, var(--font-size-m));\n\t\t\t\t\tfont-weight: var(--text-font-weight, inherit);\n\t\t\t\t\tline-height: var(--text-line-height, 1.3);\n\t\t\t\t\tword-wrap: break-word;\n\t\t\t\t}\n\n\t\t\t\t:host([size=\"large\"]) {\n\t\t\t\t\tfont-size: var(--text-font-size, var(--font-size-l));\n\t\t\t\t}\n\n\t\t\t\t:host([size=\"small\"]) {\n\t\t\t\t\tfont-size: var(--text-font-size, var(--font-size-s));\n\t\t\t\t}\n\n\t\t\t\t:host([size=\"tiny\"]) {\n\t\t\t\t\tfont-size: var(--text-font-size, var(--font-size-xs));\n\t\t\t\t}\n\n\t\t\t\t:host([size=\"huge\"]) {\n\t\t\t\t\tfont-size: var(--text-font-size, var(--font-size-xl));\n\t\t\t\t}\n\n\t\t\t\t:host([margin]) {\n\t\t\t\t\tmargin: var(--text-margin, 0 0 0.5em);\n\t\t\t\t}\n\n\t\t\t\t:host([label]) {\n\t\t\t\t\topacity: 0.7;\n\t\t\t\t\tline-height: var(--text-label-line-height, 1);\n\t\t\t\t}\n\t\t\t`\n\t\t];\n\t}\n\n\trender() {\n\t\treturn html``;\n\t}\n}\n"],"names":["BsText","LitElement","sharedStyles","css","html","__decorateClass","property","customElement"],"mappings":"2QAOA,IAAMA,EAAN,cAAqBC,CAAW,CAAhC,aAAA,CAAA,MAAA,GAAA,SAAA,EAC2C,KAAA,KAAA,SACW,KAAA,OAAA,GACD,KAAA,MAAA,EAAA,CAEpD,WAAW,QAAS,CACZ,MAAA,CACNC,EACAC;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA,IAAA,CAmCF,CAEA,QAAS,CACD,OAAAC,gBACR,CACD,EA/C8BC,EAAA,CAA5BC,EAAS,CAAE,QAAS,GAAM,CAAA,EADtBN,EACwB,UAAA,OAAA,CAAA,EACeK,EAAA,CAA3CC,EAAS,CAAE,KAAM,QAAS,QAAS,GAAM,CAAA,EAFrCN,EAEuC,UAAA,SAAA,CAAA,EACAK,EAAA,CAA3CC,EAAS,CAAE,KAAM,QAAS,QAAS,GAAM,CAAA,EAHrCN,EAGuC,UAAA,QAAA,CAAA,EAHvCA,EAANK,EAAA,CADCE,EAAc,SAAS,CAAA,EAClBP,CAAA"}