@sesamehr/react-design-system 3.8.0 → 3.10.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/README.md +3 -2
- package/dist/Display/Avatar/AvatarRounded/AvatarRounded.d.ts +6 -0
- package/dist/Display/Avatar/AvatarSquare/AvatarSquare.d.ts +6 -0
- package/dist/Display/AvatarGroup/AvatarGroup.d.ts +14 -0
- package/dist/Display/Chip/Chip.d.ts +6 -2
- package/dist/Display/Chip/index.d.ts +4 -6
- package/dist/Feedback/Alert/AlertLink.d.ts +7 -0
- package/dist/Feedback/Alert/index.d.ts +1 -0
- package/dist/Feedback/Dialog/DialogScrollbar.d.ts +18 -0
- package/dist/Feedback/Toast/ToastAction.d.ts +7 -0
- package/dist/Feedback/Toast/ToastActions.d.ts +11 -0
- package/dist/Feedback/Toast/index.d.ts +2 -1
- package/dist/Feedback/Toast/useToast.d.ts +25 -0
- package/dist/Forms/Field/useFieldGroup.d.ts +25 -1
- package/dist/Forms/Inputs/DatePicker/format.d.ts +11 -0
- package/dist/Forms/Inputs/InputText/InputText.d.ts +5 -0
- package/dist/Forms/Inputs/MonthPicker/MonthPicker.d.ts +61 -0
- package/dist/Forms/Inputs/MonthPicker/MonthPickerPanel.d.ts +39 -0
- package/dist/Forms/Inputs/MonthPicker/index.d.ts +2 -0
- package/dist/Forms/Inputs/MonthPicker/monthGrid.d.ts +45 -0
- package/dist/Forms/Inputs/Toggle/Checkbox/Checkbox.d.ts +1 -0
- package/dist/Forms/Inputs/Toggle/ToggleDescription/ToggleDescription.d.ts +5 -1
- package/dist/Forms/Inputs/Toggle/ToggleGroup/ToggleGroup.d.ts +10 -2
- package/dist/Forms/Inputs/Toggle/ToggleLabel/ToggleLabel.d.ts +3 -6
- package/dist/Forms/Inputs/index.d.ts +1 -0
- package/dist/Navigation/ToggleTabs/ToggleTabsList.d.ts +20 -2
- package/dist/main.d.ts +3 -3
- package/dist/react-design-system.css +1 -1
- package/dist/react-design-system.js +10863 -10334
- package/dist/react-design-system.umd.cjs +62 -62
- package/package.json +1 -1
- package/src/assets/styles/theme-v3.css +8 -0
- package/src/assets/styles/theme-v3.test.ts +25 -0
package/README.md
CHANGED
|
@@ -2,7 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
React components and design tokens for the Sesame HR design system.
|
|
4
4
|
|
|
5
|
-
📖 **[Component documentation](https://
|
|
5
|
+
📖 **[Component documentation](https://storybook.sesametime.com)** — this package's
|
|
6
|
+
Storybook. The Vue source of truth has its own at
|
|
7
|
+
[vue-storybook.sesametime.com](https://vue-storybook.sesametime.com).
|
|
6
8
|
|
|
7
9
|
## Install
|
|
8
10
|
|
|
@@ -97,7 +99,6 @@ to retheme, not `--color-brand-500`. Unprefixed, those are the names Tailwind
|
|
|
97
99
|
itself uses, and declaring them at `:root` would change what every `rounded-2xl`
|
|
98
100
|
in your application means.
|
|
99
101
|
|
|
100
|
-
|
|
101
102
|
## License
|
|
102
103
|
|
|
103
104
|
MIT © Sesame HR
|
|
@@ -15,6 +15,12 @@ export interface AvatarRoundedProps extends React.HTMLAttributes<HTMLSpanElement
|
|
|
15
15
|
action?: React.ReactNode;
|
|
16
16
|
/** Rendered centred on the bottom edge */
|
|
17
17
|
label?: React.ReactNode;
|
|
18
|
+
/**
|
|
19
|
+
* Who the avatar is, shown in a tooltip on hover and on focus. Passing it
|
|
20
|
+
* is what turns the tooltip on, which keeps the switch out of the prop
|
|
21
|
+
* budget and lets the tooltip carry more than a name.
|
|
22
|
+
*/
|
|
23
|
+
tooltip?: React.ReactNode;
|
|
18
24
|
dataTestid: string;
|
|
19
25
|
}
|
|
20
26
|
/**
|
|
@@ -15,6 +15,12 @@ export interface AvatarSquareProps extends React.HTMLAttributes<HTMLSpanElement>
|
|
|
15
15
|
action?: React.ReactNode;
|
|
16
16
|
/** Rendered centred on the bottom edge */
|
|
17
17
|
label?: React.ReactNode;
|
|
18
|
+
/**
|
|
19
|
+
* Who the avatar is, shown in a tooltip on hover and on focus. Passing it
|
|
20
|
+
* is what turns the tooltip on, which keeps the switch out of the prop
|
|
21
|
+
* budget and lets the tooltip carry more than a name.
|
|
22
|
+
*/
|
|
23
|
+
tooltip?: React.ReactNode;
|
|
18
24
|
dataTestid: string;
|
|
19
25
|
}
|
|
20
26
|
/**
|
|
@@ -16,6 +16,20 @@ export interface AvatarGroupProps extends Omit<React.ButtonHTMLAttributes<HTMLBu
|
|
|
16
16
|
avatars: AvatarItem[];
|
|
17
17
|
/** Maximum number of avatars to show before collapsing */
|
|
18
18
|
max?: number;
|
|
19
|
+
/**
|
|
20
|
+
* How many people the stack stands for, when that is not the length of
|
|
21
|
+
* `avatars`. Three faces and a `total` of 25 draw three avatars and `+22`,
|
|
22
|
+
* so a caller holding one page of a long list no longer has to pad it with
|
|
23
|
+
* empty items to make the counter read right.
|
|
24
|
+
*
|
|
25
|
+
* The counter is `total` minus what is *shown*, never minus `max`: the two
|
|
26
|
+
* differ whenever there are fewer faces than `max`, and `shown + counter`
|
|
27
|
+
* has to come to `total` for the number to mean anything. A `total` under
|
|
28
|
+
* the number of faces is an ordinary race — the list refreshed and the
|
|
29
|
+
* count did not — so it drops the counter and never a face; `max` stays the
|
|
30
|
+
* only thing that caps the pile.
|
|
31
|
+
*/
|
|
32
|
+
total?: number;
|
|
19
33
|
/** Whether the group is interactive (clickable) */
|
|
20
34
|
interactive?: boolean;
|
|
21
35
|
/** The size every avatar in the stack is drawn at. */
|
|
@@ -2,8 +2,12 @@ import { ChipVariants } from './index.ts';
|
|
|
2
2
|
export interface ChipProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'type'> {
|
|
3
3
|
/** How tall it is, and whether it holds a label or a single icon */
|
|
4
4
|
size?: ChipVariants['size'];
|
|
5
|
-
/**
|
|
6
|
-
|
|
5
|
+
/**
|
|
6
|
+
* Whether it is the one that is picked. Presentational only: the caller holds
|
|
7
|
+
* the selection and announces it — `aria-pressed` on a chip that toggles,
|
|
8
|
+
* `aria-selected` on one inside a listbox.
|
|
9
|
+
*/
|
|
10
|
+
selected?: boolean;
|
|
7
11
|
/**
|
|
8
12
|
* Whether it is being dragged.
|
|
9
13
|
*
|
|
@@ -15,14 +15,12 @@ export type { ChipProps } from './Chip.tsx';
|
|
|
15
15
|
* Class names, not utilities: the declarations live in `Chip.module.css` behind
|
|
16
16
|
* `@apply`. See `Button/index.ts` for the full reasoning.
|
|
17
17
|
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
* circle is the same radius as a text chip's pill and needs no value of its own.
|
|
18
|
+
* Size is the only axis, because it is the only one the design has: set `905:703`
|
|
19
|
+
* is `State` × `Size` and exposes no corner property. The `shape` prop that used
|
|
20
|
+
* to sit here let a caller draw a chip the board never draws, and its `square`
|
|
21
|
+
* default is why a combobox's chips had 8px corners.
|
|
23
22
|
*/
|
|
24
23
|
export declare const chipVariants: (props?: ({
|
|
25
24
|
size?: "sm" | "lg" | "icon-sm" | "icon-lg" | null | undefined;
|
|
26
|
-
shape?: "square" | "rounded" | null | undefined;
|
|
27
25
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
28
26
|
export type ChipVariants = VariantProps<typeof chipVariants>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export type AlertLinkProps = React.AnchorHTMLAttributes<HTMLAnchorElement>;
|
|
2
|
+
/**
|
|
3
|
+
* AlertLink — the action link the board sits to the right of the text, before
|
|
4
|
+
* the close. A `link` prop on `Alert` would carry the text and the destination
|
|
5
|
+
* as configuration; `href` and the rest arrive here as native attributes.
|
|
6
|
+
*/
|
|
7
|
+
export declare const AlertLink: import('react').ForwardRefExoticComponent<AlertLinkProps & import('react').RefAttributes<HTMLAnchorElement>>;
|
|
@@ -2,6 +2,7 @@ export { Alert, type AlertProps } from './Alert.tsx';
|
|
|
2
2
|
export { AlertClose, type AlertCloseProps } from './AlertClose.tsx';
|
|
3
3
|
export { AlertDescription, type AlertDescriptionProps, } from './AlertDescription.tsx';
|
|
4
4
|
export { AlertIcon, type AlertIconProps } from './AlertIcon.tsx';
|
|
5
|
+
export { AlertLink, type AlertLinkProps } from './AlertLink.tsx';
|
|
5
6
|
export { AlertTitle, type AlertTitleProps } from './AlertTitle.tsx';
|
|
6
7
|
export { AlertToggle, type AlertToggleProps } from './AlertToggle.tsx';
|
|
7
8
|
export { type AlertVariant } from './alert-context.ts';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface DialogScrollbarProps {
|
|
2
|
+
dataTestid: string;
|
|
3
|
+
}
|
|
4
|
+
/**
|
|
5
|
+
* Where a dialog's overlay scrollbar goes. Mirrors `@sesame/orxata-core`
|
|
6
|
+
* DialogScrollbar: `Scrollbar` plus the placement that is only true of a
|
|
7
|
+
* dialog. Nothing to configure — the scrollport is resolved with the same query
|
|
8
|
+
* the panel's `:has()` runs, so it is the body when one is declared and the
|
|
9
|
+
* region itself when not.
|
|
10
|
+
*
|
|
11
|
+
* The bar hangs off a zero-height sticky rail and not off the panel: with no
|
|
12
|
+
* body the panel *is* the scrollport, and an absolutely positioned child of it
|
|
13
|
+
* scrolls away with the content, as the close button does.
|
|
14
|
+
*/
|
|
15
|
+
export declare function DialogScrollbar({ dataTestid }: DialogScrollbarProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export declare namespace DialogScrollbar {
|
|
17
|
+
var displayName: string;
|
|
18
|
+
}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
+
import { ToastActionVariant } from './useToast.ts';
|
|
1
2
|
import * as ToastPrimitive from '@radix-ui/react-toast';
|
|
2
3
|
export interface ToastActionProps extends React.ComponentPropsWithoutRef<typeof ToastPrimitive.Action> {
|
|
4
|
+
/** `primary` is the filled one and goes first; the board allows one of each. */
|
|
5
|
+
variant?: ToastActionVariant;
|
|
3
6
|
dataTestid?: string;
|
|
4
7
|
}
|
|
5
8
|
/**
|
|
@@ -8,5 +11,9 @@ export interface ToastActionProps extends React.ComponentPropsWithoutRef<typeof
|
|
|
8
11
|
* `altText` is what a screen reader is told instead of the button, which is
|
|
9
12
|
* gone before anyone can reach it — so it must describe a route that outlives
|
|
10
13
|
* the toast.
|
|
14
|
+
*
|
|
15
|
+
* `default` is Orxata's name for the filled button the board calls Primary, and
|
|
16
|
+
* `2xs` is the 24px step — the board's Button `xs` measures 24 (node
|
|
17
|
+
* `1692:2585`), and the two scales are offset by one name.
|
|
11
18
|
*/
|
|
12
19
|
export declare const ToastAction: import('react').ForwardRefExoticComponent<ToastActionProps & import('react').RefAttributes<HTMLButtonElement>>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export interface ToastActionsProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
2
|
+
dataTestid?: string;
|
|
3
|
+
}
|
|
4
|
+
/**
|
|
5
|
+
* ToastActions — mirrors `orxata-core` ToastActions.
|
|
6
|
+
*
|
|
7
|
+
* A part rather than two loose buttons: the toast is a grid, and two children
|
|
8
|
+
* sharing a `grid-column` land on separate rows. This is the board's own
|
|
9
|
+
* `Show actions`, and it exists even when only one button is in it.
|
|
10
|
+
*/
|
|
11
|
+
export declare const ToastActions: import('react').ForwardRefExoticComponent<ToastActionsProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
2
|
export { Toast, type ToastProps } from './Toast.tsx';
|
|
3
3
|
export { ToastAction, type ToastActionProps } from './ToastAction.tsx';
|
|
4
|
+
export { ToastActions, type ToastActionsProps } from './ToastActions.tsx';
|
|
4
5
|
export { ToastClose, type ToastCloseProps } from './ToastClose.tsx';
|
|
5
6
|
export { ToastDescription, type ToastDescriptionProps, } from './ToastDescription.tsx';
|
|
6
7
|
export { ToastIcon, type ToastIconProps } from './ToastIcon.tsx';
|
|
7
8
|
export { ToastTitle, type ToastTitleProps } from './ToastTitle.tsx';
|
|
8
9
|
export { Toaster, type ToasterProps } from './Toaster.tsx';
|
|
9
|
-
export { type ToastActionDescriptor, type ToastEntry, type ToastOptions, type ToastType, type UseToastReturn, dismissAllToasts, dismissToast, toast, useToast, } from './useToast.ts';
|
|
10
|
+
export { type ToastActionDescriptor, type ToastActionVariant, type ToastActionSet, type ToastEntry, type ToastOptions, type ToastType, type UseToastReturn, dismissAllToasts, dismissToast, resolveToastActions, toast, useToast, } from './useToast.ts';
|
|
10
11
|
/** The six corners the stack can be anchored to. */
|
|
11
12
|
export declare const TOAST_POSITIONS: readonly ["top-left", "top-center", "top-right", "bottom-left", "bottom-center", "bottom-right"];
|
|
12
13
|
export type ToastPosition = (typeof TOAST_POSITIONS)[number];
|
|
@@ -9,14 +9,39 @@ export interface ToastActionDescriptor {
|
|
|
9
9
|
*/
|
|
10
10
|
altText?: string;
|
|
11
11
|
}
|
|
12
|
+
/**
|
|
13
|
+
* Up to two buttons. A record and not an ordered array because the two are not
|
|
14
|
+
* interchangeable — each has its own fill — and either may be absent on its
|
|
15
|
+
* own, which an array could only say with a hole in it.
|
|
16
|
+
*/
|
|
17
|
+
export interface ToastActionSet {
|
|
18
|
+
/** `Button default`, first in the row. */
|
|
19
|
+
primary?: ToastActionDescriptor;
|
|
20
|
+
/** `Button outline`. */
|
|
21
|
+
secondary?: ToastActionDescriptor;
|
|
22
|
+
}
|
|
23
|
+
export type ToastActionVariant = 'primary' | 'secondary';
|
|
12
24
|
export interface ToastOptions {
|
|
13
25
|
title: string;
|
|
14
26
|
description?: string;
|
|
15
27
|
type?: ToastType;
|
|
28
|
+
/**
|
|
29
|
+
* Shorthand for `actions.secondary`. The board's own single-action example
|
|
30
|
+
* (`1443:42780`) is the outline button alone, which is what this has always
|
|
31
|
+
* rendered.
|
|
32
|
+
*/
|
|
16
33
|
action?: ToastActionDescriptor;
|
|
34
|
+
actions?: ToastActionSet;
|
|
17
35
|
/** Overrides the `duration` `OxToaster` was mounted with. */
|
|
18
36
|
duration?: number;
|
|
19
37
|
}
|
|
38
|
+
/**
|
|
39
|
+
* The row's contents, primary first — the board caps it at two and fixes that
|
|
40
|
+
* order (node `1443:21`, §7).
|
|
41
|
+
*/
|
|
42
|
+
export declare function resolveToastActions(options: Pick<ToastOptions, 'action' | 'actions'>): Array<ToastActionDescriptor & {
|
|
43
|
+
variant: ToastActionVariant;
|
|
44
|
+
}>;
|
|
20
45
|
export interface ToastEntry extends ToastOptions {
|
|
21
46
|
id: string;
|
|
22
47
|
type: ToastType;
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
*/
|
|
23
23
|
export type FieldVariant = 'default' | 'error' | 'success' | 'warning';
|
|
24
24
|
/** The parts of the group that announce themselves so an IDREF never dangles. */
|
|
25
|
-
type FieldPart = 'label' | 'message';
|
|
25
|
+
type FieldPart = 'label' | 'description' | 'message';
|
|
26
26
|
export interface FieldGroupContextValue {
|
|
27
27
|
/**
|
|
28
28
|
* Id on the `<label>`. A composite control — one with several focusable
|
|
@@ -30,12 +30,18 @@ export interface FieldGroupContextValue {
|
|
|
30
30
|
* `aria-labelledby` here.
|
|
31
31
|
*/
|
|
32
32
|
labelId: string;
|
|
33
|
+
/**
|
|
34
|
+
* Id on the supporting text. Separate from `messageId` because the two
|
|
35
|
+
* coexist: an invalid toggle row has both, and a reader should get both.
|
|
36
|
+
*/
|
|
37
|
+
descriptionId: string;
|
|
33
38
|
/** Id on the message, and what a control points `aria-describedby` at. */
|
|
34
39
|
messageId: string;
|
|
35
40
|
/** What `<label htmlFor>` points at, once a control has claimed it. */
|
|
36
41
|
controlId: string | undefined;
|
|
37
42
|
variant: FieldVariant;
|
|
38
43
|
hasLabel: boolean;
|
|
44
|
+
hasDescription: boolean;
|
|
39
45
|
hasMessage: boolean;
|
|
40
46
|
/** Announce a part as mounted. Returns the call that takes it back. */
|
|
41
47
|
register: (_part: FieldPart) => () => void;
|
|
@@ -59,6 +65,9 @@ export interface FieldLabelAttrs {
|
|
|
59
65
|
id?: string;
|
|
60
66
|
htmlFor?: string;
|
|
61
67
|
}
|
|
68
|
+
export interface FieldDescriptionAttrs {
|
|
69
|
+
id?: string;
|
|
70
|
+
}
|
|
62
71
|
export declare const FieldGroupContext: import('react').Context<FieldGroupContextValue | null>;
|
|
63
72
|
/**
|
|
64
73
|
* The surrounding field, or `undefined` when there is none.
|
|
@@ -92,6 +101,11 @@ export declare function useFieldControl(id?: string): FieldControlAttrs;
|
|
|
92
101
|
export declare function useFieldControlGroup(): FieldControlGroupAttrs;
|
|
93
102
|
/** Wiring for a `<label>` inside the group: its own id, and what it names. */
|
|
94
103
|
export declare function useFieldLabel(): FieldLabelAttrs;
|
|
104
|
+
/**
|
|
105
|
+
* Wiring for the supporting text: the id the control adds to its
|
|
106
|
+
* `aria-describedby`. A `<span>` next to a control is not attached to it.
|
|
107
|
+
*/
|
|
108
|
+
export declare function useFieldDescription(): FieldDescriptionAttrs;
|
|
95
109
|
/**
|
|
96
110
|
* Wiring for the message: the id a control describes itself with, and the
|
|
97
111
|
* group's variant so it does not have to be written on both.
|
|
@@ -105,4 +119,14 @@ export declare function useFieldMessage(): {
|
|
|
105
119
|
* the bookkeeping live next to the hooks that read them.
|
|
106
120
|
*/
|
|
107
121
|
export declare function useProvideFieldGroup(variant: FieldVariant): FieldGroupContextValue;
|
|
122
|
+
/**
|
|
123
|
+
* For a group that pairs its own label with its own control while still
|
|
124
|
+
* answering to the field around it — `<OxToggleGroup>`.
|
|
125
|
+
*
|
|
126
|
+
* Own label, control and description; variant and message delegated outward.
|
|
127
|
+
* Letting the outer field through instead would have every toggle row in it
|
|
128
|
+
* claim the same `controlId`; shadowing it would drop the error's
|
|
129
|
+
* `aria-invalid` and `aria-describedby`.
|
|
130
|
+
*/
|
|
131
|
+
export declare function useProvideNestedFieldGroup(): FieldGroupContextValue;
|
|
108
132
|
export {};
|
|
@@ -42,3 +42,14 @@ export declare const formatYear: (locale: string, month: Date) => string;
|
|
|
42
42
|
* have to carry.
|
|
43
43
|
*/
|
|
44
44
|
export declare const formatMonthShort: (locale: string, month: Date) => string;
|
|
45
|
+
/**
|
|
46
|
+
* A month and its year, abbreviated — `oct 2026`, `Oct 2026`.
|
|
47
|
+
*
|
|
48
|
+
* What `OxMonthPicker`'s trigger shows, and deliberately not `formatMonthYear`:
|
|
49
|
+
* the board writes the chosen month the same length as `OxDatePicker` writes a
|
|
50
|
+
* day (`12 mar 2026`), so two pickers in one form read as one family rather
|
|
51
|
+
* than one of them spelling `octubre de 2026` out in full.
|
|
52
|
+
*/
|
|
53
|
+
export declare const formatMonthYearShort: (locale: string, month: Date) => string;
|
|
54
|
+
/** The span a year page covers — `2020 – 2031` — for the panel's own header. */
|
|
55
|
+
export declare const formatYearRange: (locale: string, first: Date, last: Date) => string;
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import { InputSize } from '../inputSize.ts';
|
|
2
2
|
export interface InputTextProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size'> {
|
|
3
3
|
size?: InputSize;
|
|
4
|
+
/**
|
|
5
|
+
* `ghost` keeps every metric `default` has — height, side padding, corner —
|
|
6
|
+
* and drops the box, so a focused field is the only one drawing a border.
|
|
7
|
+
*/
|
|
8
|
+
variant?: 'default' | 'ghost';
|
|
4
9
|
/** Controlled value. Pair with `onFieldChange`; omit for uncontrolled. */
|
|
5
10
|
field?: string;
|
|
6
11
|
/** Called on every input with the next value. */
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { CalendarConstraints } from '../Calendar/constraints.ts';
|
|
2
|
+
export interface MonthPickerProps extends Pick<React.HTMLAttributes<HTMLDivElement>, 'className'> {
|
|
3
|
+
/** The chosen month, or `undefined` for none. Controlled. */
|
|
4
|
+
value?: Date;
|
|
5
|
+
/** The initially chosen month, for the uncontrolled case. */
|
|
6
|
+
defaultValue?: Date;
|
|
7
|
+
onValueChange?: (value: Date | undefined) => void;
|
|
8
|
+
/**
|
|
9
|
+
* The year the panel shows, to follow or drive the view from outside. Left
|
|
10
|
+
* unbound it is the chosen month's year, or the current one, re-read each
|
|
11
|
+
* time the panel opens.
|
|
12
|
+
*/
|
|
13
|
+
visibleYear?: number;
|
|
14
|
+
onVisibleYearChange?: (year: number) => void;
|
|
15
|
+
/** What can be picked, and where paging stops. Passed straight through. */
|
|
16
|
+
constraints?: CalendarConstraints;
|
|
17
|
+
/**
|
|
18
|
+
* The board's `Show arrows`: a ‹ › pair outside the field that steps the
|
|
19
|
+
* chosen month without opening the panel, for a report header or a monthly
|
|
20
|
+
* view. Off by default.
|
|
21
|
+
*/
|
|
22
|
+
showArrows?: boolean;
|
|
23
|
+
disabled?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* What the trigger shows. Falls back to the month from `Intl`, and to nothing
|
|
26
|
+
* while none is chosen — pass one to put a placeholder there.
|
|
27
|
+
*/
|
|
28
|
+
children?: (state: {
|
|
29
|
+
value: Date | undefined;
|
|
30
|
+
}) => React.ReactNode;
|
|
31
|
+
/** The trailing glyph. Falls back to a calendar. */
|
|
32
|
+
icon?: React.ReactNode;
|
|
33
|
+
dataTestid: string;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* A field that shows the chosen month and opens a grid of them to change it.
|
|
37
|
+
* Mirrors `@sesame/orxata-core` MonthPicker.
|
|
38
|
+
*
|
|
39
|
+
* `OxDatePicker` one unit up, and built from the same parts: `OxPopover` for
|
|
40
|
+
* the surface, `OxDatePickerTrigger` for the closed control — the same trigger,
|
|
41
|
+
* not a copy of it, so two pickers in one form cannot disagree about a radius —
|
|
42
|
+
* and `OxMonthPickerPanel` for the board's `Calendar / Months`.
|
|
43
|
+
*
|
|
44
|
+
* A `Date` at the boundary means a calendar month, the way `OxCalendar`'s means
|
|
45
|
+
* a day.
|
|
46
|
+
*
|
|
47
|
+
* **Four of the board's ten properties are not props here.** `Show label`,
|
|
48
|
+
* `Label`, `Show helper` and `Helper` are an `OxFieldGroup` with an
|
|
49
|
+
* `OxFieldLabel` and an `OxFieldMessage` composed around this, which is how
|
|
50
|
+
* every field in the package is labelled; `State` is hover, focus and open in
|
|
51
|
+
* CSS, `disabled` natively, and error from the field context. `Size` is the
|
|
52
|
+
* `inputSizeClass[size]` class on any ancestor, which is how every control in
|
|
53
|
+
* the package is sized.
|
|
54
|
+
*
|
|
55
|
+
* It ships no strings: the trigger is `Intl` in the locale `LocaleProvider`
|
|
56
|
+
* publishes, and a placeholder is words, so it is `children`'s to supply.
|
|
57
|
+
*/
|
|
58
|
+
export declare const MonthPicker: {
|
|
59
|
+
({ className, value, defaultValue, onValueChange, visibleYear, onVisibleYearChange, constraints, showArrows, disabled, children, icon, dataTestid, }: MonthPickerProps): import("react/jsx-runtime").JSX.Element;
|
|
60
|
+
displayName: string;
|
|
61
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { CalendarConstraints } from '../Calendar/constraints.ts';
|
|
2
|
+
export interface MonthPickerPanelProps extends Pick<React.HTMLAttributes<HTMLDivElement>, 'className'> {
|
|
3
|
+
/** The year on screen. The months grid shows it; the years grid shows its page. */
|
|
4
|
+
visibleYear: number;
|
|
5
|
+
/** The year on screen, whenever paging or the cursor leaves the one before. */
|
|
6
|
+
onVisibleYearChange?: (year: number) => void;
|
|
7
|
+
/**
|
|
8
|
+
* The chosen month, as a `Date` on its first day at local midnight —
|
|
9
|
+
* `OxCalendar`'s contract for a day, one unit up. Controlled.
|
|
10
|
+
*/
|
|
11
|
+
value?: Date;
|
|
12
|
+
/** The initially chosen month, for the uncontrolled case. */
|
|
13
|
+
defaultValue?: Date;
|
|
14
|
+
onValueChange?: (value: Date | undefined) => void;
|
|
15
|
+
/** What can be picked, and where paging stops. */
|
|
16
|
+
constraints?: CalendarConstraints;
|
|
17
|
+
dataTestid: string;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* The board's `Calendar / Months` (node `2397:3065`): a 3×4 grid of months,
|
|
21
|
+
* and the same grid of years behind the header. Mirrors `@sesame/orxata-core`
|
|
22
|
+
* MonthPickerPanel.
|
|
23
|
+
*
|
|
24
|
+
* It is `OxCalendar`'s opposite number one step up — a month is the unit here,
|
|
25
|
+
* so there is no week, no weekday row and nothing for Radix's calendar
|
|
26
|
+
* primitives to do. It shares the vocabulary: the same `CalendarConstraints`,
|
|
27
|
+
* the same `Intl`-only formatting.
|
|
28
|
+
*
|
|
29
|
+
* Like `OxCalendar` it draws no surface of its own — the fill, the border, the
|
|
30
|
+
* radius and the shadow belong to whatever it is portalled into, which for
|
|
31
|
+
* `OxMonthPicker` is `OxPopoverContent`'s `Surface`.
|
|
32
|
+
*
|
|
33
|
+
* It ships no strings: the cells, the header and the arrows' names are `Intl`'s
|
|
34
|
+
* rather than a phrase we would have to translate.
|
|
35
|
+
*/
|
|
36
|
+
export declare const MonthPickerPanel: {
|
|
37
|
+
({ className, visibleYear, onVisibleYearChange, value, defaultValue, onValueChange, constraints, dataTestid, }: MonthPickerPanelProps): import("react/jsx-runtime").JSX.Element;
|
|
38
|
+
displayName: string;
|
|
39
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { CalendarConstraints } from '../Calendar/constraints.ts';
|
|
2
|
+
/**
|
|
3
|
+
* The arithmetic behind the month panel: which cells a page holds, which of
|
|
4
|
+
* them can be picked, and where a key moves the cursor. Mirrors
|
|
5
|
+
* `@sesame/orxata-core` `MonthPicker/monthGrid.ts`.
|
|
6
|
+
*
|
|
7
|
+
* Framework-free and duplicated verbatim, the way `month.ts` and `format.ts`
|
|
8
|
+
* already are — the panel is a grid in both packages, and a keyboard that
|
|
9
|
+
* disagrees across the port is the drift the parity rules cannot see.
|
|
10
|
+
*/
|
|
11
|
+
/** Three columns by four rows, which is how the board draws both views. */
|
|
12
|
+
export declare const GRID_COLUMNS = 3;
|
|
13
|
+
export declare const MONTHS_IN_YEAR = 12;
|
|
14
|
+
export declare const YEARS_IN_PAGE = 12;
|
|
15
|
+
/**
|
|
16
|
+
* A page is the decade the year falls in, drawn twelve cells long (node
|
|
17
|
+
* `2397:3027`). Decade-anchored and not tiled by twelve: tiling makes the page
|
|
18
|
+
* depend on how the year was arrived at, and the two cells of overlap it costs
|
|
19
|
+
* are cheaper than a year with two possible grids.
|
|
20
|
+
*/
|
|
21
|
+
export declare const YEAR_PAGE_STEP = 10;
|
|
22
|
+
export declare const yearPageStart: (year: number) => number;
|
|
23
|
+
export declare const monthsOfYear: (year: number) => Date[];
|
|
24
|
+
export declare const yearsOfPage: (year: number) => Date[];
|
|
25
|
+
/**
|
|
26
|
+
* Bounds are read by month, the way `Calendar` reads them.
|
|
27
|
+
*
|
|
28
|
+
* The predicate is documented as per-day because that is what a calendar
|
|
29
|
+
* needs; there is no per-month one to add without growing
|
|
30
|
+
* `CalendarConstraints` a field only this component would read.
|
|
31
|
+
*/
|
|
32
|
+
export declare const isMonthDisabled: (month: Date, constraints?: CalendarConstraints) => boolean;
|
|
33
|
+
export declare const isYearDisabled: (year: Date, constraints?: CalendarConstraints) => boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Where a key puts the cursor, as an index.
|
|
36
|
+
*
|
|
37
|
+
* Unclamped on purpose: the caller turns the index back into a date with
|
|
38
|
+
* `new Date(year, index, 1)`, so the wrap past either end is free rather than
|
|
39
|
+
* an edge case written down twice. `pageStep` is what PageUp/PageDown move by,
|
|
40
|
+
* which is not `cells`.
|
|
41
|
+
*/
|
|
42
|
+
export declare const moveWithin: (key: string, index: number, { cells, pageStep }: {
|
|
43
|
+
cells: number;
|
|
44
|
+
pageStep: number;
|
|
45
|
+
}) => number | null;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
|
|
2
2
|
export interface CheckboxProps extends React.ComponentPropsWithoutRef<typeof CheckboxPrimitive.Root> {
|
|
3
3
|
variant?: 'default' | 'rounded';
|
|
4
|
+
size?: 'sm' | 'md' | 'lg';
|
|
4
5
|
}
|
|
5
6
|
/**
|
|
6
7
|
* Checkbox — built on `@radix-ui/react-checkbox`. `checked` is
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
export interface ToggleDescriptionProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
2
2
|
size?: 'xs' | 'sm' | 'base';
|
|
3
3
|
}
|
|
4
|
-
/**
|
|
4
|
+
/**
|
|
5
|
+
* ToggleDescription — mirrors `@sesame/orxata-core` ToggleDescription. `id`
|
|
6
|
+
* comes from the surrounding group so the toggle can point `aria-describedby`
|
|
7
|
+
* at it; without one, only a sighted user ever got this sentence.
|
|
8
|
+
*/
|
|
5
9
|
export declare const ToggleDescription: import('react').ForwardRefExoticComponent<ToggleDescriptionProps & import('react').RefAttributes<HTMLSpanElement>>;
|
|
@@ -2,6 +2,14 @@ export interface ToggleGroupProps extends React.ComponentPropsWithoutRef<'div'>
|
|
|
2
2
|
align?: 'start' | 'center';
|
|
3
3
|
gap?: 'sm' | 'md' | 'lg';
|
|
4
4
|
}
|
|
5
|
-
/**
|
|
6
|
-
*
|
|
5
|
+
/**
|
|
6
|
+
* ToggleGroup — mirrors `@sesame/orxata-core` ToggleGroup. A toggle, its label
|
|
7
|
+
* and its supporting text on one grid row, wired to each other: it provides
|
|
8
|
+
* the field context `OxToggleLabel` reads its `htmlFor` from and
|
|
9
|
+
* `OxToggleDescription` its `id`.
|
|
10
|
+
*
|
|
11
|
+
* No `data-slot` of its own. It used to say `controller` — a lie, the control
|
|
12
|
+
* is the checkbox inside it — purely so `OxFieldGroup` would order it second,
|
|
13
|
+
* which that stylesheet's catch-all child selector already does.
|
|
14
|
+
*/
|
|
7
15
|
export declare const ToggleGroup: import('react').ForwardRefExoticComponent<ToggleGroupProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -4,11 +4,8 @@ export interface ToggleLabelProps extends React.LabelHTMLAttributes<HTMLLabelEle
|
|
|
4
4
|
/**
|
|
5
5
|
* ToggleLabel — mirrors `@sesame/orxata-core` ToggleLabel.
|
|
6
6
|
*
|
|
7
|
-
* `htmlFor` falls back to whichever control claimed the surrounding
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* otherwise leave the toggle's own label naming nothing. It does not take the
|
|
11
|
-
* group's `labelId`: `OxFieldLabel` already carries that, and two elements
|
|
12
|
-
* cannot share an id.
|
|
7
|
+
* `htmlFor` falls back to whichever control claimed the surrounding group's
|
|
8
|
+
* id, normally the `<OxToggleGroup>` above it. It does not take the group's
|
|
9
|
+
* `labelId`: `OxFieldLabel` carries that, and an id cannot be on both.
|
|
13
10
|
*/
|
|
14
11
|
export declare const ToggleLabel: import('react').ForwardRefExoticComponent<ToggleLabelProps & import('react').RefAttributes<HTMLLabelElement>>;
|
|
@@ -9,6 +9,7 @@ export * from './ChatInput/index.ts';
|
|
|
9
9
|
export * from './ColorPicker/index.ts';
|
|
10
10
|
export * from './IconPicker/index.ts';
|
|
11
11
|
export * from './DatePicker/index.ts';
|
|
12
|
+
export * from './MonthPicker/index.ts';
|
|
12
13
|
export * from './RichTextEditor/index.ts';
|
|
13
14
|
export * from './SearchBar/index.ts';
|
|
14
15
|
export * from './SearchPanel/index.ts';
|
|
@@ -1,3 +1,21 @@
|
|
|
1
1
|
import * as TabsPrimitive from '@radix-ui/react-tabs';
|
|
2
|
-
export type ToggleTabsListProps = React.ComponentPropsWithoutRef<typeof TabsPrimitive.List
|
|
3
|
-
|
|
2
|
+
export type ToggleTabsListProps = React.ComponentPropsWithoutRef<typeof TabsPrimitive.List> & {
|
|
3
|
+
/**
|
|
4
|
+
* Track height: `sm` is the 40px default, `xs` the compact 32px step.
|
|
5
|
+
*
|
|
6
|
+
* Figma's `Toggle view` set names its variants `sm` and `xs` where its own
|
|
7
|
+
* description reads "Default/Small": the binding wins, and 32px is already
|
|
8
|
+
* `xs` on the control height ladder in `inputSizes.css`.
|
|
9
|
+
*/
|
|
10
|
+
size?: 'sm' | 'xs';
|
|
11
|
+
};
|
|
12
|
+
export declare const ToggleTabsList: import('react').ForwardRefExoticComponent<Omit<TabsPrimitive.TabsListProps & import('react').RefAttributes<HTMLDivElement>, "ref"> & {
|
|
13
|
+
/**
|
|
14
|
+
* Track height: `sm` is the 40px default, `xs` the compact 32px step.
|
|
15
|
+
*
|
|
16
|
+
* Figma's `Toggle view` set names its variants `sm` and `xs` where its own
|
|
17
|
+
* description reads "Default/Small": the binding wins, and 32px is already
|
|
18
|
+
* `xs` on the control height ladder in `inputSizes.css`.
|
|
19
|
+
*/
|
|
20
|
+
size?: "sm" | "xs";
|
|
21
|
+
} & import('react').RefAttributes<HTMLDivElement>>;
|
package/dist/main.d.ts
CHANGED
|
@@ -58,12 +58,12 @@ export { EmptyStateOption as OxEmptyStateOption } from './Feedback/EmptyState/Em
|
|
|
58
58
|
export { Loader as OxLoader } from './Feedback/Loader/index.ts';
|
|
59
59
|
export { Progress as OxProgress } from './Feedback/Progress/index.ts';
|
|
60
60
|
export { Skeleton as OxSkeleton } from './Feedback/Skeleton/index.ts';
|
|
61
|
-
export { Alert as OxAlert, AlertClose as OxAlertClose, AlertDescription as OxAlertDescription, AlertIcon as OxAlertIcon, AlertTitle as OxAlertTitle, AlertToggle as OxAlertToggle, } from './Feedback/Alert/index.ts';
|
|
61
|
+
export { Alert as OxAlert, AlertClose as OxAlertClose, AlertDescription as OxAlertDescription, AlertIcon as OxAlertIcon, AlertLink as OxAlertLink, AlertTitle as OxAlertTitle, AlertToggle as OxAlertToggle, } from './Feedback/Alert/index.ts';
|
|
62
62
|
export { Dialog as OxDialog, DialogContent as OxDialogContent, DialogBody as OxDialogBody, DialogTitle as OxDialogTitle, DialogDescription as OxDialogDescription, DialogOverlay as OxDialogOverlay, DialogTwoPanelContent as OxDialogTwoPanelContent, DialogFullScreenContent as OxDialogFullScreenContent, DialogTrigger as OxDialogTrigger, DialogClose as OxDialogClose, } from './Feedback/Dialog/index.ts';
|
|
63
63
|
export { Drawer as OxDrawer, DrawerContent as OxDrawerContent, DrawerBody as OxDrawerBody, DrawerTitle as OxDrawerTitle, DrawerDescription as OxDrawerDescription, DrawerExpand as OxDrawerExpand, DrawerTrigger as OxDrawerTrigger, DrawerClose as OxDrawerClose, } from './Feedback/Drawer/index.ts';
|
|
64
64
|
export { Tooltip as OxTooltip, TooltipContent as OxTooltipContent, } from './Feedback/Tooltip/index.ts';
|
|
65
65
|
export { Popover as OxPopover, PopoverContent as OxPopoverContent, PopoverClose as OxPopoverClose, } from './Feedback/Popover/index.ts';
|
|
66
|
-
export { Toaster as OxToaster, Toast as OxToast, ToastIcon as OxToastIcon, ToastTitle as OxToastTitle, ToastDescription as OxToastDescription, ToastAction as OxToastAction, ToastClose as OxToastClose, TOAST_POSITIONS, type ToastPosition, type ToastType, type ToastOptions, type ToastEntry, type ToastActionDescriptor, type UseToastReturn, type ToastVariants, type ToastViewportVariants, toastVariants, toastViewportVariants, toastSwipeDirection, dismissAllToasts, dismissToast, toast, useToast, } from './Feedback/Toast/index.ts';
|
|
66
|
+
export { Toaster as OxToaster, Toast as OxToast, ToastIcon as OxToastIcon, ToastTitle as OxToastTitle, ToastDescription as OxToastDescription, ToastAction as OxToastAction, ToastActions as OxToastActions, ToastClose as OxToastClose, TOAST_POSITIONS, type ToastPosition, type ToastType, type ToastOptions, type ToastEntry, type ToastActionDescriptor, type ToastActionVariant, type ToastActionSet, type UseToastReturn, type ToastVariants, type ToastViewportVariants, toastVariants, toastViewportVariants, toastSwipeDirection, dismissAllToasts, dismissToast, resolveToastActions, toast, useToast, } from './Feedback/Toast/index.ts';
|
|
67
67
|
export { Accordion as OxAccordion, AccordionItem as OxAccordionItem, AccordionTrigger as OxAccordionTrigger, AccordionContent as OxAccordionContent, } from './Navigation/Accordion/index.ts';
|
|
68
68
|
export { Tabs as OxTabs, TabsList as OxTabsList, TabsTrigger as OxTabsTrigger, TabsContent as OxTabsContent, } from './Navigation/Tabs/index.ts';
|
|
69
69
|
export { ToggleTabs as OxToggleTabs, ToggleTabsList as OxToggleTabsList, ToggleTabsTrigger as OxToggleTabsTrigger, ToggleTabsContent as OxToggleTabsContent, } from './Navigation/ToggleTabs/index.ts';
|
|
@@ -74,7 +74,7 @@ export { Breadcrumb as OxBreadcrumb, BreadcrumbList as OxBreadcrumbList, Breadcr
|
|
|
74
74
|
export { Counter as OxCounter, counterVariants, type CounterVariants, } from './Forms/Field/Counter/index.ts';
|
|
75
75
|
export { FieldGroup as OxFieldGroup, FieldLabel as OxFieldLabel, FieldMessage as OxFieldMessage, useFieldControl, useFieldControlGroup, type FieldControlAttrs, type FieldControlGroupAttrs, type FieldGroupProps, type FieldVariant, } from './Forms/Field/index.ts';
|
|
76
76
|
export { AiSearch as OxAiSearch, AiSearchAsk as OxAiSearchAsk, AiSearchPanel as OxAiSearchPanel, AiSearchSend as OxAiSearchSend, AiSearchShortcut as OxAiSearchShortcut, AiSearchSuggestion as OxAiSearchSuggestion, } from './Forms/Inputs/AiSearch/index.ts';
|
|
77
|
-
export { InputGroup as OxInputGroup, InputText as OxInputText, InputNumber as OxInputNumber, InputNumberContent as OxInputNumberContent, InputNumberDecrement as OxInputNumberDecrement, InputNumberIncrement as OxInputNumberIncrement, InputNumberInput as OxInputNumberInput, InputPassword as OxInputPassword, InputPasswordInput as OxInputPasswordInput, InputPasswordToggle as OxInputPasswordToggle, useInputPassword, InputOtp as OxInputOtp, InputOtpGroup as OxInputOtpGroup, InputOtpSlot as OxInputOtpSlot, InputOtpSeparator as OxInputOtpSeparator, useInputOtp, Calendar as OxCalendar, CalendarRange as OxCalendarRange, CalendarDay as OxCalendarDay, calendarDayVariants, Combobox as OxCombobox, ComboboxCancel as OxComboboxCancel, ComboboxInput as OxComboboxInput, ComboboxChipsInput as OxComboboxChipsInput, ComboboxContent as OxComboboxContent, ComboboxItem as OxComboboxItem, ComboboxItemEdit as OxComboboxItemEdit, ComboboxEmpty as OxComboboxEmpty, ComboboxGroup as OxComboboxGroup, ComboboxSeparator as OxComboboxSeparator, ChatInput as OxChatInput, ColorPicker as OxColorPicker, ColorPickerTrigger as OxColorPickerTrigger, ColorPickerContent as OxColorPickerContent, ColorPickerSwatch as OxColorPickerSwatch, useColorPicker, IconPicker as OxIconPicker, IconPickerTrigger as OxIconPickerTrigger, IconPickerContent as OxIconPickerContent, IconPickerItem as OxIconPickerItem, useIconPicker, DatePicker as OxDatePicker, DateRangePicker as OxDateRangePicker, DatePickerTrigger as OxDatePickerTrigger, DatePickerHeader as OxDatePickerHeader, DatePickerMonthSelect as OxDatePickerMonthSelect, DatePickerYearSelect as OxDatePickerYearSelect, SearchBar as OxSearchBar, searchBarVariants, SearchPanel as OxSearchPanel, SearchPanelInput as OxSearchPanelInput, SearchPanelList as OxSearchPanelList, SearchPanelGroup as OxSearchPanelGroup, SearchPanelItem as OxSearchPanelItem, SearchPanelEmpty as OxSearchPanelEmpty, Select as OxSelect, SelectTrigger as OxSelectTrigger, SelectContent as OxSelectContent, SelectItem as OxSelectItem, SelectGroup as OxSelectGroup, SelectSeparator as OxSelectSeparator, TimePicker as OxTimePicker, TimePickerField as OxTimePickerField, TimePickerList as OxTimePickerList, TimePickerWheel as OxTimePickerWheel, TimePickerWheelColumn as OxTimePickerWheelColumn, Textarea as OxTextarea, RichTextEditor as OxRichTextEditor, RichTextToolbar as OxRichTextToolbar, RichTextToolbarButton as OxRichTextToolbarButton, RICH_TEXT_COMMANDS, RICH_TEXT_COMMAND_NAMES, isRichTextAdapter, oxRichTextExtensions, useRichTextAdapter, useRichTextToolbar, type RichTextAdapter, type RichTextCommand, type RichTextCommandSpec, type RichTextExtras, type RichTextSource, Switch as OxSwitch, Checkbox as OxCheckbox, RadioButton as OxRadioButton, RadioGroup as OxRadioGroup, ToggleGroup as OxToggleGroup, ToggleLabel as OxToggleLabel, ToggleDescription as OxToggleDescription, SWITCH_SIZES, type InputNumberProps, type InputPasswordProps, type InputPasswordContext, type InputOtpProps, type InputOtpSlotProps, type InputOtpContext, type CalendarProps, type CalendarRangeProps, type CalendarDateRange, type CalendarDayProps, type CalendarDayState, type CalendarDayVariants, type CalendarConstraints, type CalendarNav, type ComboboxProps, type ChatInputActionLabels, type ChatInputState, type ColorPickerProps, type ColorPickerContext, type IconPickerProps, type IconPickerContext, type DatePickerProps, type DateRangePickerProps, type DatePickerTriggerProps, type DatePickerHeaderProps, type DatePickerMonthSelectProps, type DatePickerYearSelectProps, type SearchBarVariants, type SelectProps, type TimePickerProps, type TimeFormat, type TimePart, type TextareaCounterState, type RadioGroupProps, type ToggleGroupProps, type ToggleLabelProps, type ToggleDescriptionProps, } from './Forms/Inputs/index.ts';
|
|
77
|
+
export { InputGroup as OxInputGroup, InputText as OxInputText, InputNumber as OxInputNumber, InputNumberContent as OxInputNumberContent, InputNumberDecrement as OxInputNumberDecrement, InputNumberIncrement as OxInputNumberIncrement, InputNumberInput as OxInputNumberInput, InputPassword as OxInputPassword, InputPasswordInput as OxInputPasswordInput, InputPasswordToggle as OxInputPasswordToggle, useInputPassword, InputOtp as OxInputOtp, InputOtpGroup as OxInputOtpGroup, InputOtpSlot as OxInputOtpSlot, InputOtpSeparator as OxInputOtpSeparator, useInputOtp, Calendar as OxCalendar, CalendarRange as OxCalendarRange, CalendarDay as OxCalendarDay, calendarDayVariants, Combobox as OxCombobox, ComboboxCancel as OxComboboxCancel, ComboboxInput as OxComboboxInput, ComboboxChipsInput as OxComboboxChipsInput, ComboboxContent as OxComboboxContent, ComboboxItem as OxComboboxItem, ComboboxItemEdit as OxComboboxItemEdit, ComboboxEmpty as OxComboboxEmpty, ComboboxGroup as OxComboboxGroup, ComboboxSeparator as OxComboboxSeparator, ChatInput as OxChatInput, ColorPicker as OxColorPicker, ColorPickerTrigger as OxColorPickerTrigger, ColorPickerContent as OxColorPickerContent, ColorPickerSwatch as OxColorPickerSwatch, useColorPicker, IconPicker as OxIconPicker, IconPickerTrigger as OxIconPickerTrigger, IconPickerContent as OxIconPickerContent, IconPickerItem as OxIconPickerItem, useIconPicker, DatePicker as OxDatePicker, DateRangePicker as OxDateRangePicker, DatePickerTrigger as OxDatePickerTrigger, DatePickerHeader as OxDatePickerHeader, DatePickerMonthSelect as OxDatePickerMonthSelect, DatePickerYearSelect as OxDatePickerYearSelect, MonthPicker as OxMonthPicker, MonthPickerPanel as OxMonthPickerPanel, SearchBar as OxSearchBar, searchBarVariants, SearchPanel as OxSearchPanel, SearchPanelInput as OxSearchPanelInput, SearchPanelList as OxSearchPanelList, SearchPanelGroup as OxSearchPanelGroup, SearchPanelItem as OxSearchPanelItem, SearchPanelEmpty as OxSearchPanelEmpty, Select as OxSelect, SelectTrigger as OxSelectTrigger, SelectContent as OxSelectContent, SelectItem as OxSelectItem, SelectGroup as OxSelectGroup, SelectSeparator as OxSelectSeparator, TimePicker as OxTimePicker, TimePickerField as OxTimePickerField, TimePickerList as OxTimePickerList, TimePickerWheel as OxTimePickerWheel, TimePickerWheelColumn as OxTimePickerWheelColumn, Textarea as OxTextarea, RichTextEditor as OxRichTextEditor, RichTextToolbar as OxRichTextToolbar, RichTextToolbarButton as OxRichTextToolbarButton, RICH_TEXT_COMMANDS, RICH_TEXT_COMMAND_NAMES, isRichTextAdapter, oxRichTextExtensions, useRichTextAdapter, useRichTextToolbar, type RichTextAdapter, type RichTextCommand, type RichTextCommandSpec, type RichTextExtras, type RichTextSource, Switch as OxSwitch, Checkbox as OxCheckbox, RadioButton as OxRadioButton, RadioGroup as OxRadioGroup, ToggleGroup as OxToggleGroup, ToggleLabel as OxToggleLabel, ToggleDescription as OxToggleDescription, SWITCH_SIZES, type InputNumberProps, type InputPasswordProps, type InputPasswordContext, type InputOtpProps, type InputOtpSlotProps, type InputOtpContext, type CalendarProps, type CalendarRangeProps, type CalendarDateRange, type CalendarDayProps, type CalendarDayState, type CalendarDayVariants, type CalendarConstraints, type CalendarNav, type ComboboxProps, type ChatInputActionLabels, type ChatInputState, type ColorPickerProps, type ColorPickerContext, type IconPickerProps, type IconPickerContext, type DatePickerProps, type DateRangePickerProps, type DatePickerTriggerProps, type DatePickerHeaderProps, type DatePickerMonthSelectProps, type DatePickerYearSelectProps, type MonthPickerProps, type MonthPickerPanelProps, type SearchBarVariants, type SelectProps, type TimePickerProps, type TimeFormat, type TimePart, type TextareaCounterState, type RadioGroupProps, type ToggleGroupProps, type ToggleLabelProps, type ToggleDescriptionProps, } from './Forms/Inputs/index.ts';
|
|
78
78
|
export { KpiCard as OxKpiCard, kpiCardVariants, type KpiCardVariants, } from './Data/KpiCard/index.ts';
|
|
79
79
|
export { Table as OxTable, TableVirtualized as OxTableVirtualized, TableHead as OxTableHead, TableBody as OxTableBody, TableRow as OxTableRow, TableCell as OxTableCell, TableHeaderCell as OxTableHeaderCell, TableSelectCell as OxTableSelectCell, TableDragCell as OxTableDragCell, TableBulkHeader as OxTableBulkHeader, TablePagination as OxTablePagination, TableEmpty as OxTableEmpty, TableRowExpanded as OxTableRowExpanded, TableExpandCell as OxTableExpandCell, TableColumnVisibility as OxTableColumnVisibility, useTable, useTableSelection, useTableSorting, useTablePagination, useTableDetailRow, useTablePinning, useTableColumns, useScrollShadow, useDragToScroll, useFixedColumns, useTableVirtual, } from './Data/Table/index.ts';
|
|
80
80
|
export type { UseTableOptions, UseTableReturn, UseTableSelectionReturn, UseTableSortingReturn, UseTablePaginationOptions, UseTablePaginationReturn, DetailRowInstance, DetailRowOptions, DetailRowPluginDef, UseTablePinningOptions, UseTablePinningReturn, CellInfo, HeaderInfo, UseTableVirtualOptions, UseTableVirtualReturn, UseTableColumnsOptions, UseTableColumnsReturn, UseScrollShadowOptions, UseScrollShadowReturn, UseDragToScrollOptions, UseDragToScrollReturn, UseFixedColumnsOptions, TableProps, TableMode, ColumnDef, ColumnAlign, CellContext, SortingState, PaginationState, PaginationChangePayload, SortingChangePayload, SelectionChangePayload, FilterChangePayload, ColumnResizeMode, ColumnVisibilityState, ColumnOrderState, ExpandedState, ColumnVisibilityChangePayload, ColumnOrderChangePayload, RowExpandChangePayload, ColumnResizePayload, ColumnPinningState, } from './Data/Table/index.ts';
|