@parrot-co/parrot-ui 0.1.13 → 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 +33 -7
- package/dist/main.js.map +1 -1
- package/dist/module.js +33 -7
- package/dist/module.js.map +1 -1
- package/dist/types.d.ts +1 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +10 -10
- package/styles.css +1 -1
package/dist/module.js
CHANGED
|
@@ -351,10 +351,6 @@ const $074ec3363f6c932f$export$b4e0e71242920c6a = {
|
|
|
351
351
|
pill: "full",
|
|
352
352
|
rounded: undefined
|
|
353
353
|
};
|
|
354
|
-
function $074ec3363f6c932f$var$ps(styles) {
|
|
355
|
-
// 1. iterate over the keys of the styles object
|
|
356
|
-
// 2. for each key, check is is valid css property
|
|
357
|
-
}
|
|
358
354
|
|
|
359
355
|
|
|
360
356
|
function $0ad0bc75b5eb16a6$export$1c4d39b152e0f791(deprecatedProp, newProp, value) {
|
|
@@ -2004,6 +2000,35 @@ $e3711da06539818f$export$f8afaea2e9656b91.displayName = "RadioCard";
|
|
|
2004
2000
|
|
|
2005
2001
|
|
|
2006
2002
|
|
|
2003
|
+
function $f95f242f44183002$export$371ab307eab489c0({ className: className, style: style, classNames: classNames, styles: styles, ...props }) {
|
|
2004
|
+
const state = $hgUW1$useContext((0, $e00a258f2e8c7774$export$b118023277d4a5c3));
|
|
2005
|
+
if (!state) throw new Error("RadioItem must be used within a RadioGroup");
|
|
2006
|
+
const ref = $hgUW1$useRef(null);
|
|
2007
|
+
const { inputProps: inputProps } = (0, $hgUW1$useRadio)(props, state, ref);
|
|
2008
|
+
return /*#__PURE__*/ (0, $hgUW1$jsxs)("label", {
|
|
2009
|
+
style: {
|
|
2010
|
+
...style,
|
|
2011
|
+
...styles?.wrapper
|
|
2012
|
+
},
|
|
2013
|
+
className: (0, $cce662c1d2ec881b$export$a274e22fb40f762e)(className, classNames?.wrapper, "p-radio-item"),
|
|
2014
|
+
"data-checked": inputProps.checked,
|
|
2015
|
+
children: [
|
|
2016
|
+
/*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$VisuallyHidden), {
|
|
2017
|
+
children: /*#__PURE__*/ (0, $hgUW1$jsx)("input", {
|
|
2018
|
+
...inputProps,
|
|
2019
|
+
ref: ref
|
|
2020
|
+
})
|
|
2021
|
+
}),
|
|
2022
|
+
props.children
|
|
2023
|
+
]
|
|
2024
|
+
});
|
|
2025
|
+
}
|
|
2026
|
+
|
|
2027
|
+
|
|
2028
|
+
|
|
2029
|
+
|
|
2030
|
+
|
|
2031
|
+
|
|
2007
2032
|
|
|
2008
2033
|
|
|
2009
2034
|
|
|
@@ -2015,14 +2040,15 @@ $e3711da06539818f$export$f8afaea2e9656b91.displayName = "RadioCard";
|
|
|
2015
2040
|
|
|
2016
2041
|
|
|
2017
2042
|
|
|
2018
|
-
const $c700d45659d35204$export$3288d34c523a1192 = /*#__PURE__*/ (0, $hgUW1$react).forwardRef(({ prepend: prepend, append: append, children: children, hashValue: hashValue, color: color, size: size = "sm", shape: shape = "rounded", variant: variant = "light", className: className, ...props }, ref)=>{
|
|
2043
|
+
const $c700d45659d35204$export$3288d34c523a1192 = /*#__PURE__*/ (0, $hgUW1$react).forwardRef(({ prepend: prepend, append: append, children: children, hashValue: hashValue, color: color, size: size = "sm", shape: /**@deprecated use radius instead */ shape = "rounded", variant: variant = "light", className: className, radius: radius = "full", ...props }, ref)=>{
|
|
2044
|
+
(0, $0ad0bc75b5eb16a6$export$1c4d39b152e0f791)("shape", "radius", shape);
|
|
2019
2045
|
const randomColor = (0, $hgUW1$react).useMemo(()=>{
|
|
2020
2046
|
if (hashValue) return (0, $0ad0bc75b5eb16a6$export$e4369cabd7e84cd9)(hashValue);
|
|
2021
2047
|
return "gray";
|
|
2022
2048
|
}, []);
|
|
2023
2049
|
return /*#__PURE__*/ (0, $hgUW1$jsxs)("span", {
|
|
2024
2050
|
className: (0, $cce662c1d2ec881b$export$a274e22fb40f762e)(className, "p-tag"),
|
|
2025
|
-
"data-radius":
|
|
2051
|
+
"data-radius": radius,
|
|
2026
2052
|
"data-size": size,
|
|
2027
2053
|
"data-color": color ?? randomColor,
|
|
2028
2054
|
"data-variant": variant,
|
|
@@ -2562,7 +2588,7 @@ $48aceaf3289ec325$export$7edc06cf1783b30f.displayName = "DateInput";
|
|
|
2562
2588
|
|
|
2563
2589
|
|
|
2564
2590
|
|
|
2565
|
-
const $55bcc0e5986993c4$export$e2255cf6045e8d47 = /*#__PURE__*/ $hgUW1$forwardRef(({ src: src, alt: alt, name: name, color: color, variant: variant = "light", fallback: fallback, children: children, size: size = "md", shape: shape, className: className, radius: radius = "
|
|
2591
|
+
const $55bcc0e5986993c4$export$e2255cf6045e8d47 = /*#__PURE__*/ $hgUW1$forwardRef(({ src: src, alt: alt, name: name, color: color, variant: variant = "light", fallback: fallback, children: children, size: size = "md", shape: shape, className: className, radius: radius = "full", classNames: classNames, styles: styles, style: style, ...props }, ref)=>{
|
|
2566
2592
|
const [imageError, setImageError] = $hgUW1$useState(false);
|
|
2567
2593
|
const theme = (0, $5fc28f26e128d5c0$export$93d4e7f90805808f)();
|
|
2568
2594
|
function getAvatarRadius() {
|