@sesamehr/react-design-system 3.7.0 → 3.7.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/dist/Forms/Inputs/RichTextEditor/commands.d.ts +11 -4
- package/dist/Forms/Inputs/RichTextEditor/extensions.d.ts +58 -15
- package/dist/Forms/Inputs/RichTextEditor/index.d.ts +1 -1
- package/dist/Forms/Inputs/RichTextEditor/useRichTextAdapter.d.ts +24 -4
- package/dist/main.d.ts +1 -1
- package/dist/react-design-system.js +792 -775
- package/dist/react-design-system.umd.cjs +12 -12
- package/package.json +18 -8
|
@@ -13,16 +13,18 @@ import { ChainedCommands } from '@tiptap/core';
|
|
|
13
13
|
* undo with either would be a different control wearing the wrong sign. A
|
|
14
14
|
* code *block* has only `icon-code`, already spoken for by inline code, and
|
|
15
15
|
* a rule has only `icon-minus`. The commands themselves are all in the
|
|
16
|
-
* preset — `
|
|
17
|
-
*
|
|
18
|
-
* behaviour.
|
|
16
|
+
* preset — `history` and `horizontalRule` are StarterKit extensions on
|
|
17
|
+
* TipTap 2 (`history` is what 3.x renamed to `undoRedo`), and the keyboard
|
|
18
|
+
* shortcuts work — so what is missing is the buttons, not the behaviour.
|
|
19
19
|
* - **A link is not a toggle.** `toggleLink` needs an `href`, and a button
|
|
20
20
|
* whose whole API is `command` has nowhere to get one. Wiring a URL prompt
|
|
21
21
|
* in here would be deciding what that prompt looks like for everybody. The
|
|
22
22
|
* toolbar takes arbitrary children instead, so a caller puts their own
|
|
23
23
|
* control in it and calls `editor.chain().setLink(…)` — which is also how
|
|
24
24
|
* anything else outside this list gets into a toolbar. The mark is styled
|
|
25
|
-
* either way; see `RICH_TEXT_SCHEMA`.
|
|
25
|
+
* either way; see `RICH_TEXT_SCHEMA`. On TipTap 2 `setLink` arrives with
|
|
26
|
+
* `@tiptap/extension-link`, which StarterKit does not carry — so it only
|
|
27
|
+
* exists for a caller who passed `Link` to `oxRichTextExtensions`.
|
|
26
28
|
*/
|
|
27
29
|
export type RichTextCommand = 'bold' | 'italic' | 'underline' | 'strike' | 'code' | 'heading1' | 'heading2' | 'heading3' | 'bulletList' | 'orderedList' | 'blockquote';
|
|
28
30
|
export interface RichTextCommandSpec {
|
|
@@ -61,6 +63,11 @@ export interface RichTextCommandSpec {
|
|
|
61
63
|
*
|
|
62
64
|
* A record and not a function, because the button resolves its own icon, label
|
|
63
65
|
* and pressed state from it — the only thing a caller writes is `command`.
|
|
66
|
+
*
|
|
67
|
+
* Every entry is listed unconditionally, including `underline`, whose extension
|
|
68
|
+
* is optional on TipTap 2. What decides whether a button appears is the
|
|
69
|
+
* editor's schema at runtime rather than this record — see
|
|
70
|
+
* `RichTextAdapter.supports`.
|
|
64
71
|
*/
|
|
65
72
|
export declare const RICH_TEXT_COMMANDS: Record<RichTextCommand, RichTextCommandSpec>;
|
|
66
73
|
/** Every command, in toolbar order. */
|
|
@@ -1,5 +1,45 @@
|
|
|
1
1
|
import { Extensions } from '@tiptap/core';
|
|
2
|
+
import { default as Link } from '@tiptap/extension-link';
|
|
3
|
+
import { default as Underline } from '@tiptap/extension-underline';
|
|
2
4
|
import { default as StarterKit } from '@tiptap/starter-kit';
|
|
5
|
+
/**
|
|
6
|
+
* The two marks StarterKit does not carry, handed over the same way StarterKit
|
|
7
|
+
* itself is.
|
|
8
|
+
*
|
|
9
|
+
* **On TipTap 2, `StarterKit` contains neither `Underline` nor `Link`** —
|
|
10
|
+
* `@tiptap/starter-kit@2.27.3` does not even depend on them, where 3.x does.
|
|
11
|
+
* That difference is the reason this parameter exists rather than the preset
|
|
12
|
+
* configuring them through `starterKit.configure()`, and it is worth knowing
|
|
13
|
+
* exactly how badly that fails, because it fails quietly in both directions:
|
|
14
|
+
*
|
|
15
|
+
* - `configure({ link: … })` on TipTap 2 is accepted and **stored**. No error,
|
|
16
|
+
* no warning, `starterKit.options.link` reads back exactly what was passed —
|
|
17
|
+
* and nothing anywhere consumes it, because there is no Link extension to
|
|
18
|
+
* consume it. A test asserting on `options.link` passes. The document has no
|
|
19
|
+
* `link` mark in it.
|
|
20
|
+
* - `toggleUnderline` is a command an extension contributes, so with no
|
|
21
|
+
* Underline extension the name is simply absent from the command manager.
|
|
22
|
+
* `editor.can().chain().focus().toggleUnderline()` is a call on `undefined`.
|
|
23
|
+
*
|
|
24
|
+
* Both are optional: a caller who wants neither passes neither, and the
|
|
25
|
+
* `underline` toolbar button then does not render at all rather than render
|
|
26
|
+
* disabled or render and throw. See `useRichTextAdapter` for how that is
|
|
27
|
+
* decided — the editor's own schema, so it covers a caller who narrows
|
|
28
|
+
* StarterKit as well.
|
|
29
|
+
*
|
|
30
|
+
* The keys are capitalised to match the names TipTap's own documentation gives
|
|
31
|
+
* these imports, so the call site is `{ Underline, Link }` with no renaming.
|
|
32
|
+
*/
|
|
33
|
+
export interface RichTextExtras {
|
|
34
|
+
/** `@tiptap/extension-underline`. Without it there is no underline button. */
|
|
35
|
+
Underline?: typeof Underline;
|
|
36
|
+
/**
|
|
37
|
+
* `@tiptap/extension-link`. Without it a typed URL stays text, and
|
|
38
|
+
* `editor.chain().setLink(…)` — the documented way to add the one mark the
|
|
39
|
+
* toolbar deliberately has no button for — does not exist.
|
|
40
|
+
*/
|
|
41
|
+
Link?: typeof Link;
|
|
42
|
+
}
|
|
3
43
|
/**
|
|
4
44
|
* The extension list both ends of a rich text field agree on.
|
|
5
45
|
*
|
|
@@ -15,40 +55,43 @@ import { default as StarterKit } from '@tiptap/starter-kit';
|
|
|
15
55
|
*
|
|
16
56
|
* ---
|
|
17
57
|
*
|
|
18
|
-
* **Why this takes
|
|
58
|
+
* **Why this takes its extensions as arguments instead of importing them.** The
|
|
19
59
|
* intended design was a plain exported array. It cannot be one, and the reason
|
|
20
60
|
* is worth writing down because the signature otherwise looks like ceremony:
|
|
21
61
|
*
|
|
22
62
|
* `oxRichTextExtensions` is published from `src/main.ts`, the barrel every
|
|
23
63
|
* consumer imports — including the one who only wants `OxButton`. A static
|
|
24
64
|
* `import StarterKit from '@tiptap/starter-kit'` anywhere in that graph becomes
|
|
25
|
-
* a top-level import in the built `
|
|
65
|
+
* a top-level import in the built `react-design-system.js`, and a bundler resolves
|
|
26
66
|
* every import it finds before it decides what to tree-shake. For a consumer
|
|
27
67
|
* who has not installed TipTap that is a module-resolution failure in their
|
|
28
68
|
* build — webpack calls it an error, Rollup leaves a bare specifier that fails
|
|
29
69
|
* at runtime — over a feature they never touched. "TipTap is an optional peer
|
|
30
70
|
* dependency" would be false the moment anything imported it eagerly.
|
|
31
71
|
*
|
|
32
|
-
* An `async` factory that `import()`s
|
|
33
|
-
* where it matters: `useEditor` needs its extensions synchronously, so
|
|
34
|
-
* caller would need a top-level `await` and a `<Suspense>` around their
|
|
35
|
-
* component in order to use a text field.
|
|
72
|
+
* An `async` factory that `import()`s them was the other option, and it is
|
|
73
|
+
* worse where it matters: `useEditor` needs its extensions synchronously, so
|
|
74
|
+
* every caller would need a top-level `await` and a `<Suspense>` around their
|
|
75
|
+
* own component in order to use a text field.
|
|
36
76
|
*
|
|
37
|
-
* So the caller hands over the
|
|
38
|
-
* file that is already importing `useEditor` from TipTap — and this package
|
|
39
|
-
* contributes the part that is actually its own: the configuration.
|
|
40
|
-
* parameter's type is
|
|
41
|
-
*
|
|
77
|
+
* So the caller hands over the extensions they already have — three imports, in
|
|
78
|
+
* a file that is already importing `useEditor` from TipTap — and this package
|
|
79
|
+
* contributes the part that is actually its own: the configuration. Every
|
|
80
|
+
* parameter's type is erased, so this module has no runtime dependency on
|
|
81
|
+
* TipTap at all, and none of the four specifiers needs to be external in
|
|
82
|
+
* `vite.config.ts`.
|
|
42
83
|
*
|
|
43
84
|
* ```ts
|
|
85
|
+
* import Link from '@tiptap/extension-link';
|
|
86
|
+
* import Underline from '@tiptap/extension-underline';
|
|
44
87
|
* import StarterKit from '@tiptap/starter-kit';
|
|
45
|
-
* import { useEditor } from '@tiptap/
|
|
46
|
-
* import { oxRichTextExtensions } from '@
|
|
88
|
+
* import { useEditor } from '@tiptap/react';
|
|
89
|
+
* import { oxRichTextExtensions } from '@sesamehr/react-design-system';
|
|
47
90
|
*
|
|
48
91
|
* const editor = useEditor({
|
|
49
|
-
* extensions: oxRichTextExtensions(StarterKit),
|
|
92
|
+
* extensions: oxRichTextExtensions(StarterKit, { Underline, Link }),
|
|
50
93
|
* content: '<p>…</p>',
|
|
51
94
|
* });
|
|
52
95
|
* ```
|
|
53
96
|
*/
|
|
54
|
-
export declare const oxRichTextExtensions: (starterKit: typeof StarterKit) => Extensions;
|
|
97
|
+
export declare const oxRichTextExtensions: (starterKit: typeof StarterKit, extras?: RichTextExtras) => Extensions;
|
|
@@ -2,6 +2,6 @@ export { RichTextEditor } from './RichTextEditor.tsx';
|
|
|
2
2
|
export { RichTextToolbar } from './RichTextToolbar/index.ts';
|
|
3
3
|
export { RichTextToolbarButton } from './RichTextToolbarButton/index.ts';
|
|
4
4
|
export { RICH_TEXT_COMMANDS, RICH_TEXT_COMMAND_NAMES, type RichTextCommand, type RichTextCommandSpec, } from './commands.ts';
|
|
5
|
-
export { oxRichTextExtensions } from './extensions.ts';
|
|
5
|
+
export { type RichTextExtras, oxRichTextExtensions } from './extensions.ts';
|
|
6
6
|
export { type RichTextAdapter, type RichTextSource, isRichTextAdapter, useRichTextAdapter, } from './useRichTextAdapter.ts';
|
|
7
7
|
export { useRichTextToolbar } from './useRichTextToolbar.ts';
|
|
@@ -3,10 +3,10 @@ import { RichTextCommand } from './commands.ts';
|
|
|
3
3
|
/**
|
|
4
4
|
* What the toolbar talks to, and the only thing it talks to.
|
|
5
5
|
*
|
|
6
|
-
*
|
|
7
|
-
* run this, is it on, is it available
|
|
8
|
-
* second editor becomes an implementation of this
|
|
9
|
-
* second toolbar.
|
|
6
|
+
* Four questions, which between them are everything a toolbar button needs:
|
|
7
|
+
* run this, is it on, is it available, does it exist here at all. Nothing here
|
|
8
|
+
* mentions TipTap, so a second editor becomes an implementation of this
|
|
9
|
+
* interface rather than a second toolbar.
|
|
10
10
|
*
|
|
11
11
|
* **What this is deliberately not is an abstraction of the document.** The
|
|
12
12
|
* document stays TipTap JSON, read and written through the editor the caller
|
|
@@ -21,6 +21,26 @@ export interface RichTextAdapter {
|
|
|
21
21
|
isActive: (command: RichTextCommand) => boolean;
|
|
22
22
|
/** Whether the command can run at all — a disabled button if not. */
|
|
23
23
|
can: (command: RichTextCommand) => boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Whether the command exists in this editor at all — **no button** if not,
|
|
26
|
+
* which is the difference between this and `can`.
|
|
27
|
+
*
|
|
28
|
+
* `can` is "not now": a list inside a code block, an empty selection. The
|
|
29
|
+
* reader waits and tries again. This is "not here": the extension behind the
|
|
30
|
+
* command was never loaded, so there is nothing to wait for, and a disabled
|
|
31
|
+
* button that will never enable is a control that lies about what the field
|
|
32
|
+
* can do.
|
|
33
|
+
*
|
|
34
|
+
* It exists because of TipTap 2. `StarterKit` there carries neither
|
|
35
|
+
* `Underline` nor `Link`, so `oxRichTextExtensions` takes them as optional
|
|
36
|
+
* arguments — and a caller who omits `Underline` would otherwise get an
|
|
37
|
+
* underline button whose `can` probe calls `toggleUnderline` on `undefined`.
|
|
38
|
+
*
|
|
39
|
+
* Optional, and absent means supported: an adapter written against an earlier
|
|
40
|
+
* version of this interface keeps working, and so does one for an editor
|
|
41
|
+
* whose command set is fixed.
|
|
42
|
+
*/
|
|
43
|
+
supports?: (command: RichTextCommand) => boolean;
|
|
24
44
|
}
|
|
25
45
|
/** Whatever `OxRichTextEditor` will accept as the thing the toolbar drives. */
|
|
26
46
|
export type RichTextSource = Editor | RichTextAdapter;
|
package/dist/main.d.ts
CHANGED
|
@@ -70,6 +70,6 @@ export { Breadcrumb as OxBreadcrumb, BreadcrumbList as OxBreadcrumbList, Breadcr
|
|
|
70
70
|
export { Counter as OxCounter, counterVariants, type CounterVariants, } from './Forms/Field/Counter/index.ts';
|
|
71
71
|
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';
|
|
72
72
|
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';
|
|
73
|
-
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 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';
|
|
73
|
+
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';
|
|
74
74
|
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';
|
|
75
75
|
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';
|