@parrot-co/parrot-ui 0.1.14 → 0.1.15
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 +30 -3
- package/dist/main.js.map +1 -1
- package/dist/module.js +31 -4
- package/dist/module.js.map +1 -1
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -649,9 +649,6 @@ function $eae337549f49a5a2$export$450c36e0b0e62ccd() {
|
|
|
649
649
|
const $f2fd0cbe11b7f0dd$var$ThemeContext = /*#__PURE__*/ $8zHUo$react.createContext(null);
|
|
650
650
|
function $f2fd0cbe11b7f0dd$export$d8964aec282183a3(props) {
|
|
651
651
|
const { children: children, className: className, scaling: scaling = "100%", ...themeProps } = props;
|
|
652
|
-
$8zHUo$react.useEffect(()=>{
|
|
653
|
-
document.body.classList.add("dark");
|
|
654
|
-
});
|
|
655
652
|
return /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)($f2fd0cbe11b7f0dd$var$ThemeContext.Provider, {
|
|
656
653
|
value: themeProps,
|
|
657
654
|
children: /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)("div", {
|
|
@@ -2070,6 +2067,36 @@ $71fcf48f7e2e9427$export$f8afaea2e9656b91.displayName = "RadioCard";
|
|
|
2070
2067
|
|
|
2071
2068
|
|
|
2072
2069
|
|
|
2070
|
+
function $60c8e601ab261224$export$371ab307eab489c0({ className: className, style: style, classNames: classNames, styles: styles, ...props }) {
|
|
2071
|
+
const state = $8zHUo$react.useContext((0, $e158c5cf7e190200$export$b118023277d4a5c3));
|
|
2072
|
+
if (!state) throw new Error("RadioItem must be used within a RadioGroup");
|
|
2073
|
+
const ref = $8zHUo$react.useRef(null);
|
|
2074
|
+
const { inputProps: inputProps } = (0, $8zHUo$reactaria.useRadio)(props, state, ref);
|
|
2075
|
+
return /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsxs)("label", {
|
|
2076
|
+
style: {
|
|
2077
|
+
...style,
|
|
2078
|
+
...styles?.wrapper
|
|
2079
|
+
},
|
|
2080
|
+
className: (0, $62f1c614c0962470$export$a274e22fb40f762e)(className, classNames?.wrapper, "p-radio-item"),
|
|
2081
|
+
"data-checked": inputProps.checked,
|
|
2082
|
+
children: [
|
|
2083
|
+
/*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $8zHUo$reactaria.VisuallyHidden), {
|
|
2084
|
+
children: /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)("input", {
|
|
2085
|
+
...inputProps,
|
|
2086
|
+
ref: ref
|
|
2087
|
+
})
|
|
2088
|
+
}),
|
|
2089
|
+
props.children
|
|
2090
|
+
]
|
|
2091
|
+
});
|
|
2092
|
+
}
|
|
2093
|
+
|
|
2094
|
+
|
|
2095
|
+
|
|
2096
|
+
|
|
2097
|
+
|
|
2098
|
+
|
|
2099
|
+
|
|
2073
2100
|
|
|
2074
2101
|
|
|
2075
2102
|
|