@spectrum-css/opacitycheckerboard
Advanced tools
Comparing version 1.1.6-next.1 to 1.1.6-next.2
{ | ||
"name": "@spectrum-css/opacitycheckerboard", | ||
"version": "1.1.6-next.1", | ||
"version": "1.1.6-next.2", | ||
"description": "The Spectrum CSS opacitycheckerboard component", | ||
@@ -16,13 +16,10 @@ "license": "Apache-2.0", | ||
}, | ||
"main": "dist/index-vars.css", | ||
"main": "dist/index.css", | ||
"peerDependencies": { | ||
"@spectrum-css/tokens": ">=13" | ||
"@spectrum-css/tokens": "^14.0.0-next.3" | ||
}, | ||
"devDependencies": { | ||
"@spectrum-css/component-builder-simple": "^5.0.6-next.1" | ||
}, | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"gitHead": "2216cf58a18fb79d0cb987c485f7c4c177b7925f" | ||
"gitHead": "35c5f608be3785b57e7cdfd982378fff080accc2" | ||
} |
@@ -9,9 +9,9 @@ { | ||
"compare": {}, | ||
"format": {}, | ||
"lint": {}, | ||
"validate": {}, | ||
"test": { | ||
"defaultConfiguration": "scope" | ||
} | ||
}, | ||
"validate": {} | ||
} | ||
} |
@@ -22,2 +22,12 @@ import { html } from "lit"; | ||
}, | ||
size: { | ||
name: "Size", | ||
type: { name: "string", required: true }, | ||
table: { | ||
type: { summary: "string" }, | ||
category: "Component", | ||
}, | ||
options: ["s", "m"], | ||
control: "select", | ||
}, | ||
}, | ||
@@ -33,5 +43,3 @@ args: { | ||
status: { | ||
type: process.env.MIGRATED_PACKAGES.includes("opacitycheckerboard") | ||
? "migrated" | ||
: undefined, | ||
type: "migrated", | ||
}, | ||
@@ -43,17 +51,37 @@ }, | ||
}; | ||
export const Default = Template.bind({}); | ||
Default.args = { | ||
customStyles: { | ||
"inline-size": "100%", | ||
"block-size": "100%" | ||
} | ||
}; | ||
export const CheckerboardPosition = Template.bind({}); | ||
const CheckerboardDefault = (args) => html` | ||
${window.isChromatic() ? html` | ||
${Template({ | ||
...args, | ||
customStyles: { | ||
"inline-size": "100%", | ||
"block-size": "100%" | ||
} | ||
})} | ||
<br> | ||
${Template({ | ||
...args, | ||
customStyles: { | ||
"inline-size": "100%", | ||
"block-size": "100%" | ||
}, | ||
size: "s", | ||
})} | ||
` : Template({ | ||
...args, | ||
customStyles: { | ||
"inline-size": "100%", | ||
"block-size": "100%" | ||
} | ||
})} | ||
`; | ||
export const Default = CheckerboardDefault.bind({}); | ||
Default.args = {}; | ||
export const CheckerboardPosition = CheckerboardDefault.bind({}); | ||
CheckerboardPosition.args = { | ||
backgroundPosition: 'center center', | ||
customStyles: { | ||
"inline-size": "100%", | ||
"block-size": "100%" | ||
} | ||
backgroundPosition: "center center", | ||
}; | ||
@@ -60,0 +88,0 @@ CheckerboardPosition.parameters = { |
@@ -15,2 +15,3 @@ import { html } from "lit"; | ||
content = [], | ||
size, | ||
role, | ||
@@ -22,2 +23,3 @@ }) => { | ||
[rootClass]: true, | ||
[`${rootClass}--size${size?.toUpperCase()}`]: typeof size !== "undefined", | ||
...customClasses.reduce((a, c) => ({ ...a, [c]: true }), {}), | ||
@@ -24,0 +26,0 @@ })} |
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
35591
0
16
389
0