@nectary/components 0.47.0 → 0.48.1
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/file-picker/index.js +2 -0
- package/icons/variables/index.d.ts +11 -0
- package/icons/variables/index.js +4 -0
- package/package.json +1 -1
- package/theme/emoji.css +1 -2
package/file-picker/index.js
CHANGED
|
@@ -81,6 +81,8 @@ defineCustomElement('sinch-file-picker', class extends NectaryElement {
|
|
|
81
81
|
return;
|
|
82
82
|
}
|
|
83
83
|
const files = Array.from(this.#$input.files);
|
|
84
|
+
|
|
85
|
+
this.#$input.value = '';
|
|
84
86
|
if (!doFilesSatisfySize(files, this.size)) {
|
|
85
87
|
this.dispatchEvent(new CustomEvent('-invalid', {
|
|
86
88
|
detail: 'size'
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { TSinchIconElement, TSinchIconReact } from '../types';
|
|
2
|
+
declare global {
|
|
3
|
+
namespace JSX {
|
|
4
|
+
interface IntrinsicElements {
|
|
5
|
+
'sinch-icon-variables': TSinchIconReact;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
interface HTMLElementTagNameMap {
|
|
9
|
+
'sinch-icon-variables': TSinchIconElement;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { defineCustomElement } from '../../utils';
|
|
2
|
+
import { createIconClass } from '../create-icon-class';
|
|
3
|
+
const templateHTML = '<svg viewBox="0 0 48 48" aria-hidden="true" focusable="false"><path fill="#242424" d="m43.48 22.674-4.22-4.45v-7.662C39.26 6.944 36.467 4 33.036 4h-3.26C28.797 4 28 4.84 28 5.875c0 1.036.796 1.875 1.778 1.875h3.259c1.47 0 2.667 1.262 2.667 2.813V19c0 .497.187.974.52 1.326L39.708 24l-3.484 3.674c-.333.352-.52.829-.52 1.326v8.438c0 1.55-1.197 2.812-2.667 2.812h-3.26c-.981 0-1.777.84-1.777 1.875C28 43.16 28.796 44 29.778 44h3.259c3.431 0 6.222-2.944 6.222-6.563v-7.66l4.22-4.451a1.948 1.948 0 0 0 0-2.652ZM12.296 19v-8.438c0-1.55 1.197-2.812 2.667-2.812h3.26c.981 0 1.777-.84 1.777-1.875C20 4.839 19.204 4 18.222 4h-3.259c-3.431 0-6.222 2.944-6.222 6.563v7.66l-4.22 4.451a1.948 1.948 0 0 0 0 2.652l4.22 4.45v7.662c0 3.618 2.791 6.562 6.222 6.562h3.26c.981 0 1.777-.84 1.777-1.875 0-1.035-.796-1.875-1.778-1.875h-3.259c-1.47 0-2.667-1.262-2.667-2.813V29c0-.497-.187-.974-.52-1.326L8.292 24l3.484-3.674c.333-.352.52-.829.52-1.326Z"/></svg>';
|
|
4
|
+
defineCustomElement('sinch-icon-variables', createIconClass(templateHTML));
|
package/package.json
CHANGED
package/theme/emoji.css
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
:root,
|
|
2
2
|
:host {
|
|
3
|
-
--sinch-emoji-src-url: "https://twemoji.maxcdn.com/v/latest/svg/%s.svg";
|
|
4
|
-
|
|
5
3
|
/* --sinch-emoji-src-url: "https://cdnjs.cloudflare.com/ajax/libs/twemoji/14.0.2/svg/%s.svg"; */
|
|
4
|
+
--sinch-emoji-src-url: "https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/svg/%s.svg";
|
|
6
5
|
}
|