@haiilo/catalyst 12.3.4 → 12.4.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.
@@ -0,0 +1,22 @@
1
+ @use '../variables';
2
+
3
+ .cat-table {
4
+ th {
5
+ font-weight: 600;
6
+ border-bottom: 2px solid variables.cat-token('color.ui.border.default');
7
+ text-align: left;
8
+ vertical-align: bottom;
9
+ }
10
+
11
+ tr {
12
+ border-bottom: 1px solid variables.cat-token('color.ui.border.default');
13
+
14
+ > * {
15
+ padding: 1rem 0.25rem;
16
+ }
17
+
18
+ td {
19
+ vertical-align: top;
20
+ }
21
+ }
22
+ }
@@ -19,6 +19,7 @@
19
19
  @import 'core/nav';
20
20
  @import 'core/notification';
21
21
  @import 'core/typography';
22
+ @import 'core/table';
22
23
 
23
24
  // -- Utils
24
25
  @import 'utils/border';
@@ -7764,6 +7764,7 @@ const CatDropdown = class {
7764
7764
  }
7765
7765
  this._isOpen = null;
7766
7766
  this.trap?.deactivate();
7767
+ this.trap = undefined;
7767
7768
  this.content.classList.remove('show');
7768
7769
  // give CSS transition time to apply
7769
7770
  setTimeout(() => {
@@ -7780,8 +7781,12 @@ const CatDropdown = class {
7780
7781
  this.initTrigger();
7781
7782
  }
7782
7783
  }
7784
+ disconnectedCallback() {
7785
+ this.trap?.deactivate();
7786
+ this.trap = undefined;
7787
+ }
7783
7788
  render() {
7784
- return (index.h(index.Host, { key: '5206026fafea4b080f8890bd89b12885524cccd9' }, index.h("slot", { key: '316ef973ba544f937217de5d27af51e24a55795d', name: "anchor", ref: el => (this.anchorSlot = el) }), index.h("slot", { key: '95b9039dd8a88eb79836abe428bd97403f10d886', name: "trigger", ref: el => (this.triggerSlot = el) }), index.h("div", { key: 'a0067efa6a259faa2c89ed092cb1f467a756e0f3', id: this.contentId, class: { content: true, 'overflow-auto': !this.overflow, justified: this.justify, aligned: !this.justify }, ref: el => (this.content = el) }, index.h("slot", { key: '6904a4c7e24ed5fd28a48735ec82d9cab26e71e2', name: "content" }))));
7789
+ return (index.h(index.Host, { key: 'c76a5d87c676da3b2744c685f5108d390e35691b' }, index.h("slot", { key: 'debf796d465c97d19fdd8bfa7029ccaad0056c28', name: "anchor", ref: el => (this.anchorSlot = el) }), index.h("slot", { key: 'f6780795027087c899c0a2dd8b826c9e23bc4d2b', name: "trigger", ref: el => (this.triggerSlot = el) }), index.h("div", { key: '2ed88e6ea720c329b01c9d935507565a6bcbd2d9', id: this.contentId, class: { content: true, 'overflow-auto': !this.overflow, justified: this.justify, aligned: !this.justify }, ref: el => (this.content = el) }, index.h("slot", { key: '686eacb75cd07a718aeb2cab2e41176116493d4a', name: "content" }))));
7785
7790
  }
7786
7791
  get contentId() {
7787
7792
  return `cat-dropdown-${this.id}`;
@@ -12293,14 +12298,15 @@ const CatTooltip = class {
12293
12298
  }
12294
12299
  disconnectedCallback() {
12295
12300
  this.removeListeners();
12301
+ this.hideTooltip();
12296
12302
  }
12297
12303
  render() {
12298
- return (index.h(index.Host, { key: '57a9ac430370343a6c3d380c0dff2ad5cbe1570a' }, index.h("slot", { key: '1343be0a1563d7c70d5cf43db775be22bb50e93c' }), index.h("div", { key: 'f91d3091272e218e352eb8313614c39540b41973', ref: el => (this.tooltip = el), id: this.id, role: "tooltip", "aria-hidden": !this.open, "aria-live": this.open ? 'polite' : 'off', class: {
12304
+ return (index.h(index.Host, { key: '48ac6350d679c11d238d55442d6455fc38eb44d7' }, index.h("slot", { key: '2ecd767bae2429800d94707498dd0d292b0bf5b4' }), index.h("div", { key: 'c59512dbe2c57622f7827aa143230dc1c5046281', ref: el => (this.tooltip = el), id: this.id, role: "tooltip", "aria-hidden": !this.open, "aria-live": this.open ? 'polite' : 'off', class: {
12299
12305
  tooltip: true,
12300
12306
  'tooltip-hidden': this.inactive,
12301
12307
  'tooltip-round': this.round,
12302
12308
  [`tooltip-${this.size}`]: Boolean(this.size)
12303
- } }, index.h("slot", { key: '8410c56713fa2182bde55ed6053667fc2bbf5e33', name: "content" }, index.h("p", { key: '894c80f4b0a2831ca5f21cd2063ab9fe4d15df53' }, this.content)))));
12309
+ } }, index.h("slot", { key: 'a0bdd025ca40adac969daef4a0b06b9aa8452fac', name: "content" }, index.h("p", { key: '83786352e3219af4e7cde38a1c8247042d44c66a' }, this.content)))));
12304
12310
  }
12305
12311
  addListeners() {
12306
12312
  if (isTouchDevice) {