@sebgroup/green-core 1.22.5 → 1.22.7

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 (71) hide show
  1. package/chunks/{chunk.M6PNMIPM.js → chunk.2CTAOHSQ.js} +4 -4
  2. package/chunks/{chunk.3HOISE7A.js → chunk.2R2O3KFW.js} +2 -2
  3. package/chunks/{chunk.RDF7HAMB.js → chunk.3H33XVWJ.js} +1 -1
  4. package/chunks/{chunk.5BE45XSY.js → chunk.444NQSRC.js} +1 -1
  5. package/chunks/{chunk.7TKBL5FI.js → chunk.BBK7KTSS.js} +5 -4
  6. package/chunks/{chunk.CQEVE6G2.js → chunk.CJGXQ3NY.js} +1 -1
  7. package/chunks/{chunk.RZYLEJ2B.js → chunk.H6RXRLUS.js} +1 -1
  8. package/chunks/{chunk.LUVWPGEZ.js → chunk.HTO27AN6.js} +60 -51
  9. package/chunks/{chunk.SADQVU55.js → chunk.I42JFNWU.js} +1 -1
  10. package/chunks/{chunk.B3BW3PBO.js → chunk.INUGPDLT.js} +1 -1
  11. package/chunks/{chunk.JTHC55GT.js → chunk.MH7NZ2OW.js} +2 -2
  12. package/chunks/{chunk.4GV3GZDR.js → chunk.OTGTPZKJ.js} +1 -1
  13. package/chunks/{chunk.BBNXIM5R.js → chunk.P5AVETBK.js} +1 -1
  14. package/chunks/{chunk.7L57YQRC.js → chunk.R2WCFDOE.js} +1 -1
  15. package/chunks/{chunk.IZCUWVP7.js → chunk.RR6KZWRK.js} +3 -3
  16. package/chunks/chunk.VOYMQ322.js +1 -1
  17. package/chunks/{chunk.RLQGNXDH.js → chunk.WQBUZSDG.js} +1 -1
  18. package/chunks/{chunk.2GUDH3ZQ.js → chunk.X2C3WXAI.js} +1 -1
  19. package/chunks/{chunk.BLUA5Y6H.js → chunk.XESWJ5HC.js} +1 -1
  20. package/chunks/{chunk.N6CHLBTX.js → chunk.ZD44G2F3.js} +1 -1
  21. package/chunks/{chunk.VHMTUAA4.js → chunk.ZL5JAD2L.js} +30 -19
  22. package/components/button/button.js +4 -4
  23. package/components/button/button.trans.styles.js +1 -1
  24. package/components/button/index.js +4 -4
  25. package/components/context-menu/context-menu.js +5 -5
  26. package/components/context-menu/context-menu.trans.styles.js +1 -1
  27. package/components/context-menu/index.js +6 -6
  28. package/components/datepicker/datepicker.js +11 -11
  29. package/components/datepicker/datepicker.trans.styles.js +1 -1
  30. package/components/datepicker/index.js +11 -11
  31. package/components/dropdown/dropdown.js +5 -5
  32. package/components/dropdown/dropdown.trans.styles.js +1 -1
  33. package/components/dropdown/index.js +6 -6
  34. package/components/filter-chips/filter-chip/filter-chip.js +5 -5
  35. package/components/filter-chips/filter-chip/filter-chip.trans.styles.js +1 -1
  36. package/components/filter-chips/filter-chip/index.js +5 -5
  37. package/components/filter-chips/filter-chips.js +5 -5
  38. package/components/filter-chips/filter-chips.trans.styles.js +1 -1
  39. package/components/filter-chips/index.js +5 -5
  40. package/components/grid/grid.js +2 -2
  41. package/components/grid/index.js +2 -2
  42. package/components/grouped-list/grouped-list.js +2 -2
  43. package/components/grouped-list/grouped-list.trans.styles.js +1 -1
  44. package/components/grouped-list/index.js +2 -2
  45. package/components/index.js +20 -20
  46. package/components/popover/index.js +2 -2
  47. package/components/popover/popover.js +2 -2
  48. package/components/popover/popover.trans.styles.js +1 -1
  49. package/components/segmented-control/index.js +4 -4
  50. package/components/segmented-control/segment/index.js +3 -3
  51. package/components/segmented-control/segment/segment.js +3 -3
  52. package/components/segmented-control/segment/segment.trans.styles.js +1 -1
  53. package/components/segmented-control/segmented-control.js +4 -4
  54. package/components/segmented-control/segmented-control.trans.styles.js +1 -1
  55. package/components/theme/index.js +2 -2
  56. package/components/theme/theme.js +2 -2
  57. package/components/theme/theme.trans.styles.js +1 -1
  58. package/index.js +20 -20
  59. package/package.json +1 -1
  60. package/primitives/calendar/calendar.js +2 -2
  61. package/primitives/calendar/index.js +2 -2
  62. package/primitives/listbox/index.js +3 -3
  63. package/primitives/listbox/listbox.js +3 -3
  64. package/primitives/listbox/option.js +2 -2
  65. package/primitives/menu/index.js +3 -3
  66. package/primitives/menu/menu-heading.js +2 -2
  67. package/primitives/menu/menu-item.js +2 -2
  68. package/primitives/menu/menu.js +3 -3
  69. package/primitives/ripple/index.js +2 -2
  70. package/primitives/ripple/ripple.js +2 -2
  71. package/transitional-styles.js +1 -1
@@ -4,7 +4,7 @@ import { unsafeCSS } from "lit";
4
4
  // dist/libs/tokens/internal/pallet.css?inline
5
5
  var pallet_default = `/**
6
6
  * Do not edit directly
7
- * Generated on Thu, 13 Jun 2024 14:33:28 GMT
7
+ * Generated on Fri, 14 Jun 2024 12:52:45 GMT
8
8
  */
9
9
 
10
10
  :host {
@@ -165,7 +165,7 @@ var pallet_default = `/**
165
165
  // dist/libs/tokens/internal/theme/light.css?inline
166
166
  var light_default = `/**
167
167
  * Do not edit directly
168
- * Generated on Thu, 13 Jun 2024 14:33:28 GMT
168
+ * Generated on Fri, 14 Jun 2024 12:52:45 GMT
169
169
  */
170
170
 
171
171
  :host {
@@ -286,7 +286,7 @@ var light_default = `/**
286
286
  // dist/libs/tokens/internal/size.css?inline
287
287
  var size_default = `/**
288
288
  * Do not edit directly
289
- * Generated on Thu, 13 Jun 2024 14:33:28 GMT
289
+ * Generated on Fri, 14 Jun 2024 12:52:45 GMT
290
290
  */
291
291
 
292
292
  :host {
@@ -532,7 +532,7 @@ var size_default = `/**
532
532
  // dist/libs/tokens/internal/motion.css?inline
533
533
  var motion_default = `/**
534
534
  * Do not edit directly
535
- * Generated on Thu, 13 Jun 2024 14:33:28 GMT
535
+ * Generated on Fri, 14 Jun 2024 12:52:45 GMT
536
536
  */
537
537
 
538
538
  :host {
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  tokens
3
- } from "./chunk.M6PNMIPM.js";
3
+ } from "./chunk.2CTAOHSQ.js";
4
4
  import {
5
5
  TransitionalStyles
6
- } from "./chunk.LUVWPGEZ.js";
6
+ } from "./chunk.HTO27AN6.js";
7
7
  import {
8
8
  GdsElement
9
9
  } from "./chunk.ZQ4D5K7J.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  TransitionalStyles
3
- } from "./chunk.LUVWPGEZ.js";
3
+ } from "./chunk.HTO27AN6.js";
4
4
  import {
5
5
  GdsElement
6
6
  } from "./chunk.ZQ4D5K7J.js";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk.NBEFLQNK.js";
4
4
  import {
5
5
  tokens
6
- } from "./chunk.M6PNMIPM.js";
6
+ } from "./chunk.2CTAOHSQ.js";
7
7
  import {
8
8
  GdsElement
9
9
  } from "./chunk.ZQ4D5K7J.js";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk.NNJ6DJO2.js";
4
4
  import {
5
5
  TransitionalStyles
6
- } from "./chunk.LUVWPGEZ.js";
6
+ } from "./chunk.HTO27AN6.js";
7
7
  import {
8
8
  GdsElement
9
9
  } from "./chunk.ZQ4D5K7J.js";
@@ -160,15 +160,16 @@ var GdsCalendar = class extends GdsElement {
160
160
  id="dateCell-${day.getDate()}"
161
161
  >
162
162
  <span
163
- style="color: ${customization ? customization == null ? void 0 : customization.color : ""}"
163
+ class="number"
164
+ style="--_color: ${customization ? customization == null ? void 0 : customization.color : ""}"
164
165
  >${day.getDate()}</span
165
166
  >
166
167
 
167
168
  ${when(
168
169
  customization.indicator,
169
170
  () => html`<span
170
- class="indicator_${customization == null ? void 0 : customization.indicator}"
171
- style="background-color: ${customization == null ? void 0 : customization.color}"
171
+ class="indicator-${customization == null ? void 0 : customization.indicator}"
172
+ style="--_color: ${customization == null ? void 0 : customization.color}"
172
173
  ></span>`
173
174
  )}
174
175
  </td>
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk.2X23R32H.js";
5
5
  import {
6
6
  TransitionalStyles
7
- } from "./chunk.LUVWPGEZ.js";
7
+ } from "./chunk.HTO27AN6.js";
8
8
  import {
9
9
  GdsElement
10
10
  } from "./chunk.ZQ4D5K7J.js";
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk.2X23R32H.js";
5
5
  import {
6
6
  TransitionalStyles
7
- } from "./chunk.LUVWPGEZ.js";
7
+ } from "./chunk.HTO27AN6.js";
8
8
  import {
9
9
  GdsElement
10
10
  } from "./chunk.ZQ4D5K7J.js";
@@ -787,12 +787,13 @@ function register2() {
787
787
  var popover_trans_styles_default2 = register2;
788
788
 
789
789
  // libs/core/src/components/dropdown/dropdown.trans.styles.ts
790
- function register3() {
790
+ function register4() {
791
791
  register();
792
792
  register2();
793
+ register3();
793
794
  TransitionalStyles.instance.register("gds-dropdown", dropdown_trans_styles_default.toString());
794
795
  }
795
- var dropdown_trans_styles_default2 = register3;
796
+ var dropdown_trans_styles_default2 = register4;
796
797
 
797
798
  // libs/core/src/components/context-menu/context-menu.trans.styles.scss?inline
798
799
  var context_menu_trans_styles_default = `/* stylelint-disable max-nesting-depth */
@@ -987,12 +988,12 @@ i.sg-icon.sg-icon-ellipsis::before {
987
988
  }`;
988
989
 
989
990
  // libs/core/src/components/context-menu/context-menu.trans.styles.ts
990
- function register4() {
991
+ function register5() {
991
992
  TransitionalStyles.instance.register("gds-context-menu", context_menu_trans_styles_default.toString());
992
993
  register2();
993
994
  register();
994
995
  }
995
- var context_menu_trans_styles_default2 = register4;
996
+ var context_menu_trans_styles_default2 = register5;
996
997
 
997
998
  // libs/core/src/components/datepicker/datepicker.trans.styles.scss?inline
998
999
  var datepicker_trans_styles_default = `/* stylelint-disable max-nesting-depth */
@@ -1256,35 +1257,35 @@ var calendar_trans_styles_default = `/* stylelint-disable max-nesting-depth */
1256
1257
  :host table {
1257
1258
  border-spacing: 0;
1258
1259
  }
1259
- :host table tr th,
1260
- :host table tr td {
1260
+ :host th,
1261
+ :host td {
1261
1262
  box-sizing: border-box;
1262
1263
  height: 2.75rem;
1263
1264
  text-align: center;
1264
1265
  width: 2.75rem;
1265
1266
  }
1266
- :host table thead {
1267
+ :host thead {
1267
1268
  /* days */
1268
1269
  }
1269
- :host table thead th {
1270
+ :host thead th {
1270
1271
  background: var(--sg-bg-level-2);
1271
1272
  border-bottom: solid 1px var(--sg-grey-300);
1272
1273
  font-weight: 400;
1273
1274
  top: 0;
1274
1275
  }
1275
1276
  @media (max-width: 35.98em) {
1276
- :host table thead th {
1277
+ :host thead th {
1277
1278
  position: sticky;
1278
1279
  }
1279
1280
  }
1280
- :host table tbody {
1281
+ :host tbody {
1281
1282
  /* week numbers */
1282
1283
  /* dates */
1283
1284
  }
1284
- :host table tbody tr th {
1285
+ :host tbody th {
1285
1286
  font-weight: 400;
1286
1287
  }
1287
- :host table tbody tr td {
1288
+ :host tbody td {
1288
1289
  border: solid 1px transparent;
1289
1290
  font-weight: 500;
1290
1291
  -webkit-user-select: none;
@@ -1299,56 +1300,56 @@ var calendar_trans_styles_default = `/* stylelint-disable max-nesting-depth */
1299
1300
  /* active (pressed) */
1300
1301
  /* disabled */
1301
1302
  }
1302
- :host table tbody tr td.sg-date-holiday:not(.disabled) {
1303
+ :host tbody td.sg-date-holiday:not(.disabled) {
1303
1304
  background: var(--sg-bg-level-2);
1304
1305
  color: hsl(var(--sg-hsl-red-2));
1305
1306
  }
1306
- :host table tbody tr td.today {
1307
+ :host tbody td.today {
1307
1308
  background: transparent;
1308
1309
  border-radius: 4px;
1309
1310
  box-shadow: inset 0 0 0 2px var(--grey-1000);
1310
1311
  color: var(--grey-1000);
1311
1312
  }
1312
- :host table tbody tr td:hover:not(.disabled) {
1313
+ :host tbody td:hover:not(.disabled) {
1313
1314
  background: var(--grey-500);
1314
1315
  border: solid 1px var(--sg-bg-level-2);
1315
1316
  border-radius: 4px;
1316
1317
  color: var(--gds-sys-color-font);
1317
1318
  cursor: pointer;
1318
1319
  }
1319
- :host table tbody tr td:focus-visible:focus:not(:focus-visible) {
1320
+ :host tbody td:focus-visible:focus:not(:focus-visible) {
1320
1321
  box-shadow: none;
1321
1322
  outline: 0;
1322
1323
  }
1323
- :host table tbody tr td:focus-visible:focus, :host table tbody tr td:focus-visible:focus-visible {
1324
+ :host tbody td:focus-visible:focus, :host tbody td:focus-visible:focus-visible {
1324
1325
  outline-color: var(--gds-sys-color-focus-outline);
1325
1326
  outline-style: solid;
1326
1327
  outline-width: 0.125rem;
1327
1328
  outline-offset: 0.125rem;
1328
1329
  }
1329
- :host table tbody tr td:focus-visible:not(.disabled) {
1330
+ :host tbody td:focus-visible:not(.disabled) {
1330
1331
  border: solid 1px var(--sg-bg-level-2);
1331
1332
  border-radius: 4px;
1332
1333
  cursor: pointer;
1333
1334
  position: relative;
1334
1335
  z-index: 0;
1335
1336
  }
1336
- :host table tbody tr td[aria-selected=true] {
1337
+ :host tbody td[aria-selected=true] {
1337
1338
  background: var(--grey-1000);
1338
1339
  border: solid 1px var(--sg-bg-level-2);
1339
1340
  border-radius: 4px;
1340
1341
  color: hsl(var(--sg-hsl-white));
1341
1342
  }
1342
- :host table tbody tr td[tabindex="0"] {
1343
+ :host tbody td[tabindex="0"] {
1343
1344
  border-radius: 4px;
1344
1345
  }
1345
- :host table tbody tr td:hover:active:not(.disabled) {
1346
+ :host tbody td:hover:active:not(.disabled) {
1346
1347
  background: var(--grey-1000);
1347
1348
  border: solid 1px var(--sg-bg-level-2);
1348
1349
  border-radius: 4px;
1349
1350
  color: hsl(var(--sg-hsl-white));
1350
1351
  }
1351
- :host table tbody tr td.disabled {
1352
+ :host tbody td.disabled {
1352
1353
  background: hsl(var(--sg-hsl-disabled-background));
1353
1354
  border: solid 1px var(--sg-bg-level-2);
1354
1355
  border-radius: 4px;
@@ -1356,13 +1357,20 @@ var calendar_trans_styles_default = `/* stylelint-disable max-nesting-depth */
1356
1357
  cursor: not-allowed;
1357
1358
  font-weight: 400;
1358
1359
  }
1359
- :host table tbody tr td.disabled.sg-date-holiday {
1360
+ :host tbody td.disabled.sg-date-holiday {
1360
1361
  color: hsla(var(--sg-hsl-red-2), 0.25);
1361
1362
  }
1362
- :host table tbody tr td.custom-date {
1363
+ :host tbody td.disabled .number,
1364
+ :host tbody td.disabled .indicator-dot {
1365
+ --_color: hsl(var(--sg-hsl-disabled-color)) !important;
1366
+ }
1367
+ :host tbody td.custom-date {
1363
1368
  position: relative;
1364
1369
  }
1365
- :host table tbody .indicator_dot {
1370
+ :host tbody .number {
1371
+ color: var(--_color, "currentColor");
1372
+ }
1373
+ :host tbody .indicator-dot {
1366
1374
  display: block;
1367
1375
  width: 0.375rem;
1368
1376
  height: 0.375rem;
@@ -1372,6 +1380,7 @@ var calendar_trans_styles_default = `/* stylelint-disable max-nesting-depth */
1372
1380
  position: absolute;
1373
1381
  inset-block-end: 0.125rem;
1374
1382
  inset-inline: 0;
1383
+ background-color: var(--_color);
1375
1384
  }
1376
1385
  table {
1377
1386
  flex-grow: 1;
@@ -1388,18 +1397,18 @@ var calendar_trans_styles_default = `/* stylelint-disable max-nesting-depth */
1388
1397
  }`;
1389
1398
 
1390
1399
  // libs/core/src/primitives/calendar/calendar.trans.styles.ts
1391
- function register5() {
1400
+ function register6() {
1392
1401
  TransitionalStyles.instance.register("gds-calendar", calendar_trans_styles_default.toString());
1393
1402
  }
1394
1403
 
1395
1404
  // libs/core/src/components/datepicker/datepicker.trans.styles.ts
1396
- function register6() {
1405
+ function register7() {
1397
1406
  TransitionalStyles.instance.register("gds-datepicker", datepicker_trans_styles_default.toString());
1398
- register3();
1407
+ register4();
1399
1408
  register2();
1400
- register5();
1409
+ register6();
1401
1410
  }
1402
- var datepicker_trans_styles_default2 = register6;
1411
+ var datepicker_trans_styles_default2 = register7;
1403
1412
 
1404
1413
  // libs/core/src/components/grouped-list/grouped-list.trans.styles.scss?inline
1405
1414
  var grouped_list_trans_styles_default = `@layer base, reset, transitional-styles;
@@ -1428,10 +1437,10 @@ var grouped_list_trans_styles_default = `@layer base, reset, transitional-styles
1428
1437
  }`;
1429
1438
 
1430
1439
  // libs/core/src/components/grouped-list/grouped-list.trans.styles.ts
1431
- function register7() {
1440
+ function register8() {
1432
1441
  TransitionalStyles.instance.register("gds-grouped-list", grouped_list_trans_styles_default.toString());
1433
1442
  }
1434
- var grouped_list_trans_styles_default2 = register7;
1443
+ var grouped_list_trans_styles_default2 = register8;
1435
1444
 
1436
1445
  // libs/core/src/components/segmented-control/segmented-control.trans.styles.css?inline
1437
1446
  var segmented_control_trans_styles_default = `@layer base, reset, transitional-styles;
@@ -1588,20 +1597,20 @@ var segment_trans_styles_default = `@layer base, reset, transitional-styles;
1588
1597
  `;
1589
1598
 
1590
1599
  // libs/core/src/components/segmented-control/segment/segment.trans.styles.ts
1591
- function register8() {
1600
+ function register9() {
1592
1601
  TransitionalStyles.instance.register("gds-segmented", segment_trans_styles_default.toString());
1593
1602
  }
1594
- var segment_trans_styles_default2 = register8;
1603
+ var segment_trans_styles_default2 = register9;
1595
1604
 
1596
1605
  // libs/core/src/components/segmented-control/segmented-control.trans.styles.ts
1597
- function register9() {
1606
+ function register10() {
1598
1607
  TransitionalStyles.instance.register(
1599
1608
  "gds-segmented-control",
1600
1609
  segmented_control_trans_styles_default.toString()
1601
1610
  );
1602
- register8();
1611
+ register9();
1603
1612
  }
1604
- var segmented_control_trans_styles_default2 = register9;
1613
+ var segmented_control_trans_styles_default2 = register10;
1605
1614
 
1606
1615
  // libs/core/src/components/filter-chips/filter-chips.trans.styles.scss?inline
1607
1616
  var filter_chips_trans_styles_default = `@layer base, reset, transitional-styles;
@@ -1628,7 +1637,7 @@ var filter_chip_trans_styles_default = `@layer base, reset, transitional-styles;
1628
1637
  // libs/core/src/components/filter-chips/filter-chip/filter-chip.trans.styles.ts
1629
1638
  function register11() {
1630
1639
  TransitionalStyles.instance.register("gds-filter-chip", filter_chip_trans_styles_default.toString());
1631
- register10();
1640
+ register3();
1632
1641
  }
1633
1642
  var filter_chip_trans_styles_default2 = register11;
1634
1643
 
@@ -2235,13 +2244,13 @@ var theme_trans_styles_default = register13;
2235
2244
  // libs/core/src/utils/transitional-styles/transitional-styles.ts
2236
2245
  var registerTransitionalStyles = () => {
2237
2246
  register13();
2238
- register3();
2239
2247
  register4();
2240
- register6();
2248
+ register5();
2241
2249
  register7();
2242
- register9();
2243
- register12();
2250
+ register8();
2244
2251
  register10();
2252
+ register12();
2253
+ register3();
2245
2254
  };
2246
2255
  var _styles, _elements, _useLegacyStylesheets;
2247
2256
  var _TransitionalStyles = class _TransitionalStyles {
@@ -2742,27 +2751,27 @@ i.sg-icon.sg-icon-ellipsis::before {
2742
2751
  }`;
2743
2752
 
2744
2753
  // libs/core/src/components/button/button.trans.styles.ts
2745
- function register10() {
2754
+ function register3() {
2746
2755
  TransitionalStyles.instance.register("gds-button", button_trans_styles_default.toString());
2747
2756
  }
2748
- var button_trans_styles_default2 = register10;
2757
+ var button_trans_styles_default2 = register3;
2749
2758
 
2750
2759
  export {
2751
- register10 as register,
2760
+ register3 as register,
2752
2761
  button_trans_styles_default2 as button_trans_styles_default,
2753
2762
  register2,
2754
2763
  popover_trans_styles_default2 as popover_trans_styles_default,
2755
- register3,
2764
+ register4 as register3,
2756
2765
  dropdown_trans_styles_default2 as dropdown_trans_styles_default,
2757
- register4,
2766
+ register5 as register4,
2758
2767
  context_menu_trans_styles_default2 as context_menu_trans_styles_default,
2759
- register6 as register5,
2768
+ register7 as register5,
2760
2769
  datepicker_trans_styles_default2 as datepicker_trans_styles_default,
2761
- register7 as register6,
2770
+ register8 as register6,
2762
2771
  grouped_list_trans_styles_default2 as grouped_list_trans_styles_default,
2763
- register8 as register7,
2772
+ register9 as register7,
2764
2773
  segment_trans_styles_default2 as segment_trans_styles_default,
2765
- register9 as register8,
2774
+ register10 as register8,
2766
2775
  segmented_control_trans_styles_default2 as segmented_control_trans_styles_default,
2767
2776
  register11 as register9,
2768
2777
  filter_chip_trans_styles_default2 as filter_chip_trans_styles_default,
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk.KBYQYDL3.js";
4
4
  import {
5
5
  TransitionalStyles
6
- } from "./chunk.LUVWPGEZ.js";
6
+ } from "./chunk.HTO27AN6.js";
7
7
  import {
8
8
  GdsElement
9
9
  } from "./chunk.ZQ4D5K7J.js";
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk.KBYQYDL3.js";
7
7
  import {
8
8
  TransitionalStyles
9
- } from "./chunk.LUVWPGEZ.js";
9
+ } from "./chunk.HTO27AN6.js";
10
10
  import {
11
11
  observeLightDOM
12
12
  } from "./chunk.WM7HBMMV.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  tokens
3
- } from "./chunk.M6PNMIPM.js";
3
+ } from "./chunk.2CTAOHSQ.js";
4
4
  import {
5
5
  GdsFormControlElement
6
6
  } from "./chunk.MZSK66DN.js";
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk.KBYQYDL3.js";
10
10
  import {
11
11
  TransitionalStyles
12
- } from "./chunk.LUVWPGEZ.js";
12
+ } from "./chunk.HTO27AN6.js";
13
13
  import {
14
14
  gdsCustomElement,
15
15
  html
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  TransitionalStyles
3
- } from "./chunk.LUVWPGEZ.js";
3
+ } from "./chunk.HTO27AN6.js";
4
4
  import {
5
5
  GdsElement
6
6
  } from "./chunk.ZQ4D5K7J.js";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk.KBYQYDL3.js";
4
4
  import {
5
5
  TransitionalStyles
6
- } from "./chunk.LUVWPGEZ.js";
6
+ } from "./chunk.HTO27AN6.js";
7
7
  import {
8
8
  GdsElement
9
9
  } from "./chunk.ZQ4D5K7J.js";
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk.2ND5EWHE.js";
5
5
  import {
6
6
  TransitionalStyles
7
- } from "./chunk.LUVWPGEZ.js";
7
+ } from "./chunk.HTO27AN6.js";
8
8
  import {
9
9
  GdsElement
10
10
  } from "./chunk.ZQ4D5K7J.js";
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  GdsSegment
3
- } from "./chunk.3HOISE7A.js";
3
+ } from "./chunk.2R2O3KFW.js";
4
4
  import {
5
5
  resizeObserver
6
6
  } from "./chunk.VHN4JEZC.js";
7
7
  import {
8
8
  tokens
9
- } from "./chunk.M6PNMIPM.js";
9
+ } from "./chunk.2CTAOHSQ.js";
10
10
  import {
11
11
  TransitionalStyles
12
- } from "./chunk.LUVWPGEZ.js";
12
+ } from "./chunk.HTO27AN6.js";
13
13
  import {
14
14
  GdsElement
15
15
  } from "./chunk.ZQ4D5K7J.js";
@@ -1,7 +1,7 @@
1
1
  // libs/core/src/utils/helpers/custom-element-scoping.ts
2
2
  import { html as litHtml } from "lit";
3
3
  import { customElement } from "lit/decorators.js";
4
- var VER_SUFFIX = "-1d55ff";
4
+ var VER_SUFFIX = "-f014f7";
5
5
  var elementLookupTable = /* @__PURE__ */ new Map();
6
6
  var gdsCustomElement = (tagName) => {
7
7
  if (globalThis.GDS_DISABLE_VERSIONED_ELEMENTS) {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  tokens
3
- } from "./chunk.M6PNMIPM.js";
3
+ } from "./chunk.2CTAOHSQ.js";
4
4
  import {
5
5
  gdsCustomElement
6
6
  } from "./chunk.VOYMQ322.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  TransitionalStyles
3
- } from "./chunk.LUVWPGEZ.js";
3
+ } from "./chunk.HTO27AN6.js";
4
4
  import {
5
5
  watchMediaQuery
6
6
  } from "./chunk.WM7HBMMV.js";
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk.2ND5EWHE.js";
5
5
  import {
6
6
  TransitionalStyles
7
- } from "./chunk.LUVWPGEZ.js";
7
+ } from "./chunk.HTO27AN6.js";
8
8
  import {
9
9
  GdsElement
10
10
  } from "./chunk.ZQ4D5K7J.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  TransitionalStyles
3
- } from "./chunk.LUVWPGEZ.js";
3
+ } from "./chunk.HTO27AN6.js";
4
4
  import {
5
5
  GdsElement
6
6
  } from "./chunk.ZQ4D5K7J.js";
@@ -7,7 +7,7 @@ import {
7
7
  } from "./chunk.MZSK66DN.js";
8
8
  import {
9
9
  TransitionalStyles
10
- } from "./chunk.LUVWPGEZ.js";
10
+ } from "./chunk.HTO27AN6.js";
11
11
  import {
12
12
  watch
13
13
  } from "./chunk.2WO4NHJ2.js";
@@ -116,20 +116,23 @@ var GdsDatepicker = class extends GdsFormControlElement {
116
116
  const pasted = (_a = e.clipboardData) == null ? void 0 : _a.getData("text/plain");
117
117
  if (!pasted)
118
118
  return;
119
- let pastedDate = new Date(pasted);
120
- if (pastedDate.toString() === "Invalid Date") {
121
- const parts = pasted.split(this._dateFormatLayout.delimiter);
122
- if (parts.length === 3) {
123
- const layout = this._dateFormatLayout.layout;
124
- const year = parseInt(parts[layout.findIndex((f) => f.token === "y")]);
125
- const month = parseInt(parts[layout.findIndex((f) => f.token === "m")]) - 1;
126
- const day = parseInt(parts[layout.findIndex((f) => f.token === "d")]);
127
- if (!isNaN(year) && !isNaN(month) && !isNaN(day)) {
128
- pastedDate = /* @__PURE__ */ new Date(`${year}-${month + 1}-${day}`);
129
- }
119
+ let pastedDate = /* @__PURE__ */ new Date("-");
120
+ const invalid = "Invalid Date";
121
+ const parts = pasted.split(this._dateFormatLayout.delimiter);
122
+ if (parts.length === 3) {
123
+ const layout = this._dateFormatLayout.layout;
124
+ const year = parseInt(parts[layout.findIndex((f) => f.token === "y")]);
125
+ const month = parseInt(parts[layout.findIndex((f) => f.token === "m")]) - 1;
126
+ const day = parseInt(parts[layout.findIndex((f) => f.token === "d")]);
127
+ if (!isNaN(year) && !isNaN(month) && !isNaN(day)) {
128
+ pastedDate = /* @__PURE__ */ new Date(`${year}-${month + 1}-${day}`);
130
129
  }
131
- if (pastedDate.toString() === "Invalid Date")
130
+ }
131
+ if (pastedDate.toString() === invalid) {
132
+ pastedDate = new Date(pasted);
133
+ if (pastedDate.toString() === invalid) {
132
134
  return;
135
+ }
133
136
  }
134
137
  this.value = pastedDate;
135
138
  __privateMethod(this, _dispatchChangeEvent, dispatchChangeEvent_fn).call(this);
@@ -413,7 +416,8 @@ var GdsDatepicker = class extends GdsFormControlElement {
413
416
  <gds-button
414
417
  rank="tertiary"
415
418
  size="small"
416
- @click=${() => {
419
+ @click=${(e) => {
420
+ e.stopPropagation();
417
421
  this.value = void 0;
418
422
  this.open = false;
419
423
  __privateMethod(this, _dispatchChangeEvent, dispatchChangeEvent_fn).call(this);
@@ -425,7 +429,8 @@ var GdsDatepicker = class extends GdsFormControlElement {
425
429
  <gds-button
426
430
  rank="tertiary"
427
431
  size="small"
428
- @click=${() => {
432
+ @click=${(e) => {
433
+ e.stopPropagation();
429
434
  __privateMethod(this, _focusDate, focusDate_fn).call(this, /* @__PURE__ */ new Date());
430
435
  }}
431
436
  >
@@ -466,10 +471,16 @@ renderBackToValidRangeButton_fn = async function() {
466
471
  let buttonAction;
467
472
  if (focusedDate && focusedDate > this.max) {
468
473
  buttonTxt = msg("Last available date");
469
- buttonAction = () => __privateMethod(this, _focusDate, focusDate_fn).call(this, this.max);
474
+ buttonAction = (e) => {
475
+ e.stopPropagation();
476
+ __privateMethod(this, _focusDate, focusDate_fn).call(this, this.max);
477
+ };
470
478
  } else if (focusedDate && focusedDate < this.min) {
471
479
  buttonTxt = msg("First available date");
472
- buttonAction = () => __privateMethod(this, _focusDate, focusDate_fn).call(this, this.min);
480
+ buttonAction = (e) => {
481
+ e.stopPropagation();
482
+ __privateMethod(this, _focusDate, focusDate_fn).call(this, this.min);
483
+ };
473
484
  }
474
485
  return html`${when(
475
486
  buttonTxt.length > 0,
@@ -481,8 +492,8 @@ renderBackToValidRangeButton_fn = async function() {
481
492
  };
482
493
  _focusDate = new WeakSet();
483
494
  focusDate_fn = function(d) {
484
- const firstValidDate = new Date(d);
485
- this._elCalendar.then((el) => el.focusedDate = firstValidDate).then(__privateGet(this, _handleCalendarFocusChange));
495
+ const focusDate = new Date(d);
496
+ this._elCalendar.then((el) => el.focusedDate = focusDate).then(__privateGet(this, _handleCalendarFocusChange));
486
497
  };
487
498
  _getSpinnerLabel = new WeakSet();
488
499
  getSpinnerLabel_fn = function(name) {
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  GdsButton
3
- } from "../../chunks/chunk.JTHC55GT.js";
3
+ } from "../../chunks/chunk.MH7NZ2OW.js";
4
4
  import "../../chunks/chunk.TX64TTBN.js";
5
- import "../../chunks/chunk.RLQGNXDH.js";
6
- import "../../chunks/chunk.M6PNMIPM.js";
5
+ import "../../chunks/chunk.WQBUZSDG.js";
6
+ import "../../chunks/chunk.2CTAOHSQ.js";
7
7
  import "../../chunks/chunk.MZSK66DN.js";
8
8
  import "../../chunks/chunk.KBYQYDL3.js";
9
- import "../../chunks/chunk.LUVWPGEZ.js";
9
+ import "../../chunks/chunk.HTO27AN6.js";
10
10
  import "../../chunks/chunk.WM7HBMMV.js";
11
11
  import "../../chunks/chunk.ZQ4D5K7J.js";
12
12
  import "../../chunks/chunk.W7CV3QYI.js";