@producteca/producteca-ui-kit 1.77.3 → 1.77.4

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.
@@ -67619,13 +67619,50 @@ const Modal2 = Modal$1;
67619
67619
  Modal2.Title = ModalTitle;
67620
67620
  Modal2.Body = ModalBody;
67621
67621
  Modal2.Footer = ModalFooter;
67622
+ const InsertPhotoRoundedIcon = createSvgIcon(/* @__PURE__ */ jsx$1("path", {
67623
+ d: "M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2M8.9 13.98l2.1 2.53 3.1-3.99c.2-.26.6-.26.8.01l3.51 4.68c.25.33.01.8-.4.8H6.02c-.42 0-.65-.48-.39-.81L8.12 14c.19-.26.57-.27.78-.02"
67624
+ }), "InsertPhotoRounded");
67625
+ const image = "image-module_image_y02P7";
67626
+ const error$1 = "image-module_error_QtQOy";
67627
+ const styles$c = {
67628
+ "image-container": "image-module_image-container_ZhlhW",
67629
+ "show-border": "image-module_show-border_LV5sz",
67630
+ image,
67631
+ error: error$1
67632
+ };
67633
+ const Image = ({
67634
+ sx,
67635
+ src,
67636
+ alt,
67637
+ imageSx,
67638
+ errorIcon,
67639
+ showBorder = true
67640
+ }) => {
67641
+ const [hasError2, setHasError] = useState(false);
67642
+ useEffect(() => {
67643
+ setHasError(false);
67644
+ }, [src]);
67645
+ const handleImageError = () => {
67646
+ setHasError(true);
67647
+ };
67648
+ return /* @__PURE__ */ jsx$1("div", { className: clsx(styles$c["image-container"], { [styles$c["show-border"]]: showBorder }), style: { ...sx }, children: hasError2 ? !!errorIcon ? errorIcon : /* @__PURE__ */ jsx$1(InsertPhotoRoundedIcon, { className: styles$c.error }) : /* @__PURE__ */ jsx$1(
67649
+ "img",
67650
+ {
67651
+ src,
67652
+ alt: alt || src,
67653
+ className: styles$c.image,
67654
+ style: { ...imageSx },
67655
+ onError: handleImageError
67656
+ }
67657
+ ) });
67658
+ };
67622
67659
  const card = "card-module_card_HG0v6";
67623
67660
  const header$1 = "card-module_header_Jtd2-";
67624
67661
  const title$2 = "card-module_title_9LIjW";
67625
67662
  const description = "card-module_description_nxqlH";
67626
67663
  const disabled$2 = "card-module_disabled_Zdzj7";
67627
67664
  const active$2 = "card-module_active_dTNAe";
67628
- const styles$c = {
67665
+ const styles$b = {
67629
67666
  card,
67630
67667
  header: header$1,
67631
67668
  title: title$2,
@@ -67647,55 +67684,18 @@ const CardBase = ({
67647
67684
  {
67648
67685
  style: sx,
67649
67686
  onClick,
67650
- className: clsx(styles$c.card, { [styles$c.disabled]: disabled2, [styles$c.active]: isActive }),
67687
+ className: clsx(styles$b.card, { [styles$b.disabled]: disabled2, [styles$b.active]: isActive }),
67651
67688
  children: [
67652
- /* @__PURE__ */ jsxs("div", { className: styles$c.header, children: [
67689
+ /* @__PURE__ */ jsxs("div", { className: styles$b.header, children: [
67653
67690
  !!icon2 && icon2,
67654
- !!title2 && /* @__PURE__ */ jsx$1("div", { className: styles$c.title, children: title2 })
67691
+ !!title2 && /* @__PURE__ */ jsx$1("div", { className: styles$b.title, children: title2 })
67655
67692
  ] }),
67656
- !!description2 && /* @__PURE__ */ jsx$1("span", { className: styles$c.description, children: description2 }),
67693
+ !!description2 && /* @__PURE__ */ jsx$1("span", { className: styles$b.description, children: description2 }),
67657
67694
  children
67658
67695
  ]
67659
67696
  }
67660
67697
  );
67661
67698
  const Card = withDebugHandlers(CardBase, "Card");
67662
- const InsertPhotoRoundedIcon = createSvgIcon(/* @__PURE__ */ jsx$1("path", {
67663
- d: "M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2M8.9 13.98l2.1 2.53 3.1-3.99c.2-.26.6-.26.8.01l3.51 4.68c.25.33.01.8-.4.8H6.02c-.42 0-.65-.48-.39-.81L8.12 14c.19-.26.57-.27.78-.02"
67664
- }), "InsertPhotoRounded");
67665
- const image = "image-module_image_y02P7";
67666
- const error$1 = "image-module_error_QtQOy";
67667
- const styles$b = {
67668
- "image-container": "image-module_image-container_ZhlhW",
67669
- "show-border": "image-module_show-border_LV5sz",
67670
- image,
67671
- error: error$1
67672
- };
67673
- const Image = ({
67674
- sx,
67675
- src,
67676
- alt,
67677
- imageSx,
67678
- errorIcon,
67679
- showBorder = true
67680
- }) => {
67681
- const [hasError2, setHasError] = useState(false);
67682
- useEffect(() => {
67683
- setHasError(false);
67684
- }, [src]);
67685
- const handleImageError = () => {
67686
- setHasError(true);
67687
- };
67688
- return /* @__PURE__ */ jsx$1("div", { className: clsx(styles$b["image-container"], { [styles$b["show-border"]]: showBorder }), style: { ...sx }, children: hasError2 ? !!errorIcon ? errorIcon : /* @__PURE__ */ jsx$1(InsertPhotoRoundedIcon, { className: styles$b.error }) : /* @__PURE__ */ jsx$1(
67689
- "img",
67690
- {
67691
- src,
67692
- alt: alt || src,
67693
- className: styles$b.image,
67694
- style: { ...imageSx },
67695
- onError: handleImageError
67696
- }
67697
- ) });
67698
- };
67699
67699
  const ChannelIcon = ({ iconUrl, name }) => /* @__PURE__ */ jsx$1(
67700
67700
  Image,
67701
67701
  {