@talogic/react 0.6.4 → 0.7.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/LICENSE +21 -0
- package/README.md +2 -2
- package/app/app-shell.component.d.ts +31 -2
- package/app/index.d.ts +2 -2
- package/index.js +1588 -1059
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/talogic-react.css +1 -1
- package/tokens.css +21 -0
- package/ui/combobox/combobox-option.contract.d.ts +18 -0
- package/ui/combobox/combobox.component.d.ts +78 -0
- package/ui/combobox/index.d.ts +5 -0
- package/ui/combobox/option-search.hook.d.ts +25 -0
- package/ui/field/field-control.hook.d.ts +9 -0
- package/ui/field/index.d.ts +1 -1
- package/ui/file-drop/file-accept.policy.d.ts +25 -0
- package/ui/file-drop/file-drop-overlay.component.d.ts +31 -0
- package/ui/file-drop/index.d.ts +5 -0
- package/ui/file-drop/page-drop.hook.d.ts +29 -0
- package/ui/index.d.ts +3 -0
- package/ui/menu/index.d.ts +1 -0
- package/ui/navigation/index.d.ts +1 -1
- package/ui/navigation/tabs.component.d.ts +33 -14
- package/ui/overlay/index.d.ts +1 -0
- package/ui/overlay/portal.component.d.ts +11 -0
- package/ui/tags-input/index.d.ts +7 -0
- package/ui/tags-input/tag-entry.algorithm.d.ts +34 -0
- package/ui/tags-input/tag.component.d.ts +18 -0
- package/ui/tags-input/tags-field.recipe.d.ts +7 -0
- package/ui/tags-input/tags-input.component.d.ts +30 -0
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
|
@@ -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, 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
|
-
/**
|
|
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';
|