@startupjs-ui/radio 0.1.16 → 0.1.19

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
@@ -3,6 +3,22 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [0.1.19](https://github.com/startupjs/startupjs-ui/compare/v0.1.18...v0.1.19) (2026-03-17)
7
+
8
+ **Note:** Version bump only for package @startupjs-ui/radio
9
+
10
+
11
+
12
+
13
+
14
+ ## [0.1.17](https://github.com/startupjs/startupjs-ui/compare/v0.1.16...v0.1.17) (2026-02-12)
15
+
16
+ **Note:** Version bump only for package @startupjs-ui/radio
17
+
18
+
19
+
20
+
21
+
6
22
  ## [0.1.16](https://github.com/startupjs/startupjs-ui/compare/v0.1.15...v0.1.16) (2026-02-10)
7
23
 
8
24
  **Note:** Version bump only for package @startupjs-ui/radio
package/helpers.ts CHANGED
@@ -11,7 +11,7 @@ export type RadioOption = string | number | RadioOptionObject
11
11
  export type RadioValue = string | number | RadioOptionObject | null | undefined
12
12
 
13
13
  export function getOptionLabel (option: RadioOption): any {
14
- return (option as any)?.label || option
14
+ return (option as any)?.label ?? option
15
15
  }
16
16
 
17
17
  export function getOptionDescription (option: RadioOption): any {
@@ -19,7 +19,7 @@ export function getOptionDescription (option: RadioOption): any {
19
19
  }
20
20
 
21
21
  export function stringifyValue (option: any): string {
22
- return JSON.stringify(option?.value || option)
22
+ return JSON.stringify(option?.value ?? option)
23
23
  }
24
24
 
25
25
  export function parseValue (value: any): any {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@startupjs-ui/radio",
3
- "version": "0.1.16",
3
+ "version": "0.1.19",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -8,14 +8,14 @@
8
8
  "types": "index.d.ts",
9
9
  "type": "module",
10
10
  "dependencies": {
11
- "@startupjs-ui/core": "^0.1.11",
12
- "@startupjs-ui/div": "^0.1.16",
13
- "@startupjs-ui/span": "^0.1.16"
11
+ "@startupjs-ui/core": "^0.1.19",
12
+ "@startupjs-ui/div": "^0.1.19",
13
+ "@startupjs-ui/span": "^0.1.19"
14
14
  },
15
15
  "peerDependencies": {
16
16
  "react": "*",
17
17
  "react-native": "*",
18
18
  "startupjs": "*"
19
19
  },
20
- "gitHead": "9943aa3566d5d80f5b404473906eb3c0611f9ee5"
20
+ "gitHead": "bfcca786dc363f42a09b6eef4feb7ca8139302fc"
21
21
  }