@sebgroup/green-core 2.26.1 → 2.26.2-rc.20260123102949574
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/components/spinner/spinner.component.d.ts +0 -33
- package/components/spinner/spinner.component.js +18 -23
- package/custom-elements.json +3573 -3559
- package/gds-element.js +1 -1
- package/generated/mcp/components.json +1 -1
- package/generated/mcp/icons.json +1 -1
- package/generated/mcp/index.json +1 -1
- package/generated/mcp/input/guidelines.md +8 -0
- package/generated/react/index.d.ts +4 -4
- package/generated/react/index.js +4 -4
- package/package.json +1 -1
- package/utils/global-styles.d.ts +6 -0
- package/utils/global-styles.js +27 -2
- package/utils/helpers/custom-element-scoping.js +1 -1
package/gds-element.js
CHANGED
|
@@ -12,7 +12,7 @@ class GdsElement extends LitElement {
|
|
|
12
12
|
/**
|
|
13
13
|
* The semantic version of this element. Can be used for troubleshooting to verify the version being used.
|
|
14
14
|
*/
|
|
15
|
-
this.semanticVersion = "2.26.
|
|
15
|
+
this.semanticVersion = "2.26.2-rc.20260123102949574";
|
|
16
16
|
this._isUsingTransitionalStyles = false;
|
|
17
17
|
this._dynamicStylesController = new DynamicStylesController(this);
|
|
18
18
|
}
|
package/generated/mcp/icons.json
CHANGED
package/generated/mcp/index.json
CHANGED
|
@@ -105,3 +105,11 @@ Avoid using placeholder text (also known as watermark), as it can confuse users
|
|
|
105
105
|
### Do’s and dont’s input field floating label
|
|
106
106
|
|
|
107
107
|
### Default or floating label?
|
|
108
|
+
|
|
109
|
+
### Search field
|
|
110
|
+
|
|
111
|
+
### Label support text for search field
|
|
112
|
+
|
|
113
|
+
### Give ideas with examples
|
|
114
|
+
|
|
115
|
+
### Search feedback
|
|
@@ -49,6 +49,10 @@ export * from './filter-chip/index.js';
|
|
|
49
49
|
export * from './formatted-account/index.js';
|
|
50
50
|
export * from './formatted-date/index.js';
|
|
51
51
|
export * from './formatted-number/index.js';
|
|
52
|
+
export * from './radio-group/index.js';
|
|
53
|
+
export * from './segment/index.js';
|
|
54
|
+
export * from './sensitive-account/index.js';
|
|
55
|
+
export * from './sensitive-date/index.js';
|
|
52
56
|
export * from './icons/icon-ai/index.js';
|
|
53
57
|
export * from './icons/icon-airplane-up/index.js';
|
|
54
58
|
export * from './icons/icon-archive/index.js';
|
|
@@ -382,10 +386,6 @@ export * from './icons/icon-youtube/index.js';
|
|
|
382
386
|
export * from './icons/icon-zap/index.js';
|
|
383
387
|
export * from './icons/icon-zoom-in/index.js';
|
|
384
388
|
export * from './icons/icon-zoom-out/index.js';
|
|
385
|
-
export * from './radio-group/index.js';
|
|
386
|
-
export * from './segment/index.js';
|
|
387
|
-
export * from './sensitive-account/index.js';
|
|
388
|
-
export * from './sensitive-date/index.js';
|
|
389
389
|
export * from './sensitive-number/index.js';
|
|
390
390
|
export * from './menu-heading/index.js';
|
|
391
391
|
export * from './option/index.js';
|
package/generated/react/index.js
CHANGED
|
@@ -49,6 +49,10 @@ export * from "./filter-chip/index.js";
|
|
|
49
49
|
export * from "./formatted-account/index.js";
|
|
50
50
|
export * from "./formatted-date/index.js";
|
|
51
51
|
export * from "./formatted-number/index.js";
|
|
52
|
+
export * from "./radio-group/index.js";
|
|
53
|
+
export * from "./segment/index.js";
|
|
54
|
+
export * from "./sensitive-account/index.js";
|
|
55
|
+
export * from "./sensitive-date/index.js";
|
|
52
56
|
export * from "./icons/icon-ai/index.js";
|
|
53
57
|
export * from "./icons/icon-airplane-up/index.js";
|
|
54
58
|
export * from "./icons/icon-archive/index.js";
|
|
@@ -382,10 +386,6 @@ export * from "./icons/icon-youtube/index.js";
|
|
|
382
386
|
export * from "./icons/icon-zap/index.js";
|
|
383
387
|
export * from "./icons/icon-zoom-in/index.js";
|
|
384
388
|
export * from "./icons/icon-zoom-out/index.js";
|
|
385
|
-
export * from "./radio-group/index.js";
|
|
386
|
-
export * from "./segment/index.js";
|
|
387
|
-
export * from "./sensitive-account/index.js";
|
|
388
|
-
export * from "./sensitive-date/index.js";
|
|
389
389
|
export * from "./sensitive-number/index.js";
|
|
390
390
|
export * from "./menu-heading/index.js";
|
|
391
391
|
export * from "./option/index.js";
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sebgroup/green-core",
|
|
3
3
|
"description": "A carefully crafted set of Web Components, laying the foundation of the Green Design System.",
|
|
4
|
-
"version": "2.26.
|
|
4
|
+
"version": "2.26.2-rc.20260123102949574",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "index.js",
|
|
7
7
|
"type": "module",
|
package/utils/global-styles.d.ts
CHANGED
|
@@ -23,4 +23,10 @@ export declare class GlobalStylesRegistry {
|
|
|
23
23
|
* @param styles CSSResult produced by the lit css template literal tag
|
|
24
24
|
*/
|
|
25
25
|
injectGlobalStyles(key: string, styles: CSSResult): void;
|
|
26
|
+
/**
|
|
27
|
+
* Clears global styles for the given key.
|
|
28
|
+
*
|
|
29
|
+
* @param key unique identifier for the stylesheet to be removed.
|
|
30
|
+
*/
|
|
31
|
+
clearGlobalStyles(key: string): void;
|
|
26
32
|
}
|
package/utils/global-styles.js
CHANGED
|
@@ -3,13 +3,13 @@ import {
|
|
|
3
3
|
__privateGet,
|
|
4
4
|
__privateMethod
|
|
5
5
|
} from "../chunks/chunk.QU3DSPNU.js";
|
|
6
|
-
var _useLegacyStylesheets, _styleSheets, _legacyStyleSheets, _initialStyleSheets, _GlobalStylesRegistry_instances, injectStylesLegacy_fn, injectStyles_fn;
|
|
6
|
+
var _useLegacyStylesheets, _styleSheets, _legacyStyleSheets, _initialStyleSheets, _GlobalStylesRegistry_instances, injectStylesLegacy_fn, injectStyles_fn, clearStyles_fn;
|
|
7
7
|
import { VER_SUFFIX } from "../scoping.js";
|
|
8
8
|
import { supportsConstructedStylesheets } from "../utils/controllers/dynamic-styles-controller.js";
|
|
9
9
|
import { isServer } from "./helpers/platform.js";
|
|
10
10
|
function getDocumentAdoptedStylesheet() {
|
|
11
11
|
if (isServer) return [];
|
|
12
|
-
return document.adoptedStyleSheets
|
|
12
|
+
return [...document.adoptedStyleSheets];
|
|
13
13
|
}
|
|
14
14
|
const _GlobalStylesRegistry = class _GlobalStylesRegistry {
|
|
15
15
|
constructor() {
|
|
@@ -45,6 +45,22 @@ const _GlobalStylesRegistry = class _GlobalStylesRegistry {
|
|
|
45
45
|
styles.styleSheet && __privateMethod(this, _GlobalStylesRegistry_instances, injectStyles_fn).call(this, key, styles.styleSheet);
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
|
+
/**
|
|
49
|
+
* Clears global styles for the given key.
|
|
50
|
+
*
|
|
51
|
+
* @param key unique identifier for the stylesheet to be removed.
|
|
52
|
+
*/
|
|
53
|
+
clearGlobalStyles(key) {
|
|
54
|
+
if (__privateGet(this, _useLegacyStylesheets)) {
|
|
55
|
+
const styleEl = __privateGet(this, _legacyStyleSheets).get(key);
|
|
56
|
+
if (styleEl && styleEl.parentNode) {
|
|
57
|
+
styleEl.parentNode.removeChild(styleEl);
|
|
58
|
+
__privateGet(this, _legacyStyleSheets).delete(key);
|
|
59
|
+
}
|
|
60
|
+
} else {
|
|
61
|
+
__privateMethod(this, _GlobalStylesRegistry_instances, clearStyles_fn).call(this, key);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
48
64
|
};
|
|
49
65
|
_useLegacyStylesheets = new WeakMap();
|
|
50
66
|
_styleSheets = new WeakMap();
|
|
@@ -69,6 +85,15 @@ injectStyles_fn = function(key, styleSheet) {
|
|
|
69
85
|
...Array.from(__privateGet(this, _styleSheets).values())
|
|
70
86
|
];
|
|
71
87
|
};
|
|
88
|
+
clearStyles_fn = function(key) {
|
|
89
|
+
if (__privateGet(this, _styleSheets).has(key)) {
|
|
90
|
+
__privateGet(this, _styleSheets).delete(key);
|
|
91
|
+
document.adoptedStyleSheets = [
|
|
92
|
+
...__privateGet(this, _initialStyleSheets),
|
|
93
|
+
...Array.from(__privateGet(this, _styleSheets).values())
|
|
94
|
+
];
|
|
95
|
+
}
|
|
96
|
+
};
|
|
72
97
|
let GlobalStylesRegistry = _GlobalStylesRegistry;
|
|
73
98
|
export {
|
|
74
99
|
GlobalStylesRegistry
|