@kubex/zinc 1.0.117 → 1.0.119

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kubex/zinc",
3
- "version": "1.0.117",
3
+ "version": "1.0.119",
4
4
  "description": "A collection of web components for building web applications based off of @shoelace-style/Shoelace",
5
5
  "keywords": [
6
6
  "web components",
@@ -19,6 +19,7 @@
19
19
  border: 1px solid transparent;
20
20
  line-height: 24px;
21
21
  white-space: nowrap;
22
+ text-transform: uppercase;
22
23
 
23
24
  &--flush {
24
25
  padding: 0;
@@ -1,5 +1,4 @@
1
1
  import {classMap} from 'lit/directives/class-map.js';
2
- import {ifDefined} from 'lit/directives/if-defined.js';
3
2
  import {type CSSResultGroup, html, type PropertyValues, unsafeCSS} from 'lit';
4
3
  import {HasSlotController} from '../../internal/slot';
5
4
  import {property, state} from 'lit/decorators.js';
@@ -22,7 +21,6 @@ interface TabDefinition {
22
21
  uri: string | null;
23
22
  slotName: string | null;
24
23
  selected: boolean;
25
- classes: string | undefined;
26
24
  }
27
25
 
28
26
  /**
@@ -160,7 +158,6 @@ export default class ZnPage extends ZnTabs {
160
158
  const uri = tab.getAttribute('uri');
161
159
  const slotName = uri ? null : `page-tab-${index}`;
162
160
  const selected = tab.hasAttribute('selected');
163
- const classes = tab.getAttribute('class')?.trim() || undefined;
164
161
 
165
162
  tab.id = id;
166
163
 
@@ -168,7 +165,7 @@ export default class ZnPage extends ZnTabs {
168
165
  tab.slot = slotName!;
169
166
  }
170
167
 
171
- tabs.push({id, caption, priority, sourceIndex: index, uri, slotName, selected, classes});
168
+ tabs.push({id, caption, priority, sourceIndex: index, uri, slotName, selected});
172
169
  });
173
170
 
174
171
  this.tabDefinitions = tabs.sort((a, b) => this.compareTabs(a, b));
@@ -411,9 +408,9 @@ export default class ZnPage extends ZnTabs {
411
408
  ${hasNavigation ? html`
412
409
  <zn-navbar hide-one @zn-select="${this.handleNavigationSelect}">
413
410
  ${this.tabDefinitions.map(tab => tab.uri ? html`
414
- <li tab-uri="${tab.uri}" class="${ifDefined(tab.classes)}">${tab.caption}</li>
411
+ <li tab-uri="${tab.uri}">${tab.caption}</li>
415
412
  ` : html`
416
- <li tab="${tab.id}" class="${ifDefined(tab.classes)}">${tab.caption}</li>
413
+ <li tab="${tab.id}">${tab.caption}</li>
417
414
  `)}
418
415
  <slot name="bottom" slot="bottom"></slot>
419
416
  </zn-navbar>