smoothly 0.1.99 → 0.1.102
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/dist/cjs/smoothly-accordion_48.cjs.entry.js +3 -3
- package/dist/cjs/smoothly-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/smoothly-input.cjs.entry.js +2 -2
- package/dist/collection/components/checkbox/index.js +2 -2
- package/dist/collection/components/input/index.js +2 -2
- package/dist/collection/components/input/style.css +23 -33
- package/dist/custom-elements/index.js +3 -3
- package/dist/esm/smoothly-accordion_48.entry.js +3 -3
- package/dist/esm/smoothly-checkbox.entry.js +1 -1
- package/dist/esm/smoothly-input.entry.js +2 -2
- package/dist/smoothly/{p-71b3269d.entry.js → p-d4139486.entry.js} +1 -1
- package/dist/smoothly/smoothly-checkbox.entry.js +1 -1
- package/dist/smoothly/smoothly-input.entry.js +2 -2
- package/package.json +1 -1
|
@@ -37360,7 +37360,7 @@ let SmoothlyCheckbox = class {
|
|
|
37360
37360
|
index.registerInstance(this, hostRef);
|
|
37361
37361
|
this.checked = index.createEvent(this, "checked", 7);
|
|
37362
37362
|
this.selectAll = false;
|
|
37363
|
-
this.size = "
|
|
37363
|
+
this.size = "small";
|
|
37364
37364
|
}
|
|
37365
37365
|
componentWillLoad() {
|
|
37366
37366
|
this.t = create(this.element);
|
|
@@ -39675,7 +39675,7 @@ let SmoothlyIconDemo = class {
|
|
|
39675
39675
|
};
|
|
39676
39676
|
SmoothlyIconDemo.style = styleCss$s;
|
|
39677
39677
|
|
|
39678
|
-
const styleCss$r = ".sc-smoothly-input-h{display:block;position:relative;font-weight:var(--smoothly-font-weight);padding:var(--padding)}[hidden].sc-smoothly-input-h{display:none}label.sc-smoothly-input{position:absolute;left:0.4em;top:0.6em;color:rgb(var(--smoothly-
|
|
39678
|
+
const styleCss$r = ".sc-smoothly-input-h{display:block;position:relative;font-weight:var(--smoothly-font-weight);padding:var(--padding);overflow:hidden;background-color:rgb(var(--background-color));color:rgb(var(--text-color, var(--smoothly-default-contrast)))}[hidden].sc-smoothly-input-h{display:none}.sc-smoothly-input-h>div.sc-smoothly-input{position:relative;width:100%;height:100%}label.sc-smoothly-input{position:absolute;left:0.4em;top:0.6em;color:rgb(var(--text-color, var(--smoothly-default-contrast)));opacity:0.8;user-select:none;cursor:inherit;transition:transform 0.1s;transform-origin:top left;transition-timing-function:ease}.sc-smoothly-input-h:not([show-label]) label.sc-smoothly-input{display:none}.sc-smoothly-input-h:not([show-label]) input.sc-smoothly-input{padding:0.6em 0.2em 0.6em 0.2em}input.sc-smoothly-input{padding:1em 0.2em 0.2em 0.2em;box-sizing:border-box;width:100%;height:100%;background:none;border:0;z-index:1;position:relative;font-size:1rem;font-family:var(--smoothly-font-family);background-color:rgb(var(--background-color))}smoothly-icon.sc-smoothly-input{display:none;position:absolute;right:0.2em;top:0.6em}input.sc-smoothly-input:invalid+label.sc-smoothly-input+smoothly-icon.sc-smoothly-input{display:block}.sc-smoothly-input-h>div.sc-smoothly-input>label.sc-smoothly-input{z-index:1;pointer-events:none}.has-value.sc-smoothly-input-h>div.sc-smoothly-input>label.sc-smoothly-input,.sc-smoothly-input-h:focus-within>div.sc-smoothly-input>label.sc-smoothly-input{top:0.4em;transform:scale(0.6)}input.sc-smoothly-input:focus{outline:none}input.sc-smoothly-input:-webkit-autofill,input.sc-smoothly-input:-webkit-autofill:hover,input.sc-smoothly-input:-webkit-autofill:focus,input.sc-smoothly-input:-webkit-autofill:active{box-shadow:0 0 0 40em rgb(var(--background-color)) inset;-webkit-box-shadow:0 0 0 40em rgb(var(--background-color)) inset}input.sc-smoothly-input:-webkit-autofill,input.sc-smoothly-input:-webkit-autofill+label.sc-smoothly-input{-webkit-text-fill-color:rgb(var(--text-color, var(--smoothly-default-contrast)))}";
|
|
39679
39679
|
|
|
39680
39680
|
let SmoothlyInput = class {
|
|
39681
39681
|
constructor(hostRef) {
|
|
@@ -39854,7 +39854,7 @@ let SmoothlyInput = class {
|
|
|
39854
39854
|
}
|
|
39855
39855
|
render() {
|
|
39856
39856
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
39857
|
-
return (index.h(index.Host, { class: { "has-value": ((_a = this.state) === null || _a === void 0 ? void 0 : _a.value) != undefined && ((_b = this.state) === null || _b === void 0 ? void 0 : _b.value) != "" }, onclick: () => { var _a; return (_a = this.inputElement) === null || _a === void 0 ? void 0 : _a.focus(); } }, index.h("div", null, index.h("input", { name: this.name, type: (_c = this.state) === null || _c === void 0 ? void 0 : _c.type, placeholder: this.placeholder, required: this.required, autocomplete: this.autocomplete ? (_d = this.state) === null || _d === void 0 ? void 0 : _d.autocomplete : "off", disabled: this.disabled, pattern: ((_e = this.state) === null || _e === void 0 ? void 0 : _e.pattern) && ((_f = this.state) === null || _f === void 0 ? void 0 : _f.pattern.source), value: (_g = this.state) === null || _g === void 0 ? void 0 : _g.value, onInput: (e) => this.onInput(e), onFocus: e => this.onFocus(e), onClick: e => this.onClick(e), onBlur: e => this.onBlur(e), onKeyDown: e => this.onKeyDown(e), ref: (el) => (this.inputElement = el), onPaste: e => this.onPaste(e) }), index.h("smoothly-icon", { name: "alert-circle", color: "danger", fill: "clear", size: "small" })
|
|
39857
|
+
return (index.h(index.Host, { class: { "has-value": ((_a = this.state) === null || _a === void 0 ? void 0 : _a.value) != undefined && ((_b = this.state) === null || _b === void 0 ? void 0 : _b.value) != "" }, onclick: () => { var _a; return (_a = this.inputElement) === null || _a === void 0 ? void 0 : _a.focus(); } }, index.h("div", null, index.h("input", { name: this.name, type: (_c = this.state) === null || _c === void 0 ? void 0 : _c.type, placeholder: this.placeholder, required: this.required, autocomplete: this.autocomplete ? (_d = this.state) === null || _d === void 0 ? void 0 : _d.autocomplete : "off", disabled: this.disabled, pattern: ((_e = this.state) === null || _e === void 0 ? void 0 : _e.pattern) && ((_f = this.state) === null || _f === void 0 ? void 0 : _f.pattern.source), value: (_g = this.state) === null || _g === void 0 ? void 0 : _g.value, onInput: (e) => this.onInput(e), onFocus: e => this.onFocus(e), onClick: e => this.onClick(e), onBlur: e => this.onBlur(e), onKeyDown: e => this.onKeyDown(e), ref: (el) => (this.inputElement = el), onPaste: e => this.onPaste(e) }), index.h("label", { htmlFor: this.name }, index.h("slot", null)), index.h("smoothly-icon", { name: "alert-circle", color: "danger", fill: "clear", size: "small" }))));
|
|
39858
39858
|
}
|
|
39859
39859
|
static get watchers() { return {
|
|
39860
39860
|
"value": ["valueWatcher"],
|
|
@@ -18646,7 +18646,7 @@ let SmoothlyCheckbox = class {
|
|
|
18646
18646
|
index$5.registerInstance(this, hostRef);
|
|
18647
18647
|
this.checked = index$5.createEvent(this, "checked", 7);
|
|
18648
18648
|
this.selectAll = false;
|
|
18649
|
-
this.size = "
|
|
18649
|
+
this.size = "small";
|
|
18650
18650
|
}
|
|
18651
18651
|
componentWillLoad() {
|
|
18652
18652
|
this.t = create(this.element);
|
|
@@ -7,7 +7,7 @@ const index$2 = require('./index-ac32385c.js');
|
|
|
7
7
|
const index$1 = require('./index-d66869d7.js');
|
|
8
8
|
require('./_commonjsHelpers-10109b76.js');
|
|
9
9
|
|
|
10
|
-
const styleCss = ".sc-smoothly-input-h{display:block;position:relative;font-weight:var(--smoothly-font-weight);padding:var(--padding)}[hidden].sc-smoothly-input-h{display:none}label.sc-smoothly-input{position:absolute;left:0.4em;top:0.6em;color:rgb(var(--smoothly-
|
|
10
|
+
const styleCss = ".sc-smoothly-input-h{display:block;position:relative;font-weight:var(--smoothly-font-weight);padding:var(--padding);overflow:hidden;background-color:rgb(var(--background-color));color:rgb(var(--text-color, var(--smoothly-default-contrast)))}[hidden].sc-smoothly-input-h{display:none}.sc-smoothly-input-h>div.sc-smoothly-input{position:relative;width:100%;height:100%}label.sc-smoothly-input{position:absolute;left:0.4em;top:0.6em;color:rgb(var(--text-color, var(--smoothly-default-contrast)));opacity:0.8;user-select:none;cursor:inherit;transition:transform 0.1s;transform-origin:top left;transition-timing-function:ease}.sc-smoothly-input-h:not([show-label]) label.sc-smoothly-input{display:none}.sc-smoothly-input-h:not([show-label]) input.sc-smoothly-input{padding:0.6em 0.2em 0.6em 0.2em}input.sc-smoothly-input{padding:1em 0.2em 0.2em 0.2em;box-sizing:border-box;width:100%;height:100%;background:none;border:0;z-index:1;position:relative;font-size:1rem;font-family:var(--smoothly-font-family);background-color:rgb(var(--background-color))}smoothly-icon.sc-smoothly-input{display:none;position:absolute;right:0.2em;top:0.6em}input.sc-smoothly-input:invalid+label.sc-smoothly-input+smoothly-icon.sc-smoothly-input{display:block}.sc-smoothly-input-h>div.sc-smoothly-input>label.sc-smoothly-input{z-index:1;pointer-events:none}.has-value.sc-smoothly-input-h>div.sc-smoothly-input>label.sc-smoothly-input,.sc-smoothly-input-h:focus-within>div.sc-smoothly-input>label.sc-smoothly-input{top:0.4em;transform:scale(0.6)}input.sc-smoothly-input:focus{outline:none}input.sc-smoothly-input:-webkit-autofill,input.sc-smoothly-input:-webkit-autofill:hover,input.sc-smoothly-input:-webkit-autofill:focus,input.sc-smoothly-input:-webkit-autofill:active{box-shadow:0 0 0 40em rgb(var(--background-color)) inset;-webkit-box-shadow:0 0 0 40em rgb(var(--background-color)) inset}input.sc-smoothly-input:-webkit-autofill,input.sc-smoothly-input:-webkit-autofill+label.sc-smoothly-input{-webkit-text-fill-color:rgb(var(--text-color, var(--smoothly-default-contrast)))}";
|
|
11
11
|
|
|
12
12
|
let SmoothlyInput = class {
|
|
13
13
|
constructor(hostRef) {
|
|
@@ -186,7 +186,7 @@ let SmoothlyInput = class {
|
|
|
186
186
|
}
|
|
187
187
|
render() {
|
|
188
188
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
189
|
-
return (index.h(index.Host, { class: { "has-value": ((_a = this.state) === null || _a === void 0 ? void 0 : _a.value) != undefined && ((_b = this.state) === null || _b === void 0 ? void 0 : _b.value) != "" }, onclick: () => { var _a; return (_a = this.inputElement) === null || _a === void 0 ? void 0 : _a.focus(); } }, index.h("div", null, index.h("input", { name: this.name, type: (_c = this.state) === null || _c === void 0 ? void 0 : _c.type, placeholder: this.placeholder, required: this.required, autocomplete: this.autocomplete ? (_d = this.state) === null || _d === void 0 ? void 0 : _d.autocomplete : "off", disabled: this.disabled, pattern: ((_e = this.state) === null || _e === void 0 ? void 0 : _e.pattern) && ((_f = this.state) === null || _f === void 0 ? void 0 : _f.pattern.source), value: (_g = this.state) === null || _g === void 0 ? void 0 : _g.value, onInput: (e) => this.onInput(e), onFocus: e => this.onFocus(e), onClick: e => this.onClick(e), onBlur: e => this.onBlur(e), onKeyDown: e => this.onKeyDown(e), ref: (el) => (this.inputElement = el), onPaste: e => this.onPaste(e) }), index.h("smoothly-icon", { name: "alert-circle", color: "danger", fill: "clear", size: "small" })
|
|
189
|
+
return (index.h(index.Host, { class: { "has-value": ((_a = this.state) === null || _a === void 0 ? void 0 : _a.value) != undefined && ((_b = this.state) === null || _b === void 0 ? void 0 : _b.value) != "" }, onclick: () => { var _a; return (_a = this.inputElement) === null || _a === void 0 ? void 0 : _a.focus(); } }, index.h("div", null, index.h("input", { name: this.name, type: (_c = this.state) === null || _c === void 0 ? void 0 : _c.type, placeholder: this.placeholder, required: this.required, autocomplete: this.autocomplete ? (_d = this.state) === null || _d === void 0 ? void 0 : _d.autocomplete : "off", disabled: this.disabled, pattern: ((_e = this.state) === null || _e === void 0 ? void 0 : _e.pattern) && ((_f = this.state) === null || _f === void 0 ? void 0 : _f.pattern.source), value: (_g = this.state) === null || _g === void 0 ? void 0 : _g.value, onInput: (e) => this.onInput(e), onFocus: e => this.onFocus(e), onClick: e => this.onClick(e), onBlur: e => this.onBlur(e), onKeyDown: e => this.onKeyDown(e), ref: (el) => (this.inputElement = el), onPaste: e => this.onPaste(e) }), index.h("label", { htmlFor: this.name }, index.h("slot", null)), index.h("smoothly-icon", { name: "alert-circle", color: "danger", fill: "clear", size: "small" }))));
|
|
190
190
|
}
|
|
191
191
|
static get watchers() { return {
|
|
192
192
|
"value": ["valueWatcher"],
|
|
@@ -3,7 +3,7 @@ import * as translation from "./translation";
|
|
|
3
3
|
export class SmoothlyCheckbox {
|
|
4
4
|
constructor() {
|
|
5
5
|
this.selectAll = false;
|
|
6
|
-
this.size = "
|
|
6
|
+
this.size = "small";
|
|
7
7
|
}
|
|
8
8
|
componentWillLoad() {
|
|
9
9
|
this.t = translation.create(this.element);
|
|
@@ -64,7 +64,7 @@ export class SmoothlyCheckbox {
|
|
|
64
64
|
},
|
|
65
65
|
"attribute": "size",
|
|
66
66
|
"reflect": false,
|
|
67
|
-
"defaultValue": "\"
|
|
67
|
+
"defaultValue": "\"small\""
|
|
68
68
|
},
|
|
69
69
|
"intermediate": {
|
|
70
70
|
"type": "boolean",
|
|
@@ -179,9 +179,9 @@ export class SmoothlyInput {
|
|
|
179
179
|
return (h(Host, { class: { "has-value": ((_a = this.state) === null || _a === void 0 ? void 0 : _a.value) != undefined && ((_b = this.state) === null || _b === void 0 ? void 0 : _b.value) != "" }, onclick: () => { var _a; return (_a = this.inputElement) === null || _a === void 0 ? void 0 : _a.focus(); } },
|
|
180
180
|
h("div", null,
|
|
181
181
|
h("input", { name: this.name, type: (_c = this.state) === null || _c === void 0 ? void 0 : _c.type, placeholder: this.placeholder, required: this.required, autocomplete: this.autocomplete ? (_d = this.state) === null || _d === void 0 ? void 0 : _d.autocomplete : "off", disabled: this.disabled, pattern: ((_e = this.state) === null || _e === void 0 ? void 0 : _e.pattern) && ((_f = this.state) === null || _f === void 0 ? void 0 : _f.pattern.source), value: (_g = this.state) === null || _g === void 0 ? void 0 : _g.value, onInput: (e) => this.onInput(e), onFocus: e => this.onFocus(e), onClick: e => this.onClick(e), onBlur: e => this.onBlur(e), onKeyDown: e => this.onKeyDown(e), ref: (el) => (this.inputElement = el), onPaste: e => this.onPaste(e) }),
|
|
182
|
-
h("smoothly-icon", { name: "alert-circle", color: "danger", fill: "clear", size: "small" }),
|
|
183
182
|
h("label", { htmlFor: this.name },
|
|
184
|
-
h("slot", null))
|
|
183
|
+
h("slot", null)),
|
|
184
|
+
h("smoothly-icon", { name: "alert-circle", color: "danger", fill: "clear", size: "small" }))));
|
|
185
185
|
}
|
|
186
186
|
static get is() { return "smoothly-input"; }
|
|
187
187
|
static get encapsulation() { return "scoped"; }
|
|
@@ -3,19 +3,28 @@
|
|
|
3
3
|
position: relative;
|
|
4
4
|
font-weight: var(--smoothly-font-weight);
|
|
5
5
|
padding: var(--padding);
|
|
6
|
+
overflow: hidden;
|
|
7
|
+
background-color: rgb(var(--background-color));
|
|
8
|
+
color: rgb(var(--text-color, var(--smoothly-default-contrast)));
|
|
6
9
|
}
|
|
7
10
|
:host[hidden] {
|
|
8
11
|
display: none;
|
|
9
12
|
}
|
|
13
|
+
:host > div {
|
|
14
|
+
position: relative;
|
|
15
|
+
width: 100%;
|
|
16
|
+
height: 100%;
|
|
17
|
+
}
|
|
10
18
|
label {
|
|
11
19
|
position: absolute;
|
|
12
20
|
left: 0.4em;
|
|
13
21
|
top: 0.6em;
|
|
14
|
-
color: rgb(var(--smoothly-
|
|
22
|
+
color: rgb(var(--text-color, var(--smoothly-default-contrast)));
|
|
15
23
|
opacity: 0.8;
|
|
16
24
|
user-select: none;
|
|
17
25
|
cursor: inherit;
|
|
18
|
-
transition:
|
|
26
|
+
transition: transform 0.1s;
|
|
27
|
+
transform-origin: top left;
|
|
19
28
|
transition-timing-function: ease;
|
|
20
29
|
}
|
|
21
30
|
:host:not([show-label]) label {
|
|
@@ -26,13 +35,16 @@ label {
|
|
|
26
35
|
}
|
|
27
36
|
input {
|
|
28
37
|
padding: 1em 0.2em 0.2em 0.2em;
|
|
29
|
-
|
|
38
|
+
box-sizing: border-box;
|
|
39
|
+
width: 100%;
|
|
40
|
+
height: 100%;
|
|
30
41
|
background: none;
|
|
31
42
|
border: 0;
|
|
32
43
|
z-index: 1;
|
|
33
44
|
position: relative;
|
|
34
45
|
font-size: 1rem;
|
|
35
46
|
font-family: var(--smoothly-font-family);
|
|
47
|
+
background-color: rgb(var(--background-color));
|
|
36
48
|
}
|
|
37
49
|
smoothly-icon {
|
|
38
50
|
display: none;
|
|
@@ -40,51 +52,29 @@ smoothly-icon {
|
|
|
40
52
|
right: 0.2em;
|
|
41
53
|
top: 0.6em;
|
|
42
54
|
}
|
|
43
|
-
input:invalid + smoothly-icon {
|
|
55
|
+
input:invalid + label + smoothly-icon {
|
|
44
56
|
display: block;
|
|
45
57
|
}
|
|
46
|
-
:host > div {
|
|
47
|
-
position: relative;
|
|
48
|
-
}
|
|
49
58
|
:host > div > label {
|
|
50
59
|
z-index: 1;
|
|
51
60
|
pointer-events: none;
|
|
52
61
|
}
|
|
53
|
-
:host.has-value > div > label
|
|
54
|
-
top: 0.4em;
|
|
55
|
-
font-size: 60%;
|
|
56
|
-
}
|
|
62
|
+
:host.has-value > div > label,
|
|
57
63
|
:host:focus-within > div > label {
|
|
58
64
|
top: 0.4em;
|
|
59
|
-
|
|
65
|
+
transform: scale(0.6);
|
|
60
66
|
}
|
|
61
67
|
input:focus {
|
|
62
68
|
outline: none;
|
|
63
69
|
}
|
|
64
|
-
/* Change the white to any color ;) */
|
|
65
70
|
input:-webkit-autofill,
|
|
66
71
|
input:-webkit-autofill:hover,
|
|
67
72
|
input:-webkit-autofill:focus,
|
|
68
73
|
input:-webkit-autofill:active {
|
|
69
|
-
|
|
70
|
-
box-shadow: 0 0 0
|
|
71
|
-
/* stylelint-disable-next-line declaration-no-important */
|
|
72
|
-
-webkit-box-shadow: 0 0 0 30px unset inset !important;
|
|
74
|
+
box-shadow: 0 0 0 40em rgb(var(--background-color)) inset;
|
|
75
|
+
-webkit-box-shadow: 0 0 0 40em rgb(var(--background-color)) inset;
|
|
73
76
|
}
|
|
74
|
-
input:-webkit-autofill
|
|
75
|
-
|
|
76
|
-
-webkit-text-fill-color:
|
|
77
|
-
}
|
|
78
|
-
input:-internal-autofill-previewed,
|
|
79
|
-
input:-internal-autofill-selected,
|
|
80
|
-
textarea:-internal-autofill-previewed,
|
|
81
|
-
textarea:-internal-autofill-selected,
|
|
82
|
-
select:-internal-autofill-previewed,
|
|
83
|
-
select:-internal-autofill-selected {
|
|
84
|
-
/* stylelint-disable-next-line declaration-no-important */
|
|
85
|
-
background-color: none !important;
|
|
86
|
-
/* stylelint-disable-next-line declaration-no-important */
|
|
87
|
-
background-image: none !important;
|
|
88
|
-
/* stylelint-disable-next-line declaration-no-important */
|
|
89
|
-
color: unset !important;
|
|
77
|
+
input:-webkit-autofill,
|
|
78
|
+
input:-webkit-autofill + label {
|
|
79
|
+
-webkit-text-fill-color: rgb(var(--text-color, var(--smoothly-default-contrast)));
|
|
90
80
|
}
|
|
@@ -40218,7 +40218,7 @@ let SmoothlyCheckbox$1 = class extends HTMLElement {
|
|
|
40218
40218
|
this.__registerHost();
|
|
40219
40219
|
this.checked = createEvent(this, "checked", 7);
|
|
40220
40220
|
this.selectAll = false;
|
|
40221
|
-
this.size = "
|
|
40221
|
+
this.size = "small";
|
|
40222
40222
|
}
|
|
40223
40223
|
componentWillLoad() {
|
|
40224
40224
|
this.t = create(this.element);
|
|
@@ -42643,7 +42643,7 @@ let SmoothlyIconDemo$1 = class extends HTMLElement {
|
|
|
42643
42643
|
static get style() { return styleCss$w; }
|
|
42644
42644
|
};
|
|
42645
42645
|
|
|
42646
|
-
const styleCss$v = ".sc-smoothly-input-h{display:block;position:relative;font-weight:var(--smoothly-font-weight);padding:var(--padding)}[hidden].sc-smoothly-input-h{display:none}label.sc-smoothly-input{position:absolute;left:0.4em;top:0.6em;color:rgb(var(--smoothly-
|
|
42646
|
+
const styleCss$v = ".sc-smoothly-input-h{display:block;position:relative;font-weight:var(--smoothly-font-weight);padding:var(--padding);overflow:hidden;background-color:rgb(var(--background-color));color:rgb(var(--text-color, var(--smoothly-default-contrast)))}[hidden].sc-smoothly-input-h{display:none}.sc-smoothly-input-h>div.sc-smoothly-input{position:relative;width:100%;height:100%}label.sc-smoothly-input{position:absolute;left:0.4em;top:0.6em;color:rgb(var(--text-color, var(--smoothly-default-contrast)));opacity:0.8;user-select:none;cursor:inherit;transition:transform 0.1s;transform-origin:top left;transition-timing-function:ease}.sc-smoothly-input-h:not([show-label]) label.sc-smoothly-input{display:none}.sc-smoothly-input-h:not([show-label]) input.sc-smoothly-input{padding:0.6em 0.2em 0.6em 0.2em}input.sc-smoothly-input{padding:1em 0.2em 0.2em 0.2em;box-sizing:border-box;width:100%;height:100%;background:none;border:0;z-index:1;position:relative;font-size:1rem;font-family:var(--smoothly-font-family);background-color:rgb(var(--background-color))}smoothly-icon.sc-smoothly-input{display:none;position:absolute;right:0.2em;top:0.6em}input.sc-smoothly-input:invalid+label.sc-smoothly-input+smoothly-icon.sc-smoothly-input{display:block}.sc-smoothly-input-h>div.sc-smoothly-input>label.sc-smoothly-input{z-index:1;pointer-events:none}.has-value.sc-smoothly-input-h>div.sc-smoothly-input>label.sc-smoothly-input,.sc-smoothly-input-h:focus-within>div.sc-smoothly-input>label.sc-smoothly-input{top:0.4em;transform:scale(0.6)}input.sc-smoothly-input:focus{outline:none}input.sc-smoothly-input:-webkit-autofill,input.sc-smoothly-input:-webkit-autofill:hover,input.sc-smoothly-input:-webkit-autofill:focus,input.sc-smoothly-input:-webkit-autofill:active{box-shadow:0 0 0 40em rgb(var(--background-color)) inset;-webkit-box-shadow:0 0 0 40em rgb(var(--background-color)) inset}input.sc-smoothly-input:-webkit-autofill,input.sc-smoothly-input:-webkit-autofill+label.sc-smoothly-input{-webkit-text-fill-color:rgb(var(--text-color, var(--smoothly-default-contrast)))}";
|
|
42647
42647
|
|
|
42648
42648
|
let SmoothlyInput$1 = class extends HTMLElement {
|
|
42649
42649
|
constructor() {
|
|
@@ -42823,7 +42823,7 @@ let SmoothlyInput$1 = class extends HTMLElement {
|
|
|
42823
42823
|
}
|
|
42824
42824
|
render() {
|
|
42825
42825
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
42826
|
-
return (h(Host, { class: { "has-value": ((_a = this.state) === null || _a === void 0 ? void 0 : _a.value) != undefined && ((_b = this.state) === null || _b === void 0 ? void 0 : _b.value) != "" }, onclick: () => { var _a; return (_a = this.inputElement) === null || _a === void 0 ? void 0 : _a.focus(); } }, h("div", null, h("input", { name: this.name, type: (_c = this.state) === null || _c === void 0 ? void 0 : _c.type, placeholder: this.placeholder, required: this.required, autocomplete: this.autocomplete ? (_d = this.state) === null || _d === void 0 ? void 0 : _d.autocomplete : "off", disabled: this.disabled, pattern: ((_e = this.state) === null || _e === void 0 ? void 0 : _e.pattern) && ((_f = this.state) === null || _f === void 0 ? void 0 : _f.pattern.source), value: (_g = this.state) === null || _g === void 0 ? void 0 : _g.value, onInput: (e) => this.onInput(e), onFocus: e => this.onFocus(e), onClick: e => this.onClick(e), onBlur: e => this.onBlur(e), onKeyDown: e => this.onKeyDown(e), ref: (el) => (this.inputElement = el), onPaste: e => this.onPaste(e) }), h("smoothly-icon", { name: "alert-circle", color: "danger", fill: "clear", size: "small" })
|
|
42826
|
+
return (h(Host, { class: { "has-value": ((_a = this.state) === null || _a === void 0 ? void 0 : _a.value) != undefined && ((_b = this.state) === null || _b === void 0 ? void 0 : _b.value) != "" }, onclick: () => { var _a; return (_a = this.inputElement) === null || _a === void 0 ? void 0 : _a.focus(); } }, h("div", null, h("input", { name: this.name, type: (_c = this.state) === null || _c === void 0 ? void 0 : _c.type, placeholder: this.placeholder, required: this.required, autocomplete: this.autocomplete ? (_d = this.state) === null || _d === void 0 ? void 0 : _d.autocomplete : "off", disabled: this.disabled, pattern: ((_e = this.state) === null || _e === void 0 ? void 0 : _e.pattern) && ((_f = this.state) === null || _f === void 0 ? void 0 : _f.pattern.source), value: (_g = this.state) === null || _g === void 0 ? void 0 : _g.value, onInput: (e) => this.onInput(e), onFocus: e => this.onFocus(e), onClick: e => this.onClick(e), onBlur: e => this.onBlur(e), onKeyDown: e => this.onKeyDown(e), ref: (el) => (this.inputElement = el), onPaste: e => this.onPaste(e) }), h("label", { htmlFor: this.name }, h("slot", null)), h("smoothly-icon", { name: "alert-circle", color: "danger", fill: "clear", size: "small" }))));
|
|
42827
42827
|
}
|
|
42828
42828
|
static get watchers() { return {
|
|
42829
42829
|
"value": ["valueWatcher"],
|
|
@@ -37356,7 +37356,7 @@ let SmoothlyCheckbox = class {
|
|
|
37356
37356
|
registerInstance(this, hostRef);
|
|
37357
37357
|
this.checked = createEvent(this, "checked", 7);
|
|
37358
37358
|
this.selectAll = false;
|
|
37359
|
-
this.size = "
|
|
37359
|
+
this.size = "small";
|
|
37360
37360
|
}
|
|
37361
37361
|
componentWillLoad() {
|
|
37362
37362
|
this.t = create(this.element);
|
|
@@ -39671,7 +39671,7 @@ let SmoothlyIconDemo = class {
|
|
|
39671
39671
|
};
|
|
39672
39672
|
SmoothlyIconDemo.style = styleCss$s;
|
|
39673
39673
|
|
|
39674
|
-
const styleCss$r = ".sc-smoothly-input-h{display:block;position:relative;font-weight:var(--smoothly-font-weight);padding:var(--padding)}[hidden].sc-smoothly-input-h{display:none}label.sc-smoothly-input{position:absolute;left:0.4em;top:0.6em;color:rgb(var(--smoothly-
|
|
39674
|
+
const styleCss$r = ".sc-smoothly-input-h{display:block;position:relative;font-weight:var(--smoothly-font-weight);padding:var(--padding);overflow:hidden;background-color:rgb(var(--background-color));color:rgb(var(--text-color, var(--smoothly-default-contrast)))}[hidden].sc-smoothly-input-h{display:none}.sc-smoothly-input-h>div.sc-smoothly-input{position:relative;width:100%;height:100%}label.sc-smoothly-input{position:absolute;left:0.4em;top:0.6em;color:rgb(var(--text-color, var(--smoothly-default-contrast)));opacity:0.8;user-select:none;cursor:inherit;transition:transform 0.1s;transform-origin:top left;transition-timing-function:ease}.sc-smoothly-input-h:not([show-label]) label.sc-smoothly-input{display:none}.sc-smoothly-input-h:not([show-label]) input.sc-smoothly-input{padding:0.6em 0.2em 0.6em 0.2em}input.sc-smoothly-input{padding:1em 0.2em 0.2em 0.2em;box-sizing:border-box;width:100%;height:100%;background:none;border:0;z-index:1;position:relative;font-size:1rem;font-family:var(--smoothly-font-family);background-color:rgb(var(--background-color))}smoothly-icon.sc-smoothly-input{display:none;position:absolute;right:0.2em;top:0.6em}input.sc-smoothly-input:invalid+label.sc-smoothly-input+smoothly-icon.sc-smoothly-input{display:block}.sc-smoothly-input-h>div.sc-smoothly-input>label.sc-smoothly-input{z-index:1;pointer-events:none}.has-value.sc-smoothly-input-h>div.sc-smoothly-input>label.sc-smoothly-input,.sc-smoothly-input-h:focus-within>div.sc-smoothly-input>label.sc-smoothly-input{top:0.4em;transform:scale(0.6)}input.sc-smoothly-input:focus{outline:none}input.sc-smoothly-input:-webkit-autofill,input.sc-smoothly-input:-webkit-autofill:hover,input.sc-smoothly-input:-webkit-autofill:focus,input.sc-smoothly-input:-webkit-autofill:active{box-shadow:0 0 0 40em rgb(var(--background-color)) inset;-webkit-box-shadow:0 0 0 40em rgb(var(--background-color)) inset}input.sc-smoothly-input:-webkit-autofill,input.sc-smoothly-input:-webkit-autofill+label.sc-smoothly-input{-webkit-text-fill-color:rgb(var(--text-color, var(--smoothly-default-contrast)))}";
|
|
39675
39675
|
|
|
39676
39676
|
let SmoothlyInput = class {
|
|
39677
39677
|
constructor(hostRef) {
|
|
@@ -39850,7 +39850,7 @@ let SmoothlyInput = class {
|
|
|
39850
39850
|
}
|
|
39851
39851
|
render() {
|
|
39852
39852
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
39853
|
-
return (h(Host, { class: { "has-value": ((_a = this.state) === null || _a === void 0 ? void 0 : _a.value) != undefined && ((_b = this.state) === null || _b === void 0 ? void 0 : _b.value) != "" }, onclick: () => { var _a; return (_a = this.inputElement) === null || _a === void 0 ? void 0 : _a.focus(); } }, h("div", null, h("input", { name: this.name, type: (_c = this.state) === null || _c === void 0 ? void 0 : _c.type, placeholder: this.placeholder, required: this.required, autocomplete: this.autocomplete ? (_d = this.state) === null || _d === void 0 ? void 0 : _d.autocomplete : "off", disabled: this.disabled, pattern: ((_e = this.state) === null || _e === void 0 ? void 0 : _e.pattern) && ((_f = this.state) === null || _f === void 0 ? void 0 : _f.pattern.source), value: (_g = this.state) === null || _g === void 0 ? void 0 : _g.value, onInput: (e) => this.onInput(e), onFocus: e => this.onFocus(e), onClick: e => this.onClick(e), onBlur: e => this.onBlur(e), onKeyDown: e => this.onKeyDown(e), ref: (el) => (this.inputElement = el), onPaste: e => this.onPaste(e) }), h("smoothly-icon", { name: "alert-circle", color: "danger", fill: "clear", size: "small" })
|
|
39853
|
+
return (h(Host, { class: { "has-value": ((_a = this.state) === null || _a === void 0 ? void 0 : _a.value) != undefined && ((_b = this.state) === null || _b === void 0 ? void 0 : _b.value) != "" }, onclick: () => { var _a; return (_a = this.inputElement) === null || _a === void 0 ? void 0 : _a.focus(); } }, h("div", null, h("input", { name: this.name, type: (_c = this.state) === null || _c === void 0 ? void 0 : _c.type, placeholder: this.placeholder, required: this.required, autocomplete: this.autocomplete ? (_d = this.state) === null || _d === void 0 ? void 0 : _d.autocomplete : "off", disabled: this.disabled, pattern: ((_e = this.state) === null || _e === void 0 ? void 0 : _e.pattern) && ((_f = this.state) === null || _f === void 0 ? void 0 : _f.pattern.source), value: (_g = this.state) === null || _g === void 0 ? void 0 : _g.value, onInput: (e) => this.onInput(e), onFocus: e => this.onFocus(e), onClick: e => this.onClick(e), onBlur: e => this.onBlur(e), onKeyDown: e => this.onKeyDown(e), ref: (el) => (this.inputElement = el), onPaste: e => this.onPaste(e) }), h("label", { htmlFor: this.name }, h("slot", null)), h("smoothly-icon", { name: "alert-circle", color: "danger", fill: "clear", size: "small" }))));
|
|
39854
39854
|
}
|
|
39855
39855
|
static get watchers() { return {
|
|
39856
39856
|
"value": ["valueWatcher"],
|
|
@@ -18642,7 +18642,7 @@ let SmoothlyCheckbox = class {
|
|
|
18642
18642
|
registerInstance(this, hostRef);
|
|
18643
18643
|
this.checked = createEvent(this, "checked", 7);
|
|
18644
18644
|
this.selectAll = false;
|
|
18645
|
-
this.size = "
|
|
18645
|
+
this.size = "small";
|
|
18646
18646
|
}
|
|
18647
18647
|
componentWillLoad() {
|
|
18648
18648
|
this.t = create(this.element);
|
|
@@ -3,7 +3,7 @@ import { d as dist$1 } from './index-a5a08f46.js';
|
|
|
3
3
|
import { d as dist } from './index-401c6ce3.js';
|
|
4
4
|
import './_commonjsHelpers-8fe71198.js';
|
|
5
5
|
|
|
6
|
-
const styleCss = ".sc-smoothly-input-h{display:block;position:relative;font-weight:var(--smoothly-font-weight);padding:var(--padding)}[hidden].sc-smoothly-input-h{display:none}label.sc-smoothly-input{position:absolute;left:0.4em;top:0.6em;color:rgb(var(--smoothly-
|
|
6
|
+
const styleCss = ".sc-smoothly-input-h{display:block;position:relative;font-weight:var(--smoothly-font-weight);padding:var(--padding);overflow:hidden;background-color:rgb(var(--background-color));color:rgb(var(--text-color, var(--smoothly-default-contrast)))}[hidden].sc-smoothly-input-h{display:none}.sc-smoothly-input-h>div.sc-smoothly-input{position:relative;width:100%;height:100%}label.sc-smoothly-input{position:absolute;left:0.4em;top:0.6em;color:rgb(var(--text-color, var(--smoothly-default-contrast)));opacity:0.8;user-select:none;cursor:inherit;transition:transform 0.1s;transform-origin:top left;transition-timing-function:ease}.sc-smoothly-input-h:not([show-label]) label.sc-smoothly-input{display:none}.sc-smoothly-input-h:not([show-label]) input.sc-smoothly-input{padding:0.6em 0.2em 0.6em 0.2em}input.sc-smoothly-input{padding:1em 0.2em 0.2em 0.2em;box-sizing:border-box;width:100%;height:100%;background:none;border:0;z-index:1;position:relative;font-size:1rem;font-family:var(--smoothly-font-family);background-color:rgb(var(--background-color))}smoothly-icon.sc-smoothly-input{display:none;position:absolute;right:0.2em;top:0.6em}input.sc-smoothly-input:invalid+label.sc-smoothly-input+smoothly-icon.sc-smoothly-input{display:block}.sc-smoothly-input-h>div.sc-smoothly-input>label.sc-smoothly-input{z-index:1;pointer-events:none}.has-value.sc-smoothly-input-h>div.sc-smoothly-input>label.sc-smoothly-input,.sc-smoothly-input-h:focus-within>div.sc-smoothly-input>label.sc-smoothly-input{top:0.4em;transform:scale(0.6)}input.sc-smoothly-input:focus{outline:none}input.sc-smoothly-input:-webkit-autofill,input.sc-smoothly-input:-webkit-autofill:hover,input.sc-smoothly-input:-webkit-autofill:focus,input.sc-smoothly-input:-webkit-autofill:active{box-shadow:0 0 0 40em rgb(var(--background-color)) inset;-webkit-box-shadow:0 0 0 40em rgb(var(--background-color)) inset}input.sc-smoothly-input:-webkit-autofill,input.sc-smoothly-input:-webkit-autofill+label.sc-smoothly-input{-webkit-text-fill-color:rgb(var(--text-color, var(--smoothly-default-contrast)))}";
|
|
7
7
|
|
|
8
8
|
let SmoothlyInput = class {
|
|
9
9
|
constructor(hostRef) {
|
|
@@ -182,7 +182,7 @@ let SmoothlyInput = class {
|
|
|
182
182
|
}
|
|
183
183
|
render() {
|
|
184
184
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
185
|
-
return (h(Host, { class: { "has-value": ((_a = this.state) === null || _a === void 0 ? void 0 : _a.value) != undefined && ((_b = this.state) === null || _b === void 0 ? void 0 : _b.value) != "" }, onclick: () => { var _a; return (_a = this.inputElement) === null || _a === void 0 ? void 0 : _a.focus(); } }, h("div", null, h("input", { name: this.name, type: (_c = this.state) === null || _c === void 0 ? void 0 : _c.type, placeholder: this.placeholder, required: this.required, autocomplete: this.autocomplete ? (_d = this.state) === null || _d === void 0 ? void 0 : _d.autocomplete : "off", disabled: this.disabled, pattern: ((_e = this.state) === null || _e === void 0 ? void 0 : _e.pattern) && ((_f = this.state) === null || _f === void 0 ? void 0 : _f.pattern.source), value: (_g = this.state) === null || _g === void 0 ? void 0 : _g.value, onInput: (e) => this.onInput(e), onFocus: e => this.onFocus(e), onClick: e => this.onClick(e), onBlur: e => this.onBlur(e), onKeyDown: e => this.onKeyDown(e), ref: (el) => (this.inputElement = el), onPaste: e => this.onPaste(e) }), h("smoothly-icon", { name: "alert-circle", color: "danger", fill: "clear", size: "small" })
|
|
185
|
+
return (h(Host, { class: { "has-value": ((_a = this.state) === null || _a === void 0 ? void 0 : _a.value) != undefined && ((_b = this.state) === null || _b === void 0 ? void 0 : _b.value) != "" }, onclick: () => { var _a; return (_a = this.inputElement) === null || _a === void 0 ? void 0 : _a.focus(); } }, h("div", null, h("input", { name: this.name, type: (_c = this.state) === null || _c === void 0 ? void 0 : _c.type, placeholder: this.placeholder, required: this.required, autocomplete: this.autocomplete ? (_d = this.state) === null || _d === void 0 ? void 0 : _d.autocomplete : "off", disabled: this.disabled, pattern: ((_e = this.state) === null || _e === void 0 ? void 0 : _e.pattern) && ((_f = this.state) === null || _f === void 0 ? void 0 : _f.pattern.source), value: (_g = this.state) === null || _g === void 0 ? void 0 : _g.value, onInput: (e) => this.onInput(e), onFocus: e => this.onFocus(e), onClick: e => this.onClick(e), onBlur: e => this.onBlur(e), onKeyDown: e => this.onKeyDown(e), ref: (el) => (this.inputElement = el), onPaste: e => this.onPaste(e) }), h("label", { htmlFor: this.name }, h("slot", null)), h("smoothly-icon", { name: "alert-circle", color: "danger", fill: "clear", size: "small" }))));
|
|
186
186
|
}
|
|
187
187
|
static get watchers() { return {
|
|
188
188
|
"value": ["valueWatcher"],
|