@toptal/picasso-prompt-modal 2.0.17-alpha-fx-null-button-overridable-a6bdbbaa2.0 → 2.0.18
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 +10 -11
- package/src/PromptModal/__snapshots__/test.tsx.snap +8 -8
- package/LICENSE +0 -20
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@toptal/picasso-prompt-modal",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.18",
|
|
4
4
|
"description": "Toptal UI components library - PromptModal",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -22,30 +22,29 @@
|
|
|
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-modal": "3.0.
|
|
28
|
-
"@toptal/picasso-typography": "4.0.
|
|
29
|
-
"@toptal/picasso-utils": "2.0.
|
|
25
|
+
"@toptal/picasso-button": "4.0.7",
|
|
26
|
+
"@toptal/picasso-container": "3.1.0",
|
|
27
|
+
"@toptal/picasso-modal": "3.0.18",
|
|
28
|
+
"@toptal/picasso-typography": "4.0.1",
|
|
29
|
+
"@toptal/picasso-utils": "2.0.0"
|
|
30
30
|
},
|
|
31
31
|
"sideEffects": [
|
|
32
32
|
"**/styles.ts",
|
|
33
33
|
"**/styles.js"
|
|
34
34
|
],
|
|
35
35
|
"peerDependencies": {
|
|
36
|
-
"
|
|
37
|
-
"
|
|
36
|
+
"react": ">=16.12.0 < 19.0.0",
|
|
37
|
+
"@toptal/picasso-tailwind": ">=2.7"
|
|
38
38
|
},
|
|
39
39
|
"exports": {
|
|
40
40
|
".": "./dist-package/src/index.js"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@toptal/picasso-test-utils": "1.1.
|
|
43
|
+
"@toptal/picasso-test-utils": "1.1.1"
|
|
44
44
|
},
|
|
45
45
|
"files": [
|
|
46
46
|
"dist-package/**",
|
|
47
47
|
"!dist-package/tsconfig.tsbuildinfo",
|
|
48
48
|
"src"
|
|
49
|
-
]
|
|
50
|
-
"gitHead": "a6bdbbaa25247c35686b5c9b17b14a02b9f497ba"
|
|
49
|
+
]
|
|
51
50
|
}
|
|
@@ -55,7 +55,7 @@ exports[`PromptModal renders 1`] = `
|
|
|
55
55
|
>
|
|
56
56
|
<button
|
|
57
57
|
aria-disabled="false"
|
|
58
|
-
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 [
|
|
58
|
+
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 border-solid text-black hover:border-black visited:text-black active:bg-gray active:border-black bg-white border-gray min-w h-8 py-0 px-4"
|
|
59
59
|
data-component-type="button"
|
|
60
60
|
role="button"
|
|
61
61
|
tabindex="0"
|
|
@@ -69,7 +69,7 @@ exports[`PromptModal renders 1`] = `
|
|
|
69
69
|
</button>
|
|
70
70
|
<button
|
|
71
71
|
aria-disabled="false"
|
|
72
|
-
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 [
|
|
72
|
+
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-[#27D496] active:bg-[#00A96C] bg-green min-w h-8 py-0 px-4"
|
|
73
73
|
data-component-type="button"
|
|
74
74
|
role="button"
|
|
75
75
|
tabindex="0"
|
|
@@ -99,7 +99,7 @@ exports[`PromptModal showPrompt opens and closes modal on Submit action 1`] = `
|
|
|
99
99
|
>
|
|
100
100
|
<button
|
|
101
101
|
aria-disabled="false"
|
|
102
|
-
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 [
|
|
102
|
+
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"
|
|
103
103
|
data-component-type="button"
|
|
104
104
|
role="button"
|
|
105
105
|
tabindex="0"
|
|
@@ -125,7 +125,7 @@ exports[`PromptModal showPrompt opens and closes modal on Submit action 2`] = `
|
|
|
125
125
|
<button
|
|
126
126
|
aria-disabled="false"
|
|
127
127
|
aria-hidden="true"
|
|
128
|
-
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 [
|
|
128
|
+
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"
|
|
129
129
|
data-component-type="button"
|
|
130
130
|
role="button"
|
|
131
131
|
tabindex="0"
|
|
@@ -183,7 +183,7 @@ exports[`PromptModal showPrompt opens and closes modal on Submit action 2`] = `
|
|
|
183
183
|
>
|
|
184
184
|
<button
|
|
185
185
|
aria-disabled="false"
|
|
186
|
-
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 [
|
|
186
|
+
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 border-solid text-black hover:border-black visited:text-black active:bg-gray active:border-black bg-white border-gray min-w h-8 py-0 px-4"
|
|
187
187
|
data-component-type="button"
|
|
188
188
|
role="button"
|
|
189
189
|
tabindex="0"
|
|
@@ -197,7 +197,7 @@ exports[`PromptModal showPrompt opens and closes modal on Submit action 2`] = `
|
|
|
197
197
|
</button>
|
|
198
198
|
<button
|
|
199
199
|
aria-disabled="false"
|
|
200
|
-
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 [
|
|
200
|
+
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-[#27D496] active:bg-[#00A96C] bg-green min-w h-8 py-0 px-4"
|
|
201
201
|
data-component-type="button"
|
|
202
202
|
role="button"
|
|
203
203
|
tabindex="0"
|
|
@@ -229,7 +229,7 @@ exports[`PromptModal showPrompt opens and closes modal on Submit action 3`] = `
|
|
|
229
229
|
>
|
|
230
230
|
<button
|
|
231
231
|
aria-disabled="false"
|
|
232
|
-
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 [
|
|
232
|
+
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"
|
|
233
233
|
data-component-type="button"
|
|
234
234
|
role="button"
|
|
235
235
|
tabindex="0"
|
|
@@ -254,7 +254,7 @@ exports[`PromptModal showPrompt with input returns result on Submit action 1`] =
|
|
|
254
254
|
>
|
|
255
255
|
<button
|
|
256
256
|
aria-disabled="false"
|
|
257
|
-
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 [
|
|
257
|
+
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"
|
|
258
258
|
data-component-type="button"
|
|
259
259
|
role="button"
|
|
260
260
|
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.
|