@umituz/web-dashboard 11.4.2 → 11.5.0

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umituz/web-dashboard",
3
- "version": "11.4.2",
3
+ "version": "11.5.0",
4
4
  "description": "Installable app skeleton for the fleet — layouts, analytics (dependency-free SVG charts), calendar, onboarding flow permissions/module registry; udb-* stylesheet on design-system tokens",
5
5
  "type": "module",
6
6
  "main": "./src/index.ts",
@@ -2,6 +2,7 @@ import { useEffect, useRef, useState } from 'react';
2
2
  import { Button } from '@umituz/web-design-system/atoms';
3
3
  import { Sparkles } from 'lucide-react';
4
4
  import { PrimaryButton } from '../PrimaryButton';
5
+ import { renderBundledIcon } from '../renderBundledIcon';
5
6
  import { useOnboardingIntl } from '../OnboardingIntl';
6
7
  import type { ValueDeliveryScreenConfig } from '../../types/screens';
7
8
 
@@ -54,10 +55,21 @@ export function ValueDeliveryScreen<TResult = unknown>({
54
55
 
55
56
  <h2 className="udb-onb-title udb-onb-title--display">{config.title}</h2>
56
57
 
57
- <div className="udb-onb-result">
58
- <pre className="udb-onb-result__pre">{JSON.stringify(config.result, null, 2)}</pre>
59
-
60
- </div>
58
+ {config.items && config.items.length > 0 ? (
59
+ <ul className="udb-onb-result__list">
60
+ {config.items.map((item) => (
61
+ <li key={item.id} className="udb-onb-result__row">
62
+ {renderBundledIcon(item.iconName, 'udb-onb-result__row-icon')}
63
+ <span className="udb-onb-result__row-label">{item.label}</span>
64
+ {item.value != null && <span className="udb-onb-result__row-value">{item.value}</span>}
65
+ </li>
66
+ ))}
67
+ </ul>
68
+ ) : (
69
+ <div className="udb-onb-result">
70
+ <pre className="udb-onb-result__pre">{JSON.stringify(config.result, null, 2)}</pre>
71
+ </div>
72
+ )}
61
73
 
62
74
  {config.shareConfig && (
63
75
  <div className="udb-onb-share">
@@ -141,4 +141,6 @@ export type {
141
141
  OnboardingResult,
142
142
  OrganizationDetailsData,
143
143
  OrganizationDetailsScreenConfig,
144
+ ValueDeliveryItem,
145
+ ValueDeliveryScreenConfig,
144
146
  } from './types';
@@ -6,21 +6,35 @@ import {
6
6
  Award,
7
7
  Ban,
8
8
  Bell,
9
+ Bird,
9
10
  BookOpen,
11
+ Boxes,
12
+ Beef,
13
+ CalendarDays,
10
14
  Camera,
11
15
  Check,
12
16
  CheckCircle2,
17
+ ClipboardCheck,
18
+ CloudSun,
13
19
  Download,
20
+ Droplets,
14
21
  Dumbbell,
22
+ Egg,
23
+ Factory,
15
24
  GraduationCap,
16
25
  Headphones,
17
26
  HeartPulse,
27
+ Hexagon,
18
28
  Image,
19
29
  Infinity as InfinityIcon,
30
+ LandPlot,
31
+ ListChecks,
20
32
  Lock,
21
33
  MapPin,
34
+ MapPinned,
22
35
  MessageCircle,
23
36
  Mic,
37
+ Milk,
24
38
  Moon,
25
39
  Palette,
26
40
  PenTool,
@@ -32,11 +46,15 @@ import {
32
46
  ShieldCheck,
33
47
  Smile,
34
48
  Sparkles,
49
+ Sprout,
35
50
  Square,
36
51
  Star,
37
52
  Theater,
53
+ Tractor,
38
54
  Tv,
39
55
  Users,
56
+ Wallet,
57
+ Wheat,
40
58
  X,
41
59
  Zap,
42
60
  } from 'lucide-react';
@@ -48,21 +66,35 @@ const ICON_REGISTRY: Readonly<Record<string, LucideIcon>> = {
48
66
  Award,
49
67
  Ban,
50
68
  Bell,
69
+ Bird,
51
70
  BookOpen,
71
+ Boxes,
72
+ Beef,
73
+ CalendarDays,
52
74
  Camera,
53
75
  Check,
54
76
  CheckCircle2,
77
+ ClipboardCheck,
78
+ CloudSun,
55
79
  Download,
80
+ Droplets,
56
81
  Dumbbell,
82
+ Egg,
83
+ Factory,
57
84
  GraduationCap,
58
85
  Headphones,
59
86
  HeartPulse,
87
+ Hexagon,
60
88
  Image,
61
89
  Infinity: InfinityIcon,
90
+ LandPlot,
91
+ ListChecks,
62
92
  Lock,
63
93
  MapPin,
94
+ MapPinned,
64
95
  MessageCircle,
65
96
  Mic,
97
+ Milk,
66
98
  Moon,
67
99
  Palette,
68
100
  PenTool,
@@ -74,11 +106,15 @@ const ICON_REGISTRY: Readonly<Record<string, LucideIcon>> = {
74
106
  ShieldCheck,
75
107
  Smile,
76
108
  Sparkles,
109
+ Sprout,
77
110
  Square,
78
111
  Star,
79
112
  Theater,
113
+ Tractor,
80
114
  Tv,
81
115
  Users,
116
+ Wallet,
117
+ Wheat,
82
118
  X,
83
119
  Zap,
84
120
  };
@@ -4,6 +4,8 @@ export type {
4
4
  OnboardingOption,
5
5
  OrganizationDetailsData,
6
6
  OrganizationDetailsScreenConfig,
7
+ ValueDeliveryItem,
8
+ ValueDeliveryScreenConfig,
7
9
  } from './screens';
8
10
  export type {
9
11
  OnboardingConfig,
@@ -119,12 +119,20 @@ export type AppDemoScreenConfig = BaseScreen<'app-demo', unknown> & {
119
119
  demo: DemoConfig;
120
120
  };
121
121
 
122
+ export interface ValueDeliveryItem {
123
+ id: string;
124
+ label: string;
125
+ value?: string;
126
+ iconName?: string;
127
+ }
128
+
122
129
  export type ValueDeliveryScreenConfig<TResult = unknown> = BaseScreen<
123
130
  'value-delivery',
124
131
  TResult
125
132
  > & {
126
133
  title: string;
127
134
  result: TResult;
135
+ items?: ReadonlyArray<ValueDeliveryItem>;
128
136
  shareConfig?: {
129
137
  text: string;
130
138
  url?: string;
@@ -538,6 +538,25 @@
538
538
  .udb-header__search-kbd {
539
539
  margin-left: var(--udb-space-2);
540
540
  }
541
+ @media (max-width: 639px) {
542
+ .udb-header {
543
+ gap: var(--udb-space-2);
544
+ padding: 0 var(--udb-space-3);
545
+ }
546
+ .udb-header__actions,
547
+ .udb-header__extra {
548
+ gap: var(--udb-space-1);
549
+ }
550
+ .udb-header__search {
551
+ width: 34px;
552
+ justify-content: center;
553
+ padding: 0;
554
+ }
555
+ .udb-header__search-text,
556
+ .udb-header__search-kbd {
557
+ display: none;
558
+ }
559
+ }
541
560
  .udb-profile-btn[data-state="open"] .udb-profile-btn__chevron {
542
561
  transform: rotate(180deg);
543
562
  }
@@ -2159,6 +2178,44 @@
2159
2178
  white-space: pre-wrap;
2160
2179
  font-size: var(--udb-font-size-sm);
2161
2180
  }
2181
+ .udb-onb-result__list {
2182
+ list-style: none;
2183
+ margin: 0;
2184
+ padding: 0;
2185
+ width: 100%;
2186
+ max-width: 28rem;
2187
+ border: 1px solid var(--color-border);
2188
+ border-radius: var(--radius-lg);
2189
+ background: var(--color-card);
2190
+ text-align: left;
2191
+ overflow: hidden;
2192
+ }
2193
+ .udb-onb-result__row {
2194
+ display: flex;
2195
+ align-items: center;
2196
+ gap: var(--udb-space-3);
2197
+ padding: var(--udb-space-3) var(--udb-space-4);
2198
+ }
2199
+ .udb-onb-result__row + .udb-onb-result__row {
2200
+ border-top: 1px solid var(--color-border);
2201
+ }
2202
+ .udb-onb-result__row-icon {
2203
+ width: 18px;
2204
+ height: 18px;
2205
+ flex-shrink: 0;
2206
+ color: var(--color-primary);
2207
+ }
2208
+ .udb-onb-result__row-label {
2209
+ font-size: var(--udb-font-size-sm);
2210
+ color: var(--color-muted-foreground);
2211
+ }
2212
+ .udb-onb-result__row-value {
2213
+ margin-left: auto;
2214
+ font-size: var(--udb-font-size-sm);
2215
+ font-weight: 600;
2216
+ color: var(--color-foreground);
2217
+ text-align: right;
2218
+ }
2162
2219
  .udb-onb-share {
2163
2220
  display: flex;
2164
2221
  flex-direction: column;