@spectrum-web-components/overlay
Advanced tools
Comparing version 0.14.1 to 0.14.2-express.9
@@ -129,3 +129,3 @@ { | ||
"type": { | ||
"text": "{\n color?: Color;\n scale?: Scale;\n lang?: string;\n }" | ||
"text": "{\n color?: Color;\n scale?: Scale;\n lang?: string;\n theme?: Flavor;\n }" | ||
}, | ||
@@ -132,0 +132,0 @@ "privacy": "public", |
{ | ||
"name": "@spectrum-web-components/overlay", | ||
"version": "0.14.1", | ||
"version": "0.14.2-express.9+abfee7409", | ||
"publishConfig": { | ||
@@ -52,6 +52,6 @@ "access": "public" | ||
"@floating-ui/dom": "^0.2.0", | ||
"@spectrum-web-components/action-button": "^0.7.4", | ||
"@spectrum-web-components/action-button": "^0.7.5-express.9+abfee7409", | ||
"@spectrum-web-components/base": "^0.5.2", | ||
"@spectrum-web-components/shared": "^0.13.4", | ||
"@spectrum-web-components/theme": "^0.9.4", | ||
"@spectrum-web-components/theme": "^0.9.5-express.9+abfee7409", | ||
"tslib": "^2.0.0" | ||
@@ -67,3 +67,3 @@ }, | ||
], | ||
"gitHead": "bb5308b9be01cc7c5bbab289312042256bdcc740" | ||
"gitHead": "abfee740957976448a3e4cf90df17d6165f857d6" | ||
} |
import { CSSResultArray, PropertyValues, SpectrumElement, TemplateResult } from '@spectrum-web-components/base'; | ||
import { Color, Scale } from '@spectrum-web-components/theme'; | ||
import { Color, Flavor, Scale } from '@spectrum-web-components/theme'; | ||
import { OverlayOpenDetail, Placement, TriggerInteractions } from './overlay-types.js'; | ||
@@ -35,2 +35,3 @@ import type { VirtualTrigger } from './VirtualTrigger.js'; | ||
lang?: string; | ||
theme?: Flavor; | ||
}; | ||
@@ -37,0 +38,0 @@ receivesFocus?: 'auto'; |
@@ -368,5 +368,6 @@ /* | ||
renderTheme(content) { | ||
const { color, scale, lang } = this.theme; | ||
const { color, scale, lang, theme } = this.theme; | ||
return html ` | ||
<sp-theme | ||
theme=${ifDefined(theme)} | ||
color=${ifDefined(color)} | ||
@@ -373,0 +374,0 @@ scale=${ifDefined(scale)} |
@@ -77,2 +77,3 @@ /* | ||
lang: undefined, | ||
theme: undefined, | ||
}; | ||
@@ -79,0 +80,0 @@ const queryThemeEvent = new CustomEvent('sp-query-theme', { |
@@ -232,3 +232,3 @@ import { __decorate } from "tslib"; | ||
slot="trigger" | ||
variant="cta" | ||
variant="accent" | ||
@keydown=${this.captureEnter} | ||
@@ -235,0 +235,0 @@ > |
@@ -607,3 +607,3 @@ /* | ||
<overlay-trigger type="modal" placement="none"> | ||
<sp-button slot="trigger" variant="cta">Toggle Dialog</sp-button> | ||
<sp-button slot="trigger" variant="accent">Toggle Dialog</sp-button> | ||
<sp-popover dialog slot="click-content"> | ||
@@ -610,0 +610,0 @@ <overlay-trigger> |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
739627
73
7852
10
1
+ Added@spectrum-web-components/action-button@0.7.5-express.9(transitive)
+ Added@spectrum-web-components/button@0.16.5-express.9(transitive)
+ Added@spectrum-web-components/clear-button@0.0.2-express.2380(transitive)
+ Added@spectrum-web-components/close-button@0.0.2-express.2380(transitive)
+ Added@spectrum-web-components/styles@0.11.5-express.9(transitive)
+ Added@spectrum-web-components/theme@0.9.5-express.9(transitive)
- Removed@spectrum-web-components/action-button@0.7.4(transitive)
- Removed@spectrum-web-components/button@0.16.4(transitive)
- Removed@spectrum-web-components/styles@0.11.4(transitive)
- Removed@spectrum-web-components/theme@0.9.4(transitive)
Updated@spectrum-web-components/action-button@^0.7.5-express.9+abfee7409
Updated@spectrum-web-components/theme@^0.9.5-express.9+abfee7409