tiny-react-dialog 0.0.4 → 0.0.6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tiny-react-dialog",
3
- "version": "0.0.4",
3
+ "version": "0.0.6",
4
4
  "type": "module",
5
5
  "main": "dist/index.umd.js",
6
6
  "module": "dist/index.es.js",
@@ -13,14 +13,15 @@
13
13
  },
14
14
  "homepage": "https://github.com/sedomu/tiny-react-dialog#readme",
15
15
  "files": [
16
- "dist",
17
- "src/tinyReactDialog.css"
16
+ "dist"
18
17
  ],
19
18
  "exports": {
20
19
  ".": {
20
+ "types": "./dist/index.d.ts",
21
21
  "import": "./dist/index.es.js",
22
22
  "require": "./dist/index.umd.js"
23
- }
23
+ },
24
+ "./index.css": "./dist/tinyReactDialog.css"
24
25
  },
25
26
  "scripts": {
26
27
  "dev": "vite",
@@ -1,71 +0,0 @@
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
- }