@s_mart/nps 9.0.4 → 9.0.5
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.mjs +1 -1
- package/package.json +7 -5
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{Button as j,LIcon as I}from"@s_mart/core";import{Checkbox as R,Form as U}from"@s_mart/form";import{lineTimes as L}from"@s_mart/regular-icons";import{Backdrop as O,Typography as g}from"@mui/material";import{Button as w}from"@s_mart/core";import{Typography as f,useMediaQuery as z}from"@mui/material";import{colorPalette as y}from"@s_mart/tokens";import{useFormContext as T}from"react-hook-form";import{Fragment as $,jsx as m,jsxs as b}from"react/jsx-runtime";var B=({onSelecionarNota:t})=>{let{watch:i,setValue:o}=T(),a=z("(max-width: 500px)"),l=i("nota"),p=s=>{l!==s&&(o("nota",s),t?.(s))},n=m(f,{variant:"bodyXS",color:y.neutral[100],children:"Pouco prov\xE1vel"});return b($,{children:[a&&m("div",{style:{marginBottom:"0.5rem"},children:n}),m("div",{style:{display:"flex",gap:"0.3rem",flexWrap:"wrap",justifyContent:"center"},children:Array(11).fill(void 0).map((s,r)=>m(w,{variant:l===r?"contained":"outlined",style:{minWidth:"3rem"},onClick:()=>p(r),children:r},r))}),b("div",{style:{display:"flex",justifyContent:"space-between",marginTop:"0.5rem"},children:[m("span",{children:!a&&n}),m(f,{variant:"bodyXS",color:y.neutral[100],children:"Muito prov\xE1vel"})]})]})},v=B;import{TextField as E}from"@s_mart/form";import{jsx as V}from"react/jsx-runtime";var A=({tipo:t,sistemaNome:i})=>V(E,{name:"feedback",placeholder:t==="promotor"?`Para mim o ${i} \xE9...`:"Eu acho que...",multiline:!0,size:"large",minRows:2}),x=A;import{styled as q}from"@mui/material";import{colorPalette as D}from"@s_mart/tokens";var P=q("div")`
|
|
1
|
+
import{Button as j,LIcon as I}from"@s_mart/core";import{Checkbox as R,Form as U}from"@s_mart/form";import{lineTimes as L}from"@s_mart/regular-icons";import{Backdrop as O,Typography as g}from"@mui/material";import{Button as w}from"@s_mart/core";import{Typography as f,useMediaQuery as z}from"@mui/material";import{colorPalette as y}from"@s_mart/tokens";import{useFormContext as T}from"react-hook-form";import{Fragment as $,jsx as m,jsxs as b}from"react/jsx-runtime";var B=({onSelecionarNota:t})=>{let{watch:i,setValue:o}=T(),a=z("(max-width: 500px)"),l=i("nota"),p=s=>{l!==s&&(o("nota",s),t?.(s))},n=m(f,{variant:"bodyXS",color:y.neutral[100],children:"Pouco prov\xE1vel"});return b($,{children:[a&&m("div",{style:{marginBottom:"0.5rem"},children:n}),m("div",{style:{display:"flex",gap:"0.3rem",flexWrap:"wrap",justifyContent:"center"},children:Array(11).fill(void 0).map((s,r)=>m(w,{variant:l===r?"contained":"outlined",style:{minWidth:"3rem"},onClick:()=>p(r),children:r},r))}),b("div",{style:{display:"flex",justifyContent:"space-between",marginTop:"0.5rem"},children:[m("span",{children:!a&&n}),m(f,{variant:"bodyXS",color:y.neutral[100],children:"Muito prov\xE1vel"})]})]})},v=B;import{TextField as E}from"@s_mart/form";import{jsx as V}from"react/jsx-runtime";var A=({tipo:t,sistemaNome:i})=>V(E,{name:"feedback",placeholder:t==="promotor"?`Para mim o ${i} \xE9...`:"Eu acho que...",multiline:!0,size:"large",minRows:2}),x=A;import{styled as q}from"@mui/material";import{colorPalette as D}from"@s_mart/tokens";import"@mui/system";var P=q("div")`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
gap: 1rem;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@s_mart/nps",
|
|
3
|
-
"version": "9.0.
|
|
3
|
+
"version": "9.0.5",
|
|
4
4
|
"main": "./dist/index.mjs",
|
|
5
5
|
"module": "./dist/index.mjs",
|
|
6
6
|
"types": "./dist/index.d.mts",
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
"@emotion/react": "^11.11.4",
|
|
19
19
|
"@emotion/styled": "^11.13.0",
|
|
20
20
|
"@mui/material": "^6.1.3",
|
|
21
|
+
"@mui/system": "^6.4.0",
|
|
21
22
|
"@types/node": ">=20.0.0",
|
|
22
23
|
"@types/react": ">=18.3.12",
|
|
23
24
|
"@types/react-dom": ">=18.3.1",
|
|
@@ -26,8 +27,8 @@
|
|
|
26
27
|
"react-dom": ">=18.3.1",
|
|
27
28
|
"react-hook-form": "^7.51.0",
|
|
28
29
|
"zod": "^3.22.4",
|
|
29
|
-
"@s_mart/core": "9.0.
|
|
30
|
-
"@s_mart/form": "9.0.
|
|
30
|
+
"@s_mart/core": "9.0.5",
|
|
31
|
+
"@s_mart/form": "9.0.5",
|
|
31
32
|
"@s_mart/regular-icons": "6.0.6",
|
|
32
33
|
"@s_mart/tokens": "5.1.1"
|
|
33
34
|
},
|
|
@@ -38,6 +39,7 @@
|
|
|
38
39
|
"@emotion/react": "^11.11.4",
|
|
39
40
|
"@emotion/styled": "^11.13.0",
|
|
40
41
|
"@mui/material": "^6.1.3",
|
|
42
|
+
"@mui/system": "^6.4.0",
|
|
41
43
|
"@types/node": ">=20.0.0",
|
|
42
44
|
"@types/react": ">=18.3.12",
|
|
43
45
|
"@types/react-dom": ">=18.3.1",
|
|
@@ -46,8 +48,8 @@
|
|
|
46
48
|
"react-dom": ">=18.3.1",
|
|
47
49
|
"react-hook-form": "^7.51.0",
|
|
48
50
|
"zod": "^3.22.4",
|
|
49
|
-
"@s_mart/core": "9.0.
|
|
50
|
-
"@s_mart/form": "9.0.
|
|
51
|
+
"@s_mart/core": "9.0.5",
|
|
52
|
+
"@s_mart/form": "9.0.5",
|
|
51
53
|
"@s_mart/regular-icons": "6.0.6",
|
|
52
54
|
"@s_mart/tokens": "5.1.1"
|
|
53
55
|
},
|