@illinois-toolkit/ilw-hero 1.0.1-beta → 1.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/builder/ilw-hero.json +3 -3
- package/builder/versions/ilw-hero.1.0.json +146 -0
- package/builder/versions/ilw-hero.1.1.json +146 -0
- package/builder/versions/{ilw-hero.1.0-beta.json → ilw-hero.latest.json} +3 -3
- package/dist/cdn/ilw-hero.css +1 -0
- package/dist/cdn/ilw-hero.js +779 -0
- package/dist/ilw-hero.css +1 -1
- package/dist/ilw-hero.d.ts +19 -0
- package/dist/ilw-hero.d.ts.map +1 -0
- package/dist/ilw-hero.js +47 -603
- package/dist/ilw-hero.styles.d.ts +3 -0
- package/dist/ilw-hero.styles.d.ts.map +1 -0
- package/package.json +25 -7
- package/src/ilw-hero.css +14 -14
- package/src/{ilw-hero.styles.js → ilw-hero.styles.ts} +6 -0
- package/src/ilw-hero.ts +55 -0
- package/dist/ilw-hero.cjs +0 -189
- package/dist/ilw-hero.umd.cjs +0 -189
- package/src/ilw-hero.js +0 -54
package/dist/ilw-hero.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--ilw-hero--height: 223px;--ilw-hero--font: 700 2.25rem/2.25rem var(--il-font-sans);--ilw-hero--background: var(--
|
|
1
|
+
:root{--ilw-hero--height: 223px;--ilw-hero--font: 700 2.25rem/2.25rem var(--il-font-sans);--ilw-hero--background: var(--ilw-color--heading);--ilw-hero--text-color: var(--ilw-color--background);--ilw-hero--text-width: 40%;--ilw-hero--shadow-color: rgba(0, 0, 0, 1)}ilw-hero{display:block;container-type:inline-size}ilw-hero img,ilw-hero *[slot=background]{display:block;position:relative;width:100%;height:100%;object-fit:cover;object-position:center}ilw-hero h1,ilw-hero h2,ilw-hero h3,ilw-hero p.title{all:initial;font:var(--ilw-hero--font);color:var(--ilw-hero--text-color);text-shadow:2px 2px 2px var(--ilw-hero--shadow-color);text-align:inherit}ilw-hero[theme=orange]{--ilw-hero--background: var(--ilw-color--orange--background);--ilw-hero--button-background-color: var(--ilw-color--orange--control-accent);--ilw-hero--focused-button-foreground-color: var(---ilw-color--orange--control-accent)}ilw-hero[theme=white]{--ilw-hero--background: var(--ilw-color--white--background);--ilw-hero--button-background-color: var(--ilw-color--white--control);--ilw-hero--button-foreground-color: var(--ilw-color--white--control-text);--ilw-hero--button-border-color: var(--ilw-color--white--control-text);--ilw-hero--focused-button-background-color: var(--ilw-color--white--control-text);--ilw-hero--focused-button-foreground-color: var(--ilw-color--white--control);--ilw-hero--focused-button-border-color: var(--ilw-color--white--control-text);--ilw-hero--text-color: var(--ilw-color--white--text);--ilw-hero--shadow-color: rgba(255, 255, 255, 1)}ilw-hero[focus=top] img{object-position:top}ilw-hero[focus=bottom] img{object-position:bottom}ilw-hero[focus=left] img{object-position:left}ilw-hero[focus=right] img{object-position:right}@media(min-width:576px){:root{--ilw-hero--height: 315px;--ilw-hero--font: 700 3rem/3rem var(--il-font-sans)}}@media(min-width:767px){:root{--ilw-hero--height: 557px;--ilw-hero--font: 700 4rem/4rem var(--il-font-sans)}ilw-hero[shadow] h1,ilw-hero[shadow] h2,ilw-hero[shadow] h3{background:radial-gradient(#000000e6,#0000001a);padding:1rem!important}ilw-hero[theme=white][shadow] h1,ilw-hero[theme=white][shadow] h2,ilw-hero[theme=white][shadow] h3{background:radial-gradient(#ffffffe6,#ffffff1a)}}@media(min-width:992px){:root{--ilw-hero--font: 700 4.5rem/4.5rem var(--il-font-sans)}}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
export default class Hero extends LitElement {
|
|
3
|
+
theme: string;
|
|
4
|
+
focusType: string;
|
|
5
|
+
shadow: boolean;
|
|
6
|
+
collapse: boolean;
|
|
7
|
+
alwayson: boolean;
|
|
8
|
+
align: string;
|
|
9
|
+
width: string;
|
|
10
|
+
static styles: import('lit').CSSResult;
|
|
11
|
+
get outerWidth(): string;
|
|
12
|
+
render(): import('lit-html').TemplateResult<1>;
|
|
13
|
+
}
|
|
14
|
+
declare global {
|
|
15
|
+
interface HTMLElementTagNameMap {
|
|
16
|
+
'ilw-hero': Hero;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=ilw-hero.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ilw-hero.d.ts","sourceRoot":"","sources":["../src/ilw-hero.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAa,MAAM,KAAK,CAAC;AAG5C,OAAO,gBAAgB,CAAC;AAGxB,MAAM,CAAC,OAAO,OAAO,IAAK,SAAQ,UAAU;IAE1C,KAAK,EAAE,MAAM,CAAM;IAGnB,SAAS,EAAE,MAAM,CAAM;IAGvB,MAAM,EAAE,OAAO,CAAS;IAGxB,QAAQ,EAAE,OAAO,CAAS;IAG1B,QAAQ,EAAE,OAAO,CAAS;IAG1B,KAAK,EAAE,MAAM,CAAM;IAGnB,KAAK,EAAE,MAAM,CAAM;IAEnB,OAAgB,MAAM,0BAAU;IAEhC,IAAI,UAAU,IAAI,MAAM,CAEvB;IAEQ,MAAM;CAchB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,UAAU,EAAE,IAAI,CAAC;KAClB;CACF"}
|