@hanzogui/radio-group 3.0.2 → 7.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.
Files changed (43) hide show
  1. package/LICENSE +40 -19
  2. package/dist/cjs/RadioGroup.cjs +108 -106
  3. package/dist/cjs/RadioGroup.native.js +110 -108
  4. package/dist/cjs/RadioGroup.native.js.map +1 -1
  5. package/dist/cjs/RadioGroupStyledContext.cjs +14 -12
  6. package/dist/cjs/RadioGroupStyledContext.native.js +17 -15
  7. package/dist/cjs/RadioGroupStyledContext.native.js.map +1 -1
  8. package/dist/cjs/createRadioGroup.cjs +134 -124
  9. package/dist/cjs/createRadioGroup.native.js +135 -125
  10. package/dist/cjs/createRadioGroup.native.js.map +1 -1
  11. package/dist/cjs/index.cjs +15 -13
  12. package/dist/cjs/index.native.js +15 -13
  13. package/dist/cjs/index.native.js.map +1 -1
  14. package/dist/esm/RadioGroup.mjs +93 -93
  15. package/dist/esm/RadioGroup.mjs.map +1 -1
  16. package/dist/esm/RadioGroup.native.js +95 -95
  17. package/dist/esm/RadioGroup.native.js.map +1 -1
  18. package/dist/esm/createRadioGroup.mjs +103 -95
  19. package/dist/esm/createRadioGroup.mjs.map +1 -1
  20. package/dist/esm/createRadioGroup.native.js +103 -95
  21. package/dist/esm/createRadioGroup.native.js.map +1 -1
  22. package/dist/jsx/RadioGroup.mjs +93 -93
  23. package/dist/jsx/RadioGroup.mjs.map +1 -1
  24. package/dist/jsx/RadioGroup.native.js +110 -108
  25. package/dist/jsx/RadioGroup.native.js.map +1 -1
  26. package/dist/jsx/RadioGroupStyledContext.native.js +17 -15
  27. package/dist/jsx/RadioGroupStyledContext.native.js.map +1 -1
  28. package/dist/jsx/createRadioGroup.mjs +103 -95
  29. package/dist/jsx/createRadioGroup.mjs.map +1 -1
  30. package/dist/jsx/createRadioGroup.native.js +135 -125
  31. package/dist/jsx/createRadioGroup.native.js.map +1 -1
  32. package/dist/jsx/index.native.js +15 -13
  33. package/dist/jsx/index.native.js.map +1 -1
  34. package/package.json +22 -20
  35. package/src/RadioGroup.tsx +2 -2
  36. package/types/RadioGroup.d.ts +10 -10
  37. package/types/RadioGroup.d.ts.map +1 -0
  38. package/types/RadioGroupStyledContext.d.ts +2 -2
  39. package/types/RadioGroupStyledContext.d.ts.map +1 -0
  40. package/types/createRadioGroup.d.ts +96 -96
  41. package/types/createRadioGroup.d.ts.map +1 -0
  42. package/types/index.d.ts +95 -95
  43. package/types/index.d.ts.map +1 -0
package/LICENSE CHANGED
@@ -1,21 +1,42 @@
1
- MIT License
1
+ BSD 3-Clause License
2
+
3
+ Copyright (c) 2026-present, Hanzo AI, Inc.
4
+
5
+ Portions of this software are derived from upstream code originally licensed under
6
+ the MIT License, with the following copyright notices retained per its terms:
2
7
 
3
8
  Copyright (c) 2020 Nate Wienert
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
9
+ Copyright (c) 2015-present, Nicolas Gallagher.
10
+ Copyright (c) 2015-present, Facebook, Inc.
11
+ Copyright (c) 2021 Radix
12
+ Copyright (c) 2017 Carmelo Pullara
13
+ Copyright (c) 2018 Framer B.V.
14
+ Copyright (c) 2022 WorkOS
15
+
16
+ All rights reserved.
17
+
18
+ Redistribution and use in source and binary forms, with or without
19
+ modification, are permitted provided that the following conditions are met:
20
+
21
+ 1. Redistributions of source code must retain the above copyright notice, this
22
+ list of conditions and the following disclaimer.
23
+
24
+ 2. Redistributions in binary form must reproduce the above copyright notice,
25
+ this list of conditions and the following disclaimer in the documentation
26
+ and/or other materials provided with the distribution.
27
+
28
+ 3. Neither the name of the copyright holder nor the names of its contributors
29
+ may be used to endorse or promote products derived from this software
30
+ without specific prior written permission.
31
+
32
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
33
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
34
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
35
+ ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
36
+ LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
37
+ CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
38
+ SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
39
+ INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
40
+ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
41
+ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
42
+ POSSIBILITY OF SUCH DAMAGE.
@@ -3,20 +3,22 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
4
4
  var __hasOwnProp = Object.prototype.hasOwnProperty;
5
5
  var __export = (target, all) => {
6
- for (var name in all) __defProp(target, name, {
7
- get: all[name],
8
- enumerable: !0
9
- });
10
- },
11
- __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
6
+ for (var name in all) __defProp(target, name, {
7
+ get: all[name],
8
+ enumerable: true
9
+ });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
13
14
  get: () => from[key],
14
15
  enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
15
16
  });
16
- return to;
17
- };
17
+ }
18
+ return to;
19
+ };
18
20
  var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
19
- value: !0
21
+ value: true
20
22
  }), mod);
21
23
  var RadioGroup_exports = {};
22
24
  __export(RadioGroup_exports, {
@@ -25,108 +27,108 @@ __export(RadioGroup_exports, {
25
27
  RadioGroupItemFrame: () => RadioGroupItemFrame
26
28
  });
27
29
  module.exports = __toCommonJS(RadioGroup_exports);
28
- var import_gui_core = require("@hanzogui/core"),
29
- import_gui_get_token = require("@hanzogui/get-token"),
30
- import_gui_stacks = require("@hanzogui/stacks");
31
- const RADIO_GROUP_ITEM_NAME = "RadioGroupItem",
32
- RadioGroupItemFrame = (0, import_gui_core.styled)(import_gui_stacks.YStack, {
33
- name: RADIO_GROUP_ITEM_NAME,
34
- render: "button",
35
- variants: {
36
- unstyled: {
37
- false: {
38
- size: "$true",
39
- borderRadius: 1e3,
40
- backgroundColor: "$background",
41
- alignItems: "center",
42
- justifyContent: "center",
43
- borderWidth: 1,
44
- borderColor: "$borderColor",
45
- padding: 0,
46
- hoverStyle: {
47
- borderColor: "$borderColorHover",
48
- backgroundColor: "$backgroundHover"
49
- },
50
- focusStyle: {
51
- borderColor: "$borderColorHover",
52
- backgroundColor: "$backgroundHover"
53
- },
54
- focusVisibleStyle: {
55
- outlineStyle: "solid",
56
- outlineWidth: 2,
57
- outlineColor: "$outlineColor"
58
- },
59
- pressStyle: {
60
- borderColor: "$borderColorFocus",
61
- backgroundColor: "$backgroundFocus"
62
- }
63
- }
64
- },
65
- disabled: {
66
- true: {
67
- pointerEvents: "none",
68
- userSelect: "none",
69
- cursor: "not-allowed",
70
- hoverStyle: {
71
- borderColor: "$borderColor",
72
- backgroundColor: "$background"
73
- },
74
- pressStyle: {
75
- borderColor: "$borderColor",
76
- backgroundColor: "$background"
77
- },
78
- focusVisibleStyle: {
79
- outlineWidth: 0
80
- }
81
- }
82
- },
83
- size: {
84
- "...size": (value, {
85
- props
86
- }) => {
87
- const size = Math.floor((0, import_gui_core.getVariableValue)((0, import_gui_get_token.getSize)(value)) * (props.scaleSize ?? 0.5));
88
- return {
89
- width: size,
90
- height: size
91
- };
30
+ var import_core = require("@hanzogui/core");
31
+ var import_get_token = require("@hanzogui/get-token");
32
+ var import_stacks = require("@hanzogui/stacks");
33
+ const RADIO_GROUP_ITEM_NAME = "RadioGroupItem";
34
+ const RadioGroupItemFrame = (0, import_core.styled)(import_stacks.YStack, {
35
+ name: RADIO_GROUP_ITEM_NAME,
36
+ render: "button",
37
+ variants: {
38
+ unstyled: {
39
+ false: {
40
+ size: "$true",
41
+ borderRadius: 1e3,
42
+ backgroundColor: "$background",
43
+ alignItems: "center",
44
+ justifyContent: "center",
45
+ borderWidth: 1,
46
+ borderColor: "$borderColor",
47
+ padding: 0,
48
+ hoverStyle: {
49
+ borderColor: "$borderColorHover",
50
+ backgroundColor: "$backgroundHover"
51
+ },
52
+ focusStyle: {
53
+ borderColor: "$borderColorHover",
54
+ backgroundColor: "$backgroundHover"
55
+ },
56
+ focusVisibleStyle: {
57
+ outlineStyle: "solid",
58
+ outlineWidth: 2,
59
+ outlineColor: "$outlineColor"
60
+ },
61
+ pressStyle: {
62
+ borderColor: "$borderColorFocus",
63
+ backgroundColor: "$backgroundFocus"
92
64
  }
93
65
  }
94
66
  },
95
- defaultVariants: {
96
- unstyled: process.env.HANZO_GUI_HEADLESS === "1"
97
- }
98
- }),
99
- RADIO_GROUP_INDICATOR_NAME = "RadioGroupIndicator",
100
- RadioGroupIndicatorFrame = (0, import_gui_core.styled)(import_gui_stacks.YStack, {
101
- name: RADIO_GROUP_INDICATOR_NAME,
102
- variants: {
103
- unstyled: {
104
- false: {
105
- width: "33%",
106
- height: "33%",
107
- borderRadius: 1e3,
108
- backgroundColor: "$color",
109
- pressTheme: !0
67
+ disabled: {
68
+ true: {
69
+ pointerEvents: "none",
70
+ userSelect: "none",
71
+ cursor: "not-allowed",
72
+ hoverStyle: {
73
+ borderColor: "$borderColor",
74
+ backgroundColor: "$background"
75
+ },
76
+ pressStyle: {
77
+ borderColor: "$borderColor",
78
+ backgroundColor: "$background"
79
+ },
80
+ focusVisibleStyle: {
81
+ outlineWidth: 0
110
82
  }
111
83
  }
112
84
  },
113
- defaultVariants: {
114
- unstyled: process.env.HANZO_GUI_HEADLESS === "1"
85
+ size: {
86
+ "...size": (value, {
87
+ props
88
+ }) => {
89
+ const size = Math.floor((0, import_core.getVariableValue)((0, import_get_token.getSize)(value)) * (props["scaleSize"] ?? 0.5));
90
+ return {
91
+ width: size,
92
+ height: size
93
+ };
94
+ }
115
95
  }
116
- }),
117
- RADIO_GROUP_NAME = "RadioGroup",
118
- RadioGroupFrame = (0, import_gui_core.styled)(import_gui_stacks.YStack, {
119
- name: RADIO_GROUP_NAME,
120
- variants: {
121
- orientation: {
122
- horizontal: {
123
- flexDirection: "row",
124
- spaceDirection: "horizontal"
125
- },
126
- vertical: {
127
- flexDirection: "column",
128
- spaceDirection: "vertical"
129
- }
96
+ },
97
+ defaultVariants: {
98
+ unstyled: process.env.GUI_HEADLESS === "1"
99
+ }
100
+ });
101
+ const RADIO_GROUP_INDICATOR_NAME = "RadioGroupIndicator";
102
+ const RadioGroupIndicatorFrame = (0, import_core.styled)(import_stacks.YStack, {
103
+ name: RADIO_GROUP_INDICATOR_NAME,
104
+ variants: {
105
+ unstyled: {
106
+ false: {
107
+ width: "33%",
108
+ height: "33%",
109
+ borderRadius: 1e3,
110
+ backgroundColor: "$color",
111
+ pressTheme: true
112
+ }
113
+ }
114
+ },
115
+ defaultVariants: {
116
+ unstyled: process.env.GUI_HEADLESS === "1"
117
+ }
118
+ });
119
+ const RADIO_GROUP_NAME = "RadioGroup";
120
+ const RadioGroupFrame = (0, import_core.styled)(import_stacks.YStack, {
121
+ name: RADIO_GROUP_NAME,
122
+ variants: {
123
+ orientation: {
124
+ horizontal: {
125
+ flexDirection: "row",
126
+ spaceDirection: "horizontal"
127
+ },
128
+ vertical: {
129
+ flexDirection: "column",
130
+ spaceDirection: "vertical"
130
131
  }
131
132
  }
132
- });
133
+ }
134
+ });
@@ -5,20 +5,22 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
7
  var __export = (target, all) => {
8
- for (var name in all) __defProp(target, name, {
9
- get: all[name],
10
- enumerable: !0
11
- });
12
- },
13
- __copyProps = (to, from, except, desc) => {
14
- if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
8
+ for (var name in all) __defProp(target, name, {
9
+ get: all[name],
10
+ enumerable: true
11
+ });
12
+ };
13
+ var __copyProps = (to, from, except, desc) => {
14
+ if (from && typeof from === "object" || typeof from === "function") {
15
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
15
16
  get: () => from[key],
16
17
  enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
17
18
  });
18
- return to;
19
- };
19
+ }
20
+ return to;
21
+ };
20
22
  var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
21
- value: !0
23
+ value: true
22
24
  }), mod);
23
25
  var RadioGroup_exports = {};
24
26
  __export(RadioGroup_exports, {
@@ -27,111 +29,111 @@ __export(RadioGroup_exports, {
27
29
  RadioGroupItemFrame: () => RadioGroupItemFrame
28
30
  });
29
31
  module.exports = __toCommonJS(RadioGroup_exports);
30
- var import_gui_core = require("@hanzogui/core"),
31
- import_gui_get_token = require("@hanzogui/get-token"),
32
- import_gui_stacks = require("@hanzogui/stacks"),
33
- RADIO_GROUP_ITEM_NAME = "RadioGroupItem",
34
- RadioGroupItemFrame = (0, import_gui_core.styled)(import_gui_stacks.YStack, {
35
- name: RADIO_GROUP_ITEM_NAME,
36
- render: "button",
37
- variants: {
38
- unstyled: {
39
- false: {
40
- size: "$true",
41
- borderRadius: 1e3,
42
- backgroundColor: "$background",
43
- alignItems: "center",
44
- justifyContent: "center",
45
- borderWidth: 1,
46
- borderColor: "$borderColor",
47
- padding: 0,
48
- hoverStyle: {
49
- borderColor: "$borderColorHover",
50
- backgroundColor: "$backgroundHover"
51
- },
52
- focusStyle: {
53
- borderColor: "$borderColorHover",
54
- backgroundColor: "$backgroundHover"
55
- },
56
- focusVisibleStyle: {
57
- outlineStyle: "solid",
58
- outlineWidth: 2,
59
- outlineColor: "$outlineColor"
60
- },
61
- pressStyle: {
62
- borderColor: "$borderColorFocus",
63
- backgroundColor: "$backgroundFocus"
64
- }
65
- }
66
- },
67
- disabled: {
68
- true: {
69
- pointerEvents: "none",
70
- userSelect: "none",
71
- cursor: "not-allowed",
72
- hoverStyle: {
73
- borderColor: "$borderColor",
74
- backgroundColor: "$background"
75
- },
76
- pressStyle: {
77
- borderColor: "$borderColor",
78
- backgroundColor: "$background"
79
- },
80
- focusVisibleStyle: {
81
- outlineWidth: 0
82
- }
83
- }
84
- },
85
- size: {
86
- "...size": function (value, param) {
87
- var {
88
- props
89
- } = param,
90
- _props_scaleSize,
91
- size = Math.floor((0, import_gui_core.getVariableValue)((0, import_gui_get_token.getSize)(value)) * ((_props_scaleSize = props.scaleSize) !== null && _props_scaleSize !== void 0 ? _props_scaleSize : 0.5));
92
- return {
93
- width: size,
94
- height: size
95
- };
32
+ var import_core = require("@hanzogui/core");
33
+ var import_get_token = require("@hanzogui/get-token");
34
+ var import_stacks = require("@hanzogui/stacks");
35
+ var RADIO_GROUP_ITEM_NAME = "RadioGroupItem";
36
+ var RadioGroupItemFrame = (0, import_core.styled)(import_stacks.YStack, {
37
+ name: RADIO_GROUP_ITEM_NAME,
38
+ render: "button",
39
+ variants: {
40
+ unstyled: {
41
+ false: {
42
+ size: "$true",
43
+ borderRadius: 1e3,
44
+ backgroundColor: "$background",
45
+ alignItems: "center",
46
+ justifyContent: "center",
47
+ borderWidth: 1,
48
+ borderColor: "$borderColor",
49
+ padding: 0,
50
+ hoverStyle: {
51
+ borderColor: "$borderColorHover",
52
+ backgroundColor: "$backgroundHover"
53
+ },
54
+ focusStyle: {
55
+ borderColor: "$borderColorHover",
56
+ backgroundColor: "$backgroundHover"
57
+ },
58
+ focusVisibleStyle: {
59
+ outlineStyle: "solid",
60
+ outlineWidth: 2,
61
+ outlineColor: "$outlineColor"
62
+ },
63
+ pressStyle: {
64
+ borderColor: "$borderColorFocus",
65
+ backgroundColor: "$backgroundFocus"
96
66
  }
97
67
  }
98
68
  },
99
- defaultVariants: {
100
- unstyled: process.env.HANZO_GUI_HEADLESS === "1"
101
- }
102
- }),
103
- RADIO_GROUP_INDICATOR_NAME = "RadioGroupIndicator",
104
- RadioGroupIndicatorFrame = (0, import_gui_core.styled)(import_gui_stacks.YStack, {
105
- name: RADIO_GROUP_INDICATOR_NAME,
106
- variants: {
107
- unstyled: {
108
- false: {
109
- width: "33%",
110
- height: "33%",
111
- borderRadius: 1e3,
112
- backgroundColor: "$color",
113
- pressTheme: !0
69
+ disabled: {
70
+ true: {
71
+ pointerEvents: "none",
72
+ userSelect: "none",
73
+ cursor: "not-allowed",
74
+ hoverStyle: {
75
+ borderColor: "$borderColor",
76
+ backgroundColor: "$background"
77
+ },
78
+ pressStyle: {
79
+ borderColor: "$borderColor",
80
+ backgroundColor: "$background"
81
+ },
82
+ focusVisibleStyle: {
83
+ outlineWidth: 0
114
84
  }
115
85
  }
116
86
  },
117
- defaultVariants: {
118
- unstyled: process.env.HANZO_GUI_HEADLESS === "1"
87
+ size: {
88
+ "...size": function (value, param) {
89
+ var {
90
+ props
91
+ } = param;
92
+ var _props_scaleSize;
93
+ var size = Math.floor((0, import_core.getVariableValue)((0, import_get_token.getSize)(value)) * ((_props_scaleSize = props["scaleSize"]) !== null && _props_scaleSize !== void 0 ? _props_scaleSize : 0.5));
94
+ return {
95
+ width: size,
96
+ height: size
97
+ };
98
+ }
119
99
  }
120
- }),
121
- RADIO_GROUP_NAME = "RadioGroup",
122
- RadioGroupFrame = (0, import_gui_core.styled)(import_gui_stacks.YStack, {
123
- name: RADIO_GROUP_NAME,
124
- variants: {
125
- orientation: {
126
- horizontal: {
127
- flexDirection: "row",
128
- spaceDirection: "horizontal"
129
- },
130
- vertical: {
131
- flexDirection: "column",
132
- spaceDirection: "vertical"
133
- }
100
+ },
101
+ defaultVariants: {
102
+ unstyled: process.env.GUI_HEADLESS === "1"
103
+ }
104
+ });
105
+ var RADIO_GROUP_INDICATOR_NAME = "RadioGroupIndicator";
106
+ var RadioGroupIndicatorFrame = (0, import_core.styled)(import_stacks.YStack, {
107
+ name: RADIO_GROUP_INDICATOR_NAME,
108
+ variants: {
109
+ unstyled: {
110
+ false: {
111
+ width: "33%",
112
+ height: "33%",
113
+ borderRadius: 1e3,
114
+ backgroundColor: "$color",
115
+ pressTheme: true
134
116
  }
135
117
  }
136
- });
118
+ },
119
+ defaultVariants: {
120
+ unstyled: process.env.GUI_HEADLESS === "1"
121
+ }
122
+ });
123
+ var RADIO_GROUP_NAME = "RadioGroup";
124
+ var RadioGroupFrame = (0, import_core.styled)(import_stacks.YStack, {
125
+ name: RADIO_GROUP_NAME,
126
+ variants: {
127
+ orientation: {
128
+ horizontal: {
129
+ flexDirection: "row",
130
+ spaceDirection: "horizontal"
131
+ },
132
+ vertical: {
133
+ flexDirection: "column",
134
+ spaceDirection: "vertical"
135
+ }
136
+ }
137
+ }
138
+ });
137
139
  //# sourceMappingURL=RadioGroup.native.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","RadioGroup_exports","__export","RadioGroupFrame","RadioGroupIndicatorFrame","RadioGroupItemFrame","module","exports","import_gui_core","require","import_gui_get_token","import_gui_stacks","RADIO_GROUP_ITEM_NAME","styled","YStack","name","render","variants","unstyled","false","size","borderRadius","backgroundColor","alignItems","justifyContent","borderWidth","borderColor","padding","hoverStyle","focusStyle","focusVisibleStyle","outlineStyle","outlineWidth","outlineColor","pressStyle","disabled","true","pointerEvents","userSelect","cursor","...size","param","props","_props_scaleSize","Math","floor","getVariableValue","getSize","scaleSize","width","height","defaultVariants","process","env","HANZO_GUI_HEADLESS","RADIO_GROUP_INDICATOR_NAME","pressTheme","RADIO_GROUP_NAME","orientation","horizontal","flexDirection","spaceDirection","vertical"],"sources":["../../src/RadioGroup.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,kBAAA;AAAAC,QAAA,CAAAD,kBAAA;EAAAE,eAAA,EAAAA,CAAA,KAAAA,eAAA;EAAAC,wBAAA,EAAAA,CAAA,KAAAA,wBAAA;EAAAC,mBAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAX,YAAyC,CAAAK,kBAAA;AAIzC,IAAAO,eAAM,GAAAC,OAAA,CAAwB,kBAEjB;EAAAC,oBAAA,GAAAD,OAAsB,uBAAO;EAAAE,iBAAA,GAAQF,OAAA;EAAAG,qBAAA;EAAAP,mBAAA,OAAAG,eAAA,CAAAK,MAAA,EAAAF,iBAAA,CAAAG,MA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AA,EAAAkC,OAAA,CAAAC,GAAA,CAAAC,kBAAA;IAEA;EAAiB;EACfC,0BAAsB,wBAAuB;EAAAnD,wBAAA,OAAAI,eAAA,CAAAK,MAAA,EAAAF,iBAAA,CAAAG,MAAA;IAC/CC,IAAA,EAAAwC,0BAAA;IACDtC,QAEK;MAGJC,QAAM;QAENC,KAAA,EAAU;UACR8B,KAAA,EAAU;UACRC,MAAO;UACL7B,YAAO;UACPC,eAAQ;UACRkC,UAAA;QAAc;MACG;IACL;IACdL,eACF;MACFjC,QAAA,EAAAkC,OAAA,CAAAC,GAAA,CAAAC,kBAAA;IAEA;EAAiB;EACfG,gBAAU,GAAQ,YAAI;EAAAtD,eAAuB,OAAAK,eAAA,CAAAK,MAAA,EAAAF,iBAAA,CAAAG,MAAA;IAC/CC,IAAA,EAAA0C,gBAAA;IACDxC,QAEK;MAGJyC,WAAM;QAENC,UAAU;UACRC,aAAa;UACXC,cAAY;QAAA;QACKC,QACf;UACFF,aAAA;UACAC,cAAU;QAAA;MACO;IACC;EAClB","ignoreList":[]}
1
+ {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","RadioGroup_exports","__export","RadioGroupFrame","RadioGroupIndicatorFrame","RadioGroupItemFrame","module","exports","import_core","require","import_get_token","import_stacks","RADIO_GROUP_ITEM_NAME","styled","YStack","name","render","variants","unstyled","false","size","borderRadius","backgroundColor","alignItems","justifyContent","borderWidth","borderColor","padding","hoverStyle","focusStyle","focusVisibleStyle","outlineStyle","outlineWidth","outlineColor","pressStyle","disabled","true","pointerEvents","userSelect","cursor","...size","param","props","_props_scaleSize","Math","floor","getVariableValue","getSize","width","height","defaultVariants","process","env","GUI_HEADLESS","RADIO_GROUP_INDICATOR_NAME","pressTheme","RADIO_GROUP_NAME","orientation","horizontal","flexDirection","spaceDirection","vertical"],"sources":["../../src/RadioGroup.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAA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BC;QAAA,IAAAD,KAAA;QACF,IAAAE,gBAAA;QACA,IAAAvB,IAAO,GAAAwB,IAAA,CAAAC,KAAA,KAAArC,WAAA,CAAAsC,gBAAA,MAAApC,gBAAA,CAAAqC,OAAA,EAAA/C,KAAA,OAAA2C,gBAAA,GAAAD,KAAA,2BAAAC,gBAAA,cAAAA,gBAAA;QAAA,OACL;UACAK,KAAA,EAAA5B,IAAQ;UACV6B,MAAA,EAAA7B;QACF;MACF;IACF;EAEA;EAAiB8B,eACL;IACZhC,QAAA,EAAAiC,OAAA,CAAAC,GAAA,CAAAC,YAAA;EACD;AAED;AAEO,IAAAC,0BAAM,wBAA2B;AAAe,IACrDlD,wBAAM,OAAAI,WAAA,CAAAK,MAAA,EAAAF,aAAA,CAAAG,MAAA;EAENC,IAAA,EAAAuC,0BAAU;EAAArC,QACR;IAAUC,QACR,EAAO;MAAAC,KACL;QACA6B,KAAA,OAAQ;QACRC,MAAA;QACA5B,YAAA,KAAiB;QACjBC,eAAY;QACdiC,UAAA;MACF;IACF;EAEA;EAAiBL,eACL;IACZhC,QAAA,EAAAiC,OAAA,CAAAC,GAAA,CAAAC,YAAA;EACD;AAED;AAEO,IAAAG,gBAAM,eAAkB;AAAe,IAC5CrD,eAAM,OAAAK,WAAA,CAAAK,MAAA,EAAAF,aAAA,CAAAG,MAAA;EAENC,IAAA,EAAAyC,gBAAU;EAAAvC,QACR;IAAawC,WACX;MAAYC,UACV;QACAC,aAAA,OAAgB;QAClBC,cAAA;MACA;MAAUC,QACR;QACAF,aAAA,UAAgB;QAClBC,cAAA;MACF;IACF;EACD","ignoreList":[]}
@@ -3,28 +3,30 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
4
4
  var __hasOwnProp = Object.prototype.hasOwnProperty;
5
5
  var __export = (target, all) => {
6
- for (var name in all) __defProp(target, name, {
7
- get: all[name],
8
- enumerable: !0
9
- });
10
- },
11
- __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
6
+ for (var name in all) __defProp(target, name, {
7
+ get: all[name],
8
+ enumerable: true
9
+ });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
13
14
  get: () => from[key],
14
15
  enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
15
16
  });
16
- return to;
17
- };
17
+ }
18
+ return to;
19
+ };
18
20
  var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
19
- value: !0
21
+ value: true
20
22
  }), mod);
21
23
  var RadioGroupStyledContext_exports = {};
22
24
  __export(RadioGroupStyledContext_exports, {
23
25
  RadioGroupStyledContext: () => RadioGroupStyledContext
24
26
  });
25
27
  module.exports = __toCommonJS(RadioGroupStyledContext_exports);
26
- var import_gui_core = require("@hanzogui/core");
27
- const RadioGroupStyledContext = (0, import_gui_core.createStyledContext)({
28
+ var import_core = require("@hanzogui/core");
29
+ const RadioGroupStyledContext = (0, import_core.createStyledContext)({
28
30
  size: "$true",
29
31
  scaleIcon: 1
30
32
  }, "RadioGroup");