@latty-ds/web 0.2.0

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 (228) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +106 -0
  3. package/custom-elements.json +8785 -0
  4. package/dist/base/index.d.ts +1 -0
  5. package/dist/base/index.js +35 -0
  6. package/dist/base/themeable-element.d.ts +20 -0
  7. package/dist/components/accordion/accordion.d.ts +82 -0
  8. package/dist/components/accordion/accordion.styles.d.ts +1 -0
  9. package/dist/components/accordion/accordion.types.d.ts +10 -0
  10. package/dist/components/accordion/index.d.ts +8 -0
  11. package/dist/components/accordion/index.js +468 -0
  12. package/dist/components/alert/alert.d.ts +51 -0
  13. package/dist/components/alert/alert.styles.d.ts +1 -0
  14. package/dist/components/alert/alert.types.d.ts +2 -0
  15. package/dist/components/alert/index.d.ts +2 -0
  16. package/dist/components/alert/index.js +746 -0
  17. package/dist/components/avatar/avatar.d.ts +27 -0
  18. package/dist/components/avatar/avatar.styles.d.ts +1 -0
  19. package/dist/components/avatar/avatar.types.d.ts +3 -0
  20. package/dist/components/avatar/index.d.ts +2 -0
  21. package/dist/components/avatar/index.js +222 -0
  22. package/dist/components/badge/badge.d.ts +29 -0
  23. package/dist/components/badge/badge.styles.d.ts +1 -0
  24. package/dist/components/badge/badge.types.d.ts +3 -0
  25. package/dist/components/badge/index.d.ts +2 -0
  26. package/dist/components/badge/index.js +277 -0
  27. package/dist/components/breadcrumb/breadcrumb.d.ts +53 -0
  28. package/dist/components/breadcrumb/breadcrumb.styles.d.ts +2 -0
  29. package/dist/components/breadcrumb/breadcrumb.types.d.ts +1 -0
  30. package/dist/components/breadcrumb/index.d.ts +2 -0
  31. package/dist/components/breadcrumb/index.js +166 -0
  32. package/dist/components/button/button.d.ts +111 -0
  33. package/dist/components/button/button.styles.d.ts +1 -0
  34. package/dist/components/button/button.types.d.ts +38 -0
  35. package/dist/components/button/index.d.ts +8 -0
  36. package/dist/components/button/index.js +466 -0
  37. package/dist/components/calendar/calendar.d.ts +84 -0
  38. package/dist/components/calendar/calendar.styles.d.ts +1 -0
  39. package/dist/components/calendar/calendar.types.d.ts +15 -0
  40. package/dist/components/calendar/index.d.ts +1 -0
  41. package/dist/components/calendar/index.js +958 -0
  42. package/dist/components/checkbox/checkbox.d.ts +113 -0
  43. package/dist/components/checkbox/checkbox.styles.d.ts +1 -0
  44. package/dist/components/checkbox/checkbox.types.d.ts +21 -0
  45. package/dist/components/checkbox/index.d.ts +8 -0
  46. package/dist/components/checkbox/index.js +320 -0
  47. package/dist/components/chip/chip.d.ts +35 -0
  48. package/dist/components/chip/chip.styles.d.ts +1 -0
  49. package/dist/components/chip/chip.types.d.ts +3 -0
  50. package/dist/components/chip/index.d.ts +2 -0
  51. package/dist/components/chip/index.js +282 -0
  52. package/dist/components/color-input/color-input.d.ts +55 -0
  53. package/dist/components/color-input/color-input.styles.d.ts +1 -0
  54. package/dist/components/color-input/color-input.types.d.ts +2 -0
  55. package/dist/components/color-input/index.d.ts +1 -0
  56. package/dist/components/color-input/index.js +489 -0
  57. package/dist/components/combobox/combobox.d.ts +59 -0
  58. package/dist/components/combobox/combobox.styles.d.ts +1 -0
  59. package/dist/components/combobox/combobox.types.d.ts +7 -0
  60. package/dist/components/combobox/index.d.ts +2 -0
  61. package/dist/components/combobox/index.js +1988 -0
  62. package/dist/components/date-input/date-input.d.ts +66 -0
  63. package/dist/components/date-input/date-input.styles.d.ts +1 -0
  64. package/dist/components/date-input/date-input.types.d.ts +3 -0
  65. package/dist/components/date-input/index.d.ts +2 -0
  66. package/dist/components/date-input/index.js +2863 -0
  67. package/dist/components/datepicker/datepicker.d.ts +52 -0
  68. package/dist/components/datepicker/datepicker.styles.d.ts +1 -0
  69. package/dist/components/datepicker/datepicker.types.d.ts +3 -0
  70. package/dist/components/datepicker/index.d.ts +2 -0
  71. package/dist/components/datepicker/index.js +416 -0
  72. package/dist/components/dialog/dialog.d.ts +114 -0
  73. package/dist/components/dialog/dialog.styles.d.ts +1 -0
  74. package/dist/components/dialog/dialog.types.d.ts +11 -0
  75. package/dist/components/dialog/index.d.ts +2 -0
  76. package/dist/components/dialog/index.js +920 -0
  77. package/dist/components/divider/divider.d.ts +35 -0
  78. package/dist/components/divider/divider.styles.d.ts +1 -0
  79. package/dist/components/divider/divider.types.d.ts +2 -0
  80. package/dist/components/divider/index.d.ts +2 -0
  81. package/dist/components/divider/index.js +149 -0
  82. package/dist/components/dropdown/dropdown-item.d.ts +24 -0
  83. package/dist/components/dropdown/dropdown-item.styles.d.ts +1 -0
  84. package/dist/components/dropdown/dropdown.d.ts +30 -0
  85. package/dist/components/dropdown/dropdown.styles.d.ts +1 -0
  86. package/dist/components/dropdown/dropdown.types.d.ts +1 -0
  87. package/dist/components/dropdown/index.d.ts +3 -0
  88. package/dist/components/dropdown/index.js +1791 -0
  89. package/dist/components/header/header.d.ts +19 -0
  90. package/dist/components/header/header.styles.d.ts +1 -0
  91. package/dist/components/header/header.types.d.ts +1 -0
  92. package/dist/components/header/index.d.ts +2 -0
  93. package/dist/components/header/index.js +104 -0
  94. package/dist/components/icon-button/icon-button.d.ts +52 -0
  95. package/dist/components/icon-button/icon-button.styles.d.ts +1 -0
  96. package/dist/components/icon-button/icon-button.types.d.ts +8 -0
  97. package/dist/components/icon-button/index.d.ts +1 -0
  98. package/dist/components/icon-button/index.js +342 -0
  99. package/dist/components/image/image.d.ts +26 -0
  100. package/dist/components/image/image.styles.d.ts +1 -0
  101. package/dist/components/image/image.types.d.ts +0 -0
  102. package/dist/components/image/index.d.ts +1 -0
  103. package/dist/components/image/index.js +105 -0
  104. package/dist/components/link/index.d.ts +1 -0
  105. package/dist/components/link/index.js +108 -0
  106. package/dist/components/link/link.d.ts +22 -0
  107. package/dist/components/link/link.styles.d.ts +1 -0
  108. package/dist/components/link/link.types.d.ts +1 -0
  109. package/dist/components/list/index.d.ts +9 -0
  110. package/dist/components/list/index.js +254 -0
  111. package/dist/components/list/list-item.d.ts +41 -0
  112. package/dist/components/list/list-item.styles.d.ts +1 -0
  113. package/dist/components/list/list.d.ts +85 -0
  114. package/dist/components/list/list.styles.d.ts +1 -0
  115. package/dist/components/list/list.types.d.ts +16 -0
  116. package/dist/components/nav/index.d.ts +3 -0
  117. package/dist/components/nav/index.js +345 -0
  118. package/dist/components/nav/nav-item.d.ts +73 -0
  119. package/dist/components/nav/nav.d.ts +49 -0
  120. package/dist/components/nav/nav.styles.d.ts +2 -0
  121. package/dist/components/nav/nav.types.d.ts +1 -0
  122. package/dist/components/pagination/index.d.ts +2 -0
  123. package/dist/components/pagination/index.js +210 -0
  124. package/dist/components/pagination/pagination.d.ts +34 -0
  125. package/dist/components/pagination/pagination.styles.d.ts +1 -0
  126. package/dist/components/pagination/pagination.types.d.ts +1 -0
  127. package/dist/components/progress/index.d.ts +2 -0
  128. package/dist/components/progress/index.js +167 -0
  129. package/dist/components/progress/progress.d.ts +44 -0
  130. package/dist/components/progress/progress.styles.d.ts +1 -0
  131. package/dist/components/progress/progress.types.d.ts +2 -0
  132. package/dist/components/radio/index.d.ts +8 -0
  133. package/dist/components/radio/index.js +294 -0
  134. package/dist/components/radio/radio.d.ts +96 -0
  135. package/dist/components/radio/radio.styles.d.ts +1 -0
  136. package/dist/components/radio/radio.types.d.ts +21 -0
  137. package/dist/components/radio-group/index.d.ts +8 -0
  138. package/dist/components/radio-group/index.js +384 -0
  139. package/dist/components/radio-group/radio-group.d.ts +100 -0
  140. package/dist/components/radio-group/radio-group.styles.d.ts +1 -0
  141. package/dist/components/radio-group/radio-group.types.d.ts +8 -0
  142. package/dist/components/select/index.d.ts +8 -0
  143. package/dist/components/select/index.js +2123 -0
  144. package/dist/components/select/select.d.ts +129 -0
  145. package/dist/components/select/select.styles.d.ts +1 -0
  146. package/dist/components/select/select.types.d.ts +37 -0
  147. package/dist/components/shared/backdrop.styles.d.ts +1 -0
  148. package/dist/components/shared/floating.d.ts +10 -0
  149. package/dist/components/sidepanel/index.d.ts +1 -0
  150. package/dist/components/sidepanel/index.js +768 -0
  151. package/dist/components/sidepanel/sidepanel.d.ts +48 -0
  152. package/dist/components/sidepanel/sidepanel.styles.d.ts +1 -0
  153. package/dist/components/sidepanel/sidepanel.types.d.ts +1 -0
  154. package/dist/components/skeleton/index.d.ts +2 -0
  155. package/dist/components/skeleton/index.js +129 -0
  156. package/dist/components/skeleton/skeleton.d.ts +39 -0
  157. package/dist/components/skeleton/skeleton.styles.d.ts +1 -0
  158. package/dist/components/skeleton/skeleton.types.d.ts +1 -0
  159. package/dist/components/slider/index.d.ts +2 -0
  160. package/dist/components/slider/index.js +635 -0
  161. package/dist/components/slider/slider.d.ts +33 -0
  162. package/dist/components/slider/slider.styles.d.ts +1 -0
  163. package/dist/components/slider/slider.types.d.ts +1 -0
  164. package/dist/components/snackbar/index.d.ts +2 -0
  165. package/dist/components/snackbar/index.js +358 -0
  166. package/dist/components/snackbar/snackbar.d.ts +63 -0
  167. package/dist/components/snackbar/snackbar.styles.d.ts +1 -0
  168. package/dist/components/snackbar/snackbar.types.d.ts +1 -0
  169. package/dist/components/spinner/index.d.ts +8 -0
  170. package/dist/components/spinner/index.js +131 -0
  171. package/dist/components/spinner/spineer.styles.d.ts +1 -0
  172. package/dist/components/spinner/spinner.d.ts +52 -0
  173. package/dist/components/spinner/spinner.types.d.ts +18 -0
  174. package/dist/components/surface/index.d.ts +8 -0
  175. package/dist/components/surface/index.js +128 -0
  176. package/dist/components/surface/surface.d.ts +48 -0
  177. package/dist/components/surface/surface.styles.d.ts +1 -0
  178. package/dist/components/surface/surface.types.d.ts +20 -0
  179. package/dist/components/switch/index.d.ts +8 -0
  180. package/dist/components/switch/index.js +293 -0
  181. package/dist/components/switch/switch.d.ts +90 -0
  182. package/dist/components/switch/switch.styles.d.ts +1 -0
  183. package/dist/components/switch/switch.types.d.ts +21 -0
  184. package/dist/components/tab/index.d.ts +9 -0
  185. package/dist/components/tab/index.js +252 -0
  186. package/dist/components/tab/tab-panel.d.ts +28 -0
  187. package/dist/components/tab/tab-panel.styles.d.ts +1 -0
  188. package/dist/components/tab/tab.d.ts +59 -0
  189. package/dist/components/tab/tab.styles.d.ts +1 -0
  190. package/dist/components/tab/tab.types.d.ts +7 -0
  191. package/dist/components/tab-group/index.d.ts +8 -0
  192. package/dist/components/tab-group/index.js +441 -0
  193. package/dist/components/tab-group/tab-group.d.ts +99 -0
  194. package/dist/components/tab-group/tab-group.styles.d.ts +1 -0
  195. package/dist/components/tab-group/tab-group.types.d.ts +11 -0
  196. package/dist/components/table/index.d.ts +2 -0
  197. package/dist/components/table/index.js +582 -0
  198. package/dist/components/table/table.d.ts +160 -0
  199. package/dist/components/table/table.styles.d.ts +1 -0
  200. package/dist/components/table/table.types.d.ts +106 -0
  201. package/dist/components/text/index.d.ts +1 -0
  202. package/dist/components/text/index.js +207 -0
  203. package/dist/components/text/text.d.ts +32 -0
  204. package/dist/components/text/text.styles.d.ts +1 -0
  205. package/dist/components/text/text.types.d.ts +2 -0
  206. package/dist/components/textfield/index.d.ts +8 -0
  207. package/dist/components/textfield/index.js +718 -0
  208. package/dist/components/textfield/textfield.d.ts +168 -0
  209. package/dist/components/textfield/textfield.styles.d.ts +1 -0
  210. package/dist/components/textfield/textfield.types.d.ts +40 -0
  211. package/dist/components/tooltip/index.d.ts +2 -0
  212. package/dist/components/tooltip/index.js +379 -0
  213. package/dist/components/tooltip/tooltip.d.ts +42 -0
  214. package/dist/components/tooltip/tooltip.styles.d.ts +1 -0
  215. package/dist/components/tooltip/tooltip.types.d.ts +1 -0
  216. package/dist/css/font-face.css +22 -0
  217. package/dist/css/latty.css +57 -0
  218. package/dist/fonts/HankenGrotesk-Variable.woff2 +0 -0
  219. package/dist/fonts/HankenGrotesk-VariableItalic.woff2 +0 -0
  220. package/dist/index.cjs +12739 -0
  221. package/dist/index.d.ts +101 -0
  222. package/dist/index.js +11406 -0
  223. package/dist/manifest.json +2396 -0
  224. package/dist/utils/click-outside.d.ts +22 -0
  225. package/dist/utils/color.d.ts +14 -0
  226. package/dist/utils/dispatch.d.ts +18 -0
  227. package/dist/utils/index.d.ts +3 -0
  228. package/package.json +231 -0
@@ -0,0 +1,252 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __decorateClass = (decorators, target, key, kind) => {
4
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
5
+ for (var i = decorators.length - 1, decorator; i >= 0; i--)
6
+ if (decorator = decorators[i])
7
+ result = (kind ? decorator(target, key, result) : decorator(result)) || result;
8
+ if (kind && result) __defProp(target, key, result);
9
+ return result;
10
+ };
11
+
12
+ // src/components/tab/tab.ts
13
+ import { html } from "lit";
14
+
15
+ // src/base/themeable-element.ts
16
+ import { LitElement } from "lit";
17
+ import { property } from "lit/decorators.js";
18
+ var ThemeableElement = class extends LitElement {
19
+ willUpdate(changed) {
20
+ super.willUpdate(changed);
21
+ if (changed.has("theme")) {
22
+ this._syncThemeAttribute();
23
+ }
24
+ }
25
+ _syncThemeAttribute() {
26
+ if (this.theme === "dark" || this.theme === "light") {
27
+ this.setAttribute("data-theme", this.theme);
28
+ } else {
29
+ this.removeAttribute("data-theme");
30
+ }
31
+ }
32
+ };
33
+ __decorateClass([
34
+ property({ reflect: true })
35
+ ], ThemeableElement.prototype, "theme", 2);
36
+
37
+ // src/components/tab/tab.ts
38
+ import { customElement, property as property2 } from "lit/decorators.js";
39
+
40
+ // src/components/tab/tab.styles.ts
41
+ import { css } from "lit";
42
+ var tabStyles = css`
43
+ :host {
44
+ display: inline-block;
45
+ font-family: 'Hanken Grotesk', sans-serif;
46
+ }
47
+
48
+ .tab {
49
+ align-items: center;
50
+ background: transparent;
51
+ border: none;
52
+ border-bottom: 2px solid transparent;
53
+ color: var(--lt-text-subtle);
54
+ cursor: pointer;
55
+ display: flex;
56
+ font-family: inherit;
57
+ font-size: 0.9375rem;
58
+ font-weight: 600;
59
+ gap: var(--lt-spacing-2);
60
+ outline: none;
61
+ padding: var(--lt-spacing-3) var(--lt-spacing-4);
62
+ transition:
63
+ color 150ms ease,
64
+ border-color 150ms ease;
65
+ user-select: none;
66
+ white-space: nowrap;
67
+ }
68
+
69
+ :host(:not([disabled])):hover .tab {
70
+ color: var(--lt-text-default);
71
+ }
72
+
73
+ :host(:focus-visible) .tab {
74
+ color: var(--lt-text-primary);
75
+ outline: 2px solid var(--lt-border-focus);
76
+ outline-offset: 2px;
77
+ }
78
+
79
+ :host([active]) .tab {
80
+ border-color: var(--lt-border-primary-strong);
81
+ color: var(--lt-text-primary);
82
+ }
83
+
84
+ :host([disabled]) .tab {
85
+ color: var(--lt-color-neutral-300);
86
+ cursor: not-allowed;
87
+ opacity: 0.5;
88
+ }
89
+
90
+ .icon {
91
+ font-size: 1.125rem;
92
+ }
93
+
94
+ /* Size variants */
95
+ :host([size='sm']) .tab {
96
+ font-size: 0.875rem;
97
+ padding: var(--lt-spacing-2) var(--lt-spacing-3);
98
+ }
99
+
100
+ :host([size='sm']) .icon {
101
+ font-size: 1rem;
102
+ }
103
+
104
+ :host([size='lg']) .tab {
105
+ font-size: 1rem;
106
+ padding: var(--lt-spacing-4) var(--lt-spacing-5);
107
+ }
108
+
109
+ :host([size='lg']) .icon {
110
+ font-size: 1.25rem;
111
+ }
112
+
113
+ /* Pills variant (applied by parent tab-group) */
114
+ :host([data-variant='pills']) .tab {
115
+ border-bottom: none;
116
+ border-radius: var(--lt-border-radius);
117
+ transition:
118
+ color 150ms ease,
119
+ background-color 150ms ease,
120
+ box-shadow 150ms ease;
121
+ }
122
+
123
+ :host([data-variant='pills'][active]) .tab {
124
+ background: var(--lt-bg-default);
125
+ box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
126
+ color: var(--lt-text-primary);
127
+ }
128
+ `;
129
+
130
+ // src/components/tab/tab.ts
131
+ import "@latty-ds/icons";
132
+ var Tab = class extends ThemeableElement {
133
+ constructor() {
134
+ super(...arguments);
135
+ this.label = "";
136
+ this.value = "";
137
+ this.iconStart = "";
138
+ this.active = false;
139
+ this.disabled = false;
140
+ this.size = "md";
141
+ this._handleHostClick = () => {
142
+ if (this.disabled) return;
143
+ this.dispatchEvent(
144
+ new CustomEvent("tab-click", {
145
+ detail: { value: this.value },
146
+ bubbles: true,
147
+ composed: true
148
+ })
149
+ );
150
+ };
151
+ this._handleHostKeydown = (e) => {
152
+ if (this.disabled) return;
153
+ if (e.key === "Enter" || e.key === " ") {
154
+ e.preventDefault();
155
+ this._handleHostClick();
156
+ }
157
+ };
158
+ }
159
+ connectedCallback() {
160
+ super.connectedCallback();
161
+ this.setAttribute("role", "tab");
162
+ this.tabIndex = 0;
163
+ this.addEventListener("click", this._handleHostClick);
164
+ this.addEventListener("keydown", this._handleHostKeydown);
165
+ }
166
+ disconnectedCallback() {
167
+ super.disconnectedCallback();
168
+ this.removeEventListener("click", this._handleHostClick);
169
+ this.removeEventListener("keydown", this._handleHostKeydown);
170
+ }
171
+ updated(changedProperties) {
172
+ super.updated(changedProperties);
173
+ if (changedProperties.has("active")) {
174
+ this.setAttribute("aria-selected", String(this.active));
175
+ }
176
+ if (changedProperties.has("disabled")) {
177
+ this.setAttribute("aria-disabled", String(this.disabled));
178
+ }
179
+ }
180
+ render() {
181
+ return html`
182
+ <span class="tab">
183
+ ${this.iconStart ? html`<lt-icon class="icon" name="${this.iconStart}"></lt-icon>` : ""}
184
+ <span class="label"><slot>${this.label}</slot></span>
185
+ </span>
186
+ `;
187
+ }
188
+ };
189
+ Tab.styles = tabStyles;
190
+ __decorateClass([
191
+ property2()
192
+ ], Tab.prototype, "label", 2);
193
+ __decorateClass([
194
+ property2()
195
+ ], Tab.prototype, "value", 2);
196
+ __decorateClass([
197
+ property2({ attribute: "icon-start" })
198
+ ], Tab.prototype, "iconStart", 2);
199
+ __decorateClass([
200
+ property2({ type: Boolean, reflect: true })
201
+ ], Tab.prototype, "active", 2);
202
+ __decorateClass([
203
+ property2({ type: Boolean, reflect: true })
204
+ ], Tab.prototype, "disabled", 2);
205
+ __decorateClass([
206
+ property2({ reflect: true })
207
+ ], Tab.prototype, "size", 2);
208
+ Tab = __decorateClass([
209
+ customElement("lt-tab")
210
+ ], Tab);
211
+
212
+ // src/components/tab/tab-panel.ts
213
+ import { html as html2 } from "lit";
214
+ import { customElement as customElement2, property as property3 } from "lit/decorators.js";
215
+
216
+ // src/components/tab/tab-panel.styles.ts
217
+ import { css as css2 } from "lit";
218
+ var tabPanelStyles = css2`
219
+ :host {
220
+ display: none;
221
+ }
222
+
223
+ :host([active]) {
224
+ display: block;
225
+ }
226
+ `;
227
+
228
+ // src/components/tab/tab-panel.ts
229
+ var TabPanel = class extends ThemeableElement {
230
+ constructor() {
231
+ super(...arguments);
232
+ this.value = "";
233
+ this.active = false;
234
+ }
235
+ render() {
236
+ return html2`<slot></slot>`;
237
+ }
238
+ };
239
+ TabPanel.styles = tabPanelStyles;
240
+ __decorateClass([
241
+ property3({ reflect: true })
242
+ ], TabPanel.prototype, "value", 2);
243
+ __decorateClass([
244
+ property3({ type: Boolean, reflect: true })
245
+ ], TabPanel.prototype, "active", 2);
246
+ TabPanel = __decorateClass([
247
+ customElement2("lt-tab-panel")
248
+ ], TabPanel);
249
+ export {
250
+ Tab,
251
+ TabPanel
252
+ };
@@ -0,0 +1,28 @@
1
+ import { ThemeableElement } from '../../base';
2
+ /**
3
+ * A panel associated with a tab. Shown when the matching tab is active.
4
+ * Place inside `lt-tab-group` using `slot="panel"`.
5
+ *
6
+ * @element lt-tab-panel
7
+ *
8
+ * @slot - Panel content
9
+ *
10
+ * @example
11
+ * ```html
12
+ * <lt-tab-group value="overview">
13
+ * <lt-tab value="overview" label="Overview"></lt-tab>
14
+ * <lt-tab value="settings" label="Settings"></lt-tab>
15
+ *
16
+ * <lt-tab-panel slot="panel" value="overview">Overview content</lt-tab-panel>
17
+ * <lt-tab-panel slot="panel" value="settings">Settings content</lt-tab-panel>
18
+ * </lt-tab-group>
19
+ * ```
20
+ */
21
+ export declare class TabPanel extends ThemeableElement {
22
+ static styles: import("lit").CSSResult;
23
+ /** Value that matches the corresponding `lt-tab`. */
24
+ value: string;
25
+ /** Set by `lt-tab-group` when this panel's tab is active. */
26
+ active: boolean;
27
+ render(): import("lit").TemplateResult<1>;
28
+ }
@@ -0,0 +1 @@
1
+ export declare const tabPanelStyles: import("lit").CSSResult;
@@ -0,0 +1,59 @@
1
+ import { ThemeableElement } from '../../base';
2
+ import { TabSize } from './tab.types';
3
+ import '@latty-ds/icons';
4
+ /**
5
+ * A tab component that represents a single tab within a tab group.
6
+ *
7
+ * @element lt-tab
8
+ *
9
+ * @slot - The label/content of the tab
10
+ *
11
+ * @example
12
+ * ```html
13
+ * <lt-tab value="profile" active>Profile</lt-tab>
14
+ * ```
15
+ *
16
+ * @example
17
+ * ```html
18
+ * <lt-tab value="settings" icon-start="settings">Settings</lt-tab>
19
+ * ```
20
+ */
21
+ export declare class Tab extends ThemeableElement {
22
+ static styles: import("lit").CSSResult;
23
+ /**
24
+ * Label text for the tab.
25
+ * @default ''
26
+ */
27
+ label: string;
28
+ /**
29
+ * Value identifier for the tab.
30
+ * @default ''
31
+ */
32
+ value: string;
33
+ /**
34
+ * Icon name to display at the start of the tab.
35
+ * @default ''
36
+ */
37
+ iconStart: string;
38
+ /**
39
+ * Whether this tab is currently active.
40
+ * @default false
41
+ */
42
+ active: boolean;
43
+ /**
44
+ * Whether the tab is disabled.
45
+ * @default false
46
+ */
47
+ disabled: boolean;
48
+ /**
49
+ * Size of the tab.
50
+ * @default 'md'
51
+ */
52
+ size: TabSize;
53
+ connectedCallback(): void;
54
+ disconnectedCallback(): void;
55
+ protected updated(changedProperties: Map<string, unknown>): void;
56
+ private _handleHostClick;
57
+ private _handleHostKeydown;
58
+ render(): import("lit").TemplateResult<1>;
59
+ }
@@ -0,0 +1 @@
1
+ export declare const tabStyles: import("lit").CSSResult;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Tab component type definitions.
3
+ */
4
+ /**
5
+ * Valid sizes for a tab.
6
+ */
7
+ export type TabSize = 'sm' | 'md' | 'lg';
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Tab group component module.
3
+ * Exports the TabGroup web component and related type definitions.
4
+ *
5
+ * @module components/tab-group
6
+ */
7
+ export { TabGroup } from './tab-group';
8
+ export type { TabGroupAppearance, TabGroupSize } from './tab-group.types';