@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 CHANGED
@@ -13,14 +13,14 @@ npm install @outbook/webcomponents-clip-flag
13
13
  ### As a Lit Element
14
14
 
15
15
  ```javascript
16
- import { html } from 'lit';
17
- import { ClipFlag } from '@outbook/webcomponents-clip-flag';
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
- code: 'es'
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]){--clip-flag--width: 1.375rem}:host([size=S]){--clip-flag--width: 2rem}:host([size=M]){--clip-flag--width: 3.5rem}:host([size=L]){--clip-flag--width: 5rem}:host([size=XL]){--clip-flag--width: 8rem}:host([ratio=square]){--clip-flag--ratio: 1 / 1}:host{color-scheme:inherit;display:inline-block;aspect-ratio:var(--clip-flag--ratio, 4/3);width:var(--clip-flag--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}`;
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.1",
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/web-components/issues"
9
+ "url": "https://gitlab.com/arr2019/outbook-toolkit/issues"
10
10
  },
11
- "homepage": "https://gitlab.com/arr2019/web-components/pkg/clip-flag#readme",
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/web-components.git",
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.org/"
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.2",
25
- "@outbook/design-decisions": ">=1.1.2"
24
+ "@outbook/colorful": ">=1.1.4",
25
+ "@outbook/design-decisions": ">=1.1.7"
26
26
  },
27
27
  "peerDependencies": {
28
28
  "sass": "^1.97.2",