@tessera-ui/react 0.4.0 → 0.5.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.
package/README.md ADDED
@@ -0,0 +1,36 @@
1
+ # @tessera-ui/react
2
+
3
+ React wrappers for [Tessera UI](https://github.com/jkguidaven/tessera-ui) web components.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ npm install @tessera-ui/react
9
+ ```
10
+
11
+ ## Usage
12
+
13
+ ```tsx
14
+ import { TsButton, TsInput } from '@tessera-ui/react';
15
+
16
+ function App() {
17
+ return (
18
+ <div>
19
+ <TsInput label="Email" placeholder="you@example.com" />
20
+ <TsButton variant="primary">Submit</TsButton>
21
+ </div>
22
+ );
23
+ }
24
+ ```
25
+
26
+ Design tokens (CSS custom properties) are auto-imported — no additional CSS import needed.
27
+
28
+ ## Documentation
29
+
30
+ - [Component docs](https://jkguidaven.github.io/tessera-ui/)
31
+ - [Storybook](https://jkguidaven.github.io/tessera-ui/storybook/)
32
+ - [GitHub](https://github.com/jkguidaven/tessera-ui)
33
+
34
+ ## License
35
+
36
+ MIT
@@ -0,0 +1,515 @@
1
+ "use strict";
2
+ 'use client';
3
+ var __importDefault = (this && this.__importDefault) || function (mod) {
4
+ return (mod && mod.__esModule) ? mod : { "default": mod };
5
+ };
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ exports.TsTooltip = exports.TsToolbar = exports.TsToggle = exports.TsToast = exports.TsTextarea = exports.TsTabs = exports.TsTable = exports.TsTabPanel = exports.TsSwitchOption = exports.TsSwitchGroup = exports.TsStepper = exports.TsStep = exports.TsStack = exports.TsSpinner = exports.TsSpacer = exports.TsSlider = exports.TsSkeleton = exports.TsSelect = exports.TsRow = exports.TsRadio = exports.TsProgress = exports.TsPopover = exports.TsPagination = exports.TsNavItem = exports.TsNav = exports.TsModal = exports.TsMenuItem = exports.TsMenu = exports.TsInput = exports.TsIcon = exports.TsGrid = exports.TsFileUpload = exports.TsEmptyState = exports.TsDrawer = exports.TsDivider = exports.TsDialog = exports.TsDatePicker = exports.TsContainer = exports.TsChip = exports.TsCheckbox = exports.TsCard = exports.TsButton = exports.TsBreadcrumbItem = exports.TsBreadcrumb = exports.TsBanner = exports.TsBadge = exports.TsAvatar = exports.TsAlert = exports.TsAccordionItem = exports.TsAccordion = void 0;
8
+ exports.TsTreeItem = exports.TsTree = void 0;
9
+ const runtime_1 = require("@stencil/react-output-target/runtime");
10
+ const ts_accordion_item_js_1 = require("@tessera-ui/core/dist/components/ts-accordion-item.js");
11
+ const ts_accordion_js_1 = require("@tessera-ui/core/dist/components/ts-accordion.js");
12
+ const ts_alert_js_1 = require("@tessera-ui/core/dist/components/ts-alert.js");
13
+ const ts_avatar_js_1 = require("@tessera-ui/core/dist/components/ts-avatar.js");
14
+ const ts_badge_js_1 = require("@tessera-ui/core/dist/components/ts-badge.js");
15
+ const ts_banner_js_1 = require("@tessera-ui/core/dist/components/ts-banner.js");
16
+ const ts_breadcrumb_item_js_1 = require("@tessera-ui/core/dist/components/ts-breadcrumb-item.js");
17
+ const ts_breadcrumb_js_1 = require("@tessera-ui/core/dist/components/ts-breadcrumb.js");
18
+ const ts_button_js_1 = require("@tessera-ui/core/dist/components/ts-button.js");
19
+ const ts_card_js_1 = require("@tessera-ui/core/dist/components/ts-card.js");
20
+ const ts_checkbox_js_1 = require("@tessera-ui/core/dist/components/ts-checkbox.js");
21
+ const ts_chip_js_1 = require("@tessera-ui/core/dist/components/ts-chip.js");
22
+ const ts_container_js_1 = require("@tessera-ui/core/dist/components/ts-container.js");
23
+ const ts_date_picker_js_1 = require("@tessera-ui/core/dist/components/ts-date-picker.js");
24
+ const ts_dialog_js_1 = require("@tessera-ui/core/dist/components/ts-dialog.js");
25
+ const ts_divider_js_1 = require("@tessera-ui/core/dist/components/ts-divider.js");
26
+ const ts_drawer_js_1 = require("@tessera-ui/core/dist/components/ts-drawer.js");
27
+ const ts_empty_state_js_1 = require("@tessera-ui/core/dist/components/ts-empty-state.js");
28
+ const ts_file_upload_js_1 = require("@tessera-ui/core/dist/components/ts-file-upload.js");
29
+ const ts_grid_js_1 = require("@tessera-ui/core/dist/components/ts-grid.js");
30
+ const ts_icon_js_1 = require("@tessera-ui/core/dist/components/ts-icon.js");
31
+ const ts_input_js_1 = require("@tessera-ui/core/dist/components/ts-input.js");
32
+ const ts_menu_item_js_1 = require("@tessera-ui/core/dist/components/ts-menu-item.js");
33
+ const ts_menu_js_1 = require("@tessera-ui/core/dist/components/ts-menu.js");
34
+ const ts_modal_js_1 = require("@tessera-ui/core/dist/components/ts-modal.js");
35
+ const ts_nav_item_js_1 = require("@tessera-ui/core/dist/components/ts-nav-item.js");
36
+ const ts_nav_js_1 = require("@tessera-ui/core/dist/components/ts-nav.js");
37
+ const ts_pagination_js_1 = require("@tessera-ui/core/dist/components/ts-pagination.js");
38
+ const ts_popover_js_1 = require("@tessera-ui/core/dist/components/ts-popover.js");
39
+ const ts_progress_js_1 = require("@tessera-ui/core/dist/components/ts-progress.js");
40
+ const ts_radio_js_1 = require("@tessera-ui/core/dist/components/ts-radio.js");
41
+ const ts_row_js_1 = require("@tessera-ui/core/dist/components/ts-row.js");
42
+ const ts_select_js_1 = require("@tessera-ui/core/dist/components/ts-select.js");
43
+ const ts_skeleton_js_1 = require("@tessera-ui/core/dist/components/ts-skeleton.js");
44
+ const ts_slider_js_1 = require("@tessera-ui/core/dist/components/ts-slider.js");
45
+ const ts_spacer_js_1 = require("@tessera-ui/core/dist/components/ts-spacer.js");
46
+ const ts_spinner_js_1 = require("@tessera-ui/core/dist/components/ts-spinner.js");
47
+ const ts_stack_js_1 = require("@tessera-ui/core/dist/components/ts-stack.js");
48
+ const ts_step_js_1 = require("@tessera-ui/core/dist/components/ts-step.js");
49
+ const ts_stepper_js_1 = require("@tessera-ui/core/dist/components/ts-stepper.js");
50
+ const ts_switch_group_js_1 = require("@tessera-ui/core/dist/components/ts-switch-group.js");
51
+ const ts_switch_option_js_1 = require("@tessera-ui/core/dist/components/ts-switch-option.js");
52
+ const ts_tab_panel_js_1 = require("@tessera-ui/core/dist/components/ts-tab-panel.js");
53
+ const ts_table_js_1 = require("@tessera-ui/core/dist/components/ts-table.js");
54
+ const ts_tabs_js_1 = require("@tessera-ui/core/dist/components/ts-tabs.js");
55
+ const ts_textarea_js_1 = require("@tessera-ui/core/dist/components/ts-textarea.js");
56
+ const ts_toast_js_1 = require("@tessera-ui/core/dist/components/ts-toast.js");
57
+ const ts_toggle_js_1 = require("@tessera-ui/core/dist/components/ts-toggle.js");
58
+ const ts_toolbar_js_1 = require("@tessera-ui/core/dist/components/ts-toolbar.js");
59
+ const ts_tooltip_js_1 = require("@tessera-ui/core/dist/components/ts-tooltip.js");
60
+ const ts_tree_item_js_1 = require("@tessera-ui/core/dist/components/ts-tree-item.js");
61
+ const ts_tree_js_1 = require("@tessera-ui/core/dist/components/ts-tree.js");
62
+ const react_1 = __importDefault(require("react"));
63
+ exports.TsAccordion = (0, runtime_1.createComponent)({
64
+ tagName: 'ts-accordion',
65
+ elementClass: ts_accordion_js_1.TsAccordion,
66
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
67
+ react: react_1.default,
68
+ events: {},
69
+ defineCustomElement: ts_accordion_js_1.defineCustomElement
70
+ });
71
+ exports.TsAccordionItem = (0, runtime_1.createComponent)({
72
+ tagName: 'ts-accordion-item',
73
+ elementClass: ts_accordion_item_js_1.TsAccordionItem,
74
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
75
+ react: react_1.default,
76
+ events: { onTsToggle: 'tsToggle' },
77
+ defineCustomElement: ts_accordion_item_js_1.defineCustomElement
78
+ });
79
+ exports.TsAlert = (0, runtime_1.createComponent)({
80
+ tagName: 'ts-alert',
81
+ elementClass: ts_alert_js_1.TsAlert,
82
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
83
+ react: react_1.default,
84
+ events: { onTsClose: 'tsClose' },
85
+ defineCustomElement: ts_alert_js_1.defineCustomElement
86
+ });
87
+ exports.TsAvatar = (0, runtime_1.createComponent)({
88
+ tagName: 'ts-avatar',
89
+ elementClass: ts_avatar_js_1.TsAvatar,
90
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
91
+ react: react_1.default,
92
+ events: {},
93
+ defineCustomElement: ts_avatar_js_1.defineCustomElement
94
+ });
95
+ exports.TsBadge = (0, runtime_1.createComponent)({
96
+ tagName: 'ts-badge',
97
+ elementClass: ts_badge_js_1.TsBadge,
98
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
99
+ react: react_1.default,
100
+ events: {},
101
+ defineCustomElement: ts_badge_js_1.defineCustomElement
102
+ });
103
+ exports.TsBanner = (0, runtime_1.createComponent)({
104
+ tagName: 'ts-banner',
105
+ elementClass: ts_banner_js_1.TsBanner,
106
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
107
+ react: react_1.default,
108
+ events: { onTsClose: 'tsClose' },
109
+ defineCustomElement: ts_banner_js_1.defineCustomElement
110
+ });
111
+ exports.TsBreadcrumb = (0, runtime_1.createComponent)({
112
+ tagName: 'ts-breadcrumb',
113
+ elementClass: ts_breadcrumb_js_1.TsBreadcrumb,
114
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
115
+ react: react_1.default,
116
+ events: {},
117
+ defineCustomElement: ts_breadcrumb_js_1.defineCustomElement
118
+ });
119
+ exports.TsBreadcrumbItem = (0, runtime_1.createComponent)({
120
+ tagName: 'ts-breadcrumb-item',
121
+ elementClass: ts_breadcrumb_item_js_1.TsBreadcrumbItem,
122
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
123
+ react: react_1.default,
124
+ events: {},
125
+ defineCustomElement: ts_breadcrumb_item_js_1.defineCustomElement
126
+ });
127
+ exports.TsButton = (0, runtime_1.createComponent)({
128
+ tagName: 'ts-button',
129
+ elementClass: ts_button_js_1.TsButton,
130
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
131
+ react: react_1.default,
132
+ events: {
133
+ onTsClick: 'tsClick',
134
+ onTsFocus: 'tsFocus',
135
+ onTsBlur: 'tsBlur'
136
+ },
137
+ defineCustomElement: ts_button_js_1.defineCustomElement
138
+ });
139
+ exports.TsCard = (0, runtime_1.createComponent)({
140
+ tagName: 'ts-card',
141
+ elementClass: ts_card_js_1.TsCard,
142
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
143
+ react: react_1.default,
144
+ events: {},
145
+ defineCustomElement: ts_card_js_1.defineCustomElement
146
+ });
147
+ exports.TsCheckbox = (0, runtime_1.createComponent)({
148
+ tagName: 'ts-checkbox',
149
+ elementClass: ts_checkbox_js_1.TsCheckbox,
150
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
151
+ react: react_1.default,
152
+ events: { onTsChange: 'tsChange' },
153
+ defineCustomElement: ts_checkbox_js_1.defineCustomElement
154
+ });
155
+ exports.TsChip = (0, runtime_1.createComponent)({
156
+ tagName: 'ts-chip',
157
+ elementClass: ts_chip_js_1.TsChip,
158
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
159
+ react: react_1.default,
160
+ events: {
161
+ onTsRemove: 'tsRemove',
162
+ onTsClick: 'tsClick'
163
+ },
164
+ defineCustomElement: ts_chip_js_1.defineCustomElement
165
+ });
166
+ exports.TsContainer = (0, runtime_1.createComponent)({
167
+ tagName: 'ts-container',
168
+ elementClass: ts_container_js_1.TsContainer,
169
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
170
+ react: react_1.default,
171
+ events: {},
172
+ defineCustomElement: ts_container_js_1.defineCustomElement
173
+ });
174
+ exports.TsDatePicker = (0, runtime_1.createComponent)({
175
+ tagName: 'ts-date-picker',
176
+ elementClass: ts_date_picker_js_1.TsDatePicker,
177
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
178
+ react: react_1.default,
179
+ events: { onTsChange: 'tsChange' },
180
+ defineCustomElement: ts_date_picker_js_1.defineCustomElement
181
+ });
182
+ exports.TsDialog = (0, runtime_1.createComponent)({
183
+ tagName: 'ts-dialog',
184
+ elementClass: ts_dialog_js_1.TsDialog,
185
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
186
+ react: react_1.default,
187
+ events: { onTsClose: 'tsClose' },
188
+ defineCustomElement: ts_dialog_js_1.defineCustomElement
189
+ });
190
+ exports.TsDivider = (0, runtime_1.createComponent)({
191
+ tagName: 'ts-divider',
192
+ elementClass: ts_divider_js_1.TsDivider,
193
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
194
+ react: react_1.default,
195
+ events: {},
196
+ defineCustomElement: ts_divider_js_1.defineCustomElement
197
+ });
198
+ exports.TsDrawer = (0, runtime_1.createComponent)({
199
+ tagName: 'ts-drawer',
200
+ elementClass: ts_drawer_js_1.TsDrawer,
201
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
202
+ react: react_1.default,
203
+ events: { onTsClose: 'tsClose' },
204
+ defineCustomElement: ts_drawer_js_1.defineCustomElement
205
+ });
206
+ exports.TsEmptyState = (0, runtime_1.createComponent)({
207
+ tagName: 'ts-empty-state',
208
+ elementClass: ts_empty_state_js_1.TsEmptyState,
209
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
210
+ react: react_1.default,
211
+ events: {},
212
+ defineCustomElement: ts_empty_state_js_1.defineCustomElement
213
+ });
214
+ exports.TsFileUpload = (0, runtime_1.createComponent)({
215
+ tagName: 'ts-file-upload',
216
+ elementClass: ts_file_upload_js_1.TsFileUpload,
217
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
218
+ react: react_1.default,
219
+ events: { onTsChange: 'tsChange' },
220
+ defineCustomElement: ts_file_upload_js_1.defineCustomElement
221
+ });
222
+ exports.TsGrid = (0, runtime_1.createComponent)({
223
+ tagName: 'ts-grid',
224
+ elementClass: ts_grid_js_1.TsGrid,
225
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
226
+ react: react_1.default,
227
+ events: {},
228
+ defineCustomElement: ts_grid_js_1.defineCustomElement
229
+ });
230
+ exports.TsIcon = (0, runtime_1.createComponent)({
231
+ tagName: 'ts-icon',
232
+ elementClass: ts_icon_js_1.TsIcon,
233
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
234
+ react: react_1.default,
235
+ events: {},
236
+ defineCustomElement: ts_icon_js_1.defineCustomElement
237
+ });
238
+ exports.TsInput = (0, runtime_1.createComponent)({
239
+ tagName: 'ts-input',
240
+ elementClass: ts_input_js_1.TsInput,
241
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
242
+ react: react_1.default,
243
+ events: {
244
+ onTsInput: 'tsInput',
245
+ onTsChange: 'tsChange',
246
+ onTsFocus: 'tsFocus',
247
+ onTsBlur: 'tsBlur',
248
+ onTsValidate: 'tsValidate'
249
+ },
250
+ defineCustomElement: ts_input_js_1.defineCustomElement
251
+ });
252
+ exports.TsMenu = (0, runtime_1.createComponent)({
253
+ tagName: 'ts-menu',
254
+ elementClass: ts_menu_js_1.TsMenu,
255
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
256
+ react: react_1.default,
257
+ events: {
258
+ onTsOpen: 'tsOpen',
259
+ onTsClose: 'tsClose'
260
+ },
261
+ defineCustomElement: ts_menu_js_1.defineCustomElement
262
+ });
263
+ exports.TsMenuItem = (0, runtime_1.createComponent)({
264
+ tagName: 'ts-menu-item',
265
+ elementClass: ts_menu_item_js_1.TsMenuItem,
266
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
267
+ react: react_1.default,
268
+ events: { onTsSelect: 'tsSelect' },
269
+ defineCustomElement: ts_menu_item_js_1.defineCustomElement
270
+ });
271
+ exports.TsModal = (0, runtime_1.createComponent)({
272
+ tagName: 'ts-modal',
273
+ elementClass: ts_modal_js_1.TsModal,
274
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
275
+ react: react_1.default,
276
+ events: {
277
+ onTsOpen: 'tsOpen',
278
+ onTsClose: 'tsClose'
279
+ },
280
+ defineCustomElement: ts_modal_js_1.defineCustomElement
281
+ });
282
+ exports.TsNav = (0, runtime_1.createComponent)({
283
+ tagName: 'ts-nav',
284
+ elementClass: ts_nav_js_1.TsNav,
285
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
286
+ react: react_1.default,
287
+ events: {},
288
+ defineCustomElement: ts_nav_js_1.defineCustomElement
289
+ });
290
+ exports.TsNavItem = (0, runtime_1.createComponent)({
291
+ tagName: 'ts-nav-item',
292
+ elementClass: ts_nav_item_js_1.TsNavItem,
293
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
294
+ react: react_1.default,
295
+ events: { onTsSelect: 'tsSelect' },
296
+ defineCustomElement: ts_nav_item_js_1.defineCustomElement
297
+ });
298
+ exports.TsPagination = (0, runtime_1.createComponent)({
299
+ tagName: 'ts-pagination',
300
+ elementClass: ts_pagination_js_1.TsPagination,
301
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
302
+ react: react_1.default,
303
+ events: { onTsChange: 'tsChange' },
304
+ defineCustomElement: ts_pagination_js_1.defineCustomElement
305
+ });
306
+ exports.TsPopover = (0, runtime_1.createComponent)({
307
+ tagName: 'ts-popover',
308
+ elementClass: ts_popover_js_1.TsPopover,
309
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
310
+ react: react_1.default,
311
+ events: {
312
+ onTsOpen: 'tsOpen',
313
+ onTsClose: 'tsClose'
314
+ },
315
+ defineCustomElement: ts_popover_js_1.defineCustomElement
316
+ });
317
+ exports.TsProgress = (0, runtime_1.createComponent)({
318
+ tagName: 'ts-progress',
319
+ elementClass: ts_progress_js_1.TsProgress,
320
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
321
+ react: react_1.default,
322
+ events: {},
323
+ defineCustomElement: ts_progress_js_1.defineCustomElement
324
+ });
325
+ exports.TsRadio = (0, runtime_1.createComponent)({
326
+ tagName: 'ts-radio',
327
+ elementClass: ts_radio_js_1.TsRadio,
328
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
329
+ react: react_1.default,
330
+ events: { onTsChange: 'tsChange' },
331
+ defineCustomElement: ts_radio_js_1.defineCustomElement
332
+ });
333
+ exports.TsRow = (0, runtime_1.createComponent)({
334
+ tagName: 'ts-row',
335
+ elementClass: ts_row_js_1.TsRow,
336
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
337
+ react: react_1.default,
338
+ events: {},
339
+ defineCustomElement: ts_row_js_1.defineCustomElement
340
+ });
341
+ exports.TsSelect = (0, runtime_1.createComponent)({
342
+ tagName: 'ts-select',
343
+ elementClass: ts_select_js_1.TsSelect,
344
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
345
+ react: react_1.default,
346
+ events: {
347
+ onTsChange: 'tsChange',
348
+ onTsFocus: 'tsFocus',
349
+ onTsBlur: 'tsBlur'
350
+ },
351
+ defineCustomElement: ts_select_js_1.defineCustomElement
352
+ });
353
+ exports.TsSkeleton = (0, runtime_1.createComponent)({
354
+ tagName: 'ts-skeleton',
355
+ elementClass: ts_skeleton_js_1.TsSkeleton,
356
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
357
+ react: react_1.default,
358
+ events: {},
359
+ defineCustomElement: ts_skeleton_js_1.defineCustomElement
360
+ });
361
+ exports.TsSlider = (0, runtime_1.createComponent)({
362
+ tagName: 'ts-slider',
363
+ elementClass: ts_slider_js_1.TsSlider,
364
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
365
+ react: react_1.default,
366
+ events: {
367
+ onTsInput: 'tsInput',
368
+ onTsChange: 'tsChange'
369
+ },
370
+ defineCustomElement: ts_slider_js_1.defineCustomElement
371
+ });
372
+ exports.TsSpacer = (0, runtime_1.createComponent)({
373
+ tagName: 'ts-spacer',
374
+ elementClass: ts_spacer_js_1.TsSpacer,
375
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
376
+ react: react_1.default,
377
+ events: {},
378
+ defineCustomElement: ts_spacer_js_1.defineCustomElement
379
+ });
380
+ exports.TsSpinner = (0, runtime_1.createComponent)({
381
+ tagName: 'ts-spinner',
382
+ elementClass: ts_spinner_js_1.TsSpinner,
383
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
384
+ react: react_1.default,
385
+ events: {},
386
+ defineCustomElement: ts_spinner_js_1.defineCustomElement
387
+ });
388
+ exports.TsStack = (0, runtime_1.createComponent)({
389
+ tagName: 'ts-stack',
390
+ elementClass: ts_stack_js_1.TsStack,
391
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
392
+ react: react_1.default,
393
+ events: {},
394
+ defineCustomElement: ts_stack_js_1.defineCustomElement
395
+ });
396
+ exports.TsStep = (0, runtime_1.createComponent)({
397
+ tagName: 'ts-step',
398
+ elementClass: ts_step_js_1.TsStep,
399
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
400
+ react: react_1.default,
401
+ events: {},
402
+ defineCustomElement: ts_step_js_1.defineCustomElement
403
+ });
404
+ exports.TsStepper = (0, runtime_1.createComponent)({
405
+ tagName: 'ts-stepper',
406
+ elementClass: ts_stepper_js_1.TsStepper,
407
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
408
+ react: react_1.default,
409
+ events: {},
410
+ defineCustomElement: ts_stepper_js_1.defineCustomElement
411
+ });
412
+ exports.TsSwitchGroup = (0, runtime_1.createComponent)({
413
+ tagName: 'ts-switch-group',
414
+ elementClass: ts_switch_group_js_1.TsSwitchGroup,
415
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
416
+ react: react_1.default,
417
+ events: { onTsChange: 'tsChange' },
418
+ defineCustomElement: ts_switch_group_js_1.defineCustomElement
419
+ });
420
+ exports.TsSwitchOption = (0, runtime_1.createComponent)({
421
+ tagName: 'ts-switch-option',
422
+ elementClass: ts_switch_option_js_1.TsSwitchOption,
423
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
424
+ react: react_1.default,
425
+ events: {},
426
+ defineCustomElement: ts_switch_option_js_1.defineCustomElement
427
+ });
428
+ exports.TsTabPanel = (0, runtime_1.createComponent)({
429
+ tagName: 'ts-tab-panel',
430
+ elementClass: ts_tab_panel_js_1.TsTabPanel,
431
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
432
+ react: react_1.default,
433
+ events: {},
434
+ defineCustomElement: ts_tab_panel_js_1.defineCustomElement
435
+ });
436
+ exports.TsTable = (0, runtime_1.createComponent)({
437
+ tagName: 'ts-table',
438
+ elementClass: ts_table_js_1.TsTable,
439
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
440
+ react: react_1.default,
441
+ events: {},
442
+ defineCustomElement: ts_table_js_1.defineCustomElement
443
+ });
444
+ exports.TsTabs = (0, runtime_1.createComponent)({
445
+ tagName: 'ts-tabs',
446
+ elementClass: ts_tabs_js_1.TsTabs,
447
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
448
+ react: react_1.default,
449
+ events: { onTsChange: 'tsChange' },
450
+ defineCustomElement: ts_tabs_js_1.defineCustomElement
451
+ });
452
+ exports.TsTextarea = (0, runtime_1.createComponent)({
453
+ tagName: 'ts-textarea',
454
+ elementClass: ts_textarea_js_1.TsTextarea,
455
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
456
+ react: react_1.default,
457
+ events: {
458
+ onTsInput: 'tsInput',
459
+ onTsChange: 'tsChange',
460
+ onTsFocus: 'tsFocus',
461
+ onTsBlur: 'tsBlur'
462
+ },
463
+ defineCustomElement: ts_textarea_js_1.defineCustomElement
464
+ });
465
+ exports.TsToast = (0, runtime_1.createComponent)({
466
+ tagName: 'ts-toast',
467
+ elementClass: ts_toast_js_1.TsToast,
468
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
469
+ react: react_1.default,
470
+ events: { onTsClose: 'tsClose' },
471
+ defineCustomElement: ts_toast_js_1.defineCustomElement
472
+ });
473
+ exports.TsToggle = (0, runtime_1.createComponent)({
474
+ tagName: 'ts-toggle',
475
+ elementClass: ts_toggle_js_1.TsToggle,
476
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
477
+ react: react_1.default,
478
+ events: { onTsChange: 'tsChange' },
479
+ defineCustomElement: ts_toggle_js_1.defineCustomElement
480
+ });
481
+ exports.TsToolbar = (0, runtime_1.createComponent)({
482
+ tagName: 'ts-toolbar',
483
+ elementClass: ts_toolbar_js_1.TsToolbar,
484
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
485
+ react: react_1.default,
486
+ events: {},
487
+ defineCustomElement: ts_toolbar_js_1.defineCustomElement
488
+ });
489
+ exports.TsTooltip = (0, runtime_1.createComponent)({
490
+ tagName: 'ts-tooltip',
491
+ elementClass: ts_tooltip_js_1.TsTooltip,
492
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
493
+ react: react_1.default,
494
+ events: {},
495
+ defineCustomElement: ts_tooltip_js_1.defineCustomElement
496
+ });
497
+ exports.TsTree = (0, runtime_1.createComponent)({
498
+ tagName: 'ts-tree',
499
+ elementClass: ts_tree_js_1.TsTree,
500
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
501
+ react: react_1.default,
502
+ events: {},
503
+ defineCustomElement: ts_tree_js_1.defineCustomElement
504
+ });
505
+ exports.TsTreeItem = (0, runtime_1.createComponent)({
506
+ tagName: 'ts-tree-item',
507
+ elementClass: ts_tree_item_js_1.TsTreeItem,
508
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
509
+ react: react_1.default,
510
+ events: {
511
+ onTsToggle: 'tsToggle',
512
+ onTsSelect: 'tsSelect'
513
+ },
514
+ defineCustomElement: ts_tree_item_js_1.defineCustomElement
515
+ });
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ // Auto-import Tessera UI design tokens (global CSS custom properties)
18
+ require("@tessera-ui/core/dist/tessera-ui/tessera-ui.css");
19
+ __exportStar(require("./components/components"), exports);
@@ -0,0 +1,2 @@
1
+ import '@tessera-ui/core/dist/tessera-ui/tessera-ui.css';
2
+ export * from './components/components';
package/dist/index.js ADDED
@@ -0,0 +1,3 @@
1
+ // Auto-import Tessera UI design tokens (global CSS custom properties)
2
+ import '@tessera-ui/core/dist/tessera-ui/tessera-ui.css';
3
+ export * from './components/components';
package/package.json CHANGED
@@ -1,17 +1,32 @@
1
1
  {
2
2
  "name": "@tessera-ui/react",
3
- "version": "0.4.0",
3
+ "version": "0.5.0",
4
4
  "description": "React wrappers for Tessera UI web components",
5
- "main": "dist/index.cjs.js",
5
+ "main": "dist/cjs/index.js",
6
6
  "module": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "import": "./dist/index.js",
11
+ "require": "./dist/cjs/index.js",
12
+ "types": "./dist/index.d.ts"
13
+ }
14
+ },
15
+ "sideEffects": [
16
+ "**/*.css",
17
+ "./dist/index.js",
18
+ "./dist/cjs/index.js"
19
+ ],
8
20
  "files": [
9
- "dist/"
21
+ "dist/",
22
+ "README.md"
10
23
  ],
24
+ "dependencies": {
25
+ "@tessera-ui/core": "^0.5.0"
26
+ },
11
27
  "peerDependencies": {
12
28
  "react": ">=17.0.0",
13
- "react-dom": ">=17.0.0",
14
- "@tessera-ui/core": "0.4.0"
29
+ "react-dom": ">=17.0.0"
15
30
  },
16
31
  "devDependencies": {
17
32
  "@types/react": "^18.3.0",
@@ -25,6 +40,6 @@
25
40
  },
26
41
  "license": "MIT",
27
42
  "scripts": {
28
- "build": "tsc -p tsconfig.json"
43
+ "build": "tsc -p tsconfig.json && tsc -p tsconfig.cjs.json"
29
44
  }
30
45
  }