@serendie/ui 1.0.0 → 2.0.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/dist/assets/checkboxIndeterminate.svg.js +5 -0
- package/dist/components/Accordion/Accordion.d.ts +1 -1
- package/dist/components/Banner/Banner.d.ts +1 -1
- package/dist/components/BottomNavigation/BottomNavigationItem.d.ts +1 -1
- package/dist/components/Button/Button.d.ts +2 -2
- package/dist/components/Chart/SerendieChartProps.d.ts +40 -0
- package/dist/components/Chart/SerendieChartProps.js +127 -0
- package/dist/components/Chart/SerendieChartTheme.d.ts +2 -0
- package/dist/components/Chart/SerendieChartTheme.js +150 -0
- package/dist/components/Chart/chartData.d.ts +29 -0
- package/dist/components/Chart/index.d.ts +3 -0
- package/dist/components/Chart/index.js +15 -0
- package/dist/components/ChoiceBox/ChoiceBox.js +47 -41
- package/dist/components/DataTable/DataTableComponent.d.ts +23 -0
- package/dist/components/DataTable/DataTableComponent.js +52 -0
- package/dist/components/DataTable/createColumnHelper.d.ts +2 -0
- package/dist/components/DataTable/createColumnHelper.js +5 -0
- package/dist/components/DataTable/index.d.ts +19 -0
- package/dist/components/DataTable/index.js +28 -0
- package/dist/components/DataTable/table/BodyCell.d.ts +55 -0
- package/dist/components/DataTable/table/BodyCell.js +127 -0
- package/dist/components/DataTable/table/BodyCheckbox.d.ts +4 -0
- package/dist/components/DataTable/table/BodyCheckbox.js +22 -0
- package/dist/components/DataTable/table/HeaderCell.d.ts +8 -0
- package/dist/components/DataTable/table/HeaderCell.js +79 -0
- package/dist/components/DataTable/table/HeaderCheckbox.d.ts +2 -0
- package/dist/components/DataTable/table/HeaderCheckbox.js +26 -0
- package/dist/components/DataTable/table/HeaderRow.d.ts +11 -0
- package/dist/components/DataTable/table/HeaderRow.js +40 -0
- package/dist/components/DataTable/table/Root.d.ts +5 -0
- package/dist/components/DataTable/table/Root.js +34 -0
- package/dist/components/DataTable/table/Row.d.ts +5 -0
- package/dist/components/DataTable/table/Row.js +90 -0
- package/dist/components/DataTable/table/Tbody.d.ts +1 -0
- package/dist/components/DataTable/table/Tbody.js +7 -0
- package/dist/components/DataTable/table/Thead.d.ts +1 -0
- package/dist/components/DataTable/table/Thead.js +7 -0
- package/dist/components/DataTable/table/Tr.d.ts +1 -0
- package/dist/components/DataTable/table/Tr.js +27 -0
- package/dist/components/DataTable/table/index.d.ts +10 -0
- package/dist/components/DataTable/table/index.js +22 -0
- package/dist/components/DropdownMenu/DropdownMenu.d.ts +1 -1
- package/dist/components/IconButton/IconButton.d.ts +3 -3
- package/dist/components/Pagination/Pagination.d.ts +1 -1
- package/dist/components/RadioButton/RadioButton.d.ts +1 -1
- package/dist/components/Search/Search.d.ts +1 -1
- package/dist/components/Select/Select.d.ts +1 -1
- package/dist/components/Tabs/TabItem.d.ts +1 -1
- package/dist/components/Toast/Toast.d.ts +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +109 -92
- package/dist/node_modules/@tanstack/react-table/build/lib/index.js +100 -0
- package/dist/node_modules/@tanstack/table-core/build/lib/index.js +1741 -0
- package/dist/styled-system/tokens/index.js +4758 -0
- package/dist/styles.css +1 -1
- package/dist/tokens/getToken.js +4 -4
- package/dist/utils/colors.d.ts +1 -0
- package/dist/utils/colors.js +12 -0
- package/package.json +8 -2
|
@@ -92,19 +92,19 @@ type CircleLargeProps = {
|
|
|
92
92
|
export declare const IconButton: React.ForwardRefExoticComponent<(Omit<{
|
|
93
93
|
shape?: "circle" | "rectangle" | undefined;
|
|
94
94
|
styleType?: "filled" | "outlined" | "ghost" | undefined;
|
|
95
|
-
size?: "
|
|
95
|
+
size?: "medium" | "small" | "large" | undefined;
|
|
96
96
|
} & React.ClassAttributes<HTMLButtonElement> & React.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
97
97
|
icon: React.ReactElement;
|
|
98
98
|
} & RectangleProps, "ref"> | Omit<{
|
|
99
99
|
shape?: "circle" | "rectangle" | undefined;
|
|
100
100
|
styleType?: "filled" | "outlined" | "ghost" | undefined;
|
|
101
|
-
size?: "
|
|
101
|
+
size?: "medium" | "small" | "large" | undefined;
|
|
102
102
|
} & React.ClassAttributes<HTMLButtonElement> & React.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
103
103
|
icon: React.ReactElement;
|
|
104
104
|
} & CircleProps, "ref"> | Omit<{
|
|
105
105
|
shape?: "circle" | "rectangle" | undefined;
|
|
106
106
|
styleType?: "filled" | "outlined" | "ghost" | undefined;
|
|
107
|
-
size?: "
|
|
107
|
+
size?: "medium" | "small" | "large" | undefined;
|
|
108
108
|
} & React.ClassAttributes<HTMLButtonElement> & React.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
109
109
|
icon: React.ReactElement;
|
|
110
110
|
} & CircleLargeProps, "ref">) & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { default as React, ComponentProps } from 'react';
|
|
2
2
|
import { RecipeVariantProps } from '../../../styled-system/css';
|
|
3
|
-
export declare const PaginationStyle: import('../../../styled-system/types').SlotRecipeRuntimeFn<"
|
|
3
|
+
export declare const PaginationStyle: import('../../../styled-system/types').SlotRecipeRuntimeFn<"root" | "item" | "ellipsis" | "prevTrigger" | "nextTrigger", {
|
|
4
4
|
size: {
|
|
5
5
|
medium: {
|
|
6
6
|
root: {
|
|
@@ -20,7 +20,7 @@ export declare const radioUncheckedIconCss: {
|
|
|
20
20
|
color: string;
|
|
21
21
|
};
|
|
22
22
|
};
|
|
23
|
-
export declare const RadioButtonStyle: import('../../../styled-system/types').SlotRecipeRuntimeFn<"
|
|
23
|
+
export declare const RadioButtonStyle: import('../../../styled-system/types').SlotRecipeRuntimeFn<"itemControl" | "checkedIcon" | "itemTextGroup" | "itemText" | "helperText" | "item" | "unCheckedIcon", import('../../../styled-system/types').SlotRecipeVariantRecord<"itemControl" | "checkedIcon" | "itemTextGroup" | "itemText" | "helperText" | "item" | "unCheckedIcon">>;
|
|
24
24
|
type RadioButtonItemProps = {
|
|
25
25
|
label?: string;
|
|
26
26
|
helperText?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ComboboxRootProps } from '@ark-ui/react';
|
|
2
2
|
import { RecipeVariantProps } from '../../../styled-system/css';
|
|
3
|
-
export declare const SearchStyle: import('../../../styled-system/types').SlotRecipeRuntimeFn<"
|
|
3
|
+
export declare const SearchStyle: import('../../../styled-system/types').SlotRecipeRuntimeFn<"combobox" | "input" | "icon" | "control" | "comboboxItem" | "iconBox" | "closeIcon", {
|
|
4
4
|
size: {
|
|
5
5
|
medium: {
|
|
6
6
|
iconBox: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SelectRootProps } from '@ark-ui/react';
|
|
2
2
|
import { RecipeVariantProps } from '../../../styled-system/css';
|
|
3
|
-
export declare const SelectStyle: import('../../../styled-system/types').SlotRecipeRuntimeFn<"content" | "
|
|
3
|
+
export declare const SelectStyle: import('../../../styled-system/types').SlotRecipeRuntimeFn<"content" | "root" | "item" | "iconBox" | "valueText" | "trigger", {
|
|
4
4
|
size: {
|
|
5
5
|
medium: {
|
|
6
6
|
root: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Tabs as ArkTabs } from '@ark-ui/react';
|
|
2
2
|
import { RecipeVariantProps } from '../../../styled-system/css';
|
|
3
|
-
export declare const TabItemStyle: import('../../../styled-system/types').SlotRecipeRuntimeFn<"
|
|
3
|
+
export declare const TabItemStyle: import('../../../styled-system/types').SlotRecipeRuntimeFn<"dot" | "badge" | "trigger" | "badgeBox", import('../../../styled-system/types').SlotRecipeVariantRecord<"dot" | "badge" | "trigger" | "badgeBox">>;
|
|
4
4
|
type TabItemBaseProps = {
|
|
5
5
|
title: string;
|
|
6
6
|
value: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createToaster } from '@ark-ui/react';
|
|
2
|
-
export declare const ToastStyle: import('../../../styled-system/types').SlotRecipeRuntimeFn<"
|
|
2
|
+
export declare const ToastStyle: import('../../../styled-system/types').SlotRecipeRuntimeFn<"text" | "root" | "icon" | "textGroup", {
|
|
3
3
|
variant: {
|
|
4
4
|
default: {
|
|
5
5
|
root: {
|
package/dist/index.d.ts
CHANGED
|
@@ -5,9 +5,11 @@ export * from './components/Badge/index.ts';
|
|
|
5
5
|
export * from './components/Banner/index.ts';
|
|
6
6
|
export * from './components/BottomNavigation/index.ts';
|
|
7
7
|
export * from './components/Button/index.ts';
|
|
8
|
+
export * from './components/Chart/index.ts';
|
|
8
9
|
export * from './components/CheckBox/index.ts';
|
|
9
10
|
export * from './components/ChoiceBox/index.ts';
|
|
10
11
|
export * from './components/DashboardWidget/index.ts';
|
|
12
|
+
export * from './components/DataTable/index.ts';
|
|
11
13
|
export * from './components/Divider/index.ts';
|
|
12
14
|
export * from './components/Drawer/index.ts';
|
|
13
15
|
export * from './components/DropdownMenu/index.ts';
|
package/dist/index.js
CHANGED
|
@@ -1,97 +1,114 @@
|
|
|
1
|
-
import { SerendiePreset as
|
|
1
|
+
import { SerendiePreset as e } from "./preset.js";
|
|
2
2
|
import { Accordion as a } from "./components/Accordion/Accordion.js";
|
|
3
|
-
import { AccordionGroup as
|
|
4
|
-
import { Avatar as
|
|
5
|
-
import { Badge as f, BadgeCloseButton as
|
|
6
|
-
import { Banner as
|
|
7
|
-
import { BottomNavigation as
|
|
8
|
-
import { BottomNavigationItem as
|
|
9
|
-
import { Button as
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
3
|
+
import { AccordionGroup as m } from "./components/Accordion/AccordionGroup.js";
|
|
4
|
+
import { Avatar as x, AvatarStyle as n } from "./components/Avatar/Avatar.js";
|
|
5
|
+
import { Badge as f, BadgeCloseButton as s, BadgeStyle as d } from "./components/Badge/Badge.js";
|
|
6
|
+
import { Banner as h } from "./components/Banner/Banner.js";
|
|
7
|
+
import { BottomNavigation as S } from "./components/BottomNavigation/BottomNavigation.js";
|
|
8
|
+
import { BottomNavigationItem as g, BottomNavigationItemStyle as y } from "./components/BottomNavigation/BottomNavigationItem.js";
|
|
9
|
+
import { Button as I, ButtonStyle as T } from "./components/Button/Button.js";
|
|
10
|
+
import { SerendieChartTheme as b } from "./components/Chart/SerendieChartTheme.js";
|
|
11
|
+
import { compactChartMargin as D, defaultChartMargin as v, getChartColor as M, getChartColors as w, legendChartMargin as A, spaciousChartMargin as L, useBarChartProps as N, useChartProps as R, useLineChartProps as F, usePieChartProps as G } from "./components/Chart/SerendieChartProps.js";
|
|
12
|
+
import { CheckBox as W, CheckBoxStyle as j, checkboxCheckedIconCss as q, checkboxIconCss as z, checkboxUncheckedIconCss as E } from "./components/CheckBox/CheckBox.js";
|
|
13
|
+
import { ChoiceBox as J, ChoiceBoxStyle as K } from "./components/ChoiceBox/ChoiceBox.js";
|
|
14
|
+
import { DashboardWidget as Q } from "./components/DashboardWidget/DashboardWidget.js";
|
|
15
|
+
import { DataTable as X } from "./components/DataTable/index.js";
|
|
16
|
+
import { Divider as Z, DividerStyle as _ } from "./components/Divider/Divider.js";
|
|
17
|
+
import { Drawer as oo } from "./components/Drawer/Drawer.js";
|
|
18
|
+
import { DropdownMenu as eo, DropdownMenuStyle as to } from "./components/DropdownMenu/DropdownMenu.js";
|
|
19
|
+
import { IconButton as po, IconButtonStyle as mo } from "./components/IconButton/IconButton.js";
|
|
20
|
+
import { List as xo } from "./components/List/List.js";
|
|
21
|
+
import { ListItem as co, ListItemStyle as fo } from "./components/List/ListItem.js";
|
|
22
|
+
import { ModalDialog as lo } from "./components/ModalDialog/ModalDialog.js";
|
|
23
|
+
import { NotificationBadge as Co } from "./components/NotificationBadge/NotificationBadge.js";
|
|
24
|
+
import { Pagination as Bo, PaginationStyle as go } from "./components/Pagination/Pagination.js";
|
|
25
|
+
import { PasswordField as uo } from "./components/PasswordField/PasswordField.js";
|
|
26
|
+
import { ProgressIndicator as To, ProgressIndicatorStyle as Po } from "./components/ProgressIndicator/ProgressIndicator.js";
|
|
27
|
+
import { RadioButton as ko, RadioButtonStyle as Do, radioCheckedIconCss as vo, radioIconCss as Mo, radioUncheckedIconCss as wo } from "./components/RadioButton/RadioButton.js";
|
|
28
|
+
import { RadioGroup as Lo } from "./components/RadioButton/RadioGroup.js";
|
|
29
|
+
import { Search as Ro, SearchStyle as Fo } from "./components/Search/Search.js";
|
|
30
|
+
import { Select as Uo, SelectStyle as Wo } from "./components/Select/Select.js";
|
|
31
|
+
import { Switch as qo, SwitchStyle as zo } from "./components/Switch/Switch.js";
|
|
32
|
+
import { Tabs as Ho, TabsStyle as Jo } from "./components/Tabs/Tabs.js";
|
|
33
|
+
import { TabItem as Oo, TabItemStyle as Qo } from "./components/Tabs/TabItem.js";
|
|
34
|
+
import { TextArea as Xo } from "./components/TextArea/TextArea.js";
|
|
35
|
+
import { TextField as Zo } from "./components/TextField/TextField.js";
|
|
36
|
+
import { Toast as $o, ToastStyle as or, toaster as rr } from "./components/Toast/Toast.js";
|
|
37
|
+
import { TopAppBar as tr } from "./components/TopAppBar/TopAppBar.js";
|
|
38
|
+
import { DataTableComponent as pr } from "./components/DataTable/DataTableComponent.js";
|
|
35
39
|
export {
|
|
36
40
|
a as Accordion,
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
41
|
+
m as AccordionGroup,
|
|
42
|
+
x as Avatar,
|
|
43
|
+
n as AvatarStyle,
|
|
40
44
|
f as Badge,
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
45
|
+
s as BadgeCloseButton,
|
|
46
|
+
d as BadgeStyle,
|
|
47
|
+
h as Banner,
|
|
48
|
+
S as BottomNavigation,
|
|
49
|
+
g as BottomNavigationItem,
|
|
50
|
+
y as BottomNavigationItemStyle,
|
|
51
|
+
I as Button,
|
|
52
|
+
T as ButtonStyle,
|
|
53
|
+
W as CheckBox,
|
|
54
|
+
j as CheckBoxStyle,
|
|
55
|
+
J as ChoiceBox,
|
|
56
|
+
K as ChoiceBoxStyle,
|
|
57
|
+
Q as DashboardWidget,
|
|
58
|
+
X as DataTable,
|
|
59
|
+
pr as DataTableComponent,
|
|
60
|
+
Z as Divider,
|
|
61
|
+
_ as DividerStyle,
|
|
62
|
+
oo as Drawer,
|
|
63
|
+
eo as DropdownMenu,
|
|
64
|
+
to as DropdownMenuStyle,
|
|
65
|
+
po as IconButton,
|
|
66
|
+
mo as IconButtonStyle,
|
|
67
|
+
xo as List,
|
|
68
|
+
co as ListItem,
|
|
69
|
+
fo as ListItemStyle,
|
|
70
|
+
lo as ModalDialog,
|
|
71
|
+
Co as NotificationBadge,
|
|
72
|
+
Bo as Pagination,
|
|
73
|
+
go as PaginationStyle,
|
|
74
|
+
uo as PasswordField,
|
|
75
|
+
To as ProgressIndicator,
|
|
76
|
+
Po as ProgressIndicatorStyle,
|
|
77
|
+
ko as RadioButton,
|
|
78
|
+
Do as RadioButtonStyle,
|
|
79
|
+
Lo as RadioGroup,
|
|
80
|
+
Ro as Search,
|
|
81
|
+
Fo as SearchStyle,
|
|
82
|
+
Uo as Select,
|
|
83
|
+
Wo as SelectStyle,
|
|
84
|
+
b as SerendieChartTheme,
|
|
85
|
+
e as SerendiePreset,
|
|
86
|
+
qo as Switch,
|
|
87
|
+
zo as SwitchStyle,
|
|
88
|
+
Oo as TabItem,
|
|
89
|
+
Qo as TabItemStyle,
|
|
90
|
+
Ho as Tabs,
|
|
91
|
+
Jo as TabsStyle,
|
|
92
|
+
Xo as TextArea,
|
|
93
|
+
Zo as TextField,
|
|
94
|
+
$o as Toast,
|
|
95
|
+
or as ToastStyle,
|
|
96
|
+
tr as TopAppBar,
|
|
97
|
+
q as checkboxCheckedIconCss,
|
|
98
|
+
z as checkboxIconCss,
|
|
99
|
+
E as checkboxUncheckedIconCss,
|
|
100
|
+
D as compactChartMargin,
|
|
101
|
+
v as defaultChartMargin,
|
|
102
|
+
M as getChartColor,
|
|
103
|
+
w as getChartColors,
|
|
104
|
+
A as legendChartMargin,
|
|
105
|
+
vo as radioCheckedIconCss,
|
|
106
|
+
Mo as radioIconCss,
|
|
107
|
+
wo as radioUncheckedIconCss,
|
|
108
|
+
L as spaciousChartMargin,
|
|
109
|
+
rr as toaster,
|
|
110
|
+
N as useBarChartProps,
|
|
111
|
+
R as useChartProps,
|
|
112
|
+
F as useLineChartProps,
|
|
113
|
+
G as usePieChartProps
|
|
97
114
|
};
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import * as o from "react";
|
|
2
|
+
import { createTable as u } from "../../../table-core/build/lib/index.js";
|
|
3
|
+
import { ColumnFaceting as S, ColumnFiltering as R, ColumnGrouping as b, ColumnOrdering as y, ColumnPinning as w, ColumnSizing as F, ColumnVisibility as h, GlobalFaceting as O, GlobalFiltering as x, Headers as v, RowExpanding as E, RowPagination as G, RowPinning as P, RowSelection as $, RowSorting as A, _getVisibleLeafColumns as H, aggregationFns as M, buildHeaderGroups as V, createCell as j, createColumn as k, createColumnHelper as z, createRow as N, defaultColumnSizing as T, filterFns as U, flattenBy as _, functionalUpdate as B, getCoreRowModel as L, getMemoOptions as q, getSortedRowModel as D, isFunction as I, isNumberArray as J, isRowSelected as K, isSubRowSelected as Q, makeStateUpdater as W, memo as X, orderColumns as Y, passiveEventSupported as Z, reSplitAlphaNumeric as ee, selectRowsFn as te, shouldAutoRemoveFilter as ne, sortingFns as oe } from "../../../table-core/build/lib/index.js";
|
|
4
|
+
/**
|
|
5
|
+
* react-table
|
|
6
|
+
*
|
|
7
|
+
* Copyright (c) TanStack
|
|
8
|
+
*
|
|
9
|
+
* This source code is licensed under the MIT license found in the
|
|
10
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
11
|
+
*
|
|
12
|
+
* @license MIT
|
|
13
|
+
*/
|
|
14
|
+
function m(e, t) {
|
|
15
|
+
return e ? s(e) ? /* @__PURE__ */ o.createElement(e, t) : e : null;
|
|
16
|
+
}
|
|
17
|
+
function s(e) {
|
|
18
|
+
return c(e) || typeof e == "function" || f(e);
|
|
19
|
+
}
|
|
20
|
+
function c(e) {
|
|
21
|
+
return typeof e == "function" && (() => {
|
|
22
|
+
const t = Object.getPrototypeOf(e);
|
|
23
|
+
return t.prototype && t.prototype.isReactComponent;
|
|
24
|
+
})();
|
|
25
|
+
}
|
|
26
|
+
function f(e) {
|
|
27
|
+
return typeof e == "object" && typeof e.$$typeof == "symbol" && ["react.memo", "react.forward_ref"].includes(e.$$typeof.description);
|
|
28
|
+
}
|
|
29
|
+
function p(e) {
|
|
30
|
+
const t = {
|
|
31
|
+
state: {},
|
|
32
|
+
// Dummy state
|
|
33
|
+
onStateChange: () => {
|
|
34
|
+
},
|
|
35
|
+
// noop
|
|
36
|
+
renderFallbackValue: null,
|
|
37
|
+
...e
|
|
38
|
+
}, [n] = o.useState(() => ({
|
|
39
|
+
current: u(t)
|
|
40
|
+
})), [i, a] = o.useState(() => n.current.initialState);
|
|
41
|
+
return n.current.setOptions((l) => ({
|
|
42
|
+
...l,
|
|
43
|
+
...e,
|
|
44
|
+
state: {
|
|
45
|
+
...i,
|
|
46
|
+
...e.state
|
|
47
|
+
},
|
|
48
|
+
// Similarly, we'll maintain both our internal state and any user-provided
|
|
49
|
+
// state.
|
|
50
|
+
onStateChange: (r) => {
|
|
51
|
+
a(r), e.onStateChange == null || e.onStateChange(r);
|
|
52
|
+
}
|
|
53
|
+
})), n.current;
|
|
54
|
+
}
|
|
55
|
+
export {
|
|
56
|
+
S as ColumnFaceting,
|
|
57
|
+
R as ColumnFiltering,
|
|
58
|
+
b as ColumnGrouping,
|
|
59
|
+
y as ColumnOrdering,
|
|
60
|
+
w as ColumnPinning,
|
|
61
|
+
F as ColumnSizing,
|
|
62
|
+
h as ColumnVisibility,
|
|
63
|
+
O as GlobalFaceting,
|
|
64
|
+
x as GlobalFiltering,
|
|
65
|
+
v as Headers,
|
|
66
|
+
E as RowExpanding,
|
|
67
|
+
G as RowPagination,
|
|
68
|
+
P as RowPinning,
|
|
69
|
+
$ as RowSelection,
|
|
70
|
+
A as RowSorting,
|
|
71
|
+
H as _getVisibleLeafColumns,
|
|
72
|
+
M as aggregationFns,
|
|
73
|
+
V as buildHeaderGroups,
|
|
74
|
+
j as createCell,
|
|
75
|
+
k as createColumn,
|
|
76
|
+
z as createColumnHelper,
|
|
77
|
+
N as createRow,
|
|
78
|
+
u as createTable,
|
|
79
|
+
T as defaultColumnSizing,
|
|
80
|
+
U as filterFns,
|
|
81
|
+
_ as flattenBy,
|
|
82
|
+
m as flexRender,
|
|
83
|
+
B as functionalUpdate,
|
|
84
|
+
L as getCoreRowModel,
|
|
85
|
+
q as getMemoOptions,
|
|
86
|
+
D as getSortedRowModel,
|
|
87
|
+
I as isFunction,
|
|
88
|
+
J as isNumberArray,
|
|
89
|
+
K as isRowSelected,
|
|
90
|
+
Q as isSubRowSelected,
|
|
91
|
+
W as makeStateUpdater,
|
|
92
|
+
X as memo,
|
|
93
|
+
Y as orderColumns,
|
|
94
|
+
Z as passiveEventSupported,
|
|
95
|
+
ee as reSplitAlphaNumeric,
|
|
96
|
+
te as selectRowsFn,
|
|
97
|
+
ne as shouldAutoRemoveFilter,
|
|
98
|
+
oe as sortingFns,
|
|
99
|
+
p as useReactTable
|
|
100
|
+
};
|