@descope-ui/common 0.0.16 → 0.0.18

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/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
+ ## [0.0.18](https://github.com/descope/web-components-ui/compare/@descope-ui/common-0.0.17...@descope-ui/common-0.0.18) (2025-07-21)
6
+
7
+ ## [0.0.17](https://github.com/descope/web-components-ui/compare/@descope-ui/common-0.0.16...@descope-ui/common-0.0.17) (2025-07-15)
8
+
5
9
  ## [0.0.16](https://github.com/descope/web-components-ui/compare/@descope-ui/common-0.0.15...@descope-ui/common-0.0.16) (2025-06-30)
6
10
 
7
11
  ## [0.0.15](https://github.com/descope/web-components-ui/compare/@descope-ui/common-0.0.14...@descope-ui/common-0.0.15) (2025-06-29)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@descope-ui/common",
3
- "version": "0.0.16",
3
+ "version": "0.0.18",
4
4
  "dependencies": {
5
5
  "element-internals-polyfill": "^1.3.9",
6
6
  "color": "^4.2.3",
@@ -147,3 +147,11 @@ class CSSStyleSheetMock {
147
147
  }
148
148
 
149
149
  const generateStyleTagFallback = (cssString, ref, { prepend = false } = {}) => new CSSStyleSheetMock(cssString, ref, { prepend });
150
+
151
+ export const limitAbbreviation = (str, limit = 2) =>
152
+ str
153
+ .trim()
154
+ .split(' ')
155
+ .splice(0, limit)
156
+ .map((s) => s[0]?.toUpperCase())
157
+ .join('');
@@ -14,3 +14,4 @@ export { externalInputMixin } from './externalInputMixin';
14
14
  export { componentsContextMixin } from './componentsContextMixin';
15
15
  export { connectorMixin } from './connectorMixin';
16
16
  export { createDynamicDataMixin } from './createDynamicDataMixin';
17
+ export { activeableMixin } from './activeableMixin';
@@ -132,9 +132,6 @@ export const inputFloatingLabelStyle = () => {
132
132
  :host([label-type="floating"]) {
133
133
  position: relative;
134
134
  }
135
- :host([label-type="floating"][has-label]) [slot="label"] {
136
- padding: 0;
137
- }
138
135
  :host([label-type="floating"][has-label]) > ::part(label) {
139
136
  z-index: 1;
140
137
  padding: 0;