@producteca/producteca-ui-kit 1.77.2 → 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.
@@ -20682,7 +20682,7 @@ const useOptionTooltip = (label2, isDisabled, tooltipMessage, position2 = "right
20682
20682
  };
20683
20683
  };
20684
20684
  const lg$a = "selectField-module_lg_adYzi";
20685
- const body = "selectField-module_body_KiYeH";
20685
+ const body$1 = "selectField-module_body_KiYeH";
20686
20686
  const sm$b = "selectField-module_sm_QsUwx";
20687
20687
  const md$9 = "selectField-module_md_sCCe1";
20688
20688
  const fullwidth$1 = "selectField-module_fullwidth_c4Kqo";
@@ -20692,7 +20692,7 @@ const styles$B = {
20692
20692
  "producteca-select-field--with-modifier": "selectField-module_producteca-select-field--with-modifier_GN3AL",
20693
20693
  "producteca-select-field-body": "selectField-module_producteca-select-field-body_-gy8S",
20694
20694
  lg: lg$a,
20695
- body,
20695
+ body: body$1,
20696
20696
  "searcher-body": "selectField-module_searcher-body_8Hpy2",
20697
20697
  sm: sm$b,
20698
20698
  md: md$9,
@@ -66280,12 +66280,12 @@ const AsyncContentBase = memo(({
66280
66280
  AsyncContentBase.displayName = "AsyncContent";
66281
66281
  const AsyncContent = withDebugHandlers(AsyncContentBase, "AsyncContent");
66282
66282
  const fullPage = "actionBar-module_fullPage_A4wiw";
66283
- const modal$1 = "actionBar-module_modal_jZfAJ";
66283
+ const modal$2 = "actionBar-module_modal_jZfAJ";
66284
66284
  const page = "actionBar-module_page_Oq8Jb";
66285
66285
  const styles$o = {
66286
66286
  "action-bar": "actionBar-module_action-bar_Y-sjl",
66287
66287
  fullPage,
66288
- modal: modal$1,
66288
+ modal: modal$2,
66289
66289
  page
66290
66290
  };
66291
66291
  const ActionBarBase = ({ variant = "page", saveProps, cancelProps, previousProps }) => {
@@ -67520,11 +67520,15 @@ const Maintenance = ({
67520
67520
  /* @__PURE__ */ jsx$1("p", { children: subtitle2 })
67521
67521
  ] })
67522
67522
  ] }) });
67523
+ const modal$1 = "pickChannelModal-module_modal_YGDD7";
67524
+ const body = "pickChannelModal-module_body_X7L60";
67523
67525
  const sections = "pickChannelModal-module_sections_VGJ6N";
67524
67526
  const section = "pickChannelModal-module_section_BklUc";
67525
67527
  const section__title = "pickChannelModal-module_section__title_fBRgI";
67526
67528
  const section__description = "pickChannelModal-module_section__description_Pgidd";
67527
67529
  const styles$g = {
67530
+ modal: modal$1,
67531
+ body,
67528
67532
  sections,
67529
67533
  section,
67530
67534
  section__title,
@@ -67615,13 +67619,50 @@ const Modal2 = Modal$1;
67615
67619
  Modal2.Title = ModalTitle;
67616
67620
  Modal2.Body = ModalBody;
67617
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
+ };
67618
67659
  const card = "card-module_card_HG0v6";
67619
67660
  const header$1 = "card-module_header_Jtd2-";
67620
67661
  const title$2 = "card-module_title_9LIjW";
67621
67662
  const description = "card-module_description_nxqlH";
67622
67663
  const disabled$2 = "card-module_disabled_Zdzj7";
67623
67664
  const active$2 = "card-module_active_dTNAe";
67624
- const styles$c = {
67665
+ const styles$b = {
67625
67666
  card,
67626
67667
  header: header$1,
67627
67668
  title: title$2,
@@ -67643,55 +67684,18 @@ const CardBase = ({
67643
67684
  {
67644
67685
  style: sx,
67645
67686
  onClick,
67646
- 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 }),
67647
67688
  children: [
67648
- /* @__PURE__ */ jsxs("div", { className: styles$c.header, children: [
67689
+ /* @__PURE__ */ jsxs("div", { className: styles$b.header, children: [
67649
67690
  !!icon2 && icon2,
67650
- !!title2 && /* @__PURE__ */ jsx$1("div", { className: styles$c.title, children: title2 })
67691
+ !!title2 && /* @__PURE__ */ jsx$1("div", { className: styles$b.title, children: title2 })
67651
67692
  ] }),
67652
- !!description2 && /* @__PURE__ */ jsx$1("span", { className: styles$c.description, children: description2 }),
67693
+ !!description2 && /* @__PURE__ */ jsx$1("span", { className: styles$b.description, children: description2 }),
67653
67694
  children
67654
67695
  ]
67655
67696
  }
67656
67697
  );
67657
67698
  const Card = withDebugHandlers(CardBase, "Card");
67658
- const InsertPhotoRoundedIcon = createSvgIcon(/* @__PURE__ */ jsx$1("path", {
67659
- 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"
67660
- }), "InsertPhotoRounded");
67661
- const image = "image-module_image_y02P7";
67662
- const error$1 = "image-module_error_QtQOy";
67663
- const styles$b = {
67664
- "image-container": "image-module_image-container_ZhlhW",
67665
- "show-border": "image-module_show-border_LV5sz",
67666
- image,
67667
- error: error$1
67668
- };
67669
- const Image = ({
67670
- sx,
67671
- src,
67672
- alt,
67673
- imageSx,
67674
- errorIcon,
67675
- showBorder = true
67676
- }) => {
67677
- const [hasError2, setHasError] = useState(false);
67678
- useEffect(() => {
67679
- setHasError(false);
67680
- }, [src]);
67681
- const handleImageError = () => {
67682
- setHasError(true);
67683
- };
67684
- 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(
67685
- "img",
67686
- {
67687
- src,
67688
- alt: alt || src,
67689
- className: styles$b.image,
67690
- style: { ...imageSx },
67691
- onError: handleImageError
67692
- }
67693
- ) });
67694
- };
67695
67699
  const ChannelIcon = ({ iconUrl, name }) => /* @__PURE__ */ jsx$1(
67696
67700
  Image,
67697
67701
  {
@@ -67727,9 +67731,9 @@ const PickChannelModalBase = ({
67727
67731
  titleProps = { title: locale("pickChannelModal.title") },
67728
67732
  generalEditionTitle,
67729
67733
  channelEditionTitle
67730
- }) => /* @__PURE__ */ jsxs(Modal2, { open, onClose, size: "md", fitContent: true, children: [
67734
+ }) => /* @__PURE__ */ jsxs(Modal2, { open, onClose, size: "md", fitContent: true, className: styles$g["modal"], children: [
67731
67735
  /* @__PURE__ */ jsx$1(Modal2.Title, { ...titleProps }),
67732
- /* @__PURE__ */ jsx$1(Modal2.Body, { children: /* @__PURE__ */ jsxs("div", { className: styles$g["sections"], children: [
67736
+ /* @__PURE__ */ jsx$1(Modal2.Body, { className: styles$g["body"], children: /* @__PURE__ */ jsxs("div", { className: styles$g["sections"], children: [
67733
67737
  showGeneralEdition && /* @__PURE__ */ jsxs("section", { className: styles$g["section"], children: [
67734
67738
  generalEditionTitle && /* @__PURE__ */ jsx$1("h3", { className: styles$g["section__title"], children: generalEditionTitle }),
67735
67739
  generalEditionDescription && /* @__PURE__ */ jsx$1("p", { className: styles$g["section__description"], children: generalEditionDescription }),