@livechat/design-system-react-components 1.13.0 → 1.14.0

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/dsrc.es.js CHANGED
@@ -754,7 +754,6 @@ const Rc = {
754
754
  "btn--disabled": "lc-Button-module__btn--disabled___lXBav",
755
755
  "btn--full-width": "lc-Button-module__btn--full-width___kdbAr",
756
756
  "btn--compact": "lc-Button-module__btn--compact___4eptQ",
757
- "btn--icon-only": "lc-Button-module__btn--icon-only___bF5pW",
758
757
  "btn--large": "lc-Button-module__btn--large___lb-z6",
759
758
  "btn--basic": "lc-Button-module__btn--basic___Jc2gD",
760
759
  "btn--primary": "lc-Button-module__btn--primary___ajbjQ",
@@ -774,6 +773,7 @@ const Rc = {
774
773
  btn__icon: r_,
775
774
  "btn__icon--left": "lc-Button-module__btn__icon--left___H68zu",
776
775
  "btn__icon--right": "lc-Button-module__btn__icon--right___fHr3D",
776
+ "btn--icon-only": "lc-Button-module__btn--icon-only___bF5pW",
777
777
  "btn--icon-only--bg": "lc-Button-module__btn--icon-only--bg___X-4V2"
778
778
  }, ge = "btn", U = e.forwardRef(
779
779
  (g, f) => {
@@ -2340,7 +2340,6 @@ const tl = (t) => {
2340
2340
  "details-card__float-button--open": "lc-DetailsCard-module__details-card__float-button--open___u9Kx2",
2341
2341
  "details-card--with-divider": "lc-DetailsCard-module__details-card--with-divider___xyXvc",
2342
2342
  "details-card__button": "lc-DetailsCard-module__details-card__button___FWUG5",
2343
- "details-card__button--open": "lc-DetailsCard-module__details-card__button--open___lVmrQ",
2344
2343
  "details-card__button__icon": "lc-DetailsCard-module__details-card__button__icon___iOlKd",
2345
2344
  "details-card__button__icon--open": "lc-DetailsCard-module__details-card__button__icon--open___TI0Xq",
2346
2345
  "details-card__button--hide": "lc-DetailsCard-module__details-card__button--hide___vdQhz",
@@ -2348,7 +2347,7 @@ const tl = (t) => {
2348
2347
  "details-card__label--with-margin": "lc-DetailsCard-module__details-card__label--with-margin___w2S8X",
2349
2348
  "details-card__label__left-node": "lc-DetailsCard-module__details-card__label__left-node___Slmc6",
2350
2349
  "details-card__label__right-node": "lc-DetailsCard-module__details-card__label__right-node___ZrOLh",
2351
- "details-card__label__text": "lc-DetailsCard-module__details-card__label__text___U074u",
2350
+ "details-card__label__content": "lc-DetailsCard-module__details-card__label__content___Cfip3",
2352
2351
  "details-card__float-button": "lc-DetailsCard-module__details-card__float-button___zHJ-T",
2353
2352
  "details-card__float-button--closed": "lc-DetailsCard-module__details-card__float-button--closed___E2e7C",
2354
2353
  "details-card__float-button__icon": "lc-DetailsCard-module__details-card__float-button__icon___1tKUL",
@@ -2374,16 +2373,16 @@ const tl = (t) => {
2374
2373
  L[O],
2375
2374
  c && L[`${O}--with-divider`],
2376
2375
  a
2377
- ), b = s && d, k = () => {
2378
- p((v) => !v), i == null || i();
2376
+ ), b = s && d, k = typeof o == "string", v = () => {
2377
+ p(($) => !$), i == null || i();
2379
2378
  };
2380
2379
  return e.useEffect(() => {
2381
- const v = !!window.IntersectionObserver;
2382
- if (f.current && v) {
2383
- const $ = new ResizeObserver(() => {
2380
+ const $ = !!window.IntersectionObserver;
2381
+ if (f.current && $) {
2382
+ const w = new ResizeObserver(() => {
2384
2383
  f.current && u !== f.current.offsetHeight && h(f.current.offsetHeight);
2385
2384
  });
2386
- return $.observe(f.current), () => $.disconnect();
2385
+ return w.observe(f.current), () => w.disconnect();
2387
2386
  }
2388
2387
  }, [f]), /* @__PURE__ */ e.createElement("div", { className: g }, /* @__PURE__ */ e.createElement(
2389
2388
  "button",
@@ -2393,7 +2392,7 @@ const tl = (t) => {
2393
2392
  b && L[`${O}__button--hide`],
2394
2393
  d && L[`${O}__button--open`]
2395
2394
  ),
2396
- onClick: k,
2395
+ onClick: v,
2397
2396
  "aria-expanded": d,
2398
2397
  "aria-hidden": b,
2399
2398
  "data-testid": "details-card-button"
@@ -2407,7 +2406,14 @@ const tl = (t) => {
2407
2406
  )
2408
2407
  },
2409
2408
  r && /* @__PURE__ */ e.createElement("div", { className: L[`${O}__label__left-node`] }, r),
2410
- /* @__PURE__ */ e.createElement(Ze, { size: "xs", className: L[`${O}__label__text`] }, o),
2409
+ k ? /* @__PURE__ */ e.createElement(
2410
+ Ze,
2411
+ {
2412
+ size: "xs",
2413
+ className: L[`${O}__label__content`]
2414
+ },
2415
+ o
2416
+ ) : /* @__PURE__ */ e.createElement("div", { className: L[`${O}__label__content`] }, o),
2411
2417
  _ && /* @__PURE__ */ e.createElement("div", { className: L[`${O}__label__right-node`] }, _)
2412
2418
  ),
2413
2419
  !s && /* @__PURE__ */ e.createElement(
@@ -2439,7 +2445,7 @@ const tl = (t) => {
2439
2445
  !d && L[`${O}__float-button--closed`],
2440
2446
  d && L[`${O}__float-button--open`]
2441
2447
  ),
2442
- onClick: k,
2448
+ onClick: v,
2443
2449
  "aria-expanded": d,
2444
2450
  "data-testid": "details-card-floating-button"
2445
2451
  }