@toptal/picasso-notification 4.0.6-alpha-fx-null-button-overridable-a6bdbbaa2.0 → 4.0.7
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 +12 -13
- package/src/use-notification/__snapshots__/test.tsx.snap +12 -12
- package/LICENSE +0 -20
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@toptal/picasso-notification",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.7",
|
|
4
4
|
"description": "Toptal UI components library - Notification",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -22,12 +22,12 @@
|
|
|
22
22
|
},
|
|
23
23
|
"homepage": "https://github.com/toptal/picasso/tree/master/packages/picasso#readme",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@toptal/picasso-button": "4.0.
|
|
26
|
-
"@toptal/picasso-container": "3.1.
|
|
27
|
-
"@toptal/picasso-icons": "1.
|
|
28
|
-
"@toptal/picasso-shared": "15.0.
|
|
29
|
-
"@toptal/picasso-typography": "4.0.
|
|
30
|
-
"@toptal/picasso-utils": "2.0.
|
|
25
|
+
"@toptal/picasso-button": "4.0.7",
|
|
26
|
+
"@toptal/picasso-container": "3.1.0",
|
|
27
|
+
"@toptal/picasso-icons": "1.7.0",
|
|
28
|
+
"@toptal/picasso-shared": "15.0.0",
|
|
29
|
+
"@toptal/picasso-typography": "4.0.1",
|
|
30
|
+
"@toptal/picasso-utils": "2.0.0",
|
|
31
31
|
"classnames": "^2.5.1",
|
|
32
32
|
"notistack": "3.0.1"
|
|
33
33
|
},
|
|
@@ -36,23 +36,22 @@
|
|
|
36
36
|
"**/styles.js"
|
|
37
37
|
],
|
|
38
38
|
"peerDependencies": {
|
|
39
|
+
"@toptal/picasso-tailwind-merge": "^2.0.0",
|
|
39
40
|
"@toptal/picasso-provider": "*",
|
|
40
41
|
"@toptal/picasso-tailwind": ">=2.7",
|
|
41
|
-
"@toptal/picasso-tailwind-merge": "^2.0.0",
|
|
42
42
|
"react": ">=16.12.0 < 19.0.0"
|
|
43
43
|
},
|
|
44
44
|
"exports": {
|
|
45
45
|
".": "./dist-package/src/index.js"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@toptal/picasso-
|
|
49
|
-
"@toptal/picasso-
|
|
50
|
-
"@toptal/picasso-test-utils": "1.1.
|
|
48
|
+
"@toptal/picasso-tailwind-merge": "2.0.1",
|
|
49
|
+
"@toptal/picasso-provider": "5.0.0",
|
|
50
|
+
"@toptal/picasso-test-utils": "1.1.1"
|
|
51
51
|
},
|
|
52
52
|
"files": [
|
|
53
53
|
"dist-package/**",
|
|
54
54
|
"!dist-package/tsconfig.tsbuildinfo",
|
|
55
55
|
"src"
|
|
56
|
-
]
|
|
57
|
-
"gitHead": "a6bdbbaa25247c35686b5c9b17b14a02b9f497ba"
|
|
56
|
+
]
|
|
58
57
|
}
|
|
@@ -7,7 +7,7 @@ exports[`useNotifications error notification render 1`] = `
|
|
|
7
7
|
>
|
|
8
8
|
<button
|
|
9
9
|
aria-disabled="false"
|
|
10
|
-
class="base-Button text-lg inline-flex items-center justify-center select-none appearance-none m-0 relative normal-case align-middle transition-colors duration-350 ease-out shrink-0 outline-none [
|
|
10
|
+
class="base-Button text-lg inline-flex items-center justify-center select-none appearance-none m-0 relative normal-case align-middle transition-colors duration-350 ease-out shrink-0 outline-none [[data-component-type="button"]+&]:ml cursor-pointer no-underline hover:no-underline rounded-sm shadow-none focus-visible:shadow-[0_0_0_3px_rgba(32,78,207,0.48)] focus-within:shadow-[0_0_0_3px_rgba(32,78,207,0.48)] border-none text-white visited:text-white hover:bg-[#4269D6] active:bg-[#1A41AB] bg-blue min-w h-8 py-0 px-4"
|
|
11
11
|
data-component-type="button"
|
|
12
12
|
role="button"
|
|
13
13
|
tabindex="0"
|
|
@@ -21,7 +21,7 @@ exports[`useNotifications error notification render 1`] = `
|
|
|
21
21
|
</button>
|
|
22
22
|
<button
|
|
23
23
|
aria-disabled="false"
|
|
24
|
-
class="base-Button text-lg inline-flex items-center justify-center select-none appearance-none m-0 relative normal-case align-middle transition-colors duration-350 ease-out shrink-0 outline-none [
|
|
24
|
+
class="base-Button text-lg inline-flex items-center justify-center select-none appearance-none m-0 relative normal-case align-middle transition-colors duration-350 ease-out shrink-0 outline-none [[data-component-type="button"]+&]:ml cursor-pointer no-underline hover:no-underline rounded-sm shadow-none focus-visible:shadow-[0_0_0_3px_rgba(32,78,207,0.48)] focus-within:shadow-[0_0_0_3px_rgba(32,78,207,0.48)] border-none text-white visited:text-white hover:bg-[#4269D6] active:bg-[#1A41AB] bg-blue min-w h-8 py-0 px-4"
|
|
25
25
|
data-component-type="button"
|
|
26
26
|
role="button"
|
|
27
27
|
tabindex="0"
|
|
@@ -35,7 +35,7 @@ exports[`useNotifications error notification render 1`] = `
|
|
|
35
35
|
</button>
|
|
36
36
|
<button
|
|
37
37
|
aria-disabled="false"
|
|
38
|
-
class="base-Button text-lg inline-flex items-center justify-center select-none appearance-none m-0 relative normal-case align-middle transition-colors duration-350 ease-out shrink-0 outline-none [
|
|
38
|
+
class="base-Button text-lg inline-flex items-center justify-center select-none appearance-none m-0 relative normal-case align-middle transition-colors duration-350 ease-out shrink-0 outline-none [[data-component-type="button"]+&]:ml cursor-pointer no-underline hover:no-underline rounded-sm shadow-none focus-visible:shadow-[0_0_0_3px_rgba(32,78,207,0.48)] focus-within:shadow-[0_0_0_3px_rgba(32,78,207,0.48)] border-none text-white visited:text-white hover:bg-[#4269D6] active:bg-[#1A41AB] bg-blue min-w h-8 py-0 px-4"
|
|
39
39
|
data-component-type="button"
|
|
40
40
|
role="button"
|
|
41
41
|
tabindex="0"
|
|
@@ -89,7 +89,7 @@ exports[`useNotifications error notification render 1`] = `
|
|
|
89
89
|
</div>
|
|
90
90
|
<button
|
|
91
91
|
aria-disabled="false"
|
|
92
|
-
class="base-Button text-lg inline-flex items-center justify-center select-none appearance-none m-0 normal-case align-middle transition-colors duration-350 ease-out shrink-0 outline-none [
|
|
92
|
+
class="base-Button text-lg inline-flex items-center justify-center select-none appearance-none m-0 normal-case align-middle transition-colors duration-350 ease-out shrink-0 outline-none [[data-component-type="button"]+&]:ml cursor-pointer rounded-full w-[1.5em] text-white visited:text-white focus-visible:shadow-[0_0_0_3px_rgba(32,78,207,0.48)] absolute right-[0.5em] top-[0.75em] bg-transparent border-none p-0 h-[1em] hover:bg-transparent active:bg-transparent"
|
|
93
93
|
data-component-type="button"
|
|
94
94
|
role="button"
|
|
95
95
|
tabindex="0"
|
|
@@ -126,7 +126,7 @@ exports[`useNotifications info notification render 1`] = `
|
|
|
126
126
|
>
|
|
127
127
|
<button
|
|
128
128
|
aria-disabled="false"
|
|
129
|
-
class="base-Button text-lg inline-flex items-center justify-center select-none appearance-none m-0 relative normal-case align-middle transition-colors duration-350 ease-out shrink-0 outline-none [
|
|
129
|
+
class="base-Button text-lg inline-flex items-center justify-center select-none appearance-none m-0 relative normal-case align-middle transition-colors duration-350 ease-out shrink-0 outline-none [[data-component-type="button"]+&]:ml cursor-pointer no-underline hover:no-underline rounded-sm shadow-none focus-visible:shadow-[0_0_0_3px_rgba(32,78,207,0.48)] focus-within:shadow-[0_0_0_3px_rgba(32,78,207,0.48)] border-none text-white visited:text-white hover:bg-[#4269D6] active:bg-[#1A41AB] bg-blue min-w h-8 py-0 px-4"
|
|
130
130
|
data-component-type="button"
|
|
131
131
|
role="button"
|
|
132
132
|
tabindex="0"
|
|
@@ -140,7 +140,7 @@ exports[`useNotifications info notification render 1`] = `
|
|
|
140
140
|
</button>
|
|
141
141
|
<button
|
|
142
142
|
aria-disabled="false"
|
|
143
|
-
class="base-Button text-lg inline-flex items-center justify-center select-none appearance-none m-0 relative normal-case align-middle transition-colors duration-350 ease-out shrink-0 outline-none [
|
|
143
|
+
class="base-Button text-lg inline-flex items-center justify-center select-none appearance-none m-0 relative normal-case align-middle transition-colors duration-350 ease-out shrink-0 outline-none [[data-component-type="button"]+&]:ml cursor-pointer no-underline hover:no-underline rounded-sm shadow-none focus-visible:shadow-[0_0_0_3px_rgba(32,78,207,0.48)] focus-within:shadow-[0_0_0_3px_rgba(32,78,207,0.48)] border-none text-white visited:text-white hover:bg-[#4269D6] active:bg-[#1A41AB] bg-blue min-w h-8 py-0 px-4"
|
|
144
144
|
data-component-type="button"
|
|
145
145
|
role="button"
|
|
146
146
|
tabindex="0"
|
|
@@ -154,7 +154,7 @@ exports[`useNotifications info notification render 1`] = `
|
|
|
154
154
|
</button>
|
|
155
155
|
<button
|
|
156
156
|
aria-disabled="false"
|
|
157
|
-
class="base-Button text-lg inline-flex items-center justify-center select-none appearance-none m-0 relative normal-case align-middle transition-colors duration-350 ease-out shrink-0 outline-none [
|
|
157
|
+
class="base-Button text-lg inline-flex items-center justify-center select-none appearance-none m-0 relative normal-case align-middle transition-colors duration-350 ease-out shrink-0 outline-none [[data-component-type="button"]+&]:ml cursor-pointer no-underline hover:no-underline rounded-sm shadow-none focus-visible:shadow-[0_0_0_3px_rgba(32,78,207,0.48)] focus-within:shadow-[0_0_0_3px_rgba(32,78,207,0.48)] border-none text-white visited:text-white hover:bg-[#4269D6] active:bg-[#1A41AB] bg-blue min-w h-8 py-0 px-4"
|
|
158
158
|
data-component-type="button"
|
|
159
159
|
role="button"
|
|
160
160
|
tabindex="0"
|
|
@@ -211,7 +211,7 @@ exports[`useNotifications info notification render 1`] = `
|
|
|
211
211
|
</div>
|
|
212
212
|
<button
|
|
213
213
|
aria-disabled="false"
|
|
214
|
-
class="base-Button text-lg inline-flex items-center justify-center select-none appearance-none m-0 normal-case align-middle transition-colors duration-350 ease-out shrink-0 outline-none [
|
|
214
|
+
class="base-Button text-lg inline-flex items-center justify-center select-none appearance-none m-0 normal-case align-middle transition-colors duration-350 ease-out shrink-0 outline-none [[data-component-type="button"]+&]:ml cursor-pointer rounded-full w-[1.5em] text-white visited:text-white focus-visible:shadow-[0_0_0_3px_rgba(32,78,207,0.48)] absolute right-[0.5em] top-[0.75em] bg-transparent border-none p-0 h-[1em] hover:bg-transparent active:bg-transparent"
|
|
215
215
|
data-component-type="button"
|
|
216
216
|
role="button"
|
|
217
217
|
tabindex="0"
|
|
@@ -248,7 +248,7 @@ exports[`useNotifications success notification render 1`] = `
|
|
|
248
248
|
>
|
|
249
249
|
<button
|
|
250
250
|
aria-disabled="false"
|
|
251
|
-
class="base-Button text-lg inline-flex items-center justify-center select-none appearance-none m-0 relative normal-case align-middle transition-colors duration-350 ease-out shrink-0 outline-none [
|
|
251
|
+
class="base-Button text-lg inline-flex items-center justify-center select-none appearance-none m-0 relative normal-case align-middle transition-colors duration-350 ease-out shrink-0 outline-none [[data-component-type="button"]+&]:ml cursor-pointer no-underline hover:no-underline rounded-sm shadow-none focus-visible:shadow-[0_0_0_3px_rgba(32,78,207,0.48)] focus-within:shadow-[0_0_0_3px_rgba(32,78,207,0.48)] border-none text-white visited:text-white hover:bg-[#4269D6] active:bg-[#1A41AB] bg-blue min-w h-8 py-0 px-4"
|
|
252
252
|
data-component-type="button"
|
|
253
253
|
role="button"
|
|
254
254
|
tabindex="0"
|
|
@@ -262,7 +262,7 @@ exports[`useNotifications success notification render 1`] = `
|
|
|
262
262
|
</button>
|
|
263
263
|
<button
|
|
264
264
|
aria-disabled="false"
|
|
265
|
-
class="base-Button text-lg inline-flex items-center justify-center select-none appearance-none m-0 relative normal-case align-middle transition-colors duration-350 ease-out shrink-0 outline-none [
|
|
265
|
+
class="base-Button text-lg inline-flex items-center justify-center select-none appearance-none m-0 relative normal-case align-middle transition-colors duration-350 ease-out shrink-0 outline-none [[data-component-type="button"]+&]:ml cursor-pointer no-underline hover:no-underline rounded-sm shadow-none focus-visible:shadow-[0_0_0_3px_rgba(32,78,207,0.48)] focus-within:shadow-[0_0_0_3px_rgba(32,78,207,0.48)] border-none text-white visited:text-white hover:bg-[#4269D6] active:bg-[#1A41AB] bg-blue min-w h-8 py-0 px-4"
|
|
266
266
|
data-component-type="button"
|
|
267
267
|
role="button"
|
|
268
268
|
tabindex="0"
|
|
@@ -276,7 +276,7 @@ exports[`useNotifications success notification render 1`] = `
|
|
|
276
276
|
</button>
|
|
277
277
|
<button
|
|
278
278
|
aria-disabled="false"
|
|
279
|
-
class="base-Button text-lg inline-flex items-center justify-center select-none appearance-none m-0 relative normal-case align-middle transition-colors duration-350 ease-out shrink-0 outline-none [
|
|
279
|
+
class="base-Button text-lg inline-flex items-center justify-center select-none appearance-none m-0 relative normal-case align-middle transition-colors duration-350 ease-out shrink-0 outline-none [[data-component-type="button"]+&]:ml cursor-pointer no-underline hover:no-underline rounded-sm shadow-none focus-visible:shadow-[0_0_0_3px_rgba(32,78,207,0.48)] focus-within:shadow-[0_0_0_3px_rgba(32,78,207,0.48)] border-none text-white visited:text-white hover:bg-[#4269D6] active:bg-[#1A41AB] bg-blue min-w h-8 py-0 px-4"
|
|
280
280
|
data-component-type="button"
|
|
281
281
|
role="button"
|
|
282
282
|
tabindex="0"
|
|
@@ -330,7 +330,7 @@ exports[`useNotifications success notification render 1`] = `
|
|
|
330
330
|
</div>
|
|
331
331
|
<button
|
|
332
332
|
aria-disabled="false"
|
|
333
|
-
class="base-Button text-lg inline-flex items-center justify-center select-none appearance-none m-0 normal-case align-middle transition-colors duration-350 ease-out shrink-0 outline-none [
|
|
333
|
+
class="base-Button text-lg inline-flex items-center justify-center select-none appearance-none m-0 normal-case align-middle transition-colors duration-350 ease-out shrink-0 outline-none [[data-component-type="button"]+&]:ml cursor-pointer rounded-full w-[1.5em] text-white visited:text-white focus-visible:shadow-[0_0_0_3px_rgba(32,78,207,0.48)] absolute right-[0.5em] top-[0.75em] bg-transparent border-none p-0 h-[1em] hover:bg-transparent active:bg-transparent"
|
|
334
334
|
data-component-type="button"
|
|
335
335
|
role="button"
|
|
336
336
|
tabindex="0"
|
package/LICENSE
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2021-2022 Toptal, LLC
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
6
|
-
this software and associated documentation files (the “Software”), to deal in
|
|
7
|
-
the Software without restriction, including without limitation the rights to
|
|
8
|
-
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
9
|
-
the Software, and to permit persons to whom the Software is furnished to do so,
|
|
10
|
-
subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
17
|
-
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
18
|
-
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
19
|
-
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
20
|
-
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|