@phcdevworks/spectre-components 1.18.0 → 1.20.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 +102 -78
- package/dist/alert.cjs.map +1 -1
- package/dist/alert.d.cts +2 -2
- package/dist/alert.d.ts +2 -2
- package/dist/alert.js.map +1 -1
- package/dist/avatar.cjs.map +1 -1
- package/dist/avatar.d.cts +2 -2
- package/dist/avatar.d.ts +2 -2
- package/dist/avatar.js.map +1 -1
- package/dist/badge.cjs +48 -1
- package/dist/badge.cjs.map +1 -1
- package/dist/badge.d.cts +22 -2
- package/dist/badge.d.ts +22 -2
- package/dist/badge.js +48 -1
- package/dist/badge.js.map +1 -1
- package/dist/button.cjs.map +1 -1
- package/dist/button.d.cts +2 -2
- package/dist/button.d.ts +2 -2
- package/dist/button.js.map +1 -1
- package/dist/card.cjs +34 -0
- package/dist/card.cjs.map +1 -1
- package/dist/card.d.cts +16 -3
- package/dist/card.d.ts +16 -3
- package/dist/card.js +33 -1
- package/dist/card.js.map +1 -1
- package/dist/container.cjs.map +1 -1
- package/dist/container.d.cts +2 -2
- package/dist/container.d.ts +2 -2
- package/dist/container.js.map +1 -1
- package/dist/dropdown.cjs +53 -6
- package/dist/dropdown.cjs.map +1 -1
- package/dist/dropdown.d.cts +21 -2
- package/dist/dropdown.d.ts +21 -2
- package/dist/dropdown.js +53 -6
- package/dist/dropdown.js.map +1 -1
- package/dist/footer.cjs +32 -0
- package/dist/footer.cjs.map +1 -1
- package/dist/footer.d.cts +14 -0
- package/dist/footer.d.ts +14 -0
- package/dist/footer.js +32 -0
- package/dist/footer.js.map +1 -1
- package/dist/{form-TvtLcoW0.d.cts → form-DpPtizpY.d.cts} +5 -1
- package/dist/{form-TvtLcoW0.d.ts → form-DpPtizpY.d.ts} +5 -1
- package/dist/grid.cjs.map +1 -1
- package/dist/grid.d.cts +2 -2
- package/dist/grid.d.ts +2 -2
- package/dist/grid.js.map +1 -1
- package/dist/icon-box.cjs.map +1 -1
- package/dist/icon-box.d.cts +2 -2
- package/dist/icon-box.d.ts +2 -2
- package/dist/icon-box.js.map +1 -1
- package/dist/index.cjs +220 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +219 -12
- package/dist/index.js.map +1 -1
- package/dist/input.cjs.map +1 -1
- package/dist/input.d.cts +2 -2
- package/dist/input.d.ts +2 -2
- package/dist/input.js.map +1 -1
- package/dist/modal.cjs +32 -0
- package/dist/modal.cjs.map +1 -1
- package/dist/modal.d.cts +14 -0
- package/dist/modal.d.ts +14 -0
- package/dist/modal.js +32 -0
- package/dist/modal.js.map +1 -1
- package/dist/nav-item.cjs.map +1 -1
- package/dist/nav-item.d.cts +1 -1
- package/dist/nav-item.d.ts +1 -1
- package/dist/nav-item.js.map +1 -1
- package/dist/nav.cjs +32 -0
- package/dist/nav.cjs.map +1 -1
- package/dist/nav.d.cts +14 -1
- package/dist/nav.d.ts +14 -1
- package/dist/nav.js +32 -0
- package/dist/nav.js.map +1 -1
- package/dist/pricing-card.cjs +32 -0
- package/dist/pricing-card.cjs.map +1 -1
- package/dist/pricing-card.d.cts +14 -0
- package/dist/pricing-card.d.ts +14 -0
- package/dist/pricing-card.js +32 -0
- package/dist/pricing-card.js.map +1 -1
- package/dist/radio.cjs +3 -2
- package/dist/radio.cjs.map +1 -1
- package/dist/radio.js +3 -2
- package/dist/radio.js.map +1 -1
- package/dist/rating.cjs.map +1 -1
- package/dist/rating.d.cts +2 -2
- package/dist/rating.d.ts +2 -2
- package/dist/rating.js.map +1 -1
- package/dist/section.cjs.map +1 -1
- package/dist/section.js.map +1 -1
- package/dist/select.cjs.map +1 -1
- package/dist/select.d.cts +1 -1
- package/dist/select.d.ts +1 -1
- package/dist/select.js.map +1 -1
- package/dist/sidebar-link.cjs.map +1 -1
- package/dist/sidebar-link.d.cts +1 -1
- package/dist/sidebar-link.d.ts +1 -1
- package/dist/sidebar-link.js.map +1 -1
- package/dist/spinner.cjs.map +1 -1
- package/dist/spinner.d.cts +2 -2
- package/dist/spinner.d.ts +2 -2
- package/dist/spinner.js.map +1 -1
- package/dist/stack.cjs.map +1 -1
- package/dist/stack.d.cts +2 -2
- package/dist/stack.d.ts +2 -2
- package/dist/stack.js.map +1 -1
- package/dist/tag.cjs.map +1 -1
- package/dist/tag.d.cts +2 -2
- package/dist/tag.d.ts +2 -2
- package/dist/tag.js.map +1 -1
- package/dist/testimonial.cjs +32 -0
- package/dist/testimonial.cjs.map +1 -1
- package/dist/testimonial.d.cts +15 -2
- package/dist/testimonial.d.ts +15 -2
- package/dist/testimonial.js +32 -0
- package/dist/testimonial.js.map +1 -1
- package/dist/text.cjs.map +1 -1
- package/dist/text.d.cts +2 -2
- package/dist/text.d.ts +2 -2
- package/dist/text.js.map +1 -1
- package/dist/textarea.cjs.map +1 -1
- package/dist/textarea.d.cts +1 -1
- package/dist/textarea.d.ts +1 -1
- package/dist/textarea.js.map +1 -1
- package/dist/toast.cjs +32 -0
- package/dist/toast.cjs.map +1 -1
- package/dist/toast.d.cts +15 -2
- package/dist/toast.d.ts +15 -2
- package/dist/toast.js +32 -0
- package/dist/toast.js.map +1 -1
- package/dist/tooltip.cjs +41 -2
- package/dist/tooltip.cjs.map +1 -1
- package/dist/tooltip.d.cts +15 -2
- package/dist/tooltip.d.ts +15 -2
- package/dist/tooltip.js +41 -2
- package/dist/tooltip.js.map +1 -1
- package/package.json +22 -18
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { S as SpectreAlertSize, a as SpectreAlertVariant, b as SpectreAvatarShape, c as SpectreAvatarSize, S as SpectreBadgeSize, d as SpectreBadgeVariant, S as SpectreButtonSize, e as SpectreButtonType, f as SpectreButtonVariant, g as
|
|
1
|
+
export { S as SpectreAlertSize, a as SpectreAlertVariant, b as SpectreAvatarShape, c as SpectreAvatarSize, S as SpectreBadgeSize, d as SpectreBadgeVariant, S as SpectreButtonSize, e as SpectreButtonType, f as SpectreButtonVariant, g as SpectreCardAccentColor, h as SpectreCardAccentEdge, i as SpectreCardVariant, j as SpectreContainerMaxWidth, k as SpectreDropdownPlacement, l as SpectreGridAlign, m as SpectreGridColumns, n as SpectreGridGap, S as SpectreIconBoxSize, o as SpectreIconBoxVariant, S as SpectreInputSize, p as SpectreInputType, S as SpectreRatingSize, S as SpectreSpinnerSize, q as SpectreSpinnerVariant, r as SpectreStackAlign, s as SpectreStackBasis, t as SpectreStackDirection, u as SpectreStackGap, S as SpectreTagSize, v as SpectreTagVariant, w as SpectreTestimonialVariant, x as SpectreTextFamily, y as SpectreTextLevel, z as SpectreTextSize, A as SpectreTextVariant, B as SpectreToastVariant, C as SpectreTooltipPlacement, D as spectreAlertSizes, E as spectreAlertVariants, F as spectreAvatarShapes, G as spectreAvatarSizes, D as spectreBadgeSizes, H as spectreBadgeVariants, D as spectreButtonSizes, I as spectreButtonTypes, J as spectreButtonVariants, K as spectreCardAccentColors, L as spectreCardAccentEdges, M as spectreCardVariants, N as spectreContainerMaxWidths, O as spectreDropdownPlacements, P as spectreGridAligns, Q as spectreGridColumns, R as spectreGridGaps, D as spectreIconBoxSizes, T as spectreIconBoxVariants, D as spectreInputSizes, U as spectreInputTypes, D as spectreRatingSizes, D as spectreSpinnerSizes, V as spectreSpinnerVariants, W as spectreStackAligns, X as spectreStackBases, Y as spectreStackDirections, Z as spectreStackGaps, D as spectreTagSizes, _ as spectreTagVariants, $ as spectreTestimonialVariants, a0 as spectreTextFamilies, a1 as spectreTextLevels, a2 as spectreTextSizes, a3 as spectreTextVariants, a4 as spectreToastVariants, a5 as spectreTooltipPlacements } from './form-DpPtizpY.cjs';
|
|
2
2
|
export { SpectreButtonElement, SpectreButtonProps, SpectreButtonTarget, defineSpectreButton } from './button.cjs';
|
|
3
3
|
export { SpectreInputElement, SpectreInputProps, defineSpectreInput } from './input.cjs';
|
|
4
4
|
export { SpectreTextareaElement, SpectreTextareaProps, defineSpectreTextarea } from './textarea.cjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { S as SpectreAlertSize, a as SpectreAlertVariant, b as SpectreAvatarShape, c as SpectreAvatarSize, S as SpectreBadgeSize, d as SpectreBadgeVariant, S as SpectreButtonSize, e as SpectreButtonType, f as SpectreButtonVariant, g as
|
|
1
|
+
export { S as SpectreAlertSize, a as SpectreAlertVariant, b as SpectreAvatarShape, c as SpectreAvatarSize, S as SpectreBadgeSize, d as SpectreBadgeVariant, S as SpectreButtonSize, e as SpectreButtonType, f as SpectreButtonVariant, g as SpectreCardAccentColor, h as SpectreCardAccentEdge, i as SpectreCardVariant, j as SpectreContainerMaxWidth, k as SpectreDropdownPlacement, l as SpectreGridAlign, m as SpectreGridColumns, n as SpectreGridGap, S as SpectreIconBoxSize, o as SpectreIconBoxVariant, S as SpectreInputSize, p as SpectreInputType, S as SpectreRatingSize, S as SpectreSpinnerSize, q as SpectreSpinnerVariant, r as SpectreStackAlign, s as SpectreStackBasis, t as SpectreStackDirection, u as SpectreStackGap, S as SpectreTagSize, v as SpectreTagVariant, w as SpectreTestimonialVariant, x as SpectreTextFamily, y as SpectreTextLevel, z as SpectreTextSize, A as SpectreTextVariant, B as SpectreToastVariant, C as SpectreTooltipPlacement, D as spectreAlertSizes, E as spectreAlertVariants, F as spectreAvatarShapes, G as spectreAvatarSizes, D as spectreBadgeSizes, H as spectreBadgeVariants, D as spectreButtonSizes, I as spectreButtonTypes, J as spectreButtonVariants, K as spectreCardAccentColors, L as spectreCardAccentEdges, M as spectreCardVariants, N as spectreContainerMaxWidths, O as spectreDropdownPlacements, P as spectreGridAligns, Q as spectreGridColumns, R as spectreGridGaps, D as spectreIconBoxSizes, T as spectreIconBoxVariants, D as spectreInputSizes, U as spectreInputTypes, D as spectreRatingSizes, D as spectreSpinnerSizes, V as spectreSpinnerVariants, W as spectreStackAligns, X as spectreStackBases, Y as spectreStackDirections, Z as spectreStackGaps, D as spectreTagSizes, _ as spectreTagVariants, $ as spectreTestimonialVariants, a0 as spectreTextFamilies, a1 as spectreTextLevels, a2 as spectreTextSizes, a3 as spectreTextVariants, a4 as spectreToastVariants, a5 as spectreTooltipPlacements } from './form-DpPtizpY.js';
|
|
2
2
|
export { SpectreButtonElement, SpectreButtonProps, SpectreButtonTarget, defineSpectreButton } from './button.js';
|
|
3
3
|
export { SpectreInputElement, SpectreInputProps, defineSpectreInput } from './input.js';
|
|
4
4
|
export { SpectreTextareaElement, SpectreTextareaProps, defineSpectreTextarea } from './textarea.js';
|
package/dist/index.js
CHANGED
|
@@ -85,6 +85,22 @@ function isCardPaddingSize(value) {
|
|
|
85
85
|
value
|
|
86
86
|
);
|
|
87
87
|
}
|
|
88
|
+
var spectreAccentEdges = ["top", "right", "bottom", "left"];
|
|
89
|
+
function isAccentEdge(value) {
|
|
90
|
+
return spectreAccentEdges.includes(value);
|
|
91
|
+
}
|
|
92
|
+
var spectreAccentColors = [
|
|
93
|
+
"neutral",
|
|
94
|
+
"brand",
|
|
95
|
+
"info",
|
|
96
|
+
"success",
|
|
97
|
+
"warning",
|
|
98
|
+
"danger",
|
|
99
|
+
"cta"
|
|
100
|
+
];
|
|
101
|
+
function isAccentColor(value) {
|
|
102
|
+
return spectreAccentColors.includes(value);
|
|
103
|
+
}
|
|
88
104
|
var spectreIconBoxVariants = [
|
|
89
105
|
"primary",
|
|
90
106
|
"secondary",
|
|
@@ -1710,7 +1726,7 @@ var SpectreRadioElement = class extends SpectreProjectableElement {
|
|
|
1710
1726
|
}
|
|
1711
1727
|
updated(changedProperties) {
|
|
1712
1728
|
super.updated(changedProperties);
|
|
1713
|
-
if ((changedProperties.has("checked") || changedProperties.has("name")) && this.checked && this.name) {
|
|
1729
|
+
if ((changedProperties.has("checked") || changedProperties.has("name") || changedProperties.has("form")) && this.checked && this.name) {
|
|
1714
1730
|
this.syncGroup();
|
|
1715
1731
|
}
|
|
1716
1732
|
}
|
|
@@ -1722,8 +1738,9 @@ var SpectreRadioElement = class extends SpectreProjectableElement {
|
|
|
1722
1738
|
const radios = root.querySelectorAll(
|
|
1723
1739
|
"sp-radio"
|
|
1724
1740
|
);
|
|
1741
|
+
const form = this.nativeInput?.form;
|
|
1725
1742
|
radios.forEach((radio) => {
|
|
1726
|
-
if (radio !== this && radio.name === this.name && radio.checked) {
|
|
1743
|
+
if (radio !== this && radio.name === this.name && radio.nativeInput?.form === form && radio.checked) {
|
|
1727
1744
|
radio.checked = false;
|
|
1728
1745
|
}
|
|
1729
1746
|
});
|
|
@@ -1981,8 +1998,11 @@ function defineSpectreFieldset(tagName = "sp-fieldset") {
|
|
|
1981
1998
|
var SpectreBadgeElement = class extends SpectreProjectableElement {
|
|
1982
1999
|
constructor() {
|
|
1983
2000
|
super(...arguments);
|
|
2001
|
+
this.accentRail = void 0;
|
|
2002
|
+
this.accentRailColor = void 0;
|
|
1984
2003
|
this.disabled = false;
|
|
1985
2004
|
this.fullWidth = false;
|
|
2005
|
+
this.innerClass = void 0;
|
|
1986
2006
|
this.loading = false;
|
|
1987
2007
|
this.size = "md";
|
|
1988
2008
|
this.variant = "primary";
|
|
@@ -2010,6 +2030,12 @@ var SpectreBadgeElement = class extends SpectreProjectableElement {
|
|
|
2010
2030
|
return el.hasAttribute("data-sp-badge-native");
|
|
2011
2031
|
}
|
|
2012
2032
|
willUpdate(changedProperties) {
|
|
2033
|
+
if (changedProperties.has("accentRail") && this.accentRail != null && !isAccentEdge(this.accentRail)) {
|
|
2034
|
+
this.accentRail = void 0;
|
|
2035
|
+
}
|
|
2036
|
+
if (changedProperties.has("accentRailColor") && this.accentRailColor != null && !isAccentColor(this.accentRailColor)) {
|
|
2037
|
+
this.accentRailColor = void 0;
|
|
2038
|
+
}
|
|
2013
2039
|
if (changedProperties.has("disabled") && this.disabled == null) {
|
|
2014
2040
|
this.disabled = false;
|
|
2015
2041
|
}
|
|
@@ -2027,13 +2053,21 @@ var SpectreBadgeElement = class extends SpectreProjectableElement {
|
|
|
2027
2053
|
}
|
|
2028
2054
|
}
|
|
2029
2055
|
get badgeClasses() {
|
|
2030
|
-
|
|
2056
|
+
const recipeClasses = getBadgeClasses({
|
|
2057
|
+
...this.accentRail !== void 0 && {
|
|
2058
|
+
accentRail: this.accentRail
|
|
2059
|
+
},
|
|
2060
|
+
...this.accentRailColor !== void 0 && {
|
|
2061
|
+
accentRailColor: this.accentRailColor
|
|
2062
|
+
},
|
|
2031
2063
|
disabled: this.isDisabled,
|
|
2032
2064
|
fullWidth: this.fullWidth ?? false,
|
|
2033
2065
|
loading: this.loading ?? false,
|
|
2034
2066
|
size: this.size,
|
|
2035
2067
|
variant: this.variant
|
|
2036
2068
|
});
|
|
2069
|
+
const utilityClasses = sanitizeUtilityClasses(this.innerClass);
|
|
2070
|
+
return utilityClasses ? `${recipeClasses} ${utilityClasses}` : recipeClasses;
|
|
2037
2071
|
}
|
|
2038
2072
|
render() {
|
|
2039
2073
|
return html`<span
|
|
@@ -2052,8 +2086,15 @@ var SpectreBadgeElement = class extends SpectreProjectableElement {
|
|
|
2052
2086
|
}
|
|
2053
2087
|
};
|
|
2054
2088
|
SpectreBadgeElement.properties = {
|
|
2089
|
+
accentRail: { attribute: "accent-rail", type: String, reflect: true },
|
|
2090
|
+
accentRailColor: {
|
|
2091
|
+
attribute: "accent-rail-color",
|
|
2092
|
+
type: String,
|
|
2093
|
+
reflect: true
|
|
2094
|
+
},
|
|
2055
2095
|
disabled: { type: Boolean, reflect: true },
|
|
2056
2096
|
fullWidth: { attribute: "full-width", type: Boolean, reflect: true },
|
|
2097
|
+
innerClass: { attribute: "inner-class", type: String },
|
|
2057
2098
|
loading: { type: Boolean, reflect: true },
|
|
2058
2099
|
size: { type: String, reflect: true },
|
|
2059
2100
|
variant: { type: String, reflect: true }
|
|
@@ -2089,6 +2130,8 @@ var paddedConverter = {
|
|
|
2089
2130
|
var SpectreCardElement = class extends SpectreProjectableElement {
|
|
2090
2131
|
constructor() {
|
|
2091
2132
|
super(...arguments);
|
|
2133
|
+
this.accent = void 0;
|
|
2134
|
+
this.accentColor = void 0;
|
|
2092
2135
|
this.disabled = false;
|
|
2093
2136
|
this.fullHeight = false;
|
|
2094
2137
|
this.innerClass = void 0;
|
|
@@ -2120,6 +2163,12 @@ var SpectreCardElement = class extends SpectreProjectableElement {
|
|
|
2120
2163
|
return el.hasAttribute("data-sp-card-native");
|
|
2121
2164
|
}
|
|
2122
2165
|
willUpdate(changedProperties) {
|
|
2166
|
+
if (changedProperties.has("accent") && this.accent != null && !isAccentEdge(this.accent)) {
|
|
2167
|
+
this.accent = void 0;
|
|
2168
|
+
}
|
|
2169
|
+
if (changedProperties.has("accentColor") && this.accentColor != null && !isAccentColor(this.accentColor)) {
|
|
2170
|
+
this.accentColor = void 0;
|
|
2171
|
+
}
|
|
2123
2172
|
if (changedProperties.has("disabled") && this.disabled == null) {
|
|
2124
2173
|
this.disabled = false;
|
|
2125
2174
|
}
|
|
@@ -2141,6 +2190,12 @@ var SpectreCardElement = class extends SpectreProjectableElement {
|
|
|
2141
2190
|
}
|
|
2142
2191
|
get cardClasses() {
|
|
2143
2192
|
const recipeClasses = getCardClasses({
|
|
2193
|
+
...this.accent !== void 0 && {
|
|
2194
|
+
accent: this.accent
|
|
2195
|
+
},
|
|
2196
|
+
...this.accentColor !== void 0 && {
|
|
2197
|
+
accentColor: this.accentColor
|
|
2198
|
+
},
|
|
2144
2199
|
disabled: this.isDisabled,
|
|
2145
2200
|
fullHeight: this.fullHeight ?? false,
|
|
2146
2201
|
interactive: this.interactive ?? false,
|
|
@@ -2168,6 +2223,8 @@ var SpectreCardElement = class extends SpectreProjectableElement {
|
|
|
2168
2223
|
}
|
|
2169
2224
|
};
|
|
2170
2225
|
SpectreCardElement.properties = {
|
|
2226
|
+
accent: { type: String, reflect: true },
|
|
2227
|
+
accentColor: { attribute: "accent-color", type: String, reflect: true },
|
|
2171
2228
|
disabled: { type: Boolean, reflect: true },
|
|
2172
2229
|
fullHeight: { attribute: "full-height", type: Boolean, reflect: true },
|
|
2173
2230
|
innerClass: { attribute: "inner-class", type: String },
|
|
@@ -2393,6 +2450,8 @@ function defineSpectreRating(tagName = "sp-rating") {
|
|
|
2393
2450
|
var SpectreTestimonialElement = class extends SpectreProjectableElement {
|
|
2394
2451
|
constructor() {
|
|
2395
2452
|
super(...arguments);
|
|
2453
|
+
this.accent = void 0;
|
|
2454
|
+
this.accentColor = void 0;
|
|
2396
2455
|
this.disabled = false;
|
|
2397
2456
|
this.fullHeight = false;
|
|
2398
2457
|
this.interactive = false;
|
|
@@ -2422,6 +2481,12 @@ var SpectreTestimonialElement = class extends SpectreProjectableElement {
|
|
|
2422
2481
|
return el.hasAttribute("data-sp-testimonial-native");
|
|
2423
2482
|
}
|
|
2424
2483
|
willUpdate(changedProperties) {
|
|
2484
|
+
if (changedProperties.has("accent") && this.accent != null && !isAccentEdge(this.accent)) {
|
|
2485
|
+
this.accent = void 0;
|
|
2486
|
+
}
|
|
2487
|
+
if (changedProperties.has("accentColor") && this.accentColor != null && !isAccentColor(this.accentColor)) {
|
|
2488
|
+
this.accentColor = void 0;
|
|
2489
|
+
}
|
|
2425
2490
|
if (changedProperties.has("disabled") && this.disabled == null) {
|
|
2426
2491
|
this.disabled = false;
|
|
2427
2492
|
}
|
|
@@ -2440,6 +2505,12 @@ var SpectreTestimonialElement = class extends SpectreProjectableElement {
|
|
|
2440
2505
|
}
|
|
2441
2506
|
get testimonialClasses() {
|
|
2442
2507
|
return getTestimonialClasses({
|
|
2508
|
+
...this.accent !== void 0 && {
|
|
2509
|
+
accent: this.accent
|
|
2510
|
+
},
|
|
2511
|
+
...this.accentColor !== void 0 && {
|
|
2512
|
+
accentColor: this.accentColor
|
|
2513
|
+
},
|
|
2443
2514
|
disabled: this.isDisabled,
|
|
2444
2515
|
fullHeight: this.fullHeight ?? false,
|
|
2445
2516
|
interactive: this.interactive ?? false,
|
|
@@ -2464,6 +2535,8 @@ var SpectreTestimonialElement = class extends SpectreProjectableElement {
|
|
|
2464
2535
|
}
|
|
2465
2536
|
};
|
|
2466
2537
|
SpectreTestimonialElement.properties = {
|
|
2538
|
+
accent: { type: String, reflect: true },
|
|
2539
|
+
accentColor: { attribute: "accent-color", type: String, reflect: true },
|
|
2467
2540
|
disabled: { type: Boolean, reflect: true },
|
|
2468
2541
|
fullHeight: { attribute: "full-height", type: Boolean, reflect: true },
|
|
2469
2542
|
interactive: { type: Boolean, reflect: true },
|
|
@@ -2853,6 +2926,8 @@ function defineSpectreTag(tagName = "sp-tag") {
|
|
|
2853
2926
|
var SpectrePricingCardElement = class extends SpectreProjectableElement {
|
|
2854
2927
|
constructor() {
|
|
2855
2928
|
super(...arguments);
|
|
2929
|
+
this.accent = void 0;
|
|
2930
|
+
this.accentColor = void 0;
|
|
2856
2931
|
this.disabled = false;
|
|
2857
2932
|
this.featured = false;
|
|
2858
2933
|
this.fullHeight = false;
|
|
@@ -2882,6 +2957,12 @@ var SpectrePricingCardElement = class extends SpectreProjectableElement {
|
|
|
2882
2957
|
return el.hasAttribute("data-sp-pricing-card-native");
|
|
2883
2958
|
}
|
|
2884
2959
|
willUpdate(changedProperties) {
|
|
2960
|
+
if (changedProperties.has("accent") && this.accent != null && !isAccentEdge(this.accent)) {
|
|
2961
|
+
this.accent = void 0;
|
|
2962
|
+
}
|
|
2963
|
+
if (changedProperties.has("accentColor") && this.accentColor != null && !isAccentColor(this.accentColor)) {
|
|
2964
|
+
this.accentColor = void 0;
|
|
2965
|
+
}
|
|
2885
2966
|
if (changedProperties.has("disabled") && this.disabled == null) {
|
|
2886
2967
|
this.disabled = false;
|
|
2887
2968
|
}
|
|
@@ -2900,6 +2981,12 @@ var SpectrePricingCardElement = class extends SpectreProjectableElement {
|
|
|
2900
2981
|
}
|
|
2901
2982
|
get pricingCardClasses() {
|
|
2902
2983
|
return getPricingCardClasses({
|
|
2984
|
+
...this.accent !== void 0 && {
|
|
2985
|
+
accent: this.accent
|
|
2986
|
+
},
|
|
2987
|
+
...this.accentColor !== void 0 && {
|
|
2988
|
+
accentColor: this.accentColor
|
|
2989
|
+
},
|
|
2903
2990
|
disabled: this.isDisabled,
|
|
2904
2991
|
featured: this.featured ?? false,
|
|
2905
2992
|
fullHeight: this.fullHeight ?? false,
|
|
@@ -2924,6 +3011,8 @@ var SpectrePricingCardElement = class extends SpectreProjectableElement {
|
|
|
2924
3011
|
}
|
|
2925
3012
|
};
|
|
2926
3013
|
SpectrePricingCardElement.properties = {
|
|
3014
|
+
accent: { type: String, reflect: true },
|
|
3015
|
+
accentColor: { attribute: "accent-color", type: String, reflect: true },
|
|
2927
3016
|
disabled: { type: Boolean, reflect: true },
|
|
2928
3017
|
featured: { type: Boolean, reflect: true },
|
|
2929
3018
|
fullHeight: { attribute: "full-height", type: Boolean, reflect: true },
|
|
@@ -3369,11 +3458,14 @@ function defineSpectreStack(tagName = "sp-stack") {
|
|
|
3369
3458
|
var SpectreDropdownElement = class extends SpectreBaseElement {
|
|
3370
3459
|
constructor() {
|
|
3371
3460
|
super(...arguments);
|
|
3461
|
+
this.accent = void 0;
|
|
3462
|
+
this.accentColor = void 0;
|
|
3372
3463
|
this.fullWidth = false;
|
|
3373
3464
|
this.mega = false;
|
|
3374
3465
|
this.open = false;
|
|
3375
3466
|
this.placement = "bottom-start";
|
|
3376
3467
|
this.triggerLabel = "Toggle menu";
|
|
3468
|
+
this.viewport = false;
|
|
3377
3469
|
this.triggerContent = [];
|
|
3378
3470
|
this.menuContent = [];
|
|
3379
3471
|
this.handleDocumentClick = (event) => {
|
|
@@ -3408,13 +3500,20 @@ var SpectreDropdownElement = class extends SpectreBaseElement {
|
|
|
3408
3500
|
return false;
|
|
3409
3501
|
}
|
|
3410
3502
|
const el = node;
|
|
3411
|
-
return el.hasAttribute("data-sp-dropdown-menu") || el.hasAttribute("data-sp-dropdown-trigger");
|
|
3503
|
+
return el.hasAttribute("data-sp-dropdown-native") || el.hasAttribute("data-sp-dropdown-menu") || el.hasAttribute("data-sp-dropdown-trigger");
|
|
3412
3504
|
}
|
|
3413
3505
|
syncProjectedContent() {
|
|
3414
3506
|
const nextTriggerContent = [];
|
|
3415
3507
|
const nextMenuContent = [];
|
|
3416
|
-
|
|
3417
|
-
|
|
3508
|
+
const sourceNodes = [
|
|
3509
|
+
...this.triggerContent.filter((node) => this.contains(node)),
|
|
3510
|
+
...this.menuContent.filter((node) => this.contains(node)),
|
|
3511
|
+
...Array.from(this.childNodes).filter(
|
|
3512
|
+
(node) => !this.hasUpdated || node.nodeType !== Node.TEXT_NODE || node.textContent?.trim()
|
|
3513
|
+
)
|
|
3514
|
+
];
|
|
3515
|
+
new Set(sourceNodes).forEach((node) => {
|
|
3516
|
+
if (node.nodeType === Node.COMMENT_NODE || this.isInternalNode(node)) {
|
|
3418
3517
|
return;
|
|
3419
3518
|
}
|
|
3420
3519
|
const isTriggerSlot = node.nodeType === Node.ELEMENT_NODE && node.getAttribute("slot") === "trigger";
|
|
@@ -3471,6 +3570,12 @@ var SpectreDropdownElement = class extends SpectreBaseElement {
|
|
|
3471
3570
|
this.contentObserver = void 0;
|
|
3472
3571
|
}
|
|
3473
3572
|
willUpdate(changedProperties) {
|
|
3573
|
+
if (changedProperties.has("accent") && this.accent != null && !isAccentEdge(this.accent)) {
|
|
3574
|
+
this.accent = void 0;
|
|
3575
|
+
}
|
|
3576
|
+
if (changedProperties.has("accentColor") && this.accentColor != null && !isAccentColor(this.accentColor)) {
|
|
3577
|
+
this.accentColor = void 0;
|
|
3578
|
+
}
|
|
3474
3579
|
if (changedProperties.has("fullWidth") && this.fullWidth == null) {
|
|
3475
3580
|
this.fullWidth = false;
|
|
3476
3581
|
}
|
|
@@ -3486,6 +3591,9 @@ var SpectreDropdownElement = class extends SpectreBaseElement {
|
|
|
3486
3591
|
if (changedProperties.has("triggerLabel") && !this.triggerLabel) {
|
|
3487
3592
|
this.triggerLabel = "Toggle menu";
|
|
3488
3593
|
}
|
|
3594
|
+
if (changedProperties.has("viewport") && this.viewport == null) {
|
|
3595
|
+
this.viewport = false;
|
|
3596
|
+
}
|
|
3489
3597
|
}
|
|
3490
3598
|
get triggerElement() {
|
|
3491
3599
|
return this.querySelector("[data-sp-dropdown-trigger]");
|
|
@@ -3514,19 +3622,28 @@ var SpectreDropdownElement = class extends SpectreBaseElement {
|
|
|
3514
3622
|
get dropdownClasses() {
|
|
3515
3623
|
return getDropdownClasses({
|
|
3516
3624
|
fullWidth: this.fullWidth ?? false,
|
|
3517
|
-
mega: this.mega ?? false
|
|
3625
|
+
mega: this.mega ?? false,
|
|
3626
|
+
viewport: this.viewport ?? false
|
|
3518
3627
|
});
|
|
3519
3628
|
}
|
|
3520
3629
|
get menuClasses() {
|
|
3521
3630
|
return getDropdownMenuClasses({
|
|
3631
|
+
...this.accent !== void 0 && {
|
|
3632
|
+
accent: this.accent
|
|
3633
|
+
},
|
|
3634
|
+
...this.accentColor !== void 0 && {
|
|
3635
|
+
accentColor: this.accentColor
|
|
3636
|
+
},
|
|
3522
3637
|
mega: this.mega ?? false,
|
|
3523
3638
|
open: this.open ?? false,
|
|
3524
|
-
placement: this.placement
|
|
3639
|
+
placement: this.placement,
|
|
3640
|
+
viewport: this.viewport ?? false
|
|
3525
3641
|
});
|
|
3526
3642
|
}
|
|
3527
3643
|
render() {
|
|
3528
3644
|
return html`<div
|
|
3529
3645
|
class="${this.dropdownClasses}"
|
|
3646
|
+
data-sp-dropdown-native
|
|
3530
3647
|
id="${ifDefined(this.id || void 0)}"
|
|
3531
3648
|
title="${ifDefined(this.title || void 0)}"
|
|
3532
3649
|
>
|
|
@@ -3548,11 +3665,14 @@ var SpectreDropdownElement = class extends SpectreBaseElement {
|
|
|
3548
3665
|
}
|
|
3549
3666
|
};
|
|
3550
3667
|
SpectreDropdownElement.properties = {
|
|
3668
|
+
accent: { type: String, reflect: true },
|
|
3669
|
+
accentColor: { attribute: "accent-color", type: String, reflect: true },
|
|
3551
3670
|
fullWidth: { attribute: "full-width", type: Boolean, reflect: true },
|
|
3552
3671
|
mega: { type: Boolean, reflect: true },
|
|
3553
3672
|
open: { type: Boolean, reflect: true },
|
|
3554
3673
|
placement: { type: String, reflect: true },
|
|
3555
|
-
triggerLabel: { attribute: "trigger-label", type: String }
|
|
3674
|
+
triggerLabel: { attribute: "trigger-label", type: String },
|
|
3675
|
+
viewport: { type: Boolean, reflect: true }
|
|
3556
3676
|
};
|
|
3557
3677
|
function defineSpectreDropdown(tagName = "sp-dropdown") {
|
|
3558
3678
|
const existingElement = customElements.get(tagName);
|
|
@@ -3565,6 +3685,8 @@ function defineSpectreDropdown(tagName = "sp-dropdown") {
|
|
|
3565
3685
|
var SpectreFooterElement = class extends SpectreProjectableElement {
|
|
3566
3686
|
constructor() {
|
|
3567
3687
|
super(...arguments);
|
|
3688
|
+
this.accent = void 0;
|
|
3689
|
+
this.accentColor = void 0;
|
|
3568
3690
|
this.bordered = false;
|
|
3569
3691
|
this.fullWidth = false;
|
|
3570
3692
|
this.innerClass = void 0;
|
|
@@ -3597,6 +3719,12 @@ var SpectreFooterElement = class extends SpectreProjectableElement {
|
|
|
3597
3719
|
return el.hasAttribute("data-sp-footer-native");
|
|
3598
3720
|
}
|
|
3599
3721
|
willUpdate(changedProperties) {
|
|
3722
|
+
if (changedProperties.has("accent") && this.accent != null && !isAccentEdge(this.accent)) {
|
|
3723
|
+
this.accent = void 0;
|
|
3724
|
+
}
|
|
3725
|
+
if (changedProperties.has("accentColor") && this.accentColor != null && !isAccentColor(this.accentColor)) {
|
|
3726
|
+
this.accentColor = void 0;
|
|
3727
|
+
}
|
|
3600
3728
|
if (changedProperties.has("bordered") && this.bordered == null) {
|
|
3601
3729
|
this.bordered = false;
|
|
3602
3730
|
}
|
|
@@ -3606,6 +3734,12 @@ var SpectreFooterElement = class extends SpectreProjectableElement {
|
|
|
3606
3734
|
}
|
|
3607
3735
|
get footerClasses() {
|
|
3608
3736
|
const recipeClasses = getFooterClasses({
|
|
3737
|
+
...this.accent !== void 0 && {
|
|
3738
|
+
accent: this.accent
|
|
3739
|
+
},
|
|
3740
|
+
...this.accentColor !== void 0 && {
|
|
3741
|
+
accentColor: this.accentColor
|
|
3742
|
+
},
|
|
3609
3743
|
bordered: this.bordered ?? false,
|
|
3610
3744
|
fullWidth: this.fullWidth ?? false
|
|
3611
3745
|
});
|
|
@@ -3625,6 +3759,8 @@ var SpectreFooterElement = class extends SpectreProjectableElement {
|
|
|
3625
3759
|
}
|
|
3626
3760
|
};
|
|
3627
3761
|
SpectreFooterElement.properties = {
|
|
3762
|
+
accent: { type: String, reflect: true },
|
|
3763
|
+
accentColor: { attribute: "accent-color", type: String, reflect: true },
|
|
3628
3764
|
bordered: { type: Boolean, reflect: true },
|
|
3629
3765
|
fullWidth: { attribute: "full-width", type: Boolean, reflect: true },
|
|
3630
3766
|
innerClass: { attribute: "inner-class", type: String }
|
|
@@ -3779,6 +3915,8 @@ var FOCUSABLE_SELECTOR = [
|
|
|
3779
3915
|
var SpectreModalElement = class extends SpectreProjectableElement {
|
|
3780
3916
|
constructor() {
|
|
3781
3917
|
super(...arguments);
|
|
3918
|
+
this.accent = void 0;
|
|
3919
|
+
this.accentColor = void 0;
|
|
3782
3920
|
this.fullWidth = false;
|
|
3783
3921
|
this.open = false;
|
|
3784
3922
|
this.previouslyFocusedElement = null;
|
|
@@ -3818,6 +3956,12 @@ var SpectreModalElement = class extends SpectreProjectableElement {
|
|
|
3818
3956
|
return el.hasAttribute("data-sp-modal-native") || el.hasAttribute("data-sp-modal-overlay");
|
|
3819
3957
|
}
|
|
3820
3958
|
willUpdate(changedProperties) {
|
|
3959
|
+
if (changedProperties.has("accent") && this.accent != null && !isAccentEdge(this.accent)) {
|
|
3960
|
+
this.accent = void 0;
|
|
3961
|
+
}
|
|
3962
|
+
if (changedProperties.has("accentColor") && this.accentColor != null && !isAccentColor(this.accentColor)) {
|
|
3963
|
+
this.accentColor = void 0;
|
|
3964
|
+
}
|
|
3821
3965
|
if (changedProperties.has("fullWidth") && this.fullWidth == null) {
|
|
3822
3966
|
this.fullWidth = false;
|
|
3823
3967
|
}
|
|
@@ -3889,6 +4033,12 @@ var SpectreModalElement = class extends SpectreProjectableElement {
|
|
|
3889
4033
|
}
|
|
3890
4034
|
get modalClasses() {
|
|
3891
4035
|
return getModalClasses({
|
|
4036
|
+
...this.accent !== void 0 && {
|
|
4037
|
+
accent: this.accent
|
|
4038
|
+
},
|
|
4039
|
+
...this.accentColor !== void 0 && {
|
|
4040
|
+
accentColor: this.accentColor
|
|
4041
|
+
},
|
|
3892
4042
|
open: this.open ?? false,
|
|
3893
4043
|
fullWidth: this.fullWidth ?? false
|
|
3894
4044
|
});
|
|
@@ -3924,6 +4074,8 @@ var SpectreModalElement = class extends SpectreProjectableElement {
|
|
|
3924
4074
|
}
|
|
3925
4075
|
};
|
|
3926
4076
|
SpectreModalElement.properties = {
|
|
4077
|
+
accent: { type: String, reflect: true },
|
|
4078
|
+
accentColor: { attribute: "accent-color", type: String, reflect: true },
|
|
3927
4079
|
fullWidth: { attribute: "full-width", type: Boolean, reflect: true },
|
|
3928
4080
|
open: { type: Boolean, reflect: true }
|
|
3929
4081
|
};
|
|
@@ -3938,6 +4090,8 @@ function defineSpectreModal(tagName = "sp-modal") {
|
|
|
3938
4090
|
var SpectreNavElement = class extends SpectreProjectableElement {
|
|
3939
4091
|
constructor() {
|
|
3940
4092
|
super(...arguments);
|
|
4093
|
+
this.accent = void 0;
|
|
4094
|
+
this.accentColor = void 0;
|
|
3941
4095
|
this.align = void 0;
|
|
3942
4096
|
this.bordered = false;
|
|
3943
4097
|
this.fullWidth = false;
|
|
@@ -3972,6 +4126,12 @@ var SpectreNavElement = class extends SpectreProjectableElement {
|
|
|
3972
4126
|
return el.hasAttribute("data-sp-nav-native");
|
|
3973
4127
|
}
|
|
3974
4128
|
willUpdate(changedProperties) {
|
|
4129
|
+
if (changedProperties.has("accent") && this.accent != null && !isAccentEdge(this.accent)) {
|
|
4130
|
+
this.accent = void 0;
|
|
4131
|
+
}
|
|
4132
|
+
if (changedProperties.has("accentColor") && this.accentColor != null && !isAccentColor(this.accentColor)) {
|
|
4133
|
+
this.accentColor = void 0;
|
|
4134
|
+
}
|
|
3975
4135
|
if (changedProperties.has("bordered") && this.bordered == null) {
|
|
3976
4136
|
this.bordered = false;
|
|
3977
4137
|
}
|
|
@@ -3987,6 +4147,12 @@ var SpectreNavElement = class extends SpectreProjectableElement {
|
|
|
3987
4147
|
}
|
|
3988
4148
|
get navClasses() {
|
|
3989
4149
|
const recipeClasses = getNavClasses({
|
|
4150
|
+
...this.accent !== void 0 && {
|
|
4151
|
+
accent: this.accent
|
|
4152
|
+
},
|
|
4153
|
+
...this.accentColor !== void 0 && {
|
|
4154
|
+
accentColor: this.accentColor
|
|
4155
|
+
},
|
|
3990
4156
|
bordered: this.bordered ?? false,
|
|
3991
4157
|
fullWidth: this.fullWidth ?? false,
|
|
3992
4158
|
sticky: this.sticky ?? false,
|
|
@@ -4008,6 +4174,8 @@ var SpectreNavElement = class extends SpectreProjectableElement {
|
|
|
4008
4174
|
}
|
|
4009
4175
|
};
|
|
4010
4176
|
SpectreNavElement.properties = {
|
|
4177
|
+
accent: { type: String, reflect: true },
|
|
4178
|
+
accentColor: { attribute: "accent-color", type: String, reflect: true },
|
|
4011
4179
|
align: { type: String, reflect: true },
|
|
4012
4180
|
bordered: { type: Boolean, reflect: true },
|
|
4013
4181
|
fullWidth: { attribute: "full-width", type: Boolean, reflect: true },
|
|
@@ -4558,6 +4726,8 @@ function defineSpectreSidebarToggle(tagName = "sp-sidebar-toggle") {
|
|
|
4558
4726
|
var SpectreToastElement = class extends SpectreBaseElement {
|
|
4559
4727
|
constructor() {
|
|
4560
4728
|
super(...arguments);
|
|
4729
|
+
this.accent = void 0;
|
|
4730
|
+
this.accentColor = void 0;
|
|
4561
4731
|
this.dismissed = false;
|
|
4562
4732
|
this.fullWidth = false;
|
|
4563
4733
|
this.variant = "info";
|
|
@@ -4641,6 +4811,12 @@ var SpectreToastElement = class extends SpectreBaseElement {
|
|
|
4641
4811
|
this.contentObserver = void 0;
|
|
4642
4812
|
}
|
|
4643
4813
|
willUpdate(changedProperties) {
|
|
4814
|
+
if (changedProperties.has("accent") && this.accent != null && !isAccentEdge(this.accent)) {
|
|
4815
|
+
this.accent = void 0;
|
|
4816
|
+
}
|
|
4817
|
+
if (changedProperties.has("accentColor") && this.accentColor != null && !isAccentColor(this.accentColor)) {
|
|
4818
|
+
this.accentColor = void 0;
|
|
4819
|
+
}
|
|
4644
4820
|
if (changedProperties.has("dismissed") && this.dismissed == null) {
|
|
4645
4821
|
this.dismissed = false;
|
|
4646
4822
|
}
|
|
@@ -4687,6 +4863,12 @@ var SpectreToastElement = class extends SpectreBaseElement {
|
|
|
4687
4863
|
}
|
|
4688
4864
|
get toastClasses() {
|
|
4689
4865
|
return getToastClasses({
|
|
4866
|
+
...this.accent !== void 0 && {
|
|
4867
|
+
accent: this.accent
|
|
4868
|
+
},
|
|
4869
|
+
...this.accentColor !== void 0 && {
|
|
4870
|
+
accentColor: this.accentColor
|
|
4871
|
+
},
|
|
4690
4872
|
variant: this.variant,
|
|
4691
4873
|
dismissed: this.dismissed ?? false,
|
|
4692
4874
|
fullWidth: this.fullWidth ?? false
|
|
@@ -4714,6 +4896,8 @@ var SpectreToastElement = class extends SpectreBaseElement {
|
|
|
4714
4896
|
}
|
|
4715
4897
|
};
|
|
4716
4898
|
SpectreToastElement.properties = {
|
|
4899
|
+
accent: { type: String, reflect: true },
|
|
4900
|
+
accentColor: { attribute: "accent-color", type: String, reflect: true },
|
|
4717
4901
|
autoDismiss: { attribute: "auto-dismiss", type: Number },
|
|
4718
4902
|
dismissed: { type: Boolean, reflect: true },
|
|
4719
4903
|
fullWidth: { attribute: "full-width", type: Boolean, reflect: true },
|
|
@@ -4730,6 +4914,8 @@ function defineSpectreToast(tagName = "sp-toast") {
|
|
|
4730
4914
|
var SpectreTooltipElement = class extends SpectreBaseElement {
|
|
4731
4915
|
constructor() {
|
|
4732
4916
|
super(...arguments);
|
|
4917
|
+
this.accent = void 0;
|
|
4918
|
+
this.accentColor = void 0;
|
|
4733
4919
|
this.placement = "top";
|
|
4734
4920
|
this.visible = false;
|
|
4735
4921
|
this.triggerContent = [];
|
|
@@ -4757,8 +4943,15 @@ var SpectreTooltipElement = class extends SpectreBaseElement {
|
|
|
4757
4943
|
syncProjectedContent() {
|
|
4758
4944
|
const nextTooltipContent = [];
|
|
4759
4945
|
const nextTriggerContent = [];
|
|
4760
|
-
|
|
4761
|
-
|
|
4946
|
+
const sourceNodes = [
|
|
4947
|
+
...this.triggerContent.filter((node) => this.contains(node)),
|
|
4948
|
+
...this.tooltipContent.filter((node) => this.contains(node)),
|
|
4949
|
+
...Array.from(this.childNodes).filter(
|
|
4950
|
+
(node) => !this.hasUpdated || node.nodeType !== Node.TEXT_NODE || node.textContent?.trim()
|
|
4951
|
+
)
|
|
4952
|
+
];
|
|
4953
|
+
new Set(sourceNodes).forEach((node) => {
|
|
4954
|
+
if (node.nodeType === Node.COMMENT_NODE || this.isInternalNode(node)) {
|
|
4762
4955
|
return;
|
|
4763
4956
|
}
|
|
4764
4957
|
const isTooltipSlot = node.nodeType === Node.ELEMENT_NODE && node.getAttribute("slot") === "tooltip";
|
|
@@ -4811,6 +5004,12 @@ var SpectreTooltipElement = class extends SpectreBaseElement {
|
|
|
4811
5004
|
this.contentObserver = void 0;
|
|
4812
5005
|
}
|
|
4813
5006
|
willUpdate(changedProperties) {
|
|
5007
|
+
if (changedProperties.has("accent") && this.accent != null && !isAccentEdge(this.accent)) {
|
|
5008
|
+
this.accent = void 0;
|
|
5009
|
+
}
|
|
5010
|
+
if (changedProperties.has("accentColor") && this.accentColor != null && !isAccentColor(this.accentColor)) {
|
|
5011
|
+
this.accentColor = void 0;
|
|
5012
|
+
}
|
|
4814
5013
|
if (changedProperties.has("placement") && (this.placement == null || !isTooltipPlacement(this.placement))) {
|
|
4815
5014
|
this.placement = "top";
|
|
4816
5015
|
}
|
|
@@ -4834,6 +5033,12 @@ var SpectreTooltipElement = class extends SpectreBaseElement {
|
|
|
4834
5033
|
}
|
|
4835
5034
|
get tooltipClasses() {
|
|
4836
5035
|
return getTooltipClasses({
|
|
5036
|
+
...this.accent !== void 0 && {
|
|
5037
|
+
accent: this.accent
|
|
5038
|
+
},
|
|
5039
|
+
...this.accentColor !== void 0 && {
|
|
5040
|
+
accentColor: this.accentColor
|
|
5041
|
+
},
|
|
4837
5042
|
placement: this.placement,
|
|
4838
5043
|
visible: this.visible ?? false
|
|
4839
5044
|
});
|
|
@@ -4861,6 +5066,8 @@ var SpectreTooltipElement = class extends SpectreBaseElement {
|
|
|
4861
5066
|
}
|
|
4862
5067
|
};
|
|
4863
5068
|
SpectreTooltipElement.properties = {
|
|
5069
|
+
accent: { type: String, reflect: true },
|
|
5070
|
+
accentColor: { attribute: "accent-color", type: String, reflect: true },
|
|
4864
5071
|
placement: { type: String, reflect: true },
|
|
4865
5072
|
visible: { type: Boolean, reflect: true }
|
|
4866
5073
|
};
|
|
@@ -5002,6 +5209,6 @@ function defineSpectreComponents() {
|
|
|
5002
5209
|
defineSpectreText();
|
|
5003
5210
|
}
|
|
5004
5211
|
|
|
5005
|
-
export { SpectreAlertElement, SpectreAvatarElement, SpectreBadgeElement, SpectreButtonElement, SpectreCardElement, SpectreCheckboxElement, SpectreContainerElement, SpectreDropdownElement, SpectreFieldsetElement, SpectreFooterChipElement, SpectreFooterElement, SpectreFooterLinkElement, SpectreGridElement, SpectreIconBoxElement, SpectreInputElement, SpectreLabelElement, SpectreModalElement, SpectreNavElement, SpectreNavItemElement, SpectrePricingCardElement, SpectreRadioElement, SpectreRatingElement, SpectreSectionElement, SpectreSelectElement, SpectreSidebarElement, SpectreSidebarLinkElement, SpectreSidebarToggleElement, SpectreSpinnerElement, SpectreStackElement, SpectreTagElement, SpectreTestimonialElement, SpectreTextElement, SpectreTextareaElement, SpectreToastElement, SpectreTooltipElement, defineSpectreAlert, defineSpectreAvatar, defineSpectreBadge, defineSpectreButton, defineSpectreCard, defineSpectreCheckbox, defineSpectreComponents, defineSpectreContainer, defineSpectreDropdown, defineSpectreFieldset, defineSpectreFooter, defineSpectreFooterChip, defineSpectreFooterLink, defineSpectreGrid, defineSpectreIconBox, defineSpectreInput, defineSpectreLabel, defineSpectreModal, defineSpectreNav, defineSpectreNavItem, defineSpectrePricingCard, defineSpectreRadio, defineSpectreRating, defineSpectreSection, defineSpectreSelect, defineSpectreSidebar, defineSpectreSidebarLink, defineSpectreSidebarToggle, defineSpectreSpinner, defineSpectreStack, defineSpectreTag, defineSpectreTestimonial, defineSpectreText, defineSpectreTextarea, defineSpectreToast, defineSpectreTooltip, spectreInputSizes as spectreAlertSizes, spectreAlertVariants, spectreAvatarShapes, spectreAvatarSizes, spectreInputSizes as spectreBadgeSizes, spectreBadgeVariants, spectreInputSizes as spectreButtonSizes, spectreButtonTypes, spectreButtonVariants, spectreCardVariants, spectreContainerMaxWidths, spectreDropdownPlacements, spectreGridAligns, spectreGridColumns, spectreGridGaps, spectreInputSizes as spectreIconBoxSizes, spectreIconBoxVariants, spectreInputSizes, spectreInputTypes, spectreInputSizes as spectreRatingSizes, spectreInputSizes as spectreSpinnerSizes, spectreSpinnerVariants, spectreStackAligns, spectreStackBases, spectreStackDirections, spectreStackGaps, spectreInputSizes as spectreTagSizes, spectreTagVariants, spectreTestimonialVariants, spectreTextFamilies, spectreTextLevels, spectreTextSizes, spectreTextVariants, spectreToastVariants, spectreTooltipPlacements };
|
|
5212
|
+
export { SpectreAlertElement, SpectreAvatarElement, SpectreBadgeElement, SpectreButtonElement, SpectreCardElement, SpectreCheckboxElement, SpectreContainerElement, SpectreDropdownElement, SpectreFieldsetElement, SpectreFooterChipElement, SpectreFooterElement, SpectreFooterLinkElement, SpectreGridElement, SpectreIconBoxElement, SpectreInputElement, SpectreLabelElement, SpectreModalElement, SpectreNavElement, SpectreNavItemElement, SpectrePricingCardElement, SpectreRadioElement, SpectreRatingElement, SpectreSectionElement, SpectreSelectElement, SpectreSidebarElement, SpectreSidebarLinkElement, SpectreSidebarToggleElement, SpectreSpinnerElement, SpectreStackElement, SpectreTagElement, SpectreTestimonialElement, SpectreTextElement, SpectreTextareaElement, SpectreToastElement, SpectreTooltipElement, defineSpectreAlert, defineSpectreAvatar, defineSpectreBadge, defineSpectreButton, defineSpectreCard, defineSpectreCheckbox, defineSpectreComponents, defineSpectreContainer, defineSpectreDropdown, defineSpectreFieldset, defineSpectreFooter, defineSpectreFooterChip, defineSpectreFooterLink, defineSpectreGrid, defineSpectreIconBox, defineSpectreInput, defineSpectreLabel, defineSpectreModal, defineSpectreNav, defineSpectreNavItem, defineSpectrePricingCard, defineSpectreRadio, defineSpectreRating, defineSpectreSection, defineSpectreSelect, defineSpectreSidebar, defineSpectreSidebarLink, defineSpectreSidebarToggle, defineSpectreSpinner, defineSpectreStack, defineSpectreTag, defineSpectreTestimonial, defineSpectreText, defineSpectreTextarea, defineSpectreToast, defineSpectreTooltip, spectreInputSizes as spectreAlertSizes, spectreAlertVariants, spectreAvatarShapes, spectreAvatarSizes, spectreInputSizes as spectreBadgeSizes, spectreBadgeVariants, spectreInputSizes as spectreButtonSizes, spectreButtonTypes, spectreButtonVariants, spectreAccentColors as spectreCardAccentColors, spectreAccentEdges as spectreCardAccentEdges, spectreCardVariants, spectreContainerMaxWidths, spectreDropdownPlacements, spectreGridAligns, spectreGridColumns, spectreGridGaps, spectreInputSizes as spectreIconBoxSizes, spectreIconBoxVariants, spectreInputSizes, spectreInputTypes, spectreInputSizes as spectreRatingSizes, spectreInputSizes as spectreSpinnerSizes, spectreSpinnerVariants, spectreStackAligns, spectreStackBases, spectreStackDirections, spectreStackGaps, spectreInputSizes as spectreTagSizes, spectreTagVariants, spectreTestimonialVariants, spectreTextFamilies, spectreTextLevels, spectreTextSizes, spectreTextVariants, spectreToastVariants, spectreTooltipPlacements };
|
|
5006
5213
|
//# sourceMappingURL=index.js.map
|
|
5007
5214
|
//# sourceMappingURL=index.js.map
|