@kodaris/krubble-components 1.0.6 → 1.0.7
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/custom-elements.json +63 -24
- package/dist/krubble.bundled.js +39 -2
- package/dist/krubble.bundled.js.map +1 -1
- package/dist/krubble.bundled.min.js +31 -12
- package/dist/krubble.bundled.min.js.map +1 -1
- package/dist/krubble.umd.js +39 -2
- package/dist/krubble.umd.js.map +1 -1
- package/dist/krubble.umd.min.js +41 -22
- package/dist/krubble.umd.min.js.map +1 -1
- package/dist/tabs/tabs.d.ts +8 -0
- package/dist/tabs/tabs.d.ts.map +1 -1
- package/dist/tabs/tabs.js +39 -2
- package/dist/tabs/tabs.js.map +1 -1
- package/package.json +1 -1
package/dist/krubble.umd.js
CHANGED
|
@@ -1654,6 +1654,17 @@
|
|
|
1654
1654
|
* ```
|
|
1655
1655
|
*/
|
|
1656
1656
|
exports.KRTabGroup = class KRTabGroup extends i$2 {
|
|
1657
|
+
constructor() {
|
|
1658
|
+
super(...arguments);
|
|
1659
|
+
/**
|
|
1660
|
+
* Whether tabs should stretch to fill the full width evenly
|
|
1661
|
+
*/
|
|
1662
|
+
this.justified = false;
|
|
1663
|
+
/**
|
|
1664
|
+
* Size of the tabs: 'small' | 'medium' | 'large'
|
|
1665
|
+
*/
|
|
1666
|
+
this.size = 'medium';
|
|
1667
|
+
}
|
|
1657
1668
|
updated(changes) {
|
|
1658
1669
|
if (changes.has('activeTabId')) {
|
|
1659
1670
|
this._updateActiveTab();
|
|
@@ -1744,6 +1755,7 @@
|
|
|
1744
1755
|
class=${e$1({
|
|
1745
1756
|
label: true,
|
|
1746
1757
|
'label--active': tab.id === this.activeTabId,
|
|
1758
|
+
'label--justified': this.justified,
|
|
1747
1759
|
})}
|
|
1748
1760
|
role="tab"
|
|
1749
1761
|
data-tab-id=${tab.id}
|
|
@@ -1788,7 +1800,7 @@
|
|
|
1788
1800
|
.header {
|
|
1789
1801
|
display: flex;
|
|
1790
1802
|
align-items: stretch;
|
|
1791
|
-
border-bottom: 1px solid
|
|
1803
|
+
border-bottom: 1px solid #e5e7eb;
|
|
1792
1804
|
overflow-x: auto;
|
|
1793
1805
|
scrollbar-width: none;
|
|
1794
1806
|
-ms-overflow-style: none;
|
|
@@ -1835,6 +1847,23 @@
|
|
|
1835
1847
|
cursor: not-allowed;
|
|
1836
1848
|
}
|
|
1837
1849
|
|
|
1850
|
+
.label--justified {
|
|
1851
|
+
flex: 1;
|
|
1852
|
+
justify-content: center;
|
|
1853
|
+
}
|
|
1854
|
+
|
|
1855
|
+
:host([size="small"]) .label {
|
|
1856
|
+
padding: 8px 12px;
|
|
1857
|
+
font-size: 13px;
|
|
1858
|
+
gap: 6px;
|
|
1859
|
+
}
|
|
1860
|
+
|
|
1861
|
+
:host([size="large"]) .label {
|
|
1862
|
+
padding: 16px 20px;
|
|
1863
|
+
font-size: 16px;
|
|
1864
|
+
gap: 10px;
|
|
1865
|
+
}
|
|
1866
|
+
|
|
1838
1867
|
.label-icon {
|
|
1839
1868
|
display: flex;
|
|
1840
1869
|
align-items: center;
|
|
@@ -1878,8 +1907,10 @@
|
|
|
1878
1907
|
outline-offset: 2px;
|
|
1879
1908
|
}
|
|
1880
1909
|
|
|
1910
|
+
|
|
1881
1911
|
.content {
|
|
1882
|
-
|
|
1912
|
+
flex: 1;
|
|
1913
|
+
overflow: auto;
|
|
1883
1914
|
}
|
|
1884
1915
|
|
|
1885
1916
|
/* Default slot styles - kr-tab children show/hide via their own active attribute */
|
|
@@ -1895,6 +1926,12 @@
|
|
|
1895
1926
|
__decorate$4([
|
|
1896
1927
|
n$1({ type: String, attribute: 'active-tab-id' })
|
|
1897
1928
|
], exports.KRTabGroup.prototype, "activeTabId", void 0);
|
|
1929
|
+
__decorate$4([
|
|
1930
|
+
n$1({ type: Boolean })
|
|
1931
|
+
], exports.KRTabGroup.prototype, "justified", void 0);
|
|
1932
|
+
__decorate$4([
|
|
1933
|
+
n$1({ type: String, reflect: true })
|
|
1934
|
+
], exports.KRTabGroup.prototype, "size", void 0);
|
|
1898
1935
|
exports.KRTabGroup = __decorate$4([
|
|
1899
1936
|
t$1('kr-tab-group')
|
|
1900
1937
|
], exports.KRTabGroup);
|