@tesouro/embedded-components-react 0.11.96 → 0.11.100

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/index.css CHANGED
@@ -1234,6 +1234,9 @@
1234
1234
  .ttw\:max-w-\[calc\(100vw-32px\)\] {
1235
1235
  max-width: calc(100vw - 32px);
1236
1236
  }
1237
+ .ttw\:max-w-\[min\(20rem\,var\(--radix-tooltip-content-available-width\)\)\] {
1238
+ max-width: min(20rem, var(--radix-tooltip-content-available-width));
1239
+ }
1237
1240
  .ttw\:max-w-full {
1238
1241
  max-width: 100%;
1239
1242
  }
package/dist/index.d.ts CHANGED
@@ -592,6 +592,8 @@ interface FilterTagLabels {
592
592
  edit: string;
593
593
  /** Accessible name for the × dismiss button. `{label}` is substituted. */
594
594
  remove: string;
595
+ /** Accessible name for the × when `fullLabel` is set. `{label}` is the full text. */
596
+ removeFull: string;
595
597
  }
596
598
 
597
599
  interface DateRangePickerLabels {
@@ -57,6 +57,8 @@ interface FilterTagLabels {
57
57
  edit: string;
58
58
  /** Accessible name for the × dismiss button. `{label}` is substituted. */
59
59
  remove: string;
60
+ /** Accessible name for the × when `fullLabel` is set. `{label}` is the full text. */
61
+ removeFull: string;
60
62
  }
61
63
 
62
64
  interface DateRangePickerLabels {
@@ -1,5 +1,5 @@
1
1
  // ../../libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js
2
- var e = "@tesouro/embedded-components-react", t = "0.11.96", n = "ae941ef1936ebd9e4739574cbebe823f27ebc02d", r = Object.freeze({
2
+ var e = "@tesouro/embedded-components-react", t = "0.11.100", n = "94a67ef50666fa0f3603710213b30dc0b51730ad", r = Object.freeze({
3
3
  library_name: e,
4
4
  library_version: t,
5
5
  library_sha: n
@@ -17439,36 +17439,59 @@ function OM({ activeCount: e, size: t = "sm", labels: n, className: r, ...i }) {
17439
17439
  }
17440
17440
  var kM = {
17441
17441
  edit: "Edit {label}",
17442
- remove: "Remove {label} filter"
17442
+ remove: "Remove {label} filter",
17443
+ removeFull: "Remove filter {label}"
17443
17444
  };
17444
- function AM({ label: e, count: t, variant: n = "default", onLabelClick: r, onDismiss: i, isActive: a = !1, labels: o, className: s, disabled: c, ...l }) {
17445
- let u = {
17445
+ function AM({ label: e, fullLabel: t, count: n, variant: r = "default", onLabelClick: i, onDismiss: a, isActive: o = !1, labels: s, className: c, disabled: l, ...u }) {
17446
+ let d = {
17446
17447
  ...kM,
17447
- ...o
17448
- }, d = t === void 0 ? e : `${e} (${t})`;
17449
- return n === "preset" ? /* @__PURE__ */ v("button", {
17448
+ ...s
17449
+ }, f = t !== void 0, p = n === void 0 ? e : `${e} (${n})`, m = f ? _y(d.removeFull, { label: t }) : _y(d.remove, { label: e }), h = f ? /* @__PURE__ */ v(g, { children: [/* @__PURE__ */ _("span", {
17450
+ "aria-hidden": "true",
17451
+ children: p
17452
+ }), /* @__PURE__ */ _("span", {
17453
+ className: "ttw:sr-only",
17454
+ children: t
17455
+ })] }) : p, y = (e, n = !1) => f ? /* @__PURE__ */ _(Nw, { children: /* @__PURE__ */ v(Pw, { children: [/* @__PURE__ */ _(Fw, {
17456
+ asChild: !0,
17457
+ children: n ? /* @__PURE__ */ _("span", {
17458
+ tabIndex: 0,
17459
+ className: Y("ttw:inline-flex ttw:min-w-0 ttw:rounded-md", "ttw:focus-visible:outline-2 ttw:focus-visible:outline-offset-2 ttw:focus-visible:outline-ring"),
17460
+ children: e
17461
+ }) : e
17462
+ }), /* @__PURE__ */ _(Iw, {
17463
+ sideOffset: 4,
17464
+ collisionPadding: 8,
17465
+ className: "ttw:max-w-[min(20rem,var(--radix-tooltip-content-available-width))] ttw:wrap-break-word",
17466
+ children: t
17467
+ })] }) }) : e;
17468
+ return r === "preset" ? y(/* @__PURE__ */ v("button", {
17450
17469
  type: "button",
17451
- className: Y("ttw:inline-flex ttw:items-center ttw:gap-1", "ttw:h-8 ttw:px-3 ttw:rounded-md", "ttw:border ttw:text-sm ttw:font-medium", "ttw:transition-colors ttw:cursor-pointer", "ttw:focus-visible:outline-none ttw:focus-visible:border-ring", "ttw:focus-visible:ring-[3px] ttw:focus-visible:ring-ring/50", "ttw:disabled:pointer-events-none ttw:disabled:opacity-50", a ? "ttw:border-primary ttw:bg-primary/10 ttw:text-primary ttw:hover:bg-primary/15" : "ttw:border-input ttw:bg-background ttw:text-foreground ttw:hover:bg-accent ttw:hover:text-accent-foreground", s),
17452
- disabled: c,
17453
- ...l,
17454
- children: [/* @__PURE__ */ _("span", { children: d }), /* @__PURE__ */ _(z, { className: "ttw:size-4 ttw:shrink-0" })]
17455
- }) : /* @__PURE__ */ v("div", {
17456
- className: Y("ttw:inline-flex ttw:items-center ttw:gap-0.5", "ttw:h-8 ttw:pl-3 ttw:pr-1 ttw:py-1 ttw:rounded-md", "ttw:bg-primary/10 ttw:text-sm ttw:font-medium", s),
17457
- children: [r ? /* @__PURE__ */ _("button", {
17470
+ className: Y("ttw:inline-flex ttw:items-center ttw:gap-1", "ttw:h-8 ttw:px-3 ttw:rounded-md", "ttw:border ttw:text-sm ttw:font-medium", "ttw:transition-colors ttw:cursor-pointer", "ttw:focus-visible:outline-none ttw:focus-visible:border-ring", "ttw:focus-visible:ring-[3px] ttw:focus-visible:ring-ring/50", "ttw:disabled:pointer-events-none ttw:disabled:opacity-50", o ? "ttw:border-primary ttw:bg-primary/10 ttw:text-primary ttw:hover:bg-primary/15" : "ttw:border-input ttw:bg-background ttw:text-foreground ttw:hover:bg-accent ttw:hover:text-accent-foreground", c),
17471
+ disabled: l,
17472
+ ...u,
17473
+ children: [/* @__PURE__ */ _("span", { children: h }), /* @__PURE__ */ _(z, { className: "ttw:size-4 ttw:shrink-0" })]
17474
+ }), l) : /* @__PURE__ */ v("div", {
17475
+ className: Y("ttw:inline-flex ttw:items-center ttw:gap-0.5", "ttw:h-8 ttw:pl-3 ttw:pr-1 ttw:py-1 ttw:rounded-md", "ttw:bg-primary/10 ttw:text-sm ttw:font-medium", c),
17476
+ children: [i ? y(/* @__PURE__ */ _("button", {
17458
17477
  type: "button",
17459
- onClick: r,
17460
- disabled: c,
17461
- "aria-label": _y(u.edit, { label: e }),
17462
- className: Y("ttw:min-w-0 ttw:flex-1 ttw:text-left ttw:truncate", "ttw:rounded-md ttw:border-0 ttw:bg-transparent ttw:p-0 ttw:m-0", "ttw:cursor-pointer ttw:font-[inherit] ttw:text-inherit", "ttw:hover:bg-primary/15 ttw:transition-colors", "ttw:focus-visible:outline-none ttw:focus-visible:ring-2 ttw:focus-visible:ring-ring"),
17463
- children: d
17464
- }) : /* @__PURE__ */ _("span", {
17478
+ onClick: i,
17479
+ disabled: l,
17480
+ "aria-label": _y(d.edit, { label: t ?? e }),
17481
+ className: Y("ttw:min-w-0 ttw:flex-1 ttw:text-left ttw:truncate", "ttw:rounded-md ttw:border-0 ttw:bg-transparent ttw:p-0 ttw:m-0", "ttw:cursor-pointer ttw:font-[inherit] ttw:text-inherit", "ttw:hover:bg-primary/15 ttw:transition-colors", "ttw:focus-visible:outline-none ttw:focus-visible:ring-2 ttw:focus-visible:ring-ring", "ttw:disabled:pointer-events-none"),
17482
+ children: p
17483
+ }), l) : f ? y(/* @__PURE__ */ _("span", {
17484
+ tabIndex: 0,
17485
+ className: Y("ttw:shrink-0 ttw:rounded-md", "ttw:focus-visible:outline-2 ttw:focus-visible:outline-offset-2 ttw:focus-visible:outline-ring"),
17486
+ children: h
17487
+ })) : /* @__PURE__ */ _("span", {
17465
17488
  className: "ttw:shrink-0",
17466
- children: d
17467
- }), i && /* @__PURE__ */ _("button", {
17489
+ children: p
17490
+ }), a && /* @__PURE__ */ _("button", {
17468
17491
  type: "button",
17469
- onClick: i,
17470
- disabled: c,
17471
- "aria-label": _y(u.remove, { label: e }),
17492
+ onClick: a,
17493
+ disabled: l,
17494
+ "aria-label": m,
17472
17495
  className: Y("ttw:inline-flex ttw:items-center ttw:justify-center", "ttw:size-6 ttw:rounded-sm ttw:cursor-pointer", "ttw:transition-colors ttw:disabled:cursor-not-allowed ttw:disabled:opacity-50", "ttw:hover:bg-primary ttw:hover:text-primary-foreground", "ttw:focus-visible:outline-none ttw:focus-visible:ring-2", "ttw:focus-visible:ring-ring"),
17473
17496
  children: /* @__PURE__ */ _(pe, { className: "ttw:size-4" })
17474
17497
  })]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tesouro/embedded-components-react",
3
- "version": "0.11.96",
3
+ "version": "0.11.100",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "sideEffects": [