tiny-react-dialog 0.0.1 → 0.0.2
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/index.es.js +1 -0
- package/dist/index.umd.js +1 -0
- package/package.json +4 -2
- package/src/tinyReactDialog.css +71 -0
- package/dist/tiny-react-dialog.css +0 -1
- package/dist/vite.svg +0 -1
package/dist/index.es.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode(".tiny-react-dialog__overlay{position:fixed;inset:0;z-index:50;background-color:#19191980}.tiny-react-dialog__container{background-color:#fdfdfd;position:fixed;top:50%;left:50%;z-index:51;display:grid;width:100%;max-width:calc(100% - 2rem);transform:translate(-50%,-50%);gap:1rem;border-radius:.5rem;border:1px solid oklch(.927 0 0);padding:1.5rem;box-shadow:0 10px 15px -3px #0000001a,0 4px 6px -2px #0000000d}.tiny-react-dialog__content{display:flex;flex-direction:column;gap:.5rem;text-align:center}.tiny-react-dialog__close{position:absolute;top:1rem;right:1rem;border-radius:.125rem;opacity:.7;background:transparent;border:none;cursor:pointer}.tiny-react-dialog__close:hover{opacity:1}.tiny-react-dialog__close:focus{outline:none;box-shadow:0 0 0 2px #a1a1a1;outline-offset:2px}.tiny-react-dialog__close svg{pointer-events:none;flex-shrink:0}@media (min-width: 640px){.tiny-react-dialog__container{max-width:425px}.tiny-react-dialog__content{text-align:left}}")),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
|
|
1
2
|
import re from "react";
|
|
2
3
|
var T = { exports: {} }, v = {};
|
|
3
4
|
/**
|
package/dist/index.umd.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode(".tiny-react-dialog__overlay{position:fixed;inset:0;z-index:50;background-color:#19191980}.tiny-react-dialog__container{background-color:#fdfdfd;position:fixed;top:50%;left:50%;z-index:51;display:grid;width:100%;max-width:calc(100% - 2rem);transform:translate(-50%,-50%);gap:1rem;border-radius:.5rem;border:1px solid oklch(.927 0 0);padding:1.5rem;box-shadow:0 10px 15px -3px #0000001a,0 4px 6px -2px #0000000d}.tiny-react-dialog__content{display:flex;flex-direction:column;gap:.5rem;text-align:center}.tiny-react-dialog__close{position:absolute;top:1rem;right:1rem;border-radius:.125rem;opacity:.7;background:transparent;border:none;cursor:pointer}.tiny-react-dialog__close:hover{opacity:1}.tiny-react-dialog__close:focus{outline:none;box-shadow:0 0 0 2px #a1a1a1;outline-offset:2px}.tiny-react-dialog__close svg{pointer-events:none;flex-shrink:0}@media (min-width: 640px){.tiny-react-dialog__container{max-width:425px}.tiny-react-dialog__content{text-align:left}}")),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
|
|
1
2
|
(function(f,R){typeof exports=="object"&&typeof module<"u"?R(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],R):(f=typeof globalThis<"u"?globalThis:f||self,R(f.TinyReactDialog={},f.React))})(this,(function(f,R){"use strict";var k={exports:{}},b={};/**
|
|
2
3
|
* @license React
|
|
3
4
|
* react-jsx-runtime.production.js
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tiny-react-dialog",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.umd.js",
|
|
6
6
|
"module": "dist/index.es.js",
|
|
@@ -13,7 +13,8 @@
|
|
|
13
13
|
},
|
|
14
14
|
"homepage": "https://github.com/sedomu/tiny-react-dialog#readme",
|
|
15
15
|
"files": [
|
|
16
|
-
"dist"
|
|
16
|
+
"dist",
|
|
17
|
+
"src/tinyReactDialog.css"
|
|
17
18
|
],
|
|
18
19
|
"exports": {
|
|
19
20
|
".": {
|
|
@@ -44,6 +45,7 @@
|
|
|
44
45
|
"typescript": "~5.8.3",
|
|
45
46
|
"typescript-eslint": "^8.39.1",
|
|
46
47
|
"vite": "^7.1.2",
|
|
48
|
+
"vite-plugin-css-injected-by-js": "^3.5.2",
|
|
47
49
|
"vite-plugin-dts": "^4.5.4"
|
|
48
50
|
}
|
|
49
51
|
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
.tiny-react-dialog__overlay {
|
|
2
|
+
position: fixed;
|
|
3
|
+
top: 0;
|
|
4
|
+
right: 0;
|
|
5
|
+
bottom: 0;
|
|
6
|
+
left: 0;
|
|
7
|
+
z-index: 50;
|
|
8
|
+
background-color: oklch(0.215 0 0 / 0.5);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.tiny-react-dialog__container {
|
|
12
|
+
background-color: oklch(0.995 0 0);
|
|
13
|
+
position: fixed;
|
|
14
|
+
top: 50%;
|
|
15
|
+
left: 50%;
|
|
16
|
+
z-index: 51;
|
|
17
|
+
display: grid;
|
|
18
|
+
width: 100%;
|
|
19
|
+
max-width: calc(100% - 2rem);
|
|
20
|
+
transform: translate(-50%, -50%);
|
|
21
|
+
gap: 1rem;
|
|
22
|
+
border-radius: 0.5rem;
|
|
23
|
+
border: 1px solid oklch(0.927 0 0);
|
|
24
|
+
padding: 1.5rem;
|
|
25
|
+
box-shadow:
|
|
26
|
+
0 10px 15px -3px oklch(0 0 0 / 0.1),
|
|
27
|
+
0 4px 6px -2px oklch(0 0 0 / 0.05);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.tiny-react-dialog__content {
|
|
31
|
+
display: flex;
|
|
32
|
+
flex-direction: column;
|
|
33
|
+
gap: 0.5rem;
|
|
34
|
+
text-align: center;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.tiny-react-dialog__close {
|
|
38
|
+
position: absolute;
|
|
39
|
+
top: 1rem;
|
|
40
|
+
right: 1rem;
|
|
41
|
+
border-radius: 0.125rem;
|
|
42
|
+
opacity: 0.7;
|
|
43
|
+
background: transparent;
|
|
44
|
+
border: none;
|
|
45
|
+
cursor: pointer;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.tiny-react-dialog__close:hover {
|
|
49
|
+
opacity: 1;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.tiny-react-dialog__close:focus {
|
|
53
|
+
outline: none;
|
|
54
|
+
box-shadow: 0 0 0 2px oklch(0.708 0 0);
|
|
55
|
+
outline-offset: 2px;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.tiny-react-dialog__close svg {
|
|
59
|
+
pointer-events: none;
|
|
60
|
+
flex-shrink: 0;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
@media (min-width: 640px) {
|
|
64
|
+
.tiny-react-dialog__container {
|
|
65
|
+
max-width: 425px;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.tiny-react-dialog__content {
|
|
69
|
+
text-align: left;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.tiny-react-dialog__overlay{position:fixed;inset:0;z-index:50;background-color:#19191980}.tiny-react-dialog__container{background-color:#fdfdfd;position:fixed;top:50%;left:50%;z-index:51;display:grid;width:100%;max-width:calc(100% - 2rem);transform:translate(-50%,-50%);gap:1rem;border-radius:.5rem;border:1px solid oklch(.927 0 0);padding:1.5rem;box-shadow:0 10px 15px -3px #0000001a,0 4px 6px -2px #0000000d}.tiny-react-dialog__content{display:flex;flex-direction:column;gap:.5rem;text-align:center}.tiny-react-dialog__close{position:absolute;top:1rem;right:1rem;border-radius:.125rem;opacity:.7;background:transparent;border:none;cursor:pointer}.tiny-react-dialog__close:hover{opacity:1}.tiny-react-dialog__close:focus{outline:none;box-shadow:0 0 0 2px #a1a1a1;outline-offset:2px}.tiny-react-dialog__close svg{pointer-events:none;flex-shrink:0}@media (min-width: 640px){.tiny-react-dialog__container{max-width:425px}.tiny-react-dialog__content{text-align:left}}
|
package/dist/vite.svg
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>
|