@outbook/webcomponents-clip-flag 1.0.1 → 1.0.3
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 +4 -4
- package/_style/clip-flag.style.js +1 -1
- package/package.json +8 -8
package/README.md
CHANGED
|
@@ -13,14 +13,14 @@ npm install @outbook/webcomponents-clip-flag
|
|
|
13
13
|
### As a Lit Element
|
|
14
14
|
|
|
15
15
|
```javascript
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
16
|
+
import {html} from 'lit';
|
|
17
|
+
import {ClipFlag} from '@outbook/webcomponents-clip-flag';
|
|
18
18
|
|
|
19
19
|
function render() {
|
|
20
20
|
return html`
|
|
21
21
|
${ClipFlag({
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
code: 'es'
|
|
23
|
+
})}
|
|
24
24
|
`;
|
|
25
25
|
}
|
|
26
26
|
```
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
import { css } from 'lit';
|
|
3
3
|
|
|
4
|
-
export default css`:host([size=XS]){--
|
|
4
|
+
export default css`:host([size=XS]){--_width: 1.375rem}:host([size=S]){--_width: 2rem}:host([size=M]){--_width: 3.5rem}:host([size=L]){--_width: 5rem}:host([size=XL]){--_width: 8rem}:host([ratio=square]){--_ratio: 1 / 1}:host{color-scheme:inherit;display:inline-block;aspect-ratio:var(--_ratio, 4/3);width:var(--_width, 100%)}.flag,.flag__svg{display:block;width:inherit;height:100%}.flag__svg{position:relative;overflow:hidden}svg,.flag__placeholder{display:block;min-height:100%;position:absolute;height:100%;left:50%;top:50%;transform:translate(-50%, -50%)}.flag__placeholder{display:flex;align-items:center;justify-content:center;width:100%;background:light-dark(oklch(92.2% 0 0deg), oklch(37.1% 0 0deg));color:light-dark(oklch(44.4% 0.177 26.899deg), oklch(88.5% 0.062 18.334deg));font-weight:500;text-align:center}`;
|
package/package.json
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@outbook/webcomponents-clip-flag",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"main": "clip-flag.js",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"private": false,
|
|
7
7
|
"scripts": {},
|
|
8
8
|
"bugs": {
|
|
9
|
-
"url": "https://gitlab.com/arr2019/
|
|
9
|
+
"url": "https://gitlab.com/arr2019/outbook-toolkit/issues"
|
|
10
10
|
},
|
|
11
|
-
"homepage": "https://gitlab.com/arr2019/web-components/
|
|
11
|
+
"homepage": "https://gitlab.com/arr2019/outbook-toolkit/pkg/web-components/clip-flag#readme",
|
|
12
12
|
"repository": {
|
|
13
13
|
"type": "git",
|
|
14
|
-
"url": "git+https://gitlab.com/arr2019/
|
|
15
|
-
"folder": "pkg/clip-flag"
|
|
14
|
+
"url": "git+https://gitlab.com/arr2019/outbook-toolkit.git",
|
|
15
|
+
"folder": "pkg/web-components/clip-flag"
|
|
16
16
|
},
|
|
17
17
|
"publishConfig": {
|
|
18
|
-
"registry": "https://registry.npmjs.
|
|
18
|
+
"registry": "https://registry.npmjs.com/"
|
|
19
19
|
},
|
|
20
20
|
"author": "Antonio Rodríguez",
|
|
21
21
|
"license": "Apache-2.0",
|
|
22
22
|
"description": "Web components clip-flag",
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"@outbook/colorful": ">=1.1.
|
|
25
|
-
"@outbook/design-decisions": ">=1.1.
|
|
24
|
+
"@outbook/colorful": ">=1.1.4",
|
|
25
|
+
"@outbook/design-decisions": ">=1.1.7"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
28
|
"sass": "^1.97.2",
|