@parrot-co/parrot-ui 0.1.13 → 0.1.14

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 CHANGED
@@ -418,10 +418,6 @@ const $8ddcc69383feb36a$export$b4e0e71242920c6a = {
418
418
  pill: "full",
419
419
  rounded: undefined
420
420
  };
421
- function $8ddcc69383feb36a$var$ps(styles) {
422
- // 1. iterate over the keys of the styles object
423
- // 2. for each key, check is is valid css property
424
- }
425
421
 
426
422
 
427
423
  function $4af7da5c7dd0b9c2$export$1c4d39b152e0f791(deprecatedProp, newProp, value) {
@@ -653,6 +649,9 @@ function $eae337549f49a5a2$export$450c36e0b0e62ccd() {
653
649
  const $f2fd0cbe11b7f0dd$var$ThemeContext = /*#__PURE__*/ $8zHUo$react.createContext(null);
654
650
  function $f2fd0cbe11b7f0dd$export$d8964aec282183a3(props) {
655
651
  const { children: children, className: className, scaling: scaling = "100%", ...themeProps } = props;
652
+ $8zHUo$react.useEffect(()=>{
653
+ document.body.classList.add("dark");
654
+ });
656
655
  return /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)($f2fd0cbe11b7f0dd$var$ThemeContext.Provider, {
657
656
  value: themeProps,
658
657
  children: /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)("div", {
@@ -2081,15 +2080,15 @@ $71fcf48f7e2e9427$export$f8afaea2e9656b91.displayName = "RadioCard";
2081
2080
 
2082
2081
 
2083
2082
 
2084
-
2085
- const $cfadb0728cf907ff$export$3288d34c523a1192 = /*#__PURE__*/ (0, ($parcel$interopDefault($8zHUo$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)=>{
2083
+ const $cfadb0728cf907ff$export$3288d34c523a1192 = /*#__PURE__*/ (0, ($parcel$interopDefault($8zHUo$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)=>{
2084
+ (0, $4af7da5c7dd0b9c2$export$1c4d39b152e0f791)("shape", "radius", shape);
2086
2085
  const randomColor = (0, ($parcel$interopDefault($8zHUo$react))).useMemo(()=>{
2087
2086
  if (hashValue) return (0, $4af7da5c7dd0b9c2$export$e4369cabd7e84cd9)(hashValue);
2088
2087
  return "gray";
2089
2088
  }, []);
2090
2089
  return /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsxs)("span", {
2091
2090
  className: (0, $62f1c614c0962470$export$a274e22fb40f762e)(className, "p-tag"),
2092
- "data-radius": (0, $8ddcc69383feb36a$export$b4e0e71242920c6a)[shape],
2091
+ "data-radius": radius,
2093
2092
  "data-size": size,
2094
2093
  "data-color": color ?? randomColor,
2095
2094
  "data-variant": variant,
@@ -2629,7 +2628,7 @@ $e0a58c83d4c36e4e$export$7edc06cf1783b30f.displayName = "DateInput";
2629
2628
 
2630
2629
 
2631
2630
 
2632
- const $2fdd5844efb4cca1$export$e2255cf6045e8d47 = /*#__PURE__*/ $8zHUo$react.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 = "lg", classNames: classNames, styles: styles, style: style, ...props }, ref)=>{
2631
+ const $2fdd5844efb4cca1$export$e2255cf6045e8d47 = /*#__PURE__*/ $8zHUo$react.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)=>{
2633
2632
  const [imageError, setImageError] = $8zHUo$react.useState(false);
2634
2633
  const theme = (0, $f2fd0cbe11b7f0dd$export$93d4e7f90805808f)();
2635
2634
  function getAvatarRadius() {