@sebgroup/green-core 1.65.2 → 1.66.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 (182) hide show
  1. package/chunks/{chunk.L2TDNB6Z.js → chunk.2TZQ3MDQ.js} +6 -6
  2. package/chunks/chunk.76QWARGM.js +48 -0
  3. package/chunks/{chunk.M3LCBAMM.js → chunk.A2ARMXHR.js} +23 -12
  4. package/chunks/{chunk.N5YJ6GYI.js → chunk.ABTQCCBV.js} +10 -3
  5. package/chunks/{chunk.BJYILCTQ.js → chunk.B3PSMHT6.js} +1 -1
  6. package/chunks/{chunk.FQ5S3SPL.js → chunk.BQMZCIMP.js} +39 -28
  7. package/chunks/{chunk.5KH5FC7L.js → chunk.CGCEAKK2.js} +27 -18
  8. package/chunks/{chunk.QQZ6OU7Y.js → chunk.CUO2GKQU.js} +7 -43
  9. package/chunks/{chunk.N7UBPAKJ.js → chunk.DUSS7BGM.js} +5 -4
  10. package/chunks/{chunk.ZJAOT2TY.js → chunk.FWPPRWSD.js} +13 -9
  11. package/chunks/{chunk.33KNAKAX.js → chunk.FXUCA5WD.js} +1 -1
  12. package/chunks/{chunk.QOMPMV5S.js → chunk.GA3YH7BJ.js} +9 -2
  13. package/chunks/{chunk.IDLO4SF7.js → chunk.GKVOMAJ2.js} +3 -4
  14. package/chunks/chunk.H6NW2AZI.js +20 -0
  15. package/chunks/{chunk.3HYF3OQJ.js → chunk.IWPDKCOR.js} +1 -1
  16. package/chunks/{chunk.72P5ER45.js → chunk.JATJPE5A.js} +2 -2
  17. package/chunks/{chunk.S6H4MUKG.js → chunk.JG7YSP2S.js} +39 -1
  18. package/chunks/{chunk.ERDZD4ZA.js → chunk.K5MGPWSI.js} +18 -42
  19. package/chunks/{chunk.IVF6XCAV.js → chunk.K7LF45RZ.js} +33 -22
  20. package/chunks/chunk.LIZU7Q7S.js +41 -0
  21. package/chunks/{chunk.NXCMDWVV.js → chunk.LQWSUUSO.js} +13 -31
  22. package/chunks/chunk.M5C2HLKD.js +0 -0
  23. package/chunks/{chunk.WVIONKU4.js → chunk.MB4N2TLS.js} +1 -1
  24. package/chunks/{chunk.TMGAZY2U.js → chunk.MHE47HSD.js} +3 -8
  25. package/chunks/{chunk.K4KPKUH4.js → chunk.NUUST5OZ.js} +5 -5
  26. package/chunks/{chunk.UQ24RS46.js → chunk.NZPQWRHY.js} +8 -2
  27. package/chunks/{chunk.6J4YIHNE.js → chunk.OS6N3LBH.js} +1 -1
  28. package/chunks/{chunk.7RH4YLXP.js → chunk.PFDA2XEU.js} +1 -1
  29. package/chunks/{chunk.RZC5YKY2.js → chunk.PKIA4VAQ.js} +1 -1
  30. package/chunks/{chunk.WXLGEKTJ.js → chunk.PKLJ2TLQ.js} +2 -2
  31. package/chunks/{chunk.6AXAS42G.js → chunk.PKUTRSH5.js} +1 -1
  32. package/chunks/{chunk.NXUVLTO7.js → chunk.PLEPR2D6.js} +25 -14
  33. package/chunks/{chunk.JIYNFF4D.js → chunk.PRZWHTIF.js} +5 -20
  34. package/chunks/chunk.QK3R23GV.js +1 -1
  35. package/chunks/chunk.RL6DEFTH.js +189 -0
  36. package/chunks/{chunk.7M5L527M.js → chunk.RQIXSEFI.js} +10 -3
  37. package/chunks/{chunk.E2DI7SCS.js → chunk.SFLNKTO7.js} +3 -3
  38. package/chunks/{chunk.ZRVWDJF3.js → chunk.SR2K6TIR.js} +19 -39
  39. package/chunks/chunk.TWXTKG4B.js +139 -0
  40. package/chunks/{chunk.AOTGGABX.js → chunk.U34BD2JF.js} +10 -3
  41. package/chunks/{chunk.HLECFPM7.js → chunk.UCWZMGLJ.js} +2 -2
  42. package/chunks/{chunk.I26S7X2I.js → chunk.WL6NWVQ4.js} +1 -1
  43. package/chunks/{chunk.3YLD22MP.js → chunk.X24GDWPW.js} +11 -2
  44. package/chunks/{chunk.D7J47HUV.js → chunk.X25JMZXD.js} +5 -18
  45. package/chunks/{chunk.RWKRHNWT.js → chunk.YCBBHBJE.js} +1 -1
  46. package/chunks/{chunk.MNBT4BBM.js → chunk.ZTC4XBBD.js} +17 -16
  47. package/components/badge/badge.d.ts +3 -1
  48. package/components/badge/badge.js +9 -7
  49. package/components/badge/index.js +9 -7
  50. package/components/button/button.d.ts +16 -12
  51. package/components/button/button.js +8 -5
  52. package/components/button/button.trans.styles.js +2 -2
  53. package/components/button/index.js +8 -5
  54. package/components/calendar/calendar.js +4 -4
  55. package/components/calendar/calendar.trans.styles.js +2 -2
  56. package/components/calendar/index.js +4 -4
  57. package/components/card/card.d.ts +6 -5
  58. package/components/card/card.js +7 -5
  59. package/components/card/index.js +7 -5
  60. package/components/container/container.d.ts +3 -392
  61. package/components/container/container.js +8 -3
  62. package/components/container/index.js +8 -3
  63. package/components/context-menu/context-menu.d.ts +3 -1
  64. package/components/context-menu/context-menu.js +10 -7
  65. package/components/context-menu/context-menu.trans.styles.js +2 -2
  66. package/components/context-menu/index.js +11 -8
  67. package/components/datepicker/datepicker.d.ts +19 -15
  68. package/components/datepicker/datepicker.js +26 -24
  69. package/components/datepicker/datepicker.trans.styles.js +2 -2
  70. package/components/datepicker/index.js +26 -24
  71. package/components/dialog/dialog.js +13 -11
  72. package/components/dialog/index.js +13 -11
  73. package/components/div/div.d.ts +173 -0
  74. package/components/div/div.js +15 -0
  75. package/components/div/index.d.ts +1 -0
  76. package/components/div/index.js +16 -0
  77. package/components/divider/divider.d.ts +10 -8
  78. package/components/divider/divider.js +4 -3
  79. package/components/divider/index.js +4 -3
  80. package/components/dropdown/dropdown.js +20 -18
  81. package/components/dropdown/dropdown.trans.styles.js +2 -2
  82. package/components/dropdown/index.js +21 -19
  83. package/components/fab/fab.d.ts +3 -17
  84. package/components/fab/fab.js +9 -7
  85. package/components/fab/index.js +9 -7
  86. package/components/filter-chips/filter-chip/filter-chip.js +9 -6
  87. package/components/filter-chips/filter-chip/filter-chip.trans.styles.js +2 -2
  88. package/components/filter-chips/filter-chip/index.js +9 -6
  89. package/components/filter-chips/filter-chips.js +9 -6
  90. package/components/filter-chips/filter-chips.trans.styles.js +2 -2
  91. package/components/filter-chips/index.js +9 -6
  92. package/components/flex/flex.d.ts +3 -76
  93. package/components/flex/flex.js +7 -5
  94. package/components/flex/index.js +7 -5
  95. package/components/form/index.js +12 -8
  96. package/components/form/summary/index.js +12 -8
  97. package/components/form/summary/summary.js +12 -8
  98. package/components/grid/grid.d.ts +5 -6
  99. package/components/grid/grid.js +7 -5
  100. package/components/grid/index.js +7 -5
  101. package/components/grouped-list/grouped-list.js +4 -4
  102. package/components/grouped-list/grouped-list.trans.styles.js +2 -2
  103. package/components/grouped-list/index.js +4 -4
  104. package/components/icon/icons/index.js +132 -132
  105. package/components/img/img.d.ts +17 -77
  106. package/components/img/img.js +5 -3
  107. package/components/img/index.js +5 -3
  108. package/components/index.js +63 -59
  109. package/components/input/index.js +17 -15
  110. package/components/input/input.d.ts +19 -15
  111. package/components/input/input.js +17 -15
  112. package/components/input/input.trans.styles.js +2 -2
  113. package/components/link/index.js +6 -4
  114. package/components/link/link.d.ts +3 -1
  115. package/components/link/link.js +6 -4
  116. package/components/mask/index.js +8 -6
  117. package/components/mask/mask.d.ts +1 -0
  118. package/components/mask/mask.js +8 -6
  119. package/components/menu-button/index.js +6 -3
  120. package/components/menu-button/menu-button.d.ts +3 -1
  121. package/components/menu-button/menu-button.js +6 -3
  122. package/components/popover/index.js +6 -6
  123. package/components/popover/popover.js +4 -4
  124. package/components/popover/popover.trans.styles.js +2 -2
  125. package/components/rich-text/index.js +6 -3
  126. package/components/rich-text/rich-text.d.ts +3 -1
  127. package/components/rich-text/rich-text.js +6 -3
  128. package/components/segmented-control/index.js +9 -7
  129. package/components/segmented-control/segment/index.js +7 -5
  130. package/components/segmented-control/segment/segment.d.ts +3 -13
  131. package/components/segmented-control/segment/segment.js +7 -5
  132. package/components/segmented-control/segment/segment.trans.styles.js +2 -2
  133. package/components/segmented-control/segmented-control.d.ts +3 -1
  134. package/components/segmented-control/segmented-control.js +9 -7
  135. package/components/segmented-control/segmented-control.trans.styles.js +2 -2
  136. package/components/select/index.js +17 -15
  137. package/components/select/select.d.ts +31 -27
  138. package/components/select/select.js +17 -15
  139. package/components/select/select.trans.styles.js +2 -2
  140. package/components/signal/index.js +3 -3
  141. package/components/signal/signal.js +3 -3
  142. package/components/spacer/index.js +3 -3
  143. package/components/spacer/spacer.d.ts +3 -0
  144. package/components/spacer/spacer.js +3 -3
  145. package/components/text/index.js +7 -5
  146. package/components/text/text.d.ts +9 -87
  147. package/components/text/text.js +7 -5
  148. package/components/textarea/index.js +17 -15
  149. package/components/textarea/textarea.d.ts +19 -15
  150. package/components/textarea/textarea.js +17 -15
  151. package/components/theme/index.js +4 -4
  152. package/components/theme/theme.js +4 -4
  153. package/components/theme/theme.trans.styles.js +2 -2
  154. package/components/video/index.js +5 -3
  155. package/components/video/video.d.ts +5 -31
  156. package/components/video/video.js +5 -3
  157. package/index.js +63 -59
  158. package/package.json +1 -1
  159. package/primitives/field-base/field-base.js +4 -4
  160. package/primitives/field-base/index.js +4 -4
  161. package/primitives/form-control-footer/form-control-footer.js +9 -7
  162. package/primitives/form-control-footer/index.js +9 -7
  163. package/primitives/form-control-header/form-control-header.js +11 -9
  164. package/primitives/form-control-header/index.js +11 -9
  165. package/primitives/listbox/index.js +5 -5
  166. package/primitives/listbox/listbox.js +5 -5
  167. package/primitives/listbox/option.js +4 -4
  168. package/primitives/menu/index.js +5 -5
  169. package/primitives/menu/menu-heading.js +4 -4
  170. package/primitives/menu/menu-item.js +4 -4
  171. package/primitives/menu/menu.js +5 -5
  172. package/primitives/ripple/index.js +3 -3
  173. package/primitives/ripple/ripple.js +3 -3
  174. package/transitional-styles.js +2 -2
  175. package/utils/decorators/style-expression-property.d.ts +1 -1
  176. package/utils/helpers/index.d.ts +1 -0
  177. package/utils/helpers/style-expression-helpers.d.ts +33 -0
  178. package/utils/mixins/declarative-layout-mixins.d.ts +69 -0
  179. package/utils/mixins/mixin-builder.d.ts +24 -0
  180. package/chunks/chunk.5SFGYE7C.js +0 -106
  181. package/chunks/chunk.N4DG6Q7H.js +0 -381
  182. /package/components/{container/container.style.d.ts → div/div.style.d.ts} +0 -0
@@ -5,7 +5,7 @@ import {
5
5
  // dist/libs/tokens/internal/dark.css?inline
6
6
  var dark_default = `/**
7
7
  * Do not edit directly
8
- * Generated on Tue, 18 Feb 2025 15:42:46 GMT
8
+ * Generated on Mon, 24 Feb 2025 17:58:09 GMT
9
9
  */
10
10
 
11
11
  color-scheme: dark;
@@ -119,7 +119,7 @@ color-scheme: dark;
119
119
  // dist/libs/tokens/internal/light.css?inline
120
120
  var light_default = `/**
121
121
  * Do not edit directly
122
- * Generated on Tue, 18 Feb 2025 15:42:46 GMT
122
+ * Generated on Mon, 24 Feb 2025 17:58:09 GMT
123
123
  */
124
124
 
125
125
  color-scheme: light;
@@ -236,7 +236,7 @@ import { css, unsafeCSS } from "lit";
236
236
  // dist/libs/tokens/internal/motion.css?inline
237
237
  var motion_default = `/**
238
238
  * Do not edit directly
239
- * Generated on Tue, 18 Feb 2025 15:42:46 GMT
239
+ * Generated on Mon, 24 Feb 2025 17:58:09 GMT
240
240
  */
241
241
 
242
242
  :host {
@@ -255,7 +255,7 @@ var motion_default = `/**
255
255
  // dist/libs/tokens/internal/shadow.css?inline
256
256
  var shadow_default = `/**
257
257
  * Do not edit directly
258
- * Generated on Tue, 18 Feb 2025 15:42:46 GMT
258
+ * Generated on Mon, 24 Feb 2025 17:58:09 GMT
259
259
  */
260
260
 
261
261
  :host {
@@ -270,7 +270,7 @@ var shadow_default = `/**
270
270
  // dist/libs/tokens/internal/size.css?inline
271
271
  var size_default = `/**
272
272
  * Do not edit directly
273
- * Generated on Tue, 18 Feb 2025 15:42:46 GMT
273
+ * Generated on Mon, 24 Feb 2025 17:58:09 GMT
274
274
  */
275
275
 
276
276
  :host {
@@ -297,7 +297,7 @@ var size_default = `/**
297
297
  // dist/libs/tokens/internal/text.css?inline
298
298
  var text_default = `/**
299
299
  * Do not edit directly
300
- * Generated on Tue, 18 Feb 2025 15:42:46 GMT
300
+ * Generated on Mon, 24 Feb 2025 17:58:09 GMT
301
301
  */
302
302
 
303
303
  :host {
@@ -0,0 +1,48 @@
1
+ // libs/core/src/utils/helpers/style-expression-helpers.ts
2
+ function parseColorValue(value, context, level) {
3
+ if (value === "transparent" || value === "currentColor" || value === "inherit") {
4
+ return value;
5
+ }
6
+ const [colorName, transparency] = value.split("/");
7
+ const colorVar = `var(--gds-color-l${level}-${context}-${colorName})`;
8
+ return transparency ? `color-mix(in srgb, ${colorVar} ${parseFloat(transparency) * 100}%, transparent 0%)` : colorVar;
9
+ }
10
+ function forColorTokens(context) {
11
+ return {
12
+ valueTemplate: function(v) {
13
+ return parseColorValue(v, context, this.level);
14
+ }
15
+ };
16
+ }
17
+ var forSpaceTokens = {
18
+ valueTemplate: (value) => `var(--gds-space-${value}, 0)`
19
+ };
20
+ var forSpaceTokensAndCustomValues = {
21
+ valueTemplate: (value) => `var(--gds-space-${sanitizeVariableName(value)}, ${value})`
22
+ };
23
+ var forSpaceTokensSupportingNegative = {
24
+ valueTemplate: (v) => {
25
+ const sign = v.startsWith("-") ? "neg" : "pos";
26
+ const val = sign == "pos" ? `var(--gds-space-${v})` : `calc(var(--gds-space-${v.substring(1)}) * -1)`;
27
+ return v === "auto" ? "auto" : val;
28
+ },
29
+ styleTemplate: (prop, values) => {
30
+ const transformValue = (v) => v === "auto" ? "auto" : `${v}`;
31
+ const top = transformValue(values[0]);
32
+ const right = values.length > 1 ? transformValue(values[1]) : top;
33
+ const bottom = values.length > 2 ? transformValue(values[2]) : top;
34
+ const left = values.length > 3 ? transformValue(values[3]) : right;
35
+ return `${prop}: ${top} ${right} ${bottom} ${left};`;
36
+ }
37
+ };
38
+ function sanitizeVariableName(name) {
39
+ return name.replace(/[^a-zA-Z0-9-]/g, "");
40
+ }
41
+
42
+ export {
43
+ parseColorValue,
44
+ forColorTokens,
45
+ forSpaceTokens,
46
+ forSpaceTokensAndCustomValues,
47
+ forSpaceTokensSupportingNegative
48
+ };
@@ -4,12 +4,17 @@ import {
4
4
  import {
5
5
  observeLightDOM
6
6
  } from "./chunk.WM7HBMMV.js";
7
+ import {
8
+ withLayoutChildProps,
9
+ withMarginProps,
10
+ withSizeXProps
11
+ } from "./chunk.TWXTKG4B.js";
7
12
  import {
8
13
  watch
9
14
  } from "./chunk.TYGMNHNO.js";
10
15
  import {
11
16
  tokens
12
- } from "./chunk.L2TDNB6Z.js";
17
+ } from "./chunk.2TZQ3MDQ.js";
13
18
  import {
14
19
  gdsCustomElement,
15
20
  html
@@ -79,7 +84,7 @@ var styles = css`
79
84
 
80
85
  // libs/core/src/components/select/select.ts
81
86
  var _isValueInitialized, _handleSelectElementChange, _setValueFromSelectElement, setValueFromSelectElement_fn, _renderFieldContents, renderFieldContents_fn, _renderSlotLead, renderSlotLead_fn, _renderMainLabel, renderMainLabel_fn, _renderMainSlot, renderMainSlot_fn, _renderChevron, renderChevron_fn;
82
- var GdsSelect = class extends GdsFormControlElement {
87
+ var Select = class extends GdsFormControlElement {
83
88
  constructor() {
84
89
  super(...arguments);
85
90
  __privateAdd(this, _setValueFromSelectElement);
@@ -287,22 +292,22 @@ renderChevron_fn = function() {
287
292
  return html` <gds-icon-chevron-bottom></gds-icon-chevron-bottom> `;
288
293
  }
289
294
  };
290
- GdsSelect.styles = [tokens, styles];
295
+ Select.styles = [tokens, styles];
291
296
  __decorateClass([
292
297
  property({ attribute: "supporting-text" })
293
- ], GdsSelect.prototype, "supportingText", 2);
298
+ ], Select.prototype, "supportingText", 2);
294
299
  __decorateClass([
295
300
  property({ type: String })
296
- ], GdsSelect.prototype, "size", 2);
301
+ ], Select.prototype, "size", 2);
297
302
  __decorateClass([
298
303
  query("select")
299
- ], GdsSelect.prototype, "selectElement", 2);
304
+ ], Select.prototype, "selectElement", 2);
300
305
  __decorateClass([
301
306
  property()
302
- ], GdsSelect.prototype, "value", 1);
307
+ ], Select.prototype, "value", 1);
303
308
  __decorateClass([
304
309
  query(".select-container")
305
- ], GdsSelect.prototype, "_elSelectContainer", 2);
310
+ ], Select.prototype, "_elSelectContainer", 2);
306
311
  __decorateClass([
307
312
  observeLightDOM({
308
313
  childList: true,
@@ -310,13 +315,19 @@ __decorateClass([
310
315
  attributes: true,
311
316
  characterData: true
312
317
  })
313
- ], GdsSelect.prototype, "_captureDOM", 1);
318
+ ], Select.prototype, "_captureDOM", 1);
314
319
  __decorateClass([
315
320
  watch("value")
316
- ], GdsSelect.prototype, "_handleValueChange", 1);
317
- GdsSelect = __decorateClass([
318
- gdsCustomElement("gds-select"),
321
+ ], Select.prototype, "_handleValueChange", 1);
322
+ Select = __decorateClass([
319
323
  localized()
324
+ ], Select);
325
+ var GdsSelect = class extends withLayoutChildProps(
326
+ withSizeXProps(withMarginProps(Select))
327
+ ) {
328
+ };
329
+ GdsSelect = __decorateClass([
330
+ gdsCustomElement("gds-select")
320
331
  ], GdsSelect);
321
332
 
322
333
  export {
@@ -1,9 +1,14 @@
1
+ import {
2
+ withLayoutChildProps,
3
+ withMarginProps,
4
+ withSizeXProps
5
+ } from "./chunk.TWXTKG4B.js";
1
6
  import {
2
7
  styleExpressionProperty
3
- } from "./chunk.K4KPKUH4.js";
8
+ } from "./chunk.NUUST5OZ.js";
4
9
  import {
5
10
  tokens
6
- } from "./chunk.L2TDNB6Z.js";
11
+ } from "./chunk.2TZQ3MDQ.js";
7
12
  import {
8
13
  GdsElement
9
14
  } from "./chunk.TMEWQZER.js";
@@ -61,7 +66,9 @@ var link_styles_default = style;
61
66
 
62
67
  // libs/core/src/components/link/link.ts
63
68
  var _defaultRel, defaultRel_get;
64
- var GdsLink = class extends GdsElement {
69
+ var GdsLink = class extends withMarginProps(
70
+ withSizeXProps(withLayoutChildProps(GdsElement))
71
+ ) {
65
72
  constructor() {
66
73
  super();
67
74
  __privateAdd(this, _defaultRel);
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk.WM7HBMMV.js";
4
4
  import {
5
5
  TransitionalStyles
6
- } from "./chunk.S6H4MUKG.js";
6
+ } from "./chunk.JG7YSP2S.js";
7
7
  import {
8
8
  watch
9
9
  } from "./chunk.TYGMNHNO.js";
@@ -5,15 +5,20 @@ import {
5
5
  import {
6
6
  GdsFormControlElement
7
7
  } from "./chunk.VA6TUMR2.js";
8
+ import {
9
+ withLayoutChildProps,
10
+ withMarginProps,
11
+ withSizeXProps
12
+ } from "./chunk.TWXTKG4B.js";
8
13
  import {
9
14
  TransitionalStyles
10
- } from "./chunk.S6H4MUKG.js";
15
+ } from "./chunk.JG7YSP2S.js";
11
16
  import {
12
17
  watch
13
18
  } from "./chunk.TYGMNHNO.js";
14
19
  import {
15
20
  tokens
16
- } from "./chunk.L2TDNB6Z.js";
21
+ } from "./chunk.2TZQ3MDQ.js";
17
22
  import {
18
23
  gdsCustomElement,
19
24
  html
@@ -92,7 +97,7 @@ var styles = css`
92
97
 
93
98
  // libs/core/src/components/datepicker/datepicker.ts
94
99
  var _valueOnOpen, _renderBackToValidRangeButton, renderBackToValidRangeButton_fn, _focusDate, focusDate_fn, _getSpinnerLabel, getSpinnerLabel_fn, _getMinSpinnerValue, getMinSpinnerValue_fn, _getMaxSpinnerValue, getMaxSpinnerValue_fn, _dispatchChangeEvent, dispatchChangeEvent_fn, _dispatchInputEvent, dispatchInputEvent_fn, _handleFieldFocusOut, _handleSpinnerFocus, _handleClipboardCopy, _handleClipboardPaste, _handleFieldClick, _handleCalendarChange, _handleMonthChange, _handleYearChange, _handleIncrementFocusedMonth, _handleDecrementFocusedMonth, _handleCalendarFocusChange, _handlePopoverStateChange, _handleSpinnerKeydown, _parseDateFormat, parseDateFormat_fn, _handleSpinnerChange, _spinnerState, _years, years_get, _isValueOutsideRange, isValueOutsideRange_get;
95
- var GdsDatepicker = class extends GdsFormControlElement {
100
+ var Datepicker = class extends GdsFormControlElement {
96
101
  constructor() {
97
102
  super(...arguments);
98
103
  __privateAdd(this, _renderBackToValidRangeButton);
@@ -713,76 +718,82 @@ isValueOutsideRange_get = function() {
713
718
  return false;
714
719
  return this.value.getFullYear() < this.min.getFullYear() || this.value.getFullYear() > this.max.getFullYear();
715
720
  };
716
- GdsDatepicker.styles = [tokens, styles];
721
+ Datepicker.styles = [tokens, styles];
717
722
  __decorateClass([
718
723
  property({ converter: dateConverter })
719
- ], GdsDatepicker.prototype, "value", 1);
724
+ ], Datepicker.prototype, "value", 1);
720
725
  __decorateClass([
721
726
  property({ converter: dateConverter })
722
- ], GdsDatepicker.prototype, "min", 2);
727
+ ], Datepicker.prototype, "min", 2);
723
728
  __decorateClass([
724
729
  property({ converter: dateConverter })
725
- ], GdsDatepicker.prototype, "max", 2);
730
+ ], Datepicker.prototype, "max", 2);
726
731
  __decorateClass([
727
732
  property({ type: Boolean })
728
- ], GdsDatepicker.prototype, "open", 2);
733
+ ], Datepicker.prototype, "open", 2);
729
734
  __decorateClass([
730
735
  property({ attribute: "supporting-text" })
731
- ], GdsDatepicker.prototype, "supportingText", 2);
736
+ ], Datepicker.prototype, "supportingText", 2);
732
737
  __decorateClass([
733
738
  property({ type: String })
734
- ], GdsDatepicker.prototype, "size", 2);
739
+ ], Datepicker.prototype, "size", 2);
735
740
  __decorateClass([
736
741
  property({ type: Boolean, attribute: "show-week-numbers" })
737
- ], GdsDatepicker.prototype, "showWeekNumbers", 2);
742
+ ], Datepicker.prototype, "showWeekNumbers", 2);
738
743
  __decorateClass([
739
744
  property({ type: Boolean, attribute: "hide-label" })
740
- ], GdsDatepicker.prototype, "hideLabel", 2);
745
+ ], Datepicker.prototype, "hideLabel", 2);
741
746
  __decorateClass([
742
747
  property()
743
- ], GdsDatepicker.prototype, "dateformat", 1);
748
+ ], Datepicker.prototype, "dateformat", 1);
744
749
  __decorateClass([
745
750
  property({ type: Boolean, attribute: "disabled-weekends" })
746
- ], GdsDatepicker.prototype, "disabledWeekends", 2);
751
+ ], Datepicker.prototype, "disabledWeekends", 2);
747
752
  __decorateClass([
748
753
  property({ converter: dateArrayConverter, attribute: "disabled-dates" })
749
- ], GdsDatepicker.prototype, "disabledDates", 2);
754
+ ], Datepicker.prototype, "disabledDates", 2);
750
755
  __decorateClass([
751
756
  queryAsync("#calendar-button")
752
- ], GdsDatepicker.prototype, "test_calendarButton", 2);
757
+ ], Datepicker.prototype, "test_calendarButton", 2);
753
758
  __decorateClass([
754
759
  state()
755
- ], GdsDatepicker.prototype, "_focusedMonth", 2);
760
+ ], Datepicker.prototype, "_focusedMonth", 2);
756
761
  __decorateClass([
757
762
  state()
758
- ], GdsDatepicker.prototype, "_focusedYear", 2);
763
+ ], Datepicker.prototype, "_focusedYear", 2);
759
764
  __decorateClass([
760
765
  state()
761
- ], GdsDatepicker.prototype, "_dateFormatLayout", 2);
766
+ ], Datepicker.prototype, "_dateFormatLayout", 2);
762
767
  __decorateClass([
763
768
  queryAsync("#calendar")
764
- ], GdsDatepicker.prototype, "_elCalendar", 2);
769
+ ], Datepicker.prototype, "_elCalendar", 2);
765
770
  __decorateClass([
766
771
  queryAsync("#calendar-button")
767
- ], GdsDatepicker.prototype, "_elTrigger", 2);
772
+ ], Datepicker.prototype, "_elTrigger", 2);
768
773
  __decorateClass([
769
774
  queryAsync("#field")
770
- ], GdsDatepicker.prototype, "_elFieldAsync", 2);
775
+ ], Datepicker.prototype, "_elFieldAsync", 2);
771
776
  __decorateClass([
772
777
  queryAll("[role=spinbutton]")
773
- ], GdsDatepicker.prototype, "_elSpinners", 2);
778
+ ], Datepicker.prototype, "_elSpinners", 2);
774
779
  __decorateClass([
775
780
  query("#field")
776
- ], GdsDatepicker.prototype, "_elField", 2);
781
+ ], Datepicker.prototype, "_elField", 2);
777
782
  __decorateClass([
778
783
  watch("value")
779
- ], GdsDatepicker.prototype, "_handleValueChange", 1);
784
+ ], Datepicker.prototype, "_handleValueChange", 1);
780
785
  __decorateClass([
781
786
  watch("open")
782
- ], GdsDatepicker.prototype, "_handleOpenChange", 1);
783
- GdsDatepicker = __decorateClass([
784
- gdsCustomElement("gds-datepicker"),
787
+ ], Datepicker.prototype, "_handleOpenChange", 1);
788
+ Datepicker = __decorateClass([
785
789
  localized()
790
+ ], Datepicker);
791
+ var GdsDatepicker = class extends withSizeXProps(
792
+ withMarginProps(withLayoutChildProps(Datepicker))
793
+ ) {
794
+ };
795
+ GdsDatepicker = __decorateClass([
796
+ gdsCustomElement("gds-datepicker")
786
797
  ], GdsDatepicker);
787
798
 
788
799
  export {
@@ -4,12 +4,17 @@ import {
4
4
  import {
5
5
  observeLightDOM
6
6
  } from "./chunk.WM7HBMMV.js";
7
+ import {
8
+ withLayoutChildProps,
9
+ withMarginProps,
10
+ withSizeXProps
11
+ } from "./chunk.TWXTKG4B.js";
7
12
  import {
8
13
  TransitionalStyles
9
- } from "./chunk.S6H4MUKG.js";
14
+ } from "./chunk.JG7YSP2S.js";
10
15
  import {
11
16
  tokens
12
- } from "./chunk.L2TDNB6Z.js";
17
+ } from "./chunk.2TZQ3MDQ.js";
13
18
  import {
14
19
  gdsCustomElement,
15
20
  html
@@ -398,7 +403,7 @@ var button_style_default = `@layer tokens, core, a11y, ranks, sizes, variants, d
398
403
  var ariaForwards = ["aria-label", "aria-haspopup", "aria-expanded"];
399
404
  var html2 = stripWhitespace(html);
400
405
  var _isIconButton, _isLink, isLink_get, _defaultRel, defaultRel_get, _mainSlotChange, _handleClick;
401
- var GdsButton = class extends GdsFormControlElement {
406
+ var Button = class extends GdsFormControlElement {
402
407
  constructor() {
403
408
  super();
404
409
  __privateAdd(this, _isLink);
@@ -500,50 +505,50 @@ defaultRel_get = function() {
500
505
  };
501
506
  _mainSlotChange = new WeakMap();
502
507
  _handleClick = new WeakMap();
503
- GdsButton.styles = [tokens, unsafeCSS(button_style_default)];
508
+ Button.styles = [tokens, unsafeCSS(button_style_default)];
504
509
  /**
505
510
  * @internal
506
511
  */
507
- GdsButton.shadowRootOptions = {
512
+ Button.shadowRootOptions = {
508
513
  mode: "open",
509
514
  delegatesFocus: true
510
515
  };
511
516
  __decorateClass([
512
517
  property({ type: Boolean, reflect: true })
513
- ], GdsButton.prototype, "disabled", 2);
518
+ ], Button.prototype, "disabled", 2);
514
519
  __decorateClass([
515
520
  property({ reflect: true })
516
- ], GdsButton.prototype, "type", 2);
521
+ ], Button.prototype, "type", 2);
517
522
  __decorateClass([
518
523
  property({ reflect: true })
519
- ], GdsButton.prototype, "rank", 2);
524
+ ], Button.prototype, "rank", 2);
520
525
  __decorateClass([
521
526
  property({ reflect: true })
522
- ], GdsButton.prototype, "variant", 2);
527
+ ], Button.prototype, "variant", 2);
523
528
  __decorateClass([
524
529
  property({ reflect: true })
525
- ], GdsButton.prototype, "size", 2);
530
+ ], Button.prototype, "size", 2);
526
531
  __decorateClass([
527
532
  property()
528
- ], GdsButton.prototype, "label", 2);
533
+ ], Button.prototype, "label", 2);
529
534
  __decorateClass([
530
535
  property()
531
- ], GdsButton.prototype, "href", 2);
536
+ ], Button.prototype, "href", 2);
532
537
  __decorateClass([
533
538
  property()
534
- ], GdsButton.prototype, "target", 2);
539
+ ], Button.prototype, "target", 2);
535
540
  __decorateClass([
536
541
  property()
537
- ], GdsButton.prototype, "rel", 2);
542
+ ], Button.prototype, "rel", 2);
538
543
  __decorateClass([
539
544
  property()
540
- ], GdsButton.prototype, "download", 2);
545
+ ], Button.prototype, "download", 2);
541
546
  __decorateClass([
542
547
  query("slot:not([name])")
543
- ], GdsButton.prototype, "_mainSlot", 2);
548
+ ], Button.prototype, "_mainSlot", 2);
544
549
  __decorateClass([
545
550
  query(".button")
546
- ], GdsButton.prototype, "_button", 2);
551
+ ], Button.prototype, "_button", 2);
547
552
  __decorateClass([
548
553
  observeLightDOM({
549
554
  attributes: true,
@@ -551,7 +556,11 @@ __decorateClass([
551
556
  subtree: false,
552
557
  characterData: false
553
558
  })
554
- ], GdsButton.prototype, "_attributeChanged", 1);
559
+ ], Button.prototype, "_attributeChanged", 1);
560
+ var GdsButton = class extends withSizeXProps(
561
+ withMarginProps(withLayoutChildProps(Button))
562
+ ) {
563
+ };
555
564
  GdsButton = __decorateClass([
556
565
  gdsCustomElement("gds-button")
557
566
  ], GdsButton);
@@ -2,14 +2,14 @@ import {
2
2
  defaultStyles
3
3
  } from "./chunk.UEJZWDMS.js";
4
4
  import {
5
- GdsContainer
6
- } from "./chunk.N4DG6Q7H.js";
5
+ GdsDiv
6
+ } from "./chunk.RL6DEFTH.js";
7
7
  import {
8
8
  styleExpressionProperty
9
- } from "./chunk.K4KPKUH4.js";
9
+ } from "./chunk.NUUST5OZ.js";
10
10
  import {
11
11
  tokens
12
- } from "./chunk.L2TDNB6Z.js";
12
+ } from "./chunk.2TZQ3MDQ.js";
13
13
  import {
14
14
  gdsCustomElement
15
15
  } from "./chunk.QK3R23GV.js";
@@ -37,10 +37,9 @@ var style = css`
37
37
  var text_style_default = style;
38
38
 
39
39
  // libs/core/src/components/text/text.ts
40
- var GdsText = class extends GdsContainer {
40
+ var GdsText = class extends GdsDiv {
41
41
  constructor() {
42
42
  super(...arguments);
43
- this.level = "2";
44
43
  this.tag = "span";
45
44
  }
46
45
  render() {
@@ -49,17 +48,13 @@ var GdsText = class extends GdsContainer {
49
48
  }
50
49
  };
51
50
  GdsText.styles = [tokens, defaultStyles, text_style_default];
52
- __decorateClass([
53
- property()
54
- ], GdsText.prototype, "level", 2);
55
51
  __decorateClass([
56
52
  property({ type: String })
57
53
  ], GdsText.prototype, "tag", 2);
58
54
  __decorateClass([
59
55
  styleExpressionProperty({
60
- valueTemplate: (v) => `${v}`,
61
56
  selector: "[tag]",
62
- styleTemplate: (prop, values) => {
57
+ styleTemplate: (_prop, values) => {
63
58
  const size = values[0];
64
59
  const styleSize = `font-size: var(--gds-text-size-${size});`;
65
60
  const styleLine = `line-height: var(--gds-text-line-height-${size});`;
@@ -69,38 +64,20 @@ __decorateClass([
69
64
  ], GdsText.prototype, "font-size", 2);
70
65
  __decorateClass([
71
66
  styleExpressionProperty({
72
- property: "font-weight",
73
67
  selector: "[tag]",
74
68
  valueTemplate: (v) => `var(--gds-text-weight-${v})`
75
69
  })
76
70
  ], GdsText.prototype, "font-weight", 2);
77
71
  __decorateClass([
78
- styleExpressionProperty({
79
- property: "text-wrap",
80
- valueTemplate: (v) => v
81
- })
82
- ], GdsText.prototype, "text-wrap", 2);
83
- __decorateClass([
84
- styleExpressionProperty({
85
- property: "text-transform",
86
- valueTemplate: (v) => v
87
- })
72
+ styleExpressionProperty()
88
73
  ], GdsText.prototype, "text-transform", 2);
89
74
  __decorateClass([
90
75
  styleExpressionProperty({
91
- property: "text-align",
92
- valueTemplate: (v) => v
93
- })
94
- ], GdsText.prototype, "text-align", 2);
95
- __decorateClass([
96
- styleExpressionProperty({
97
- valueTemplate: (v) => v,
98
76
  selector: "[tag]"
99
77
  })
100
78
  ], GdsText.prototype, "text-decoration", 2);
101
79
  __decorateClass([
102
80
  styleExpressionProperty({
103
- valueTemplate: (v) => v,
104
81
  styleTemplate: (_prop, values) => {
105
82
  return `overflow: hidden;
106
83
  text-overflow: ellipsis;
@@ -110,19 +87,6 @@ __decorateClass([
110
87
  }
111
88
  })
112
89
  ], GdsText.prototype, "lines", 2);
113
- __decorateClass([
114
- styleExpressionProperty({
115
- property: "color",
116
- valueTemplate: function(v) {
117
- const [colorName, transparency] = v.split("/");
118
- if (transparency) {
119
- return `color-mix(in srgb, var(--gds-color-${"l" + this.level}-content-${colorName}) ${parseFloat(transparency) * 100}%, transparent 0%)`;
120
- } else {
121
- return `var(--gds-color-${"l" + this.level}-content-${colorName})`;
122
- }
123
- }
124
- })
125
- ], GdsText.prototype, "color", 2);
126
90
  GdsText = __decorateClass([
127
91
  gdsCustomElement("gds-text")
128
92
  ], GdsText);
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  TransitionalStyles
3
- } from "./chunk.S6H4MUKG.js";
3
+ } from "./chunk.JG7YSP2S.js";
4
4
  import {
5
5
  watch
6
6
  } from "./chunk.TYGMNHNO.js";
7
7
  import {
8
8
  tokens
9
- } from "./chunk.L2TDNB6Z.js";
9
+ } from "./chunk.2TZQ3MDQ.js";
10
10
  import {
11
11
  GdsElement
12
12
  } from "./chunk.TMEWQZER.js";
@@ -82,7 +82,7 @@ var style = css`
82
82
  border-style: solid;
83
83
  border-color: transparent;
84
84
  border-radius: var(--gds-space-2xs);
85
- transition: all 0.2s;
85
+ transition: background 0.2s;
86
86
  outline-style: solid;
87
87
  outline-color: transparent;
88
88
  outline-width: 0px;
@@ -109,7 +109,8 @@ var style = css`
109
109
  }
110
110
 
111
111
  &:focus-visible {
112
- outline-color: color-mix(in srgb, currentColor, transparent 50%);
112
+ outline-color: var(--gds-color-l2-content-primary);
113
+ outline-width: var(--gds-space-3xs);
113
114
  }
114
115
  }
115
116
 
@@ -1,12 +1,12 @@
1
1
  import {
2
- GdsContainer
3
- } from "./chunk.N4DG6Q7H.js";
2
+ GdsDiv
3
+ } from "./chunk.RL6DEFTH.js";
4
4
  import {
5
5
  styleExpressionProperty
6
- } from "./chunk.K4KPKUH4.js";
6
+ } from "./chunk.NUUST5OZ.js";
7
7
  import {
8
8
  tokens
9
- } from "./chunk.L2TDNB6Z.js";
9
+ } from "./chunk.2TZQ3MDQ.js";
10
10
  import {
11
11
  gdsCustomElement,
12
12
  html
@@ -17,14 +17,14 @@ import {
17
17
 
18
18
  // libs/core/src/components/card/card.ts
19
19
  import { css } from "lit";
20
- var GdsCard = class extends GdsContainer {
20
+ var GdsCard = class extends GdsDiv {
21
21
  /// This sets variables that are used in the default styles. Any other SEPs will override.
22
22
  constructor() {
23
23
  super();
24
24
  this.variant = "primary";
25
- this.padding = "s; m{l}";
26
- this["border-radius"] = "xs; m{s}";
27
- this["border-width"] = "4xs";
25
+ this.padding = "s;m{l}";
26
+ this["border-radius"] = "xs;m{s}";
27
+ this["gap"] = "s;m{l}";
28
28
  }
29
29
  render() {
30
30
  return html`<slot></slot>`;
@@ -34,9 +34,14 @@ GdsCard.styles = [
34
34
  tokens,
35
35
  css`
36
36
  :host {
37
+ box-sizing: border-box;
37
38
  border-color: var(--_border-color);
38
39
  background-color: var(--_background-color);
39
40
  color: var(--_color);
41
+ border-width: var(--gds-space-4xs);
42
+ border-style: solid;
43
+ display: flex;
44
+ flex-direction: column;
40
45
  }
41
46
  `
42
47
  ];
@@ -48,7 +53,6 @@ __decorateClass([
48
53
  ], GdsCard.prototype, "shadow", 2);
49
54
  __decorateClass([
50
55
  styleExpressionProperty({
51
- valueTemplate: (v) => v,
52
56
  styleTemplate: function(_prop, v) {
53
57
  return `
54
58
  --_border-color: var(--gds-color-l${this.level}-background-${v});
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  TransitionalStyles
3
- } from "./chunk.S6H4MUKG.js";
3
+ } from "./chunk.JG7YSP2S.js";
4
4
  import {
5
5
  watch
6
6
  } from "./chunk.TYGMNHNO.js";