@sebgroup/green-core 1.42.0 → 1.43.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.
Files changed (139) hide show
  1. package/chunks/{chunk.LFJRIUDW.js → chunk.27E4EAEK.js} +1 -1
  2. package/chunks/{chunk.DW6Q6SBC.js → chunk.3CT5ZFTQ.js} +2 -2
  3. package/chunks/{chunk.MBOWSQFX.js → chunk.A7Q7YZEN.js} +36 -12
  4. package/chunks/{chunk.XO3GEBSD.js → chunk.AERYOXEJ.js} +5 -4
  5. package/chunks/chunk.AKNDGE2O.js +37 -0
  6. package/chunks/chunk.ALUL3Z4L.js +107 -0
  7. package/chunks/chunk.CK2UGCPG.js +0 -0
  8. package/chunks/chunk.CKHSQ3NZ.js +363 -0
  9. package/chunks/{chunk.647FXT6C.js → chunk.CT4EJQUH.js} +4 -7
  10. package/chunks/{chunk.DMV5YQTC.js → chunk.CTPZ3SVO.js} +15 -9
  11. package/chunks/{chunk.JZZIQFBB.js → chunk.G5N266EN.js} +4 -5
  12. package/chunks/{chunk.XF5K6ZIH.js → chunk.GLIXAC4R.js} +1 -1
  13. package/chunks/{chunk.O7YI7FZ5.js → chunk.GYZUJT76.js} +2 -2
  14. package/chunks/chunk.HON6XHRQ.js +547 -0
  15. package/chunks/{chunk.GHYMUUPE.js → chunk.I5ZVUUCK.js} +36 -8
  16. package/chunks/{chunk.EJUBEZ5B.js → chunk.IGNF6GRC.js} +4 -4
  17. package/chunks/{chunk.4VW724L2.js → chunk.JMCXGEXD.js} +1 -1
  18. package/chunks/{chunk.G3YUUPNZ.js → chunk.LSSS5CKS.js} +33 -9
  19. package/chunks/chunk.MRMXDOA5.js +0 -0
  20. package/chunks/chunk.MWWZHWMO.js +652 -0
  21. package/chunks/{chunk.RHDKSFLQ.js → chunk.N74HN5IK.js} +4 -4
  22. package/chunks/{chunk.6GS7KCSS.js → chunk.PW3MVGRI.js} +4 -4
  23. package/chunks/chunk.PWTQJELS.js +142 -0
  24. package/chunks/{chunk.3DNQAQ3I.js → chunk.RC3RN452.js} +303 -301
  25. package/chunks/{chunk.EYEFIM2C.js → chunk.SFRZOLA5.js} +185 -69
  26. package/chunks/chunk.SKGENC3L.js +85 -0
  27. package/chunks/{chunk.S2QX5GSA.js → chunk.UFCPMXNG.js} +4 -4
  28. package/chunks/{chunk.UNXDEINN.js → chunk.UO5V45G5.js} +3 -3
  29. package/chunks/{chunk.L6K6EODO.js → chunk.VB7JSOFJ.js} +1 -1
  30. package/chunks/chunk.VOYMQ322.js +1 -1
  31. package/chunks/{chunk.DBILHPMR.js → chunk.VPZ2NC2L.js} +24 -14
  32. package/chunks/{chunk.U6OZ3R3W.js → chunk.XKACXVCM.js} +8 -2
  33. package/chunks/{chunk.Z27WVNGN.js → chunk.XUSFHKBA.js} +1 -1
  34. package/chunks/{chunk.27FXJC7Z.js → chunk.Y55XQFFO.js} +16 -16
  35. package/chunks/{chunk.2BMJPIND.js → chunk.YUFO2JLT.js} +4 -1
  36. package/components/badge/badge.d.ts +27 -3
  37. package/components/badge/badge.figma.js +2 -2
  38. package/components/badge/badge.js +2 -4
  39. package/components/badge/index.js +3 -4
  40. package/components/button/button.d.ts +1 -1
  41. package/components/button/button.js +4 -5
  42. package/components/button/fab/fab.js +6 -7
  43. package/components/button/fab/index.js +6 -7
  44. package/components/button/index.js +4 -5
  45. package/components/calendar/calendar.js +2 -2
  46. package/components/calendar/index.js +2 -2
  47. package/components/content/divider/divider.js +3 -3
  48. package/components/content/divider/index.js +3 -3
  49. package/components/content/spacer/index.js +3 -3
  50. package/components/content/spacer/spacer.js +3 -3
  51. package/components/content/text/index.js +4 -3
  52. package/components/content/text/text.d.ts +25 -9
  53. package/components/content/text/text.js +3 -3
  54. package/components/context-menu/context-menu.js +2 -2
  55. package/components/context-menu/index.js +2 -2
  56. package/components/datepicker/datepicker.js +9 -10
  57. package/components/datepicker/index.js +9 -10
  58. package/components/dropdown/dropdown.js +7 -8
  59. package/components/dropdown/index.js +7 -8
  60. package/components/filter-chips/filter-chip/filter-chip.js +4 -5
  61. package/components/filter-chips/filter-chip/index.js +4 -5
  62. package/components/filter-chips/filter-chips.js +5 -6
  63. package/components/filter-chips/index.js +5 -6
  64. package/components/form/form-control.d.ts +1 -0
  65. package/components/form/form-control.js +1 -1
  66. package/components/form/index.js +6 -6
  67. package/components/form/summary/index.js +6 -6
  68. package/components/form/summary/summary.js +6 -6
  69. package/components/icon/icons/index.js +3 -3
  70. package/components/index.d.ts +3 -0
  71. package/components/index.js +48 -36
  72. package/components/input/index.js +23 -4
  73. package/components/input/input.d.ts +21 -14
  74. package/components/input/input.js +23 -4
  75. package/components/layout/card/card.d.ts +1 -91
  76. package/components/layout/card/card.js +4 -4
  77. package/components/layout/card/index.js +4 -4
  78. package/components/layout/container/container.d.ts +229 -12
  79. package/components/layout/container/container.js +3 -3
  80. package/components/layout/container/index.js +3 -3
  81. package/components/layout/flex/flex.d.ts +35 -5
  82. package/components/layout/flex/flex.js +4 -4
  83. package/components/layout/flex/index.js +4 -4
  84. package/components/layout/grid/grid.d.ts +1 -1
  85. package/components/layout/grid/grid.js +4 -4
  86. package/components/layout/grid/index.js +4 -4
  87. package/components/layout/mask/index.d.ts +1 -0
  88. package/components/layout/mask/index.js +18 -0
  89. package/components/layout/mask/mask.d.ts +30 -0
  90. package/components/layout/mask/mask.js +18 -0
  91. package/components/media/img/img.d.ts +10 -10
  92. package/components/media/img/img.js +3 -4
  93. package/components/media/img/index.js +3 -4
  94. package/components/media/video/index.js +3 -4
  95. package/components/media/video/video.d.ts +10 -10
  96. package/components/media/video/video.js +3 -4
  97. package/components/menu-button/index.js +4 -4
  98. package/components/menu-button/menu-button.d.ts +1 -1
  99. package/components/menu-button/menu-button.js +4 -4
  100. package/components/segmented-control/index.js +3 -3
  101. package/components/segmented-control/segment/index.js +2 -2
  102. package/components/segmented-control/segment/segment.js +2 -2
  103. package/components/segmented-control/segmented-control.js +3 -3
  104. package/components/textarea/index.d.ts +1 -0
  105. package/components/textarea/index.js +37 -0
  106. package/components/textarea/textarea.d.ts +91 -0
  107. package/components/textarea/textarea.js +37 -0
  108. package/components/textarea/textarea.styles.d.ts +1 -0
  109. package/components/theme/index.js +2 -2
  110. package/components/theme/theme.js +2 -2
  111. package/index.js +47 -35
  112. package/package.json +1 -1
  113. package/primitives/listbox/index.js +3 -3
  114. package/primitives/listbox/listbox.js +3 -3
  115. package/primitives/listbox/option.js +3 -3
  116. package/primitives/menu/index.js +2 -2
  117. package/primitives/menu/menu-item.js +2 -2
  118. package/primitives/menu/menu.js +2 -2
  119. package/primitives/ripple/index.js +2 -2
  120. package/primitives/ripple/ripple.js +2 -2
  121. package/primitives/signal/index.js +3 -4
  122. package/primitives/signal/signal.js +3 -4
  123. package/chunks/chunk.4KEZS5UA.js +0 -103
  124. package/chunks/chunk.7VC33K5Z.js +0 -49
  125. package/chunks/chunk.NKSKWGNM.js +0 -28
  126. package/chunks/chunk.OCU74EXO.js +0 -100
  127. package/chunks/chunk.OL4Y3QHU.js +0 -40
  128. package/chunks/chunk.SXGACXKX.js +0 -28
  129. package/chunks/chunk.VC72CYU3.js +0 -145
  130. package/chunks/chunk.W67TOOB4.js +0 -625
  131. package/chunks/chunk.YBOK7MI7.js +0 -31
  132. package/components/media/img/img.style.css.js +0 -7
  133. package/components/media/video/video.style.css.js +0 -7
  134. package/primitives/signal/signal.style.css.js +0 -7
  135. /package/chunks/{chunk.WK7IKANC.js → chunk.BPGOHQLS.js} +0 -0
  136. /package/components/layout/{card/card.style.d.ts → mask/mask.style.d.ts} +0 -0
  137. /package/components/media/img/{img.style.css.d.ts → img.style.d.ts} +0 -0
  138. /package/components/media/video/{video.style.css.d.ts → video.style.d.ts} +0 -0
  139. /package/primitives/signal/{signal.style.css.d.ts → signal.style.d.ts} +0 -0
@@ -5,7 +5,7 @@ var style = css`
5
5
 
6
6
  @layer base {
7
7
  :host(:not(:last-child)) {
8
- border-bottom: 1px solid var(--gds-sys-color-stroke-stroke-variant2);
8
+ border-bottom: 1px solid var(--gds-sys-color-border-stroke-variant2);
9
9
  }
10
10
 
11
11
  :host div {
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  styleExpressionProperty
3
- } from "./chunk.U6OZ3R3W.js";
3
+ } from "./chunk.XKACXVCM.js";
4
4
  import {
5
5
  tokens
6
- } from "./chunk.3DNQAQ3I.js";
6
+ } from "./chunk.RC3RN452.js";
7
7
  import {
8
8
  GdsElement
9
9
  } from "./chunk.ZQ4D5K7J.js";
@@ -1,12 +1,9 @@
1
- import {
2
- video_style_css_default
3
- } from "./chunk.SXGACXKX.js";
4
1
  import {
5
2
  styleExpressionProperty
6
- } from "./chunk.U6OZ3R3W.js";
3
+ } from "./chunk.XKACXVCM.js";
7
4
  import {
8
5
  tokens
9
- } from "./chunk.3DNQAQ3I.js";
6
+ } from "./chunk.RC3RN452.js";
10
7
  import {
11
8
  GdsElement
12
9
  } from "./chunk.ZQ4D5K7J.js";
@@ -20,6 +17,33 @@ import {
20
17
 
21
18
  // libs/core/src/components/media/video/video.ts
22
19
  import { property, query } from "lit/decorators.js";
20
+
21
+ // libs/core/src/components/media/video/video.style.ts
22
+ import { css } from "lit";
23
+ var style = css`
24
+ :host {
25
+ display: contents;
26
+ }
27
+
28
+ figure {
29
+ margin: 0;
30
+ padding: 0;
31
+ box-sizing: border-box;
32
+ font-size: 0;
33
+ width: 100%;
34
+ height: auto;
35
+ overflow: hidden;
36
+ }
37
+
38
+ video {
39
+ display: flex;
40
+ width: 100%;
41
+ height: 100%;
42
+ }
43
+ `;
44
+ var video_style_default = style;
45
+
46
+ // libs/core/src/components/media/video/video.ts
23
47
  var GdsVideo = class extends GdsElement {
24
48
  // Method to programmatically apply video settings
25
49
  applyVideoSettings() {
@@ -39,21 +63,21 @@ var GdsVideo = class extends GdsElement {
39
63
  this.applyVideoSettings();
40
64
  }
41
65
  };
42
- GdsVideo.styles = [tokens, video_style_css_default];
66
+ GdsVideo.styles = [tokens, video_style_default];
43
67
  __decorateClass([
44
68
  styleExpressionProperty({
45
69
  property: "aspect-ratio",
46
70
  selector: "figure",
47
71
  valueTemplate: (v) => v
48
72
  })
49
- ], GdsVideo.prototype, "ratio", 2);
73
+ ], GdsVideo.prototype, "aspect-ratio", 2);
50
74
  __decorateClass([
51
75
  styleExpressionProperty({
52
76
  property: "object-position",
53
77
  selector: "video",
54
78
  valueTemplate: (v) => v
55
79
  })
56
- ], GdsVideo.prototype, "position", 2);
80
+ ], GdsVideo.prototype, "object-position", 2);
57
81
  __decorateClass([
58
82
  styleExpressionProperty({
59
83
  property: "inset",
@@ -86,21 +110,21 @@ __decorateClass([
86
110
  selector: "video",
87
111
  valueTemplate: (v) => v
88
112
  })
89
- ], GdsVideo.prototype, "fit", 2);
113
+ ], GdsVideo.prototype, "object-fit", 2);
90
114
  __decorateClass([
91
115
  styleExpressionProperty({
92
116
  property: "pointer-events",
93
117
  selector: "video",
94
118
  valueTemplate: (v) => v
95
119
  })
96
- ], GdsVideo.prototype, "events", 2);
120
+ ], GdsVideo.prototype, "pointer-events", 2);
97
121
  __decorateClass([
98
122
  styleExpressionProperty({
99
123
  property: "border-radius",
100
124
  selector: "figure",
101
- valueTemplate: (v) => `var(--gds-sys-radii-${v})`
125
+ valueTemplate: (v) => `var(--gds-space-${v})`
102
126
  })
103
- ], GdsVideo.prototype, "radius", 2);
127
+ ], GdsVideo.prototype, "border-radius", 2);
104
128
  __decorateClass([
105
129
  property()
106
130
  ], GdsVideo.prototype, "src", 2);
@@ -4,16 +4,16 @@ import {
4
4
  } from "./chunk.C3ECHGX7.js";
5
5
  import {
6
6
  GdsFormControlElement
7
- } from "./chunk.2BMJPIND.js";
7
+ } from "./chunk.YUFO2JLT.js";
8
8
  import {
9
9
  TransitionalStyles
10
10
  } from "./chunk.3XCSDEVC.js";
11
- import {
12
- tokens
13
- } from "./chunk.3DNQAQ3I.js";
14
11
  import {
15
12
  watch
16
13
  } from "./chunk.2WO4NHJ2.js";
14
+ import {
15
+ tokens
16
+ } from "./chunk.RC3RN452.js";
17
17
  import {
18
18
  gdsCustomElement,
19
19
  html
@@ -365,6 +365,7 @@ var GdsDatepicker = class extends GdsFormControlElement {
365
365
  newDate.setFullYear(parseInt(__privateGet(this, _spinnerState).year));
366
366
  newDate.setMonth(parseInt(__privateGet(this, _spinnerState).month) - 1);
367
367
  newDate.setDate(parseInt(__privateGet(this, _spinnerState).day));
368
+ newDate.setHours(12, 0, 0, 0);
368
369
  if (newDate.toString() === "Invalid Date")
369
370
  return;
370
371
  this.value = newDate;
@@ -0,0 +1,37 @@
1
+ import {
2
+ GdsContainer
3
+ } from "./chunk.CKHSQ3NZ.js";
4
+ import {
5
+ styleExpressionProperty
6
+ } from "./chunk.XKACXVCM.js";
7
+ import {
8
+ tokens
9
+ } from "./chunk.RC3RN452.js";
10
+ import {
11
+ gdsCustomElement,
12
+ html
13
+ } from "./chunk.VOYMQ322.js";
14
+ import {
15
+ __decorateClass
16
+ } from "./chunk.5VURDMKE.js";
17
+
18
+ // libs/core/src/components/layout/card/card.ts
19
+ var GdsCard = class extends GdsContainer {
20
+ render() {
21
+ return html`<slot></slot>`;
22
+ }
23
+ };
24
+ GdsCard.styles = [tokens];
25
+ __decorateClass([
26
+ styleExpressionProperty({
27
+ property: "box-shadow",
28
+ valueTemplate: (v) => `var(--gds-shadow-${v})`
29
+ })
30
+ ], GdsCard.prototype, "shadow", 2);
31
+ GdsCard = __decorateClass([
32
+ gdsCustomElement("gds-card")
33
+ ], GdsCard);
34
+
35
+ export {
36
+ GdsCard
37
+ };
@@ -0,0 +1,107 @@
1
+ import {
2
+ GdsFlex
3
+ } from "./chunk.I5ZVUUCK.js";
4
+ import {
5
+ styleExpressionProperty
6
+ } from "./chunk.XKACXVCM.js";
7
+ import {
8
+ tokens
9
+ } from "./chunk.RC3RN452.js";
10
+ import {
11
+ gdsCustomElement
12
+ } from "./chunk.VOYMQ322.js";
13
+ import {
14
+ __decorateClass
15
+ } from "./chunk.5VURDMKE.js";
16
+
17
+ // libs/core/src/components/layout/mask/mask.ts
18
+ import { html } from "lit/static-html.js";
19
+
20
+ // libs/core/src/components/layout/mask/mask.style.ts
21
+ import { css } from "lit";
22
+ var style = css`
23
+ :host {
24
+ isolation: isolate;
25
+ }
26
+
27
+ [part='mask'] {
28
+ position: absolute;
29
+ inset: 0;
30
+ z-index: -1;
31
+ pointer-events: none;
32
+ }
33
+
34
+ [part='content'] {
35
+ z-index: 1;
36
+ position: absolute;
37
+ inset: 0;
38
+ }
39
+ `;
40
+ var mask_style_default = style;
41
+
42
+ // libs/core/src/components/layout/mask/mask.ts
43
+ var GdsMask = class extends GdsFlex {
44
+ constructor() {
45
+ super();
46
+ this["mask-size"] = "cover";
47
+ this["mask-repeat"] = "no-repeat";
48
+ this["mask-position"] = "center";
49
+ this.position = "relative";
50
+ this.inset = "0";
51
+ }
52
+ render() {
53
+ return html`<div part="mask"></div>
54
+ <div part="content"><slot></slot></div>`;
55
+ }
56
+ };
57
+ GdsMask.styles = [tokens, mask_style_default];
58
+ __decorateClass([
59
+ styleExpressionProperty({
60
+ selector: '[part="mask"]',
61
+ valueTemplate: (v) => {
62
+ const [direction] = v.split("/");
63
+ return `linear-gradient(to ${direction}, rgba(0, 0, 0, 1) 20%, rgba(0, 0, 0, 0) 100%)`;
64
+ }
65
+ })
66
+ ], GdsMask.prototype, "mask-image", 2);
67
+ __decorateClass([
68
+ styleExpressionProperty({
69
+ valueTemplate: (v) => v,
70
+ selector: '[part="mask"]'
71
+ })
72
+ ], GdsMask.prototype, "mask-size", 2);
73
+ __decorateClass([
74
+ styleExpressionProperty({
75
+ valueTemplate: (v) => v,
76
+ selector: '[part="mask"]'
77
+ })
78
+ ], GdsMask.prototype, "mask-repeat", 2);
79
+ __decorateClass([
80
+ styleExpressionProperty({
81
+ valueTemplate: (v) => v,
82
+ selector: '[part="mask"]'
83
+ })
84
+ ], GdsMask.prototype, "mask-position", 2);
85
+ __decorateClass([
86
+ styleExpressionProperty({
87
+ selector: '[part="mask"]',
88
+ valueTemplate: function(v) {
89
+ const [backgroundColor, backgroundColorAlpha] = v.split("/");
90
+ const background = backgroundColorAlpha ? `color-mix(in srgb, var(--gds-color-${"l" + this.level}-background-${backgroundColor}) ${parseFloat(backgroundColorAlpha) * 100}%, transparent 0%)` : `var(--gds-color-${"l" + this.level}-background-${backgroundColor})`;
91
+ return background;
92
+ }
93
+ })
94
+ ], GdsMask.prototype, "background-color", 2);
95
+ __decorateClass([
96
+ styleExpressionProperty({
97
+ valueTemplate: (v) => v,
98
+ selector: '[part="mask"]'
99
+ })
100
+ ], GdsMask.prototype, "backdrop-filter", 2);
101
+ GdsMask = __decorateClass([
102
+ gdsCustomElement("gds-mask")
103
+ ], GdsMask);
104
+
105
+ export {
106
+ GdsMask
107
+ };
File without changes
@@ -0,0 +1,363 @@
1
+ import {
2
+ styleExpressionProperty
3
+ } from "./chunk.XKACXVCM.js";
4
+ import {
5
+ tokens
6
+ } from "./chunk.RC3RN452.js";
7
+ import {
8
+ GdsElement
9
+ } from "./chunk.ZQ4D5K7J.js";
10
+ import {
11
+ gdsCustomElement,
12
+ html
13
+ } from "./chunk.VOYMQ322.js";
14
+ import {
15
+ __decorateClass
16
+ } from "./chunk.5VURDMKE.js";
17
+
18
+ // libs/core/src/components/layout/container/container.ts
19
+ import { property } from "lit/decorators.js";
20
+
21
+ // libs/core/src/components/layout/container/container.style.ts
22
+ import { css } from "lit";
23
+ var style = css`
24
+ :host {
25
+ box-sizing: border-box;
26
+ }
27
+ `;
28
+ var container_style_default = style;
29
+
30
+ // libs/core/src/components/layout/container/container.ts
31
+ var GdsContainer = class extends GdsElement {
32
+ constructor() {
33
+ super(...arguments);
34
+ this.display = "block";
35
+ this.level = "2";
36
+ }
37
+ render() {
38
+ return html`<slot></slot>`;
39
+ }
40
+ };
41
+ GdsContainer.styles = [tokens, container_style_default];
42
+ __decorateClass([
43
+ styleExpressionProperty({
44
+ valueTemplate: (v) => v
45
+ })
46
+ ], GdsContainer.prototype, "display", 2);
47
+ __decorateClass([
48
+ property()
49
+ ], GdsContainer.prototype, "level", 2);
50
+ __decorateClass([
51
+ styleExpressionProperty({
52
+ valueTemplate: (v) => v
53
+ })
54
+ ], GdsContainer.prototype, "place-items", 2);
55
+ __decorateClass([
56
+ styleExpressionProperty({
57
+ valueTemplate: (v) => v
58
+ })
59
+ ], GdsContainer.prototype, "place-content", 2);
60
+ __decorateClass([
61
+ styleExpressionProperty({
62
+ valueTemplate: function(v) {
63
+ const [colorInput, transparency] = v.split("/");
64
+ const isCustomColor = (color) => {
65
+ const trimmedColor = color.trim();
66
+ return trimmedColor.startsWith("#") || // Hex color
67
+ trimmedColor.startsWith("rgb(") || // RGB color
68
+ trimmedColor.startsWith("rgba(") || // RGBA color
69
+ trimmedColor.startsWith("hsl(") || // HSL color
70
+ trimmedColor.startsWith("hsla(");
71
+ };
72
+ const constructCssVariable = (level, colorName) => {
73
+ return `var(--gds-color-l${level}-content-${colorName})`;
74
+ };
75
+ const getColorValue = (color, transparency2) => {
76
+ if (isCustomColor(color)) {
77
+ return transparency2 ? `color-mix(in srgb, ${color} ${parseFloat(transparency2) * 100}%, transparent 0%)` : color;
78
+ } else {
79
+ return constructCssVariable(this.level, color);
80
+ }
81
+ };
82
+ return getColorValue(colorInput, transparency);
83
+ }
84
+ })
85
+ ], GdsContainer.prototype, "color", 2);
86
+ __decorateClass([
87
+ styleExpressionProperty({
88
+ valueTemplate: function(v) {
89
+ const [colorInput, transparency] = v.split("/");
90
+ const isCustomColor = (color) => {
91
+ const trimmedColor = color.trim();
92
+ return trimmedColor.startsWith("#") || // Hex color
93
+ trimmedColor.startsWith("rgb(") || // RGB color
94
+ trimmedColor.startsWith("rgba(") || // RGBA color
95
+ trimmedColor.startsWith("hsl(") || // HSL color
96
+ trimmedColor.startsWith("hsla(");
97
+ };
98
+ const constructCssVariable = (level, color) => {
99
+ return `var(--gds-color-l${level}-background-${color})`;
100
+ };
101
+ const getBackgroundColor = (color, transparency2) => {
102
+ if (isCustomColor(color)) {
103
+ return transparency2 ? `color-mix(in srgb, ${color} ${parseFloat(transparency2) * 100}%, transparent 0%)` : color;
104
+ } else {
105
+ return constructCssVariable(this.level, color);
106
+ }
107
+ };
108
+ return getBackgroundColor(colorInput, transparency);
109
+ }
110
+ })
111
+ ], GdsContainer.prototype, "background", 2);
112
+ __decorateClass([
113
+ styleExpressionProperty({
114
+ valueTemplate: function(v) {
115
+ const [size, color] = v.split("/");
116
+ const isCustomColor = (color2) => {
117
+ const trimmedColor = color2.trim();
118
+ return trimmedColor.startsWith("#") || // Hex color
119
+ trimmedColor.startsWith("rgb(") || // RGB color
120
+ trimmedColor.startsWith("rgba(") || // RGBA color
121
+ trimmedColor.startsWith("hsl(") || // HSL color
122
+ trimmedColor.startsWith("hsla(");
123
+ };
124
+ const constructBorderColorVariable = (level, color2) => {
125
+ return `var(--gds-color-l${level}-border-${color2})`;
126
+ };
127
+ const getBorderColorValue = (color2) => {
128
+ return isCustomColor(color2) ? color2 : constructBorderColorVariable(this.level, color2);
129
+ };
130
+ return `var(--gds-space-${size}) solid ${color ? getBorderColorValue(color) : "currentColor"}`;
131
+ },
132
+ styleTemplate: (_prop, values) => {
133
+ const top = values[0];
134
+ const right = values.length > 1 ? values[1] : top;
135
+ const bottom = values.length > 2 ? values[2] : top;
136
+ const left = values.length > 3 ? values[3] : top;
137
+ return `
138
+ border-top: ${top};
139
+ border-right: ${right};
140
+ border-bottom: ${bottom};
141
+ border-left: ${left};
142
+ `;
143
+ }
144
+ })
145
+ ], GdsContainer.prototype, "border", 2);
146
+ __decorateClass([
147
+ styleExpressionProperty({
148
+ valueTemplate: function(v) {
149
+ const [color] = v.split("/");
150
+ const isCustomColor = (color2) => {
151
+ const trimmedColor = color2.trim();
152
+ return trimmedColor.startsWith("#") || // Hex color
153
+ trimmedColor.startsWith("rgb(") || // RGB color
154
+ trimmedColor.startsWith("rgba(") || // RGBA color
155
+ trimmedColor.startsWith("hsl(") || // HSL color
156
+ trimmedColor.startsWith("hsla(");
157
+ };
158
+ const constructBorderColorVariable = (level, color2) => {
159
+ return `var(--gds-color-l${level}-border-${color2})`;
160
+ };
161
+ const getBorderColorValue = (color2) => {
162
+ return isCustomColor(color2) ? color2 : constructBorderColorVariable(this.level, color2);
163
+ };
164
+ return color ? getBorderColorValue(color) : "currentColor";
165
+ },
166
+ styleTemplate: (_prop, values) => {
167
+ const top = values[0];
168
+ const right = values.length > 1 ? values[1] : top;
169
+ const bottom = values.length > 2 ? values[2] : top;
170
+ const left = values.length > 3 ? values[3] : top;
171
+ return `
172
+ border-top-color: ${top};
173
+ border-right-color: ${right};
174
+ border-bottom-color: ${bottom};
175
+ border-left-color: ${left};
176
+ `;
177
+ }
178
+ })
179
+ ], GdsContainer.prototype, "border-color", 2);
180
+ __decorateClass([
181
+ styleExpressionProperty({
182
+ styleTemplate: (_prop, values) => {
183
+ const top = values[0];
184
+ const right = values.length > 1 ? values[1] : top;
185
+ const bottom = values.length > 2 ? values[2] : top;
186
+ const left = values.length > 3 ? values[3] : top;
187
+ return `
188
+ border-top-width: ${top};
189
+ border-right-width: ${right};
190
+ border-bottom-width: ${bottom};
191
+ border-left-width: ${left};
192
+ border-style: solid;
193
+ `;
194
+ }
195
+ })
196
+ ], GdsContainer.prototype, "border-width", 2);
197
+ __decorateClass([
198
+ styleExpressionProperty({
199
+ valueTemplate: (v) => `var(--gds-space-${v})`
200
+ })
201
+ ], GdsContainer.prototype, "border-radius", 2);
202
+ __decorateClass([
203
+ styleExpressionProperty({
204
+ valueTemplate: (v) => v
205
+ })
206
+ ], GdsContainer.prototype, "opacity", 2);
207
+ __decorateClass([
208
+ styleExpressionProperty()
209
+ ], GdsContainer.prototype, "padding", 2);
210
+ __decorateClass([
211
+ styleExpressionProperty()
212
+ ], GdsContainer.prototype, "padding-inline", 2);
213
+ __decorateClass([
214
+ styleExpressionProperty()
215
+ ], GdsContainer.prototype, "padding-block", 2);
216
+ __decorateClass([
217
+ styleExpressionProperty({
218
+ valueTemplate: (v) => {
219
+ return v === "auto" ? "auto" : `var(--gds-space-${v})`;
220
+ },
221
+ styleTemplate: (_prop, values) => {
222
+ const transformValue = (v) => v === "auto" ? "auto" : `${v}`;
223
+ const top = transformValue(values[0]);
224
+ const right = values.length > 1 ? transformValue(values[1]) : top;
225
+ const bottom = values.length > 2 ? transformValue(values[2]) : top;
226
+ const left = values.length > 3 ? transformValue(values[3]) : right;
227
+ return `margin: ${top} ${right} ${bottom} ${left};`;
228
+ }
229
+ })
230
+ ], GdsContainer.prototype, "margin", 2);
231
+ __decorateClass([
232
+ styleExpressionProperty({
233
+ valueTemplate: (v) => v
234
+ })
235
+ ], GdsContainer.prototype, "position", 2);
236
+ __decorateClass([
237
+ styleExpressionProperty({
238
+ valueTemplate: (v) => v
239
+ })
240
+ ], GdsContainer.prototype, "inset", 2);
241
+ __decorateClass([
242
+ styleExpressionProperty({
243
+ valueTemplate: (v) => v
244
+ })
245
+ ], GdsContainer.prototype, "overflow", 2);
246
+ __decorateClass([
247
+ styleExpressionProperty({
248
+ valueTemplate: (v) => `${v}`
249
+ })
250
+ ], GdsContainer.prototype, "grid-column", 2);
251
+ __decorateClass([
252
+ styleExpressionProperty({
253
+ valueTemplate: (v) => `${v}`
254
+ })
255
+ ], GdsContainer.prototype, "grid-row", 2);
256
+ __decorateClass([
257
+ styleExpressionProperty({
258
+ valueTemplate: (v) => v
259
+ })
260
+ ], GdsContainer.prototype, "height", 2);
261
+ __decorateClass([
262
+ styleExpressionProperty({
263
+ valueTemplate: (v) => v
264
+ })
265
+ ], GdsContainer.prototype, "max-height", 2);
266
+ __decorateClass([
267
+ styleExpressionProperty({
268
+ valueTemplate: (v) => v
269
+ })
270
+ ], GdsContainer.prototype, "min-height", 2);
271
+ __decorateClass([
272
+ styleExpressionProperty()
273
+ ], GdsContainer.prototype, "block-size", 2);
274
+ __decorateClass([
275
+ styleExpressionProperty()
276
+ ], GdsContainer.prototype, "min-block-size", 2);
277
+ __decorateClass([
278
+ styleExpressionProperty({
279
+ valueTemplate: (v) => v
280
+ })
281
+ ], GdsContainer.prototype, "width", 2);
282
+ __decorateClass([
283
+ styleExpressionProperty({
284
+ valueTemplate: (v) => v
285
+ })
286
+ ], GdsContainer.prototype, "max-width", 2);
287
+ __decorateClass([
288
+ styleExpressionProperty({
289
+ valueTemplate: (v) => v
290
+ })
291
+ ], GdsContainer.prototype, "min-width", 2);
292
+ __decorateClass([
293
+ styleExpressionProperty()
294
+ ], GdsContainer.prototype, "inline-size", 2);
295
+ __decorateClass([
296
+ styleExpressionProperty({
297
+ valueTemplate: (v) => v
298
+ })
299
+ ], GdsContainer.prototype, "cursor", 2);
300
+ __decorateClass([
301
+ styleExpressionProperty({
302
+ valueTemplate: (v) => v
303
+ })
304
+ ], GdsContainer.prototype, "pointer-events", 2);
305
+ __decorateClass([
306
+ styleExpressionProperty({
307
+ valueTemplate: (v) => v
308
+ })
309
+ ], GdsContainer.prototype, "user-select", 2);
310
+ __decorateClass([
311
+ styleExpressionProperty({
312
+ valueTemplate: (v) => v
313
+ })
314
+ ], GdsContainer.prototype, "z-index", 2);
315
+ __decorateClass([
316
+ styleExpressionProperty({
317
+ valueTemplate: (v) => v
318
+ })
319
+ ], GdsContainer.prototype, "transform", 2);
320
+ __decorateClass([
321
+ styleExpressionProperty({
322
+ valueTemplate: (v) => v
323
+ })
324
+ ], GdsContainer.prototype, "transform-style", 2);
325
+ __decorateClass([
326
+ styleExpressionProperty({
327
+ valueTemplate: (v) => v
328
+ })
329
+ ], GdsContainer.prototype, "transition", 2);
330
+ __decorateClass([
331
+ styleExpressionProperty({
332
+ valueTemplate: (v) => v
333
+ })
334
+ ], GdsContainer.prototype, "transition-behavior", 2);
335
+ __decorateClass([
336
+ styleExpressionProperty({
337
+ valueTemplate: (v) => v
338
+ })
339
+ ], GdsContainer.prototype, "animation", 2);
340
+ __decorateClass([
341
+ styleExpressionProperty({
342
+ valueTemplate: (v) => `${v}`,
343
+ styleTemplate: (prop, values) => {
344
+ const size = values[0];
345
+ const styleSize = `font-size: var(--gds-text-size-${size});`;
346
+ const styleLine = `line-height: var(--gds-text-line-height-${size});`;
347
+ return styleSize + styleLine;
348
+ }
349
+ })
350
+ ], GdsContainer.prototype, "font-size", 2);
351
+ __decorateClass([
352
+ styleExpressionProperty({
353
+ property: "font-weight",
354
+ valueTemplate: (v) => `var(--gds-text-weight-${v})`
355
+ })
356
+ ], GdsContainer.prototype, "font-weight", 2);
357
+ GdsContainer = __decorateClass([
358
+ gdsCustomElement("gds-container")
359
+ ], GdsContainer);
360
+
361
+ export {
362
+ GdsContainer
363
+ };
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  styleExpressionProperty
3
- } from "./chunk.U6OZ3R3W.js";
3
+ } from "./chunk.XKACXVCM.js";
4
4
  import {
5
5
  GdsButton
6
- } from "./chunk.EYEFIM2C.js";
6
+ } from "./chunk.SFRZOLA5.js";
7
7
  import {
8
8
  gdsCustomElement
9
9
  } from "./chunk.VOYMQ322.js";
@@ -14,10 +14,6 @@ import {
14
14
  // libs/core/src/components/button/fab/fab.styles.ts
15
15
  import { css } from "lit";
16
16
  var style = css`
17
- :host {
18
- display: contents;
19
- }
20
-
21
17
  .button {
22
18
  box-shadow: var(--gds-shadow-m);
23
19
  position: fixed;
@@ -36,7 +32,8 @@ var GdsFab = class extends GdsButton {
36
32
  };
37
33
  __decorateClass([
38
34
  styleExpressionProperty({
39
- valueTemplate: (v) => v
35
+ valueTemplate: (v) => v,
36
+ selector: '[part="_button"]'
40
37
  })
41
38
  ], GdsFab.prototype, "position", 2);
42
39
  __decorateClass([