@krumio/trailhand-ui 1.9.4 → 1.9.6
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/dist/components/text-input/text-input.d.ts +1 -0
- package/dist/components/text-input/text-input.d.ts.map +1 -1
- package/dist/components/text-input/text-input.js +3 -0
- package/dist/components/text-input/text-input.js.map +1 -1
- package/dist/components/th-form-card/index.d.ts +4 -0
- package/dist/components/th-form-card/index.d.ts.map +1 -0
- package/dist/components/th-form-card/index.js +3 -0
- package/dist/components/th-form-card/index.js.map +1 -0
- package/dist/components/th-form-card/th-form-card.d.ts +37 -0
- package/dist/components/th-form-card/th-form-card.d.ts.map +1 -0
- package/dist/components/th-form-card/th-form-card.js +165 -0
- package/dist/components/th-form-card/th-form-card.js.map +1 -0
- package/dist/components/th-form-card/th-form-row.d.ts +16 -0
- package/dist/components/th-form-card/th-form-row.d.ts.map +1 -0
- package/dist/components/th-form-card/th-form-row.js +68 -0
- package/dist/components/th-form-card/th-form-row.js.map +1 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/dist/styles/colors.css +20 -0
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text-input.d.ts","sourceRoot":"","sources":["../../../src/components/text-input/text-input.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAa,cAAc,EAAE,MAAM,KAAK,CAAC;AAG5D,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,OAAO,CAAC;IAClB,IAAI,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;IACnC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,OA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OAAO,GAAG,QAAQ,GAAG,OAAO,CAAY;IAG9C,KAAK,SAAM;IAGX,QAAQ,UAAS;IAGjB,OAAO,UAAS;IAEhB,OAAO,CAAC,SAAS,CAAmB;IACpC,OAAO,CAAC,MAAM,CAAmB;;IAOjC,MAAM,CAAC,MAAM,0BAqFX;IAEF,iBAAiB;IASjB,KAAK;IAIL,OAAO,CAAC,eAAe;IAavB,OAAO,CAAC,WAAW;IAYnB,YAAY;IAQZ,OAAO,CAAC,eAAe;IAcvB,iBAAiB;IAKjB,mBAAmB,CAAC,QAAQ,EAAE,OAAO;IAIrC,sBAAsB,CAAC,IAAI,EAAE,eAAe,GAAG,IAAI;IAMnD,MAAM,IAAI,cAAc;CAwBzB"}
|
|
@@ -27,6 +27,9 @@ export class TextInput extends LitElement {
|
|
|
27
27
|
this.disabled = true;
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
|
+
focus() {
|
|
31
|
+
this._input?.focus();
|
|
32
|
+
}
|
|
30
33
|
emitChangeEvent() {
|
|
31
34
|
// emit native change event for form integration
|
|
32
35
|
this.dispatchEvent(new Event('change', { bubbles: true, composed: true }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text-input.js","sourceRoot":"","sources":["../../../src/components/text-input/text-input.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAkB,MAAM,KAAK,CAAC;AAC5D,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAa7C,MAAM,OAAO,SAAU,SAAQ,UAAU;IA8BvC;QACE,KAAK,EAAE,CAAC;QA3BV,SAAI,GAAG,EAAE,CAAC;QAGV,UAAK,GAAG,EAAE,CAAC;QAGX,gBAAW,GAAG,EAAE,CAAC;QAGjB,aAAQ,GAAG,KAAK,CAAC;QAGjB,SAAI,GAAiC,QAAQ,CAAC;QAG9C,UAAK,GAAG,EAAE,CAAC;QAGX,aAAQ,GAAG,KAAK,CAAC;QA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IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;uCACI;AAG9C;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;wCAChB;AAGX;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;2CACX;AAGjB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;0CAC3B;AAsMlB,cAAc,CAAC,MAAM,CAAC,sBAAsB,EAAE,SAAS,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/th-form-card/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5C,YAAY,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AAC5D,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/th-form-card/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE5C,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { LitElement, TemplateResult } from 'lit';
|
|
2
|
+
import '../button/button';
|
|
3
|
+
import './th-form-row';
|
|
4
|
+
export type FormCardButtonVariant = 'primary' | 'secondary' | 'alternate' | 'destructive' | 'confirmation';
|
|
5
|
+
/**
|
|
6
|
+
* A form layout card for use inside a modal (or standalone).
|
|
7
|
+
*
|
|
8
|
+
* Compose with `trailhand-form-row` for multi-section forms with optional
|
|
9
|
+
* section titles and per-row column counts. For simple flat forms, slot fields
|
|
10
|
+
* directly and use the `columns` prop.
|
|
11
|
+
*
|
|
12
|
+
* @fires form-card-submit - Fired when the primary action button is clicked
|
|
13
|
+
* @fires form-card-cancel - Fired when the cancel button is clicked
|
|
14
|
+
*
|
|
15
|
+
* @slot - `trailhand-form-row` elements or direct form fields
|
|
16
|
+
*/
|
|
17
|
+
export declare class ThFormCard extends LitElement {
|
|
18
|
+
/** Number of equal-width columns for the form content grid */
|
|
19
|
+
columns: number;
|
|
20
|
+
/** Show a box shadow (useful when used outside a modal) */
|
|
21
|
+
shadow: boolean;
|
|
22
|
+
/** Show a loading spinner and hide content */
|
|
23
|
+
loading: boolean;
|
|
24
|
+
/** Primary action button label. If empty, no button row is rendered. */
|
|
25
|
+
buttonLabel: string;
|
|
26
|
+
/** Variant for the primary action button */
|
|
27
|
+
buttonVariant: FormCardButtonVariant;
|
|
28
|
+
/** Disables the primary action button */
|
|
29
|
+
buttonDisabled: boolean;
|
|
30
|
+
/** Cancel button label. If empty, no cancel button is rendered. */
|
|
31
|
+
cancelLabel: string;
|
|
32
|
+
static styles: import("lit").CSSResult;
|
|
33
|
+
private _handleSubmit;
|
|
34
|
+
private _handleCancel;
|
|
35
|
+
render(): TemplateResult;
|
|
36
|
+
}
|
|
37
|
+
//# sourceMappingURL=th-form-card.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"th-form-card.d.ts","sourceRoot":"","sources":["../../../src/components/th-form-card/th-form-card.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAa,cAAc,EAAW,MAAM,KAAK,CAAC;AAErE,OAAO,kBAAkB,CAAC;AAC1B,OAAO,eAAe,CAAC;AAEvB,MAAM,MAAM,qBAAqB,GAAG,SAAS,GAAG,WAAW,GAAG,WAAW,GAAG,aAAa,GAAG,cAAc,CAAC;AAE3G;;;;;;;;;;;GAWG;AACH,qBAAa,UAAW,SAAQ,UAAU;IACxC,8DAA8D;IAClC,OAAO,SAAK;IAExC,2DAA2D;IACf,MAAM,UAAS;IAE3D,8CAA8C;IACjB,OAAO,UAAS;IAE7C,wEAAwE;IACjB,WAAW,SAAM;IAExE,4CAA4C;IACa,aAAa,EAAE,qBAAqB,CAAa;IAE1G,yCAAyC;IACkB,cAAc,UAAS;IAElF,mEAAmE;IACZ,WAAW,SAAM;IAExE,OAAgB,MAAM,0BA8DpB;IAEF,OAAO,CAAC,aAAa;IAIrB,OAAO,CAAC,aAAa;IAIZ,MAAM,IAAI,cAAc;CAiClC"}
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import { LitElement, html, css, nothing } from 'lit';
|
|
8
|
+
import { property } from 'lit/decorators.js';
|
|
9
|
+
import '../button/button';
|
|
10
|
+
import './th-form-row';
|
|
11
|
+
/**
|
|
12
|
+
* A form layout card for use inside a modal (or standalone).
|
|
13
|
+
*
|
|
14
|
+
* Compose with `trailhand-form-row` for multi-section forms with optional
|
|
15
|
+
* section titles and per-row column counts. For simple flat forms, slot fields
|
|
16
|
+
* directly and use the `columns` prop.
|
|
17
|
+
*
|
|
18
|
+
* @fires form-card-submit - Fired when the primary action button is clicked
|
|
19
|
+
* @fires form-card-cancel - Fired when the cancel button is clicked
|
|
20
|
+
*
|
|
21
|
+
* @slot - `trailhand-form-row` elements or direct form fields
|
|
22
|
+
*/
|
|
23
|
+
export class ThFormCard extends LitElement {
|
|
24
|
+
constructor() {
|
|
25
|
+
super(...arguments);
|
|
26
|
+
/** Number of equal-width columns for the form content grid */
|
|
27
|
+
this.columns = 1;
|
|
28
|
+
/** Show a box shadow (useful when used outside a modal) */
|
|
29
|
+
this.shadow = false;
|
|
30
|
+
/** Show a loading spinner and hide content */
|
|
31
|
+
this.loading = false;
|
|
32
|
+
/** Primary action button label. If empty, no button row is rendered. */
|
|
33
|
+
this.buttonLabel = '';
|
|
34
|
+
/** Variant for the primary action button */
|
|
35
|
+
this.buttonVariant = 'primary';
|
|
36
|
+
/** Disables the primary action button */
|
|
37
|
+
this.buttonDisabled = false;
|
|
38
|
+
/** Cancel button label. If empty, no cancel button is rendered. */
|
|
39
|
+
this.cancelLabel = '';
|
|
40
|
+
}
|
|
41
|
+
_handleSubmit() {
|
|
42
|
+
this.dispatchEvent(new CustomEvent('form-card-submit', { bubbles: true, composed: true }));
|
|
43
|
+
}
|
|
44
|
+
_handleCancel() {
|
|
45
|
+
this.dispatchEvent(new CustomEvent('form-card-cancel', { bubbles: true, composed: true }));
|
|
46
|
+
}
|
|
47
|
+
render() {
|
|
48
|
+
if (this.loading) {
|
|
49
|
+
return html `
|
|
50
|
+
<div class="form-card form-card--loading" part="card">
|
|
51
|
+
<div class="form-card__spinner"></div>
|
|
52
|
+
</div>
|
|
53
|
+
`;
|
|
54
|
+
}
|
|
55
|
+
return html `
|
|
56
|
+
<div class="form-card" part="card">
|
|
57
|
+
<div
|
|
58
|
+
class=${`form-card__content${this.columns > 1 ? ' form-card__content--grid' : ''}`}
|
|
59
|
+
part="content"
|
|
60
|
+
style=${this.columns > 1 ? `--_columns: ${this.columns}` : ''}
|
|
61
|
+
>
|
|
62
|
+
<slot></slot>
|
|
63
|
+
</div>
|
|
64
|
+
${this.buttonLabel || this.cancelLabel
|
|
65
|
+
? html `
|
|
66
|
+
<div class="form-card__actions" part="actions">
|
|
67
|
+
${this.cancelLabel
|
|
68
|
+
? html `<trailhand-button variant="secondary" @button-click=${this._handleCancel}>${this.cancelLabel}</trailhand-button>`
|
|
69
|
+
: nothing}
|
|
70
|
+
${this.buttonLabel
|
|
71
|
+
? html `<trailhand-button variant=${this.buttonVariant} ?disabled=${this.buttonDisabled} @button-click=${this._handleSubmit}>${this.buttonLabel}</trailhand-button>`
|
|
72
|
+
: nothing}
|
|
73
|
+
</div>
|
|
74
|
+
`
|
|
75
|
+
: nothing}
|
|
76
|
+
</div>
|
|
77
|
+
`;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
ThFormCard.styles = css `
|
|
81
|
+
:host {
|
|
82
|
+
display: block;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.form-card {
|
|
86
|
+
display: flex;
|
|
87
|
+
flex-direction: column;
|
|
88
|
+
font-family: var(--font-family, 'Poppins', sans-serif);
|
|
89
|
+
background: var(--th-form-card-bg, transparent);
|
|
90
|
+
border-radius: var(--th-form-card-radius, 8px);
|
|
91
|
+
border: none;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
:host([shadow]) .form-card {
|
|
95
|
+
background: var(--th-form-card-shadow-bg, #ffffff);
|
|
96
|
+
padding: var(--th-form-card-padding, 24px);
|
|
97
|
+
box-shadow: var(--th-form-card-shadow, 0 4px 16px rgba(0, 0, 0, 0.1));
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/* Default: stack rows vertically when using trailhand-form-row children */
|
|
101
|
+
.form-card__content {
|
|
102
|
+
display: flex;
|
|
103
|
+
flex-direction: column;
|
|
104
|
+
gap: var(--th-form-card-gap, 24px);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
/* Flat mode: direct fields without rows — driven by the columns prop */
|
|
108
|
+
.form-card__content--grid {
|
|
109
|
+
display: grid;
|
|
110
|
+
grid-template-columns: repeat(var(--_columns), 1fr);
|
|
111
|
+
gap: var(--th-form-card-gap, 16px);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.form-card__actions {
|
|
115
|
+
display: flex;
|
|
116
|
+
justify-content: flex-end;
|
|
117
|
+
gap: 12px;
|
|
118
|
+
margin-top: 24px;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
/* Loading */
|
|
122
|
+
.form-card--loading {
|
|
123
|
+
min-height: 160px;
|
|
124
|
+
align-items: center;
|
|
125
|
+
justify-content: center;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.form-card__spinner {
|
|
129
|
+
width: 32px;
|
|
130
|
+
height: 32px;
|
|
131
|
+
border: 3px solid #e5e7eb;
|
|
132
|
+
border-top-color: #3b82f6;
|
|
133
|
+
border-radius: 50%;
|
|
134
|
+
animation: spin 0.8s linear infinite;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
@keyframes spin {
|
|
138
|
+
to {
|
|
139
|
+
transform: rotate(360deg);
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
`;
|
|
143
|
+
__decorate([
|
|
144
|
+
property({ type: Number })
|
|
145
|
+
], ThFormCard.prototype, "columns", void 0);
|
|
146
|
+
__decorate([
|
|
147
|
+
property({ type: Boolean, reflect: true })
|
|
148
|
+
], ThFormCard.prototype, "shadow", void 0);
|
|
149
|
+
__decorate([
|
|
150
|
+
property({ type: Boolean })
|
|
151
|
+
], ThFormCard.prototype, "loading", void 0);
|
|
152
|
+
__decorate([
|
|
153
|
+
property({ type: String, attribute: 'button-label' })
|
|
154
|
+
], ThFormCard.prototype, "buttonLabel", void 0);
|
|
155
|
+
__decorate([
|
|
156
|
+
property({ type: String, attribute: 'button-variant' })
|
|
157
|
+
], ThFormCard.prototype, "buttonVariant", void 0);
|
|
158
|
+
__decorate([
|
|
159
|
+
property({ type: Boolean, attribute: 'button-disabled' })
|
|
160
|
+
], ThFormCard.prototype, "buttonDisabled", void 0);
|
|
161
|
+
__decorate([
|
|
162
|
+
property({ type: String, attribute: 'cancel-label' })
|
|
163
|
+
], ThFormCard.prototype, "cancelLabel", void 0);
|
|
164
|
+
customElements.define('trailhand-form-card', ThFormCard);
|
|
165
|
+
//# sourceMappingURL=th-form-card.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"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AAwB;AAG3B;IAAtD,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,cAAc,EAAE,CAAC;+CAAkB;AA6G1E,cAAc,CAAC,MAAM,CAAC,qBAAqB,EAAE,UAAU,CAAC,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { LitElement, TemplateResult } from 'lit';
|
|
2
|
+
/**
|
|
3
|
+
* A section row within a `trailhand-form-card`. Provides an optional title
|
|
4
|
+
* and a configurable CSS-grid for its form fields.
|
|
5
|
+
*
|
|
6
|
+
* @slot - Default slot for form fields, laid out in a grid based on the `columns` prop
|
|
7
|
+
*/
|
|
8
|
+
export declare class ThFormRow extends LitElement {
|
|
9
|
+
/** Optional section title displayed above the field grid */
|
|
10
|
+
title: string;
|
|
11
|
+
/** Number of equal-width columns for this row's field grid */
|
|
12
|
+
columns: number;
|
|
13
|
+
static styles: import("lit").CSSResult;
|
|
14
|
+
render(): TemplateResult;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=th-form-row.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"th-form-row.d.ts","sourceRoot":"","sources":["../../../src/components/th-form-card/th-form-row.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAa,cAAc,EAAW,MAAM,KAAK,CAAC;AAGrE;;;;;GAKG;AACH,qBAAa,SAAU,SAAQ,UAAU;IACvC,4DAA4D;IAChC,KAAK,SAAM;IAEvC,8DAA8D;IAClC,OAAO,SAAK;IAExC,OAAgB,MAAM,0BAwBpB;IAEO,MAAM,IAAI,cAAc;CAYlC"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import { LitElement, html, css, nothing } from 'lit';
|
|
8
|
+
import { property } from 'lit/decorators.js';
|
|
9
|
+
/**
|
|
10
|
+
* A section row within a `trailhand-form-card`. Provides an optional title
|
|
11
|
+
* and a configurable CSS-grid for its form fields.
|
|
12
|
+
*
|
|
13
|
+
* @slot - Default slot for form fields, laid out in a grid based on the `columns` prop
|
|
14
|
+
*/
|
|
15
|
+
export class ThFormRow extends LitElement {
|
|
16
|
+
constructor() {
|
|
17
|
+
super(...arguments);
|
|
18
|
+
/** Optional section title displayed above the field grid */
|
|
19
|
+
this.title = '';
|
|
20
|
+
/** Number of equal-width columns for this row's field grid */
|
|
21
|
+
this.columns = 1;
|
|
22
|
+
}
|
|
23
|
+
render() {
|
|
24
|
+
return html `
|
|
25
|
+
<div class="form-row" part="row">
|
|
26
|
+
${this.title
|
|
27
|
+
? html `<p class="form-row__title" part="title">${this.title}</p>`
|
|
28
|
+
: nothing}
|
|
29
|
+
<div class="form-row__content" part="content" style="--_columns: ${this.columns}">
|
|
30
|
+
<slot></slot>
|
|
31
|
+
</div>
|
|
32
|
+
</div>
|
|
33
|
+
`;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
ThFormRow.styles = css `
|
|
37
|
+
:host {
|
|
38
|
+
display: block;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.form-row {
|
|
42
|
+
display: flex;
|
|
43
|
+
flex-direction: column;
|
|
44
|
+
gap: var(--th-form-row-gap, 8px);
|
|
45
|
+
font-family: var(--font-family, 'Poppins', sans-serif);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.form-row__title {
|
|
49
|
+
margin: 0;
|
|
50
|
+
font-size: 15px;
|
|
51
|
+
font-weight: 600;
|
|
52
|
+
color: var(--th-form-row-title-color, #111827);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.form-row__content {
|
|
56
|
+
display: grid;
|
|
57
|
+
grid-template-columns: repeat(var(--_columns), 1fr);
|
|
58
|
+
gap: var(--th-form-row-field-gap, 16px);
|
|
59
|
+
}
|
|
60
|
+
`;
|
|
61
|
+
__decorate([
|
|
62
|
+
property({ type: String })
|
|
63
|
+
], ThFormRow.prototype, "title", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
property({ type: Number })
|
|
66
|
+
], ThFormRow.prototype, "columns", void 0);
|
|
67
|
+
customElements.define('trailhand-form-row', ThFormRow);
|
|
68
|
+
//# sourceMappingURL=th-form-row.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"th-form-row.js","sourceRoot":"","sources":["../../../src/components/th-form-card/th-form-row.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAkB,OAAO,EAAE,MAAM,KAAK,CAAC;AACrE,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAE7C;;;;;GAKG;AACH,MAAM,OAAO,SAAU,SAAQ,UAAU;IAAzC;;QACE,4DAA4D;QAChC,UAAK,GAAG,EAAE,CAAC;QAEvC,8DAA8D;QAClC,YAAO,GAAG,CAAC,CAAC;IAwC1C,CAAC;IAZU,MAAM;QACb,OAAO,IAAI,CAAA;;UAEL,IAAI,CAAC,KAAK;YACV,CAAC,CAAC,IAAI,CAAA,2CAA2C,IAAI,CAAC,KAAK,MAAM;YACjE,CAAC,CAAC,OAAO;2EACwD,IAAI,CAAC,OAAO;;;;KAIlF,CAAC;IACJ,CAAC;;AArCe,gBAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwB3B,AAxBqB,CAwBpB;AA7B0B;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;wCAAY;AAGX;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;0CAAa;AA0C1C,cAAc,CAAC,MAAM,CAAC,oBAAoB,EAAE,SAAS,CAAC,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -5,7 +5,11 @@ export * from './components/button';
|
|
|
5
5
|
export * from './components/icon';
|
|
6
6
|
export * from './components/th-tag';
|
|
7
7
|
export * from './components/th-card';
|
|
8
|
+
export * from './components/th-form-card';
|
|
8
9
|
export * from './components/progress-bar';
|
|
9
10
|
export * from './components/modal';
|
|
11
|
+
export * from './components/checkbox';
|
|
12
|
+
export * from './components/text-input';
|
|
13
|
+
export * from './components/selector';
|
|
10
14
|
export * from './utils';
|
|
11
15
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,4BAA4B,CAAC;AAC3C,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,4BAA4B,CAAC;AAC3C,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AAGtC,cAAc,SAAS,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -6,8 +6,12 @@ export * from './components/button';
|
|
|
6
6
|
export * from './components/icon';
|
|
7
7
|
export * from './components/th-tag';
|
|
8
8
|
export * from './components/th-card';
|
|
9
|
+
export * from './components/th-form-card';
|
|
9
10
|
export * from './components/progress-bar';
|
|
10
11
|
export * from './components/modal';
|
|
12
|
+
export * from './components/checkbox';
|
|
13
|
+
export * from './components/text-input';
|
|
14
|
+
export * from './components/selector';
|
|
11
15
|
// Export utilities
|
|
12
16
|
export * from './utils';
|
|
13
17
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,wBAAwB;AACxB,cAAc,4BAA4B,CAAC;AAC3C,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,wBAAwB;AACxB,cAAc,4BAA4B,CAAC;AAC3C,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AAEtC,mBAAmB;AACnB,cAAc,SAAS,CAAC"}
|
package/dist/styles/colors.css
CHANGED
|
@@ -146,6 +146,19 @@
|
|
|
146
146
|
/* Shadow colors using opacity */
|
|
147
147
|
--th-color-shadow: rgba(0, 0, 0, 0.1);
|
|
148
148
|
--th-color-shadow-medium: rgba(0, 0, 0, 0.15);
|
|
149
|
+
|
|
150
|
+
/* Form Card */
|
|
151
|
+
--th-form-card-bg: transparent;
|
|
152
|
+
--th-form-card-shadow-bg: var(--th-color-white);
|
|
153
|
+
--th-form-card-radius: 8px;
|
|
154
|
+
--th-form-card-padding: 24px;
|
|
155
|
+
--th-form-card-shadow: 0 4px 16px var(--th-color-shadow);
|
|
156
|
+
--th-form-card-gap: 24px;
|
|
157
|
+
|
|
158
|
+
/* Form Row */
|
|
159
|
+
--th-form-row-title-color: var(--th-color-text-primary);
|
|
160
|
+
--th-form-row-gap: 8px;
|
|
161
|
+
--th-form-row-field-gap: 16px;
|
|
149
162
|
}
|
|
150
163
|
|
|
151
164
|
/* Dark Theme Overrides */
|
|
@@ -216,4 +229,11 @@
|
|
|
216
229
|
--th-progress-bar-track-color: var(--th-color-grey-600);
|
|
217
230
|
--th-progress-bar-title-color: var(--th-color-grey-100);
|
|
218
231
|
--th-progress-bar-label-color: var(--th-color-grey-300);
|
|
232
|
+
|
|
233
|
+
/* Form Card */
|
|
234
|
+
--th-form-card-shadow-bg: var(--th-color-grey-700);
|
|
235
|
+
--th-form-card-shadow: 0 4px 16px var(--th-color-shadow-medium);
|
|
236
|
+
|
|
237
|
+
/* Form Row */
|
|
238
|
+
--th-form-row-title-color: var(--th-color-grey-100);
|
|
219
239
|
}
|