@triptease/react 2.0.4 → 2.0.17
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/src/TtPresetButton.d.ts +5 -0
- package/dist/src/TtPresetButton.js +13 -0
- package/dist/src/TtPresetButton.js.map +1 -0
- package/dist/src/index.d.ts +2 -1
- package/dist/src/index.js +1 -1
- package/dist/src/index.js.map +1 -1
- package/package.json +2 -2
- package/src/TtPresetButton.tsx +13 -0
- package/src/index.ts +2 -1
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { createComponent } from '@lit/react';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { PresetButton as TtPresetButton } from '@triptease/webcomponents';
|
|
4
|
+
export const PresetButton = createComponent({
|
|
5
|
+
tagName: 'tt-combobox',
|
|
6
|
+
react: React,
|
|
7
|
+
elementClass: TtPresetButton,
|
|
8
|
+
events: {
|
|
9
|
+
onchange: 'change',
|
|
10
|
+
ondateselection: 'date-selection'
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
//# sourceMappingURL=TtPresetButton.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TtPresetButton.js","sourceRoot":"","sources":["../../src/TtPresetButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAC,YAAY,IAAI,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAEzE,MAAM,CAAC,MAAM,YAAY,GAAG,eAAe,CAAC;IAC1C,OAAO,EAAE,aAAa;IACtB,KAAK,EAAE,KAAK;IACZ,YAAY,EAAE,cAAc;IAC5B,MAAM,EAAE;QACN,QAAQ,EAAE,QAAQ;QAClB,eAAe,EAAE,gBAAgB;KAClC;CACF,CAAC,CAAC","sourcesContent":["import { createComponent } from '@lit/react';\nimport * as React from 'react';\nimport {PresetButton as TtPresetButton } from '@triptease/webcomponents';\n\nexport const PresetButton = createComponent({\n tagName: 'tt-combobox',\n react: React,\n elementClass: TtPresetButton,\n events: {\n onchange: 'change',\n ondateselection: 'date-selection'\n }\n});"]}
|
package/dist/src/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { ComboBox } from './TtCombobox.js';
|
|
2
2
|
export { DatePicker } from './TtDatePicker.js';
|
|
3
3
|
export { DateRangePicker } from './TtDateRangePicker.js';
|
|
4
|
-
export {
|
|
4
|
+
export { PresetButton } from './TtPresetButton.js';
|
|
5
|
+
export type { Preset } from '@triptease/webcomponents';
|
package/dist/src/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { ComboBox } from './TtCombobox.js';
|
|
2
2
|
export { DatePicker } from './TtDatePicker.js';
|
|
3
3
|
export { DateRangePicker } from './TtDateRangePicker.js';
|
|
4
|
-
export {
|
|
4
|
+
export { PresetButton } from './TtPresetButton.js';
|
|
5
5
|
//# sourceMappingURL=index.js.map
|
package/dist/src/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,iBAAiB,CAAC;AACzC,OAAO,EAAC,UAAU,EAAC,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAC,eAAe,EAAC,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,iBAAiB,CAAC;AACzC,OAAO,EAAC,UAAU,EAAC,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAC,eAAe,EAAC,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAC,YAAY,EAAC,MAAM,qBAAqB,CAAC","sourcesContent":["export {ComboBox} from './TtCombobox.js';\nexport {DatePicker} from './TtDatePicker.js';\nexport {DateRangePicker} from './TtDateRangePicker.js';\nexport {PresetButton} from './TtPresetButton.js';\nexport type {Preset} from '@triptease/webcomponents';"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@triptease/react",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.17",
|
|
4
4
|
"description": "React bindings for the @triptease/webcomponents components",
|
|
5
5
|
"author": "Launchpad Squad",
|
|
6
6
|
"license": "MIT",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
14
|
"@lit/react": "^1.0.5",
|
|
15
|
-
"@triptease/webcomponents": "^2.0.
|
|
15
|
+
"@triptease/webcomponents": "^2.0.17",
|
|
16
16
|
"react": "^18.3.1"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { createComponent } from '@lit/react';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import {PresetButton as TtPresetButton } from '@triptease/webcomponents';
|
|
4
|
+
|
|
5
|
+
export const PresetButton = createComponent({
|
|
6
|
+
tagName: 'tt-combobox',
|
|
7
|
+
react: React,
|
|
8
|
+
elementClass: TtPresetButton,
|
|
9
|
+
events: {
|
|
10
|
+
onchange: 'change',
|
|
11
|
+
ondateselection: 'date-selection'
|
|
12
|
+
}
|
|
13
|
+
});
|
package/src/index.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export {ComboBox} from './TtCombobox.js';
|
|
2
2
|
export {DatePicker} from './TtDatePicker.js';
|
|
3
3
|
export {DateRangePicker} from './TtDateRangePicker.js';
|
|
4
|
-
export {
|
|
4
|
+
export {PresetButton} from './TtPresetButton.js';
|
|
5
|
+
export type {Preset} from '@triptease/webcomponents';
|