@sebgroup/green-core 3.24.0 → 3.24.1
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/button/button.component.js +6 -1
- package/components/calendar/calendar.component.js +2 -1
- package/components/context-menu/context-menu.component.js +3 -0
- package/components/datepicker/datepicker.component.js +57 -13
- package/components/link/link.styles.js +23 -3
- package/components/popover/popover.component.js +3 -2
- package/custom-elements.json +30808 -30768
- 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/tokens.json +1 -1
- package/generated/react/index.d.ts +3 -3
- package/generated/react/index.js +3 -3
- package/package.json +1 -1
- package/utils/helpers/custom-element-scoping.js +1 -1
- package/utils/helpers/has-changed.d.ts +8 -0
- package/utils/helpers/has-changed.js +10 -0
package/gds-element.js
CHANGED
|
@@ -16,7 +16,7 @@ class GdsElement extends LitElement {
|
|
|
16
16
|
/**
|
|
17
17
|
* The semantic version of this element. Can be used for troubleshooting to verify the version being used.
|
|
18
18
|
*/
|
|
19
|
-
this.semanticVersion = "3.24.
|
|
19
|
+
this.semanticVersion = "3.24.1";
|
|
20
20
|
this.syncFirstRender = false;
|
|
21
21
|
this._isUsingTransitionalStyles = false;
|
|
22
22
|
this._dynamicStylesController = new DynamicStylesController(this);
|
package/generated/mcp/icons.json
CHANGED
package/generated/mcp/index.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export * from './alert/index.js';
|
|
2
2
|
export * from './avatar/index.js';
|
|
3
|
-
export * from './blur/index.js';
|
|
4
3
|
export * from './badge/index.js';
|
|
4
|
+
export * from './blur/index.js';
|
|
5
5
|
export * from './breadcrumbs/index.js';
|
|
6
6
|
export * from './button/index.js';
|
|
7
7
|
export * from './calendar/index.js';
|
|
@@ -17,8 +17,8 @@ export * from './div/index.js';
|
|
|
17
17
|
export * from './divider/index.js';
|
|
18
18
|
export * from './dropdown/index.js';
|
|
19
19
|
export * from './option/index.js';
|
|
20
|
-
export * from './filter-chips/index.js';
|
|
21
20
|
export * from './fab/index.js';
|
|
21
|
+
export * from './filter-chips/index.js';
|
|
22
22
|
export * from './flex/index.js';
|
|
23
23
|
export * from './form-summary/index.js';
|
|
24
24
|
export * from './grid/index.js';
|
|
@@ -62,6 +62,7 @@ export * from './sensitive-account/index.js';
|
|
|
62
62
|
export * from './sensitive-date/index.js';
|
|
63
63
|
export * from './sensitive-number/index.js';
|
|
64
64
|
export * from './tab/index.js';
|
|
65
|
+
export * from './tab-panel/index.js';
|
|
65
66
|
export * from './icons/icon-ai/index.js';
|
|
66
67
|
export * from './icons/icon-airplane-up/index.js';
|
|
67
68
|
export * from './icons/icon-archive/index.js';
|
|
@@ -374,6 +375,5 @@ export * from './icons/icon-youtube/index.js';
|
|
|
374
375
|
export * from './icons/icon-zap/index.js';
|
|
375
376
|
export * from './icons/icon-zoom-in/index.js';
|
|
376
377
|
export * from './icons/icon-zoom-out/index.js';
|
|
377
|
-
export * from './tab-panel/index.js';
|
|
378
378
|
export * from './menu-item/index.js';
|
|
379
379
|
export * from './menu-heading/index.js';
|
package/generated/react/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export * from "./alert/index.js";
|
|
2
2
|
export * from "./avatar/index.js";
|
|
3
|
-
export * from "./blur/index.js";
|
|
4
3
|
export * from "./badge/index.js";
|
|
4
|
+
export * from "./blur/index.js";
|
|
5
5
|
export * from "./breadcrumbs/index.js";
|
|
6
6
|
export * from "./button/index.js";
|
|
7
7
|
export * from "./calendar/index.js";
|
|
@@ -17,8 +17,8 @@ export * from "./div/index.js";
|
|
|
17
17
|
export * from "./divider/index.js";
|
|
18
18
|
export * from "./dropdown/index.js";
|
|
19
19
|
export * from "./option/index.js";
|
|
20
|
-
export * from "./filter-chips/index.js";
|
|
21
20
|
export * from "./fab/index.js";
|
|
21
|
+
export * from "./filter-chips/index.js";
|
|
22
22
|
export * from "./flex/index.js";
|
|
23
23
|
export * from "./form-summary/index.js";
|
|
24
24
|
export * from "./grid/index.js";
|
|
@@ -62,6 +62,7 @@ export * from "./sensitive-account/index.js";
|
|
|
62
62
|
export * from "./sensitive-date/index.js";
|
|
63
63
|
export * from "./sensitive-number/index.js";
|
|
64
64
|
export * from "./tab/index.js";
|
|
65
|
+
export * from "./tab-panel/index.js";
|
|
65
66
|
export * from "./icons/icon-ai/index.js";
|
|
66
67
|
export * from "./icons/icon-airplane-up/index.js";
|
|
67
68
|
export * from "./icons/icon-archive/index.js";
|
|
@@ -374,6 +375,5 @@ export * from "./icons/icon-youtube/index.js";
|
|
|
374
375
|
export * from "./icons/icon-zap/index.js";
|
|
375
376
|
export * from "./icons/icon-zoom-in/index.js";
|
|
376
377
|
export * from "./icons/icon-zoom-out/index.js";
|
|
377
|
-
export * from "./tab-panel/index.js";
|
|
378
378
|
export * from "./menu-item/index.js";
|
|
379
379
|
export * from "./menu-heading/index.js";
|
package/package.json
CHANGED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A `hasChanged` function for Lit reactive properties that treats `Date` values as equal when they
|
|
3
|
+
* represent the same point in time, rather than requiring referential equality. Use this on
|
|
4
|
+
* `Date`-typed properties (e.g. `value`) to avoid triggering reactive side effects, such as `@watch`
|
|
5
|
+
* handlers, when an equivalent but new `Date` instance is assigned - a common occurrence when a value
|
|
6
|
+
* is bound from a framework wrapper that re-renders with freshly created `Date` objects.
|
|
7
|
+
*/
|
|
8
|
+
export declare function dateHasChanged<T>(value: T, oldValue: T): boolean;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import "../../chunks/chunk.CAV4X6PU.js";
|
|
2
|
+
function dateHasChanged(value, oldValue) {
|
|
3
|
+
if (value instanceof Date && oldValue instanceof Date) {
|
|
4
|
+
return value.getTime() !== oldValue.getTime();
|
|
5
|
+
}
|
|
6
|
+
return value !== oldValue;
|
|
7
|
+
}
|
|
8
|
+
export {
|
|
9
|
+
dateHasChanged
|
|
10
|
+
};
|