@indxsearch/systm 2.25.0-beta.0 → 2.25.0-beta.2
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/CHANGELOG.md +17 -0
- package/dist/components/Chat/ChatLauncher.d.ts +38 -0
- package/dist/components/Chat/index.d.ts +1 -0
- package/dist/components/Pagination/Pagination.d.ts +26 -0
- package/dist/components/SearchField/SearchField.d.ts +4 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.es.js +703 -579
- package/dist/systm.css +1 -1
- package/dist/systm.shadow.css +1 -1
- package/package.json +8 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 2.25.0-beta.2
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 1e4c371: New `Pagination`: previous, the first and last pages, the current page with its neighbours, and next. The current page is marked as a current tab is. Controlled with `page`, `pageCount` and `onPageChange`, in micro and default sizes.
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- 8ceb7ef: `FilterPanelBase` takes its background, padding, radius, the gap below it and an optional divider from CSS custom properties (`--filter-panel-background`, `--filter-panel-padding`, `--filter-panel-radius`, `--filter-panel-gap`, `--filter-panel-divider`), so a layout can draw filter panels as sections on a plain page rather than cards. Unset, they look as before.
|
|
12
|
+
|
|
13
|
+
## 2.25.0-beta.1
|
|
14
|
+
|
|
15
|
+
### Minor Changes
|
|
16
|
+
|
|
17
|
+
- fff9a3e: New `ChatLauncher` in the Chat family: a launcher button in a corner of the page and a chat window over it, which the launcher opens and closes, with the page usable beside it. You give it the content: a thread and a `Composer`, or intrface's `AskChat`. It has a title, header actions and a footer for your own ways on. Escape closes it, and its content stays while it is closed. Put it in the window's corner, or `contained` inside a box of yours.
|
|
18
|
+
- f231695: `SearchField` gets `filled`: the field in the grey of a checkbox, with no line, for a search inside a panel, such as a long facet's own search field.
|
|
19
|
+
|
|
3
20
|
## 2.25.0-beta.0
|
|
4
21
|
|
|
5
22
|
### Minor Changes
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { Button } from '../Button/Button';
|
|
3
|
+
export interface ChatLauncherProps {
|
|
4
|
+
/** The window's title, in its head. */
|
|
5
|
+
title: React.ReactNode;
|
|
6
|
+
/** What the window holds: a conversation, its empty state, a composer. */
|
|
7
|
+
children: React.ReactNode;
|
|
8
|
+
/** Buttons in the window's head, before nothing: the launcher below is its Close. */
|
|
9
|
+
headerActions?: React.ReactNode;
|
|
10
|
+
/** Under the window's content: the page's own ways on ("Talk to a person"). */
|
|
11
|
+
footer?: React.ReactNode;
|
|
12
|
+
/** The launcher's word while closed. Default "Ask". */
|
|
13
|
+
label?: string;
|
|
14
|
+
/** The launcher's word while open. Default "Close". */
|
|
15
|
+
closeLabel?: string;
|
|
16
|
+
/** The launcher's icon. Default the pixl AI agent. */
|
|
17
|
+
icon?: React.ComponentProps<typeof Button>['iconLeft'];
|
|
18
|
+
/** Open, for a page that controls it; with `onOpenChange`. */
|
|
19
|
+
open?: boolean;
|
|
20
|
+
onOpenChange?: (open: boolean) => void;
|
|
21
|
+
/** Open at first, uncontrolled. */
|
|
22
|
+
defaultOpen?: boolean;
|
|
23
|
+
/** The corner. Default bottom right. */
|
|
24
|
+
corner?: 'bottom-right' | 'bottom-left';
|
|
25
|
+
/** In a positioned box of the page's (a preview, an embed) rather than the window's corner. */
|
|
26
|
+
contained?: boolean;
|
|
27
|
+
/** The window's accessible name, when `title` is not text. */
|
|
28
|
+
'aria-label'?: string;
|
|
29
|
+
className?: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* A chat in a corner of the page (Nov 2026): a launcher button, and over it a window the launcher
|
|
33
|
+
* opens and closes, the page usable beside it. For a help or support assistant apart from the page's
|
|
34
|
+
* own search. The window is a surface with a border, never a shadow; its content is the caller's
|
|
35
|
+
* (`ChatPanel`'s thread and `Composer`, or intrface's AskChat). Escape closes it, and its content
|
|
36
|
+
* stays mounted while closed, so a conversation survives closing.
|
|
37
|
+
*/
|
|
38
|
+
export declare function ChatLauncher({ title, children, headerActions, footer, label, closeLabel, icon, open: controlled, onOpenChange, defaultOpen, corner, contained, 'aria-label': ariaLabel, className, }: ChatLauncherProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -7,3 +7,4 @@ export { Suggestions, type SuggestionsProps } from './Suggestions';
|
|
|
7
7
|
export { AnswerActions, type AnswerActionsProps } from './AnswerActions';
|
|
8
8
|
export { ToolStep, ToolSteps, type ToolStepProps, type ToolStepsProps } from './ToolStep';
|
|
9
9
|
export { Reasoning, type ReasoningProps } from './Reasoning';
|
|
10
|
+
export { ChatLauncher, type ChatLauncherProps } from './ChatLauncher';
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface PaginationProps {
|
|
3
|
+
/** The page shown, from 1. */
|
|
4
|
+
page: number;
|
|
5
|
+
/** How many pages there are. Below 2 nothing is drawn. */
|
|
6
|
+
pageCount: number;
|
|
7
|
+
onPageChange: (page: number) => void;
|
|
8
|
+
/** Pages listed on each side of the current one; the first and the last are always listed. Default 1. */
|
|
9
|
+
siblings?: number;
|
|
10
|
+
size?: 'micro' | 'default';
|
|
11
|
+
/** Turns every button off, as while the page it asked for is on its way. */
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
labels?: {
|
|
14
|
+
previous?: string;
|
|
15
|
+
next?: string;
|
|
16
|
+
page?: (page: number) => string;
|
|
17
|
+
};
|
|
18
|
+
className?: string;
|
|
19
|
+
'aria-label'?: string;
|
|
20
|
+
}
|
|
21
|
+
/** The pages to list: the first, the last, the current with its siblings, and a gap (null) where
|
|
22
|
+
* pages are left out. A gap of one page lists that page instead, as it takes the same room. */
|
|
23
|
+
export declare function paginationItems(page: number, pageCount: number, siblings?: number): (number | null)[];
|
|
24
|
+
/** Numbered pages: previous, the pages around the current one, next. The current page is the
|
|
25
|
+
* secondary button, as a current tab; the others are ghost. (26 Nov 2026) */
|
|
26
|
+
export declare const Pagination: React.FC<PaginationProps>;
|
|
@@ -18,7 +18,10 @@ export interface SearchFieldProps extends React.InputHTMLAttributes<HTMLInputEle
|
|
|
18
18
|
* in the field. Turn it off where the page draws its own Clear (intrface's SearchInput, whose
|
|
19
19
|
* Clear also resets the filters). */
|
|
20
20
|
clearable?: boolean;
|
|
21
|
+
/** A filled field, the grey of a checkbox, with no line: for a search inside a panel (a long
|
|
22
|
+
* facet's own search), where the plain field would read as the page's own search. */
|
|
23
|
+
filled?: boolean;
|
|
21
24
|
children?: React.ReactNode;
|
|
22
25
|
}
|
|
23
|
-
export declare function SearchField({ label, error, className, showSearchIcon, searchIcon, searchIconColor, inputSize, showFocusBorder, clearable, children, id: providedId, type, onChange, ...props }: SearchFieldProps): import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
export declare function SearchField({ label, error, className, showSearchIcon, searchIcon, searchIconColor, inputSize, showFocusBorder, clearable, filled, children, id: providedId, type, onChange, ...props }: SearchFieldProps): import("react/jsx-runtime").JSX.Element;
|
|
24
27
|
export {};
|