@sqrzro/admin 4.0.0-alpha.24 → 4.0.0-alpha.26
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/styles/classnames.js +37 -2
- package/dist/styles/icons.js +8 -1
- package/package.json +3 -3
|
@@ -31,7 +31,7 @@ const classNameConfig = twx({
|
|
|
31
31
|
},
|
|
32
32
|
badge: {
|
|
33
33
|
root: {
|
|
34
|
-
default: 'inline-flex items-center gap-1.5 rounded-full bg-slate-100
|
|
34
|
+
default: 'inline-flex items-center gap-1.5 rounded-full bg-gradient-to-br from-slate-100 to-slate-200 px-2 py-1 text-xs font-medium text-slate-600',
|
|
35
35
|
props: {
|
|
36
36
|
isDanger: 'border-red-300 from-red-100 to-red-200 text-red-700',
|
|
37
37
|
isError: 'border-red-300 from-red-100 to-red-200 text-red-700',
|
|
@@ -80,6 +80,16 @@ const classNameConfig = twx({
|
|
|
80
80
|
},
|
|
81
81
|
},
|
|
82
82
|
},
|
|
83
|
+
colorInput: {
|
|
84
|
+
root: {
|
|
85
|
+
default: 'text-md flex min-h-10 w-36 items-center gap-2 rounded border border-slate-300 bg-white pl-2',
|
|
86
|
+
states: { isError: 'border-red-500' },
|
|
87
|
+
},
|
|
88
|
+
icon: 'h-6 w-6 rounded-full border border-slate-300',
|
|
89
|
+
label: 'block leading-none',
|
|
90
|
+
placeholder: 'block leading-none text-slate-400',
|
|
91
|
+
clear: 'mr-2 h-4 w-4 flex-none rounded-full border border-slate-500 text-slate-600',
|
|
92
|
+
},
|
|
83
93
|
container: {
|
|
84
94
|
root: 'mx-auto w-full max-w-6xl px-8',
|
|
85
95
|
},
|
|
@@ -175,10 +185,24 @@ const classNameConfig = twx({
|
|
|
175
185
|
props: { isEditable: 'col-start-2' },
|
|
176
186
|
},
|
|
177
187
|
},
|
|
188
|
+
imageInput: {
|
|
189
|
+
root: 'h-48 w-full rounded border border-slate-300 bg-slate-50 p-2',
|
|
190
|
+
icon: {
|
|
191
|
+
default: 'mx-auto mb-3 block h-10 w-10 rounded-full text-slate-400',
|
|
192
|
+
props: { isError: 'text-error' },
|
|
193
|
+
},
|
|
194
|
+
title: {
|
|
195
|
+
default: 'mb-1 font-semibold',
|
|
196
|
+
props: { isError: 'text-error' },
|
|
197
|
+
},
|
|
198
|
+
description: 'mb-2 text-xs italic text-slate-700',
|
|
199
|
+
image: 'h-full w-full object-contain',
|
|
200
|
+
},
|
|
178
201
|
infoPanel: {
|
|
179
202
|
root: {
|
|
180
|
-
default: '
|
|
203
|
+
default: 'w-full rounded border bg-gradient-to-br p-4 text-left',
|
|
181
204
|
props: {
|
|
205
|
+
hasIcon: 'grid grid-cols-[min-content_1fr] gap-2 pl-3',
|
|
182
206
|
isDanger: 'border-red-300 from-red-100 to-red-200 text-red-700',
|
|
183
207
|
isError: 'border-red-300 from-red-100 to-red-200 text-red-700',
|
|
184
208
|
isInfo: 'border-sky-300 from-sky-100 to-sky-200 text-sky-700',
|
|
@@ -186,6 +210,17 @@ const classNameConfig = twx({
|
|
|
186
210
|
isWarning: 'border-yellow-300 from-yellow-100 to-yellow-200 text-yellow-700',
|
|
187
211
|
},
|
|
188
212
|
},
|
|
213
|
+
content: 'flex flex-col gap-2',
|
|
214
|
+
icon: {
|
|
215
|
+
default: 'h-5 w-5',
|
|
216
|
+
props: {
|
|
217
|
+
isDanger: 'text-red-600',
|
|
218
|
+
isError: 'text-red-600',
|
|
219
|
+
isInfo: 'text-sky-600',
|
|
220
|
+
isWarning: 'text-yellow-600',
|
|
221
|
+
isSuccess: 'text-green-600',
|
|
222
|
+
},
|
|
223
|
+
},
|
|
189
224
|
},
|
|
190
225
|
list: {
|
|
191
226
|
root: {
|
package/dist/styles/icons.js
CHANGED
|
@@ -1,14 +1,21 @@
|
|
|
1
1
|
import { ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, EyeIcon, EyeSlashIcon, XMarkIcon, } from '@heroicons/react/16/solid';
|
|
2
|
-
import { ArrowUpTrayIcon, CheckCircleIcon, ExclamationCircleIcon, XCircleIcon, } from '@heroicons/react/24/outline';
|
|
2
|
+
import { ArrowUpTrayIcon, CheckCircleIcon, ExclamationCircleIcon, InformationCircleIcon, XCircleIcon, } from '@heroicons/react/24/outline';
|
|
3
3
|
const iconConfig = {
|
|
4
4
|
'appNavigation.menu': ChevronDownIcon,
|
|
5
5
|
'calendar.next': ChevronRightIcon,
|
|
6
6
|
'calendar.previous': ChevronLeftIcon,
|
|
7
|
+
'colorInput.clear': XMarkIcon,
|
|
7
8
|
'csvInput.success': CheckCircleIcon,
|
|
8
9
|
'csvInput.upload': ArrowUpTrayIcon,
|
|
9
10
|
'dropdown.control': ChevronDownIcon,
|
|
10
11
|
'filter.clear': XCircleIcon,
|
|
11
12
|
'formField.error': ExclamationCircleIcon,
|
|
13
|
+
'imageInput.error': ExclamationCircleIcon,
|
|
14
|
+
'imageInput.upload': ArrowUpTrayIcon,
|
|
15
|
+
'infoPanel.error': ExclamationCircleIcon,
|
|
16
|
+
'infoPanel.info': InformationCircleIcon,
|
|
17
|
+
'infoPanel.success': CheckCircleIcon,
|
|
18
|
+
'infoPanel.warning': ExclamationCircleIcon,
|
|
12
19
|
'passwordComplexity.invalid': XCircleIcon,
|
|
13
20
|
'passwordComplexity.valid': CheckCircleIcon,
|
|
14
21
|
'passwordInput.visible': EyeIcon,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sqrzro/admin",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "4.0.0-alpha.
|
|
4
|
+
"version": "4.0.0-alpha.26",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"license": "ISC",
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
"react": "^19.2.4",
|
|
24
24
|
"react-dom": "^19.2.4",
|
|
25
25
|
"tailwindcss": "^4.2.2",
|
|
26
|
-
"@sqrzro/addon-auth": "^4.0.0-alpha.
|
|
27
|
-
"@sqrzro/ui": "^4.0.0-alpha.
|
|
26
|
+
"@sqrzro/addon-auth": "^4.0.0-alpha.14",
|
|
27
|
+
"@sqrzro/ui": "^4.0.0-alpha.62"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@types/react": "^19.2.14",
|