@ttoss/ui 4.0.2 → 4.0.4

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/index.d.mts CHANGED
@@ -57,7 +57,7 @@ declare const Link: React.ForwardRefExoticComponent<Omit<LinkProps, "ref"> & Rea
57
57
  * ttoss Figma: https://www.figma.com/file/VrB76VkH4hKCDUe9iYhpYu/_Component-%2F-Forms-%2F-Select?type=design&mode=design&t=ZBIeOpqcvQn3yq2t-0
58
58
  */
59
59
 
60
- type SelectOptionValue = string;
60
+ type SelectOptionValue = string | number | boolean;
61
61
  type SelectOption = {
62
62
  label: string;
63
63
  value: SelectOptionValue;
@@ -78,7 +78,7 @@ type SelectProps = Omit<Props<SelectOption, IsMulti>, 'styles' | 'value' | 'onCh
78
78
  * https://react-select.com/home
79
79
  */
80
80
  declare const Select: React.ForwardRefExoticComponent<Omit<Props<SelectOption, false>, "styles" | "onChange" | "value" | "components"> & SxProp & {
81
- value?: string | undefined;
81
+ value?: SelectOptionValue | undefined;
82
82
  onChange?: ((value: SelectOptionValue | undefined) => void) | undefined;
83
83
  disabled?: boolean | undefined;
84
84
  leadingIcon?: IconType | undefined;
package/dist/index.d.ts CHANGED
@@ -57,7 +57,7 @@ declare const Link: React.ForwardRefExoticComponent<Omit<LinkProps, "ref"> & Rea
57
57
  * ttoss Figma: https://www.figma.com/file/VrB76VkH4hKCDUe9iYhpYu/_Component-%2F-Forms-%2F-Select?type=design&mode=design&t=ZBIeOpqcvQn3yq2t-0
58
58
  */
59
59
 
60
- type SelectOptionValue = string;
60
+ type SelectOptionValue = string | number | boolean;
61
61
  type SelectOption = {
62
62
  label: string;
63
63
  value: SelectOptionValue;
@@ -78,7 +78,7 @@ type SelectProps = Omit<Props<SelectOption, IsMulti>, 'styles' | 'value' | 'onCh
78
78
  * https://react-select.com/home
79
79
  */
80
80
  declare const Select: React.ForwardRefExoticComponent<Omit<Props<SelectOption, false>, "styles" | "onChange" | "value" | "components"> & SxProp & {
81
- value?: string | undefined;
81
+ value?: SelectOptionValue | undefined;
82
82
  onChange?: ((value: SelectOptionValue | undefined) => void) | undefined;
83
83
  disabled?: boolean | undefined;
84
84
  leadingIcon?: IconType | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ttoss/ui",
3
- "version": "4.0.2",
3
+ "version": "4.0.4",
4
4
  "description": "Primitive layout, typographic, and other components for styling applications.",
5
5
  "author": "ttoss",
6
6
  "contributors": [
@@ -23,24 +23,24 @@
23
23
  "@theme-ui/match-media": "^0.16.1",
24
24
  "react-select": "^5.8.0",
25
25
  "theme-ui": "^0.16.1",
26
- "@ttoss/theme": "^1.6.8"
26
+ "@ttoss/theme": "^1.6.9"
27
27
  },
28
28
  "peerDependencies": {
29
29
  "@emotion/react": "^11",
30
30
  "react": ">=16.8.0",
31
- "@ttoss/react-icons": "^0.2.3"
31
+ "@ttoss/react-icons": "^0.2.4"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@emotion/react": "^11.11.1",
35
35
  "@iconify-icons/mdi-light": "^1.2.5",
36
36
  "@types/jest": "^29.5.10",
37
- "@types/react": "^18.2.38",
37
+ "@types/react": "^18.2.39",
38
38
  "jest": "^29.7.0",
39
39
  "react": "^18.2.0",
40
40
  "tsup": "^8.0.1",
41
- "@ttoss/config": "^1.31.1",
42
- "@ttoss/react-icons": "^0.2.3",
43
- "@ttoss/test-utils": "^2.0.0"
41
+ "@ttoss/config": "^1.31.2",
42
+ "@ttoss/react-icons": "^0.2.4",
43
+ "@ttoss/test-utils": "^2.0.1"
44
44
  },
45
45
  "keywords": [
46
46
  "React",
@@ -18,7 +18,7 @@ import ReactSelect, {
18
18
  components,
19
19
  } from 'react-select';
20
20
 
21
- type SelectOptionValue = string;
21
+ type SelectOptionValue = string | number | boolean;
22
22
 
23
23
  export type SelectOption = {
24
24
  label: string;