@talogic/react 0.6.4 → 0.8.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.
Files changed (42) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +5 -5
  3. package/app/app-shell.component.d.ts +31 -2
  4. package/app/index.d.ts +2 -2
  5. package/fonts.css +1 -1
  6. package/index.d.ts +1 -1
  7. package/index.js +1632 -1064
  8. package/index.js.map +1 -1
  9. package/package.json +2 -2
  10. package/product/product-catalogue.content.d.ts +1 -1
  11. package/talogic-react.css +1 -1
  12. package/tokens/apca-contrast.algorithm.d.ts +2 -2
  13. package/tokens/logo-color.algorithm.d.ts +2 -2
  14. package/tokens/theme.contract.d.ts +2 -2
  15. package/tokens.css +29 -3
  16. package/ui/combobox/combobox-option.contract.d.ts +18 -0
  17. package/ui/combobox/combobox.component.d.ts +78 -0
  18. package/ui/combobox/index.d.ts +5 -0
  19. package/ui/combobox/option-search.hook.d.ts +25 -0
  20. package/ui/feedback/toaster.component.d.ts +1 -1
  21. package/ui/field/field-control.hook.d.ts +9 -0
  22. package/ui/field/index.d.ts +1 -1
  23. package/ui/file-drop/file-accept.policy.d.ts +25 -0
  24. package/ui/file-drop/file-drop-overlay.component.d.ts +31 -0
  25. package/ui/file-drop/index.d.ts +5 -0
  26. package/ui/file-drop/page-drop.hook.d.ts +29 -0
  27. package/ui/index.d.ts +4 -0
  28. package/ui/menu/index.d.ts +1 -0
  29. package/ui/navigation/index.d.ts +1 -1
  30. package/ui/navigation/navigation-menu.component.d.ts +2 -1
  31. package/ui/navigation/tabs.component.d.ts +43 -16
  32. package/ui/overlay/index.d.ts +1 -0
  33. package/ui/overlay/portal.component.d.ts +11 -0
  34. package/ui/presence/index.d.ts +4 -0
  35. package/ui/presence/presence.component.d.ts +21 -0
  36. package/ui/presence/presence.recipe.d.ts +8 -0
  37. package/ui/tags-input/index.d.ts +7 -0
  38. package/ui/tags-input/tag-entry.algorithm.d.ts +34 -0
  39. package/ui/tags-input/tag.component.d.ts +18 -0
  40. package/ui/tags-input/tags-field.recipe.d.ts +7 -0
  41. package/ui/tags-input/tags-input.component.d.ts +30 -0
  42. package/web/site-header.component.d.ts +1 -1
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 talogic Automation
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USEFUL OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,8 +1,8 @@
1
1
  # @talogic/react
2
2
 
3
- The Talogic design system in React: design tokens for Tailwind CSS v4 and shadcn/ui, the shadcn/ui primitives
3
+ The talogic design system in React: design tokens for Tailwind CSS v4 and shadcn/ui, the shadcn/ui primitives
4
4
  drawn with those tokens, and patterns for each surface of the product family. The source design is the approved
5
- "Talogic Component System" canvas.
5
+ "talogic Component System" canvas.
6
6
 
7
7
  **[Read the usage guide](docs/usage.md)** for the install, the setup of a product, and how to
8
8
  replace Chakra UI. The Storybook, with every component, is at https://talogic-automation.github.io/talogic/.
@@ -61,7 +61,7 @@ Every switch is an attribute or a class, on `<html>` for a whole app or on any e
61
61
  Menus, dialogs and toasts render in a portal under `<body>`, so they follow the switches on `<html>`.
62
62
 
63
63
  Tokens use the shadcn/ui variable names (`--background`, `--primary`, `--muted-foreground`, `--sidebar-*`,
64
- `--chart-1` to `--chart-5`) plus Talogic roles (`--brand`, `--brand-text`, `--brand-soft`, `--canvas`, the status
64
+ `--chart-1` to `--chart-5`) plus talogic roles (`--brand`, `--brand-text`, `--brand-soft`, `--canvas`, the status
65
65
  colours and their `-soft` backgrounds). The family palette replaces the default Tailwind colours, so `bg-pink-500`
66
66
  and `text-orange-700` are family steps. Fonts: DM Sans for headlines (`font-display`, `type-display`, `type-h1`,
67
67
  `type-h2`), Inter for content (`font-sans`), Fira Code for code (`font-mono`).
@@ -77,11 +77,11 @@ the file and the rule disagree. `--primary-foreground`, `--sidebar-primary-foreg
77
77
  | Slice | Contents |
78
78
  |---|---|
79
79
  | `tokens` | `tokens.css`, `fonts.css`, `ThemeRoot`, `themeAttributes`, product and hue lists, `PRODUCT_HUES`, `FAMILY_PALETTE`, `HUE_FILL` |
80
- | `ui` | shadcn/ui primitives: button, badge, avatar, field (label, input, textarea, select), choice (checkbox, radio group, switch, slider, toggle group), navigation (tabs, breadcrumb, pagination, stepper, navigation menu, menubar), overlay (dialog, alert dialog, sheet, drawer, popover, tooltip), menu (dropdown menu, context menu, command), feedback (alert, toaster, progress, skeleton, spinner, empty state), layout (card, separator, scroll area, resizable, accordion, table, kbd) |
80
+ | `ui` | shadcn/ui primitives: button, badge, avatar, field (label, input, textarea, select), tags input, combobox (eager and lazy, single and multiple), file drop (`usePageDrop`, `FileDropOverlay`), choice (checkbox, radio group, switch, slider, toggle group), navigation (tabs in `pill`, `underline` and `outline`, horizontal or vertical, with counts and closable tabs, breadcrumb, pagination, stepper, navigation menu, menubar), overlay (portal, presence, dialog, alert dialog, sheet, drawer, popover, tooltip), menu (dropdown menu, context menu, command), feedback (alert, toaster, progress, skeleton, spinner, empty state), layout (card, separator, scroll area, resizable, accordion, table, kbd) |
81
81
  | `product` | `ProductLogo`, `ProductSwitcher`, `PRODUCT_CATALOGUE` |
82
82
  | `status` | `StatusBadge` and the run statuses, with the same word and colour in every product |
83
83
  | `web` | `SiteHeader`, `Hero`, `ProductCard`, `FeatureGrid`, `HowItWorks`, `PricingTable`, `Faq`, `CtaBand`, `SiteFooter` |
84
- | `app` | `AppShell` (with the ⌘K palette), `PageHeader`, `StatCard`, `FilterBar`, `FilterChip`, `RecordsTable`, `FormSection` |
84
+ | `app` | `AppShell` (with the ⌘K palette, a status bar, and the `AppShellHeader` and `AppShellBody` parts that pin a page header), `PageHeader`, `StatCard`, `FilterBar`, `FilterChip`, `RecordsTable`, `FormSection` |
85
85
  | `desktop` | `TitleBar` (Tauri drag region), `Inspector`, `FlowNode`, `TimelineLanes`, `StatusBar` |
86
86
  | `mobile` | `BottomNav`, `RecordButton`, `CaptureFrame` |
87
87
  | `class-names`, `timecode` | `cn` and `formatTimecode` |
@@ -17,6 +17,27 @@ export interface AppCommand {
17
17
  group: string;
18
18
  onSelect: () => void;
19
19
  }
20
+ /** Props of {@link AppShellHeader} and {@link AppShellBody}. */
21
+ export interface AppShellPartProps {
22
+ children: ReactNode;
23
+ className?: string;
24
+ }
25
+ /**
26
+ * The optional pinned top of a page in an {@link AppShell}, such as a {@link PageHeader} with its actions. It does
27
+ * not scroll. Render it beside an {@link AppShellBody}, as a direct child of the page (a fragment is fine).
28
+ *
29
+ * @param props - The header content.
30
+ * @returns The header area.
31
+ */
32
+ export declare function AppShellHeader({ children, className }: AppShellPartProps): import("react").JSX.Element;
33
+ /**
34
+ * The scrolling content of a page in an {@link AppShell}. With it, the page area stops scrolling as a whole, so an
35
+ * {@link AppShellHeader} above it and the shell's status bar below it stay in view.
36
+ *
37
+ * @param props - The content.
38
+ * @returns The scrolling area.
39
+ */
40
+ export declare function AppShellBody({ children, className }: AppShellPartProps): import("react").JSX.Element;
20
41
  /** Props of {@link AppShell}. */
21
42
  export interface AppShellProps {
22
43
  /** The product, for the switcher or the brand. Theme the accent with ThemeRoot or `<html data-product>`. */
@@ -51,8 +72,16 @@ export interface AppShellProps {
51
72
  };
52
73
  /** The breadcrumb at the start of the top bar. */
53
74
  breadcrumb?: ReactNode;
54
- /** Icon buttons at the end of the top bar. */
75
+ /**
76
+ * Icon buttons at the end of the top bar. Without `topActions` and `breadcrumb`, the top bar shows only below
77
+ * the md breakpoint, where it holds the button that opens the sidebar.
78
+ */
55
79
  topActions?: ReactNode;
80
+ /**
81
+ * A 40 px bar at the bottom of the content column, beside the sidebar, such as a capture state, a device and the
82
+ * last sync. It stays in place: only the page above it scrolls.
83
+ */
84
+ statusBar?: ReactNode;
56
85
  /** The commands of the palette, opened with ⌘K or Ctrl+K. Without commands, the search button and shortcut are hidden. */
57
86
  commands?: readonly AppCommand[];
58
87
  /** The page. */
@@ -68,4 +97,4 @@ export interface AppShellProps {
68
97
  * @param props - Product, navigation, user, top bar, commands and the page.
69
98
  * @returns The shell.
70
99
  */
71
- export declare function AppShell({ product, brand, workspace, onProductChange, nav, secondaryNav, sidebarFooter, sidebarNote, user, breadcrumb, topActions, commands, children, className }: AppShellProps): import("react").JSX.Element;
100
+ export declare function AppShell({ product, brand, workspace, onProductChange, nav, secondaryNav, sidebarFooter, sidebarNote, user, breadcrumb, topActions, statusBar, commands, children, className }: AppShellProps): import("react").JSX.Element;
package/app/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- export { AppShell } from './app-shell.component';
2
- export type { AppCommand, AppNavItem, AppShellProps } from './app-shell.component';
1
+ export { AppShell, AppShellBody, AppShellHeader } from './app-shell.component';
2
+ export type { AppCommand, AppNavItem, AppShellPartProps, AppShellProps } from './app-shell.component';
3
3
  export { commandShortcutLabel, useCommandShortcut, useCommandShortcutLabel } from './command-shortcut.hook';
4
4
  export { FilterBar, FilterChip } from './filter-bar.component';
5
5
  export type { FilterBarProps, FilterChipProps } from './filter-bar.component';
package/fonts.css CHANGED
@@ -1,4 +1,4 @@
1
- /* The three Talogic fonts, self-hosted from Fontsource: DM Sans for headlines, Inter for content, Fira Code for code. */
1
+ /* The three talogic fonts, self-hosted from Fontsource: DM Sans for headlines, Inter for content, Fira Code for code. */
2
2
  @import "@fontsource-variable/inter";
3
3
  @import "@fontsource-variable/dm-sans";
4
4
  @import "@fontsource-variable/fira-code";
package/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @talogic/react: the Talogic design system.
2
+ * @talogic/react: the talogic design system.
3
3
  *
4
4
  * Tokens and theme switches, shadcn/ui primitives, and patterns for each surface: the website, the web portals,
5
5
  * the desktop apps and the mobile apps. Import the styles once: `@talogic/react/tokens.css` after Tailwind, or