@sebgroup/green-core 1.10.0 → 1.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +79 -22
- package/components/context-menu/context-menu.d.ts +1 -0
- package/components/context-menu/context-menu.styles.d.ts +2 -0
- package/components/grid/grid.d.ts +99 -0
- package/components/grid/grid.style.css.d.ts +2 -0
- package/components/index.d.ts +1 -0
- package/index.js +824 -25
- package/package.json +1 -4
- package/primitives/menu/menu-item.d.ts +1 -0
- package/tokens.style.d.ts +2 -0
- package/transitional-styles.js +26 -28
- package/green-jest-config.cjs +0 -24
- package/setup-jest.js +0 -34
package/index.js
CHANGED
|
@@ -77,8 +77,8 @@ function watch(propertyName, options) {
|
|
|
77
77
|
const { update } = proto;
|
|
78
78
|
const watchedProperties = Array.isArray(propertyName) ? propertyName : [propertyName];
|
|
79
79
|
proto.update = function(changedProps) {
|
|
80
|
-
watchedProperties.forEach((
|
|
81
|
-
const key =
|
|
80
|
+
watchedProperties.forEach((property12) => {
|
|
81
|
+
const key = property12;
|
|
82
82
|
if (changedProps.has(key)) {
|
|
83
83
|
const oldValue = changedProps.get(key);
|
|
84
84
|
const newValue = this[key];
|
|
@@ -144,7 +144,7 @@ function watchMediaQuery(q) {
|
|
|
144
144
|
// libs/core/src/utils/helpers/custom-element-scoping.ts
|
|
145
145
|
import { html as litHtml } from "lit";
|
|
146
146
|
import { customElement } from "lit/decorators.js";
|
|
147
|
-
var VER_SUFFIX = "-
|
|
147
|
+
var VER_SUFFIX = "-b357a1";
|
|
148
148
|
var elementLookupTable = /* @__PURE__ */ new Map();
|
|
149
149
|
var gdsCustomElement = (tagName) => {
|
|
150
150
|
if (globalThis.GDS_DISABLE_VERSIONED_ELEMENTS) {
|
|
@@ -509,12 +509,23 @@ var style2 = css2`
|
|
|
509
509
|
@layer base, reset, transitional-styles;
|
|
510
510
|
@layer base {
|
|
511
511
|
:host {
|
|
512
|
-
|
|
512
|
+
display: block;
|
|
513
|
+
padding: 1rem 1.5rem;
|
|
513
514
|
cursor: pointer;
|
|
514
515
|
}
|
|
515
516
|
|
|
517
|
+
:host(:not(:last-child)) {
|
|
518
|
+
border-bottom: 1px solid #e0e0e0;
|
|
519
|
+
}
|
|
520
|
+
|
|
516
521
|
:host(:hover) {
|
|
517
|
-
background-color:
|
|
522
|
+
background-color: #ededed;
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
:host(:focus-visible) {
|
|
526
|
+
outline: auto;
|
|
527
|
+
outline-offset: -6px;
|
|
528
|
+
outline-color: #666;
|
|
518
529
|
}
|
|
519
530
|
}
|
|
520
531
|
`;
|
|
@@ -694,8 +705,21 @@ var style3 = css3`
|
|
|
694
705
|
overflow: hidden;
|
|
695
706
|
padding: 0px;
|
|
696
707
|
box-sizing: border-box;
|
|
697
|
-
border-width: 0;
|
|
698
708
|
right: 0;
|
|
709
|
+
margin: 0;
|
|
710
|
+
box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2), 0 1rem 28px rgba(0, 0, 0, 0.15);
|
|
711
|
+
border-width: 0;
|
|
712
|
+
border-radius: 0.5rem;
|
|
713
|
+
}
|
|
714
|
+
|
|
715
|
+
header {
|
|
716
|
+
display: none;
|
|
717
|
+
}
|
|
718
|
+
|
|
719
|
+
dialog::backdrop {
|
|
720
|
+
background-color: transparent;
|
|
721
|
+
display: block;
|
|
722
|
+
position: fixed;
|
|
699
723
|
}
|
|
700
724
|
}
|
|
701
725
|
`;
|
|
@@ -1505,6 +1529,30 @@ import { msg as msg3 } from "@lit/localize";
|
|
|
1505
1529
|
import { classMap as classMap4 } from "lit-html/directives/class-map.js";
|
|
1506
1530
|
import { property as property6, queryAsync as queryAsync2, state as state6 } from "lit/decorators.js";
|
|
1507
1531
|
|
|
1532
|
+
// libs/core/src/components/context-menu/context-menu.styles.ts
|
|
1533
|
+
import { css as css6 } from "lit";
|
|
1534
|
+
var style6 = css6`
|
|
1535
|
+
@layer base, reset, transitional-styles;
|
|
1536
|
+
@layer base {
|
|
1537
|
+
button {
|
|
1538
|
+
display: flex;
|
|
1539
|
+
border-width: 0;
|
|
1540
|
+
background-color: #ededed;
|
|
1541
|
+
border-radius: calc(1px * infinity);
|
|
1542
|
+
padding: 0.4rem 0.8rem;
|
|
1543
|
+
font-family: inherit;
|
|
1544
|
+
cursor: pointer;
|
|
1545
|
+
align-items: center;
|
|
1546
|
+
gap: 0.5rem;
|
|
1547
|
+
}
|
|
1548
|
+
|
|
1549
|
+
button:hover {
|
|
1550
|
+
background-color: #dcdcdc;
|
|
1551
|
+
}
|
|
1552
|
+
}
|
|
1553
|
+
`;
|
|
1554
|
+
var context_menu_styles_default = style6;
|
|
1555
|
+
|
|
1508
1556
|
// libs/core/src/primitives/menu/menu.ts
|
|
1509
1557
|
import { createRef as createRef3, ref as ref3 } from "lit/directives/ref.js";
|
|
1510
1558
|
import { state as state5 } from "lit/decorators.js";
|
|
@@ -1581,7 +1629,12 @@ var GdsContextMenu = class extends GdsElement {
|
|
|
1581
1629
|
>
|
|
1582
1630
|
<slot name="trigger">
|
|
1583
1631
|
${this.showLabel ? this.buttonLabel ?? this.label : nothing}
|
|
1584
|
-
<
|
|
1632
|
+
<svg width="24" height="24" viewBox="0 0 24 24">
|
|
1633
|
+
<path
|
|
1634
|
+
d="M14 12C14 13.1042 13.1042 14 12 14C10.8958 14 10 13.1042 10 12C10 10.8958 10.8958 10 12 10C13.1042 10 14 10.8958 14 12ZM19 10C17.8958 10 17 10.8958 17 12C17 13.1042 17.8958 14 19 14C20.1042 14 21 13.1042 21 12C21 10.8958 20.1042 10 19 10ZM5 10C3.89583 10 3 10.8958 3 12C3 13.1042 3.89583 14 5 14C6.10417 14 7 13.1042 7 12C7 10.8958 6.10417 10 5 10Z"
|
|
1635
|
+
fill="#353531"
|
|
1636
|
+
/>
|
|
1637
|
+
</svg>
|
|
1585
1638
|
</slot>
|
|
1586
1639
|
</button>
|
|
1587
1640
|
<gds-popover
|
|
@@ -1605,6 +1658,7 @@ _handleItemClick = new WeakSet();
|
|
|
1605
1658
|
handleItemClick_fn = function() {
|
|
1606
1659
|
this.open = false;
|
|
1607
1660
|
};
|
|
1661
|
+
GdsContextMenu.styles = [context_menu_styles_default];
|
|
1608
1662
|
GdsContextMenu.shadowRootOptions = {
|
|
1609
1663
|
mode: "open",
|
|
1610
1664
|
delegatesFocus: true
|
|
@@ -1640,17 +1694,18 @@ GdsContextMenu = __decorateClass([
|
|
|
1640
1694
|
|
|
1641
1695
|
// libs/core/src/primitives/menu/menu-item.ts
|
|
1642
1696
|
import { state as state7 } from "lit/decorators.js";
|
|
1697
|
+
var _handleOnClick;
|
|
1643
1698
|
var GdsMenuItem = class extends Focusable(GdsElement) {
|
|
1644
1699
|
constructor() {
|
|
1645
1700
|
super(...arguments);
|
|
1646
|
-
this
|
|
1701
|
+
__privateAdd(this, _handleOnClick, () => {
|
|
1647
1702
|
this.dispatchEvent(
|
|
1648
1703
|
new CustomEvent("gds-menu-item-click", {
|
|
1649
1704
|
bubbles: true,
|
|
1650
1705
|
composed: true
|
|
1651
1706
|
})
|
|
1652
1707
|
);
|
|
1653
|
-
};
|
|
1708
|
+
});
|
|
1654
1709
|
}
|
|
1655
1710
|
connectedCallback() {
|
|
1656
1711
|
super.connectedCallback();
|
|
@@ -1661,14 +1716,15 @@ var GdsMenuItem = class extends Focusable(GdsElement) {
|
|
|
1661
1716
|
e.preventDefault();
|
|
1662
1717
|
this.click();
|
|
1663
1718
|
});
|
|
1664
|
-
this.addEventListener("click", this
|
|
1719
|
+
this.addEventListener("click", __privateGet(this, _handleOnClick));
|
|
1665
1720
|
TransitionalStyles.instance.apply(this, "gds-option");
|
|
1666
1721
|
}
|
|
1667
|
-
#handleOnClick;
|
|
1668
1722
|
render() {
|
|
1669
1723
|
return html`${this._tStyles}<slot></slot>`;
|
|
1670
1724
|
}
|
|
1671
1725
|
};
|
|
1726
|
+
_handleOnClick = new WeakMap();
|
|
1727
|
+
GdsMenuItem.styles = [option_styles_default];
|
|
1672
1728
|
__decorateClass([
|
|
1673
1729
|
state7()
|
|
1674
1730
|
], GdsMenuItem.prototype, "_tStyles", 2);
|
|
@@ -1729,8 +1785,8 @@ function renderMonthGridView(date, template) {
|
|
|
1729
1785
|
}
|
|
1730
1786
|
|
|
1731
1787
|
// libs/core/src/primitives/calendar/calendar.styles.ts
|
|
1732
|
-
import { css as
|
|
1733
|
-
var
|
|
1788
|
+
import { css as css7 } from "lit";
|
|
1789
|
+
var style7 = css7`
|
|
1734
1790
|
@layer base, reset, transitional-styles;
|
|
1735
1791
|
@layer base {
|
|
1736
1792
|
td.disabled {
|
|
@@ -1742,7 +1798,7 @@ var style6 = css6`
|
|
|
1742
1798
|
}
|
|
1743
1799
|
}
|
|
1744
1800
|
`;
|
|
1745
|
-
var calendar_styles_default =
|
|
1801
|
+
var calendar_styles_default = style7;
|
|
1746
1802
|
|
|
1747
1803
|
// libs/core/src/primitives/calendar/calendar.ts
|
|
1748
1804
|
var _setSelectedDate, setSelectedDate_fn, _handleKeyDown, handleKeyDown_fn;
|
|
@@ -2135,8 +2191,8 @@ GdsDatePartSpinner = __decorateClass([
|
|
|
2135
2191
|
], GdsDatePartSpinner);
|
|
2136
2192
|
|
|
2137
2193
|
// libs/core/src/components/datepicker/datepicker.styles.ts
|
|
2138
|
-
import { css as
|
|
2139
|
-
var styles =
|
|
2194
|
+
import { css as css8 } from "lit";
|
|
2195
|
+
var styles = css8`
|
|
2140
2196
|
@layer base, reset, transitional-styles;
|
|
2141
2197
|
@layer base {
|
|
2142
2198
|
label {
|
|
@@ -2318,9 +2374,9 @@ var GdsDatepicker = class extends GdsFormControlElement {
|
|
|
2318
2374
|
* The spinner state keeps track of the spinner values regardless of wheter a complete date has been enter yet.
|
|
2319
2375
|
*/
|
|
2320
2376
|
__privateAdd(this, _spinnerState, {
|
|
2321
|
-
year: "
|
|
2322
|
-
month: "
|
|
2323
|
-
day: "
|
|
2377
|
+
year: "yyyy",
|
|
2378
|
+
month: "mm",
|
|
2379
|
+
day: "dd"
|
|
2324
2380
|
});
|
|
2325
2381
|
}
|
|
2326
2382
|
get dateformat() {
|
|
@@ -2525,9 +2581,9 @@ var GdsDatepicker = class extends GdsFormControlElement {
|
|
|
2525
2581
|
_handleValueChange() {
|
|
2526
2582
|
if (!this.value) {
|
|
2527
2583
|
__privateSet(this, _spinnerState, {
|
|
2528
|
-
year: "
|
|
2529
|
-
month: "
|
|
2530
|
-
day: "
|
|
2584
|
+
year: "yyyy",
|
|
2585
|
+
month: "mm",
|
|
2586
|
+
day: "dd"
|
|
2531
2587
|
});
|
|
2532
2588
|
return;
|
|
2533
2589
|
}
|
|
@@ -2742,8 +2798,750 @@ GdsDatepicker = __decorateClass([
|
|
|
2742
2798
|
gdsCustomElement("gds-datepicker")
|
|
2743
2799
|
], GdsDatepicker);
|
|
2744
2800
|
|
|
2801
|
+
// libs/core/src/components/grid/grid.ts
|
|
2802
|
+
import { css as css10, LitElement as LitElement7, unsafeCSS as unsafeCSS3 } from "lit";
|
|
2803
|
+
import { property as property10, state as state11 } from "lit/decorators.js";
|
|
2804
|
+
|
|
2805
|
+
// libs/core/src/tokens.style.ts
|
|
2806
|
+
import { unsafeCSS as unsafeCSS2 } from "lit";
|
|
2807
|
+
|
|
2808
|
+
// dist/libs/tokens/internal/pallet.css
|
|
2809
|
+
var pallet_default = `/**
|
|
2810
|
+
* Do not edit directly
|
|
2811
|
+
* Generated on Wed, 10 Apr 2024 11:06:21 GMT
|
|
2812
|
+
*/
|
|
2813
|
+
|
|
2814
|
+
:host {
|
|
2815
|
+
--gds-ref-color-neutral000: #ffffff;
|
|
2816
|
+
--gds-ref-color-neutral050: #f8f8f8;
|
|
2817
|
+
--gds-ref-color-neutral100: #e9e9e9;
|
|
2818
|
+
--gds-ref-color-neutral150: #eeeeee;
|
|
2819
|
+
--gds-ref-color-neutral200: #dedede;
|
|
2820
|
+
--gds-ref-color-neutral250: #cecece;
|
|
2821
|
+
--gds-ref-color-neutral300: #ababab;
|
|
2822
|
+
--gds-ref-color-neutral350: #adadad;
|
|
2823
|
+
--gds-ref-color-neutral400: #868686;
|
|
2824
|
+
--gds-ref-color-neutral450: #757575;
|
|
2825
|
+
--gds-ref-color-neutral500: #494949;
|
|
2826
|
+
--gds-ref-color-neutral525: #464646;
|
|
2827
|
+
--gds-ref-color-neutral550: #333333;
|
|
2828
|
+
--gds-ref-color-neutral600: #2c2c2c;
|
|
2829
|
+
--gds-ref-color-neutral650: #272727;
|
|
2830
|
+
--gds-ref-color-neutral700: #222222;
|
|
2831
|
+
--gds-ref-color-neutral750: #1a1a1a;
|
|
2832
|
+
--gds-ref-color-neutral800: #121212;
|
|
2833
|
+
--gds-ref-color-blue100: #58b8ee;
|
|
2834
|
+
--gds-ref-color-blue200: #41b0ee;
|
|
2835
|
+
--gds-ref-color-blue300: #00adff;
|
|
2836
|
+
--gds-ref-color-blue400: #2c9cd9;
|
|
2837
|
+
--gds-ref-color-blue500: #0092e1;
|
|
2838
|
+
--gds-ref-color-blue600: #007ac7;
|
|
2839
|
+
--gds-ref-color-blue700: #0062bc;
|
|
2840
|
+
--gds-ref-color-green100: #75b44a;
|
|
2841
|
+
--gds-ref-color-green200: #60cd18;
|
|
2842
|
+
--gds-ref-color-green300: #45b400;
|
|
2843
|
+
--gds-ref-color-green400: #308800;
|
|
2844
|
+
--gds-ref-color-red100: #f7706d;
|
|
2845
|
+
--gds-ref-color-red200: #ff594f;
|
|
2846
|
+
--gds-ref-color-red300: #f03529;
|
|
2847
|
+
--gds-ref-color-red400: #d81a1a;
|
|
2848
|
+
--gds-ref-color-red500: #c82a29;
|
|
2849
|
+
--gds-ref-color-red600: #bb000c;
|
|
2850
|
+
--gds-ref-color-red700: #9f000a;
|
|
2851
|
+
--gds-ref-color-red800: #9e2120;
|
|
2852
|
+
--gds-ref-color-purple100: #ad91dc;
|
|
2853
|
+
--gds-ref-color-purple200: #7e52cc;
|
|
2854
|
+
--gds-ref-color-purple300: #673ab6;
|
|
2855
|
+
--gds-ref-color-purple400: #4f2C99;
|
|
2856
|
+
--gds-ref-color-purple500: #4a328f;
|
|
2857
|
+
--gds-ref-color-purple600: #3f2587;
|
|
2858
|
+
--gds-ref-color-yellow100: #ffe182;
|
|
2859
|
+
--gds-ref-color-yellow200: #ffc500;
|
|
2860
|
+
--gds-ref-color-yellow300: #ffb400;
|
|
2861
|
+
--gds-ref-color-yellow400: #f8a000;
|
|
2862
|
+
--gds-ref-color-yellow500: #f0be47;
|
|
2863
|
+
--gds-ref-color-yellow600: #ebab39;
|
|
2864
|
+
--gds-ref-color-blue-5: #001127;
|
|
2865
|
+
--gds-ref-color-blue-10: #001C39;
|
|
2866
|
+
--gds-ref-color-blue-15: #00264B;
|
|
2867
|
+
--gds-ref-color-blue-20: #00315D;
|
|
2868
|
+
--gds-ref-color-blue-25: #003C70;
|
|
2869
|
+
--gds-ref-color-blue-30: #004883;
|
|
2870
|
+
--gds-ref-color-blue-35: #005397;
|
|
2871
|
+
--gds-ref-color-blue-40: #005FAC;
|
|
2872
|
+
--gds-ref-color-blue-45: #006CC1;
|
|
2873
|
+
--gds-ref-color-blue-50: #0078D7;
|
|
2874
|
+
--gds-ref-color-blue-55: #0085EC;
|
|
2875
|
+
--gds-ref-color-blue-60: #1992FF;
|
|
2876
|
+
--gds-ref-color-blue-65: #4EA0FF;
|
|
2877
|
+
--gds-ref-color-blue-70: #6FAEFF;
|
|
2878
|
+
--gds-ref-color-blue-75: #8ABBFF;
|
|
2879
|
+
--gds-ref-color-blue-80: #A4C9FF;
|
|
2880
|
+
--gds-ref-color-blue-85: #BCD6FF;
|
|
2881
|
+
--gds-ref-color-blue-90: #D4E3FF;
|
|
2882
|
+
--gds-ref-color-blue-95: #EBF1FF;
|
|
2883
|
+
--gds-ref-color-blue-98: #F8F9FF;
|
|
2884
|
+
--gds-ref-color-green-5: #001505;
|
|
2885
|
+
--gds-ref-color-green-10: #00210E;
|
|
2886
|
+
--gds-ref-color-green-15: #002D10;
|
|
2887
|
+
--gds-ref-color-green-20: #003916;
|
|
2888
|
+
--gds-ref-color-green-25: #00461D;
|
|
2889
|
+
--gds-ref-color-green-30: #005323;
|
|
2890
|
+
--gds-ref-color-green-35: #00602A;
|
|
2891
|
+
--gds-ref-color-green-40: #006D31;
|
|
2892
|
+
--gds-ref-color-green-45: #007B38;
|
|
2893
|
+
--gds-ref-color-green-50: #138942;
|
|
2894
|
+
--gds-ref-color-green-55: #29964D;
|
|
2895
|
+
--gds-ref-color-green-60: #39A459;
|
|
2896
|
+
--gds-ref-color-green-65: #48B265;
|
|
2897
|
+
--gds-ref-color-green-70: #57C071;
|
|
2898
|
+
--gds-ref-color-green-75: #65CE7E;
|
|
2899
|
+
--gds-ref-color-green-80: #73DC8A;
|
|
2900
|
+
--gds-ref-color-green-85: #81EA97;
|
|
2901
|
+
--gds-ref-color-green-90: #8FF9A4;
|
|
2902
|
+
--gds-ref-color-green-95: #C5FFCA;
|
|
2903
|
+
--gds-ref-color-green-98: #EAFFE8;
|
|
2904
|
+
--gds-ref-color-black: #000000;
|
|
2905
|
+
--gds-ref-color-white: #FFFFFF;
|
|
2906
|
+
--gds-ref-color-grey-5: #0D0D0C;
|
|
2907
|
+
--gds-ref-color-grey-10: #1B1B18;
|
|
2908
|
+
--gds-ref-color-grey-15: #282825;
|
|
2909
|
+
--gds-ref-color-grey-20: #353531;
|
|
2910
|
+
--gds-ref-color-grey-25: #42423D;
|
|
2911
|
+
--gds-ref-color-grey-30: #505049;
|
|
2912
|
+
--gds-ref-color-grey-35: #5D5D56;
|
|
2913
|
+
--gds-ref-color-grey-40: #6A6A62;
|
|
2914
|
+
--gds-ref-color-grey-45: #77776E;
|
|
2915
|
+
--gds-ref-color-grey-50: #85857A;
|
|
2916
|
+
--gds-ref-color-grey-55: #919188;
|
|
2917
|
+
--gds-ref-color-grey-60: #9D9D95;
|
|
2918
|
+
--gds-ref-color-grey-65: #A9A9A2;
|
|
2919
|
+
--gds-ref-color-grey-70: #B6B6AF;
|
|
2920
|
+
--gds-ref-color-grey-75: #C2C2BD;
|
|
2921
|
+
--gds-ref-color-grey-80: #CECECA;
|
|
2922
|
+
--gds-ref-color-grey-85: #DADAD7;
|
|
2923
|
+
--gds-ref-color-grey-90: #E7E7E4;
|
|
2924
|
+
--gds-ref-color-grey-95: #F3F3F2;
|
|
2925
|
+
--gds-ref-color-grey-98: #F9F9F9;
|
|
2926
|
+
--gds-ref-color-orange-5: #1A0F00;
|
|
2927
|
+
--gds-ref-color-orange-10: #271900;
|
|
2928
|
+
--gds-ref-color-orange-15: #352200;
|
|
2929
|
+
--gds-ref-color-orange-20: #422C00;
|
|
2930
|
+
--gds-ref-color-orange-25: #503700;
|
|
2931
|
+
--gds-ref-color-orange-30: #503700;
|
|
2932
|
+
--gds-ref-color-orange-35: #6E4C00;
|
|
2933
|
+
--gds-ref-color-orange-40: #7D5700;
|
|
2934
|
+
--gds-ref-color-orange-45: #8D6300;
|
|
2935
|
+
--gds-ref-color-orange-50: #9D6E00;
|
|
2936
|
+
--gds-ref-color-orange-55: #AE7A00;
|
|
2937
|
+
--gds-ref-color-orange-60: #BE8600;
|
|
2938
|
+
--gds-ref-color-orange-65: #CF9300;
|
|
2939
|
+
--gds-ref-color-orange-70: #E19F00;
|
|
2940
|
+
--gds-ref-color-orange-75: #F2AC00;
|
|
2941
|
+
--gds-ref-color-orange-80: #FFBA30;
|
|
2942
|
+
--gds-ref-color-orange-85: #FFCC77;
|
|
2943
|
+
--gds-ref-color-orange-90: #FFDEAB;
|
|
2944
|
+
--gds-ref-color-orange-95: #FFEED9;
|
|
2945
|
+
--gds-ref-color-orange-98: #FFF8F3;
|
|
2946
|
+
--gds-ref-color-red-5: #2B0200;
|
|
2947
|
+
--gds-ref-color-red-10: #3E0400;
|
|
2948
|
+
--gds-ref-color-red-15: #510700;
|
|
2949
|
+
--gds-ref-color-red-20: #650B00;
|
|
2950
|
+
--gds-ref-color-red-25: #790F00;
|
|
2951
|
+
--gds-ref-color-red-30: #8E1400;
|
|
2952
|
+
--gds-ref-color-red-35: #A31800;
|
|
2953
|
+
--gds-ref-color-red-40: #BA1D00;
|
|
2954
|
+
--gds-ref-color-red-45: #D02200;
|
|
2955
|
+
--gds-ref-color-red-50: #E23010;
|
|
2956
|
+
--gds-ref-color-red-55: #F53E1D;
|
|
2957
|
+
--gds-ref-color-red-60: #FF5636;
|
|
2958
|
+
--gds-ref-color-red-65: #FF7257;
|
|
2959
|
+
--gds-ref-color-red-70: #FF8A73;
|
|
2960
|
+
--gds-ref-color-red-75: #FFA08D;
|
|
2961
|
+
--gds-ref-color-red-80: #FFB4A5;
|
|
2962
|
+
--gds-ref-color-red-85: #FFC8BC;
|
|
2963
|
+
--gds-ref-color-red-90: #FFDAD3;
|
|
2964
|
+
--gds-ref-color-red-95: #FFEDE9;
|
|
2965
|
+
--gds-ref-color-red-98: #FFF8F6;
|
|
2966
|
+
}
|
|
2967
|
+
`;
|
|
2968
|
+
|
|
2969
|
+
// dist/libs/tokens/internal/theme/light.css
|
|
2970
|
+
var light_default = `/**
|
|
2971
|
+
* Do not edit directly
|
|
2972
|
+
* Generated on Wed, 10 Apr 2024 11:06:21 GMT
|
|
2973
|
+
*/
|
|
2974
|
+
|
|
2975
|
+
:host {
|
|
2976
|
+
color-scheme: light;
|
|
2977
|
+
--gds-sys-color-blue: #41b0ee;
|
|
2978
|
+
--gds-sys-color-dark-blue-1: #41b0ee;
|
|
2979
|
+
--gds-sys-color-dark-blue-2: #007ac7;
|
|
2980
|
+
--gds-sys-color-green: #60cd18;
|
|
2981
|
+
--gds-sys-color-dark-green-1: #45b400;
|
|
2982
|
+
--gds-sys-color-dark-green-2: #308800;
|
|
2983
|
+
--gds-sys-color-yellow: #ffc500;
|
|
2984
|
+
--gds-sys-color-dark-yellow-1: #ffb400;
|
|
2985
|
+
--gds-sys-color-dark-yellow-2: #f8a000;
|
|
2986
|
+
--gds-sys-color-primary-text: #333333;
|
|
2987
|
+
--gds-sys-color-secondary-text: #ababab;
|
|
2988
|
+
--gds-sys-color-white-text: #ffffff;
|
|
2989
|
+
--gds-sys-color-link-text: #0062bc;
|
|
2990
|
+
--gds-sys-color-error-text: #9f000a;
|
|
2991
|
+
--gds-sys-color-disabled-text: #adadad;
|
|
2992
|
+
--gds-sys-color-red: #f03529;
|
|
2993
|
+
--gds-sys-color-dark-red-1: #d81a1a;
|
|
2994
|
+
--gds-sys-color-dark-red-2: #bb000c;
|
|
2995
|
+
--gds-sys-color-purple: #673ab6;
|
|
2996
|
+
--gds-sys-color-dark-purple-1: #4f2C99;
|
|
2997
|
+
--gds-sys-color-dark-purple-2: #3f2587;
|
|
2998
|
+
--gds-sys-color-base-white: #ffffff;
|
|
2999
|
+
--gds-sys-color-base100: #f8f8f8;
|
|
3000
|
+
--gds-sys-color-base200: #e9e9e9;
|
|
3001
|
+
--gds-sys-color-base300: #dedede;
|
|
3002
|
+
--gds-sys-color-base400: #cecece;
|
|
3003
|
+
--gds-sys-color-base500: #adadad;
|
|
3004
|
+
--gds-sys-color-base600: #868686;
|
|
3005
|
+
--gds-sys-color-base700: #494949;
|
|
3006
|
+
--gds-sys-color-base800: #333333;
|
|
3007
|
+
--gds-sys-color-base900: #1a1a1a;
|
|
3008
|
+
--gds-sys-color-accent-accent-green: #006D31;
|
|
3009
|
+
--gds-sys-color-accent-on-accent-green: #FFFFFF;
|
|
3010
|
+
--gds-sys-color-accent-accent-orange: #FFBA30;
|
|
3011
|
+
--gds-sys-color-accent-on-accent-orange: #353531;
|
|
3012
|
+
--gds-sys-color-background-background: #FFFFFF;
|
|
3013
|
+
--gds-sys-color-background-background-dim: #F3F3F2;
|
|
3014
|
+
--gds-sys-color-container-container: #F3F3F2;
|
|
3015
|
+
--gds-sys-color-container-container-dim1: #E7E7E4;
|
|
3016
|
+
--gds-sys-color-container-container-dim2: #DADAD7;
|
|
3017
|
+
--gds-sys-color-container-container-bright: #FFFFFF;
|
|
3018
|
+
--gds-sys-color-container-container-shade1: #353531;
|
|
3019
|
+
--gds-sys-color-container-container-shade2: #1B1B18;
|
|
3020
|
+
--gds-sys-color-container-container-shade3: #353531;
|
|
3021
|
+
--gds-sys-color-container-container-disabled: #F9F9F9;
|
|
3022
|
+
--gds-sys-color-container-container-positive: #006D31;
|
|
3023
|
+
--gds-sys-color-container-container-negative: #BA1D00;
|
|
3024
|
+
--gds-sys-color-container-container-negative-bright: #FFEDE9;
|
|
3025
|
+
--gds-sys-color-content-content: #353531;
|
|
3026
|
+
--gds-sys-color-content-content-inverse: #FFFFFF;
|
|
3027
|
+
--gds-sys-color-content-content-secondary: #6A6A62;
|
|
3028
|
+
--gds-sys-color-content-content-positive: #006D31;
|
|
3029
|
+
--gds-sys-color-content-content-positive-bright: #EAFFE8;
|
|
3030
|
+
--gds-sys-color-content-content-negative: #BA1D00;
|
|
3031
|
+
--gds-sys-color-content-content-negative-bright: #FFF8F6;
|
|
3032
|
+
--gds-sys-color-content-content-custom-blue-bright: #F8F9FF;
|
|
3033
|
+
--gds-sys-color-content-content-disabled: #9D9D95;
|
|
3034
|
+
--gds-sys-color-custom-custom-blue: #005FAC;
|
|
3035
|
+
--gds-sys-color-custom-on-custom-blue: #D4E3FF;
|
|
3036
|
+
--gds-sys-color-custom-custom-blue-bright: #D4E3FF;
|
|
3037
|
+
--gds-sys-color-custom-on-custom-blue-bright: #00315D;
|
|
3038
|
+
--gds-sys-color-custom-custom-green: #003916;
|
|
3039
|
+
--gds-sys-color-custom-on-custom-green: #EAFFE8;
|
|
3040
|
+
--gds-sys-color-custom-custom-green-bright: #EAFFE8;
|
|
3041
|
+
--gds-sys-color-custom-on-custom-green-bright: #003916;
|
|
3042
|
+
--gds-sys-color-custom-custom-grey: #353531;
|
|
3043
|
+
--gds-sys-color-custom-on-custom-grey: #E7E7E4;
|
|
3044
|
+
--gds-sys-color-custom-custom-grey-bright: #E7E7E4;
|
|
3045
|
+
--gds-sys-color-custom-on-custom-grey-bright: #353531;
|
|
3046
|
+
--gds-sys-color-primary-primary: #353531;
|
|
3047
|
+
--gds-sys-color-state-layers-state-black: #000000 10%;
|
|
3048
|
+
--gds-sys-color-state-layers-state-black-dim1: #000000 20%;
|
|
3049
|
+
--gds-sys-color-state-layers-state-black-dim2: #000000 40%;
|
|
3050
|
+
--gds-sys-color-state-layers-state-black-shade: #000000 60%;
|
|
3051
|
+
--gds-sys-color-state-layers-state-positive: #006d31 10%;
|
|
3052
|
+
--gds-sys-color-state-layers-state-positive-dim: #006d31 20%;
|
|
3053
|
+
--gds-sys-color-state-layers-state-negative: #ba1d00 10%;
|
|
3054
|
+
--gds-sys-color-state-layers-state-negative-dim: #ba1d00 20%;
|
|
3055
|
+
--gds-sys-color-state-layers-state-custom-blue: #005fac 20%;
|
|
3056
|
+
--gds-sys-color-status-information-information: #353531;
|
|
3057
|
+
--gds-sys-color-status-information-on-information: #FFFFFF;
|
|
3058
|
+
--gds-sys-color-status-information-information-bright: #F3F3F2;
|
|
3059
|
+
--gds-sys-color-status-information-on-information-bright: #353531;
|
|
3060
|
+
--gds-sys-color-status-negative-negative: #BA1D00;
|
|
3061
|
+
--gds-sys-color-status-negative-on-negative: #FFFFFF;
|
|
3062
|
+
--gds-sys-color-status-negative-negative-bright: #FFEDE9;
|
|
3063
|
+
--gds-sys-color-status-negative-on-negative-bright: #BA1D00;
|
|
3064
|
+
--gds-sys-color-status-warning-warning: #9D6E00;
|
|
3065
|
+
--gds-sys-color-status-warning-on-warning: #FFFFFF;
|
|
3066
|
+
--gds-sys-color-status-warning-warning-bright: #FFEED9;
|
|
3067
|
+
--gds-sys-color-status-warning-on-warning-bright: #7D5700;
|
|
3068
|
+
--gds-sys-color-status-positive-positive: #006D31;
|
|
3069
|
+
--gds-sys-color-status-positive-on-positive: #FFFFFF;
|
|
3070
|
+
--gds-sys-color-status-positive-positive-bright: #EAFFE8;
|
|
3071
|
+
--gds-sys-color-status-positive-on-positive-bright: #006D31;
|
|
3072
|
+
--gds-sys-color-status-notice-notice: #005FAC;
|
|
3073
|
+
--gds-sys-color-status-notice-on-notice: #FFFFFF;
|
|
3074
|
+
--gds-sys-color-status-notice-notice-bright: #EBF1FF;
|
|
3075
|
+
--gds-sys-color-status-notice-on-notice-bright: #005FAC;
|
|
3076
|
+
--gds-sys-color-stroke-stroke: #353531;
|
|
3077
|
+
--gds-sys-color-stroke-stroke-variant1: #85857A;
|
|
3078
|
+
--gds-sys-color-stroke-stroke-variant2: #CECECA;
|
|
3079
|
+
--gds-sys-color-stroke-stroke-disabled: #9D9D95;
|
|
3080
|
+
--gds-sys-color-stroke-stroke-notice: #005FAC;
|
|
3081
|
+
--gds-sys-color-stroke-stroke-positive: #006D31;
|
|
3082
|
+
--gds-sys-color-stroke-stroke-warning: #7D5700;
|
|
3083
|
+
--gds-sys-color-stroke-stroke-negative: #BA1D00;
|
|
3084
|
+
--gds-sys-color-stroke-stroke-custom-blue: #005FAC;
|
|
3085
|
+
--gds-sys-color-stroke-stroke-custom-blue-bright: #6FAEFF;
|
|
3086
|
+
--gds-sys-color-stroke-stroke-inversed: #FFFFFF;
|
|
3087
|
+
}
|
|
3088
|
+
`;
|
|
3089
|
+
|
|
3090
|
+
// dist/libs/tokens/internal/size.css
|
|
3091
|
+
var size_default = `/**
|
|
3092
|
+
* Do not edit directly
|
|
3093
|
+
* Generated on Wed, 10 Apr 2024 11:06:21 GMT
|
|
3094
|
+
*/
|
|
3095
|
+
|
|
3096
|
+
:host {
|
|
3097
|
+
--gds-sys-typography-weight-bold: 700;
|
|
3098
|
+
--gds-sys-typography-weight-medium: 500;
|
|
3099
|
+
--gds-sys-typography-weight-book: 450;
|
|
3100
|
+
--gds-sys-typography-weight-regular: 400;
|
|
3101
|
+
--gds-sys-typography-weight-light: 300;
|
|
3102
|
+
--gds-sys-typography-size-label-overline: 14px;
|
|
3103
|
+
--gds-sys-typography-size-label-input-medium: 14px;
|
|
3104
|
+
--gds-sys-typography-size-label-input-large: 16px;
|
|
3105
|
+
--gds-sys-typography-size-label-information-medium: 14px;
|
|
3106
|
+
--gds-sys-typography-size-label-information-large: 16px;
|
|
3107
|
+
--gds-sys-typography-size-label-small: 12px;
|
|
3108
|
+
--gds-sys-typography-size-label-medium: 14px;
|
|
3109
|
+
--gds-sys-typography-size-label-large: 16px;
|
|
3110
|
+
--gds-sys-typography-size-body-small: 12px;
|
|
3111
|
+
--gds-sys-typography-size-body-medium: 14px;
|
|
3112
|
+
--gds-sys-typography-size-body-large: 16px;
|
|
3113
|
+
--gds-sys-typography-size-title-small: 14px;
|
|
3114
|
+
--gds-sys-typography-size-title-medium: 16px;
|
|
3115
|
+
--gds-sys-typography-size-title-large: 22px;
|
|
3116
|
+
--gds-sys-typography-size-headline-small: 24px;
|
|
3117
|
+
--gds-sys-typography-size-headline-medium: 28px;
|
|
3118
|
+
--gds-sys-typography-size-headline-large: 32px;
|
|
3119
|
+
--gds-sys-typography-size-display-small: 40px;
|
|
3120
|
+
--gds-sys-typography-size-display-medium: 64px;
|
|
3121
|
+
--gds-sys-typography-size-display-large: 82px;
|
|
3122
|
+
--gds-sys-typography-line-height-label-overline: 18px;
|
|
3123
|
+
--gds-sys-typography-line-height-label-input-medium: 20px;
|
|
3124
|
+
--gds-sys-typography-line-height-label-input-large: 20px;
|
|
3125
|
+
--gds-sys-typography-line-height-label-information-medium: 20px;
|
|
3126
|
+
--gds-sys-typography-line-height-label-information-large: 20px;
|
|
3127
|
+
--gds-sys-typography-line-height-label-small: 16px;
|
|
3128
|
+
--gds-sys-typography-line-height-label-medium: 20px;
|
|
3129
|
+
--gds-sys-typography-line-height-label-large: 20px;
|
|
3130
|
+
--gds-sys-typography-line-height-body-small: 16px;
|
|
3131
|
+
--gds-sys-typography-line-height-body-medium: 20px;
|
|
3132
|
+
--gds-sys-typography-line-height-body-large: 20px;
|
|
3133
|
+
--gds-sys-typography-line-height-title-small: 20px;
|
|
3134
|
+
--gds-sys-typography-line-height-title-medium: 24px;
|
|
3135
|
+
--gds-sys-typography-line-height-title-large: 28px;
|
|
3136
|
+
--gds-sys-typography-line-height-headline-small: 30px;
|
|
3137
|
+
--gds-sys-typography-line-height-headline-medium: 36px;
|
|
3138
|
+
--gds-sys-typography-line-height-headline-large: 40px;
|
|
3139
|
+
--gds-sys-typography-line-height-display-small: 52px;
|
|
3140
|
+
--gds-sys-typography-line-height-display-medium: 80px;
|
|
3141
|
+
--gds-sys-typography-line-height-display-large: 98px;
|
|
3142
|
+
--gds-sys-state-hover-state-layer-opacity: 0.10;
|
|
3143
|
+
--gds-sys-grid-width-desktop-lg: 2560px;
|
|
3144
|
+
--gds-sys-grid-width-desktop-md: 1440px;
|
|
3145
|
+
--gds-sys-grid-width-desktop-sm: 1024px;
|
|
3146
|
+
--gds-sys-grid-width-tablet: 768px;
|
|
3147
|
+
--gds-sys-grid-width-mobile: 425px;
|
|
3148
|
+
--gds-sys-grid-columns-24: 24;
|
|
3149
|
+
--gds-sys-grid-columns-12: 12;
|
|
3150
|
+
--gds-sys-grid-columns-8: 8;
|
|
3151
|
+
--gds-sys-grid-columns-6: 6;
|
|
3152
|
+
--gds-sys-grid-columns-4: 4;
|
|
3153
|
+
--gds-sys-grid-columns-2: 2;
|
|
3154
|
+
--gds-ref-size-15: 9999px;
|
|
3155
|
+
--gds-ref-size-14: 128px;
|
|
3156
|
+
--gds-ref-size-13: 112px;
|
|
3157
|
+
--gds-ref-size-12: 96px;
|
|
3158
|
+
--gds-ref-size-11: 80px;
|
|
3159
|
+
--gds-ref-size-10: 64px;
|
|
3160
|
+
--gds-ref-size-9: 48px;
|
|
3161
|
+
--gds-ref-size-8: 40px;
|
|
3162
|
+
--gds-ref-size-7: 32px;
|
|
3163
|
+
--gds-ref-size-6: 24px;
|
|
3164
|
+
--gds-ref-size-5: 16px;
|
|
3165
|
+
--gds-ref-size-4: 12px;
|
|
3166
|
+
--gds-ref-size-3: 8px;
|
|
3167
|
+
--gds-ref-size-2: 4px;
|
|
3168
|
+
--gds-ref-size-1: 2px;
|
|
3169
|
+
--gds-ref-size-0: 0px;
|
|
3170
|
+
--gds-sys-space-spacer-120: var(--gds-ref-size-14);
|
|
3171
|
+
--gds-sys-space-spacer-112: var(--gds-ref-size-13);
|
|
3172
|
+
--gds-sys-space-spacer-96: var(--gds-ref-size-12);
|
|
3173
|
+
--gds-sys-space-spacer-80: var(--gds-ref-size-11);
|
|
3174
|
+
--gds-sys-space-spacer-64: var(--gds-ref-size-10);
|
|
3175
|
+
--gds-sys-space-spacer-48: var(--gds-ref-size-9);
|
|
3176
|
+
--gds-sys-space-spacer-40: var(--gds-ref-size-8);
|
|
3177
|
+
--gds-sys-space-spacer-32: var(--gds-ref-size-7);
|
|
3178
|
+
--gds-sys-space-spacer-24: var(--gds-ref-size-6);
|
|
3179
|
+
--gds-sys-space-spacer-16: var(--gds-ref-size-5);
|
|
3180
|
+
--gds-sys-space-spacer-12: var(--gds-ref-size-4);
|
|
3181
|
+
--gds-sys-space-spacer-8: var(--gds-ref-size-3);
|
|
3182
|
+
--gds-sys-space-spacer-4: var(--gds-ref-size-2);
|
|
3183
|
+
--gds-sys-space-spacer-2: var(--gds-ref-size-1);
|
|
3184
|
+
--gds-sys-space-spacer-0: var(--gds-ref-size-0);
|
|
3185
|
+
--gds-sys-space-padding-120: var(--gds-ref-size-14);
|
|
3186
|
+
--gds-sys-space-padding-112: var(--gds-ref-size-13);
|
|
3187
|
+
--gds-sys-space-padding-96: var(--gds-ref-size-12);
|
|
3188
|
+
--gds-sys-space-padding-80: var(--gds-ref-size-11);
|
|
3189
|
+
--gds-sys-space-padding-64: var(--gds-ref-size-10);
|
|
3190
|
+
--gds-sys-space-padding-48: var(--gds-ref-size-9);
|
|
3191
|
+
--gds-sys-space-padding-40: var(--gds-ref-size-8);
|
|
3192
|
+
--gds-sys-space-padding-32: var(--gds-ref-size-7);
|
|
3193
|
+
--gds-sys-space-padding-24: var(--gds-ref-size-6);
|
|
3194
|
+
--gds-sys-space-padding-16: var(--gds-ref-size-5);
|
|
3195
|
+
--gds-sys-space-padding-12: var(--gds-ref-size-4);
|
|
3196
|
+
--gds-sys-space-padding-8: var(--gds-ref-size-3);
|
|
3197
|
+
--gds-sys-space-padding-4: var(--gds-ref-size-2);
|
|
3198
|
+
--gds-sys-space-padding-2: var(--gds-ref-size-1);
|
|
3199
|
+
--gds-sys-space-padding-0: var(--gds-ref-size-0);
|
|
3200
|
+
--gds-sys-space-margins-120: var(--gds-ref-size-14);
|
|
3201
|
+
--gds-sys-space-margins-112: var(--gds-ref-size-13);
|
|
3202
|
+
--gds-sys-space-margins-96: var(--gds-ref-size-12);
|
|
3203
|
+
--gds-sys-space-margins-80: var(--gds-ref-size-11);
|
|
3204
|
+
--gds-sys-space-margins-64: var(--gds-ref-size-10);
|
|
3205
|
+
--gds-sys-space-margins-48: var(--gds-ref-size-9);
|
|
3206
|
+
--gds-sys-space-margins-40: var(--gds-ref-size-8);
|
|
3207
|
+
--gds-sys-space-margins-32: var(--gds-ref-size-7);
|
|
3208
|
+
--gds-sys-space-margins-24: var(--gds-ref-size-6);
|
|
3209
|
+
--gds-sys-space-margins-16: var(--gds-ref-size-5);
|
|
3210
|
+
--gds-sys-space-margins-12: var(--gds-ref-size-4);
|
|
3211
|
+
--gds-sys-space-margins-8: var(--gds-ref-size-3);
|
|
3212
|
+
--gds-sys-space-margins-4: var(--gds-ref-size-2);
|
|
3213
|
+
--gds-sys-space-margins-2: var(--gds-ref-size-1);
|
|
3214
|
+
--gds-sys-space-margins-0: var(--gds-ref-size-0);
|
|
3215
|
+
--gds-sys-radii-full: var(--gds-ref-size-15);
|
|
3216
|
+
--gds-sys-radii-4xl: var(--gds-ref-size-12);
|
|
3217
|
+
--gds-sys-radii-3xl: var(--gds-ref-size-9);
|
|
3218
|
+
--gds-sys-radii-2xl: var(--gds-ref-size-7);
|
|
3219
|
+
--gds-sys-radii-xl: var(--gds-ref-size-6);
|
|
3220
|
+
--gds-sys-radii-l: var(--gds-ref-size-5);
|
|
3221
|
+
--gds-sys-radii-m: var(--gds-ref-size-4);
|
|
3222
|
+
--gds-sys-radii-s: var(--gds-ref-size-3);
|
|
3223
|
+
--gds-sys-radii-xs: var(--gds-ref-size-2);
|
|
3224
|
+
--gds-sys-radii-none: var(--gds-ref-size-0);
|
|
3225
|
+
--gds-sys-grid-padding-3xl: var(--gds-ref-size-12);
|
|
3226
|
+
--gds-sys-grid-padding-2xl: var(--gds-ref-size-9);
|
|
3227
|
+
--gds-sys-grid-padding-xl: var(--gds-ref-size-7);
|
|
3228
|
+
--gds-sys-grid-padding-l: var(--gds-ref-size-6);
|
|
3229
|
+
--gds-sys-grid-padding-m: var(--gds-ref-size-5);
|
|
3230
|
+
--gds-sys-grid-padding-s: var(--gds-ref-size-3);
|
|
3231
|
+
--gds-sys-grid-padding-xs: var(--gds-ref-size-2);
|
|
3232
|
+
--gds-sys-grid-padding-none: var(--gds-ref-size-0);
|
|
3233
|
+
--gds-sys-grid-gap-3xl: var(--gds-ref-size-12);
|
|
3234
|
+
--gds-sys-grid-gap-2xl: var(--gds-ref-size-9);
|
|
3235
|
+
--gds-sys-grid-gap-xl: var(--gds-ref-size-7);
|
|
3236
|
+
--gds-sys-grid-gap-l: var(--gds-ref-size-6);
|
|
3237
|
+
--gds-sys-grid-gap-m: var(--gds-ref-size-5);
|
|
3238
|
+
--gds-sys-grid-gap-s: var(--gds-ref-size-3);
|
|
3239
|
+
--gds-sys-grid-gap-xs: var(--gds-ref-size-2);
|
|
3240
|
+
--gds-sys-grid-gap-none: var(--gds-ref-size-0);
|
|
3241
|
+
--gds-sys-grid-breakpoint-desktop-lg: var(--gds-sys-grid-columns-12);
|
|
3242
|
+
--gds-sys-grid-breakpoint-desktop-md: var(--gds-sys-grid-columns-12);
|
|
3243
|
+
--gds-sys-grid-breakpoint-desktop-sm: var(--gds-sys-grid-columns-12);
|
|
3244
|
+
--gds-sys-grid-breakpoint-tablet: var(--gds-sys-grid-columns-12);
|
|
3245
|
+
--gds-sys-grid-breakpoint-mobile: var(--gds-sys-grid-columns-4);
|
|
3246
|
+
}
|
|
3247
|
+
`;
|
|
3248
|
+
|
|
3249
|
+
// libs/core/src/tokens.style.ts
|
|
3250
|
+
var tokens = [
|
|
3251
|
+
unsafeCSS2(pallet_default),
|
|
3252
|
+
unsafeCSS2(light_default),
|
|
3253
|
+
unsafeCSS2(size_default)
|
|
3254
|
+
];
|
|
3255
|
+
|
|
3256
|
+
// libs/core/src/components/grid/grid.style.css.ts
|
|
3257
|
+
import { css as css9 } from "lit";
|
|
3258
|
+
var style8 = css9`
|
|
3259
|
+
@layer grid, grid.desktop, grid.tablet, grid.mobile, grid.span, grid.space, grid.align, grid.debug;
|
|
3260
|
+
|
|
3261
|
+
@layer grid {
|
|
3262
|
+
:host {
|
|
3263
|
+
--_c: var(--gds-sys-grid-columns-12);
|
|
3264
|
+
--_grid-col: repeat(var(--_c), 1fr);
|
|
3265
|
+
--_grid-col-start: 1;
|
|
3266
|
+
--_grid-col-end: -1;
|
|
3267
|
+
--_gap-column: 0;
|
|
3268
|
+
--_gap-row: 0;
|
|
3269
|
+
display: grid;
|
|
3270
|
+
width: 100%;
|
|
3271
|
+
grid-template-columns: var(--_grid-col);
|
|
3272
|
+
grid-column-gap: var(--_gap-column);
|
|
3273
|
+
grid-row-gap: var(--_gap-row);
|
|
3274
|
+
padding: var(--_grid-padding);
|
|
3275
|
+
text-wrap: balance;
|
|
3276
|
+
}
|
|
3277
|
+
|
|
3278
|
+
:host([auto-columns]) {
|
|
3279
|
+
--_col-count: var(--_c, 0);
|
|
3280
|
+
--_gap-count: calc(var(--_col-count) - 1);
|
|
3281
|
+
--_total-gap-width: calc(var(--_gap-count) * var(--_gap-column, 0px));
|
|
3282
|
+
--_col-width-max: calc(
|
|
3283
|
+
(100% - var(--_total-gap-width)) / var(--_col-count)
|
|
3284
|
+
);
|
|
3285
|
+
grid-template-columns: repeat(
|
|
3286
|
+
auto-fill,
|
|
3287
|
+
minmax(max(var(--_col-width), var(--_col-width-max)), 1fr)
|
|
3288
|
+
);
|
|
3289
|
+
}
|
|
3290
|
+
}
|
|
3291
|
+
|
|
3292
|
+
/* Responsive */
|
|
3293
|
+
:host {
|
|
3294
|
+
--_c: var(--_columns-desktop);
|
|
3295
|
+
--_gap-column: var(--_gap-desktop);
|
|
3296
|
+
--_gap-row: var(--_row-gap-desktop);
|
|
3297
|
+
--_grid-padding: var(--_padding-desktop);
|
|
3298
|
+
--_col-width: var(--_col-width-desktop);
|
|
3299
|
+
}
|
|
3300
|
+
|
|
3301
|
+
@media only screen and (max-width: 768px) {
|
|
3302
|
+
:host {
|
|
3303
|
+
--_c: var(--_columns-tablet);
|
|
3304
|
+
--_gap-column: var(--_gap-tablet);
|
|
3305
|
+
--_gap-row: var(--_row-gap-tablet);
|
|
3306
|
+
--_grid-padding: var(--_padding-tablet);
|
|
3307
|
+
--_col-width: var(--_col-width-tablet);
|
|
3308
|
+
}
|
|
3309
|
+
}
|
|
3310
|
+
|
|
3311
|
+
@media only screen and (max-width: 425px) {
|
|
3312
|
+
:host {
|
|
3313
|
+
--_c: var(--_columns-mobile);
|
|
3314
|
+
--_gap-column: var(--_gap-mobile);
|
|
3315
|
+
--_gap-row: var(--_row-gap-mobile);
|
|
3316
|
+
--_grid-padding: var(--_padding-mobile);
|
|
3317
|
+
--_col-width: var(--_col-width-mobile);
|
|
3318
|
+
}
|
|
3319
|
+
}
|
|
3320
|
+
`;
|
|
3321
|
+
var grid_style_css_default = style8;
|
|
3322
|
+
|
|
3323
|
+
// libs/core/src/components/grid/grid.ts
|
|
3324
|
+
var BreakpointPattern = /(?<l>l:([a-z0-9]+))?\s*(?<m>m:([a-z0-9]+))?\s*(?<s>s:([a-z0-9]+))?/;
|
|
3325
|
+
var GdsGrid = class extends LitElement7 {
|
|
3326
|
+
constructor() {
|
|
3327
|
+
super(...arguments);
|
|
3328
|
+
this._gridVariables = {
|
|
3329
|
+
varsColumn: css10``,
|
|
3330
|
+
varsGap: css10``,
|
|
3331
|
+
varsRowGap: css10``,
|
|
3332
|
+
varsPadding: css10``,
|
|
3333
|
+
varsAutoColumns: css10``
|
|
3334
|
+
};
|
|
3335
|
+
}
|
|
3336
|
+
/**
|
|
3337
|
+
* Lifecycle method called when the element is connected to the DOM.
|
|
3338
|
+
* It updates the column, gap, and padding variables.
|
|
3339
|
+
*/
|
|
3340
|
+
connectedCallback() {
|
|
3341
|
+
super.connectedCallback();
|
|
3342
|
+
this._updateColumnVariables();
|
|
3343
|
+
this._updateGapVariables();
|
|
3344
|
+
this._updateRowGapVariables();
|
|
3345
|
+
this._updatePaddingVariables();
|
|
3346
|
+
this._updateAutoColumnsVariables();
|
|
3347
|
+
}
|
|
3348
|
+
_updateColumnVariables() {
|
|
3349
|
+
const match = this.columns?.match(BreakpointPattern);
|
|
3350
|
+
let columnsDesktop, columnsTablet, columnsMobile;
|
|
3351
|
+
if (this.columns && !isNaN(Number(this.columns))) {
|
|
3352
|
+
columnsDesktop = columnsTablet = columnsMobile = Number(this.columns);
|
|
3353
|
+
} else {
|
|
3354
|
+
const { l, m, s } = match?.groups || {};
|
|
3355
|
+
columnsDesktop = l ? Number(l.split(":")[1]) : void 0;
|
|
3356
|
+
columnsTablet = m ? Number(m.split(":")[1]) : void 0;
|
|
3357
|
+
columnsMobile = s ? Number(s.split(":")[1]) : void 0;
|
|
3358
|
+
}
|
|
3359
|
+
const columnProperties = [
|
|
3360
|
+
{ name: "_columns-desktop", value: columnsDesktop },
|
|
3361
|
+
{ name: "_columns-tablet", value: columnsTablet },
|
|
3362
|
+
{ name: "_columns-mobile", value: columnsMobile }
|
|
3363
|
+
];
|
|
3364
|
+
const cssVariables = columnProperties.filter(({ value }) => value !== void 0).map(({ name, value }) => `--${name}: ${value};`).join(" ");
|
|
3365
|
+
this._gridVariables = {
|
|
3366
|
+
...this._gridVariables,
|
|
3367
|
+
varsColumn: css10`
|
|
3368
|
+
${unsafeCSS3(cssVariables)}
|
|
3369
|
+
`
|
|
3370
|
+
};
|
|
3371
|
+
this.requestUpdate("_gridVariables");
|
|
3372
|
+
}
|
|
3373
|
+
_updateGapVariables() {
|
|
3374
|
+
const match = this.gap?.match(BreakpointPattern);
|
|
3375
|
+
let gapDesktop, gapTablet, gapMobile;
|
|
3376
|
+
if (this.gap && !this.gap.includes(" ")) {
|
|
3377
|
+
gapDesktop = gapTablet = gapMobile = `var(--gds-sys-grid-gap-${this.gap})`;
|
|
3378
|
+
} else {
|
|
3379
|
+
const { l, m, s } = match?.groups || {};
|
|
3380
|
+
gapDesktop = l ? `var(--gds-sys-grid-gap-${l.split(":")[1]})` : void 0;
|
|
3381
|
+
gapTablet = m ? `var(--gds-sys-grid-gap-${m.split(":")[1]})` : void 0;
|
|
3382
|
+
gapMobile = s ? `var(--gds-sys-grid-gap-${s.split(":")[1]})` : void 0;
|
|
3383
|
+
}
|
|
3384
|
+
const gapProperties = [
|
|
3385
|
+
{ name: "_gap-desktop", value: gapDesktop },
|
|
3386
|
+
{ name: "_gap-tablet", value: gapTablet },
|
|
3387
|
+
{ name: "_gap-mobile", value: gapMobile }
|
|
3388
|
+
];
|
|
3389
|
+
const cssVariables = gapProperties.filter(({ value }) => value !== void 0).map(({ name, value }) => `--${name}: ${value};`).join(" ");
|
|
3390
|
+
this._gridVariables = {
|
|
3391
|
+
...this._gridVariables,
|
|
3392
|
+
varsGap: css10`
|
|
3393
|
+
${unsafeCSS3(cssVariables)}
|
|
3394
|
+
`
|
|
3395
|
+
};
|
|
3396
|
+
this.requestUpdate("_gridVariables");
|
|
3397
|
+
}
|
|
3398
|
+
_updateRowGapVariables() {
|
|
3399
|
+
const match = this.rowGap?.match(BreakpointPattern);
|
|
3400
|
+
let rowGapDesktop, rowGapTablet, rowGapMobile;
|
|
3401
|
+
if (this.rowGap && !this.rowGap.includes(" ")) {
|
|
3402
|
+
rowGapDesktop = rowGapTablet = rowGapMobile = `var(--gds-sys-grid-gap-${this.rowGap})`;
|
|
3403
|
+
} else {
|
|
3404
|
+
const { l, m, s } = match?.groups || {};
|
|
3405
|
+
rowGapDesktop = l ? `var(--gds-sys-grid-gap-${l.split(":")[1]})` : void 0;
|
|
3406
|
+
rowGapTablet = m ? `var(--gds-sys-grid-gap-${m.split(":")[1]})` : void 0;
|
|
3407
|
+
rowGapMobile = s ? `var(--gds-sys-grid-gap-${s.split(":")[1]})` : void 0;
|
|
3408
|
+
}
|
|
3409
|
+
const gapProperties = [
|
|
3410
|
+
{ name: "_row-gap-desktop", value: rowGapDesktop },
|
|
3411
|
+
{ name: "_row-gap-tablet", value: rowGapTablet },
|
|
3412
|
+
{ name: "_row-gap-mobile", value: rowGapMobile }
|
|
3413
|
+
];
|
|
3414
|
+
const cssVariables = gapProperties.filter(({ value }) => value !== void 0).map(({ name, value }) => `--${name}: ${value};`).join(" ");
|
|
3415
|
+
this._gridVariables = {
|
|
3416
|
+
...this._gridVariables,
|
|
3417
|
+
varsRowGap: css10`
|
|
3418
|
+
${unsafeCSS3(cssVariables)}
|
|
3419
|
+
`
|
|
3420
|
+
};
|
|
3421
|
+
this.requestUpdate("_gridVariables");
|
|
3422
|
+
}
|
|
3423
|
+
_updatePaddingVariables() {
|
|
3424
|
+
const match = this.padding?.match(BreakpointPattern);
|
|
3425
|
+
let paddingDesktop, paddingTablet, paddingMobile;
|
|
3426
|
+
if (this.padding && !this.padding.includes(" ")) {
|
|
3427
|
+
paddingDesktop = paddingTablet = paddingMobile = `var(--gds-sys-grid-gap-${this.gap})`;
|
|
3428
|
+
} else {
|
|
3429
|
+
const { l, m, s } = match?.groups || {};
|
|
3430
|
+
paddingDesktop = l ? `var(--gds-sys-grid-gap-${l.split(":")[1]})` : void 0;
|
|
3431
|
+
paddingTablet = m ? `var(--gds-sys-grid-gap-${m.split(":")[1]})` : void 0;
|
|
3432
|
+
paddingMobile = s ? `var(--gds-sys-grid-gap-${s.split(":")[1]})` : void 0;
|
|
3433
|
+
}
|
|
3434
|
+
const paddingProperties = [
|
|
3435
|
+
{ name: "_padding-desktop", value: paddingDesktop },
|
|
3436
|
+
{ name: "_padding-tablet", value: paddingTablet },
|
|
3437
|
+
{ name: "_padding-mobile", value: paddingMobile }
|
|
3438
|
+
];
|
|
3439
|
+
const cssVariables = paddingProperties.filter(({ value }) => value !== void 0).map(({ name, value }) => `--${name}: ${value};`).join(" ");
|
|
3440
|
+
this._gridVariables = {
|
|
3441
|
+
...this._gridVariables,
|
|
3442
|
+
varsPadding: css10`
|
|
3443
|
+
${unsafeCSS3(cssVariables)}
|
|
3444
|
+
`
|
|
3445
|
+
};
|
|
3446
|
+
this.requestUpdate("_gridVariables");
|
|
3447
|
+
}
|
|
3448
|
+
_updateAutoColumnsVariables() {
|
|
3449
|
+
const match = this.autoColumns?.match(BreakpointPattern);
|
|
3450
|
+
let widthDesktop, widthTablet, widthMobile;
|
|
3451
|
+
if (this.autoColumns && !this.autoColumns.includes(" ")) {
|
|
3452
|
+
widthDesktop = widthTablet = widthMobile = `${this.autoColumns}px`;
|
|
3453
|
+
} else {
|
|
3454
|
+
const { l, m, s } = match?.groups || {};
|
|
3455
|
+
widthDesktop = l ? `${l.split(":")[1]}px` : void 0;
|
|
3456
|
+
widthTablet = m ? `${m.split(":")[1]}px` : void 0;
|
|
3457
|
+
widthMobile = s ? `${s.split(":")[1]}px` : void 0;
|
|
3458
|
+
}
|
|
3459
|
+
const widthProperties = [
|
|
3460
|
+
{ name: "_col-width-mobile", value: widthMobile },
|
|
3461
|
+
{ name: "_col-width-tablet", value: widthTablet },
|
|
3462
|
+
{ name: "_col-width-desktop", value: widthDesktop }
|
|
3463
|
+
];
|
|
3464
|
+
const cssVariables = widthProperties.filter(({ value }) => value !== void 0).map(({ name, value }) => `--${name}: ${value};`).join(" ");
|
|
3465
|
+
this._gridVariables = {
|
|
3466
|
+
...this._gridVariables,
|
|
3467
|
+
varsAutoColumns: css10`
|
|
3468
|
+
${unsafeCSS3(cssVariables)}
|
|
3469
|
+
`
|
|
3470
|
+
};
|
|
3471
|
+
this.requestUpdate("_gridVariables");
|
|
3472
|
+
}
|
|
3473
|
+
_updateGridCss() {
|
|
3474
|
+
const sheet = new CSSStyleSheet();
|
|
3475
|
+
sheet.replaceSync(`:host {${Object.values(this._gridVariables).join("")}} `);
|
|
3476
|
+
if (this.shadowRoot) {
|
|
3477
|
+
const styles2 = Array.isArray(GdsGrid.styles) ? GdsGrid.styles : [GdsGrid.styles];
|
|
3478
|
+
const styleSheets = styles2.flatMap((style9) => {
|
|
3479
|
+
if (Array.isArray(style9)) {
|
|
3480
|
+
return style9.map((s) => {
|
|
3481
|
+
const newSheet = new CSSStyleSheet();
|
|
3482
|
+
newSheet.replaceSync(s.cssText);
|
|
3483
|
+
return newSheet;
|
|
3484
|
+
});
|
|
3485
|
+
} else {
|
|
3486
|
+
const newSheet = new CSSStyleSheet();
|
|
3487
|
+
newSheet.replaceSync(style9.cssText);
|
|
3488
|
+
return [newSheet];
|
|
3489
|
+
}
|
|
3490
|
+
});
|
|
3491
|
+
this.shadowRoot.adoptedStyleSheets = [sheet, ...styleSheets];
|
|
3492
|
+
}
|
|
3493
|
+
}
|
|
3494
|
+
render() {
|
|
3495
|
+
return html` <slot></slot> `;
|
|
3496
|
+
}
|
|
3497
|
+
};
|
|
3498
|
+
GdsGrid.styles = [tokens, grid_style_css_default];
|
|
3499
|
+
GdsGrid.shadowRootOptions = {
|
|
3500
|
+
mode: "open",
|
|
3501
|
+
delegatesFocus: true
|
|
3502
|
+
};
|
|
3503
|
+
__decorateClass([
|
|
3504
|
+
property10({ attribute: "columns", type: String })
|
|
3505
|
+
], GdsGrid.prototype, "columns", 2);
|
|
3506
|
+
__decorateClass([
|
|
3507
|
+
property10({ attribute: "gap", type: String })
|
|
3508
|
+
], GdsGrid.prototype, "gap", 2);
|
|
3509
|
+
__decorateClass([
|
|
3510
|
+
property10({ attribute: "row-gap", type: String })
|
|
3511
|
+
], GdsGrid.prototype, "rowGap", 2);
|
|
3512
|
+
__decorateClass([
|
|
3513
|
+
property10({ attribute: "padding", type: String })
|
|
3514
|
+
], GdsGrid.prototype, "padding", 2);
|
|
3515
|
+
__decorateClass([
|
|
3516
|
+
property10({ attribute: "auto-columns", type: String })
|
|
3517
|
+
], GdsGrid.prototype, "autoColumns", 2);
|
|
3518
|
+
__decorateClass([
|
|
3519
|
+
state11()
|
|
3520
|
+
], GdsGrid.prototype, "_gridVariables", 2);
|
|
3521
|
+
__decorateClass([
|
|
3522
|
+
watch("columns")
|
|
3523
|
+
], GdsGrid.prototype, "_updateColumnVariables", 1);
|
|
3524
|
+
__decorateClass([
|
|
3525
|
+
watch("gap")
|
|
3526
|
+
], GdsGrid.prototype, "_updateGapVariables", 1);
|
|
3527
|
+
__decorateClass([
|
|
3528
|
+
watch("row-gap")
|
|
3529
|
+
], GdsGrid.prototype, "_updateRowGapVariables", 1);
|
|
3530
|
+
__decorateClass([
|
|
3531
|
+
watch("padding")
|
|
3532
|
+
], GdsGrid.prototype, "_updatePaddingVariables", 1);
|
|
3533
|
+
__decorateClass([
|
|
3534
|
+
watch("autoColumns")
|
|
3535
|
+
], GdsGrid.prototype, "_updateAutoColumnsVariables", 1);
|
|
3536
|
+
__decorateClass([
|
|
3537
|
+
watch("_gridVariables")
|
|
3538
|
+
], GdsGrid.prototype, "_updateGridCss", 1);
|
|
3539
|
+
GdsGrid = __decorateClass([
|
|
3540
|
+
gdsCustomElement("gds-grid")
|
|
3541
|
+
], GdsGrid);
|
|
3542
|
+
|
|
2745
3543
|
// libs/core/src/components/grouped-list/grouped-list.ts
|
|
2746
|
-
import { state as
|
|
3544
|
+
import { state as state12, property as property11 } from "lit/decorators.js";
|
|
2747
3545
|
import { when as when5 } from "lit/directives/when.js";
|
|
2748
3546
|
|
|
2749
3547
|
// libs/core/src/components/grouped-list/list-item.ts
|
|
@@ -2784,10 +3582,10 @@ var GdsGroupedList = class extends GdsElement {
|
|
|
2784
3582
|
}
|
|
2785
3583
|
};
|
|
2786
3584
|
__decorateClass([
|
|
2787
|
-
|
|
3585
|
+
state12()
|
|
2788
3586
|
], GdsGroupedList.prototype, "_tStyles", 2);
|
|
2789
3587
|
__decorateClass([
|
|
2790
|
-
|
|
3588
|
+
property11()
|
|
2791
3589
|
], GdsGroupedList.prototype, "label", 2);
|
|
2792
3590
|
GdsGroupedList = __decorateClass([
|
|
2793
3591
|
gdsCustomElement("gds-grouped-list")
|
|
@@ -2796,6 +3594,7 @@ export {
|
|
|
2796
3594
|
GdsContextMenu,
|
|
2797
3595
|
GdsDatepicker,
|
|
2798
3596
|
GdsDropdown,
|
|
3597
|
+
GdsGrid,
|
|
2799
3598
|
GdsGroupedList,
|
|
2800
3599
|
GdsMenuHeading,
|
|
2801
3600
|
GdsMenuItem,
|