@digital-realty/ix-switch-bar 2.1.10 → 2.1.11

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.
@@ -0,0 +1 @@
1
+ import{__decorate}from"tslib";import{css,LitElement,nothing,html}from"lit";import{property}from"lit/decorators.js";import"@digital-realty/ix-switch";const IxSwitchBarStyle=css`:host{display:flex;justify-content:space-between;align-items:center;border:1px solid #d3d3d3;border-width:1px 0}:host([hidden]){display:none}p{margin:0}p:not(:last-child){margin:0 0 .25rem}.switch-bar__label{padding:.5em 0;margin-right:.5em}.switch-bar__note{font-size:.875rem;font-weight:400;line-height:1rem;margin:0;font-style:italic;color:#595959}`;class IxSwitchBar extends LitElement{constructor(){super(...arguments),this.text="",this.note="",this.selected=!1,this.disabled=!1,this.required=!1,this.icons=!1,this.showOnlySelectedIcon=!1}static get styles(){return[IxSwitchBarStyle]}get isNoteProvided(){return this.note&&this.note.length}renderNote(){return this.isNoteProvided?html`<p class="switch-bar__note">${this.note}</p>`:nothing}render(){return html`<div class="switch-bar__label"><p>${this.text}</p>${this.renderNote()}</div><ix-switch ?selected="${this.selected}" ?disabled="${this.disabled}" ?required="${this.required}" ?icons="${this.icons}" ?showOnlySelectedIcon="${this.showOnlySelectedIcon}"></ix-switch>`}}__decorate([property({type:String})],IxSwitchBar.prototype,"text",void 0),__decorate([property({type:String})],IxSwitchBar.prototype,"note",void 0),__decorate([property({type:Boolean})],IxSwitchBar.prototype,"selected",void 0),__decorate([property({type:Boolean})],IxSwitchBar.prototype,"disabled",void 0),__decorate([property({type:Boolean})],IxSwitchBar.prototype,"required",void 0),__decorate([property({type:Boolean})],IxSwitchBar.prototype,"icons",void 0),__decorate([property({type:Boolean})],IxSwitchBar.prototype,"showOnlySelectedIcon",void 0),window.customElements.define("ix-switch-bar",IxSwitchBar);
package/package.json CHANGED
@@ -3,13 +3,14 @@
3
3
  "description": "Webcomponent ix-switch-bar following open-wc recommendations",
4
4
  "license": "MIT",
5
5
  "author": "Digital Realty",
6
- "version": "2.1.10",
6
+ "version": "2.1.11",
7
7
  "type": "module",
8
8
  "main": "dist/index.js",
9
9
  "module": "dist/index.js",
10
10
  "exports": {
11
11
  ".": "./dist/index.js",
12
12
  "./ix-switch-bar.js": "./dist/ix-switch-bar.js",
13
+ "./ix-switch-bar.min.js": "./dist/ix-switch-bar.min.js",
13
14
  "./IxSwitchBar": "./dist/react/IxSwitchBar.js"
14
15
  },
15
16
  "publishConfig": {
@@ -18,7 +19,7 @@
18
19
  "scripts": {
19
20
  "analyze": "cem analyze --litelement",
20
21
  "start": "tsc && concurrently -k -r \"tsc --watch --preserveWatchOutput\" \"wds\"",
21
- "build": "tsc && npm run analyze -- --exclude dist",
22
+ "build": "tsc && npm run analyze -- --exclude dist && rollup -c",
22
23
  "prepublish": "tsc && npm run analyze -- --exclude dist",
23
24
  "lint": "eslint --ext .ts,.html . --ignore-path .gitignore && prettier \"**/*.ts\" --check --ignore-path .gitignore",
24
25
  "format": "eslint --ext .ts,.html . --fix --ignore-path .gitignore && prettier \"**/*.ts\" --write --ignore-path .gitignore",
@@ -26,7 +27,7 @@
26
27
  "test:watch": "tsc && concurrently -k -r \"tsc --watch --preserveWatchOutput\" \"wtr --watch\""
27
28
  },
28
29
  "dependencies": {
29
- "@digital-realty/ix-switch": "^2.1.9",
30
+ "@digital-realty/ix-switch": "^2.1.10",
30
31
  "@lit/react": "^1.0.2",
31
32
  "lit": "^2.0.2",
32
33
  "react": "^18.2.0"
@@ -46,6 +47,9 @@
46
47
  "husky": "^4.3.8",
47
48
  "lint-staged": "^10.5.4",
48
49
  "prettier": "^2.4.1",
50
+ "rollup-plugin-minify-html-literals": "^1.2.6",
51
+ "rollup-plugin-summary": "^2.0.0",
52
+ "rollup-plugin-uglify": "^6.0.4",
49
53
  "tslib": "^2.3.1",
50
54
  "typescript": "^4.5.2"
51
55
  },
@@ -99,5 +103,5 @@
99
103
  "README.md",
100
104
  "LICENSE"
101
105
  ],
102
- "gitHead": "a93ad0076764dc26321faa51bc504ff6b534d836"
106
+ "gitHead": "c7668fda980293ca038c0dd061ebe350fa88ee60"
103
107
  }