@hotosm/ui 0.3.3-b0 → 0.3.3-b2
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 +10 -26
- package/dist/chunks/chunk.65UBVOFP.js +1 -0
- package/dist/chunks/{chunk.SMJLJ4AN.js → chunk.EOKB5QI4.js} +2 -2
- package/dist/chunks/chunk.FICDKF3C.js +1 -0
- package/dist/chunks/{chunk.34D2LPI2.js → chunk.ILRWC26B.js} +3 -3
- package/dist/chunks/{chunk.4CUSUMKJ.js → chunk.TPOAILO5.js} +157 -56
- package/dist/components/consent/consent.component.d.ts +0 -2
- package/dist/components/consent/consent.component.js +1 -1
- package/dist/components/consent/consent.js +1 -1
- package/dist/components/header/header.component.js +1 -1
- package/dist/components/header/header.js +1 -1
- package/dist/components/tracking/tracking.component.js +1 -1
- package/dist/components/tracking/tracking.js +1 -1
- package/dist/hotosm-ui.d.ts +2 -3
- package/dist/hotosm-ui.js +1 -1
- package/dist/themes/hot-wa-override.css +76 -1
- package/package.json +13 -14
- package/dist/chunks/chunk.4IHZBYNQ.js +0 -1
- package/dist/chunks/chunk.BPPYCS7U.js +0 -19
- package/dist/chunks/chunk.IGQ7CODZ.js +0 -1
- package/dist/chunks/chunk.O2GMJYSL.js +0 -0
- package/dist/chunks/chunk.O6I2TNK3.js +0 -203
- package/dist/chunks/chunk.T5JYZBXW.js +0 -1
- package/dist/components/button/button.component.d.ts +0 -28
- package/dist/components/button/button.component.js +0 -1
- package/dist/components/button/button.d.ts +0 -7
- package/dist/components/button/button.js +0 -1
- package/dist/components/button/button.styles.d.ts +0 -2
- package/dist/components/button/button.styles.js +0 -1
|
@@ -8,8 +8,6 @@ export declare class Consent extends LitElement {
|
|
|
8
8
|
name: string;
|
|
9
9
|
/** The site id for consent. */
|
|
10
10
|
accessor consentId: string;
|
|
11
|
-
/** Force display the banner. */
|
|
12
|
-
accessor force: boolean;
|
|
13
11
|
accessor isOpen: boolean;
|
|
14
12
|
accessor title: string;
|
|
15
13
|
accessor message: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b}from"../../chunks/chunk.
|
|
1
|
+
import{a,b}from"../../chunks/chunk.EOKB5QI4.js";import"../../chunks/chunk.ILRWC26B.js";import"../../chunks/chunk.GTNRNZDH.js";import"../../chunks/chunk.2FEIL35F.js";import"../../chunks/chunk.6Y3X2E2V.js";import"../../chunks/chunk.M3ZIZPKF.js";import"../../chunks/chunk.TNLBUOUK.js";import"../../chunks/chunk.NI7UJOOZ.js";export{a as Consent,b as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunks/chunk.
|
|
1
|
+
import{a}from"../../chunks/chunk.FICDKF3C.js";import"../../chunks/chunk.EOKB5QI4.js";import"../../chunks/chunk.ILRWC26B.js";import"../../chunks/chunk.GTNRNZDH.js";import"../../chunks/chunk.2FEIL35F.js";import"../../chunks/chunk.6Y3X2E2V.js";import"../../chunks/chunk.M3ZIZPKF.js";import"../../chunks/chunk.TNLBUOUK.js";import"../../chunks/chunk.NI7UJOOZ.js";export{a as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{e as a,f as b}from"../../chunks/chunk.TPOAILO5.js";import"../../chunks/chunk.2FEIL35F.js";import"../../chunks/chunk.6Y3X2E2V.js";import"../../chunks/chunk.M3ZIZPKF.js";import"../../chunks/chunk.D4UQX7IV.js";import"../../chunks/chunk.TNLBUOUK.js";import"../../chunks/chunk.NI7UJOOZ.js";export{a as Header,b as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunks/chunk.
|
|
1
|
+
import{a}from"../../chunks/chunk.65UBVOFP.js";import"../../chunks/chunk.TPOAILO5.js";import"../../chunks/chunk.2FEIL35F.js";import"../../chunks/chunk.6Y3X2E2V.js";import"../../chunks/chunk.M3ZIZPKF.js";import"../../chunks/chunk.D4UQX7IV.js";import"../../chunks/chunk.TNLBUOUK.js";import"../../chunks/chunk.NI7UJOOZ.js";export{a as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b}from"../../chunks/chunk.2E5B6OR3.js";import"../../chunks/chunk.
|
|
1
|
+
import{a,b}from"../../chunks/chunk.2E5B6OR3.js";import"../../chunks/chunk.ILRWC26B.js";import"../../chunks/chunk.2FEIL35F.js";import"../../chunks/chunk.6Y3X2E2V.js";import"../../chunks/chunk.TNLBUOUK.js";import"../../chunks/chunk.NI7UJOOZ.js";export{a as MatomoTracking,b as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunks/chunk.3P72BRDN.js";import"../../chunks/chunk.2E5B6OR3.js";import"../../chunks/chunk.
|
|
1
|
+
import{a}from"../../chunks/chunk.3P72BRDN.js";import"../../chunks/chunk.2E5B6OR3.js";import"../../chunks/chunk.ILRWC26B.js";import"../../chunks/chunk.2FEIL35F.js";import"../../chunks/chunk.6Y3X2E2V.js";import"../../chunks/chunk.TNLBUOUK.js";import"../../chunks/chunk.NI7UJOOZ.js";export{a as default};
|
package/dist/hotosm-ui.d.ts
CHANGED
|
@@ -2,6 +2,5 @@ import HotHeader from './components/header/header.js';
|
|
|
2
2
|
import HotLogo from './components/logo/logo.js';
|
|
3
3
|
import HotTracking from './components/tracking/tracking.js';
|
|
4
4
|
import HotConsent from './components/consent/consent.js';
|
|
5
|
-
|
|
6
|
-
export {
|
|
7
|
-
export { HotHeader as Header, HotLogo as Logo, HotConsent as Consent, HotTracking as Tracking, HotButton as Button, };
|
|
5
|
+
export { setupAutoInjection, injectHOTThemeIntoButtons, injectHOTThemeIntoAllComponents, injectCSSIntoShadowDOM } from './utils/shadow-dom-css.js';
|
|
6
|
+
export { HotHeader as Header, HotLogo as Logo, HotConsent as Consent, HotTracking as Tracking, };
|
package/dist/hotosm-ui.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as
|
|
1
|
+
import{a as m}from"./chunks/chunk.MCLA4YSC.js";import"./chunks/chunk.CFJBM2JT.js";import"./chunks/chunk.W65BP3JY.js";import{a as i}from"./chunks/chunk.3P72BRDN.js";import"./chunks/chunk.2E5B6OR3.js";import{a}from"./chunks/chunk.FICDKF3C.js";import"./chunks/chunk.EOKB5QI4.js";import"./chunks/chunk.ILRWC26B.js";import"./chunks/chunk.GTNRNZDH.js";import{a as r}from"./chunks/chunk.65UBVOFP.js";import{a as o,b as t,c as e,d as n}from"./chunks/chunk.TPOAILO5.js";import"./chunks/chunk.2FEIL35F.js";import"./chunks/chunk.6Y3X2E2V.js";import"./chunks/chunk.M3ZIZPKF.js";import"./chunks/chunk.D4UQX7IV.js";import"./chunks/chunk.TNLBUOUK.js";import"./chunks/chunk.NI7UJOOZ.js";export{a as Consent,r as Header,m as Logo,i as Tracking,o as injectCSSIntoShadowDOM,e as injectHOTThemeIntoAllComponents,t as injectHOTThemeIntoButtons,n as setupAutoInjection};
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
:where(:root),
|
|
8
8
|
.wa-palette-hotosm {
|
|
9
9
|
/* NOTE: for some reason WA decided to swap the ordering 05 --> 95 to be dark to light... */
|
|
10
|
-
/* Material design and
|
|
10
|
+
/* Material design and WebAwesome convention is the inverse, so we map to that */
|
|
11
11
|
--wa-color-red-95: var(--hot-color-red-50);
|
|
12
12
|
--wa-color-red-90: var(--hot-color-red-100);
|
|
13
13
|
--wa-color-red-80: var(--hot-color-red-200);
|
|
@@ -92,6 +92,81 @@
|
|
|
92
92
|
--wa-color-gray: var(--wa-color-gray-40);
|
|
93
93
|
--wa-color-gray-key: 40;
|
|
94
94
|
|
|
95
|
+
/* Brand colors - Map to HOT primary colors (red) */
|
|
96
|
+
--wa-color-brand-95: var(--hot-color-primary-50);
|
|
97
|
+
--wa-color-brand-90: var(--hot-color-primary-100);
|
|
98
|
+
--wa-color-brand-80: var(--hot-color-primary-200);
|
|
99
|
+
--wa-color-brand-70: var(--hot-color-primary-300);
|
|
100
|
+
--wa-color-brand-60: var(--hot-color-primary-400);
|
|
101
|
+
--wa-color-brand-50: var(--hot-color-primary-500);
|
|
102
|
+
--wa-color-brand-40: var(--hot-color-primary-600);
|
|
103
|
+
--wa-color-brand-30: var(--hot-color-primary-700);
|
|
104
|
+
--wa-color-brand-20: var(--hot-color-primary-800);
|
|
105
|
+
--wa-color-brand-10: var(--hot-color-primary-900);
|
|
106
|
+
--wa-color-brand-05: var(--hot-color-primary-950);
|
|
107
|
+
--wa-color-brand: var(--wa-color-brand-50);
|
|
108
|
+
--wa-color-brand-key: 50;
|
|
109
|
+
|
|
110
|
+
/* Neutral colors - Map to HOT neutral colors (gray) */
|
|
111
|
+
--wa-color-neutral-95: var(--hot-color-neutral-50);
|
|
112
|
+
--wa-color-neutral-90: var(--hot-color-neutral-100);
|
|
113
|
+
--wa-color-neutral-80: var(--hot-color-neutral-200);
|
|
114
|
+
--wa-color-neutral-70: var(--hot-color-neutral-300);
|
|
115
|
+
--wa-color-neutral-60: var(--hot-color-neutral-400);
|
|
116
|
+
--wa-color-neutral-50: var(--hot-color-neutral-500);
|
|
117
|
+
--wa-color-neutral-40: var(--hot-color-neutral-600);
|
|
118
|
+
--wa-color-neutral-30: var(--hot-color-neutral-700);
|
|
119
|
+
--wa-color-neutral-20: var(--hot-color-neutral-800);
|
|
120
|
+
--wa-color-neutral-10: var(--hot-color-neutral-900);
|
|
121
|
+
--wa-color-neutral-05: var(--hot-color-neutral-950);
|
|
122
|
+
--wa-color-neutral: var(--wa-color-neutral-40);
|
|
123
|
+
--wa-color-neutral-key: 40;
|
|
124
|
+
|
|
125
|
+
/* Success colors - Map to HOT success colors */
|
|
126
|
+
--wa-color-success-95: var(--hot-color-success-50);
|
|
127
|
+
--wa-color-success-90: var(--hot-color-success-100);
|
|
128
|
+
--wa-color-success-80: var(--hot-color-success-200);
|
|
129
|
+
--wa-color-success-70: var(--hot-color-success-300);
|
|
130
|
+
--wa-color-success-60: var(--hot-color-success-400);
|
|
131
|
+
--wa-color-success-50: var(--hot-color-success-500);
|
|
132
|
+
--wa-color-success-40: var(--hot-color-success-600);
|
|
133
|
+
--wa-color-success-30: var(--hot-color-success-700);
|
|
134
|
+
--wa-color-success-20: var(--hot-color-success-800);
|
|
135
|
+
--wa-color-success-10: var(--hot-color-success-900);
|
|
136
|
+
--wa-color-success-05: var(--hot-color-success-950);
|
|
137
|
+
--wa-color-success: var(--wa-color-success-60);
|
|
138
|
+
--wa-color-success-key: 60;
|
|
139
|
+
|
|
140
|
+
/* Warning colors - Map to HOT warning colors */
|
|
141
|
+
--wa-color-warning-95: var(--hot-color-warning-50);
|
|
142
|
+
--wa-color-warning-90: var(--hot-color-warning-100);
|
|
143
|
+
--wa-color-warning-80: var(--hot-color-warning-200);
|
|
144
|
+
--wa-color-warning-70: var(--hot-color-warning-300);
|
|
145
|
+
--wa-color-warning-60: var(--hot-color-warning-400);
|
|
146
|
+
--wa-color-warning-50: var(--hot-color-warning-500);
|
|
147
|
+
--wa-color-warning-40: var(--hot-color-warning-600);
|
|
148
|
+
--wa-color-warning-30: var(--hot-color-warning-700);
|
|
149
|
+
--wa-color-warning-20: var(--hot-color-warning-800);
|
|
150
|
+
--wa-color-warning-10: var(--hot-color-warning-900);
|
|
151
|
+
--wa-color-warning-05: var(--hot-color-warning-950);
|
|
152
|
+
--wa-color-warning: var(--wa-color-warning-80);
|
|
153
|
+
--wa-color-warning-key: 80;
|
|
154
|
+
|
|
155
|
+
/* Danger colors - Map to HOT danger colors */
|
|
156
|
+
--wa-color-danger-95: var(--hot-color-danger-50);
|
|
157
|
+
--wa-color-danger-90: var(--hot-color-danger-100);
|
|
158
|
+
--wa-color-danger-80: var(--hot-color-danger-200);
|
|
159
|
+
--wa-color-danger-70: var(--hot-color-danger-300);
|
|
160
|
+
--wa-color-danger-60: var(--hot-color-danger-400);
|
|
161
|
+
--wa-color-danger-50: var(--hot-color-danger-500);
|
|
162
|
+
--wa-color-danger-40: var(--hot-color-danger-600);
|
|
163
|
+
--wa-color-danger-30: var(--hot-color-danger-700);
|
|
164
|
+
--wa-color-danger-20: var(--hot-color-danger-800);
|
|
165
|
+
--wa-color-danger-10: var(--hot-color-danger-900);
|
|
166
|
+
--wa-color-danger-05: var(--hot-color-danger-950);
|
|
167
|
+
--wa-color-danger: var(--wa-color-danger-50);
|
|
168
|
+
--wa-color-danger-key: 50;
|
|
169
|
+
|
|
95
170
|
/* Check the defaults at https://early.webawesome.com/webawesome@3.0.0-beta.1/dist/styles/color/palettes/default.css */
|
|
96
171
|
/* No change made to: purple, indigo, pink, green */
|
|
97
172
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hotosm/ui",
|
|
3
|
-
"version": "0.3.3-
|
|
3
|
+
"version": "0.3.3-b2",
|
|
4
4
|
"description": "Shared UI components with HOT theming.",
|
|
5
5
|
"homepage": "https://github.com/hotosm/ui#readme",
|
|
6
6
|
"author": {
|
|
@@ -50,20 +50,19 @@
|
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@awesome.me/webawesome": "3.0.0-beta.1",
|
|
53
|
-
"@storybook/addon-
|
|
54
|
-
"@storybook/addon-links": "^
|
|
55
|
-
"@storybook/
|
|
56
|
-
"@storybook/web-components": "^8.2.9",
|
|
57
|
-
"@storybook/web-components-vite": "^8.2.9",
|
|
53
|
+
"@storybook/addon-docs": "^9.0.18",
|
|
54
|
+
"@storybook/addon-links": "^9.0.18",
|
|
55
|
+
"@storybook/web-components-vite": "^9.0.18",
|
|
58
56
|
"@teamhanko/hanko-elements": "^2.1.0",
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
"
|
|
63
|
-
"
|
|
64
|
-
"
|
|
65
|
-
"
|
|
66
|
-
"
|
|
57
|
+
"@whitespace/storybook-addon-html": "^7.0.0",
|
|
58
|
+
"class-variance-authority": "^0.7.1",
|
|
59
|
+
"del": "^8.0.0",
|
|
60
|
+
"esbuild": "^0.25.8",
|
|
61
|
+
"globby": "^14.1.0",
|
|
62
|
+
"lit": "^3.3.1",
|
|
63
|
+
"storybook": "^9.0.18",
|
|
64
|
+
"typescript": "^5.8.3",
|
|
65
|
+
"user-agent-data-types": "^0.4.2"
|
|
67
66
|
},
|
|
68
67
|
"scripts": {
|
|
69
68
|
"dev": "storybook dev -p 3001 --no-open",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{b as t}from"./chunk.BPPYCS7U.js";var o=t;customElements.define("hot-button",t);export{o as a};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import{a as l}from"./chunk.O6I2TNK3.js";import{b as o}from"./chunk.6Y3X2E2V.js";import{a as n}from"./chunk.M3ZIZPKF.js";import{e as t,k as c}from"./chunk.TNLBUOUK.js";import{d as s,e as i,f as a,g as r}from"./chunk.NI7UJOOZ.js";n();var p,d,h,y,g,m,$,S,f,e=class extends c{constructor(){super(...arguments);this.name="hot-button";a(this,p,"primary");a(this,d,"medium");a(this,h,"default");a(this,y,!1);a(this,g,!1);a(this,m,"");a(this,$,"start");a(this,S,"button");a(this,f,"")}get variant(){return i(this,p)}set variant(w){r(this,p,w)}get size(){return i(this,d)}set size(w){r(this,d,w)}get appearance(){return i(this,h)}set appearance(w){r(this,h,w)}get disabled(){return i(this,y)}set disabled(w){r(this,y,w)}get loading(){return i(this,g)}set loading(w){r(this,g,w)}get icon(){return i(this,m)}set icon(w){r(this,m,w)}get iconPosition(){return i(this,$)}set iconPosition(w){r(this,$,w)}get type(){return i(this,S)}set type(w){r(this,S,w)}get hotColor(){return i(this,f)}set hotColor(w){r(this,f,w)}render(){let w=`hot-button${this.hotColor?` hot-${this.hotColor}`:""}`;return t`
|
|
2
|
-
<wa-button
|
|
3
|
-
variant="${this.variant}"
|
|
4
|
-
size="${this.size}"
|
|
5
|
-
appearance="${this.appearance}"
|
|
6
|
-
?disabled="${this.disabled}"
|
|
7
|
-
?loading="${this.loading}"
|
|
8
|
-
type="${this.type}"
|
|
9
|
-
class="${w}"
|
|
10
|
-
>
|
|
11
|
-
${this.icon&&this.iconPosition==="start"?t`
|
|
12
|
-
<wa-icon name="${this.icon}" slot="icon"></wa-icon>
|
|
13
|
-
`:null}
|
|
14
|
-
<slot></slot>
|
|
15
|
-
${this.icon&&this.iconPosition==="end"?t`
|
|
16
|
-
<wa-icon name="${this.icon}" slot="icon"></wa-icon>
|
|
17
|
-
`:null}
|
|
18
|
-
</wa-button>
|
|
19
|
-
`}};p=new WeakMap,d=new WeakMap,h=new WeakMap,y=new WeakMap,g=new WeakMap,m=new WeakMap,$=new WeakMap,S=new WeakMap,f=new WeakMap,e.styles=[l],s([o({type:String})],e.prototype,"variant",1),s([o({type:String})],e.prototype,"size",1),s([o({type:String})],e.prototype,"appearance",1),s([o({type:Boolean})],e.prototype,"disabled",1),s([o({type:Boolean})],e.prototype,"loading",1),s([o({type:String})],e.prototype,"icon",1),s([o({type:String})],e.prototype,"iconPosition",1),s([o({type:String})],e.prototype,"type",1),s([o({type:String,attribute:"hot-color"})],e.prototype,"hotColor",1);var R=e;export{e as a,R as b};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{b as e}from"./chunk.SMJLJ4AN.js";var n=e;customElements.define("hot-consent",e);export{n as a};
|
|
File without changes
|
|
@@ -1,203 +0,0 @@
|
|
|
1
|
-
import{b as o}from"./chunk.TNLBUOUK.js";var r=o`
|
|
2
|
-
.hot-button {
|
|
3
|
-
/* Use HOT theme variables for consistent styling */
|
|
4
|
-
font-family: var(--hot-font-sans);
|
|
5
|
-
font-weight: var(--hot-font-weight-semibold);
|
|
6
|
-
border-radius: var(--hot-border-radius-medium);
|
|
7
|
-
transition: all 0.2s ease-in-out;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.hot-button::part(base) {
|
|
11
|
-
/* Ensure the base part uses HOT styling */
|
|
12
|
-
font-family: var(--hot-font-sans);
|
|
13
|
-
font-weight: var(--hot-font-weight-semibold);
|
|
14
|
-
border-radius: var(--hot-border-radius-medium);
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.hot-button::part(label) {
|
|
18
|
-
/* Style the label part */
|
|
19
|
-
font-family: var(--hot-font-sans);
|
|
20
|
-
font-weight: var(--hot-font-weight-semibold);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
/* Custom HOT gradient variant */
|
|
24
|
-
.hot-button.hot-gradient::part(base) {
|
|
25
|
-
background: linear-gradient(135deg, var(--hot-color-primary-500), var(--hot-color-primary-600));
|
|
26
|
-
border: none;
|
|
27
|
-
color: white;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.hot-button.hot-gradient::part(base):hover {
|
|
31
|
-
background: linear-gradient(135deg, var(--hot-color-primary-600), var(--hot-color-primary-700));
|
|
32
|
-
transform: translateY(-1px);
|
|
33
|
-
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
.hot-button.hot-gradient::part(base):active {
|
|
37
|
-
transform: translateY(0);
|
|
38
|
-
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
/* Custom HOT outline variant */
|
|
42
|
-
.hot-button.hot-outline::part(base) {
|
|
43
|
-
background: transparent;
|
|
44
|
-
border: 2px solid var(--hot-color-primary-500);
|
|
45
|
-
color: var(--hot-color-primary-500);
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.hot-button.hot-outline::part(base):hover {
|
|
49
|
-
background: var(--hot-color-primary-50);
|
|
50
|
-
border-color: var(--hot-color-primary-600);
|
|
51
|
-
color: var(--hot-color-primary-600);
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
/* Custom HOT ghost variant */
|
|
55
|
-
.hot-button.hot-ghost::part(base) {
|
|
56
|
-
background: transparent;
|
|
57
|
-
border: none;
|
|
58
|
-
color: var(--hot-color-primary-500);
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
.hot-button.hot-ghost::part(base):hover {
|
|
62
|
-
background: var(--hot-color-primary-50);
|
|
63
|
-
color: var(--hot-color-primary-600);
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
/* HOT Color Variants */
|
|
67
|
-
.hot-button.hot-red::part(base) {
|
|
68
|
-
background: var(--hot-color-red-500);
|
|
69
|
-
border: none;
|
|
70
|
-
color: white;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
.hot-button.hot-red::part(base):hover {
|
|
74
|
-
background: var(--hot-color-red-600);
|
|
75
|
-
transform: translateY(-1px);
|
|
76
|
-
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
.hot-button.hot-red::part(base):active {
|
|
80
|
-
transform: translateY(0);
|
|
81
|
-
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
.hot-button.hot-yellow::part(base) {
|
|
85
|
-
background: var(--hot-color-yellow-500);
|
|
86
|
-
border: none;
|
|
87
|
-
color: var(--hot-color-gray-900);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
.hot-button.hot-yellow::part(base):hover {
|
|
91
|
-
background: var(--hot-color-yellow-600);
|
|
92
|
-
transform: translateY(-1px);
|
|
93
|
-
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
.hot-button.hot-yellow::part(base):active {
|
|
97
|
-
transform: translateY(0);
|
|
98
|
-
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
.hot-button.hot-blue::part(base) {
|
|
102
|
-
background: var(--hot-color-blue-500);
|
|
103
|
-
border: none;
|
|
104
|
-
color: white;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
.hot-button.hot-blue::part(base):hover {
|
|
108
|
-
background: var(--hot-color-blue-600);
|
|
109
|
-
transform: translateY(-1px);
|
|
110
|
-
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
.hot-button.hot-blue::part(base):active {
|
|
114
|
-
transform: translateY(0);
|
|
115
|
-
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
.hot-button.hot-cyan::part(base) {
|
|
119
|
-
background: var(--hot-color-cyan-500);
|
|
120
|
-
border: none;
|
|
121
|
-
color: white;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
.hot-button.hot-cyan::part(base):hover {
|
|
125
|
-
background: var(--hot-color-cyan-600);
|
|
126
|
-
transform: translateY(-1px);
|
|
127
|
-
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
.hot-button.hot-cyan::part(base):active {
|
|
131
|
-
transform: translateY(0);
|
|
132
|
-
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
.hot-button.hot-rose::part(base) {
|
|
136
|
-
background: var(--hot-color-rose-500);
|
|
137
|
-
border: none;
|
|
138
|
-
color: white;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
.hot-button.hot-rose::part(base):hover {
|
|
142
|
-
background: var(--hot-color-rose-600);
|
|
143
|
-
transform: translateY(-1px);
|
|
144
|
-
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
.hot-button.hot-rose::part(base):active {
|
|
148
|
-
transform: translateY(0);
|
|
149
|
-
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
.hot-button.hot-gray::part(base) {
|
|
153
|
-
background: var(--hot-color-gray-500);
|
|
154
|
-
border: none;
|
|
155
|
-
color: white;
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
.hot-button.hot-gray::part(base):hover {
|
|
159
|
-
background: var(--hot-color-gray-600);
|
|
160
|
-
transform: translateY(-1px);
|
|
161
|
-
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
.hot-button.hot-gray::part(base):active {
|
|
165
|
-
transform: translateY(0);
|
|
166
|
-
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
/* Size variations using HOT spacing */
|
|
170
|
-
.hot-button[size="small"]::part(base) {
|
|
171
|
-
padding: var(--hot-spacing-x-small) var(--hot-spacing-small);
|
|
172
|
-
font-size: var(--hot-font-size-small);
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
.hot-button[size="medium"]::part(base) {
|
|
176
|
-
padding: var(--hot-spacing-small) var(--hot-spacing-medium);
|
|
177
|
-
font-size: var(--hot-font-size-medium);
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
.hot-button[size="large"]::part(base) {
|
|
181
|
-
padding: var(--hot-spacing-medium) var(--hot-spacing-large);
|
|
182
|
-
font-size: var(--hot-font-size-large);
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
/* Icon button specific styling */
|
|
186
|
-
.hot-button[appearance="icon"]::part(base) {
|
|
187
|
-
border-radius: var(--hot-border-radius-circle);
|
|
188
|
-
min-width: auto;
|
|
189
|
-
width: fit-content;
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
/* Loading state */
|
|
193
|
-
.hot-button[loading]::part(base) {
|
|
194
|
-
opacity: 0.7;
|
|
195
|
-
cursor: not-allowed;
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
/* Disabled state */
|
|
199
|
-
.hot-button[disabled]::part(base) {
|
|
200
|
-
opacity: 0.5;
|
|
201
|
-
cursor: not-allowed;
|
|
202
|
-
}
|
|
203
|
-
`;export{r as a};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{e}from"./chunk.4CUSUMKJ.js";var r=e;customElements.define("hot-header",e);export{r as a};
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import '@awesome.me/webawesome/dist/components/button/button.js';
|
|
2
|
-
import '@awesome.me/webawesome/dist/components/icon/icon.js';
|
|
3
|
-
import { LitElement } from "lit";
|
|
4
|
-
import type { CSSResultGroup } from 'lit';
|
|
5
|
-
export declare class Button extends LitElement {
|
|
6
|
-
static styles: CSSResultGroup;
|
|
7
|
-
name: string;
|
|
8
|
-
/** The button variant to use. */
|
|
9
|
-
accessor variant: 'primary' | 'secondary' | 'outline' | 'success' | 'warning' | 'danger';
|
|
10
|
-
/** The button size. */
|
|
11
|
-
accessor size: 'small' | 'medium' | 'large';
|
|
12
|
-
/** The button appearance. */
|
|
13
|
-
accessor appearance: 'default' | 'icon';
|
|
14
|
-
/** Whether the button is disabled. */
|
|
15
|
-
accessor disabled: boolean;
|
|
16
|
-
/** Whether the button is in loading state. */
|
|
17
|
-
accessor loading: boolean;
|
|
18
|
-
/** The icon name to display. */
|
|
19
|
-
accessor icon: string;
|
|
20
|
-
/** The icon position relative to the text. */
|
|
21
|
-
accessor iconPosition: 'start' | 'end';
|
|
22
|
-
/** The button type. */
|
|
23
|
-
accessor type: 'button' | 'submit' | 'reset';
|
|
24
|
-
/** The HOT color variant to use. */
|
|
25
|
-
accessor hotColor: 'red' | 'yellow' | 'blue' | 'cyan' | 'rose' | 'gray' | '';
|
|
26
|
-
protected render(): import("lit-html").TemplateResult<1>;
|
|
27
|
-
}
|
|
28
|
-
export default Button;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a,b}from"../../chunks/chunk.BPPYCS7U.js";import"../../chunks/chunk.O6I2TNK3.js";import"../../chunks/chunk.O2GMJYSL.js";import"../../chunks/chunk.2FEIL35F.js";import"../../chunks/chunk.6Y3X2E2V.js";import"../../chunks/chunk.M3ZIZPKF.js";import"../../chunks/chunk.TNLBUOUK.js";import"../../chunks/chunk.NI7UJOOZ.js";export{a as Button,b as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"../../chunks/chunk.4IHZBYNQ.js";import"../../chunks/chunk.BPPYCS7U.js";import"../../chunks/chunk.O6I2TNK3.js";import"../../chunks/chunk.O2GMJYSL.js";import"../../chunks/chunk.2FEIL35F.js";import"../../chunks/chunk.6Y3X2E2V.js";import"../../chunks/chunk.M3ZIZPKF.js";import"../../chunks/chunk.TNLBUOUK.js";import"../../chunks/chunk.NI7UJOOZ.js";export{a as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"../../chunks/chunk.O6I2TNK3.js";import"../../chunks/chunk.TNLBUOUK.js";import"../../chunks/chunk.NI7UJOOZ.js";export{a as default};
|