@sebgroup/green-core 1.65.2 → 1.66.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/chunks/{chunk.MNBT4BBM.js → chunk.2OB745JA.js} +17 -16
- package/chunks/{chunk.QQZ6OU7Y.js → chunk.3H5ICQVZ.js} +7 -43
- package/chunks/{chunk.HLECFPM7.js → chunk.3ONXWPQW.js} +2 -2
- package/chunks/{chunk.NXCMDWVV.js → chunk.5UF3G7BV.js} +13 -31
- package/chunks/{chunk.ZJAOT2TY.js → chunk.6IPE43TE.js} +13 -9
- package/chunks/chunk.76QWARGM.js +48 -0
- package/chunks/{chunk.3HYF3OQJ.js → chunk.ANVDAFT6.js} +1 -1
- package/chunks/{chunk.6AXAS42G.js → chunk.AOL7I7LG.js} +1 -1
- package/chunks/{chunk.5KH5FC7L.js → chunk.B3QCLV6X.js} +27 -18
- package/chunks/{chunk.33KNAKAX.js → chunk.BCTJIMKU.js} +1 -1
- package/chunks/chunk.C6D7M75U.js +189 -0
- package/chunks/{chunk.WXLGEKTJ.js → chunk.C7QZFHHI.js} +2 -2
- package/chunks/{chunk.ZRVWDJF3.js → chunk.D7OG6JDU.js} +19 -39
- package/chunks/{chunk.I26S7X2I.js → chunk.ESW6XPZT.js} +1 -1
- package/chunks/{chunk.IVF6XCAV.js → chunk.FHNILNLX.js} +33 -22
- package/chunks/chunk.G2WTHFPE.js +136 -0
- package/chunks/{chunk.ERDZD4ZA.js → chunk.GB5SVW2I.js} +18 -42
- package/chunks/{chunk.72P5ER45.js → chunk.JKCCH7B5.js} +2 -2
- package/chunks/{chunk.RZC5YKY2.js → chunk.KHEFX7ET.js} +1 -1
- package/chunks/{chunk.S6H4MUKG.js → chunk.LNQWCKU7.js} +39 -1
- package/chunks/chunk.M5C2HLKD.js +0 -0
- package/chunks/{chunk.TMGAZY2U.js → chunk.MHE47HSD.js} +3 -8
- package/chunks/{chunk.K4KPKUH4.js → chunk.NUUST5OZ.js} +5 -5
- package/chunks/{chunk.FQ5S3SPL.js → chunk.O5MF3AWQ.js} +39 -28
- package/chunks/{chunk.7RH4YLXP.js → chunk.OGQ5SET4.js} +1 -1
- package/chunks/{chunk.E2DI7SCS.js → chunk.OPSLMB6U.js} +3 -3
- package/chunks/{chunk.IDLO4SF7.js → chunk.OXIKAUCN.js} +3 -4
- package/chunks/{chunk.WVIONKU4.js → chunk.PVDNSDQ5.js} +1 -1
- package/chunks/{chunk.AOTGGABX.js → chunk.PZHMIVFF.js} +10 -3
- package/chunks/chunk.QK3R23GV.js +1 -1
- package/chunks/{chunk.JIYNFF4D.js → chunk.QL3SRQMU.js} +5 -20
- package/chunks/{chunk.N5YJ6GYI.js → chunk.RW5RXCBK.js} +10 -3
- package/chunks/{chunk.RWKRHNWT.js → chunk.SHOSMOYU.js} +1 -1
- package/chunks/{chunk.BJYILCTQ.js → chunk.SPON3Z5D.js} +1 -1
- package/chunks/{chunk.N7UBPAKJ.js → chunk.SVOA74C3.js} +5 -4
- package/chunks/{chunk.3YLD22MP.js → chunk.TF6J2JQN.js} +11 -2
- package/chunks/{chunk.NXUVLTO7.js → chunk.UBXNWORG.js} +25 -14
- package/chunks/chunk.UGHZGD2M.js +38 -0
- package/chunks/{chunk.UQ24RS46.js → chunk.VQ7OJPCU.js} +8 -2
- package/chunks/{chunk.L2TDNB6Z.js → chunk.WBBCGR25.js} +6 -6
- package/chunks/{chunk.M3LCBAMM.js → chunk.WSOQAUSR.js} +23 -12
- package/chunks/{chunk.7M5L527M.js → chunk.WXOLDCJC.js} +10 -3
- package/chunks/{chunk.QOMPMV5S.js → chunk.XER65FVD.js} +9 -2
- package/chunks/chunk.XHVRV33B.js +20 -0
- package/chunks/{chunk.6J4YIHNE.js → chunk.ZCIBIPPR.js} +1 -1
- package/chunks/{chunk.D7J47HUV.js → chunk.ZHRMYWJY.js} +5 -18
- package/components/badge/badge.d.ts +3 -1
- package/components/badge/badge.js +9 -7
- package/components/badge/index.js +9 -7
- package/components/button/button.d.ts +16 -12
- package/components/button/button.js +8 -5
- package/components/button/button.trans.styles.js +2 -2
- package/components/button/index.js +8 -5
- package/components/calendar/calendar.js +4 -4
- package/components/calendar/calendar.trans.styles.js +2 -2
- package/components/calendar/index.js +4 -4
- package/components/card/card.d.ts +6 -5
- package/components/card/card.js +7 -5
- package/components/card/index.js +7 -5
- package/components/container/container.d.ts +3 -392
- package/components/container/container.js +8 -3
- package/components/container/index.js +8 -3
- package/components/context-menu/context-menu.d.ts +3 -1
- package/components/context-menu/context-menu.js +10 -7
- package/components/context-menu/context-menu.trans.styles.js +2 -2
- package/components/context-menu/index.js +11 -8
- package/components/datepicker/datepicker.d.ts +19 -15
- package/components/datepicker/datepicker.js +26 -24
- package/components/datepicker/datepicker.trans.styles.js +2 -2
- package/components/datepicker/index.js +26 -24
- package/components/dialog/dialog.js +13 -11
- package/components/dialog/index.js +13 -11
- package/components/div/div.d.ts +173 -0
- package/components/div/div.js +15 -0
- package/components/div/index.d.ts +1 -0
- package/components/div/index.js +16 -0
- package/components/divider/divider.d.ts +10 -8
- package/components/divider/divider.js +4 -3
- package/components/divider/index.js +4 -3
- package/components/dropdown/dropdown.js +20 -18
- package/components/dropdown/dropdown.trans.styles.js +2 -2
- package/components/dropdown/index.js +21 -19
- package/components/fab/fab.d.ts +3 -17
- package/components/fab/fab.js +9 -7
- package/components/fab/index.js +9 -7
- package/components/filter-chips/filter-chip/filter-chip.js +9 -6
- package/components/filter-chips/filter-chip/filter-chip.trans.styles.js +2 -2
- package/components/filter-chips/filter-chip/index.js +9 -6
- package/components/filter-chips/filter-chips.js +9 -6
- package/components/filter-chips/filter-chips.trans.styles.js +2 -2
- package/components/filter-chips/index.js +9 -6
- package/components/flex/flex.d.ts +3 -76
- package/components/flex/flex.js +7 -5
- package/components/flex/index.js +7 -5
- package/components/form/index.js +12 -8
- package/components/form/summary/index.js +12 -8
- package/components/form/summary/summary.js +12 -8
- package/components/grid/grid.d.ts +5 -6
- package/components/grid/grid.js +7 -5
- package/components/grid/index.js +7 -5
- package/components/grouped-list/grouped-list.js +4 -4
- package/components/grouped-list/grouped-list.trans.styles.js +2 -2
- package/components/grouped-list/index.js +4 -4
- package/components/icon/icons/index.js +132 -132
- package/components/img/img.d.ts +17 -77
- package/components/img/img.js +5 -3
- package/components/img/index.js +5 -3
- package/components/index.js +63 -59
- package/components/input/index.js +17 -15
- package/components/input/input.d.ts +19 -15
- package/components/input/input.js +17 -15
- package/components/input/input.trans.styles.js +2 -2
- package/components/link/index.js +6 -4
- package/components/link/link.d.ts +3 -1
- package/components/link/link.js +6 -4
- package/components/mask/index.js +8 -6
- package/components/mask/mask.d.ts +1 -0
- package/components/mask/mask.js +8 -6
- package/components/menu-button/index.js +6 -3
- package/components/menu-button/menu-button.d.ts +3 -1
- package/components/menu-button/menu-button.js +6 -3
- package/components/popover/index.js +6 -6
- package/components/popover/popover.js +4 -4
- package/components/popover/popover.trans.styles.js +2 -2
- package/components/rich-text/index.js +6 -3
- package/components/rich-text/rich-text.d.ts +3 -1
- package/components/rich-text/rich-text.js +6 -3
- package/components/segmented-control/index.js +9 -7
- package/components/segmented-control/segment/index.js +7 -5
- package/components/segmented-control/segment/segment.d.ts +3 -13
- package/components/segmented-control/segment/segment.js +7 -5
- package/components/segmented-control/segment/segment.trans.styles.js +2 -2
- package/components/segmented-control/segmented-control.d.ts +3 -1
- package/components/segmented-control/segmented-control.js +9 -7
- package/components/segmented-control/segmented-control.trans.styles.js +2 -2
- package/components/select/index.js +17 -15
- package/components/select/select.d.ts +31 -27
- package/components/select/select.js +17 -15
- package/components/select/select.trans.styles.js +2 -2
- package/components/signal/index.js +3 -3
- package/components/signal/signal.js +3 -3
- package/components/spacer/index.js +3 -3
- package/components/spacer/spacer.d.ts +3 -0
- package/components/spacer/spacer.js +3 -3
- package/components/text/index.js +7 -5
- package/components/text/text.d.ts +9 -87
- package/components/text/text.js +7 -5
- package/components/textarea/index.js +17 -15
- package/components/textarea/textarea.d.ts +19 -15
- package/components/textarea/textarea.js +17 -15
- package/components/theme/index.js +4 -4
- package/components/theme/theme.js +4 -4
- package/components/theme/theme.trans.styles.js +2 -2
- package/components/video/index.js +5 -3
- package/components/video/video.d.ts +5 -31
- package/components/video/video.js +5 -3
- package/index.js +63 -59
- package/package.json +1 -1
- package/primitives/field-base/field-base.js +4 -4
- package/primitives/field-base/index.js +4 -4
- package/primitives/form-control-footer/form-control-footer.js +9 -7
- package/primitives/form-control-footer/index.js +9 -7
- package/primitives/form-control-header/form-control-header.js +11 -9
- package/primitives/form-control-header/index.js +11 -9
- package/primitives/listbox/index.js +5 -5
- package/primitives/listbox/listbox.js +5 -5
- package/primitives/listbox/option.js +4 -4
- package/primitives/menu/index.js +5 -5
- package/primitives/menu/menu-heading.js +4 -4
- package/primitives/menu/menu-item.js +4 -4
- package/primitives/menu/menu.js +5 -5
- package/primitives/ripple/index.js +3 -3
- package/primitives/ripple/ripple.js +3 -3
- package/transitional-styles.js +2 -2
- package/utils/helpers/index.d.ts +1 -0
- package/utils/helpers/style-expression-helpers.d.ts +33 -0
- package/utils/mixins/declarative-layout-mixins.d.ts +69 -0
- package/utils/mixins/mixin-builder.d.ts +24 -0
- package/chunks/chunk.5SFGYE7C.js +0 -106
- package/chunks/chunk.N4DG6Q7H.js +0 -381
- /package/components/{container/container.style.d.ts → div/div.style.d.ts} +0 -0
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
import {
|
|
2
|
+
withLayoutChildProps,
|
|
3
|
+
withMarginProps,
|
|
4
|
+
withPaddingProps,
|
|
5
|
+
withPositioningProps,
|
|
6
|
+
withSizeXProps,
|
|
7
|
+
withSizeYProps
|
|
8
|
+
} from "./chunk.G2WTHFPE.js";
|
|
9
|
+
import {
|
|
10
|
+
forColorTokens,
|
|
11
|
+
forSpaceTokens,
|
|
12
|
+
parseColorValue
|
|
13
|
+
} from "./chunk.76QWARGM.js";
|
|
14
|
+
import {
|
|
15
|
+
styleExpressionProperty
|
|
16
|
+
} from "./chunk.NUUST5OZ.js";
|
|
17
|
+
import {
|
|
18
|
+
tokens
|
|
19
|
+
} from "./chunk.WBBCGR25.js";
|
|
20
|
+
import {
|
|
21
|
+
GdsElement
|
|
22
|
+
} from "./chunk.TMEWQZER.js";
|
|
23
|
+
import {
|
|
24
|
+
gdsCustomElement,
|
|
25
|
+
html
|
|
26
|
+
} from "./chunk.QK3R23GV.js";
|
|
27
|
+
import {
|
|
28
|
+
__decorateClass,
|
|
29
|
+
__spreadProps,
|
|
30
|
+
__spreadValues
|
|
31
|
+
} from "./chunk.SEHSDSX2.js";
|
|
32
|
+
|
|
33
|
+
// libs/core/src/components/div/div.ts
|
|
34
|
+
import { property } from "lit/decorators.js";
|
|
35
|
+
|
|
36
|
+
// libs/core/src/components/div/div.style.ts
|
|
37
|
+
import { css } from "lit";
|
|
38
|
+
var style = css`
|
|
39
|
+
:host {
|
|
40
|
+
display: block;
|
|
41
|
+
box-sizing: border-box;
|
|
42
|
+
border-style: solid;
|
|
43
|
+
border-width: 0;
|
|
44
|
+
border-color: var(--gds-color-l2-border-primary);
|
|
45
|
+
}
|
|
46
|
+
:host(:focus-visible) {
|
|
47
|
+
outline-color: color-mix(in srgb, currentcolor, #000 100%);
|
|
48
|
+
outline-offset: var(--gds-space-3xs);
|
|
49
|
+
outline-style: solid;
|
|
50
|
+
outline-width: var(--gds-space-3xs);
|
|
51
|
+
}
|
|
52
|
+
`;
|
|
53
|
+
var div_style_default = style;
|
|
54
|
+
|
|
55
|
+
// libs/core/src/components/div/div.ts
|
|
56
|
+
var GdsDiv = class extends withSizeXProps(
|
|
57
|
+
withSizeYProps(
|
|
58
|
+
withMarginProps(
|
|
59
|
+
withPaddingProps(withLayoutChildProps(withPositioningProps(GdsElement)))
|
|
60
|
+
)
|
|
61
|
+
)
|
|
62
|
+
) {
|
|
63
|
+
constructor() {
|
|
64
|
+
super(...arguments);
|
|
65
|
+
this.level = "2";
|
|
66
|
+
}
|
|
67
|
+
render() {
|
|
68
|
+
return html`<slot></slot>`;
|
|
69
|
+
}
|
|
70
|
+
};
|
|
71
|
+
GdsDiv.styles = [tokens, div_style_default];
|
|
72
|
+
__decorateClass([
|
|
73
|
+
styleExpressionProperty()
|
|
74
|
+
], GdsDiv.prototype, "display", 2);
|
|
75
|
+
__decorateClass([
|
|
76
|
+
property()
|
|
77
|
+
], GdsDiv.prototype, "level", 2);
|
|
78
|
+
__decorateClass([
|
|
79
|
+
styleExpressionProperty(forColorTokens("content"))
|
|
80
|
+
], GdsDiv.prototype, "color", 2);
|
|
81
|
+
__decorateClass([
|
|
82
|
+
styleExpressionProperty(forColorTokens("background"))
|
|
83
|
+
], GdsDiv.prototype, "background", 2);
|
|
84
|
+
__decorateClass([
|
|
85
|
+
styleExpressionProperty({
|
|
86
|
+
styleTemplate: function(_prop, values) {
|
|
87
|
+
const this_ = this;
|
|
88
|
+
const [
|
|
89
|
+
size,
|
|
90
|
+
style2 = this_["border-style"] || "solid",
|
|
91
|
+
color = this_["border-color"] || "primary"
|
|
92
|
+
] = values;
|
|
93
|
+
const sizeCss = `var(--gds-space-${size})`;
|
|
94
|
+
const colorCss = parseColorValue(color, "border", this_.level);
|
|
95
|
+
return `border: ${sizeCss} ${style2} ${colorCss};`;
|
|
96
|
+
}
|
|
97
|
+
})
|
|
98
|
+
], GdsDiv.prototype, "border", 2);
|
|
99
|
+
__decorateClass([
|
|
100
|
+
styleExpressionProperty(forColorTokens("border"))
|
|
101
|
+
], GdsDiv.prototype, "border-color", 2);
|
|
102
|
+
__decorateClass([
|
|
103
|
+
styleExpressionProperty(forSpaceTokens)
|
|
104
|
+
], GdsDiv.prototype, "border-width", 2);
|
|
105
|
+
__decorateClass([
|
|
106
|
+
styleExpressionProperty()
|
|
107
|
+
], GdsDiv.prototype, "border-style", 2);
|
|
108
|
+
__decorateClass([
|
|
109
|
+
styleExpressionProperty(forSpaceTokens)
|
|
110
|
+
], GdsDiv.prototype, "border-radius", 2);
|
|
111
|
+
__decorateClass([
|
|
112
|
+
styleExpressionProperty({
|
|
113
|
+
valueTemplate: (v) => `var(--gds-shadow-${v})`
|
|
114
|
+
})
|
|
115
|
+
], GdsDiv.prototype, "box-shadow", 2);
|
|
116
|
+
__decorateClass([
|
|
117
|
+
styleExpressionProperty()
|
|
118
|
+
], GdsDiv.prototype, "opacity", 2);
|
|
119
|
+
__decorateClass([
|
|
120
|
+
styleExpressionProperty()
|
|
121
|
+
], GdsDiv.prototype, "overflow", 2);
|
|
122
|
+
__decorateClass([
|
|
123
|
+
styleExpressionProperty()
|
|
124
|
+
], GdsDiv.prototype, "box-sizing", 2);
|
|
125
|
+
__decorateClass([
|
|
126
|
+
styleExpressionProperty()
|
|
127
|
+
], GdsDiv.prototype, "z-index", 2);
|
|
128
|
+
__decorateClass([
|
|
129
|
+
styleExpressionProperty({
|
|
130
|
+
styleTemplate: (_prop, values) => {
|
|
131
|
+
const size = values[0];
|
|
132
|
+
const styleSize = `font-size: var(--gds-text-size-${size});`;
|
|
133
|
+
const styleLine = `line-height: var(--gds-text-line-height-${size});`;
|
|
134
|
+
return styleSize + styleLine;
|
|
135
|
+
}
|
|
136
|
+
})
|
|
137
|
+
], GdsDiv.prototype, "font-size", 2);
|
|
138
|
+
__decorateClass([
|
|
139
|
+
styleExpressionProperty({
|
|
140
|
+
valueTemplate: (v) => `var(--gds-text-weight-${v})`
|
|
141
|
+
})
|
|
142
|
+
], GdsDiv.prototype, "font-weight", 2);
|
|
143
|
+
__decorateClass([
|
|
144
|
+
styleExpressionProperty()
|
|
145
|
+
], GdsDiv.prototype, "text-align", 2);
|
|
146
|
+
__decorateClass([
|
|
147
|
+
styleExpressionProperty()
|
|
148
|
+
], GdsDiv.prototype, "text-wrap", 2);
|
|
149
|
+
__decorateClass([
|
|
150
|
+
styleExpressionProperty(__spreadProps(__spreadValues({}, forSpaceTokens), {
|
|
151
|
+
styleTemplate: (_prop, values) => {
|
|
152
|
+
const colGap = values[0];
|
|
153
|
+
const rowGap = values[1] || colGap;
|
|
154
|
+
return `gap: ${colGap} ${rowGap};`;
|
|
155
|
+
},
|
|
156
|
+
cacheOverrideKey: "flex"
|
|
157
|
+
}))
|
|
158
|
+
], GdsDiv.prototype, "gap", 2);
|
|
159
|
+
__decorateClass([
|
|
160
|
+
styleExpressionProperty()
|
|
161
|
+
], GdsDiv.prototype, "align-items", 2);
|
|
162
|
+
__decorateClass([
|
|
163
|
+
styleExpressionProperty()
|
|
164
|
+
], GdsDiv.prototype, "align-content", 2);
|
|
165
|
+
__decorateClass([
|
|
166
|
+
styleExpressionProperty()
|
|
167
|
+
], GdsDiv.prototype, "justify-content", 2);
|
|
168
|
+
__decorateClass([
|
|
169
|
+
styleExpressionProperty()
|
|
170
|
+
], GdsDiv.prototype, "justify-items", 2);
|
|
171
|
+
__decorateClass([
|
|
172
|
+
styleExpressionProperty()
|
|
173
|
+
], GdsDiv.prototype, "flex-direction", 2);
|
|
174
|
+
__decorateClass([
|
|
175
|
+
styleExpressionProperty()
|
|
176
|
+
], GdsDiv.prototype, "flex-wrap", 2);
|
|
177
|
+
__decorateClass([
|
|
178
|
+
styleExpressionProperty()
|
|
179
|
+
], GdsDiv.prototype, "place-items", 2);
|
|
180
|
+
__decorateClass([
|
|
181
|
+
styleExpressionProperty()
|
|
182
|
+
], GdsDiv.prototype, "place-content", 2);
|
|
183
|
+
GdsDiv = __decorateClass([
|
|
184
|
+
gdsCustomElement("gds-div")
|
|
185
|
+
], GdsDiv);
|
|
186
|
+
|
|
187
|
+
export {
|
|
188
|
+
GdsDiv
|
|
189
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
TransitionalStyles
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.LNQWCKU7.js";
|
|
4
4
|
import {
|
|
5
5
|
watch
|
|
6
6
|
} from "./chunk.TYGMNHNO.js";
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
dark_default,
|
|
9
9
|
light_default,
|
|
10
10
|
tokens
|
|
11
|
-
} from "./chunk.
|
|
11
|
+
} from "./chunk.WBBCGR25.js";
|
|
12
12
|
import {
|
|
13
13
|
GdsElement
|
|
14
14
|
} from "./chunk.TMEWQZER.js";
|
|
@@ -1,9 +1,16 @@
|
|
|
1
|
+
import {
|
|
2
|
+
withLayoutChildProps,
|
|
3
|
+
withMarginProps,
|
|
4
|
+
withPositioningProps,
|
|
5
|
+
withSizeXProps,
|
|
6
|
+
withSizeYProps
|
|
7
|
+
} from "./chunk.G2WTHFPE.js";
|
|
1
8
|
import {
|
|
2
9
|
styleExpressionProperty
|
|
3
|
-
} from "./chunk.
|
|
10
|
+
} from "./chunk.NUUST5OZ.js";
|
|
4
11
|
import {
|
|
5
12
|
tokens
|
|
6
|
-
} from "./chunk.
|
|
13
|
+
} from "./chunk.WBBCGR25.js";
|
|
7
14
|
import {
|
|
8
15
|
GdsElement
|
|
9
16
|
} from "./chunk.TMEWQZER.js";
|
|
@@ -41,7 +48,11 @@ var style = css`
|
|
|
41
48
|
var video_style_default = style;
|
|
42
49
|
|
|
43
50
|
// libs/core/src/components/video/video.ts
|
|
44
|
-
var GdsVideo = class extends
|
|
51
|
+
var GdsVideo = class extends withSizeXProps(
|
|
52
|
+
withSizeYProps(
|
|
53
|
+
withMarginProps(withLayoutChildProps(withPositioningProps(GdsElement)))
|
|
54
|
+
)
|
|
55
|
+
) {
|
|
45
56
|
// Method to programmatically apply video settings
|
|
46
57
|
applyVideoSettings() {
|
|
47
58
|
if (this.videoElement) {
|
|
@@ -62,59 +73,28 @@ var GdsVideo = class extends GdsElement {
|
|
|
62
73
|
};
|
|
63
74
|
GdsVideo.styles = [tokens, video_style_default];
|
|
64
75
|
__decorateClass([
|
|
65
|
-
styleExpressionProperty(
|
|
66
|
-
property: "aspect-ratio",
|
|
67
|
-
valueTemplate: (v) => v
|
|
68
|
-
})
|
|
76
|
+
styleExpressionProperty()
|
|
69
77
|
], GdsVideo.prototype, "aspect-ratio", 2);
|
|
70
78
|
__decorateClass([
|
|
71
79
|
styleExpressionProperty({
|
|
72
|
-
|
|
73
|
-
selector: "video",
|
|
74
|
-
valueTemplate: (v) => v
|
|
80
|
+
selector: "video"
|
|
75
81
|
})
|
|
76
82
|
], GdsVideo.prototype, "object-position", 2);
|
|
77
83
|
__decorateClass([
|
|
78
|
-
styleExpressionProperty(
|
|
79
|
-
property: "inset",
|
|
80
|
-
valueTemplate: (v) => v
|
|
81
|
-
})
|
|
82
|
-
], GdsVideo.prototype, "inset", 2);
|
|
83
|
-
__decorateClass([
|
|
84
|
-
styleExpressionProperty({
|
|
85
|
-
property: "width",
|
|
86
|
-
valueTemplate: (v) => v
|
|
87
|
-
})
|
|
88
|
-
], GdsVideo.prototype, "width", 2);
|
|
89
|
-
__decorateClass([
|
|
90
|
-
styleExpressionProperty({
|
|
91
|
-
property: "height",
|
|
92
|
-
valueTemplate: (v) => v
|
|
93
|
-
})
|
|
94
|
-
], GdsVideo.prototype, "height", 2);
|
|
95
|
-
__decorateClass([
|
|
96
|
-
styleExpressionProperty({
|
|
97
|
-
property: "opacity",
|
|
98
|
-
valueTemplate: (v) => v
|
|
99
|
-
})
|
|
84
|
+
styleExpressionProperty()
|
|
100
85
|
], GdsVideo.prototype, "opacity", 2);
|
|
101
86
|
__decorateClass([
|
|
102
87
|
styleExpressionProperty({
|
|
103
|
-
|
|
104
|
-
selector: "video",
|
|
105
|
-
valueTemplate: (v) => v
|
|
88
|
+
selector: "video"
|
|
106
89
|
})
|
|
107
90
|
], GdsVideo.prototype, "object-fit", 2);
|
|
108
91
|
__decorateClass([
|
|
109
92
|
styleExpressionProperty({
|
|
110
|
-
|
|
111
|
-
selector: "video",
|
|
112
|
-
valueTemplate: (v) => v
|
|
93
|
+
selector: "video"
|
|
113
94
|
})
|
|
114
95
|
], GdsVideo.prototype, "pointer-events", 2);
|
|
115
96
|
__decorateClass([
|
|
116
97
|
styleExpressionProperty({
|
|
117
|
-
property: "border-radius",
|
|
118
98
|
valueTemplate: (v) => `var(--gds-space-${v})`
|
|
119
99
|
})
|
|
120
100
|
], GdsVideo.prototype, "border-radius", 2);
|
|
@@ -1,21 +1,26 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resizeObserver
|
|
3
3
|
} from "./chunk.VHN4JEZC.js";
|
|
4
|
-
import {
|
|
5
|
-
styleExpressionProperty
|
|
6
|
-
} from "./chunk.K4KPKUH4.js";
|
|
7
4
|
import {
|
|
8
5
|
forwardAttributes
|
|
9
|
-
} from "./chunk.
|
|
6
|
+
} from "./chunk.B3QCLV6X.js";
|
|
10
7
|
import {
|
|
11
8
|
GdsFormControlElement
|
|
12
9
|
} from "./chunk.VA6TUMR2.js";
|
|
10
|
+
import {
|
|
11
|
+
withLayoutChildProps,
|
|
12
|
+
withMarginProps,
|
|
13
|
+
withSizeXProps
|
|
14
|
+
} from "./chunk.G2WTHFPE.js";
|
|
15
|
+
import {
|
|
16
|
+
styleExpressionProperty
|
|
17
|
+
} from "./chunk.NUUST5OZ.js";
|
|
13
18
|
import {
|
|
14
19
|
watch
|
|
15
20
|
} from "./chunk.TYGMNHNO.js";
|
|
16
21
|
import {
|
|
17
22
|
tokens
|
|
18
|
-
} from "./chunk.
|
|
23
|
+
} from "./chunk.WBBCGR25.js";
|
|
19
24
|
import {
|
|
20
25
|
gdsCustomElement,
|
|
21
26
|
html
|
|
@@ -104,7 +109,7 @@ var styles = css`
|
|
|
104
109
|
|
|
105
110
|
// libs/core/src/components/textarea/textarea.ts
|
|
106
111
|
var _renderDefault, renderDefault_fn, _renderFloatingLabel, renderFloatingLabel_fn, _forwardableAttrs, _handleOnInput, _handleOnChange, _handleOnPaste, _handleFieldClick, _handleClearBtnClick, _renderFieldContents, renderFieldContents_fn, _renderSlotLead, renderSlotLead_fn, _renderSlotTrail, renderSlotTrail_fn, _renderNativeTextarea, renderNativeTextarea_fn, _renderClearButton, renderClearButton_fn, _shouldShowRemainingChars, shouldShowRemainingChars_get;
|
|
107
|
-
var
|
|
112
|
+
var Textarea = class extends GdsFormControlElement {
|
|
108
113
|
constructor() {
|
|
109
114
|
super();
|
|
110
115
|
__privateAdd(this, _renderDefault);
|
|
@@ -385,7 +390,7 @@ _shouldShowRemainingChars = new WeakSet();
|
|
|
385
390
|
shouldShowRemainingChars_get = function() {
|
|
386
391
|
return this.maxlength < Number.MAX_SAFE_INTEGER;
|
|
387
392
|
};
|
|
388
|
-
|
|
393
|
+
Textarea.styles = [tokens, styles];
|
|
389
394
|
__decorateClass([
|
|
390
395
|
styleExpressionProperty({
|
|
391
396
|
valueTemplate: (v) => v,
|
|
@@ -395,46 +400,52 @@ __decorateClass([
|
|
|
395
400
|
return `min-height: calc(1lh * ${ROWS});`;
|
|
396
401
|
}
|
|
397
402
|
})
|
|
398
|
-
],
|
|
403
|
+
], Textarea.prototype, "rows", 2);
|
|
399
404
|
__decorateClass([
|
|
400
405
|
property({ attribute: "supporting-text" })
|
|
401
|
-
],
|
|
406
|
+
], Textarea.prototype, "supportingText", 2);
|
|
402
407
|
__decorateClass([
|
|
403
408
|
property({ type: Boolean })
|
|
404
|
-
],
|
|
409
|
+
], Textarea.prototype, "clearable", 2);
|
|
405
410
|
__decorateClass([
|
|
406
411
|
property({ type: String })
|
|
407
|
-
],
|
|
412
|
+
], Textarea.prototype, "resizable", 2);
|
|
408
413
|
__decorateClass([
|
|
409
414
|
property({ type: Number })
|
|
410
|
-
],
|
|
415
|
+
], Textarea.prototype, "maxlength", 2);
|
|
411
416
|
__decorateClass([
|
|
412
417
|
property({ type: String })
|
|
413
|
-
],
|
|
418
|
+
], Textarea.prototype, "variant", 2);
|
|
414
419
|
__decorateClass([
|
|
415
420
|
property({ type: String })
|
|
416
|
-
],
|
|
421
|
+
], Textarea.prototype, "size", 2);
|
|
417
422
|
__decorateClass([
|
|
418
423
|
queryAsync("textarea")
|
|
419
|
-
],
|
|
424
|
+
], Textarea.prototype, "elTextareaAsync", 2);
|
|
420
425
|
__decorateClass([
|
|
421
426
|
query("textarea")
|
|
422
|
-
],
|
|
427
|
+
], Textarea.prototype, "elTextarea", 2);
|
|
423
428
|
__decorateClass([
|
|
424
429
|
query("gds-field-base")
|
|
425
|
-
],
|
|
430
|
+
], Textarea.prototype, "fieldBase", 2);
|
|
426
431
|
__decorateClass([
|
|
427
432
|
resizeObserver()
|
|
428
|
-
],
|
|
433
|
+
], Textarea.prototype, "_handleResize", 1);
|
|
429
434
|
__decorateClass([
|
|
430
435
|
watch("value")
|
|
431
|
-
],
|
|
436
|
+
], Textarea.prototype, "_setAutoHeight", 1);
|
|
432
437
|
__decorateClass([
|
|
433
438
|
watch("rows")
|
|
434
|
-
],
|
|
435
|
-
|
|
436
|
-
gdsCustomElement("gds-textarea"),
|
|
439
|
+
], Textarea.prototype, "_handleRowsChange", 1);
|
|
440
|
+
Textarea = __decorateClass([
|
|
437
441
|
localized()
|
|
442
|
+
], Textarea);
|
|
443
|
+
var GdsTextarea = class extends withLayoutChildProps(
|
|
444
|
+
withSizeXProps(withMarginProps(Textarea))
|
|
445
|
+
) {
|
|
446
|
+
};
|
|
447
|
+
GdsTextarea = __decorateClass([
|
|
448
|
+
gdsCustomElement("gds-textarea")
|
|
438
449
|
], GdsTextarea);
|
|
439
450
|
|
|
440
451
|
export {
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
import {
|
|
2
|
+
forSpaceTokens,
|
|
3
|
+
forSpaceTokensAndCustomValues,
|
|
4
|
+
forSpaceTokensSupportingNegative
|
|
5
|
+
} from "./chunk.76QWARGM.js";
|
|
6
|
+
import {
|
|
7
|
+
styleExpressionProperty
|
|
8
|
+
} from "./chunk.NUUST5OZ.js";
|
|
9
|
+
import {
|
|
10
|
+
__decorateClass
|
|
11
|
+
} from "./chunk.SEHSDSX2.js";
|
|
12
|
+
|
|
13
|
+
// libs/core/src/utils/mixins/declarative-layout-mixins.ts
|
|
14
|
+
function withSizeXProps(base) {
|
|
15
|
+
class DimensionPropsMixin extends base {
|
|
16
|
+
}
|
|
17
|
+
__decorateClass([
|
|
18
|
+
styleExpressionProperty(forSpaceTokensAndCustomValues)
|
|
19
|
+
], DimensionPropsMixin.prototype, "width", 2);
|
|
20
|
+
__decorateClass([
|
|
21
|
+
styleExpressionProperty(forSpaceTokensAndCustomValues)
|
|
22
|
+
], DimensionPropsMixin.prototype, "min-width", 2);
|
|
23
|
+
__decorateClass([
|
|
24
|
+
styleExpressionProperty(forSpaceTokensAndCustomValues)
|
|
25
|
+
], DimensionPropsMixin.prototype, "max-width", 2);
|
|
26
|
+
__decorateClass([
|
|
27
|
+
styleExpressionProperty(forSpaceTokensAndCustomValues)
|
|
28
|
+
], DimensionPropsMixin.prototype, "inline-size", 2);
|
|
29
|
+
__decorateClass([
|
|
30
|
+
styleExpressionProperty(forSpaceTokensAndCustomValues)
|
|
31
|
+
], DimensionPropsMixin.prototype, "min-inline-size", 2);
|
|
32
|
+
__decorateClass([
|
|
33
|
+
styleExpressionProperty(forSpaceTokensAndCustomValues)
|
|
34
|
+
], DimensionPropsMixin.prototype, "max-inline-size", 2);
|
|
35
|
+
return DimensionPropsMixin;
|
|
36
|
+
}
|
|
37
|
+
function withSizeYProps(base) {
|
|
38
|
+
class DimensionPropsMixin extends base {
|
|
39
|
+
}
|
|
40
|
+
__decorateClass([
|
|
41
|
+
styleExpressionProperty(forSpaceTokensAndCustomValues)
|
|
42
|
+
], DimensionPropsMixin.prototype, "height", 2);
|
|
43
|
+
__decorateClass([
|
|
44
|
+
styleExpressionProperty(forSpaceTokensAndCustomValues)
|
|
45
|
+
], DimensionPropsMixin.prototype, "min-height", 2);
|
|
46
|
+
__decorateClass([
|
|
47
|
+
styleExpressionProperty(forSpaceTokensAndCustomValues)
|
|
48
|
+
], DimensionPropsMixin.prototype, "max-height", 2);
|
|
49
|
+
__decorateClass([
|
|
50
|
+
styleExpressionProperty(forSpaceTokensAndCustomValues)
|
|
51
|
+
], DimensionPropsMixin.prototype, "block-size", 2);
|
|
52
|
+
__decorateClass([
|
|
53
|
+
styleExpressionProperty(forSpaceTokensAndCustomValues)
|
|
54
|
+
], DimensionPropsMixin.prototype, "min-block-size", 2);
|
|
55
|
+
__decorateClass([
|
|
56
|
+
styleExpressionProperty(forSpaceTokensAndCustomValues)
|
|
57
|
+
], DimensionPropsMixin.prototype, "max-block-size", 2);
|
|
58
|
+
return DimensionPropsMixin;
|
|
59
|
+
}
|
|
60
|
+
function withMarginProps(base) {
|
|
61
|
+
class MarginPropsMixin extends base {
|
|
62
|
+
}
|
|
63
|
+
__decorateClass([
|
|
64
|
+
styleExpressionProperty(forSpaceTokensSupportingNegative)
|
|
65
|
+
], MarginPropsMixin.prototype, "margin", 2);
|
|
66
|
+
__decorateClass([
|
|
67
|
+
styleExpressionProperty(forSpaceTokensSupportingNegative)
|
|
68
|
+
], MarginPropsMixin.prototype, "margin-inline", 2);
|
|
69
|
+
__decorateClass([
|
|
70
|
+
styleExpressionProperty(forSpaceTokensSupportingNegative)
|
|
71
|
+
], MarginPropsMixin.prototype, "margin-block", 2);
|
|
72
|
+
return MarginPropsMixin;
|
|
73
|
+
}
|
|
74
|
+
function withPaddingProps(base) {
|
|
75
|
+
class PaddingPropsMixin extends base {
|
|
76
|
+
}
|
|
77
|
+
__decorateClass([
|
|
78
|
+
styleExpressionProperty(forSpaceTokens)
|
|
79
|
+
], PaddingPropsMixin.prototype, "padding", 2);
|
|
80
|
+
__decorateClass([
|
|
81
|
+
styleExpressionProperty(forSpaceTokens)
|
|
82
|
+
], PaddingPropsMixin.prototype, "padding-inline", 2);
|
|
83
|
+
__decorateClass([
|
|
84
|
+
styleExpressionProperty(forSpaceTokens)
|
|
85
|
+
], PaddingPropsMixin.prototype, "padding-block", 2);
|
|
86
|
+
return PaddingPropsMixin;
|
|
87
|
+
}
|
|
88
|
+
function withLayoutChildProps(base) {
|
|
89
|
+
class LayoutChildPropsMixin extends base {
|
|
90
|
+
}
|
|
91
|
+
__decorateClass([
|
|
92
|
+
styleExpressionProperty()
|
|
93
|
+
], LayoutChildPropsMixin.prototype, "align-self", 2);
|
|
94
|
+
__decorateClass([
|
|
95
|
+
styleExpressionProperty()
|
|
96
|
+
], LayoutChildPropsMixin.prototype, "justify-self", 2);
|
|
97
|
+
__decorateClass([
|
|
98
|
+
styleExpressionProperty()
|
|
99
|
+
], LayoutChildPropsMixin.prototype, "place-self", 2);
|
|
100
|
+
__decorateClass([
|
|
101
|
+
styleExpressionProperty()
|
|
102
|
+
], LayoutChildPropsMixin.prototype, "grid-column", 2);
|
|
103
|
+
__decorateClass([
|
|
104
|
+
styleExpressionProperty()
|
|
105
|
+
], LayoutChildPropsMixin.prototype, "grid-row", 2);
|
|
106
|
+
__decorateClass([
|
|
107
|
+
styleExpressionProperty()
|
|
108
|
+
], LayoutChildPropsMixin.prototype, "grid-area", 2);
|
|
109
|
+
__decorateClass([
|
|
110
|
+
styleExpressionProperty()
|
|
111
|
+
], LayoutChildPropsMixin.prototype, "flex", 2);
|
|
112
|
+
return LayoutChildPropsMixin;
|
|
113
|
+
}
|
|
114
|
+
function withPositioningProps(base) {
|
|
115
|
+
class PositioningPropsMixin extends base {
|
|
116
|
+
}
|
|
117
|
+
__decorateClass([
|
|
118
|
+
styleExpressionProperty()
|
|
119
|
+
], PositioningPropsMixin.prototype, "position", 2);
|
|
120
|
+
__decorateClass([
|
|
121
|
+
styleExpressionProperty()
|
|
122
|
+
], PositioningPropsMixin.prototype, "transform", 2);
|
|
123
|
+
__decorateClass([
|
|
124
|
+
styleExpressionProperty()
|
|
125
|
+
], PositioningPropsMixin.prototype, "inset", 2);
|
|
126
|
+
return PositioningPropsMixin;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
export {
|
|
130
|
+
withSizeXProps,
|
|
131
|
+
withSizeYProps,
|
|
132
|
+
withMarginProps,
|
|
133
|
+
withPaddingProps,
|
|
134
|
+
withLayoutChildProps,
|
|
135
|
+
withPositioningProps
|
|
136
|
+
};
|
|
@@ -1,9 +1,14 @@
|
|
|
1
|
+
import {
|
|
2
|
+
withPositioningProps,
|
|
3
|
+
withSizeXProps,
|
|
4
|
+
withSizeYProps
|
|
5
|
+
} from "./chunk.G2WTHFPE.js";
|
|
1
6
|
import {
|
|
2
7
|
styleExpressionProperty
|
|
3
|
-
} from "./chunk.
|
|
8
|
+
} from "./chunk.NUUST5OZ.js";
|
|
4
9
|
import {
|
|
5
10
|
tokens
|
|
6
|
-
} from "./chunk.
|
|
11
|
+
} from "./chunk.WBBCGR25.js";
|
|
7
12
|
import {
|
|
8
13
|
GdsElement
|
|
9
14
|
} from "./chunk.TMEWQZER.js";
|
|
@@ -41,68 +46,39 @@ var style = css`
|
|
|
41
46
|
var img_style_default = style;
|
|
42
47
|
|
|
43
48
|
// libs/core/src/components/img/img.ts
|
|
44
|
-
var GdsImg = class extends
|
|
49
|
+
var GdsImg = class extends withPositioningProps(
|
|
50
|
+
withSizeXProps(withSizeYProps(GdsElement))
|
|
51
|
+
) {
|
|
45
52
|
render() {
|
|
46
53
|
return html`<img src="${this.src}" alt="${this.alt}" />`;
|
|
47
54
|
}
|
|
48
55
|
};
|
|
49
56
|
GdsImg.styles = [tokens, img_style_default];
|
|
50
57
|
__decorateClass([
|
|
51
|
-
styleExpressionProperty(
|
|
52
|
-
property: "aspect-ratio",
|
|
53
|
-
valueTemplate: (v) => v
|
|
54
|
-
})
|
|
58
|
+
styleExpressionProperty()
|
|
55
59
|
], GdsImg.prototype, "aspect-ratio", 2);
|
|
56
60
|
__decorateClass([
|
|
57
61
|
styleExpressionProperty({
|
|
58
|
-
property: "
|
|
59
|
-
|
|
60
|
-
valueTemplate: (v) => v
|
|
61
|
-
})
|
|
62
|
-
], GdsImg.prototype, "position", 2);
|
|
63
|
-
__decorateClass([
|
|
64
|
-
styleExpressionProperty({
|
|
65
|
-
property: "inset",
|
|
66
|
-
valueTemplate: (v) => v
|
|
67
|
-
})
|
|
68
|
-
], GdsImg.prototype, "inset", 2);
|
|
69
|
-
__decorateClass([
|
|
70
|
-
styleExpressionProperty({
|
|
71
|
-
property: "width",
|
|
72
|
-
valueTemplate: (v) => v
|
|
73
|
-
})
|
|
74
|
-
], GdsImg.prototype, "width", 2);
|
|
75
|
-
__decorateClass([
|
|
76
|
-
styleExpressionProperty({
|
|
77
|
-
property: "height",
|
|
78
|
-
valueTemplate: (v) => v
|
|
62
|
+
property: "border-radius",
|
|
63
|
+
valueTemplate: (v) => `var(--gds-space-${v})`
|
|
79
64
|
})
|
|
80
|
-
], GdsImg.prototype, "
|
|
65
|
+
], GdsImg.prototype, "border-radius", 2);
|
|
81
66
|
__decorateClass([
|
|
82
67
|
styleExpressionProperty({
|
|
83
|
-
|
|
84
|
-
valueTemplate: (v) => v
|
|
68
|
+
selector: "img"
|
|
85
69
|
})
|
|
86
|
-
], GdsImg.prototype, "
|
|
70
|
+
], GdsImg.prototype, "object-fit", 2);
|
|
87
71
|
__decorateClass([
|
|
88
72
|
styleExpressionProperty({
|
|
89
|
-
|
|
90
|
-
selector: "img",
|
|
91
|
-
valueTemplate: (v) => v
|
|
73
|
+
selector: "img"
|
|
92
74
|
})
|
|
93
|
-
], GdsImg.prototype, "object-
|
|
75
|
+
], GdsImg.prototype, "object-position", 2);
|
|
94
76
|
__decorateClass([
|
|
95
77
|
property()
|
|
96
78
|
], GdsImg.prototype, "src", 2);
|
|
97
79
|
__decorateClass([
|
|
98
80
|
property()
|
|
99
81
|
], GdsImg.prototype, "alt", 2);
|
|
100
|
-
__decorateClass([
|
|
101
|
-
styleExpressionProperty({
|
|
102
|
-
property: "border-radius",
|
|
103
|
-
valueTemplate: (v) => `var(--gds-space-${v})`
|
|
104
|
-
})
|
|
105
|
-
], GdsImg.prototype, "border-radius", 2);
|
|
106
82
|
GdsImg = __decorateClass([
|
|
107
83
|
gdsCustomElement("gds-img")
|
|
108
84
|
], GdsImg);
|