vira 2.0.0 → 2.1.0
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/elements/vira-input/vira-input.element.d.ts +1 -1
- package/dist/elements/vira-input/vira-input.element.js +14 -2
- package/dist/icons/icon-svgs/close-x-24.icon.js +2 -8
- package/dist/icons/icon-svgs/element-16.icon.js +1 -7
- package/dist/icons/icon-svgs/element-24.icon.js +2 -8
- package/dist/icons/icon-svgs/loader-24.icon.js +1 -2
- package/dist/icons/icon-svgs/options-24.icon.js +2 -2
- package/dist/icons/icon-svgs/status-failure-24.icon.js +2 -8
- package/package.json +1 -1
|
@@ -19,4 +19,4 @@ export declare const ViraInput: import("element-vir").DeclarativeElementDefiniti
|
|
|
19
19
|
* that was blocked out of programmatic "value" property assignments.
|
|
20
20
|
*/
|
|
21
21
|
inputBlocked: import("element-vir").DefinedTypedEventNameDefinition<string>;
|
|
22
|
-
}, "vira-input-disabled" | "vira-input-fit-text", "vira-input-placeholder-color" | "vira-input-text-color" | "vira-input-border-color" | "vira-input-focus-border-color" | "vira-input-text-selection-color" | "vira-input-padding-horizontal" | "vira-input-padding-vertical", import("lit-html").HTMLTemplateResult>;
|
|
22
|
+
}, "vira-input-disabled" | "vira-input-fit-text" | "vira-input-clear-button-shown", "vira-input-placeholder-color" | "vira-input-text-color" | "vira-input-border-color" | "vira-input-focus-border-color" | "vira-input-text-selection-color" | "vira-input-clear-button-color" | "vira-input-clear-button-hover-color" | "vira-input-clear-button-active-color" | "vira-input-padding-horizontal" | "vira-input-padding-vertical", import("lit-html").HTMLTemplateResult>;
|
|
@@ -12,6 +12,7 @@ export const ViraInput = defineViraElement()({
|
|
|
12
12
|
hostClasses: {
|
|
13
13
|
'vira-input-disabled': ({ inputs }) => !!inputs.disabled,
|
|
14
14
|
'vira-input-fit-text': ({ inputs }) => !!inputs.fitText,
|
|
15
|
+
'vira-input-clear-button-shown': ({ inputs }) => !!inputs.showClearButton,
|
|
15
16
|
},
|
|
16
17
|
cssVars: {
|
|
17
18
|
'vira-input-placeholder-color': '#cccccc',
|
|
@@ -19,6 +20,9 @@ export const ViraInput = defineViraElement()({
|
|
|
19
20
|
'vira-input-border-color': '#cccccc',
|
|
20
21
|
'vira-input-focus-border-color': '#59b1ff',
|
|
21
22
|
'vira-input-text-selection-color': '#cfe9ff',
|
|
23
|
+
'vira-input-clear-button-color': '#aaaaaa',
|
|
24
|
+
'vira-input-clear-button-hover-color': '#ff0000',
|
|
25
|
+
'vira-input-clear-button-active-color': '#b30000',
|
|
22
26
|
'vira-input-padding-horizontal': '10px',
|
|
23
27
|
'vira-input-padding-vertical': '6px',
|
|
24
28
|
},
|
|
@@ -84,6 +88,10 @@ export const ViraInput = defineViraElement()({
|
|
|
84
88
|
max-height: 100%;
|
|
85
89
|
}
|
|
86
90
|
|
|
91
|
+
${hostClasses['vira-input-clear-button-shown'].selector} label {
|
|
92
|
+
padding-right: 4px;
|
|
93
|
+
}
|
|
94
|
+
|
|
87
95
|
pre {
|
|
88
96
|
${noNativeFormStyles};
|
|
89
97
|
font: inherit;
|
|
@@ -185,15 +193,19 @@ export const ViraInput = defineViraElement()({
|
|
|
185
193
|
}
|
|
186
194
|
|
|
187
195
|
.close-x-button {
|
|
188
|
-
color: ${cssVars['vira-input-text-color'].value};
|
|
189
196
|
${noNativeFormStyles};
|
|
197
|
+
color: ${cssVars['vira-input-clear-button-color'].value};
|
|
190
198
|
cursor: pointer;
|
|
191
199
|
display: flex;
|
|
192
200
|
transition: ${viraAnimationDurations['vira-interaction-animation-duration'].value};
|
|
193
201
|
}
|
|
194
202
|
|
|
195
203
|
.close-x-button:hover {
|
|
196
|
-
color:
|
|
204
|
+
color: ${cssVars['vira-input-clear-button-hover-color'].value};
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
.close-x-button:active {
|
|
208
|
+
color: ${cssVars['vira-input-clear-button-active-color'].value};
|
|
197
209
|
}
|
|
198
210
|
`;
|
|
199
211
|
},
|
|
@@ -4,13 +4,7 @@ import { defineIcon } from '../icon-svg';
|
|
|
4
4
|
export const CloseX24Icon = defineIcon({
|
|
5
5
|
name: 'CloseX24Icon',
|
|
6
6
|
svgTemplate: html `
|
|
7
|
-
<svg
|
|
8
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
9
|
-
xml:space="preserve"
|
|
10
|
-
width="24"
|
|
11
|
-
height="24"
|
|
12
|
-
viewBox="0 0 24 24"
|
|
13
|
-
>
|
|
7
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
|
|
14
8
|
<circle
|
|
15
9
|
cx="12"
|
|
16
10
|
cy="12"
|
|
@@ -20,10 +14,10 @@ export const CloseX24Icon = defineIcon({
|
|
|
20
14
|
stroke-width=${viraIconCssVars['vira-icon-stroke-width'].value}
|
|
21
15
|
/>
|
|
22
16
|
<path
|
|
17
|
+
d="M9 8.5l6 7m0 -7l-6 7"
|
|
23
18
|
fill="none"
|
|
24
19
|
stroke=${viraIconCssVars['vira-icon-stroke-color'].value}
|
|
25
20
|
stroke-width=${viraIconCssVars['vira-icon-stroke-width'].value}
|
|
26
|
-
d="M9 8.5l6 7m0 -7l-6 7"
|
|
27
21
|
/>
|
|
28
22
|
</svg>
|
|
29
23
|
`,
|
|
@@ -4,13 +4,7 @@ import { defineIcon } from '../icon-svg';
|
|
|
4
4
|
export const Element16Icon = defineIcon({
|
|
5
5
|
name: 'Element16Icon',
|
|
6
6
|
svgTemplate: html `
|
|
7
|
-
<svg
|
|
8
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
9
|
-
fill="none"
|
|
10
|
-
width="16"
|
|
11
|
-
height="16"
|
|
12
|
-
viewBox="0 0 16 16"
|
|
13
|
-
>
|
|
7
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16">
|
|
14
8
|
<path
|
|
15
9
|
d="M4 5 1 8l3 3m8-6 3 3-3 3m-5 0 2-6"
|
|
16
10
|
fill="none"
|
|
@@ -4,18 +4,12 @@ import { defineIcon } from '../icon-svg';
|
|
|
4
4
|
export const Element24Icon = defineIcon({
|
|
5
5
|
name: 'Element24Icon',
|
|
6
6
|
svgTemplate: html `
|
|
7
|
-
<svg
|
|
8
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
9
|
-
fill="none"
|
|
10
|
-
height="24"
|
|
11
|
-
viewBox="0 0 24 24"
|
|
12
|
-
width="24"
|
|
13
|
-
>
|
|
7
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
|
|
14
8
|
<path
|
|
9
|
+
d="m7 7-5 5 5 5M17 7l5 5-5 5m-6 0 2-10"
|
|
15
10
|
fill="none"
|
|
16
11
|
stroke=${viraIconCssVars['vira-icon-stroke-color'].value}
|
|
17
12
|
stroke-width=${viraIconCssVars['vira-icon-stroke-width'].value}
|
|
18
|
-
d="m7 7-5 5 5 5M17 7l5 5-5 5m-6 0 2-10"
|
|
19
13
|
/>
|
|
20
14
|
</svg>
|
|
21
15
|
`,
|
|
@@ -4,7 +4,7 @@ import { defineIcon } from '../icon-svg';
|
|
|
4
4
|
export const Options24Icon = defineIcon({
|
|
5
5
|
name: 'Options24Icon',
|
|
6
6
|
svgTemplate: html `
|
|
7
|
-
<svg xmlns="http://www.w3.org/2000/svg"
|
|
7
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
|
|
8
8
|
<g
|
|
9
9
|
fill=${viraIconCssVars['vira-icon-fill-color'].value}
|
|
10
10
|
stroke=${viraIconCssVars['vira-icon-stroke-color'].value}
|
|
@@ -15,10 +15,10 @@ export const Options24Icon = defineIcon({
|
|
|
15
15
|
<circle cx="8.5" cy="18.5" r="2.5" />
|
|
16
16
|
</g>
|
|
17
17
|
<path
|
|
18
|
+
d="M3 5.5h3.5m5 0h8.5M3 12.5h11m5 0h2M3 18.5h3m5 0h10"
|
|
18
19
|
fill="none"
|
|
19
20
|
stroke="${viraIconCssVars['vira-icon-stroke-color'].value}"
|
|
20
21
|
stroke-width=${viraIconCssVars['vira-icon-stroke-width'].value}
|
|
21
|
-
d="M3 5.5h3.5m5 0h8.5M3 12.5h11m5 0h2M3 18.5h3m5 0h10"
|
|
22
22
|
/>
|
|
23
23
|
</svg>
|
|
24
24
|
`,
|
|
@@ -4,13 +4,7 @@ import { defineIcon } from '../icon-svg';
|
|
|
4
4
|
export const StatusFailure24Icon = defineIcon({
|
|
5
5
|
name: 'StatusFailure24Icon',
|
|
6
6
|
svgTemplate: html `
|
|
7
|
-
<svg
|
|
8
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
9
|
-
xml:space="preserve"
|
|
10
|
-
width="24"
|
|
11
|
-
height="24"
|
|
12
|
-
viewBox="0 0 24 24"
|
|
13
|
-
>
|
|
7
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
|
|
14
8
|
<circle
|
|
15
9
|
cx="12"
|
|
16
10
|
cy="12"
|
|
@@ -20,10 +14,10 @@ export const StatusFailure24Icon = defineIcon({
|
|
|
20
14
|
stroke-width=${viraIconCssVars['vira-icon-stroke-width'].value}
|
|
21
15
|
/>
|
|
22
16
|
<path
|
|
17
|
+
d="M8 16.5 L16 7.5 M8 7.5 L16 16.5"
|
|
23
18
|
fill="none"
|
|
24
19
|
stroke=${viraIconCssVars['vira-icon-stroke-color'].value}
|
|
25
20
|
stroke-width=${viraIconCssVars['vira-icon-stroke-width'].value}
|
|
26
|
-
d="M8 16.5 L16 7.5 M8 7.5 L16 16.5"
|
|
27
21
|
/>
|
|
28
22
|
</svg>
|
|
29
23
|
`,
|