@parrot-co/parrot-ui 0.1.14 → 0.1.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/main.js +31 -3
- package/dist/main.js.map +1 -1
- package/dist/module.js +32 -5
- package/dist/module.js.map +1 -1
- package/dist/types.d.ts +4 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -34,6 +34,7 @@ $parcel$export(module.exports, "ComboBox", () => $d67a8dc6cbdaa7ed$export$72b969
|
|
|
34
34
|
$parcel$export(module.exports, "Radio", () => $e158c5cf7e190200$export$d7b12c4107be0d61);
|
|
35
35
|
$parcel$export(module.exports, "RadioGroup", () => $e158c5cf7e190200$export$a98f0dcb43a68a25);
|
|
36
36
|
$parcel$export(module.exports, "RadioCard", () => $71fcf48f7e2e9427$export$f8afaea2e9656b91);
|
|
37
|
+
$parcel$export(module.exports, "RadioItem", () => $60c8e601ab261224$export$371ab307eab489c0);
|
|
37
38
|
$parcel$export(module.exports, "Select", () => $e37831ebf64d8e7d$export$ef9b1a59e592288f);
|
|
38
39
|
$parcel$export(module.exports, "Option", () => $86685406b084d356$export$5b7f4051a57920d0);
|
|
39
40
|
$parcel$export(module.exports, "Section", () => $86685406b084d356$export$ef146090a6472d9e);
|
|
@@ -649,9 +650,6 @@ function $eae337549f49a5a2$export$450c36e0b0e62ccd() {
|
|
|
649
650
|
const $f2fd0cbe11b7f0dd$var$ThemeContext = /*#__PURE__*/ $8zHUo$react.createContext(null);
|
|
650
651
|
function $f2fd0cbe11b7f0dd$export$d8964aec282183a3(props) {
|
|
651
652
|
const { children: children, className: className, scaling: scaling = "100%", ...themeProps } = props;
|
|
652
|
-
$8zHUo$react.useEffect(()=>{
|
|
653
|
-
document.body.classList.add("dark");
|
|
654
|
-
});
|
|
655
653
|
return /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)($f2fd0cbe11b7f0dd$var$ThemeContext.Provider, {
|
|
656
654
|
value: themeProps,
|
|
657
655
|
children: /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)("div", {
|
|
@@ -2070,6 +2068,36 @@ $71fcf48f7e2e9427$export$f8afaea2e9656b91.displayName = "RadioCard";
|
|
|
2070
2068
|
|
|
2071
2069
|
|
|
2072
2070
|
|
|
2071
|
+
function $60c8e601ab261224$export$371ab307eab489c0({ className: className, style: style, classNames: classNames, styles: styles, ...props }) {
|
|
2072
|
+
const state = $8zHUo$react.useContext((0, $e158c5cf7e190200$export$b118023277d4a5c3));
|
|
2073
|
+
if (!state) throw new Error("RadioItem must be used within a RadioGroup");
|
|
2074
|
+
const ref = $8zHUo$react.useRef(null);
|
|
2075
|
+
const { inputProps: inputProps } = (0, $8zHUo$reactaria.useRadio)(props, state, ref);
|
|
2076
|
+
return /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsxs)("label", {
|
|
2077
|
+
style: {
|
|
2078
|
+
...style,
|
|
2079
|
+
...styles?.wrapper
|
|
2080
|
+
},
|
|
2081
|
+
className: (0, $62f1c614c0962470$export$a274e22fb40f762e)(className, classNames?.wrapper, "p-radio-item"),
|
|
2082
|
+
"data-checked": inputProps.checked,
|
|
2083
|
+
children: [
|
|
2084
|
+
/*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $8zHUo$reactaria.VisuallyHidden), {
|
|
2085
|
+
children: /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)("input", {
|
|
2086
|
+
...inputProps,
|
|
2087
|
+
ref: ref
|
|
2088
|
+
})
|
|
2089
|
+
}),
|
|
2090
|
+
props.children
|
|
2091
|
+
]
|
|
2092
|
+
});
|
|
2093
|
+
}
|
|
2094
|
+
|
|
2095
|
+
|
|
2096
|
+
|
|
2097
|
+
|
|
2098
|
+
|
|
2099
|
+
|
|
2100
|
+
|
|
2073
2101
|
|
|
2074
2102
|
|
|
2075
2103
|
|