@sqrzro/admin 4.0.0-alpha.25 → 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.
@@ -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 bg-gradient-to-br px-2 py-1 text-xs font-medium text-slate-600',
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',
@@ -185,10 +185,24 @@ const classNameConfig = twx({
185
185
  props: { isEditable: 'col-start-2' },
186
186
  },
187
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
+ },
188
201
  infoPanel: {
189
202
  root: {
190
- default: 'flex w-full gap-2 rounded border bg-gradient-to-br p-4 text-left',
203
+ default: 'w-full rounded border bg-gradient-to-br p-4 text-left',
191
204
  props: {
205
+ hasIcon: 'grid grid-cols-[min-content_1fr] gap-2 pl-3',
192
206
  isDanger: 'border-red-300 from-red-100 to-red-200 text-red-700',
193
207
  isError: 'border-red-300 from-red-100 to-red-200 text-red-700',
194
208
  isInfo: 'border-sky-300 from-sky-100 to-sky-200 text-sky-700',
@@ -196,6 +210,17 @@ const classNameConfig = twx({
196
210
  isWarning: 'border-yellow-300 from-yellow-100 to-yellow-200 text-yellow-700',
197
211
  },
198
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
+ },
199
224
  },
200
225
  list: {
201
226
  root: {
@@ -1,5 +1,5 @@
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,
@@ -10,6 +10,12 @@ const iconConfig = {
10
10
  'dropdown.control': ChevronDownIcon,
11
11
  'filter.clear': XCircleIcon,
12
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,
13
19
  'passwordComplexity.invalid': XCircleIcon,
14
20
  'passwordComplexity.valid': CheckCircleIcon,
15
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.25",
4
+ "version": "4.0.0-alpha.26",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "license": "ISC",
@@ -24,7 +24,7 @@
24
24
  "react-dom": "^19.2.4",
25
25
  "tailwindcss": "^4.2.2",
26
26
  "@sqrzro/addon-auth": "^4.0.0-alpha.14",
27
- "@sqrzro/ui": "^4.0.0-alpha.61"
27
+ "@sqrzro/ui": "^4.0.0-alpha.62"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@types/react": "^19.2.14",