@triptease/react 0.3.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.
@@ -0,0 +1,6 @@
1
+ import { TtCombobox } from '@triptease/webcomponents';
2
+ import '@triptease/webcomponents/tt-combobox.js';
3
+ export declare const ComboBox: import("@lit/react").ReactWebComponent<TtCombobox, {
4
+ onchange: string;
5
+ onChange: string;
6
+ }>;
@@ -0,0 +1,14 @@
1
+ import * as React from 'react';
2
+ import { createComponent } from '@lit/react';
3
+ import { TtCombobox } from '@triptease/webcomponents';
4
+ import '@triptease/webcomponents/tt-combobox.js';
5
+ export const ComboBox = createComponent({
6
+ tagName: 'tt-combobox',
7
+ react: React,
8
+ elementClass: TtCombobox,
9
+ events: {
10
+ onchange: 'change',
11
+ onChange: 'change',
12
+ }
13
+ });
14
+ //# sourceMappingURL=TtCombobox.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TtCombobox.js","sourceRoot":"","sources":["../../src/TtCombobox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAC,eAAe,EAAC,MAAM,YAAY,CAAC;AAC3C,OAAO,EAAC,UAAU,EAAC,MAAM,0BAA0B,CAAC;AACpD,OAAO,yCAAyC,CAAC;AAEjD,MAAM,CAAC,MAAM,QAAQ,GAAG,eAAe,CAAC;IACtC,OAAO,EAAE,aAAa;IACtB,KAAK,EAAE,KAAK;IACZ,YAAY,EAAE,UAAU;IACxB,MAAM,EAAE;QACN,QAAQ,EAAE,QAAQ;QAClB,QAAQ,EAAE,QAAQ;KACnB;CACF,CAAC,CAAC","sourcesContent":["import * as React from 'react';\nimport {createComponent} from '@lit/react';\nimport {TtCombobox} from '@triptease/webcomponents';\nimport '@triptease/webcomponents/tt-combobox.js';\n\nexport const ComboBox = createComponent({\n tagName: 'tt-combobox',\n react: React,\n elementClass: TtCombobox,\n events: {\n onchange: 'change',\n onChange: 'change',\n }\n});"]}
@@ -0,0 +1 @@
1
+ export { ComboBox } from './TtCombobox.js';
@@ -0,0 +1,2 @@
1
+ export { ComboBox } from './TtCombobox.js';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,iBAAiB,CAAC","sourcesContent":["export {ComboBox} from './TtCombobox.js';"]}
package/package.json ADDED
@@ -0,0 +1,26 @@
1
+ {
2
+ "name": "@triptease/react",
3
+ "version": "0.3.0",
4
+ "description": "React bindings for the @triptease/webcomponents components",
5
+ "author": "Launchpad Squad",
6
+ "license": "MIT",
7
+ "type": "module",
8
+ "main": "dist/src/index.js",
9
+ "module": "dist/src/index.js",
10
+ "exports": {
11
+ ".": "./dist/src/index.js"
12
+ },
13
+ "dependencies": {
14
+ "@lit/react": "^1.0.5",
15
+ "@triptease/webcomponents": "^0.3.0",
16
+ "react": "^18.3.1"
17
+ },
18
+ "devDependencies": {
19
+ "@types/react": "^18.3.12",
20
+ "typescript": "^5.5.4"
21
+ },
22
+ "scripts": {
23
+ "prebuild": "yarn workspace @triptease/webcomponents build",
24
+ "build": "tsc"
25
+ }
26
+ }
@@ -0,0 +1,14 @@
1
+ import * as React from 'react';
2
+ import {createComponent} from '@lit/react';
3
+ import {TtCombobox} from '@triptease/webcomponents';
4
+ import '@triptease/webcomponents/tt-combobox.js';
5
+
6
+ export const ComboBox = createComponent({
7
+ tagName: 'tt-combobox',
8
+ react: React,
9
+ elementClass: TtCombobox,
10
+ events: {
11
+ onchange: 'change',
12
+ onChange: 'change',
13
+ }
14
+ });
package/src/index.ts ADDED
@@ -0,0 +1 @@
1
+ export {ComboBox} from './TtCombobox.js';
package/tsconfig.json ADDED
@@ -0,0 +1,23 @@
1
+ {
2
+ "compilerOptions": {
3
+ "target": "es2021",
4
+ "module": "NodeNext",
5
+ "moduleResolution": "NodeNext",
6
+ "noEmitOnError": true,
7
+ "lib": ["es2021", "dom", "DOM.Iterable"],
8
+ "strict": true,
9
+ "esModuleInterop": false,
10
+ "allowSyntheticDefaultImports": true,
11
+ "experimentalDecorators": true,
12
+ "importHelpers": true,
13
+ "outDir": "dist",
14
+ "sourceMap": true,
15
+ "inlineSources": true,
16
+ "rootDir": ".",
17
+ "declaration": true,
18
+ "incremental": true,
19
+ "skipLibCheck": true,
20
+ "jsx": "react-jsx"
21
+ },
22
+ "include": ["src/**/*.ts"]
23
+ }