@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.
Files changed (59) hide show
  1. package/dist/assets/checkboxIndeterminate.svg.js +5 -0
  2. package/dist/components/Accordion/Accordion.d.ts +1 -1
  3. package/dist/components/Banner/Banner.d.ts +1 -1
  4. package/dist/components/BottomNavigation/BottomNavigationItem.d.ts +1 -1
  5. package/dist/components/Button/Button.d.ts +2 -2
  6. package/dist/components/Chart/SerendieChartProps.d.ts +40 -0
  7. package/dist/components/Chart/SerendieChartProps.js +127 -0
  8. package/dist/components/Chart/SerendieChartTheme.d.ts +2 -0
  9. package/dist/components/Chart/SerendieChartTheme.js +150 -0
  10. package/dist/components/Chart/chartData.d.ts +29 -0
  11. package/dist/components/Chart/index.d.ts +3 -0
  12. package/dist/components/Chart/index.js +15 -0
  13. package/dist/components/ChoiceBox/ChoiceBox.js +47 -41
  14. package/dist/components/DataTable/DataTableComponent.d.ts +23 -0
  15. package/dist/components/DataTable/DataTableComponent.js +52 -0
  16. package/dist/components/DataTable/createColumnHelper.d.ts +2 -0
  17. package/dist/components/DataTable/createColumnHelper.js +5 -0
  18. package/dist/components/DataTable/index.d.ts +19 -0
  19. package/dist/components/DataTable/index.js +28 -0
  20. package/dist/components/DataTable/table/BodyCell.d.ts +55 -0
  21. package/dist/components/DataTable/table/BodyCell.js +127 -0
  22. package/dist/components/DataTable/table/BodyCheckbox.d.ts +4 -0
  23. package/dist/components/DataTable/table/BodyCheckbox.js +22 -0
  24. package/dist/components/DataTable/table/HeaderCell.d.ts +8 -0
  25. package/dist/components/DataTable/table/HeaderCell.js +79 -0
  26. package/dist/components/DataTable/table/HeaderCheckbox.d.ts +2 -0
  27. package/dist/components/DataTable/table/HeaderCheckbox.js +26 -0
  28. package/dist/components/DataTable/table/HeaderRow.d.ts +11 -0
  29. package/dist/components/DataTable/table/HeaderRow.js +40 -0
  30. package/dist/components/DataTable/table/Root.d.ts +5 -0
  31. package/dist/components/DataTable/table/Root.js +34 -0
  32. package/dist/components/DataTable/table/Row.d.ts +5 -0
  33. package/dist/components/DataTable/table/Row.js +90 -0
  34. package/dist/components/DataTable/table/Tbody.d.ts +1 -0
  35. package/dist/components/DataTable/table/Tbody.js +7 -0
  36. package/dist/components/DataTable/table/Thead.d.ts +1 -0
  37. package/dist/components/DataTable/table/Thead.js +7 -0
  38. package/dist/components/DataTable/table/Tr.d.ts +1 -0
  39. package/dist/components/DataTable/table/Tr.js +27 -0
  40. package/dist/components/DataTable/table/index.d.ts +10 -0
  41. package/dist/components/DataTable/table/index.js +22 -0
  42. package/dist/components/DropdownMenu/DropdownMenu.d.ts +1 -1
  43. package/dist/components/IconButton/IconButton.d.ts +3 -3
  44. package/dist/components/Pagination/Pagination.d.ts +1 -1
  45. package/dist/components/RadioButton/RadioButton.d.ts +1 -1
  46. package/dist/components/Search/Search.d.ts +1 -1
  47. package/dist/components/Select/Select.d.ts +1 -1
  48. package/dist/components/Tabs/TabItem.d.ts +1 -1
  49. package/dist/components/Toast/Toast.d.ts +1 -1
  50. package/dist/index.d.ts +2 -0
  51. package/dist/index.js +109 -92
  52. package/dist/node_modules/@tanstack/react-table/build/lib/index.js +100 -0
  53. package/dist/node_modules/@tanstack/table-core/build/lib/index.js +1741 -0
  54. package/dist/styled-system/tokens/index.js +4758 -0
  55. package/dist/styles.css +1 -1
  56. package/dist/tokens/getToken.js +4 -4
  57. package/dist/utils/colors.d.ts +1 -0
  58. package/dist/utils/colors.js +12 -0
  59. 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?: "small" | "large" | "medium" | undefined;
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?: "small" | "large" | "medium" | undefined;
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?: "small" | "large" | "medium" | undefined;
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<"item" | "root" | "ellipsis" | "prevTrigger" | "nextTrigger", {
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<"item" | "itemControl" | "checkedIcon" | "itemTextGroup" | "itemText" | "helperText" | "unCheckedIcon", import('../../../styled-system/types').SlotRecipeVariantRecord<"item" | "itemControl" | "checkedIcon" | "itemTextGroup" | "itemText" | "helperText" | "unCheckedIcon">>;
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<"icon" | "input" | "combobox" | "control" | "comboboxItem" | "iconBox" | "closeIcon", {
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" | "item" | "root" | "iconBox" | "valueText" | "trigger", {
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<"badge" | "dot" | "trigger" | "badgeBox", import('../../../styled-system/types').SlotRecipeVariantRecord<"badge" | "dot" | "trigger" | "badgeBox">>;
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<"icon" | "text" | "root" | "textGroup", {
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 t } from "./preset.js";
1
+ import { SerendiePreset as e } from "./preset.js";
2
2
  import { Accordion as a } from "./components/Accordion/Accordion.js";
3
- import { AccordionGroup as x } from "./components/Accordion/AccordionGroup.js";
4
- import { Avatar as i, AvatarStyle as c } from "./components/Avatar/Avatar.js";
5
- import { Badge as f, BadgeCloseButton as d, BadgeStyle as s } from "./components/Badge/Badge.js";
6
- import { Banner as S } from "./components/Banner/Banner.js";
7
- import { BottomNavigation as y } from "./components/BottomNavigation/BottomNavigation.js";
8
- import { BottomNavigationItem as I, BottomNavigationItemStyle as g } from "./components/BottomNavigation/BottomNavigationItem.js";
9
- import { Button as u, ButtonStyle as k } from "./components/Button/Button.js";
10
- import { CheckBox as b, CheckBoxStyle as v, checkboxCheckedIconCss as D, checkboxIconCss as w, checkboxUncheckedIconCss as A } from "./components/CheckBox/CheckBox.js";
11
- import { ChoiceBox as N, ChoiceBoxStyle as L } from "./components/ChoiceBox/ChoiceBox.js";
12
- import { DashboardWidget as R } from "./components/DashboardWidget/DashboardWidget.js";
13
- import { Divider as G, DividerStyle as U } from "./components/Divider/Divider.js";
14
- import { Drawer as j } from "./components/Drawer/Drawer.js";
15
- import { DropdownMenu as z, DropdownMenuStyle as E } from "./components/DropdownMenu/DropdownMenu.js";
16
- import { IconButton as J, IconButtonStyle as K } from "./components/IconButton/IconButton.js";
17
- import { List as Q } from "./components/List/List.js";
18
- import { ListItem as X, ListItemStyle as Y } from "./components/List/ListItem.js";
19
- import { ModalDialog as _ } from "./components/ModalDialog/ModalDialog.js";
20
- import { NotificationBadge as oo } from "./components/NotificationBadge/NotificationBadge.js";
21
- import { Pagination as to, PaginationStyle as ro } from "./components/Pagination/Pagination.js";
22
- import { PasswordField as mo } from "./components/PasswordField/PasswordField.js";
23
- import { ProgressIndicator as po, ProgressIndicatorStyle as io } from "./components/ProgressIndicator/ProgressIndicator.js";
24
- import { RadioButton as no, RadioButtonStyle as fo, radioCheckedIconCss as so, radioIconCss as lo, radioUncheckedIconCss as So } from "./components/RadioButton/RadioButton.js";
25
- import { RadioGroup as yo } from "./components/RadioButton/RadioGroup.js";
26
- import { Search as Io, SearchStyle as go } from "./components/Search/Search.js";
27
- import { Select as uo, SelectStyle as ko } from "./components/Select/Select.js";
28
- import { Switch as bo, SwitchStyle as vo } from "./components/Switch/Switch.js";
29
- import { Tabs as wo, TabsStyle as Ao } from "./components/Tabs/Tabs.js";
30
- import { TabItem as No, TabItemStyle as Lo } from "./components/Tabs/TabItem.js";
31
- import { TextArea as Ro } from "./components/TextArea/TextArea.js";
32
- import { TextField as Go } from "./components/TextField/TextField.js";
33
- import { Toast as Wo, ToastStyle as jo, toaster as qo } from "./components/Toast/Toast.js";
34
- import { TopAppBar as Eo } from "./components/TopAppBar/TopAppBar.js";
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
- x as AccordionGroup,
38
- i as Avatar,
39
- c as AvatarStyle,
41
+ m as AccordionGroup,
42
+ x as Avatar,
43
+ n as AvatarStyle,
40
44
  f as Badge,
41
- d as BadgeCloseButton,
42
- s as BadgeStyle,
43
- S as Banner,
44
- y as BottomNavigation,
45
- I as BottomNavigationItem,
46
- g as BottomNavigationItemStyle,
47
- u as Button,
48
- k as ButtonStyle,
49
- b as CheckBox,
50
- v as CheckBoxStyle,
51
- N as ChoiceBox,
52
- L as ChoiceBoxStyle,
53
- R as DashboardWidget,
54
- G as Divider,
55
- U as DividerStyle,
56
- j as Drawer,
57
- z as DropdownMenu,
58
- E as DropdownMenuStyle,
59
- J as IconButton,
60
- K as IconButtonStyle,
61
- Q as List,
62
- X as ListItem,
63
- Y as ListItemStyle,
64
- _ as ModalDialog,
65
- oo as NotificationBadge,
66
- to as Pagination,
67
- ro as PaginationStyle,
68
- mo as PasswordField,
69
- po as ProgressIndicator,
70
- io as ProgressIndicatorStyle,
71
- no as RadioButton,
72
- fo as RadioButtonStyle,
73
- yo as RadioGroup,
74
- Io as Search,
75
- go as SearchStyle,
76
- uo as Select,
77
- ko as SelectStyle,
78
- t as SerendiePreset,
79
- bo as Switch,
80
- vo as SwitchStyle,
81
- No as TabItem,
82
- Lo as TabItemStyle,
83
- wo as Tabs,
84
- Ao as TabsStyle,
85
- Ro as TextArea,
86
- Go as TextField,
87
- Wo as Toast,
88
- jo as ToastStyle,
89
- Eo as TopAppBar,
90
- D as checkboxCheckedIconCss,
91
- w as checkboxIconCss,
92
- A as checkboxUncheckedIconCss,
93
- so as radioCheckedIconCss,
94
- lo as radioIconCss,
95
- So as radioUncheckedIconCss,
96
- qo as toaster
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
+ };