@triptease/tt-combobox 5.5.18 → 5.6.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # @triptease/tt-combobox
2
2
 
3
+ ## 5.6.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Fix types for `style` attribute in React to only accept React.CSSProperties object
8
+
9
+ ## 5.6.0
10
+
11
+ ### Minor Changes
12
+
13
+ - Improve type accuracy
14
+ - Remove @triptease/html-jsx support
15
+
3
16
  ## 5.5.18
4
17
 
5
18
  ### Patch Changes
@@ -1,8 +1,6 @@
1
- import React from 'react';
2
- interface TTComboboxAttributes {
1
+ import { TtCombobox } from './TtCombobox.js';
2
+ interface TtComboboxExternalAttributes {
3
3
  id?: string;
4
- style?: React.CSSProperties;
5
- [key: `data-${string}`]: string | undefined;
6
4
  placeholder?: string;
7
5
  disabled?: boolean;
8
6
  multiselect?: boolean;
@@ -12,34 +10,29 @@ interface TTComboboxAttributes {
12
10
  name?: string;
13
11
  required?: boolean;
14
12
  'aria-labelledby'?: string;
13
+ class?: string;
15
14
  }
16
15
  declare global {
16
+ interface HTMLElementTagNameMap {
17
+ 'tt-combobox': TtCombobox;
18
+ }
17
19
  namespace JSX {
18
20
  interface IntrinsicElements {
19
- 'tt-combobox': TTComboboxAttributes & {
20
- class?: string;
21
+ 'tt-combobox': TtComboboxExternalAttributes & {
22
+ style?: string;
21
23
  };
22
24
  }
23
25
  }
24
26
  namespace React {
25
27
  namespace JSX {
26
28
  interface IntrinsicElements {
27
- 'tt-combobox': TTComboboxAttributes & {
28
- className?: string;
29
+ 'tt-combobox': TtComboboxExternalAttributes & {
29
30
  ref?: React.Ref<unknown>;
30
31
  children?: React.ReactNode;
32
+ style?: React.CSSProperties;
31
33
  };
32
34
  }
33
35
  }
34
36
  }
35
37
  }
36
- declare module '@triptease/html-jsx' {
37
- namespace JSX {
38
- interface IntrinsicElements {
39
- 'tt-combobox': TTComboboxAttributes & {
40
- class?: string;
41
- };
42
- }
43
- }
44
- }
45
38
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"","sourcesContent":["import React from 'react';\nimport type {} from '@triptease/html-jsx'; // Stops declare module from erroring\n\ninterface TTComboboxAttributes {\n id?: string;\n style?: React.CSSProperties;\n [key: `data-${string}`]: string | undefined;\n placeholder?: string;\n disabled?: boolean;\n multiselect?: boolean;\n 'display-select-all'?: boolean;\n invalid?: boolean;\n 'open-upward'?: boolean;\n name?: string;\n required?: boolean;\n 'aria-labelledby'?: string;\n}\n\ndeclare global {\n namespace JSX {\n interface IntrinsicElements {\n 'tt-combobox': TTComboboxAttributes & { class?: string };\n }\n }\n\n namespace React {\n namespace JSX {\n interface IntrinsicElements {\n 'tt-combobox': TTComboboxAttributes & {\n className?: string;\n ref?: React.Ref<unknown>;\n children?: React.ReactNode;\n };\n }\n }\n }\n}\n\ndeclare module '@triptease/html-jsx' {\n namespace JSX {\n interface IntrinsicElements {\n 'tt-combobox': TTComboboxAttributes & { class?: string };\n }\n }\n}\n"]}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"","sourcesContent":["import { TtCombobox } from './TtCombobox.js';\n\ninterface TtComboboxExternalAttributes {\n id?: string;\n placeholder?: string;\n disabled?: boolean;\n multiselect?: boolean;\n 'display-select-all'?: boolean;\n invalid?: boolean;\n 'open-upward'?: boolean;\n name?: string;\n required?: boolean;\n 'aria-labelledby'?: string;\n class?: string;\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'tt-combobox': TtCombobox;\n }\n\n namespace JSX {\n interface IntrinsicElements {\n 'tt-combobox': TtComboboxExternalAttributes & { style?: string };\n }\n }\n\n namespace React {\n namespace JSX {\n interface IntrinsicElements {\n 'tt-combobox': TtComboboxExternalAttributes & {\n ref?: React.Ref<unknown>;\n children?: React.ReactNode;\n style?: React.CSSProperties;\n };\n }\n }\n }\n}\n"]}
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Webcomponent tt-combobox following open-wc recommendations",
4
4
  "license": "MIT",
5
5
  "author": "@triptease",
6
- "version": "5.5.18",
6
+ "version": "5.6.1",
7
7
  "type": "module",
8
8
  "main": "dist/src/index.js",
9
9
  "module": "dist/src/index.js",
@@ -33,7 +33,6 @@
33
33
  "test:watch": "tsc && concurrently -k -r \"tsc --watch --preserveWatchOutput\" \"wtr --watch\""
34
34
  },
35
35
  "dependencies": {
36
- "@triptease/html-jsx": "^0.2.6",
37
36
  "@triptease/icons": "1.3.12",
38
37
  "lit": "^3.1.4"
39
38
  },