@zuzjs/ui 0.2.8 → 0.3.1
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.js +266 -78
- package/dist/styles.css +71 -0
- package/package.json +1 -1
- package/src/comps/box.tsx +5 -1
- package/src/comps/button.tsx +2 -1
- package/src/comps/contextmenu.tsx +1 -3
- package/src/comps/image.tsx +15 -7
- package/src/comps/input.tsx +7 -2
- package/src/comps/toaster.tsx +9 -7
- package/src/context/AppProvider.tsx +8 -3
- package/src/context/store/lang.tsx +26 -0
- package/src/context/store/theme.tsx +15 -14
- package/src/core/defaultTheme.ts +14 -13
- package/src/core/index.ts +74 -2
- package/src/hooks/index.tsx +2 -1
- package/src/hooks/useContextMenu.tsx +88 -0
- package/src/hooks/useImage.tsx +75 -49
- package/src/hooks/useLang.tsx +9 -0
- package/src/index.tsx +2 -0
- package/src/scss/props.scss +10 -0
- package/src/scss/style.scss +27 -0
package/src/scss/style.scss
CHANGED
|
@@ -103,4 +103,31 @@
|
|
|
103
103
|
left: 20px;
|
|
104
104
|
}
|
|
105
105
|
}
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.zuz-contextmenu{
|
|
109
|
+
min-width: 220px;
|
|
110
|
+
border-radius: 5px;
|
|
111
|
+
padding: 4px;
|
|
112
|
+
background: rgba(34,34,34,0.5);
|
|
113
|
+
border: 1px rgba(255,255,255,0.25) solid;
|
|
114
|
+
box-shadow: 0px 1px 3px rgba(0, 0, 0, .45);
|
|
115
|
+
backdrop-filter: blur(20px);
|
|
116
|
+
button{
|
|
117
|
+
border: 0px;
|
|
118
|
+
text-align: left;
|
|
119
|
+
padding: 4px 6px;
|
|
120
|
+
background: rgba(0, 0, 0, 0);
|
|
121
|
+
cursor: pointer;
|
|
122
|
+
color: #fff;
|
|
123
|
+
border-radius: 4px;
|
|
124
|
+
&:hover{
|
|
125
|
+
background: #385fd2;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
.line{
|
|
129
|
+
height: 1px;
|
|
130
|
+
background: rgba(255,255,255,0.25);
|
|
131
|
+
margin: 4px 6px;
|
|
132
|
+
}
|
|
106
133
|
}
|