@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.
- package/dist/catalyst/catalyst.css +21 -0
- package/dist/catalyst/catalyst.esm.js +1 -1
- package/dist/catalyst/{p-58a193ff.entry.js → p-2b38c9b7.entry.js} +2 -2
- package/dist/catalyst/p-2b38c9b7.entry.js.map +1 -0
- package/dist/catalyst/scss/core/_table.scss +22 -0
- package/dist/catalyst/scss/index.scss +1 -0
- package/dist/cjs/cat-alert_30.cjs.entry.js +9 -3
- package/dist/cjs/cat-alert_30.cjs.entry.js.map +1 -1
- package/dist/collection/components/cat-dropdown/cat-dropdown.js +6 -1
- package/dist/collection/components/cat-dropdown/cat-dropdown.js.map +1 -1
- package/dist/collection/components/cat-tooltip/cat-tooltip.js +3 -2
- package/dist/collection/components/cat-tooltip/cat-tooltip.js.map +1 -1
- package/dist/collection/scss/core/_table.scss +22 -0
- package/dist/collection/scss/index.scss +1 -0
- package/dist/components/cat-dropdown2.js +6 -1
- package/dist/components/cat-dropdown2.js.map +1 -1
- package/dist/components/cat-tooltip.js +3 -2
- package/dist/components/cat-tooltip.js.map +1 -1
- package/dist/esm/cat-alert_30.entry.js +9 -3
- package/dist/esm/cat-alert_30.entry.js.map +1 -1
- package/dist/types/components/cat-dropdown/cat-dropdown.d.ts +1 -0
- package/package.json +2 -2
- package/dist/catalyst/p-58a193ff.entry.js.map +0 -1
|
@@ -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
|
+
}
|
|
@@ -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: '
|
|
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: '
|
|
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: '
|
|
12309
|
+
} }, index.h("slot", { key: 'a0bdd025ca40adac969daef4a0b06b9aa8452fac', name: "content" }, index.h("p", { key: '83786352e3219af4e7cde38a1c8247042d44c66a' }, this.content)))));
|
|
12304
12310
|
}
|
|
12305
12311
|
addListeners() {
|
|
12306
12312
|
if (isTouchDevice) {
|