@datatechsolutions/ui 2.11.90 → 2.11.92

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.
Files changed (114) hide show
  1. package/README.md +58 -39
  2. package/dist/astrlabe/index.js +108 -106
  3. package/dist/astrlabe/index.mjs +5 -3
  4. package/dist/astrlabe/workflow-canvas.js +5 -3
  5. package/dist/astrlabe/workflow-canvas.mjs +4 -2
  6. package/dist/{chunk-M7PKDVKA.js → chunk-24QKSC74.js} +6 -6
  7. package/dist/{chunk-M7PKDVKA.js.map → chunk-24QKSC74.js.map} +1 -1
  8. package/dist/{chunk-R5D6LLDF.js → chunk-2RDGJXYZ.js} +67 -67
  9. package/dist/{chunk-R5D6LLDF.js.map → chunk-2RDGJXYZ.js.map} +1 -1
  10. package/dist/{chunk-MR3BLQAU.mjs → chunk-3PKG4KFY.mjs} +4 -4
  11. package/dist/{chunk-MR3BLQAU.mjs.map → chunk-3PKG4KFY.mjs.map} +1 -1
  12. package/dist/{chunk-T3S6KZN3.mjs → chunk-3SUFSAP6.mjs} +3 -3
  13. package/dist/{chunk-T3S6KZN3.mjs.map → chunk-3SUFSAP6.mjs.map} +1 -1
  14. package/dist/{chunk-QHTA2ISY.js → chunk-43GCSCQA.js} +12 -12
  15. package/dist/{chunk-QHTA2ISY.js.map → chunk-43GCSCQA.js.map} +1 -1
  16. package/dist/{chunk-UZ3FGGUP.mjs → chunk-4TY55HGO.mjs} +3 -3
  17. package/dist/{chunk-UZ3FGGUP.mjs.map → chunk-4TY55HGO.mjs.map} +1 -1
  18. package/dist/{chunk-RTQOGG4T.mjs → chunk-6NAZVG2O.mjs} +4 -4
  19. package/dist/{chunk-RTQOGG4T.mjs.map → chunk-6NAZVG2O.mjs.map} +1 -1
  20. package/dist/{chunk-S3JHPXOX.mjs → chunk-A3BFURJB.mjs} +560 -6
  21. package/dist/chunk-A3BFURJB.mjs.map +1 -0
  22. package/dist/{chunk-YXPHJ2BQ.js → chunk-ARVLVWUC.js} +18 -5
  23. package/dist/chunk-ARVLVWUC.js.map +1 -0
  24. package/dist/{chunk-FXLGNKP4.js → chunk-BUI7BCUN.js} +33 -33
  25. package/dist/{chunk-FXLGNKP4.js.map → chunk-BUI7BCUN.js.map} +1 -1
  26. package/dist/{chunk-APXM5GFL.js → chunk-DADFESAQ.js} +4 -4
  27. package/dist/{chunk-APXM5GFL.js.map → chunk-DADFESAQ.js.map} +1 -1
  28. package/dist/{chunk-64DLD6FB.js → chunk-DB64YDV2.js} +55 -55
  29. package/dist/{chunk-64DLD6FB.js.map → chunk-DB64YDV2.js.map} +1 -1
  30. package/dist/{chunk-WAOCUWO3.js → chunk-DIMLLLZR.js} +36 -36
  31. package/dist/{chunk-WAOCUWO3.js.map → chunk-DIMLLLZR.js.map} +1 -1
  32. package/dist/{chunk-K6FX26BG.mjs → chunk-DWFLIXES.mjs} +3 -3
  33. package/dist/{chunk-K6FX26BG.mjs.map → chunk-DWFLIXES.mjs.map} +1 -1
  34. package/dist/{chunk-7GDDBF6E.js → chunk-FUVJHNNI.js} +67 -67
  35. package/dist/{chunk-7GDDBF6E.js.map → chunk-FUVJHNNI.js.map} +1 -1
  36. package/dist/{chunk-FS6SU7RE.mjs → chunk-HGN5W56D.mjs} +3 -3
  37. package/dist/{chunk-FS6SU7RE.mjs.map → chunk-HGN5W56D.mjs.map} +1 -1
  38. package/dist/{chunk-TLTYLDX4.mjs → chunk-LKJZGFM4.mjs} +3 -3
  39. package/dist/{chunk-TLTYLDX4.mjs.map → chunk-LKJZGFM4.mjs.map} +1 -1
  40. package/dist/{chunk-MWZQF2D5.js → chunk-MEEFOZC4.js} +4 -4
  41. package/dist/{chunk-MWZQF2D5.js.map → chunk-MEEFOZC4.js.map} +1 -1
  42. package/dist/{chunk-ZV5ZRT6E.mjs → chunk-MLAXYDEU.mjs} +3 -3
  43. package/dist/{chunk-ZV5ZRT6E.mjs.map → chunk-MLAXYDEU.mjs.map} +1 -1
  44. package/dist/{chunk-5NOWS6T3.mjs → chunk-MZAS6TG4.mjs} +3 -3
  45. package/dist/{chunk-5NOWS6T3.mjs.map → chunk-MZAS6TG4.mjs.map} +1 -1
  46. package/dist/{chunk-DIKLHCEM.js → chunk-NA57KK4O.js} +4 -4
  47. package/dist/{chunk-DIKLHCEM.js.map → chunk-NA57KK4O.js.map} +1 -1
  48. package/dist/{chunk-ULWVYDDG.js → chunk-PTGPQJZJ.js} +15 -15
  49. package/dist/{chunk-ULWVYDDG.js.map → chunk-PTGPQJZJ.js.map} +1 -1
  50. package/dist/{chunk-64G2HBRQ.mjs → chunk-PU2KTO4O.mjs} +18 -6
  51. package/dist/chunk-PU2KTO4O.mjs.map +1 -0
  52. package/dist/{chunk-QYH6WLKE.mjs → chunk-RELMVNNR.mjs} +4 -4
  53. package/dist/{chunk-QYH6WLKE.mjs.map → chunk-RELMVNNR.mjs.map} +1 -1
  54. package/dist/{chunk-FDK3PUTV.js → chunk-SFVSDGNF.js} +129 -129
  55. package/dist/{chunk-FDK3PUTV.js.map → chunk-SFVSDGNF.js.map} +1 -1
  56. package/dist/{chunk-5EBDOY4M.js → chunk-TBPWMPZU.js} +26 -26
  57. package/dist/{chunk-5EBDOY4M.js.map → chunk-TBPWMPZU.js.map} +1 -1
  58. package/dist/{chunk-ODEUUB2T.mjs → chunk-VGSWSQQU.mjs} +4 -4
  59. package/dist/{chunk-ODEUUB2T.mjs.map → chunk-VGSWSQQU.mjs.map} +1 -1
  60. package/dist/{chunk-76XIV6VV.mjs → chunk-WI663467.mjs} +7 -7
  61. package/dist/{chunk-76XIV6VV.mjs.map → chunk-WI663467.mjs.map} +1 -1
  62. package/dist/{chunk-WETG7OO3.js → chunk-XSBZNPUO.js} +53 -53
  63. package/dist/{chunk-WETG7OO3.js.map → chunk-XSBZNPUO.js.map} +1 -1
  64. package/dist/{chunk-B3DI2QUM.js → chunk-XXYDLYIT.js} +64 -64
  65. package/dist/{chunk-B3DI2QUM.js.map → chunk-XXYDLYIT.js.map} +1 -1
  66. package/dist/{chunk-IL5RSF2U.mjs → chunk-Y3WJAYOY.mjs} +6 -6
  67. package/dist/{chunk-IL5RSF2U.mjs.map → chunk-Y3WJAYOY.mjs.map} +1 -1
  68. package/dist/{chunk-MJOYUX2C.mjs → chunk-YEWXDCCI.mjs} +4 -4
  69. package/dist/{chunk-MJOYUX2C.mjs.map → chunk-YEWXDCCI.mjs.map} +1 -1
  70. package/dist/{chunk-CM5C4M4F.mjs → chunk-ZHUPYX4Q.mjs} +3 -3
  71. package/dist/{chunk-CM5C4M4F.mjs.map → chunk-ZHUPYX4Q.mjs.map} +1 -1
  72. package/dist/{chunk-ZBX2QSNH.js → chunk-ZKUYNCAG.js} +561 -5
  73. package/dist/chunk-ZKUYNCAG.js.map +1 -0
  74. package/dist/index.d.mts +152 -2
  75. package/dist/index.d.ts +152 -2
  76. package/dist/index.js +754 -744
  77. package/dist/index.mjs +3 -1
  78. package/dist/platform/admin/index.js +12 -10
  79. package/dist/platform/admin/index.mjs +6 -4
  80. package/dist/platform/agents-workspace.js +8 -8
  81. package/dist/platform/agents-workspace.mjs +7 -7
  82. package/dist/platform/app-shell.js +5 -3
  83. package/dist/platform/app-shell.mjs +4 -2
  84. package/dist/platform/auth/index.js +29 -27
  85. package/dist/platform/auth/index.mjs +6 -4
  86. package/dist/platform/billing/index.js +5 -3
  87. package/dist/platform/billing/index.mjs +4 -2
  88. package/dist/platform/impersonation/index.js +5 -3
  89. package/dist/platform/impersonation/index.mjs +4 -2
  90. package/dist/platform/index.d.mts +1 -1
  91. package/dist/platform/index.d.ts +1 -1
  92. package/dist/platform/index.js +100 -100
  93. package/dist/platform/index.mjs +20 -20
  94. package/dist/platform/pages/index.d.mts +2 -2
  95. package/dist/platform/pages/index.d.ts +2 -2
  96. package/dist/platform/pages/index.js +197 -195
  97. package/dist/platform/pages/index.js.map +1 -1
  98. package/dist/platform/pages/index.mjs +9 -7
  99. package/dist/platform/pages/index.mjs.map +1 -1
  100. package/dist/platform/settings/index.js +9 -7
  101. package/dist/platform/settings/index.mjs +8 -6
  102. package/dist/platform/workflow-api-client.d.mts +1 -1
  103. package/dist/platform/workflow-api-client.d.ts +1 -1
  104. package/dist/platform/workflow-api-client.js +64 -60
  105. package/dist/platform/workflow-api-client.mjs +1 -1
  106. package/dist/platform/workflow-canvas-shell.js +6 -4
  107. package/dist/platform/workflow-canvas-shell.mjs +5 -3
  108. package/dist/{workflow-api-client-C8gPn_D1.d.mts → workflow-api-client-wLoap-tt.d.mts} +54 -3
  109. package/dist/{workflow-api-client-Dy1Ph8W-.d.ts → workflow-api-client-zVtc8FIl.d.ts} +54 -3
  110. package/package.json +1 -1
  111. package/dist/chunk-64G2HBRQ.mjs.map +0 -1
  112. package/dist/chunk-S3JHPXOX.mjs.map +0 -1
  113. package/dist/chunk-YXPHJ2BQ.js.map +0 -1
  114. package/dist/chunk-ZBX2QSNH.js.map +0 -1
package/README.md CHANGED
@@ -1,6 +1,8 @@
1
1
  # @datatechsolutions/ui
2
2
 
3
- React component library for the Datatech Solutions platform. 130+ components spanning core UI, forms, data display, gestures, geo maps, notifications, and marketing layouts. Includes Brazil and US regional themes.
3
+ React component library for the Datatech Solutions platform. Spans generic primitives (forms, modals, data display, gestures, geo maps), platform shells (auth, billing, admin, settings), and the workflow canvas. Consumed by every Vite SPA frontend in the monorepo.
4
+
5
+ > Read the canonical version from `package.json`.
4
6
 
5
7
  ## Install
6
8
 
@@ -8,7 +10,7 @@ React component library for the Datatech Solutions platform. 130+ components spa
8
10
  npm install @datatechsolutions/ui
9
11
  ```
10
12
 
11
- **Published as source TypeScript** no build step. Your bundler (Next.js, Vite, etc.) compiles it directly.
13
+ The package ships a built artifact (`dist/`) generated by `tsup`. Consumers import from the public subpaths declared in `package.json` `exports` never from internals.
12
14
 
13
15
  ## Design Principles
14
16
 
@@ -16,64 +18,81 @@ npm install @datatechsolutions/ui
16
18
  - **Accessible** — Built on Radix UI and Headless UI primitives
17
19
  - **Motion-rich** — Framer Motion animations with reduced-motion support
18
20
  - **Theme-aware** — Regional subdivision themes (Brazil states, US states) with palettes, flag URLs, and geo coordinates
19
- - **i18n-ready** — Integrates with next-intl for localized labels
20
-
21
- ## Component Categories
22
-
23
- | Category | Examples | Count |
24
- |----------|---------|-------|
25
- | Core | Button, Card, Input, Select, MetricCard | ~15 |
26
- | Layout | HeroSection, Container, PageHeading, SafeArea, Dock | ~10 |
27
- | Navigation | Pagination, Breadcrumb, NavigationProgress, LanguageSwitcher | ~5 |
28
- | Forms | FormField, FormInput, FormSelect, FormToggle, FormCheckbox, BaseForm, StepFormPage, DatePicker, TimePicker | ~20 |
29
- | Data Display | Table suite (12 variants), EntityCard, EntityDrawer, ListItem, CollapsibleRegionList | ~15 |
30
- | Feedback | Spinner, StatusBadge, Badge, GrowthIndicator, ProcessStatusBadge, NotificationBadge | ~10 |
31
- | Pickers | StationPicker, ChipPicker, SubdivisionPicker, BrandPicker, WheelPicker, MonthPicker | ~7 |
32
- | Filters | FilterTileButton, FilterPill, SegmentedControl, CategoryTab/Tabs, SearchFilterToolbar | ~8 |
33
- | Gestures | SwipeableRow (+ action presets), PullToRefreshContainer, EdgeSwipeIndicator | ~5 |
34
- | States | EmptyState, ErrorState, OfflineState, NoResultsState, PageEmptyState, PageLoadingState | ~7 |
35
- | Notifications | DynamicIsland, NotificationProvider, NotificationBellButton, NotificationHistoryDrawer | ~5 |
36
- | Skeletons | CardGridSkeleton, StatCardSkeleton, RegionFilterSkeleton, AnalysisSkeleton, DockSkeleton | ~8 |
37
- | Radiant (Marketing) | RadiantHeading, BentoCard, PlusGrid, RadiantStatCard, FeatureCard, AnimatedNumber | ~12 |
38
- | Geo Maps | InteractiveGeoMap, GeoMapCanvas, MapZoomControls, GeoMapLegend | ~5 |
39
- | Misc | Avatar, CookieConsent, DevModeBanner, Divider, Dropdown, ForceTouchMenu, ThemeToggle | ~15 |
21
+ - **Vite-only** — Every consumer is a Vite SPA. There is no Next.js / SSR support.
22
+
23
+ ## Subpath Exports
24
+
25
+ Top-level subpaths in `package.json` `exports` (each may have its own sub-subpaths — see `package.json` for the full list):
26
+
27
+ | Subpath | Contents |
28
+ |---|---|
29
+ | `@datatechsolutions/ui` | Components root (forms, modals, primitives, data display, geo maps, marketing layouts) |
30
+ | `@datatechsolutions/ui/platform` | Platform shells consumed by every product app |
31
+ | `@datatechsolutions/ui/platform/auth` | Sign-in, MFA, profile, route guards (windsock-integrated) |
32
+ | `@datatechsolutions/ui/platform/billing` | Plan picker, billing portal redirect, subscription gates |
33
+ | `@datatechsolutions/ui/platform/admin` | Org admin: members, invites, roles |
34
+ | `@datatechsolutions/ui/platform/settings` | User & org settings shells |
35
+ | `@datatechsolutions/ui/platform/impersonation` | Impersonation banner + admin take-over flow |
36
+ | `@datatechsolutions/ui/platform/pages` | Standard page views (dashboard, workflow list, runs, agents, datasources, rules) |
37
+ | `@datatechsolutions/ui/platform/agents-workspace` | Agent + tool + rule editors |
38
+ | `@datatechsolutions/ui/platform/app-shell` | Top-level shell, dock, breadcrumb, theme |
39
+ | `@datatechsolutions/ui/platform/rbac` | Permission/role hooks bound to windsock JWT claims |
40
+ | `@datatechsolutions/ui/platform/windsock-admin-client` | Typed client for windsock admin APIs |
41
+ | `@datatechsolutions/ui/platform/workflow-api-client` | Typed client for the workflow runtime API |
42
+ | `@datatechsolutions/ui/platform/workflow-canvas-shell` | Embeddable workflow canvas wrapper |
43
+ | `@datatechsolutions/ui/astrlabe` | Workflow canvas internals |
44
+ | `@datatechsolutions/ui/astrlabe/workflow-canvas` | Live editor canvas |
45
+ | `@datatechsolutions/ui/astrlabe/workflow-preview-canvas` | Read-only preview |
46
+ | `@datatechsolutions/ui/astrlabe/graph-node` | Node renderer + handles |
47
+ | `@datatechsolutions/ui/astrlabe/contracts` | DTOs shared with the Rust engine over HTTP |
48
+ | `@datatechsolutions/ui/brand` | Theme tokens, brand assets |
49
+ | `@datatechsolutions/ui/i18n` | i18n integration helpers |
50
+ | `@datatechsolutions/ui/router` | Router adapter (React Router) |
51
+ | `@datatechsolutions/ui/styles` / `./styles/*` | Liquid glass stylesheet |
40
52
 
41
53
  ## Themes
42
54
 
43
- ### Brazil
44
- `src/lib/themes/brazil.ts` — State palettes, accent maps, coordinates, macro regions, flag URL helpers.
45
-
46
- ### US
47
- `src/lib/themes/us.ts` — State palettes, accent maps, coordinates, macro regions, flag URL helpers.
48
-
49
- ### Custom
50
- `registerSubdivisionTheme()` to add your own regional theme with palettes, flags, and geo data.
55
+ - **Brazil** (`src/lib/themes/brazil.ts`) — state palettes, coordinates, macro regions, flag URLs
56
+ - **US** (`src/lib/themes/us.ts`)same shape
57
+ - Custom themes via `registerSubdivisionTheme()`
51
58
 
52
59
  ## Hooks
53
60
 
54
61
  | Hook | Purpose |
55
- |------|---------|
62
+ |---|---|
56
63
  | `useHaptic` / `triggerHaptic` | Haptic feedback for touch interactions |
57
64
  | `usePullToRefresh` | Pull-to-refresh interaction pattern |
58
- | `useGeoMapState` | State management for interactive geo maps |
65
+ | `useGeoMapState` | State for interactive geo maps |
59
66
  | `useNotifications` | Notification system state and actions |
60
67
 
61
68
  ## Styles
62
69
 
63
- Import the liquid glass stylesheet:
64
-
65
- ```typescript
70
+ ```ts
66
71
  import '@datatechsolutions/ui/styles'
67
72
  ```
68
73
 
69
74
  ## Peer Dependencies
70
75
 
71
- @headlessui/react, @heroicons/react, @radix-ui/react-dialog, @radix-ui/react-popover, clsx, date-fns, framer-motion, lucide-react, next, next-intl, react, react-dom, react-transition-progress, d3-geo, zod.
76
+ The canonical list is `package.json` `peerDependencies`. Currently:
77
+
78
+ - `@datatechsolutions/shared-domain`
79
+ - `@datatechsolutions/windsock`
80
+ - `@headlessui/react` >= 2
81
+ - `@heroicons/react` >= 2
82
+ - `@radix-ui/react-dialog`, `@radix-ui/react-popover`
83
+ - `@xyflow/react` >= 12 (workflow canvas)
84
+ - `clsx`, `d3-geo`, `date-fns`, `framer-motion`, `lucide-react`
85
+ - `react` >= 18, `react-dom` >= 18, `react-router` >= 7, `react-transition-progress`
86
+ - `zod` >= 3, `zustand` >= 5
87
+
88
+ > No `next` or `next-intl` — consumers must use Vite + React Router.
72
89
 
73
90
  ## Scripts
74
91
 
75
92
  | Script | Command | Description |
76
- |--------|---------|-------------|
93
+ |---|---|---|
77
94
  | `test` | `vitest run` | Run component tests |
78
95
  | `test:watch` | `vitest` | Watch mode |
79
- | `lint` | `tsc --noEmit` | Type check (no build step) |
96
+ | `lint` | `tsc --noEmit` | Type check |
97
+ | `build` | `tsup` | Build `dist/` |
98
+ | `verify:publish` | `build && lint && test` | Pre-publish gate |