@digital-ai/dot-illustrations 1.0.14 → 1.0.16

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,51 @@
1
+ function myFunction() {
2
+ var input, filter, divs, i, div, txtValue;
3
+ input = document.getElementById('myInput');
4
+ filter = input.value.toUpperCase();
5
+ divs = document.querySelectorAll('div');
6
+
7
+ for (i = 0; i < divs.length; i++) {
8
+ div = divs[i];
9
+ txtValue = div.textContent || div.innerText;
10
+ if (txtValue.toUpperCase().indexOf(filter) > -1) {
11
+ divs[i].style.display = "";
12
+ } else {
13
+ divs[i].style.display = "none";
14
+ }
15
+ }
16
+ }
17
+
18
+ function copyText(button) {
19
+ // Find the closest div parent of the clicked button
20
+ var parentDiv = button.closest('div');
21
+
22
+ // Find the span within the same parent div
23
+ var copyText = parentDiv.querySelector('.illustrationID');
24
+
25
+ // Get the text content of the span
26
+ var textToCopy = copyText.textContent;
27
+
28
+ // Use the Clipboard API to copy the text
29
+ navigator.clipboard.writeText(textToCopy).then(function() {
30
+ // Alert the copied text
31
+ alert("Copied the text: " + textToCopy);
32
+ }, function(err) {
33
+ console.error('Failed to copy text: ', err);
34
+ });
35
+ }
36
+
37
+ function copyCode() {
38
+ // Get the code block element
39
+ var copyCode = document.getElementById("myCodeBlock");
40
+
41
+ // Get the text content of the code block
42
+ var codeToCopy = copyCode.textContent;
43
+
44
+ // Use the Clipboard API to copy the text
45
+ navigator.clipboard.writeText(codeToCopy).then(function() {
46
+ // Alert the copied code
47
+ alert("Copied the code block");
48
+ }, function(err) {
49
+ console.error('Failed to copy code block: ', err);
50
+ });
51
+ }
@@ -0,0 +1,3 @@
1
+ <svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M19.41 16.3233C19.41 13.7927 22.1894 12.2461 24.3399 13.5801L37.3773 21.6674C39.4172 22.9329 39.4115 25.9029 37.3666 27.1604L34.6199 28.8496L37.5973 30.6928C39.6223 31.9464 39.6391 34.8863 37.6285 36.1628L24.3685 44.5819C22.2193 45.9464 19.41 44.4024 19.41 41.8566V36.218C19.41 35.0967 19.992 34.0557 20.9471 33.4683L28.4722 28.8406L20.939 24.1772C19.9885 23.5887 19.41 22.5504 19.41 21.4324V16.3233ZM31.5488 26.9485L35.6756 24.4107L22.6382 16.3233V21.4324L31.5488 26.9485ZM31.5432 30.7417L22.6382 36.2181L22.6382 41.8566L35.8982 33.4376L31.5432 30.7417Z" fill="#F15625"/>
3
+ </svg>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digital-ai/dot-illustrations",
3
- "version": "1.0.14",
3
+ "version": "1.0.16",
4
4
  "description": "A central place for the design team to keep illustrations and for dev teams to find them.",
5
5
  "main": "./index.css",
6
6
  "scripts": {