@krumio/trailhand-ui 1.7.0 → 1.8.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.
Files changed (54) hide show
  1. package/README.md +13 -13
  2. package/dist/components/action-menu/action-menu.d.ts.map +1 -1
  3. package/dist/components/action-menu/action-menu.js +14 -12
  4. package/dist/components/action-menu/action-menu.js.map +1 -1
  5. package/dist/components/button/button.js +18 -18
  6. package/dist/components/data-table/data-table.d.ts +1 -11
  7. package/dist/components/data-table/data-table.d.ts.map +1 -1
  8. package/dist/components/data-table/data-table.js +39 -112
  9. package/dist/components/data-table/data-table.js.map +1 -1
  10. package/dist/components/icon/icon.d.ts +16 -0
  11. package/dist/components/icon/icon.d.ts.map +1 -1
  12. package/dist/components/icon/icon.js +30 -2
  13. package/dist/components/icon/icon.js.map +1 -1
  14. package/dist/components/progress-bar/index.d.ts +2 -0
  15. package/dist/components/progress-bar/index.d.ts.map +1 -0
  16. package/dist/components/progress-bar/index.js +2 -0
  17. package/dist/components/progress-bar/index.js.map +1 -0
  18. package/dist/components/progress-bar/progress-bar.d.ts +27 -0
  19. package/dist/components/progress-bar/progress-bar.d.ts.map +1 -0
  20. package/dist/components/progress-bar/progress-bar.js +124 -0
  21. package/dist/components/progress-bar/progress-bar.js.map +1 -0
  22. package/dist/components/th-card/index.d.ts +3 -0
  23. package/dist/components/th-card/index.d.ts.map +1 -0
  24. package/dist/components/th-card/index.js +2 -0
  25. package/dist/components/th-card/index.js.map +1 -0
  26. package/dist/components/th-card/th-card.d.ts +40 -0
  27. package/dist/components/th-card/th-card.d.ts.map +1 -0
  28. package/dist/components/th-card/th-card.js +376 -0
  29. package/dist/components/th-card/th-card.js.map +1 -0
  30. package/dist/components/th-tag/index.d.ts +3 -0
  31. package/dist/components/th-tag/index.d.ts.map +1 -0
  32. package/dist/components/th-tag/index.js +2 -0
  33. package/dist/components/th-tag/index.js.map +1 -0
  34. package/dist/components/th-tag/th-tag.d.ts +67 -0
  35. package/dist/components/th-tag/th-tag.d.ts.map +1 -0
  36. package/dist/components/th-tag/th-tag.js +287 -0
  37. package/dist/components/th-tag/th-tag.js.map +1 -0
  38. package/dist/components/toggle-switch/toggle-switch.d.ts.map +1 -1
  39. package/dist/components/toggle-switch/toggle-switch.js +5 -3
  40. package/dist/components/toggle-switch/toggle-switch.js.map +1 -1
  41. package/dist/index.d.ts +4 -0
  42. package/dist/index.d.ts.map +1 -1
  43. package/dist/index.js +5 -0
  44. package/dist/index.js.map +1 -1
  45. package/dist/styles/colors.css +116 -86
  46. package/dist/utils/formatters.d.ts +9 -0
  47. package/dist/utils/formatters.d.ts.map +1 -0
  48. package/dist/utils/formatters.js +66 -0
  49. package/dist/utils/formatters.js.map +1 -0
  50. package/dist/utils/index.d.ts +2 -0
  51. package/dist/utils/index.d.ts.map +1 -0
  52. package/dist/utils/index.js +2 -0
  53. package/dist/utils/index.js.map +1 -0
  54. package/package.json +3 -2
@@ -0,0 +1,287 @@
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 '../icon/icon';
10
+ /**
11
+ * A tag/badge component for displaying labels, statuses, or categories.
12
+ * Can be used for status indicators, category labels, or dismissible chips.
13
+ *
14
+ * @fires tag-dismiss - Fired when the dismiss button is clicked (if dismissible)
15
+ *
16
+ * @slot - Default slot for tag content (alternative to label prop)
17
+ */
18
+ export class ThTag extends LitElement {
19
+ constructor() {
20
+ super(...arguments);
21
+ /**
22
+ * The text label to display in the tag
23
+ */
24
+ this.label = '';
25
+ /**
26
+ * Visual variant/color scheme
27
+ */
28
+ this.variant = 'default';
29
+ /**
30
+ * Size of the tag
31
+ */
32
+ this.size = 'md';
33
+ /**
34
+ * Whether the tag can be dismissed/closed
35
+ */
36
+ this.dismissible = false;
37
+ /**
38
+ * Whether the tag is disabled
39
+ */
40
+ this.disabled = false;
41
+ /**
42
+ * Whether to use outlined style (border instead of filled background)
43
+ */
44
+ this.outlined = false;
45
+ /**
46
+ * Optional icon to display before the label (trailhand-icon name)
47
+ */
48
+ this.icon = '';
49
+ /**
50
+ * Value passed in the dismiss event (useful for identifying which tag was dismissed)
51
+ */
52
+ this.value = '';
53
+ }
54
+ /**
55
+ * Handle dismiss button click
56
+ */
57
+ _handleDismiss(e) {
58
+ e.stopPropagation();
59
+ const event = new CustomEvent('tag-dismiss', {
60
+ bubbles: true,
61
+ composed: true,
62
+ detail: { value: this.value || this.label },
63
+ });
64
+ this.dispatchEvent(event);
65
+ }
66
+ /**
67
+ * Render the dismiss button icon
68
+ */
69
+ _renderDismissIcon() {
70
+ return html `<trailhand-icon name="close"></trailhand-icon>`;
71
+ }
72
+ /**
73
+ * Render the component
74
+ */
75
+ render() {
76
+ const classes = [
77
+ 'tag',
78
+ `tag--${this.variant}`,
79
+ `tag--${this.size}`,
80
+ this.outlined ? 'tag--outlined' : '',
81
+ ].filter(Boolean).join(' ');
82
+ return html `
83
+ <span class=${classes} part="tag">
84
+ ${this.icon
85
+ ? html `<span class="tag__icon" part="icon">
86
+ <trailhand-icon name=${this.icon}></trailhand-icon>
87
+ </span>`
88
+ : nothing}
89
+ <span class="tag__label" part="label">
90
+ ${this.label || html `<slot></slot>`}
91
+ </span>
92
+ ${this.dismissible
93
+ ? html `
94
+ <button
95
+ class="tag__dismiss"
96
+ part="dismiss"
97
+ type="button"
98
+ aria-label="Remove tag"
99
+ @click=${this._handleDismiss}
100
+ >
101
+ ${this._renderDismissIcon()}
102
+ </button>
103
+ `
104
+ : nothing}
105
+ </span>
106
+ `;
107
+ }
108
+ }
109
+ ThTag.styles = css `
110
+ :host {
111
+ display: inline-flex;
112
+ align-self: center;
113
+ }
114
+
115
+ :host([disabled]) {
116
+ opacity: 0.5;
117
+ pointer-events: none;
118
+ }
119
+
120
+ .tag {
121
+ padding: 6px 14px;
122
+ display: inline-flex;
123
+ align-items: center;
124
+ gap: 6px;
125
+ border-radius: 9999px;
126
+ font-feature-settings: 'liga' off, 'clig' off;
127
+ font-family: var(--font-family, 'Poppins', sans-serif);
128
+ font-size: 10px;
129
+ font-style: normal;
130
+ font-weight: 600;
131
+ line-height: normal;
132
+ white-space: nowrap;
133
+ transition: all 0.15s ease;
134
+ }
135
+
136
+ /* Size variants */
137
+ .tag--sm {
138
+ padding: 3px 9px;
139
+ font-size: 11px;
140
+ line-height: 16px;
141
+ }
142
+
143
+ .tag--md {
144
+ padding: 4px 12px;
145
+ font-size: 13px;
146
+ line-height: 18px;
147
+ }
148
+
149
+ .tag--lg {
150
+ padding: 6px 16px;
151
+ font-size: 15px;
152
+ line-height: 20px;
153
+ }
154
+
155
+ /* Color variants - soft pastel backgrounds with colored text */
156
+ .tag--default {
157
+ background-color: var(--th-color-background-hover, var(--th-color-grey-200, #EBEBEB));
158
+ color: var(--th-color-text-secondary, var(--th-color-grey-600, #636363));
159
+ }
160
+
161
+ .tag--info {
162
+ background-color: var(--th-color-info-fill, var(--th-color-light-blue, #e6f3ff));
163
+ color: var(--th-color-info-outline, var(--th-color-blue, #0085ff));
164
+ }
165
+
166
+ .tag--success {
167
+ background-color: var(--th-color-success-fill, var(--th-color-light-green, #d2fdd2));
168
+ color: var(--th-color-success-outline, var(--th-color-green, #097409));
169
+ }
170
+
171
+ .tag--warning {
172
+ background-color: var(--th-color-warning-fill, var(--th-color-light-yellow, #fffeb4));
173
+ color: var(--th-color-warning-outline, var(--th-color-dark-yellow, #a89939));
174
+ }
175
+
176
+ .tag--error {
177
+ background-color: var(--th-color-error-fill, var(--th-color-light-red, #fee2e2));
178
+ color: var(--th-color-error-outline, var(--th-color-red, #9F3A3A));
179
+ }
180
+
181
+ /* Outlined variants */
182
+ .tag--outlined {
183
+ background-color: transparent;
184
+ border: 1px solid currentColor;
185
+ }
186
+
187
+ .tag--outlined.tag--default {
188
+ background-color: transparent;
189
+ color: var(--th-color-text-secondary, var(--th-color-grey-600, #4b5563));
190
+ }
191
+
192
+ .tag--outlined.tag--info {
193
+ background-color: transparent;
194
+ color: var(--th-color-info-outline, var(--th-color-blue, #0085ff));
195
+ }
196
+
197
+ .tag--outlined.tag--success {
198
+ background-color: transparent;
199
+ color: var(--th-color-success-outline, var(--th-color-green, #097409));
200
+ }
201
+
202
+ .tag--outlined.tag--warning {
203
+ background-color: transparent;
204
+ color: var(--th-color-warning-outline, var(--th-color-dark-yellow, #a89939));
205
+ }
206
+
207
+ .tag--outlined.tag--error {
208
+ background-color: transparent;
209
+ color: var(--th-color-error-outline, var(--th-color-red, #9F3A3A));
210
+ }
211
+
212
+ /* Icon styling */
213
+ .tag__icon {
214
+ display: flex;
215
+ align-items: center;
216
+ font-size: 1em;
217
+ }
218
+
219
+ /* Dismiss button */
220
+ .tag__dismiss {
221
+ display: flex;
222
+ align-items: center;
223
+ justify-content: center;
224
+ background: none;
225
+ border: none;
226
+ padding: 0;
227
+ margin-left: 2px;
228
+ cursor: pointer;
229
+ color: inherit;
230
+ opacity: 0.7;
231
+ transition: opacity 0.15s ease;
232
+ line-height: 1;
233
+ }
234
+
235
+ .tag__dismiss:hover {
236
+ opacity: 1;
237
+ }
238
+
239
+ .tag__dismiss:focus {
240
+ outline: none;
241
+ opacity: 1;
242
+ }
243
+
244
+ .tag__dismiss trailhand-icon {
245
+ font-size: 1em;
246
+ }
247
+
248
+ /* Size-specific dismiss button adjustments */
249
+ .tag--sm .tag__dismiss trailhand-icon {
250
+ font-size: 12px;
251
+ }
252
+
253
+ .tag--md .tag__dismiss trailhand-icon {
254
+ font-size: 14px;
255
+ }
256
+
257
+ .tag--lg .tag__dismiss trailhand-icon {
258
+ font-size: 16px;
259
+ }
260
+ `;
261
+ __decorate([
262
+ property({ type: String })
263
+ ], ThTag.prototype, "label", void 0);
264
+ __decorate([
265
+ property({ type: String })
266
+ ], ThTag.prototype, "variant", void 0);
267
+ __decorate([
268
+ property({ type: String })
269
+ ], ThTag.prototype, "size", void 0);
270
+ __decorate([
271
+ property({ type: Boolean })
272
+ ], ThTag.prototype, "dismissible", void 0);
273
+ __decorate([
274
+ property({ type: Boolean })
275
+ ], ThTag.prototype, "disabled", void 0);
276
+ __decorate([
277
+ property({ type: Boolean })
278
+ ], ThTag.prototype, "outlined", void 0);
279
+ __decorate([
280
+ property({ type: String })
281
+ ], ThTag.prototype, "icon", void 0);
282
+ __decorate([
283
+ property({ type: String })
284
+ ], ThTag.prototype, "value", void 0);
285
+ // Register the element
286
+ customElements.define('trailhand-tag', ThTag);
287
+ //# sourceMappingURL=th-tag.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"th-tag.js","sourceRoot":"","sources":["../../../src/components/th-tag/th-tag.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;AAC7C,OAAO,cAAc,CAAC;AAoBtB;;;;;;;GAOG;AACH,MAAM,OAAO,KAAM,SAAQ,UAAU;IAArC;;QACE;;WAEG;QAEH,UAAK,GAAG,EAAE,CAAC;QAEX;;WAEG;QAEH,YAAO,GAAe,SAAS,CAAC;QAEhC;;WAEG;QAEH,SAAI,GAAY,IAAI,CAAC;QAErB;;WAEG;QAEH,gBAAW,GAAG,KAAK,CAAC;QAEpB;;WAEG;QAEH,aAAQ,GAAG,KAAK,CAAC;QAEjB;;WAEG;QAEH,aAAQ,GAAG,KAAK,CAAC;QAEjB;;WAEG;QAEH,SAAI,GAA2B,EAAE,CAAC;Q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B,CAAC,CAAC,EAAE,KAAK,GAAG,IAAI;IAOpC;;;OAGG;IACH,mBAAmB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI;IAkB3C;;;OAGG;IACH,kBAAkB,CAAC,CAAC,EAAE,KAAK,GAAG,IAAI;IAalC;;;OAGG;IACM,MAAM,IAAI,cAAc;CAclC"}
1
+ {"version":3,"file":"toggle-switch.d.ts","sourceRoot":"","sources":["../../../src/components/toggle-switch/toggle-switch.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAa,cAAc,EAAE,MAAM,KAAK,CAAC;AAW5D;;;GAGG;AACH,qBAAa,YAAa,SAAQ,UAAU;IAE1C,OAAO,UAAS;IAGhB,OAAO,SAAQ;IAGf,QAAQ,SAAS;IAGjB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAQ;IAGjC,IAAI,SAAM;IAEV,OAAO,CAAC,yBAAyB,CAAqB;IAEtD,OAAgB,MAAM,0BA0DpB;;IASO,iBAAiB,IAAI,IAAI;IAWzB,oBAAoB,IAAI,IAAI;IAQrC;;;OAGG;IACH,oBAAoB,CAAC,CAAC,EAAE,KAAK,GAAG,IAAI;IAOpC;;;OAGG;IACH,mBAAmB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI;IAkB3C;;;OAGG;IACH,kBAAkB,CAAC,CAAC,EAAE,KAAK,GAAG,IAAI;IAalC;;;OAGG;IACM,MAAM,IAAI,cAAc;CAelC"}
@@ -88,6 +88,7 @@ export class ToggleSwitch extends LitElement {
88
88
  <label class="toggle-switch">
89
89
  <input
90
90
  type="checkbox"
91
+ aria-label=${this.name || `${this.offLabel} / ${this.onLabel}`}
91
92
  .checked=${this.checked}
92
93
  @change=${this.handleToggleChange}
93
94
  />
@@ -102,6 +103,7 @@ ToggleSwitch.styles = css `
102
103
  display: flex;
103
104
  align-items: center;
104
105
  margin-right: 10px;
106
+ font-family: var(--font-family, 'Poppins', sans-serif);
105
107
  }
106
108
 
107
109
  .toggle-switch {
@@ -125,7 +127,7 @@ ToggleSwitch.styles = css `
125
127
  left: 0;
126
128
  right: 0;
127
129
  bottom: 0;
128
- background-color: var(--color-grey-500, #8D8D8D);
130
+ background-color: var(--th-color-grey-500, #8D8D8D);
129
131
  transition: 0.3s;
130
132
  border-radius: 24px;
131
133
  }
@@ -137,13 +139,13 @@ ToggleSwitch.styles = css `
137
139
  width: 18px;
138
140
  left: 3px;
139
141
  bottom: 3px;
140
- background-color: var(--color-white, #FFFFFF);
142
+ background-color: var(--th-color-white, #FFFFFF);
141
143
  transition: 0.3s;
142
144
  border-radius: 50%;
143
145
  }
144
146
 
145
147
  input:checked + .slider {
146
- background-color: var(--color-primary, #3d98d3);
148
+ background-color: var(--th-color-primary, #3d98d3);
147
149
  }
148
150
 
149
151
  input:checked + .slider:before {
@@ -1 +1 @@
1
- {"version":3,"file":"toggle-switch.js","sourceRoot":"","sources":["../../../src/components/toggle-switch/toggle-switch.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAkB,MAAM,KAAK,CAAC;AAC5D,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAU7C;;;GAGG;AACH,MAAM,OAAO,YAAa,SAAQ,UAAU;IA6E1C;QACE,KAAK,EAAE,CAAC;QA5EV,YAAO,GAAG,KAAK,CAAC;QAGhB,YAAO,GAAG,IAAI,CAAC;QAGf,aAAQ,GAAG,KAAK,CAAC;QAGjB,eAAU,GAAkB,IAAI,CAAC;QAGjC,SAAI,GAAG,EAAE,CAAC;QAiER,6DAA6D;QAC7D,IAAI,CAAC,yBAAyB,GAAG,IAAI,CAAC,oBAAoB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACtE,MAAM,CAAC,gBAAgB,CAAC,gBAAgB,EAAE,IAAI,CAAC,yBAAyB,CAAC,CAAC;IAC5E,CAAC;IAEQ,iBAAiB;QACxB,KAAK,CAAC,iBAAiB,EAAE,CAAC;QAC1B,yDAAyD;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kBAAkB;;;;4BAIf,IAAI,CAAC,OAAO;KACnC,CAAC;IACJ,CAAC;;AA1Je,mBAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0D3B,AA1DqB,CA0DpB;AA1EF;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;6CACZ;AAGhB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,UAAU,EAAE,CAAC;6CACnC;AAGf;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,WAAW,EAAE,CAAC;8CAClC;AAGjB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,aAAa,EAAE,CAAC;gDACpB;AAGjC;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;0CACjB;AAiKZ,uBAAuB;AACvB,cAAc,CAAC,MAAM,CAAC,eAAe,EAAE,YAAY,CAAC,CAAC"}
package/dist/index.d.ts CHANGED
@@ -3,4 +3,8 @@ export * from './components/action-menu';
3
3
  export * from './components/data-table';
4
4
  export * from './components/button';
5
5
  export * from './components/icon';
6
+ export * from './components/th-tag';
7
+ export * from './components/th-card';
8
+ export * from './components/progress-bar';
9
+ export * from './utils';
6
10
  //# sourceMappingURL=index.d.ts.map
@@ -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"}
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;AAG1C,cAAc,SAAS,CAAC"}
package/dist/index.js CHANGED
@@ -4,4 +4,9 @@ export * from './components/action-menu';
4
4
  export * from './components/data-table';
5
5
  export * from './components/button';
6
6
  export * from './components/icon';
7
+ export * from './components/th-tag';
8
+ export * from './components/th-card';
9
+ export * from './components/progress-bar';
10
+ // Export utilities
11
+ export * from './utils';
7
12
  //# 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"}
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;AAE1C,mBAAmB;AACnB,cAAc,SAAS,CAAC"}
@@ -3,130 +3,160 @@
3
3
  * Based on Figma Design System Color Palette
4
4
  *
5
5
  * Usage: Import this file in your application root, then use CSS variables
6
- * Example: color: var(--color-primary);
6
+ * Example: color: var(--th-color-primary);
7
7
  */
8
8
 
9
9
  :root {
10
10
  /* Color Palette */
11
11
  /* Primary Blues */
12
- --color-primary: #3d98d3; /* Primary brand color */
13
- --color-light-primary: #e6f3ff; /* Light variant for backgrounds */
14
- --color-dark-primary: #005cb9; /* Dark variant for buttons/links */
12
+ --th-color-primary: #0086FF; /* Primary brand color */
13
+ --th-color-light-primary: #e6f3ff; /* Light variant for backgrounds */
14
+ --th-color-dark-primary: #005cb9; /* Dark variant for buttons/links */
15
15
 
16
16
  /* Black + White */
17
- --color-black: #000000;
18
- --color-white: #ffffff;
17
+ --th-color-black: #000000;
18
+ --th-color-white: #ffffff;
19
19
 
20
20
  /* Greyscale */
21
- --color-grey-100: #fafafa;
22
- --color-grey-200: #ebebeb;
23
- --color-grey-300: #d7d7d7;
24
- --color-grey-400: #bababa;
25
- --color-grey-500: #8d8d8d;
26
- --color-grey-600: #636363;
27
- --color-grey-700: #303131;
28
- --color-grey-800: #212121;
21
+ --th-color-grey-100: #fafafa;
22
+ --th-color-grey-200: #ebebeb;
23
+ --th-color-grey-300: #d7d7d7;
24
+ --th-color-grey-400: #bababa;
25
+ --th-color-grey-500: #8d8d8d;
26
+ --th-color-grey-600: #636363;
27
+ --th-color-grey-700: #303131;
28
+ --th-color-grey-800: #212121;
29
29
 
30
30
  /* Status Colors */
31
- --color-light-red: #fee2e2;
32
- --color-red: #9f3a3a;
33
- --color-dark-red: #731616;
31
+ --th-color-light-red: #fee2e2;
32
+ --th-color-red: #9f3a3a;
33
+ --th-color-dark-red: #731616;
34
34
 
35
- --color-light-green: #d2fdd2;
36
- --color-green: #30ac66;
37
- --color-dark-green: #0f8240;
35
+ --th-color-light-green: #d2fdd2;
36
+ --th-color-green: #30ac66;
37
+ --th-color-dark-green: #0f8240;
38
38
 
39
- --color-light-yellow: #fffeb4;
40
- --color-yellow: #d3c255;
41
- --color-dark-yellow: #a89939;
39
+ --th-color-light-yellow: #fffeb4;
40
+ --th-color-yellow: #D3C255;
41
+ --th-color-dark-yellow: #a89939;
42
42
 
43
- --color-light-blue: #e6f3ff;
44
- --color-blue: #0085ff;
45
- --color-dark-blue: #005cb9;
43
+ --th-color-light-blue: #e6f3ff;
44
+ --th-color-blue: #0085ff;
45
+ --th-color-dark-blue: #005cb9;
46
46
 
47
47
  /* Semantic Aliases - for common use cases */
48
48
  /* Text */
49
- --color-text-primary: var(--color-grey-800);
50
- --color-text-secondary: var(--color-grey-600);
51
- --color-text-muted: var(--color-grey-500);
52
- --color-text-inverse: var(--color-white);
49
+ --th-color-text-primary: var(--th-color-grey-800);
50
+ --th-color-text-secondary: var(--th-color-grey-600);
51
+ --th-color-text-muted: var(--th-color-grey-500);
52
+ --th-color-text-inverse: var(--th-color-white);
53
53
 
54
54
  /* Backgrounds */
55
- --color-background: var(--color-white);
56
- --color-background-muted: var(--color-grey-100);
57
- --color-background-hover: var(--color-grey-200);
55
+ --th-color-background: var(--th-color-white);
56
+ --th-color-background-muted: var(--th-color-grey-100);
57
+ --th-color-background-hover: var(--th-color-grey-200);
58
58
 
59
59
  /* Borders */
60
- --color-border: var(--color-grey-300);
61
- --color-border-light: var(--color-grey-200);
60
+ --th-color-border: var(--th-color-grey-300);
61
+ --th-color-border-light: var(--th-color-grey-200);
62
62
 
63
- --color-error-outline: var(--color-red);
64
- --color-success-outline: var(--color-green);
65
- --color-warning-outline: var(--color-yellow);
66
- --color-info-outline: var(--color-blue);
63
+ --th-color-error-outline: var(--th-color-red);
64
+ --th-color-success-outline: var(--th-color-green);
65
+ --th-color-warning-outline: var(--th-color-yellow);
66
+ --th-color-info-outline: var(--th-color-blue);
67
67
 
68
- --color-error-fill: var(--color-light-red);
69
- --color-success-fill: var(--color-light-green);
70
- --color-warning-fill: var(--color-light-yellow);
71
- --color-info-fill: var(--color-light-blue);
68
+ --th-color-error-fill: var(--th-color-light-red);
69
+ --th-color-success-fill: var(--th-color-light-green);
70
+ --th-color-warning-fill: var(--th-color-light-yellow);
71
+ --th-color-info-fill: var(--th-color-light-blue);
72
72
 
73
73
  /* Component-specific variables (mapped to palette) */
74
74
  /* Links */
75
- --color-link: var(--color-primary);
76
- --color-link-hover: var(--color-primary);
75
+ --th-color-link: var(--th-color-primary);
76
+ --th-color-link-hover: var(--th-color-primary);
77
77
  /* Buttons */
78
- --button-disabled-bg: var(--color-grey-200);
79
- --button-disabled-color: var(--color-grey-500);
80
-
81
- --button-primary-bg: var(--color-primary);
82
- --button-primary-bg-hover: var(--color-dark-primary);
83
- --button-primary-color: var(--color-white);
84
-
85
- --button-secondary-bg: var(--color-white);
86
- --button-secondary-bg-hover: var(--color-light-primary);
87
- --button-secondary-color: var(--color-primary);
88
- --button-secondary-border: var(--color-primary);
89
-
90
- --button-alternate-bg: var(--color-blue);
91
- --button-alternate-bg-hover: var(--color-dark-blue);
92
- --button-alternate-color: var(--color-white);
93
-
94
- --button-destructive-bg: var(--color-red);
95
- --button-destructive-bg-hover: var(--color-dark-red);
96
- --button-destructive-color: var(--color-white);
97
-
98
- --button-confirmation-bg: var(--color-green);
99
- --button-confirmation-bg-hover: var(--color-dark-green);
100
- --button-confirmation-color: var(--color-white);
78
+ --th-button-disabled-bg: var(--th-color-grey-200);
79
+ --th-button-disabled-color: var(--th-color-grey-500);
80
+
81
+ --th-button-primary-bg: var(--th-color-primary);
82
+ --th-button-primary-bg-hover: var(--th-color-dark-primary);
83
+ --th-button-primary-color: var(--th-color-white);
84
+
85
+ --th-button-secondary-bg: var(--th-color-white);
86
+ --th-button-secondary-bg-hover: var(--th-color-light-primary);
87
+ --th-button-secondary-color: var(--th-color-primary);
88
+ --th-button-secondary-border: var(--th-color-primary);
89
+
90
+ --th-button-alternate-bg: var(--th-color-blue);
91
+ --th-button-alternate-bg-hover: var(--th-color-dark-blue);
92
+ --th-button-alternate-color: var(--th-color-white);
93
+
94
+ --th-button-destructive-bg: var(--th-color-red);
95
+ --th-button-destructive-bg-hover: var(--th-color-dark-red);
96
+ --th-button-destructive-color: var(--th-color-white);
97
+
98
+ --th-button-confirmation-bg: var(--th-color-green);
99
+ --th-button-confirmation-bg-hover: var(--th-color-dark-green);
100
+ --th-button-confirmation-color: var(--th-color-white);
101
+
102
+ /* Cards */
103
+ --th-card-bg: var(--th-color-white);
104
+ --th-card-border: var(--th-color-border);
105
+ --th-card-title-color: var(--th-color-text-primary);
106
+ --th-card-subtitle-color: var(--th-color-text-secondary);
107
+ --th-card-text-color: var(--th-color-text-secondary);
108
+ --th-card-icon-color: var(--th-color-text-primary);
109
+ --th-card-dismiss-color: var(--th-color-text-muted);
110
+
111
+ /* Progress Bar */
112
+ --th-progress-bar-fill-color: var(--th-color-primary);
113
+ --th-progress-bar-track-color: var(--th-color-grey-200);
114
+ --th-progress-bar-title-color: var(--th-color-text-primary);
115
+ --th-progress-bar-label-color: var(--th-color-text-secondary);
101
116
 
102
117
  /* Shadow colors using opacity */
103
- --color-shadow: rgba(0, 0, 0, 0.1);
104
- --color-shadow-medium: rgba(0, 0, 0, 0.15);
118
+ --th-color-shadow: rgba(0, 0, 0, 0.1);
119
+ --th-color-shadow-medium: rgba(0, 0, 0, 0.15);
105
120
  }
106
121
 
107
122
  /* Dark Theme Overrides */
108
123
  [data-theme='dark'] {
109
124
  /* Text */
110
- --color-text-primary: var(--color-grey-100);
111
- --color-text-secondary: var(--color-grey-300);
112
- --color-text-muted: var(--color-grey-500);
125
+ --th-color-text-primary: var(--th-color-grey-100);
126
+ --th-color-text-secondary: var(--th-color-grey-300);
127
+ --th-color-text-muted: var(--th-color-grey-500);
113
128
 
114
129
  /* Backgrounds */
115
- --color-background: var(--color-grey-800);
116
- --color-background-muted: var(--color-grey-700);
117
- --color-background-hover: var(--color-grey-600);
130
+ --th-color-background: var(--th-color-grey-800);
131
+ --th-color-background-muted: var(--th-color-grey-700);
132
+ --th-color-background-hover: var(--th-color-grey-600);
118
133
 
119
134
  /* Borders */
120
- --color-border: var(--color-grey-700);
135
+ --th-color-border: var(--th-color-grey-700);
121
136
 
122
137
  /* Buttons */
123
- --button-primary-bg: var(--color-dark-primary);
124
- --button-primary-bg-hover: var(--color-primary);
125
-
126
- --button-secondary-bg: var(--color-grey-800);
127
- --button-secondary-bg-hover: var(--color-grey-700);
128
- --button-secondary-color: var(--color-primary);
129
-
130
- --button-disabled-bg: var(--color-grey-700);
131
- --button-disabled-color: var(--color-grey-500);
138
+ --th-button-primary-bg: var(--th-color-dark-primary);
139
+ --th-button-primary-bg-hover: var(--th-color-primary);
140
+
141
+ --th-button-secondary-bg: var(--th-color-grey-800);
142
+ --th-button-secondary-bg-hover: var(--th-color-grey-700);
143
+ --th-button-secondary-color: var(--th-color-primary);
144
+
145
+ --th-button-disabled-bg: var(--th-color-grey-700);
146
+ --th-button-disabled-color: var(--th-color-grey-500);
147
+
148
+ /* Cards */
149
+ --th-card-bg: var(--th-color-grey-700);
150
+ --th-card-border: var(--th-color-grey-600);
151
+ --th-card-title-color: var(--th-color-grey-100);
152
+ --th-card-subtitle-color: var(--th-color-grey-300);
153
+ --th-card-text-color: var(--th-color-grey-300);
154
+ --th-card-icon-color: var(--th-color-grey-100);
155
+ --th-card-dismiss-color: var(--th-color-grey-500);
156
+
157
+ /* Progress Bar */
158
+ --th-progress-bar-fill-color: var(--th-color-primary);
159
+ --th-progress-bar-track-color: var(--th-color-grey-600);
160
+ --th-progress-bar-title-color: var(--th-color-grey-100);
161
+ --th-progress-bar-label-color: var(--th-color-grey-300);
132
162
  }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Type definition for formatter functions
3
+ */
4
+ export type FormatterFunction = (value: any) => string;
5
+ /**
6
+ * Data table formatters for common column types
7
+ */
8
+ export declare const dataTableFormatters: Record<string, FormatterFunction>;
9
+ //# sourceMappingURL=formatters.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"formatters.d.ts","sourceRoot":"","sources":["../../src/utils/formatters.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,KAAK,EAAE,GAAG,KAAK,MAAM,CAAC;AAEvD;;GAEG;AACH,eAAO,MAAM,mBAAmB,EAAE,MAAM,CAAC,MAAM,EAAE,iBAAiB,CA8DjE,CAAC"}