@indxsearch/systm 2.24.0 → 2.25.0-beta.1

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 CHANGED
@@ -1,5 +1,31 @@
1
1
  # Changelog
2
2
 
3
+ ## 2.25.0-beta.1
4
+
5
+ ### Minor Changes
6
+
7
+ - 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.
8
+ - 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.
9
+
10
+ ## 2.25.0-beta.0
11
+
12
+ ### Minor Changes
13
+
14
+ - c4f1ecb: Chip can be a toggle: with `onClick` it is a button, and `selected` shows it picked.
15
+ - a880596: HistogramRange: a range over a number field's values, picked by dragging across their histogram
16
+ or typed in the from and to fields under it.
17
+ - c3d895c: InputField has a `ghost` variant: no border until it is hovered or focused, for a value that sits
18
+ inline, such as a number beside its slider.
19
+ - 1ba5cc7: Sidebar: `railFooter`, what the foot shows when the column is folded to a rail (the footer is hidden there), such as a small progress ring.
20
+ - 9bd6669: SliderField: a slider and the number it holds, side by side. The slider moves in its steps; the
21
+ number takes any value, typed or stepped with the arrow keys. The InputField `ghost` variant now
22
+ shows its border only while it is edited, and a ghost button's tint when hovered.
23
+ - 4829cc7: StepProgress: progress through steps in parts, a thin bar per part as wide as its share of the steps and filled by its own steps done, with optional labels. A part of one step is a plain stepper.
24
+
25
+ ### Patch Changes
26
+
27
+ - c4ff027: A disabled `Slider` shows as the other disabled controls do: the whole slider dimmed, with its thumb still visible against the fill.
28
+
3
29
  ## 2.24.0
4
30
 
5
31
  ### 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';
@@ -8,12 +8,20 @@ export interface ChipProps {
8
8
  color?: string;
9
9
  textColor?: string;
10
10
  className?: string;
11
+ title?: string;
11
12
  /** Optional leading icon. Sized and coloured to match the chip text. */
12
13
  icon?: React.ReactElement<IconProps>;
13
14
  /** `large` is a taller, more-padded badge that suits a leading icon. */
14
15
  size?: 'default' | 'large';
16
+ /** Makes the chip a toggle button. Without it the chip is a label. */
17
+ onClick?: (event: React.MouseEvent<HTMLButtonElement>) => void;
18
+ /** A toggle's state: ink on the ground, as a picked value reads. */
19
+ selected?: boolean;
20
+ disabled?: boolean;
15
21
  }
16
22
  /** `indx-chip` is a stable class beside the hashed one, as the Blazor Chip has, so a container can
17
- * style the chips inside it (intrface's result rows set their background). */
18
- export declare function Chip({ children, color, textColor, className, icon, size }: ChipProps): import("react/jsx-runtime").JSX.Element;
23
+ * style the chips inside it (intrface's result rows set their background). With `onClick` it is a
24
+ * toggle, a button that says whether it is `selected` (aria-pressed), for values that can be
25
+ * picked, as a facet's are in the console's search preview. */
26
+ export declare function Chip({ children, color, textColor, className, title, icon, size, onClick, selected, disabled }: ChipProps): import("react/jsx-runtime").JSX.Element;
19
27
  export {};
@@ -0,0 +1,36 @@
1
+ /** One bar: the first and last value it holds and how many records hold them. */
2
+ export interface HistogramBar {
3
+ from: number;
4
+ to: number;
5
+ count: number;
6
+ }
7
+ export interface HistogramRangeValue {
8
+ /** null is open at that end. */
9
+ from: number | null;
10
+ to: number | null;
11
+ }
12
+ export interface HistogramRangeProps {
13
+ /** The field's values and their counts, in any order. */
14
+ values: ReadonlyArray<readonly [number, number]>;
15
+ value: HistogramRangeValue;
16
+ /** Once the range is picked: a drag ended, a bar clicked, an end typed. */
17
+ onChange: (value: HistogramRangeValue) => void;
18
+ /** At most this many bars; fewer values than this are a bar each. */
19
+ maxBars?: number;
20
+ /** What the arrow keys add in the numbers; any by default. */
21
+ step?: number;
22
+ disabled?: boolean;
23
+ className?: string;
24
+ 'aria-label': string;
25
+ }
26
+ /** The values as bars: a bar each when there are no more than maxBars, else that many of equal
27
+ * width from the lowest to the highest, each spanning the values it holds. */
28
+ export declare function barsOf(values: ReadonlyArray<readonly [number, number]>, maxBars: number): HistogramBar[];
29
+ /**
30
+ * A range over a number field's values, picked on their histogram or typed. The bars are the
31
+ * counts of the values given, gathered into at most maxBars; under them from and to are ghost
32
+ * numbers. Dragging across the bars writes the numbers, typing a number lights the bars it
33
+ * reaches: one range, two ways in. An empty end is open; clicking the one bar that is the whole
34
+ * range clears it. The port of the Blazor HistogramRange (the console's search preview).
35
+ */
36
+ export declare function HistogramRange({ values, value, onChange, maxBars, step, disabled, className, 'aria-label': ariaLabel }: HistogramRangeProps): import("react/jsx-runtime").JSX.Element;
@@ -4,6 +4,7 @@ export interface InputFieldProps extends React.InputHTMLAttributes<HTMLInputElem
4
4
  error?: string;
5
5
  className?: string;
6
6
  isValid?: boolean;
7
- variant?: 'default' | 'borderBottom';
7
+ /** `ghost`: no border until it is edited, a ghost button's tint when hovered, for a value that sits inline. */
8
+ variant?: 'default' | 'borderBottom' | 'ghost';
8
9
  }
9
10
  export declare function InputField({ label, error, className, isValid, variant, id: providedId, ...props }: InputFieldProps): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,12 @@
1
1
  import { default as React } from 'react';
2
+ /** A value marked on the ruler: a line where it stands, scrolling with the ticks. A tone colours it,
3
+ * for a value that changes what the setting does (0 switching a weight off). */
4
+ export interface ScrubSliderMark {
5
+ value: number;
6
+ tone?: 'warning' | 'signal';
7
+ /** What the mark means, read by a screen reader with the slider's value text. */
8
+ label?: string;
9
+ }
2
10
  export interface ScrubSliderProps {
3
11
  value: number;
4
12
  onChange: (value: number) => void;
@@ -19,5 +27,7 @@ export interface ScrubSliderProps {
19
27
  className?: string;
20
28
  'aria-label'?: string;
21
29
  id?: string;
30
+ /** Values marked on the ruler. */
31
+ marks?: ScrubSliderMark[];
22
32
  }
23
33
  export declare const ScrubSlider: React.FC<ScrubSliderProps>;
@@ -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 {};
@@ -39,6 +39,9 @@ export interface SidebarProps {
39
39
  header?: React.ReactNode;
40
40
  /** Under the groups, above the fold button; hidden in the rail. */
41
41
  footer?: React.ReactNode;
42
+ /** What the foot shows folded to a rail, in place of the footer, which the rail hides:
43
+ * something narrow, 50px at most (a progress ring). Not shown unfolded. */
44
+ railFooter?: React.ReactNode;
42
45
  /** The rail of icons, controlled with `onCollapsedChange`; leave both out and it keeps its own. */
43
46
  collapsed?: boolean;
44
47
  onCollapsedChange?: (collapsed: boolean) => void;
@@ -59,5 +62,5 @@ export interface SidebarProps {
59
62
  * icons (Cmd or Ctrl and B, or the button at its foot), remembered with `storageKey`; in the rail
60
63
  * each item names itself in a Tooltip and a badge is a dot. At 768px and narrower it is a drawer
61
64
  * over the page, opened by the host and closed by Escape, a press beside it or a choice. No motion. */
62
- export declare function Sidebar({ groups, active, onSelect, header, footer, collapsed, onCollapsedChange, defaultCollapsed, collapsible, shortcut, storageKey, open, onOpenChange, 'aria-label': ariaLabel, className, }: SidebarProps): import("react/jsx-runtime").JSX.Element;
65
+ export declare function Sidebar({ groups, active, onSelect, header, footer, railFooter, collapsed, onCollapsedChange, defaultCollapsed, collapsible, shortcut, storageKey, open, onOpenChange, 'aria-label': ariaLabel, className, }: SidebarProps): import("react/jsx-runtime").JSX.Element;
63
66
  export {};
@@ -0,0 +1,26 @@
1
+ export interface SliderFieldProps {
2
+ value: number;
3
+ onChange: (value: number) => void;
4
+ /** The slider's range. The number may hold a value beyond it; the slider then rests at its end. */
5
+ min: number;
6
+ max: number;
7
+ /** The slider's step. */
8
+ step?: number;
9
+ /** The number's own range, none by default. */
10
+ fieldMin?: number;
11
+ fieldMax?: number;
12
+ /** What the arrow keys add in the number. The slider's step by default. */
13
+ fieldStep?: number;
14
+ /** How the number is written. Up to three decimals by default. */
15
+ format?: (value: number) => string;
16
+ disabled?: boolean;
17
+ className?: string;
18
+ 'aria-label': string;
19
+ }
20
+ /**
21
+ * A slider and the number it holds, side by side. The slider moves in its steps between min and
22
+ * max; the number takes any value from fieldMin to fieldMax, typed or stepped with the arrow keys,
23
+ * and the slider follows as far as it reaches. The number is a ghost field: no stroke until it is
24
+ * being edited, a ghost button's tint when pointed at.
25
+ */
26
+ export declare function SliderField({ value, onChange, min, max, step, fieldMin, fieldMax, fieldStep, format, disabled, className, 'aria-label': ariaLabel, }: SliderFieldProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,22 @@
1
+ export interface StepProgressPart {
2
+ /** The part's name, shown under its bar with `labels`. */
3
+ label?: string;
4
+ /** Steps of the part done. */
5
+ value: number;
6
+ /** Steps in the part; 1 by default, a plain stepper's step. */
7
+ max?: number;
8
+ }
9
+ export interface StepProgressProps {
10
+ parts: StepProgressPart[];
11
+ /** Each bar as wide as its share of all the steps (default), or all as wide. */
12
+ weighted?: boolean;
13
+ /** The part names and their counts under the bars. */
14
+ labels?: boolean;
15
+ /** The filled colour; the ink by default. */
16
+ color?: string;
17
+ /** The bars' height in pixels; 3 by default. */
18
+ height?: number;
19
+ 'aria-label'?: string;
20
+ className?: string;
21
+ }
22
+ export declare function StepProgress({ parts, weighted, labels, color, height, className, ...rest }: StepProgressProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export { StepProgress, type StepProgressProps, type StepProgressPart } from './StepProgress';
@@ -23,6 +23,20 @@ interface TableProps {
23
23
  * first column stays where it is. Set it to the width of the gutter beside the table.
24
24
  */
25
25
  bleedEnd?: string | number;
26
+ /**
27
+ * Let the reader set each column's width by dragging a handle at its header's right edge, or
28
+ * with the arrow keys once it has focus; a double click (or Delete) gives the width back. Every
29
+ * column gets a fixed width from the start, so the rows a page shows never move the columns:
30
+ * a longer value is cut instead. Name a column by its header's `data-column`, and give its first
31
+ * width as `data-width` (px); without them a column is named by its place and keeps the width it
32
+ * first had. The column whose header says `data-fill` (else the last) takes what the frame has
33
+ * left. A cell stays on one line unless it says `data-wrap`. Header cells must be plain `th`s, as
34
+ * TableHeader renders them.
35
+ */
36
+ resizableColumns?: boolean;
37
+ /** With `resizableColumns`: where the reader's widths are kept (localStorage). Left out, they last
38
+ * as long as the page. */
39
+ columnStorageKey?: string;
26
40
  }
27
- export declare function Table({ children, caption, 'aria-label': ariaLabel, scrollable, stickyFirstColumn, bleedEnd }: TableProps): import("react/jsx-runtime").JSX.Element;
41
+ export declare function Table({ children, caption, 'aria-label': ariaLabel, scrollable, stickyFirstColumn, bleedEnd, resizableColumns, columnStorageKey }: TableProps): import("react/jsx-runtime").JSX.Element;
28
42
  export {};
@@ -0,0 +1,5 @@
1
+ export interface ColumnResizeClasses {
2
+ table: string;
3
+ handle: string;
4
+ }
5
+ export declare function enableColumnResize(table: HTMLTableElement, classes: ColumnResizeClasses, storageKey?: string): () => void;
package/dist/cursors.css CHANGED
@@ -101,96 +101,152 @@ select:disabled,
101
101
 
102
102
  /* Dark Mode - Use CSS filter to invert colors */
103
103
  @media (prefers-color-scheme: dark) {
104
- * {
104
+ :where(:root:not([data-theme="light"])) * {
105
105
  cursor: url('data:image/svg+xml,<svg width="21" height="21" viewBox="0 0 21 21" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M9 3H15V6H18V9H12V15H9V12H6V6H3V0H9V3Z" fill="%23EFEFEF"/></svg>') 3 0, auto !important;
106
106
  }
107
107
 
108
- p, h1, h2, h3, h4, h5, h6, td, th,
109
- input,
110
- textarea {
108
+ :where(:root:not([data-theme="light"])) p, :where(:root:not([data-theme="light"])) h1, :where(:root:not([data-theme="light"])) h2, :where(:root:not([data-theme="light"])) h3, :where(:root:not([data-theme="light"])) h4, :where(:root:not([data-theme="light"])) h5, :where(:root:not([data-theme="light"])) h6, :where(:root:not([data-theme="light"])) td, :where(:root:not([data-theme="light"])) th, :where(:root:not([data-theme="light"])) input, :where(:root:not([data-theme="light"])) textarea {
111
109
  cursor: url('data:image/svg+xml,<svg width="21" height="21" viewBox="0 0 21 21" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M9 18H6V15H9V18ZM15 18H12V15H15V18ZM12 15H9V6H12V15ZM9 6H6V3H9V6ZM15 6H12V3H15V6Z" fill="%23EFEFEF"/></svg>') 10 10, text !important;
112
110
  }
113
111
 
114
- a, button,
115
- input[type="radio"],
116
- input[type="checkbox"],
117
- input[type="submit"],
118
- input[type="button"],
119
- input[type="range"],
120
- select {
112
+ :where(:root:not([data-theme="light"])) a, :where(:root:not([data-theme="light"])) button, :where(:root:not([data-theme="light"])) input[type="radio"], :where(:root:not([data-theme="light"])) input[type="checkbox"], :where(:root:not([data-theme="light"])) input[type="submit"], :where(:root:not([data-theme="light"])) input[type="button"], :where(:root:not([data-theme="light"])) input[type="range"], :where(:root:not([data-theme="light"])) select {
121
113
  cursor: url('data:image/svg+xml,<svg width="21" height="21" viewBox="0 0 21 21" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M9 0V3V6V9V12H6V9H3V12H6V15H9H12H15H18V12V9V6H15H12V3V0H9Z" fill="%23EFEFEF"/></svg>') 6 0, pointer !important;
122
114
  }
123
115
 
124
- a *, button * {
116
+ :where(:root:not([data-theme="light"])) a *, :where(:root:not([data-theme="light"])) button * {
125
117
  cursor: url('data:image/svg+xml,<svg width="21" height="21" viewBox="0 0 21 21" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M9 0V3V6V9V12H6V9H3V12H6V15H9H12H15H18V12V9V6H15H12V3V0H9Z" fill="%23EFEFEF"/></svg>') 6 0, pointer !important;
126
118
  }
127
119
 
128
- .cursor-pointer,
129
- .cursor-pointer * {
120
+ :where(:root:not([data-theme="light"])) .cursor-pointer, :where(:root:not([data-theme="light"])) .cursor-pointer * {
130
121
  cursor: url('data:image/svg+xml,<svg width="21" height="21" viewBox="0 0 21 21" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M9 0V3V6V9V12H6V9H3V12H6V15H9H12H15H18V12V9V6H15H12V3V0H9Z" fill="%23EFEFEF"/></svg>') 6 0, pointer !important;
131
122
  }
132
123
 
133
- .cursor-text,
134
- .cursor-text * {
124
+ :where(:root:not([data-theme="light"])) .cursor-text, :where(:root:not([data-theme="light"])) .cursor-text * {
135
125
  cursor: url('data:image/svg+xml,<svg width="21" height="21" viewBox="0 0 21 21" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M9 18H6V15H9V18ZM15 18H12V15H15V18ZM12 15H9V6H12V15ZM9 6H6V3H9V6ZM15 6H12V3H15V6Z" fill="%23EFEFEF"/></svg>') 10 10, text !important;
136
126
  }
137
127
 
138
- .cursor-resize-col,
139
- .cursor-resize-col * {
128
+ :where(:root:not([data-theme="light"])) .cursor-resize-col, :where(:root:not([data-theme="light"])) .cursor-resize-col * {
140
129
  cursor: url('data:image/svg+xml,<svg width="21" height="21" viewBox="0 0 21 21" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M12 18H9V3H12V18ZM6 15H3V12H6V15ZM18 15H15V12H18V15ZM3 12H0V9H3V12ZM21 12H18V9H21V12ZM6 9H3V6H6V9ZM18 9H15V6H18V9Z" fill="%23EFEFEF"/></svg>') 10 10, col-resize !important;
141
130
  }
142
131
 
143
- .cursor-resize-ew,
144
- .cursor-resize-ew * {
132
+ :where(:root:not([data-theme="light"])) .cursor-resize-ew, :where(:root:not([data-theme="light"])) .cursor-resize-ew * {
145
133
  cursor: url('data:image/svg+xml,<svg width="21" height="21" viewBox="0 0 21 21" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M9 15H6V12H9V15ZM15 15H12V12H15V15ZM6 12H3V9H6V12ZM18 12H15V9H18V12ZM9 9H6V6H9V9ZM15 9H12V6H15V9Z" fill="%23EFEFEF"/></svg>') 10 10, ew-resize !important;
146
134
  }
147
135
 
148
- .cursor-resize-ns,
149
- .cursor-resize-ns * {
136
+ :where(:root:not([data-theme="light"])) .cursor-resize-ns, :where(:root:not([data-theme="light"])) .cursor-resize-ns * {
150
137
  cursor: url('data:image/svg+xml,<svg width="21" height="21" viewBox="0 0 21 21" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M12 18H9V15H12V18ZM9 15H6V12H9V15ZM15 12V15H12V12H15ZM9 9H6V6H9V9ZM15 9H12V6H15V9ZM12 6H9V3H12V6Z" fill="%23EFEFEF"/></svg>') 10 10, ns-resize !important;
151
138
  }
152
139
 
153
- .cursor-not-allowed,
154
- .cursor-not-allowed * {
140
+ :where(:root:not([data-theme="light"])) .cursor-not-allowed, :where(:root:not([data-theme="light"])) .cursor-not-allowed * {
155
141
  cursor: url('data:image/svg+xml,<svg width="21" height="21" viewBox="0 0 21 21" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M15 6H18V15H15V18H6V15H3V6H6V3H15V6ZM6 12H15V9H6V12Z" fill="%23EFEFEF"/></svg>') 10 10, not-allowed !important;
156
142
  }
157
143
 
158
- .cursor-wait,
159
- .cursor-wait * {
144
+ :where(:root:not([data-theme="light"])) .cursor-wait, :where(:root:not([data-theme="light"])) .cursor-wait * {
160
145
  cursor: url('data:image/svg+xml,<svg width="21" height="21" viewBox="0 0 21 21" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M6 3H3V6H6V9H9V12H6V15H3V18H6H9H12H15H18V15H15V12H12V9H15V6H18V3H15H12H9H6ZM12 9H9V6H12V9Z" fill="%23EFEFEF"/></svg>') 10 10, wait !important;
161
146
  }
162
147
 
163
- .cursor-help,
164
- .cursor-help * {
148
+ :where(:root:not([data-theme="light"])) .cursor-help, :where(:root:not([data-theme="light"])) .cursor-help * {
165
149
  cursor: url('data:image/svg+xml,<svg width="21" height="21" viewBox="0 0 21 21" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M12 18H9V15H12V18ZM12 12H9V9H12V12ZM15 9H12V6H15V9ZM12 3V6H6V3H12Z" fill="%23EFEFEF"/></svg>') 10 10, help !important;
166
150
  }
167
151
 
168
- .cursor-move,
169
- .cursor-move * {
152
+ :where(:root:not([data-theme="light"])) .cursor-move, :where(:root:not([data-theme="light"])) .cursor-move * {
170
153
  cursor: url('data:image/svg+xml,<svg width="21" height="21" viewBox="0 0 21 21" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M12 18H9V15H12V18ZM6 12H3V9H6V12ZM12 12H9V9H12V12ZM18 12H15V9H18V12ZM12 6H9V3H12V6Z" fill="%23EFEFEF"/></svg>') 10 10, move !important;
171
154
  }
172
155
 
173
- .cursor-crosshair,
174
- .cursor-crosshair * {
156
+ :where(:root:not([data-theme="light"])) .cursor-crosshair, :where(:root:not([data-theme="light"])) .cursor-crosshair * {
175
157
  cursor: url('data:image/svg+xml,<svg width="21" height="21" viewBox="0 0 21 21" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M12 18H9V12H12V18ZM9 12H3V9H9V12ZM18 9V12H12V9H18ZM12 9H9V3H12V9Z" fill="%23EFEFEF"/></svg>') 10 10, crosshair !important;
176
158
  }
177
159
 
178
- .cursor-resize-nwse,
179
- .cursor-resize-nwse * {
160
+ :where(:root:not([data-theme="light"])) .cursor-resize-nwse, :where(:root:not([data-theme="light"])) .cursor-resize-nwse * {
180
161
  cursor: url('data:image/svg+xml,<svg width="21" height="21" viewBox="0 0 21 21" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M18 18H12V15H15V12H18V18ZM9 3V6H6V9H3V3H9Z" fill="%23EFEFEF"/></svg>') 10 10, nwse-resize !important;
181
162
  }
182
163
 
183
- .cursor-resize-nesw,
184
- .cursor-resize-nesw * {
164
+ :where(:root:not([data-theme="light"])) .cursor-resize-nesw, :where(:root:not([data-theme="light"])) .cursor-resize-nesw * {
185
165
  cursor: url('data:image/svg+xml,<svg width="21" height="21" viewBox="0 0 21 21" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M6 15H9V18H3V12H6V15ZM18 9H15V6H12V3H18V9Z" fill="%23EFEFEF"/></svg>') 10 10, nesw-resize !important;
186
166
  }
187
167
 
188
- input:disabled,
189
- textarea:disabled,
190
- button:disabled,
191
- select:disabled,
192
- .disabled,
193
- .disabled * {
168
+ :where(:root:not([data-theme="light"])) input:disabled, :where(:root:not([data-theme="light"])) textarea:disabled, :where(:root:not([data-theme="light"])) button:disabled, :where(:root:not([data-theme="light"])) select:disabled, :where(:root:not([data-theme="light"])) .disabled, :where(:root:not([data-theme="light"])) .disabled * {
194
169
  cursor: url('data:image/svg+xml,<svg width="21" height="21" viewBox="0 0 21 21" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M15 6H18V15H15V18H6V15H3V6H6V3H15V6ZM6 12H15V9H6V12Z" fill="%23EFEFEF"/></svg>') 10 10, not-allowed !important;
195
170
  }
196
171
  }
172
+ :where(:root[data-theme="dark"]) * {
173
+ cursor: url('data:image/svg+xml,<svg width="21" height="21" viewBox="0 0 21 21" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M9 3H15V6H18V9H12V15H9V12H6V6H3V0H9V3Z" fill="%23EFEFEF"/></svg>') 3 0, auto !important;
174
+ }
175
+ :where(:root[data-theme="dark"]) p, :where(:root[data-theme="dark"]) h1, :where(:root[data-theme="dark"]) h2, :where(:root[data-theme="dark"]) h3, :where(:root[data-theme="dark"]) h4, :where(:root[data-theme="dark"]) h5, :where(:root[data-theme="dark"]) h6, :where(:root[data-theme="dark"]) td, :where(:root[data-theme="dark"]) th, :where(:root[data-theme="dark"]) input, :where(:root[data-theme="dark"]) textarea {
176
+ cursor: url('data:image/svg+xml,<svg width="21" height="21" viewBox="0 0 21 21" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M9 18H6V15H9V18ZM15 18H12V15H15V18ZM12 15H9V6H12V15ZM9 6H6V3H9V6ZM15 6H12V3H15V6Z" fill="%23EFEFEF"/></svg>') 10 10, text !important;
177
+ }
178
+ :where(:root[data-theme="dark"]) a, :where(:root[data-theme="dark"]) button, :where(:root[data-theme="dark"]) input[type="radio"], :where(:root[data-theme="dark"]) input[type="checkbox"], :where(:root[data-theme="dark"]) input[type="submit"], :where(:root[data-theme="dark"]) input[type="button"], :where(:root[data-theme="dark"]) input[type="range"], :where(:root[data-theme="dark"]) select {
179
+ cursor: url('data:image/svg+xml,<svg width="21" height="21" viewBox="0 0 21 21" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M9 0V3V6V9V12H6V9H3V12H6V15H9H12H15H18V12V9V6H15H12V3V0H9Z" fill="%23EFEFEF"/></svg>') 6 0, pointer !important;
180
+ }
181
+ :where(:root[data-theme="dark"]) a *, :where(:root[data-theme="dark"]) button * {
182
+ cursor: url('data:image/svg+xml,<svg width="21" height="21" viewBox="0 0 21 21" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M9 0V3V6V9V12H6V9H3V12H6V15H9H12H15H18V12V9V6H15H12V3V0H9Z" fill="%23EFEFEF"/></svg>') 6 0, pointer !important;
183
+ }
184
+ :where(:root[data-theme="dark"]) .cursor-pointer, :where(:root[data-theme="dark"]) .cursor-pointer * {
185
+ cursor: url('data:image/svg+xml,<svg width="21" height="21" viewBox="0 0 21 21" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M9 0V3V6V9V12H6V9H3V12H6V15H9H12H15H18V12V9V6H15H12V3V0H9Z" fill="%23EFEFEF"/></svg>') 6 0, pointer !important;
186
+ }
187
+ :where(:root[data-theme="dark"]) .cursor-text, :where(:root[data-theme="dark"]) .cursor-text * {
188
+ cursor: url('data:image/svg+xml,<svg width="21" height="21" viewBox="0 0 21 21" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M9 18H6V15H9V18ZM15 18H12V15H15V18ZM12 15H9V6H12V15ZM9 6H6V3H9V6ZM15 6H12V3H15V6Z" fill="%23EFEFEF"/></svg>') 10 10, text !important;
189
+ }
190
+ :where(:root[data-theme="dark"]) .cursor-resize-col, :where(:root[data-theme="dark"]) .cursor-resize-col * {
191
+ cursor: url('data:image/svg+xml,<svg width="21" height="21" viewBox="0 0 21 21" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M12 18H9V3H12V18ZM6 15H3V12H6V15ZM18 15H15V12H18V15ZM3 12H0V9H3V12ZM21 12H18V9H21V12ZM6 9H3V6H6V9ZM18 9H15V6H18V9Z" fill="%23EFEFEF"/></svg>') 10 10, col-resize !important;
192
+ }
193
+ :where(:root[data-theme="dark"]) .cursor-resize-ew, :where(:root[data-theme="dark"]) .cursor-resize-ew * {
194
+ cursor: url('data:image/svg+xml,<svg width="21" height="21" viewBox="0 0 21 21" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M9 15H6V12H9V15ZM15 15H12V12H15V15ZM6 12H3V9H6V12ZM18 12H15V9H18V12ZM9 9H6V6H9V9ZM15 9H12V6H15V9Z" fill="%23EFEFEF"/></svg>') 10 10, ew-resize !important;
195
+ }
196
+ :where(:root[data-theme="dark"]) .cursor-resize-ns, :where(:root[data-theme="dark"]) .cursor-resize-ns * {
197
+ cursor: url('data:image/svg+xml,<svg width="21" height="21" viewBox="0 0 21 21" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M12 18H9V15H12V18ZM9 15H6V12H9V15ZM15 12V15H12V12H15ZM9 9H6V6H9V9ZM15 9H12V6H15V9ZM12 6H9V3H12V6Z" fill="%23EFEFEF"/></svg>') 10 10, ns-resize !important;
198
+ }
199
+ :where(:root[data-theme="dark"]) .cursor-not-allowed, :where(:root[data-theme="dark"]) .cursor-not-allowed * {
200
+ cursor: url('data:image/svg+xml,<svg width="21" height="21" viewBox="0 0 21 21" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M15 6H18V15H15V18H6V15H3V6H6V3H15V6ZM6 12H15V9H6V12Z" fill="%23EFEFEF"/></svg>') 10 10, not-allowed !important;
201
+ }
202
+ :where(:root[data-theme="dark"]) .cursor-wait, :where(:root[data-theme="dark"]) .cursor-wait * {
203
+ cursor: url('data:image/svg+xml,<svg width="21" height="21" viewBox="0 0 21 21" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M6 3H3V6H6V9H9V12H6V15H3V18H6H9H12H15H18V15H15V12H12V9H15V6H18V3H15H12H9H6ZM12 9H9V6H12V9Z" fill="%23EFEFEF"/></svg>') 10 10, wait !important;
204
+ }
205
+ :where(:root[data-theme="dark"]) .cursor-help, :where(:root[data-theme="dark"]) .cursor-help * {
206
+ cursor: url('data:image/svg+xml,<svg width="21" height="21" viewBox="0 0 21 21" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M12 18H9V15H12V18ZM12 12H9V9H12V12ZM15 9H12V6H15V9ZM12 3V6H6V3H12Z" fill="%23EFEFEF"/></svg>') 10 10, help !important;
207
+ }
208
+ :where(:root[data-theme="dark"]) .cursor-move, :where(:root[data-theme="dark"]) .cursor-move * {
209
+ cursor: url('data:image/svg+xml,<svg width="21" height="21" viewBox="0 0 21 21" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M12 18H9V15H12V18ZM6 12H3V9H6V12ZM12 12H9V9H12V12ZM18 12H15V9H18V12ZM12 6H9V3H12V6Z" fill="%23EFEFEF"/></svg>') 10 10, move !important;
210
+ }
211
+ :where(:root[data-theme="dark"]) .cursor-crosshair, :where(:root[data-theme="dark"]) .cursor-crosshair * {
212
+ cursor: url('data:image/svg+xml,<svg width="21" height="21" viewBox="0 0 21 21" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M12 18H9V12H12V18ZM9 12H3V9H9V12ZM18 9V12H12V9H18ZM12 9H9V3H12V9Z" fill="%23EFEFEF"/></svg>') 10 10, crosshair !important;
213
+ }
214
+ :where(:root[data-theme="dark"]) .cursor-resize-nwse, :where(:root[data-theme="dark"]) .cursor-resize-nwse * {
215
+ cursor: url('data:image/svg+xml,<svg width="21" height="21" viewBox="0 0 21 21" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M18 18H12V15H15V12H18V18ZM9 3V6H6V9H3V3H9Z" fill="%23EFEFEF"/></svg>') 10 10, nwse-resize !important;
216
+ }
217
+ :where(:root[data-theme="dark"]) .cursor-resize-nesw, :where(:root[data-theme="dark"]) .cursor-resize-nesw * {
218
+ cursor: url('data:image/svg+xml,<svg width="21" height="21" viewBox="0 0 21 21" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M6 15H9V18H3V12H6V15ZM18 9H15V6H12V3H18V9Z" fill="%23EFEFEF"/></svg>') 10 10, nesw-resize !important;
219
+ }
220
+ :where(:root[data-theme="dark"]) input:disabled, :where(:root[data-theme="dark"]) textarea:disabled, :where(:root[data-theme="dark"]) button:disabled, :where(:root[data-theme="dark"]) select:disabled, :where(:root[data-theme="dark"]) .disabled, :where(:root[data-theme="dark"]) .disabled * {
221
+ cursor: url('data:image/svg+xml,<svg width="21" height="21" viewBox="0 0 21 21" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M15 6H18V15H15V18H6V15H3V6H6V3H15V6ZM6 12H15V9H6V12Z" fill="%23EFEFEF"/></svg>') 10 10, not-allowed !important;
222
+ }
223
+
224
+ /* A switch, a checkbox or a radio inside its label (ToggleSwitch, Checkbox, RadioButton): the whole
225
+ label is the target, so it takes the pointer, which the catch-all above would deny it. So does a
226
+ table row that opens in place (Records, Admin teams), whose cells would otherwise take the I-beam. */
227
+ label:has(> input[type="checkbox"]),
228
+ label:has(> input[type="checkbox"]) *,
229
+ label:has(> input[type="radio"]),
230
+ label:has(> input[type="radio"]) *,
231
+ tr[aria-expanded],
232
+ tr[aria-expanded] * {
233
+ cursor: url('data:image/svg+xml,<svg width="21" height="21" viewBox="0 0 21 21" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M9 0V3V6V9V12H6V9H3V12H6V15H9H12H15H18V12V9V6H15H12V3V0H9Z" fill="%231A1A21"/></svg>') 6 0, pointer !important;
234
+ }
235
+ @media (prefers-color-scheme: dark) {
236
+ :where(:root:not([data-theme="light"])) label:has(> input[type="checkbox"]),
237
+ :where(:root:not([data-theme="light"])) label:has(> input[type="checkbox"]) *,
238
+ :where(:root:not([data-theme="light"])) label:has(> input[type="radio"]),
239
+ :where(:root:not([data-theme="light"])) label:has(> input[type="radio"]) *,
240
+ :where(:root:not([data-theme="light"])) tr[aria-expanded],
241
+ :where(:root:not([data-theme="light"])) tr[aria-expanded] * {
242
+ cursor: url('data:image/svg+xml,<svg width="21" height="21" viewBox="0 0 21 21" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M9 0V3V6V9V12H6V9H3V12H6V15H9H12H15H18V12V9V6H15H12V3V0H9Z" fill="%23EFEFEF"/></svg>') 6 0, pointer !important;
243
+ }
244
+ }
245
+ :where(:root[data-theme="dark"]) label:has(> input[type="checkbox"]),
246
+ :where(:root[data-theme="dark"]) label:has(> input[type="checkbox"]) *,
247
+ :where(:root[data-theme="dark"]) label:has(> input[type="radio"]),
248
+ :where(:root[data-theme="dark"]) label:has(> input[type="radio"]) *,
249
+ :where(:root[data-theme="dark"]) tr[aria-expanded],
250
+ :where(:root[data-theme="dark"]) tr[aria-expanded] * {
251
+ cursor: url('data:image/svg+xml,<svg width="21" height="21" viewBox="0 0 21 21" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M9 0V3V6V9V12H6V9H3V12H6V15H9H12H15H18V12V9V6H15H12V3V0H9Z" fill="%23EFEFEF"/></svg>') 6 0, pointer !important;
252
+ }