@florid-kit/components 0.9.37 → 0.9.39

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.
@@ -1,6 +1,6 @@
1
1
  import { LitElement } from 'lit';
2
2
 
3
- type TagType = "" | "nostock" | "lowstock" | "instock" | "percentage";
3
+ type TagType = "" | "nostock" | "lowstock" | "instock" | "percentage" | "eyebrow";
4
4
  type bgstyle = "background-emphasis" | "background-white";
5
5
  export declare class OccitaneTag extends LitElement {
6
6
  static styles: import('lit').CSSResult;
package/index.js CHANGED
@@ -1328,12 +1328,14 @@
1328
1328
  background-color: var(--color-content-success);
1329
1329
  }
1330
1330
 
1331
- :host(:not([type$="percentage"])) .tag {
1332
- @media (max-width: 480px) {
1333
- overflow: hidden;
1334
- white-space: nowrap;
1335
- text-overflow: ellipsis;
1336
- max-width: 19ch;
1331
+ :host([type="eyebrow"]) .tag {
1332
+ text-transform: lowercase;
1333
+ overflow: hidden;
1334
+ white-space: nowrap;
1335
+ text-overflow: ellipsis;
1336
+
1337
+ &::first-letter {
1338
+ text-transform: uppercase;
1337
1339
  }
1338
1340
  }
1339
1341
 
package/index.mjs CHANGED
@@ -2853,12 +2853,14 @@ mt.styles = v`
2853
2853
  background-color: var(--color-content-success);
2854
2854
  }
2855
2855
 
2856
- :host(:not([type$="percentage"])) .tag {
2857
- @media (max-width: 480px) {
2858
- overflow: hidden;
2859
- white-space: nowrap;
2860
- text-overflow: ellipsis;
2861
- max-width: 19ch;
2856
+ :host([type="eyebrow"]) .tag {
2857
+ text-transform: lowercase;
2858
+ overflow: hidden;
2859
+ white-space: nowrap;
2860
+ text-overflow: ellipsis;
2861
+
2862
+ &::first-letter {
2863
+ text-transform: uppercase;
2862
2864
  }
2863
2865
  }
2864
2866
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@florid-kit/components",
3
- "version": "0.9.37",
3
+ "version": "0.9.39",
4
4
  "main": "index.js",
5
5
  "module": "index.mjs",
6
6
  "typings": "index.d.ts",