@hanzogui/radio-group 3.0.1 → 7.0.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.
- package/package.json +20 -20
- package/src/RadioGroup.tsx +2 -2
- package/types/RadioGroup.d.ts +10 -10
- package/types/RadioGroupStyledContext.d.ts +2 -2
- package/types/createRadioGroup.d.ts +96 -96
- package/types/index.d.ts +95 -95
- package/dist/cjs/RadioGroup.cjs +0 -132
- package/dist/cjs/RadioGroup.native.js +0 -137
- package/dist/cjs/RadioGroup.native.js.map +0 -1
- package/dist/cjs/RadioGroupStyledContext.cjs +0 -30
- package/dist/cjs/RadioGroupStyledContext.native.js +0 -33
- package/dist/cjs/RadioGroupStyledContext.native.js.map +0 -1
- package/dist/cjs/createRadioGroup.cjs +0 -165
- package/dist/cjs/createRadioGroup.native.js +0 -168
- package/dist/cjs/createRadioGroup.native.js.map +0 -1
- package/dist/cjs/index.cjs +0 -36
- package/dist/cjs/index.native.js +0 -39
- package/dist/cjs/index.native.js.map +0 -1
- package/dist/esm/RadioGroup.mjs +0 -107
- package/dist/esm/RadioGroup.mjs.map +0 -1
- package/dist/esm/RadioGroup.native.js +0 -109
- package/dist/esm/RadioGroup.native.js.map +0 -1
- package/dist/esm/RadioGroupStyledContext.mjs +0 -7
- package/dist/esm/RadioGroupStyledContext.mjs.map +0 -1
- package/dist/esm/RadioGroupStyledContext.native.js +0 -7
- package/dist/esm/RadioGroupStyledContext.native.js.map +0 -1
- package/dist/esm/createRadioGroup.mjs +0 -131
- package/dist/esm/createRadioGroup.mjs.map +0 -1
- package/dist/esm/createRadioGroup.native.js +0 -131
- package/dist/esm/createRadioGroup.native.js.map +0 -1
- package/dist/esm/index.js +0 -12
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/index.mjs +0 -12
- package/dist/esm/index.mjs.map +0 -1
- package/dist/esm/index.native.js +0 -12
- package/dist/esm/index.native.js.map +0 -1
- package/dist/jsx/RadioGroup.mjs +0 -107
- package/dist/jsx/RadioGroup.mjs.map +0 -1
- package/dist/jsx/RadioGroup.native.js +0 -137
- package/dist/jsx/RadioGroup.native.js.map +0 -1
- package/dist/jsx/RadioGroupStyledContext.mjs +0 -7
- package/dist/jsx/RadioGroupStyledContext.mjs.map +0 -1
- package/dist/jsx/RadioGroupStyledContext.native.js +0 -33
- package/dist/jsx/RadioGroupStyledContext.native.js.map +0 -1
- package/dist/jsx/createRadioGroup.mjs +0 -131
- package/dist/jsx/createRadioGroup.mjs.map +0 -1
- package/dist/jsx/createRadioGroup.native.js +0 -168
- package/dist/jsx/createRadioGroup.native.js.map +0 -1
- package/dist/jsx/index.js +0 -12
- package/dist/jsx/index.js.map +0 -1
- package/dist/jsx/index.mjs +0 -12
- package/dist/jsx/index.mjs.map +0 -1
- package/dist/jsx/index.native.js +0 -39
- package/dist/jsx/index.native.js.map +0 -1
|
@@ -1,137 +0,0 @@
|
|
|
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: !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, {
|
|
15
|
-
get: () => from[key],
|
|
16
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
17
|
-
});
|
|
18
|
-
return to;
|
|
19
|
-
};
|
|
20
|
-
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
21
|
-
value: !0
|
|
22
|
-
}), mod);
|
|
23
|
-
var RadioGroup_exports = {};
|
|
24
|
-
__export(RadioGroup_exports, {
|
|
25
|
-
RadioGroupFrame: () => RadioGroupFrame,
|
|
26
|
-
RadioGroupIndicatorFrame: () => RadioGroupIndicatorFrame,
|
|
27
|
-
RadioGroupItemFrame: () => RadioGroupItemFrame
|
|
28
|
-
});
|
|
29
|
-
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
|
-
};
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
},
|
|
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
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
},
|
|
117
|
-
defaultVariants: {
|
|
118
|
-
unstyled: process.env.HANZO_GUI_HEADLESS === "1"
|
|
119
|
-
}
|
|
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
|
-
}
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
});
|
|
137
|
-
//# sourceMappingURL=RadioGroup.native.js.map
|
|
@@ -1 +0,0 @@
|
|
|
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,QA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AW,SAAAoB,CAAQxC,KAAE,EAAMyC,KAAA,EAAM;UAC/B;cAAMC;YAAA,CAAO,GAAAD,KAAK;YAAAE,gBAAA;YAAAvB,IAAA,GAAAwB,IAAA,CAAAC,KAAA,KAAArC,eAAA,CAAAsC,gBAAA,MAAApC,oBAAA,CAAAqC,OAAA,EAAA/C,KAAA,OAAA2C,gBAAA,GAAAD,KAAA,CAAAM,SAAA,cAAAL,gBAAA,cAAAA,gBAAA;UAAA,OAChB;YACFM,KAAA,EAAA7B,IAAA;YACA8B,MAAO,EAAA9B;UAAA;QACE;MACC;IACV;IACF+B,eACF;MACFjC,QAAA,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,30 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
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, {
|
|
13
|
-
get: () => from[key],
|
|
14
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
15
|
-
});
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
19
|
-
value: !0
|
|
20
|
-
}), mod);
|
|
21
|
-
var RadioGroupStyledContext_exports = {};
|
|
22
|
-
__export(RadioGroupStyledContext_exports, {
|
|
23
|
-
RadioGroupStyledContext: () => RadioGroupStyledContext
|
|
24
|
-
});
|
|
25
|
-
module.exports = __toCommonJS(RadioGroupStyledContext_exports);
|
|
26
|
-
var import_gui_core = require("@hanzogui/core");
|
|
27
|
-
const RadioGroupStyledContext = (0, import_gui_core.createStyledContext)({
|
|
28
|
-
size: "$true",
|
|
29
|
-
scaleIcon: 1
|
|
30
|
-
}, "RadioGroup");
|
|
@@ -1,33 +0,0 @@
|
|
|
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: !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, {
|
|
15
|
-
get: () => from[key],
|
|
16
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
17
|
-
});
|
|
18
|
-
return to;
|
|
19
|
-
};
|
|
20
|
-
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
21
|
-
value: !0
|
|
22
|
-
}), mod);
|
|
23
|
-
var RadioGroupStyledContext_exports = {};
|
|
24
|
-
__export(RadioGroupStyledContext_exports, {
|
|
25
|
-
RadioGroupStyledContext: () => RadioGroupStyledContext
|
|
26
|
-
});
|
|
27
|
-
module.exports = __toCommonJS(RadioGroupStyledContext_exports);
|
|
28
|
-
var import_gui_core = require("@hanzogui/core"),
|
|
29
|
-
RadioGroupStyledContext = (0, import_gui_core.createStyledContext)({
|
|
30
|
-
size: "$true",
|
|
31
|
-
scaleIcon: 1
|
|
32
|
-
}, "RadioGroup");
|
|
33
|
-
//# sourceMappingURL=RadioGroupStyledContext.native.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","RadioGroupStyledContext_exports","__export","RadioGroupStyledContext","module","exports","import_gui_core","require","createStyledContext","size","scaleIcon"],"sources":["../../src/RadioGroupStyledContext.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,+BAAA;AAAAC,QAAA,CAAAD,+BAAA;EAAAE,uBAAA,EAAAA,CAAA,KAAAA;AAAA;AACAC,MAAA,CAAAC,OAAA,GAAAT,YAAoC,CAAAK,+BAAA;AAE7B,IAAAK,eAAM,GAAAC,OAAA,kBAA0B;EAAAJ,uBAAA,OAAAG,eAAA,CAAAE,mBAAA;IACrCC,IAAA;IAAAC,SACQ;EAAA,eACK","ignoreList":[]}
|
|
@@ -1,165 +0,0 @@
|
|
|
1
|
-
var __create = Object.create;
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf,
|
|
6
|
-
__hasOwnProp = Object.prototype.hasOwnProperty;
|
|
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, {
|
|
15
|
-
get: () => from[key],
|
|
16
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
17
|
-
});
|
|
18
|
-
return to;
|
|
19
|
-
};
|
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
26
|
-
value: mod,
|
|
27
|
-
enumerable: !0
|
|
28
|
-
}) : target, mod)),
|
|
29
|
-
__toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
30
|
-
value: !0
|
|
31
|
-
}), mod);
|
|
32
|
-
var createRadioGroup_exports = {};
|
|
33
|
-
__export(createRadioGroup_exports, {
|
|
34
|
-
createRadioGroup: () => createRadioGroup
|
|
35
|
-
});
|
|
36
|
-
module.exports = __toCommonJS(createRadioGroup_exports);
|
|
37
|
-
var import_gui_core = require("@hanzogui/core"),
|
|
38
|
-
import_gui_radio_headless = require("@hanzogui/radio-headless"),
|
|
39
|
-
import_gui_roving_focus = require("@hanzogui/roving-focus"),
|
|
40
|
-
import_react = __toESM(require("react"), 1),
|
|
41
|
-
import_RadioGroup = require("./RadioGroup.cjs"),
|
|
42
|
-
import_jsx_runtime = require("react/jsx-runtime");
|
|
43
|
-
const ensureContext = x => {
|
|
44
|
-
x.context || (x.context = RadioGroupContext);
|
|
45
|
-
},
|
|
46
|
-
RadioGroupContext = import_react.default.createContext({}),
|
|
47
|
-
RadioGroupItemContext = import_react.default.createContext({
|
|
48
|
-
checked: !1,
|
|
49
|
-
disabled: !1
|
|
50
|
-
});
|
|
51
|
-
function createRadioGroup(createProps) {
|
|
52
|
-
const {
|
|
53
|
-
disableActiveTheme,
|
|
54
|
-
Frame = import_RadioGroup.RadioGroupFrame,
|
|
55
|
-
Indicator = import_RadioGroup.RadioGroupIndicatorFrame,
|
|
56
|
-
Item = import_RadioGroup.RadioGroupItemFrame
|
|
57
|
-
} = createProps;
|
|
58
|
-
ensureContext(Frame), ensureContext(Indicator), ensureContext(Item);
|
|
59
|
-
const RadioGroupImp = Frame.styleable((props, ref) => {
|
|
60
|
-
const {
|
|
61
|
-
value,
|
|
62
|
-
defaultValue,
|
|
63
|
-
onValueChange,
|
|
64
|
-
required = !1,
|
|
65
|
-
disabled = !1,
|
|
66
|
-
name,
|
|
67
|
-
native,
|
|
68
|
-
accentColor,
|
|
69
|
-
orientation = "vertical",
|
|
70
|
-
...rest
|
|
71
|
-
} = props,
|
|
72
|
-
{
|
|
73
|
-
providerValue,
|
|
74
|
-
frameAttrs,
|
|
75
|
-
rovingFocusGroupAttrs
|
|
76
|
-
} = (0, import_gui_radio_headless.useRadioGroup)({
|
|
77
|
-
orientation,
|
|
78
|
-
name,
|
|
79
|
-
defaultValue,
|
|
80
|
-
value,
|
|
81
|
-
onValueChange,
|
|
82
|
-
required,
|
|
83
|
-
disabled,
|
|
84
|
-
native,
|
|
85
|
-
accentColor
|
|
86
|
-
});
|
|
87
|
-
return /* @__PURE__ */(0, import_jsx_runtime.jsx)(RadioGroupContext.Provider, {
|
|
88
|
-
value: providerValue,
|
|
89
|
-
children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_gui_roving_focus.RovingFocusGroup, {
|
|
90
|
-
...rovingFocusGroupAttrs,
|
|
91
|
-
children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_RadioGroup.RadioGroupFrame, {
|
|
92
|
-
...frameAttrs,
|
|
93
|
-
ref,
|
|
94
|
-
...rest
|
|
95
|
-
})
|
|
96
|
-
})
|
|
97
|
-
});
|
|
98
|
-
}),
|
|
99
|
-
RadioGroupItemImp = Item.styleable((props, ref) => {
|
|
100
|
-
const {
|
|
101
|
-
value,
|
|
102
|
-
labelledBy,
|
|
103
|
-
onPress,
|
|
104
|
-
onKeyDown,
|
|
105
|
-
disabled,
|
|
106
|
-
id,
|
|
107
|
-
...rest
|
|
108
|
-
} = props,
|
|
109
|
-
{
|
|
110
|
-
providerValue,
|
|
111
|
-
bubbleInput,
|
|
112
|
-
rovingFocusGroupAttrs,
|
|
113
|
-
frameAttrs,
|
|
114
|
-
isFormControl,
|
|
115
|
-
native
|
|
116
|
-
} = (0, import_gui_radio_headless.useRadioGroupItem)({
|
|
117
|
-
radioGroupContext: RadioGroupContext,
|
|
118
|
-
value,
|
|
119
|
-
id,
|
|
120
|
-
labelledBy,
|
|
121
|
-
disabled,
|
|
122
|
-
onPress,
|
|
123
|
-
onKeyDown
|
|
124
|
-
});
|
|
125
|
-
return /* @__PURE__ */(0, import_jsx_runtime.jsx)(RadioGroupItemContext.Provider, {
|
|
126
|
-
value: providerValue,
|
|
127
|
-
children: import_gui_core.isWeb && native ? bubbleInput : /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
128
|
-
children: [/* @__PURE__ */(0, import_jsx_runtime.jsx)(import_gui_roving_focus.RovingFocusGroup.Item, {
|
|
129
|
-
...rovingFocusGroupAttrs,
|
|
130
|
-
children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_RadioGroup.RadioGroupItemFrame, {
|
|
131
|
-
...frameAttrs,
|
|
132
|
-
ref,
|
|
133
|
-
...rest
|
|
134
|
-
})
|
|
135
|
-
}), isFormControl && bubbleInput]
|
|
136
|
-
})
|
|
137
|
-
});
|
|
138
|
-
});
|
|
139
|
-
RadioGroupItemImp.displayName = "RadioGroupItem";
|
|
140
|
-
const RadioIndicator = Indicator.styleable((props, forwardedRef) => {
|
|
141
|
-
const {
|
|
142
|
-
forceMount,
|
|
143
|
-
disabled,
|
|
144
|
-
...indicatorProps
|
|
145
|
-
} = props,
|
|
146
|
-
{
|
|
147
|
-
checked,
|
|
148
|
-
...useIndicatorRest
|
|
149
|
-
} = (0, import_gui_radio_headless.useRadioGroupItemIndicator)({
|
|
150
|
-
radioGroupItemContext: RadioGroupItemContext,
|
|
151
|
-
disabled
|
|
152
|
-
});
|
|
153
|
-
return forceMount || checked ? /* @__PURE__ */(0, import_jsx_runtime.jsx)(Indicator, {
|
|
154
|
-
...useIndicatorRest,
|
|
155
|
-
ref: forwardedRef,
|
|
156
|
-
...indicatorProps
|
|
157
|
-
}) : null;
|
|
158
|
-
});
|
|
159
|
-
RadioIndicator.displayName = "RadioIndicator";
|
|
160
|
-
const RadioGroup = (0, import_gui_core.withStaticProperties)(RadioGroupImp, {
|
|
161
|
-
Item: RadioGroupItemImp,
|
|
162
|
-
Indicator: RadioIndicator
|
|
163
|
-
});
|
|
164
|
-
return RadioGroup.displayName = "RadioGroup", RadioGroup;
|
|
165
|
-
}
|
|
@@ -1,168 +0,0 @@
|
|
|
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
|
-
__hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
-
var __export = (target, all) => {
|
|
10
|
-
for (var name in all) __defProp(target, name, {
|
|
11
|
-
get: all[name],
|
|
12
|
-
enumerable: !0
|
|
13
|
-
});
|
|
14
|
-
},
|
|
15
|
-
__copyProps = (to, from, except, desc) => {
|
|
16
|
-
if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
|
|
17
|
-
get: () => from[key],
|
|
18
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
19
|
-
});
|
|
20
|
-
return to;
|
|
21
|
-
};
|
|
22
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
23
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
24
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
25
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
26
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
27
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
28
|
-
value: mod,
|
|
29
|
-
enumerable: !0
|
|
30
|
-
}) : target, mod)),
|
|
31
|
-
__toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
32
|
-
value: !0
|
|
33
|
-
}), mod);
|
|
34
|
-
var createRadioGroup_exports = {};
|
|
35
|
-
__export(createRadioGroup_exports, {
|
|
36
|
-
createRadioGroup: () => createRadioGroup
|
|
37
|
-
});
|
|
38
|
-
module.exports = __toCommonJS(createRadioGroup_exports);
|
|
39
|
-
var import_jsx_runtime = require("react/jsx-runtime"),
|
|
40
|
-
import_gui_core = require("@hanzogui/core"),
|
|
41
|
-
import_gui_radio_headless = require("@hanzogui/radio-headless"),
|
|
42
|
-
import_gui_roving_focus = require("@hanzogui/roving-focus"),
|
|
43
|
-
import_react = __toESM(require("react"), 1),
|
|
44
|
-
import_RadioGroup = require("./RadioGroup.native.js"),
|
|
45
|
-
ensureContext = function (x) {
|
|
46
|
-
x.context || (x.context = RadioGroupContext);
|
|
47
|
-
},
|
|
48
|
-
RadioGroupContext = /* @__PURE__ */import_react.default.createContext({}),
|
|
49
|
-
RadioGroupItemContext = /* @__PURE__ */import_react.default.createContext({
|
|
50
|
-
checked: !1,
|
|
51
|
-
disabled: !1
|
|
52
|
-
});
|
|
53
|
-
function createRadioGroup(createProps) {
|
|
54
|
-
var {
|
|
55
|
-
disableActiveTheme,
|
|
56
|
-
Frame = import_RadioGroup.RadioGroupFrame,
|
|
57
|
-
Indicator = import_RadioGroup.RadioGroupIndicatorFrame,
|
|
58
|
-
Item = import_RadioGroup.RadioGroupItemFrame
|
|
59
|
-
} = createProps;
|
|
60
|
-
ensureContext(Frame), ensureContext(Indicator), ensureContext(Item);
|
|
61
|
-
var RadioGroupImp = Frame.styleable(function (props, ref) {
|
|
62
|
-
var {
|
|
63
|
-
value,
|
|
64
|
-
defaultValue,
|
|
65
|
-
onValueChange,
|
|
66
|
-
required = !1,
|
|
67
|
-
disabled = !1,
|
|
68
|
-
name,
|
|
69
|
-
native,
|
|
70
|
-
accentColor,
|
|
71
|
-
orientation = "vertical",
|
|
72
|
-
...rest
|
|
73
|
-
} = props,
|
|
74
|
-
{
|
|
75
|
-
providerValue,
|
|
76
|
-
frameAttrs,
|
|
77
|
-
rovingFocusGroupAttrs
|
|
78
|
-
} = (0, import_gui_radio_headless.useRadioGroup)({
|
|
79
|
-
orientation,
|
|
80
|
-
name,
|
|
81
|
-
defaultValue,
|
|
82
|
-
value,
|
|
83
|
-
onValueChange,
|
|
84
|
-
required,
|
|
85
|
-
disabled,
|
|
86
|
-
native,
|
|
87
|
-
accentColor
|
|
88
|
-
});
|
|
89
|
-
return /* @__PURE__ */(0, import_jsx_runtime.jsx)(RadioGroupContext.Provider, {
|
|
90
|
-
value: providerValue,
|
|
91
|
-
children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_gui_roving_focus.RovingFocusGroup, {
|
|
92
|
-
...rovingFocusGroupAttrs,
|
|
93
|
-
children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_RadioGroup.RadioGroupFrame, {
|
|
94
|
-
...frameAttrs,
|
|
95
|
-
ref,
|
|
96
|
-
...rest
|
|
97
|
-
})
|
|
98
|
-
})
|
|
99
|
-
});
|
|
100
|
-
}),
|
|
101
|
-
RadioGroupItemImp = Item.styleable(function (props, ref) {
|
|
102
|
-
var {
|
|
103
|
-
value,
|
|
104
|
-
labelledBy,
|
|
105
|
-
onPress,
|
|
106
|
-
onKeyDown,
|
|
107
|
-
disabled,
|
|
108
|
-
id,
|
|
109
|
-
...rest
|
|
110
|
-
} = props,
|
|
111
|
-
{
|
|
112
|
-
providerValue,
|
|
113
|
-
bubbleInput,
|
|
114
|
-
rovingFocusGroupAttrs,
|
|
115
|
-
frameAttrs,
|
|
116
|
-
isFormControl,
|
|
117
|
-
native
|
|
118
|
-
} = (0, import_gui_radio_headless.useRadioGroupItem)({
|
|
119
|
-
radioGroupContext: RadioGroupContext,
|
|
120
|
-
value,
|
|
121
|
-
id,
|
|
122
|
-
labelledBy,
|
|
123
|
-
disabled,
|
|
124
|
-
onPress,
|
|
125
|
-
onKeyDown
|
|
126
|
-
});
|
|
127
|
-
return /* @__PURE__ */(0, import_jsx_runtime.jsx)(RadioGroupItemContext.Provider, {
|
|
128
|
-
value: providerValue,
|
|
129
|
-
children: import_gui_core.isWeb && native ? bubbleInput : /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
130
|
-
children: [/* @__PURE__ */(0, import_jsx_runtime.jsx)(import_gui_roving_focus.RovingFocusGroup.Item, {
|
|
131
|
-
...rovingFocusGroupAttrs,
|
|
132
|
-
children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_RadioGroup.RadioGroupItemFrame, {
|
|
133
|
-
...frameAttrs,
|
|
134
|
-
ref,
|
|
135
|
-
...rest
|
|
136
|
-
})
|
|
137
|
-
}), isFormControl && bubbleInput]
|
|
138
|
-
})
|
|
139
|
-
});
|
|
140
|
-
});
|
|
141
|
-
RadioGroupItemImp.displayName = "RadioGroupItem";
|
|
142
|
-
var RadioIndicator = Indicator.styleable(function (props, forwardedRef) {
|
|
143
|
-
var {
|
|
144
|
-
forceMount,
|
|
145
|
-
disabled,
|
|
146
|
-
...indicatorProps
|
|
147
|
-
} = props,
|
|
148
|
-
{
|
|
149
|
-
checked,
|
|
150
|
-
...useIndicatorRest
|
|
151
|
-
} = (0, import_gui_radio_headless.useRadioGroupItemIndicator)({
|
|
152
|
-
radioGroupItemContext: RadioGroupItemContext,
|
|
153
|
-
disabled
|
|
154
|
-
});
|
|
155
|
-
return forceMount || checked ? /* @__PURE__ */(0, import_jsx_runtime.jsx)(Indicator, {
|
|
156
|
-
...useIndicatorRest,
|
|
157
|
-
ref: forwardedRef,
|
|
158
|
-
...indicatorProps
|
|
159
|
-
}) : null;
|
|
160
|
-
});
|
|
161
|
-
RadioIndicator.displayName = "RadioIndicator";
|
|
162
|
-
var RadioGroup = (0, import_gui_core.withStaticProperties)(RadioGroupImp, {
|
|
163
|
-
Item: RadioGroupItemImp,
|
|
164
|
-
Indicator: RadioIndicator
|
|
165
|
-
});
|
|
166
|
-
return RadioGroup.displayName = "RadioGroup", RadioGroup;
|
|
167
|
-
}
|
|
168
|
-
//# sourceMappingURL=createRadioGroup.native.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","createRadioGroup_exports","__export","createRadioGroup","module","exports","import_jsx_runtime","require","import_gui_core","import_gui_radio_headless","import_gui_roving_focus","import_react","__toESM","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","name","native","accentColor","orientation","rest","providerValue","frameAttrs","rovingFocusGroupAttrs","useRadioGroup","jsx","Provider","children","RovingFocusGroup","RadioGroupItemImp","labelledBy","onPress","onKeyDown","id","bubbleInput","isFormControl","useRadioGroupItem","radioGroupContext","isWeb","jsxs","Fragment","displayName","RadioIndicator","forwardedRef","forceMount","indicatorProps","useIndicatorRest","useRadioGroupItemIndicator","radioGroupItemContext","RadioGroup","withStaticProperties"],"sources":["../../src/createRadioGroup.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAAA;EAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;IAAAC,KAAA;EAAA,IAAAH,GAAA;AAAA,IAAAI,wBAAA;AAAAC,QAAA,CAAAD,wBAAA;EAAAE,gBAAA,EAAAA,CAAA,KAAAA;AAAA;AACAC,MAAA,CAAAC,OAAA,GAAAT,YAA4C,CAAAK,wBAK5C;AAaA,IAAAK,kBAAsB,GAACC,OAAW;EAAAC,eAAA,GAAAD,OAAA;EAAAE,yBAAA,GAAAF,OAAA;EAAAG,uBAAA,GAAAH,OAAA;EAAAI,YAAA,GAAAC,OAAA,CAAAL,OAAA;EAAAM,iBAAA,GAAAN,OAAA;EAAAO,aAAA,YAAAA,CAAAC,CAAA;IAC3BA,CAAA,CAAEC,OAAA,KACLD,CAAA,CAAEC,OAAA,GAAUC,iBAAA;EAEhB;EAOMA,iBAAA,GAAoB,eAAAN,YAAM,CAAAO,OAAuC,CAACC,aAClE;EAAAC,qBAAwB,kBAAMT,YAA0C,CAAAO,OAAA,CAAAC,aAAA;IAC5EE,OAAA,EAAS;IACTC,QAAA,EAAU;EACZ,CAAC;AA0BM,SAASnB,iBAIdoB,WAAA,EAAmF;EACnF;IAAMC,kBAAA;IAAAC,KAAA,GAAAZ,iBAAA,CAAAa,e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iBAAW;IACZxB,SAAA,EAAAqC;EACD;EAGF,OAAAO,UAAA,CAAAR,WAAA,iBAAAQ,UAAA","ignoreList":[]}
|
package/dist/cjs/index.cjs
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
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, {
|
|
13
|
-
get: () => from[key],
|
|
14
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
15
|
-
});
|
|
16
|
-
return to;
|
|
17
|
-
},
|
|
18
|
-
__reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
19
|
-
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
20
|
-
value: !0
|
|
21
|
-
}), mod);
|
|
22
|
-
var index_exports = {};
|
|
23
|
-
__export(index_exports, {
|
|
24
|
-
RadioGroup: () => RadioGroup
|
|
25
|
-
});
|
|
26
|
-
module.exports = __toCommonJS(index_exports);
|
|
27
|
-
var import_RadioGroup = require("./RadioGroup.cjs"),
|
|
28
|
-
import_createRadioGroup = require("./createRadioGroup.cjs");
|
|
29
|
-
__reExport(index_exports, require("./createRadioGroup.cjs"), module.exports);
|
|
30
|
-
__reExport(index_exports, require("./RadioGroup.cjs"), module.exports);
|
|
31
|
-
__reExport(index_exports, require("./RadioGroupStyledContext.cjs"), module.exports);
|
|
32
|
-
const RadioGroup = (0, import_createRadioGroup.createRadioGroup)({
|
|
33
|
-
Frame: import_RadioGroup.RadioGroupFrame,
|
|
34
|
-
Indicator: import_RadioGroup.RadioGroupIndicatorFrame,
|
|
35
|
-
Item: import_RadioGroup.RadioGroupItemFrame
|
|
36
|
-
});
|
package/dist/cjs/index.native.js
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
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: !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, {
|
|
15
|
-
get: () => from[key],
|
|
16
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
17
|
-
});
|
|
18
|
-
return to;
|
|
19
|
-
},
|
|
20
|
-
__reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
21
|
-
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
22
|
-
value: !0
|
|
23
|
-
}), mod);
|
|
24
|
-
var index_exports = {};
|
|
25
|
-
__export(index_exports, {
|
|
26
|
-
RadioGroup: () => RadioGroup
|
|
27
|
-
});
|
|
28
|
-
module.exports = __toCommonJS(index_exports);
|
|
29
|
-
var import_RadioGroup = require("./RadioGroup.native.js"),
|
|
30
|
-
import_createRadioGroup = require("./createRadioGroup.native.js");
|
|
31
|
-
__reExport(index_exports, require("./createRadioGroup.native.js"), module.exports);
|
|
32
|
-
__reExport(index_exports, require("./RadioGroup.native.js"), module.exports);
|
|
33
|
-
__reExport(index_exports, require("./RadioGroupStyledContext.native.js"), module.exports);
|
|
34
|
-
var RadioGroup = (0, import_createRadioGroup.createRadioGroup)({
|
|
35
|
-
Frame: import_RadioGroup.RadioGroupFrame,
|
|
36
|
-
Indicator: import_RadioGroup.RadioGroupIndicatorFrame,
|
|
37
|
-
Item: import_RadioGroup.RadioGroupItemFrame
|
|
38
|
-
});
|
|
39
|
-
//# sourceMappingURL=index.native.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","index_exports","__export","RadioGroup","module","exports","import_RadioGroup","require","import_createRadioGroup","__reExport","createRadioGroup","Frame","RadioGroupFrame","Indicator","RadioGroupIndicatorFrame","Item","RadioGroupItemFrame"],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,aAAA;AAAAC,QAAA,CAAAD,aAAA;EAAAE,UAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAT,YAIO,CAAAK,aAAA;AAGP,IAAAK,iBAAA,GAAAC,OAAc;EAAAC,uBAPd,GAAAD,OAAA;AAQAE,UAAA,CAAAR,aAAA,EAAcM,OAAA,+BARd,GAAAH,MAAA,CAAAC,OAAA;AASAI,UAAA,CAAAR,aAAA,EAAcM,OAAA,4BAAAH,MAAA,CAAAC,OATd;AAWOI,UAAM,CAAAR,aAAa,EAAAM,OAAA,yCAAAH,MAAiB,CAAAC,OAAA;AAAA,IACzCF,UAAO,OAAAK,uBAAA,CAAAE,gBAAA;EACPC,KAAA,EAAAL,iBAAW,CAAAM,eAAA;EACXC,SAAM,EAAAP,iBAAA,CAAAQ,wBAAA;EACPC,IAAA,EAAAT,iBAAA,CAAAU","ignoreList":[]}
|