@hanzogui/radio-group 7.0.0 → 7.3.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/LICENSE +40 -19
- package/dist/cjs/RadioGroup.cjs +134 -0
- package/dist/cjs/RadioGroup.native.js +139 -0
- package/dist/cjs/RadioGroup.native.js.map +1 -0
- package/dist/cjs/RadioGroupStyledContext.cjs +32 -0
- package/dist/cjs/RadioGroupStyledContext.native.js +35 -0
- package/dist/cjs/RadioGroupStyledContext.native.js.map +1 -0
- package/dist/cjs/createRadioGroup.cjs +175 -0
- package/dist/cjs/createRadioGroup.native.js +178 -0
- package/dist/cjs/createRadioGroup.native.js.map +1 -0
- package/dist/cjs/index.cjs +38 -0
- package/dist/cjs/index.native.js +41 -0
- package/dist/cjs/index.native.js.map +1 -0
- package/dist/esm/RadioGroup.mjs +107 -0
- package/dist/esm/RadioGroup.mjs.map +1 -0
- package/dist/esm/RadioGroup.native.js +109 -0
- package/dist/esm/RadioGroup.native.js.map +1 -0
- package/dist/esm/RadioGroupStyledContext.mjs +7 -0
- package/dist/esm/RadioGroupStyledContext.mjs.map +1 -0
- package/dist/esm/RadioGroupStyledContext.native.js +7 -0
- package/dist/esm/RadioGroupStyledContext.native.js.map +1 -0
- package/dist/esm/createRadioGroup.mjs +139 -0
- package/dist/esm/createRadioGroup.mjs.map +1 -0
- package/dist/esm/createRadioGroup.native.js +139 -0
- package/dist/esm/createRadioGroup.native.js.map +1 -0
- package/dist/esm/index.js +12 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/index.mjs +12 -0
- package/dist/esm/index.mjs.map +1 -0
- package/dist/esm/index.native.js +12 -0
- package/dist/esm/index.native.js.map +1 -0
- package/dist/jsx/RadioGroup.mjs +107 -0
- package/dist/jsx/RadioGroup.mjs.map +1 -0
- package/dist/jsx/RadioGroup.native.js +139 -0
- package/dist/jsx/RadioGroup.native.js.map +1 -0
- package/dist/jsx/RadioGroupStyledContext.mjs +7 -0
- package/dist/jsx/RadioGroupStyledContext.mjs.map +1 -0
- package/dist/jsx/RadioGroupStyledContext.native.js +35 -0
- package/dist/jsx/RadioGroupStyledContext.native.js.map +1 -0
- package/dist/jsx/createRadioGroup.mjs +139 -0
- package/dist/jsx/createRadioGroup.mjs.map +1 -0
- package/dist/jsx/createRadioGroup.native.js +178 -0
- package/dist/jsx/createRadioGroup.native.js.map +1 -0
- package/dist/jsx/index.js +12 -0
- package/dist/jsx/index.js.map +1 -0
- package/dist/jsx/index.mjs +12 -0
- package/dist/jsx/index.mjs.map +1 -0
- package/dist/jsx/index.native.js +41 -0
- package/dist/jsx/index.native.js.map +1 -0
- package/package.json +23 -21
- package/src/RadioGroup.tsx +2 -2
- package/types/RadioGroup.d.ts +3 -3
- package/types/RadioGroup.d.ts.map +1 -0
- package/types/RadioGroupStyledContext.d.ts.map +1 -0
- package/types/createRadioGroup.d.ts +17 -17
- package/types/createRadioGroup.d.ts.map +1 -0
- package/types/index.d.ts +17 -17
- package/types/index.d.ts.map +1 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["isWeb","withStaticProperties","useRadioGroup","useRadioGroupItem","useRadioGroupItemIndicator","RovingFocusGroup","React","RadioGroupFrame","RadioGroupIndicatorFrame","RadioGroupItemFrame","Fragment","jsx","jsxs","ensureContext","x","context","RadioGroupContext","createContext","RadioGroupItemContext","checked","disabled","createRadioGroup","createProps","disableActiveTheme","Frame","Indicator","Item","RadioGroupImp","styleable","props","ref","value","defaultValue","onValueChange","required","name","native","accentColor","orientation","rest","providerValue","frameAttrs","rovingFocusGroupAttrs","Provider","children","RadioGroupItemImp","labelledBy","onPress","onKeyDown","id","bubbleInput","isFormControl","radioGroupContext","displayName","RadioIndicator","forwardedRef","forceMount","indicatorProps","useIndicatorRest","radioGroupItemContext","RadioGroup"],"sources":["../../src/createRadioGroup.tsx"],"sourcesContent":[null],"mappings":"AACA,SAASA,KAAA,EAAOC,oBAAA,QAA4B;AAK5C,SAC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AA4B0B,YAAA,KAAiB;IAC5C,MAAM;MAAEC,UAAA;MAAYpC,QAAA;MAAU,GAAGqC;IAAe,IAAI5B,KAAA;IACpD,MAAM;MAAEV,OAAA;MAAS,GAAGuC;IAAiB,IAAItD,0BAAA,CAA2B;MAClEuD,qBAAA,EAAuBzC,qBAAA;MACvBE;IACF,CAAC;IAED,IAAIoC,UAAA,IAAcrC,OAAA,EAAS;MACzB,OAAO,eAAAR,GAAA,CAACc,SAAA;QAAW,GAAGiC,gBAAA;QAAkB5B,GAAA,EAAKyB,YAAA;QAAe,GAAGE;MAAA,CAAgB;IACjF;IAEA,OAAO;EACT,CACF;EAEAH,cAAA,CAAeD,WAAA,GAAc;EAE7B,MAAMO,UAAA,GAAa3D,oBAAA,CAAqB0B,aAAA,EAAe;IACrDD,IAAA,EAAMmB,iBAAA;IACNpB,SAAA,EAAW6B;EACb,CAAC;EACDM,UAAA,CAAWP,WAAA,GAAc;EAEzB,OAAOO,UAAA;AACT","ignoreList":[]}
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var __create = Object.create;
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
8
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
+
var __export = (target, all) => {
|
|
10
|
+
for (var name in all) __defProp(target, name, {
|
|
11
|
+
get: all[name],
|
|
12
|
+
enumerable: true
|
|
13
|
+
});
|
|
14
|
+
};
|
|
15
|
+
var __copyProps = (to, from, except, desc) => {
|
|
16
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
17
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
18
|
+
get: () => from[key],
|
|
19
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
return to;
|
|
23
|
+
};
|
|
24
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
25
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
26
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
27
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
28
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
29
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
30
|
+
value: mod,
|
|
31
|
+
enumerable: true
|
|
32
|
+
}) : target, mod));
|
|
33
|
+
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
34
|
+
value: true
|
|
35
|
+
}), mod);
|
|
36
|
+
var createRadioGroup_exports = {};
|
|
37
|
+
__export(createRadioGroup_exports, {
|
|
38
|
+
createRadioGroup: () => createRadioGroup
|
|
39
|
+
});
|
|
40
|
+
module.exports = __toCommonJS(createRadioGroup_exports);
|
|
41
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
42
|
+
var import_core = require("@hanzogui/core");
|
|
43
|
+
var import_radio_headless = require("@hanzogui/radio-headless");
|
|
44
|
+
var import_roving_focus = require("@hanzogui/roving-focus");
|
|
45
|
+
var import_react = __toESM(require("react"), 1);
|
|
46
|
+
var import_RadioGroup = require("./RadioGroup.native.js");
|
|
47
|
+
var ensureContext = function (x) {
|
|
48
|
+
if (!x.context) {
|
|
49
|
+
x.context = RadioGroupContext;
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
var RadioGroupContext = /* @__PURE__ */import_react.default.createContext({});
|
|
53
|
+
var RadioGroupItemContext = /* @__PURE__ */import_react.default.createContext({
|
|
54
|
+
checked: false,
|
|
55
|
+
disabled: false
|
|
56
|
+
});
|
|
57
|
+
function createRadioGroup(createProps) {
|
|
58
|
+
var {
|
|
59
|
+
disableActiveTheme,
|
|
60
|
+
Frame = import_RadioGroup.RadioGroupFrame,
|
|
61
|
+
Indicator = import_RadioGroup.RadioGroupIndicatorFrame,
|
|
62
|
+
Item = import_RadioGroup.RadioGroupItemFrame
|
|
63
|
+
} = createProps;
|
|
64
|
+
ensureContext(Frame);
|
|
65
|
+
ensureContext(Indicator);
|
|
66
|
+
ensureContext(Item);
|
|
67
|
+
var RadioGroupImp = Frame.styleable(function (props, ref) {
|
|
68
|
+
var {
|
|
69
|
+
value,
|
|
70
|
+
defaultValue,
|
|
71
|
+
onValueChange,
|
|
72
|
+
required = false,
|
|
73
|
+
disabled = false,
|
|
74
|
+
name,
|
|
75
|
+
native,
|
|
76
|
+
accentColor,
|
|
77
|
+
orientation = "vertical",
|
|
78
|
+
...rest
|
|
79
|
+
} = props;
|
|
80
|
+
var {
|
|
81
|
+
providerValue,
|
|
82
|
+
frameAttrs,
|
|
83
|
+
rovingFocusGroupAttrs
|
|
84
|
+
} = (0, import_radio_headless.useRadioGroup)({
|
|
85
|
+
orientation,
|
|
86
|
+
name,
|
|
87
|
+
defaultValue,
|
|
88
|
+
value,
|
|
89
|
+
onValueChange,
|
|
90
|
+
required,
|
|
91
|
+
disabled,
|
|
92
|
+
native,
|
|
93
|
+
accentColor
|
|
94
|
+
});
|
|
95
|
+
return /* @__PURE__ */(0, import_jsx_runtime.jsx)(RadioGroupContext.Provider, {
|
|
96
|
+
value: providerValue,
|
|
97
|
+
children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_roving_focus.RovingFocusGroup, {
|
|
98
|
+
...rovingFocusGroupAttrs,
|
|
99
|
+
children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_RadioGroup.RadioGroupFrame, {
|
|
100
|
+
...frameAttrs,
|
|
101
|
+
ref,
|
|
102
|
+
...rest
|
|
103
|
+
})
|
|
104
|
+
})
|
|
105
|
+
});
|
|
106
|
+
});
|
|
107
|
+
var RadioGroupItemImp = Item.styleable(function (props, ref) {
|
|
108
|
+
var {
|
|
109
|
+
value,
|
|
110
|
+
labelledBy,
|
|
111
|
+
onPress,
|
|
112
|
+
onKeyDown,
|
|
113
|
+
disabled,
|
|
114
|
+
id,
|
|
115
|
+
...rest
|
|
116
|
+
} = props;
|
|
117
|
+
var {
|
|
118
|
+
providerValue,
|
|
119
|
+
bubbleInput,
|
|
120
|
+
rovingFocusGroupAttrs,
|
|
121
|
+
frameAttrs,
|
|
122
|
+
isFormControl,
|
|
123
|
+
native
|
|
124
|
+
} = (0, import_radio_headless.useRadioGroupItem)({
|
|
125
|
+
radioGroupContext: RadioGroupContext,
|
|
126
|
+
value,
|
|
127
|
+
id,
|
|
128
|
+
labelledBy,
|
|
129
|
+
disabled,
|
|
130
|
+
onPress,
|
|
131
|
+
onKeyDown
|
|
132
|
+
});
|
|
133
|
+
return /* @__PURE__ */(0, import_jsx_runtime.jsx)(RadioGroupItemContext.Provider, {
|
|
134
|
+
value: providerValue,
|
|
135
|
+
children: import_core.isWeb && native ? bubbleInput : /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
136
|
+
children: [/* @__PURE__ */(0, import_jsx_runtime.jsx)(import_roving_focus.RovingFocusGroup.Item, {
|
|
137
|
+
...rovingFocusGroupAttrs,
|
|
138
|
+
children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_RadioGroup.RadioGroupItemFrame, {
|
|
139
|
+
...frameAttrs,
|
|
140
|
+
ref,
|
|
141
|
+
...rest
|
|
142
|
+
})
|
|
143
|
+
}), isFormControl && bubbleInput]
|
|
144
|
+
})
|
|
145
|
+
});
|
|
146
|
+
});
|
|
147
|
+
RadioGroupItemImp.displayName = "RadioGroupItem";
|
|
148
|
+
var RadioIndicator = Indicator.styleable(function (props, forwardedRef) {
|
|
149
|
+
var {
|
|
150
|
+
forceMount,
|
|
151
|
+
disabled,
|
|
152
|
+
...indicatorProps
|
|
153
|
+
} = props;
|
|
154
|
+
var {
|
|
155
|
+
checked,
|
|
156
|
+
...useIndicatorRest
|
|
157
|
+
} = (0, import_radio_headless.useRadioGroupItemIndicator)({
|
|
158
|
+
radioGroupItemContext: RadioGroupItemContext,
|
|
159
|
+
disabled
|
|
160
|
+
});
|
|
161
|
+
if (forceMount || checked) {
|
|
162
|
+
return /* @__PURE__ */(0, import_jsx_runtime.jsx)(Indicator, {
|
|
163
|
+
...useIndicatorRest,
|
|
164
|
+
ref: forwardedRef,
|
|
165
|
+
...indicatorProps
|
|
166
|
+
});
|
|
167
|
+
}
|
|
168
|
+
return null;
|
|
169
|
+
});
|
|
170
|
+
RadioIndicator.displayName = "RadioIndicator";
|
|
171
|
+
var RadioGroup = (0, import_core.withStaticProperties)(RadioGroupImp, {
|
|
172
|
+
Item: RadioGroupItemImp,
|
|
173
|
+
Indicator: RadioIndicator
|
|
174
|
+
});
|
|
175
|
+
RadioGroup.displayName = "RadioGroup";
|
|
176
|
+
return RadioGroup;
|
|
177
|
+
}
|
|
178
|
+
//# sourceMappingURL=createRadioGroup.native.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["__create","Object","create","__defProp","defineProperty","__getOwnPropDesc","getOwnPropertyDescriptor","__getOwnPropNames","getOwnPropertyNames","__getProtoOf","getPrototypeOf","__hasOwnProp","prototype","hasOwnProperty","__export","target","all","name","get","enumerable","__copyProps","to","from","except","desc","key","call","__toESM","mod","isNodeMode","__esModule","value","__toCommonJS","createRadioGroup_exports","createRadioGroup","module","exports","import_jsx_runtime","require","import_core","import_radio_headless","import_roving_focus","import_react","import_RadioGroup","ensureContext","x","context","RadioGroupContext","default","createContext","RadioGroupItemContext","checked","disabled","createProps","disableActiveTheme","Frame","RadioGroupFrame","Indicator","RadioGroupIndicatorFrame","Item","RadioGroupItemFrame","RadioGroupImp","styleable","props","ref","defaultValue","onValueChange","required","native","accentColor","orientation","rest","providerValue","frameAttrs","rovingFocusGroupAttrs","useRadioGroup","jsx","Provider","children","RovingFocusGroup","RadioGroupItemImp","labelledBy","onPress","onKeyDown","id","bubbleInput","isFormControl","useRadioGroupItem","radioGroupContext","isWeb","jsxs","Fragment"],"sources":["../../src/createRadioGroup.tsx"],"sourcesContent":[null],"mappings":"AACA,YAAS;;AAKT,IAAAA,QAAA,GAAAC,MAAA,CAAAC,MAAA;AAAA,IACEC,SAAA,GAAAF,MAAA,CAAAG,cAAA;AAAA,IACAC,gBAAA,GAAAJ,MAAA,CAAAK,wBAAA;AAAA,IACAC,iBAAA,GAAAN,MAAA,CAAAO,mBAAA;AAAA,IAAAC,YACK,GAAAR,MAAA,CAAAS,cAAA;AACP,IAAAC,YAAS,GAAAV,MAAA,CAAAW,SAAwB,CAAAC,cAAA;AACjC,IAAAC,QAAO,GAAAA,CAAAC,MAAW,EAAAC,GAAA;EAClB,SAAAC,IAAA,IAAAD,GAAA,EACEb,SAAA,CAAAY,MAAA,EAAAE,IAAA;IAAAC,GAAA,EAAAF,GAAA,CAAAC,IAAA;IAAAE,UAAA;EAAA;AAAA;AACA,IACAC,WAAA,GAAAA,CAAAC,EAAA,EAAAC,IAAA,EAAAC,MAAA,EAAAC,IAAA;EAAA,IAAAF,IACK,WAAAA,IAAA,wBAAAA,IAAA;IAwGG,KA+BA,IAAAG,GAAA,IA/BAlB,iBAAA,CAAAe,IAAA,GAtGJ,KAAAX,YAAiB,CAAAe,IAAA,CAAWL,EAAA,EAAAI,GAAA,KAAAA,GAAA,KAAAF,MAAA,EAC3BpB,SAAE,CAASkB,EAAA,EAAAI,GAAA;MAAAP,GAAA,EAAAA,CAAA,KAAAI,IAAA,CAAAG,GAAA;MAAAN,UAAA,IAAAK,IAAA,GAAAnB,gBAAA,CAAAiB,IAAA,EAAAG,GAAA,MAAAD,IAAA,CAAAL;IAAA;EACd;EACF,OAAAE,EAAA;AACF;AAOA,IAAAM,OAAM,GAAAA,CAAAC,GAAA,EAAAC,UAAoB,EAAMd,MAAA,MAAAA,MAAwC,GAAAa,GAAA,WAAA5B,QAAA,CAAAS,YAAA,CAAA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ACD,mBAAA9C,kBAAA,CAAAuC,GAAA,EAAA1B,qBAAA,CAAA2B,QAAA;MAED9C,KAAI,EAAAyC,aAAc;MAChBM,QAAA,EAAOvC,WAAA,CAAAkD,KAAA,IAACrB,MAAA,GAAAiB,WAAc,kBAAuB,IAAAhD,kBAAkB,CAAAqD,IAAA,EAAArD,kBAAgB,CAAAsD,QAAA;QACjFb,QAAA,GAEA,eAAO,IAAAzC,kBAAA,CAAAuC,GAAA,EAAAnC,mBAAA,CAAAsC,gBAAA,CAAApB,IAAA;UACT,GAAAe,qBAAA;UACFI,QAAA,qBAAAzC,kBAAA,CAAAuC,GAAA,EAAAjC,iBAAA,CAAAiB,mBAAA;YAEA,GAAea,UAAA;YAETT,GAAA;YACE,GAAAO;UACN;QACD,IACDe,aAAW,IAAcD,WAAA;MAG3B","ignoreList":[]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { RadioGroupFrame, RadioGroupIndicatorFrame, RadioGroupItemFrame } from "./RadioGroup.mjs";
|
|
2
|
+
import { createRadioGroup } from "./createRadioGroup.mjs";
|
|
3
|
+
export * from "./createRadioGroup.mjs";
|
|
4
|
+
export * from "./RadioGroup.mjs";
|
|
5
|
+
export * from "./RadioGroupStyledContext.mjs";
|
|
6
|
+
const RadioGroup = createRadioGroup({
|
|
7
|
+
Frame: RadioGroupFrame,
|
|
8
|
+
Indicator: RadioGroupIndicatorFrame,
|
|
9
|
+
Item: RadioGroupItemFrame
|
|
10
|
+
});
|
|
11
|
+
export { RadioGroup };
|
|
12
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["RadioGroupFrame","RadioGroupIndicatorFrame","RadioGroupItemFrame","createRadioGroup","RadioGroup","Frame","Indicator","Item"],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":"AAAA,SACEA,eAAA,EACAC,wBAAA,EACAC,mBAAA,QACK;AACP,SAASC,gBAAA,QAAwB;AAEjC,cAAc;AACd,cAAc;AACd,cAAc;AAEP,MAAMC,UAAA,GAAaD,gBAAA,CAAiB;EACzCE,KAAA,EAAOL,eAAA;EACPM,SAAA,EAAWL,wBAAA;EACXM,IAAA,EAAML;AACR,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { RadioGroupFrame, RadioGroupIndicatorFrame, RadioGroupItemFrame } from "./RadioGroup.mjs";
|
|
2
|
+
import { createRadioGroup } from "./createRadioGroup.mjs";
|
|
3
|
+
export * from "./createRadioGroup.mjs";
|
|
4
|
+
export * from "./RadioGroup.mjs";
|
|
5
|
+
export * from "./RadioGroupStyledContext.mjs";
|
|
6
|
+
const RadioGroup = createRadioGroup({
|
|
7
|
+
Frame: RadioGroupFrame,
|
|
8
|
+
Indicator: RadioGroupIndicatorFrame,
|
|
9
|
+
Item: RadioGroupItemFrame
|
|
10
|
+
});
|
|
11
|
+
export { RadioGroup };
|
|
12
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["RadioGroupFrame","RadioGroupIndicatorFrame","RadioGroupItemFrame","createRadioGroup","RadioGroup","Frame","Indicator","Item"],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":"AAAA,SACEA,eAAA,EACAC,wBAAA,EACAC,mBAAA,QACK;AACP,SAASC,gBAAA,QAAwB;AAEjC,cAAc;AACd,cAAc;AACd,cAAc;AAEP,MAAMC,UAAA,GAAaD,gBAAA,CAAiB;EACzCE,KAAA,EAAOL,eAAA;EACPM,SAAA,EAAWL,wBAAA;EACXM,IAAA,EAAML;AACR,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
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, {
|
|
16
|
+
get: () => from[key],
|
|
17
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
return to;
|
|
21
|
+
};
|
|
22
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
23
|
+
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
24
|
+
value: true
|
|
25
|
+
}), mod);
|
|
26
|
+
var index_exports = {};
|
|
27
|
+
__export(index_exports, {
|
|
28
|
+
RadioGroup: () => RadioGroup
|
|
29
|
+
});
|
|
30
|
+
module.exports = __toCommonJS(index_exports);
|
|
31
|
+
var import_RadioGroup = require("./RadioGroup.native.js");
|
|
32
|
+
var import_createRadioGroup = require("./createRadioGroup.native.js");
|
|
33
|
+
__reExport(index_exports, require("./createRadioGroup.native.js"), module.exports);
|
|
34
|
+
__reExport(index_exports, require("./RadioGroup.native.js"), module.exports);
|
|
35
|
+
__reExport(index_exports, require("./RadioGroupStyledContext.native.js"), module.exports);
|
|
36
|
+
var RadioGroup = (0, import_createRadioGroup.createRadioGroup)({
|
|
37
|
+
Frame: import_RadioGroup.RadioGroupFrame,
|
|
38
|
+
Indicator: import_RadioGroup.RadioGroupIndicatorFrame,
|
|
39
|
+
Item: import_RadioGroup.RadioGroupItemFrame
|
|
40
|
+
});
|
|
41
|
+
//# sourceMappingURL=index.native.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["__defProp","Object","defineProperty","__getOwnPropDesc","getOwnPropertyDescriptor","__getOwnPropNames","getOwnPropertyNames","__hasOwnProp","prototype","hasOwnProperty","__export","target","all","name","get","enumerable","__copyProps","to","from","except","desc","key","call"],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":"AAAA;;AAAA,IACEA,SAAA,GAAAC,MAAA,CAAAC,cAAA;AAAA,IACAC,gBAAA,GAAAF,MAAA,CAAAG,wBAAA;AAAA,IACAC,iBAAA,GAAAJ,MAAA,CAAAK,mBAAA;AAAA,IAAAC,YACK,GAAAN,MAAA,CAAAO,SAAA,CAAAC,cAAA;AACP,IAAAC,QAAS,GAAAA,CAAAC,MAAA,EAAAC,GAAA;EAET,SAAAC,IAAc,IAAAD,GAAA,EACdZ,SAAA,CAAcW,MAAA,EAAAE,IAAA;IAAAC,GAAA,EAAAF,GAAA,CAAAC,IAAA;IAAAE,UAAA;EAAA;AACd;AAEO,IAAAC,WAAM,GAAAA,CAAaC,EAAA,EAAAC,IAAA,EAAAC,MAAA,EAAiBC,IAAA;EACzC,IAAAF,IAAO,WAAAA,IAAA,wBAAAA,IAAA;IACP,SAAWG,GAAA,IAAAhB,iBAAA,CAAAa,IAAA,GACX,IAAM,CAAAX,YAAA,CAAAe,IAAA,CAAAL,EAAA,EAAAI,GAAA,KAAAA,GAAA,KAAAF,MAAA,EACPnB,SAAA,CAAAiB,EAAA,EAAAI,GAAA;MAAAP,GAAA,EAAAA,CAAA,KAAAI,IAAA,CAAAG,GAAA;MAAAN,UAAA,IAAAK,IAAA,GAAAjB,gBAAA,CAAAe,IAAA,EAAAG,GAAA,MAAAD,IAAA,CAAAL;IAAA","ignoreList":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hanzogui/radio-group",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.3.1",
|
|
4
4
|
"source": "src/index.ts",
|
|
5
5
|
"files": [
|
|
6
6
|
"src",
|
|
@@ -30,33 +30,35 @@
|
|
|
30
30
|
"access": "public"
|
|
31
31
|
},
|
|
32
32
|
"scripts": {
|
|
33
|
-
"build": "
|
|
34
|
-
"watch": "
|
|
35
|
-
"clean": "
|
|
36
|
-
"clean:build": "
|
|
33
|
+
"build": "gui-build",
|
|
34
|
+
"watch": "gui-build --watch",
|
|
35
|
+
"clean": "gui-build clean",
|
|
36
|
+
"clean:build": "gui-build clean:build"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@hanzogui/compose-refs": "
|
|
40
|
-
"@hanzogui/constants": "
|
|
41
|
-
"@hanzogui/core": "
|
|
42
|
-
"@hanzogui/create-context": "
|
|
43
|
-
"@hanzogui/focusable": "
|
|
44
|
-
"@hanzogui/get-token": "
|
|
45
|
-
"@hanzogui/helpers": "
|
|
46
|
-
"@hanzogui/label": "
|
|
47
|
-
"@hanzogui/radio-headless": "
|
|
48
|
-
"@hanzogui/roving-focus": "
|
|
49
|
-
"@hanzogui/stacks": "
|
|
50
|
-
"@hanzogui/use-controllable-state": "
|
|
51
|
-
"@hanzogui/use-previous": "
|
|
39
|
+
"@hanzogui/compose-refs": "7.3.1",
|
|
40
|
+
"@hanzogui/constants": "7.3.1",
|
|
41
|
+
"@hanzogui/core": "7.3.1",
|
|
42
|
+
"@hanzogui/create-context": "7.3.1",
|
|
43
|
+
"@hanzogui/focusable": "7.3.1",
|
|
44
|
+
"@hanzogui/get-token": "7.3.1",
|
|
45
|
+
"@hanzogui/helpers": "7.3.1",
|
|
46
|
+
"@hanzogui/label": "7.3.1",
|
|
47
|
+
"@hanzogui/radio-headless": "7.3.1",
|
|
48
|
+
"@hanzogui/roving-focus": "7.3.1",
|
|
49
|
+
"@hanzogui/stacks": "7.3.1",
|
|
50
|
+
"@hanzogui/use-controllable-state": "7.3.1",
|
|
51
|
+
"@hanzogui/use-previous": "7.3.1"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
|
-
"@hanzogui/build": "
|
|
54
|
+
"@hanzogui/build": "7.3.1",
|
|
55
55
|
"react": ">=19"
|
|
56
56
|
},
|
|
57
57
|
"peerDependencies": {
|
|
58
58
|
"react": ">=19"
|
|
59
59
|
},
|
|
60
60
|
"module:jsx": "dist/jsx",
|
|
61
|
-
"removeSideEffects": true
|
|
62
|
-
|
|
61
|
+
"removeSideEffects": true,
|
|
62
|
+
"license": "BSD-3-Clause",
|
|
63
|
+
"author": "Hanzo AI <dev@hanzo.ai>"
|
|
64
|
+
}
|
package/src/RadioGroup.tsx
CHANGED
|
@@ -79,7 +79,7 @@ export const RadioGroupItemFrame = styled(YStack, {
|
|
|
79
79
|
} as const,
|
|
80
80
|
|
|
81
81
|
defaultVariants: {
|
|
82
|
-
unstyled: process.env.
|
|
82
|
+
unstyled: process.env.GUI_HEADLESS === '1',
|
|
83
83
|
},
|
|
84
84
|
})
|
|
85
85
|
|
|
@@ -101,7 +101,7 @@ export const RadioGroupIndicatorFrame = styled(YStack, {
|
|
|
101
101
|
} as const,
|
|
102
102
|
|
|
103
103
|
defaultVariants: {
|
|
104
|
-
unstyled: process.env.
|
|
104
|
+
unstyled: process.env.GUI_HEADLESS === '1',
|
|
105
105
|
},
|
|
106
106
|
})
|
|
107
107
|
|
package/types/RadioGroup.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
export declare const RadioGroupItemFrame: import("@hanzogui/core").
|
|
1
|
+
export declare const RadioGroupItemFrame: import("@hanzogui/core").GuiComponent<import("@hanzogui/core").TamaDefer, import("@hanzogui/core").GuiElement, import("@hanzogui/core").RNViewNonStyleProps, import("@hanzogui/core").StackStyleBase, {
|
|
2
2
|
disabled?: boolean | undefined;
|
|
3
3
|
unstyled?: boolean | undefined;
|
|
4
4
|
elevation?: number | import("@hanzogui/core").SizeTokens | undefined;
|
|
5
5
|
fullscreen?: boolean | undefined;
|
|
6
6
|
size?: import("@hanzogui/core").SizeTokens | undefined;
|
|
7
7
|
}, import("@hanzogui/core").StaticConfigPublic>;
|
|
8
|
-
export declare const RadioGroupIndicatorFrame: import("@hanzogui/core").
|
|
8
|
+
export declare const RadioGroupIndicatorFrame: import("@hanzogui/core").GuiComponent<import("@hanzogui/core").TamaDefer, import("@hanzogui/core").GuiElement, import("@hanzogui/core").RNViewNonStyleProps, import("@hanzogui/core").StackStyleBase, {
|
|
9
9
|
unstyled?: boolean | undefined;
|
|
10
10
|
elevation?: number | import("@hanzogui/core").SizeTokens | undefined;
|
|
11
11
|
fullscreen?: boolean | undefined;
|
|
12
12
|
}, import("@hanzogui/core").StaticConfigPublic>;
|
|
13
|
-
export declare const RadioGroupFrame: import("@hanzogui/core").
|
|
13
|
+
export declare const RadioGroupFrame: import("@hanzogui/core").GuiComponent<import("@hanzogui/core").TamaDefer, import("@hanzogui/core").GuiElement, import("@hanzogui/core").RNViewNonStyleProps, import("@hanzogui/core").StackStyleBase, {
|
|
14
14
|
elevation?: number | import("@hanzogui/core").SizeTokens | undefined;
|
|
15
15
|
fullscreen?: boolean | undefined;
|
|
16
16
|
orientation?: "horizontal" | "vertical" | undefined;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RadioGroup.d.ts","sourceRoot":"","sources":["../src/RadioGroup.tsx"],"names":[],"mappings":"AAMA,eAAO,MAAM,mBAAmB;;;;;;+CA6E9B,CAAA;AAIF,eAAO,MAAM,wBAAwB;;;;+CAkBnC,CAAA;AAIF,eAAO,MAAM,eAAe;;;;+CAe1B,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RadioGroupStyledContext.d.ts","sourceRoot":"","sources":["../src/RadioGroupStyledContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAGhD,eAAO,MAAM,uBAAuB;UAEf,UAAU;;EAI9B,CAAA"}
|
|
@@ -29,15 +29,15 @@ export declare function createRadioGroup<F extends RadioGroupComponent, D extend
|
|
|
29
29
|
Frame?: F;
|
|
30
30
|
Indicator?: D;
|
|
31
31
|
Item?: I;
|
|
32
|
-
}): React.ForwardRefExoticComponent<Omit<import("@hanzogui/core").GetFinalProps<import("@hanzogui/core").
|
|
32
|
+
}): React.ForwardRefExoticComponent<Omit<import("@hanzogui/core").GetFinalProps<import("@hanzogui/core").RNViewNonStyleProps, import("@hanzogui/core").StackStyleBase, {
|
|
33
33
|
elevation?: number | import("@hanzogui/core").SizeTokens | undefined;
|
|
34
34
|
fullscreen?: boolean | undefined;
|
|
35
35
|
orientation?: "horizontal" | "vertical" | undefined;
|
|
36
|
-
}>, "native" | `$${string}` | `$${number}` | import("@hanzogui/core").GroupMediaKeys | `$theme-${string}` | `$theme-${number}` | "name" | keyof import("@hanzogui/core").
|
|
36
|
+
}>, "native" | `$${string}` | `$${number}` | import("@hanzogui/core").GroupMediaKeys | `$theme-${string}` | `$theme-${number}` | "name" | keyof import("@hanzogui/core").RNViewNonStyleProps | "elevation" | keyof import("@hanzogui/core").StackStyleBase | "fullscreen" | "value" | "orientation" | keyof import("@hanzogui/core").WithPseudoProps<import("@hanzogui/core").WithThemeValues<import("@hanzogui/core").StackStyleBase> & {
|
|
37
37
|
elevation?: number | import("@hanzogui/core").SizeTokens | undefined;
|
|
38
38
|
fullscreen?: boolean | undefined;
|
|
39
39
|
orientation?: "horizontal" | "vertical" | undefined;
|
|
40
|
-
} & import("@hanzogui/core").WithShorthands<import("@hanzogui/core").WithThemeValues<import("@hanzogui/core").StackStyleBase>>> | "defaultValue" | "onValueChange" | "required" | "accentColor"> & Omit<import("@hanzogui/core").
|
|
40
|
+
} & import("@hanzogui/core").WithShorthands<import("@hanzogui/core").WithThemeValues<import("@hanzogui/core").StackStyleBase>>> | "defaultValue" | "onValueChange" | "required" | "accentColor"> & Omit<import("@hanzogui/core").RNViewNonStyleProps, "elevation" | keyof import("@hanzogui/core").StackStyleBase | "fullscreen" | "orientation"> & import("@hanzogui/core").WithThemeValues<import("@hanzogui/core").StackStyleBase> & {
|
|
41
41
|
elevation?: number | import("@hanzogui/core").SizeTokens | undefined;
|
|
42
42
|
fullscreen?: boolean | undefined;
|
|
43
43
|
orientation?: "horizontal" | "vertical" | undefined;
|
|
@@ -58,15 +58,15 @@ export declare function createRadioGroup<F extends RadioGroupComponent, D extend
|
|
|
58
58
|
name?: string;
|
|
59
59
|
native?: boolean;
|
|
60
60
|
accentColor?: string;
|
|
61
|
-
} & React.RefAttributes<import("@hanzogui/core").
|
|
61
|
+
} & React.RefAttributes<import("@hanzogui/core").GuiElement>> & import("@hanzogui/core").StaticComponentObject<Omit<import("@hanzogui/core").GetFinalProps<import("@hanzogui/core").RNViewNonStyleProps, import("@hanzogui/core").StackStyleBase, {
|
|
62
62
|
elevation?: number | import("@hanzogui/core").SizeTokens | undefined;
|
|
63
63
|
fullscreen?: boolean | undefined;
|
|
64
64
|
orientation?: "horizontal" | "vertical" | undefined;
|
|
65
|
-
}>, "native" | `$${string}` | `$${number}` | import("@hanzogui/core").GroupMediaKeys | `$theme-${string}` | `$theme-${number}` | "name" | keyof import("@hanzogui/core").
|
|
65
|
+
}>, "native" | `$${string}` | `$${number}` | import("@hanzogui/core").GroupMediaKeys | `$theme-${string}` | `$theme-${number}` | "name" | keyof import("@hanzogui/core").RNViewNonStyleProps | "elevation" | keyof import("@hanzogui/core").StackStyleBase | "fullscreen" | "value" | "orientation" | keyof import("@hanzogui/core").WithPseudoProps<import("@hanzogui/core").WithThemeValues<import("@hanzogui/core").StackStyleBase> & {
|
|
66
66
|
elevation?: number | import("@hanzogui/core").SizeTokens | undefined;
|
|
67
67
|
fullscreen?: boolean | undefined;
|
|
68
68
|
orientation?: "horizontal" | "vertical" | undefined;
|
|
69
|
-
} & import("@hanzogui/core").WithShorthands<import("@hanzogui/core").WithThemeValues<import("@hanzogui/core").StackStyleBase>>> | "defaultValue" | "onValueChange" | "required" | "accentColor"> & Omit<import("@hanzogui/core").
|
|
69
|
+
} & import("@hanzogui/core").WithShorthands<import("@hanzogui/core").WithThemeValues<import("@hanzogui/core").StackStyleBase>>> | "defaultValue" | "onValueChange" | "required" | "accentColor"> & Omit<import("@hanzogui/core").RNViewNonStyleProps, "elevation" | keyof import("@hanzogui/core").StackStyleBase | "fullscreen" | "orientation"> & import("@hanzogui/core").WithThemeValues<import("@hanzogui/core").StackStyleBase> & {
|
|
70
70
|
elevation?: number | import("@hanzogui/core").SizeTokens | undefined;
|
|
71
71
|
fullscreen?: boolean | undefined;
|
|
72
72
|
orientation?: "horizontal" | "vertical" | undefined;
|
|
@@ -87,7 +87,7 @@ export declare function createRadioGroup<F extends RadioGroupComponent, D extend
|
|
|
87
87
|
name?: string;
|
|
88
88
|
native?: boolean;
|
|
89
89
|
accentColor?: string;
|
|
90
|
-
}, import("@hanzogui/core").
|
|
90
|
+
}, import("@hanzogui/core").GuiElement, import("@hanzogui/core").RNViewNonStyleProps & Omit<import("@hanzogui/core").RNViewNonStyleProps, "elevation" | keyof import("@hanzogui/core").StackStyleBase | "fullscreen" | "orientation"> & import("@hanzogui/core").WithThemeValues<import("@hanzogui/core").StackStyleBase> & {
|
|
91
91
|
elevation?: number | import("@hanzogui/core").SizeTokens | undefined;
|
|
92
92
|
fullscreen?: boolean | undefined;
|
|
93
93
|
orientation?: "horizontal" | "vertical" | undefined;
|
|
@@ -113,15 +113,15 @@ export declare function createRadioGroup<F extends RadioGroupComponent, D extend
|
|
|
113
113
|
fullscreen?: boolean | undefined;
|
|
114
114
|
orientation?: "horizontal" | "vertical" | undefined;
|
|
115
115
|
}, import("@hanzogui/core").StaticConfigPublic> & Omit<import("@hanzogui/core").StaticConfigPublic, "staticConfig" | "styleable"> & {
|
|
116
|
-
__tama: [Omit<import("@hanzogui/core").GetFinalProps<import("@hanzogui/core").
|
|
116
|
+
__tama: [Omit<import("@hanzogui/core").GetFinalProps<import("@hanzogui/core").RNViewNonStyleProps, import("@hanzogui/core").StackStyleBase, {
|
|
117
117
|
elevation?: number | import("@hanzogui/core").SizeTokens | undefined;
|
|
118
118
|
fullscreen?: boolean | undefined;
|
|
119
119
|
orientation?: "horizontal" | "vertical" | undefined;
|
|
120
|
-
}>, "native" | `$${string}` | `$${number}` | import("@hanzogui/core").GroupMediaKeys | `$theme-${string}` | `$theme-${number}` | "name" | keyof import("@hanzogui/core").
|
|
120
|
+
}>, "native" | `$${string}` | `$${number}` | import("@hanzogui/core").GroupMediaKeys | `$theme-${string}` | `$theme-${number}` | "name" | keyof import("@hanzogui/core").RNViewNonStyleProps | "elevation" | keyof import("@hanzogui/core").StackStyleBase | "fullscreen" | "value" | "orientation" | keyof import("@hanzogui/core").WithPseudoProps<import("@hanzogui/core").WithThemeValues<import("@hanzogui/core").StackStyleBase> & {
|
|
121
121
|
elevation?: number | import("@hanzogui/core").SizeTokens | undefined;
|
|
122
122
|
fullscreen?: boolean | undefined;
|
|
123
123
|
orientation?: "horizontal" | "vertical" | undefined;
|
|
124
|
-
} & import("@hanzogui/core").WithShorthands<import("@hanzogui/core").WithThemeValues<import("@hanzogui/core").StackStyleBase>>> | "defaultValue" | "onValueChange" | "required" | "accentColor"> & Omit<import("@hanzogui/core").
|
|
124
|
+
} & import("@hanzogui/core").WithShorthands<import("@hanzogui/core").WithThemeValues<import("@hanzogui/core").StackStyleBase>>> | "defaultValue" | "onValueChange" | "required" | "accentColor"> & Omit<import("@hanzogui/core").RNViewNonStyleProps, "elevation" | keyof import("@hanzogui/core").StackStyleBase | "fullscreen" | "orientation"> & import("@hanzogui/core").WithThemeValues<import("@hanzogui/core").StackStyleBase> & {
|
|
125
125
|
elevation?: number | import("@hanzogui/core").SizeTokens | undefined;
|
|
126
126
|
fullscreen?: boolean | undefined;
|
|
127
127
|
orientation?: "horizontal" | "vertical" | undefined;
|
|
@@ -142,7 +142,7 @@ export declare function createRadioGroup<F extends RadioGroupComponent, D extend
|
|
|
142
142
|
name?: string;
|
|
143
143
|
native?: boolean;
|
|
144
144
|
accentColor?: string;
|
|
145
|
-
}, import("@hanzogui/core").
|
|
145
|
+
}, import("@hanzogui/core").GuiElement, import("@hanzogui/core").RNViewNonStyleProps & Omit<import("@hanzogui/core").RNViewNonStyleProps, "elevation" | keyof import("@hanzogui/core").StackStyleBase | "fullscreen" | "orientation"> & import("@hanzogui/core").WithThemeValues<import("@hanzogui/core").StackStyleBase> & {
|
|
146
146
|
elevation?: number | import("@hanzogui/core").SizeTokens | undefined;
|
|
147
147
|
fullscreen?: boolean | undefined;
|
|
148
148
|
orientation?: "horizontal" | "vertical" | undefined;
|
|
@@ -169,7 +169,7 @@ export declare function createRadioGroup<F extends RadioGroupComponent, D extend
|
|
|
169
169
|
orientation?: "horizontal" | "vertical" | undefined;
|
|
170
170
|
}, import("@hanzogui/core").StaticConfigPublic];
|
|
171
171
|
} & {
|
|
172
|
-
Item: import("@hanzogui/core").
|
|
172
|
+
Item: import("@hanzogui/core").GuiComponent<Omit<import("@hanzogui/core").GetFinalProps<import("@hanzogui/core").RNViewNonStyleProps, import("@hanzogui/core").StackStyleBase, {
|
|
173
173
|
disabled?: boolean | undefined;
|
|
174
174
|
unstyled?: boolean | undefined;
|
|
175
175
|
elevation?: number | import("@hanzogui/core").SizeTokens | undefined;
|
|
@@ -181,7 +181,7 @@ export declare function createRadioGroup<F extends RadioGroupComponent, D extend
|
|
|
181
181
|
elevation?: number | import("@hanzogui/core").SizeTokens | undefined;
|
|
182
182
|
fullscreen?: boolean | undefined;
|
|
183
183
|
size?: import("@hanzogui/core").SizeTokens | undefined;
|
|
184
|
-
} & import("@hanzogui/core").WithShorthands<import("@hanzogui/core").WithThemeValues<import("@hanzogui/core").StackStyleBase>>> | "labelledBy"> & Omit<import("@hanzogui/core").
|
|
184
|
+
} & import("@hanzogui/core").WithShorthands<import("@hanzogui/core").WithThemeValues<import("@hanzogui/core").StackStyleBase>>> | "labelledBy"> & Omit<import("@hanzogui/core").RNViewNonStyleProps, "disabled" | "unstyled" | "elevation" | keyof import("@hanzogui/core").StackStyleBase | "fullscreen" | "size"> & import("@hanzogui/core").WithThemeValues<import("@hanzogui/core").StackStyleBase> & {
|
|
185
185
|
disabled?: boolean | undefined;
|
|
186
186
|
unstyled?: boolean | undefined;
|
|
187
187
|
elevation?: number | import("@hanzogui/core").SizeTokens | undefined;
|
|
@@ -204,7 +204,7 @@ export declare function createRadioGroup<F extends RadioGroupComponent, D extend
|
|
|
204
204
|
id?: string;
|
|
205
205
|
labelledBy?: string;
|
|
206
206
|
disabled?: boolean;
|
|
207
|
-
}, import("@hanzogui/core").
|
|
207
|
+
}, import("@hanzogui/core").GuiElement, import("@hanzogui/core").RNViewNonStyleProps & Omit<import("@hanzogui/core").RNViewNonStyleProps, "disabled" | "unstyled" | "elevation" | keyof import("@hanzogui/core").StackStyleBase | "fullscreen" | "size"> & import("@hanzogui/core").WithThemeValues<import("@hanzogui/core").StackStyleBase> & {
|
|
208
208
|
disabled?: boolean | undefined;
|
|
209
209
|
unstyled?: boolean | undefined;
|
|
210
210
|
elevation?: number | import("@hanzogui/core").SizeTokens | undefined;
|
|
@@ -234,7 +234,7 @@ export declare function createRadioGroup<F extends RadioGroupComponent, D extend
|
|
|
234
234
|
fullscreen?: boolean | undefined;
|
|
235
235
|
size?: import("@hanzogui/core").SizeTokens | undefined;
|
|
236
236
|
}, import("@hanzogui/core").StaticConfigPublic>;
|
|
237
|
-
Indicator: import("@hanzogui/core").
|
|
237
|
+
Indicator: import("@hanzogui/core").GuiComponent<Omit<import("@hanzogui/core").GetFinalProps<import("@hanzogui/core").RNViewNonStyleProps, import("@hanzogui/core").StackStyleBase, {
|
|
238
238
|
unstyled?: boolean | undefined;
|
|
239
239
|
elevation?: number | import("@hanzogui/core").SizeTokens | undefined;
|
|
240
240
|
fullscreen?: boolean | undefined;
|
|
@@ -242,7 +242,7 @@ export declare function createRadioGroup<F extends RadioGroupComponent, D extend
|
|
|
242
242
|
unstyled?: boolean | undefined;
|
|
243
243
|
elevation?: number | import("@hanzogui/core").SizeTokens | undefined;
|
|
244
244
|
fullscreen?: boolean | undefined;
|
|
245
|
-
} & import("@hanzogui/core").WithShorthands<import("@hanzogui/core").WithThemeValues<import("@hanzogui/core").StackStyleBase>>> | "forceMount"> & Omit<import("@hanzogui/core").
|
|
245
|
+
} & import("@hanzogui/core").WithShorthands<import("@hanzogui/core").WithThemeValues<import("@hanzogui/core").StackStyleBase>>> | "forceMount"> & Omit<import("@hanzogui/core").RNViewNonStyleProps, "unstyled" | "elevation" | keyof import("@hanzogui/core").StackStyleBase | "fullscreen"> & import("@hanzogui/core").WithThemeValues<import("@hanzogui/core").StackStyleBase> & {
|
|
246
246
|
unstyled?: boolean | undefined;
|
|
247
247
|
elevation?: number | import("@hanzogui/core").SizeTokens | undefined;
|
|
248
248
|
fullscreen?: boolean | undefined;
|
|
@@ -257,7 +257,7 @@ export declare function createRadioGroup<F extends RadioGroupComponent, D extend
|
|
|
257
257
|
}>> & {
|
|
258
258
|
forceMount?: boolean;
|
|
259
259
|
unstyled?: boolean;
|
|
260
|
-
}, import("@hanzogui/core").
|
|
260
|
+
}, import("@hanzogui/core").GuiElement, import("@hanzogui/core").RNViewNonStyleProps & Omit<import("@hanzogui/core").RNViewNonStyleProps, "unstyled" | "elevation" | keyof import("@hanzogui/core").StackStyleBase | "fullscreen"> & import("@hanzogui/core").WithThemeValues<import("@hanzogui/core").StackStyleBase> & {
|
|
261
261
|
unstyled?: boolean | undefined;
|
|
262
262
|
elevation?: number | import("@hanzogui/core").SizeTokens | undefined;
|
|
263
263
|
fullscreen?: boolean | undefined;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createRadioGroup.d.ts","sourceRoot":"","sources":["../src/createRadioGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AAY9C,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EACL,eAAe,EACf,wBAAwB,EACxB,mBAAmB,EACpB,MAAM,cAAc,CAAA;AAQrB,KAAK,mBAAmB,GAAG,QAAQ,CAAC,OAAO,wB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