@infinite-table/infinite-react 0.3.7 โ 0.3.8
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 +45 -9
- package/index.css +6 -75
- package/index.d.ts +264 -1
- package/index.esm.css +6 -75
- package/index.esm.js +6 -1
- package/index.js +6 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -16,26 +16,47 @@
|
|
|
16
16
|
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
|
|
17
17
|
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
|
|
18
18
|
|
|
19
|
+
- [What is Infinite?](#what-is-infinite)
|
|
19
20
|
- [Installation](#installation)
|
|
20
|
-
- [
|
|
21
|
+
- [๐ Extensive documentation](#-extensive-documentation)
|
|
21
22
|
- [โค๏ธ TypeScript](#-typescript)
|
|
23
|
+
- [๐ข Enterprise-ready](#-enterprise-ready)
|
|
24
|
+
- [๐ Secure by default](#-secure-by-default)
|
|
25
|
+
- [๐ฆ Small bundle size](#-small-bundle-size)
|
|
26
|
+
- [๐งช Automated end-to-end tests](#%F0%9F%A7%AA-automated-end-to-end-tests)
|
|
22
27
|
- [๐จ Themable](#-themable)
|
|
23
|
-
- [Testing](#testing)
|
|
24
28
|
- [License](#license)
|
|
25
29
|
|
|
26
30
|
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
|
|
27
31
|
|
|
32
|
+
|
|
33
|
+
## What is Infinite?
|
|
34
|
+
|
|
35
|
+
Infinite Table is a React DataGrid component for displaying virtualized tabular data. It helps you display huge datasets and get the most out of them by providing you the right tools to do so:
|
|
36
|
+
|
|
37
|
+
* [sorting](https://infinite-table.com/docs/latest/learn/working-with-data/sorting)
|
|
38
|
+
* [row grouping](https://infinite-table.com/docs/latest/learn/grouping-and-pivoting/grouping-rows) - both server-side and client-side
|
|
39
|
+
* [pivoting](https://infinite-table.com/docs/latest/learn/grouping-and-pivoting/pivoting) - both server-side and client-side
|
|
40
|
+
* [aggregations](https://infinite-table.com/docs/latest/learn/grouping-and-pivoting/grouping-rows#aggregations)
|
|
41
|
+
* [live pagination](https://infinite-table.com/docs/latest/learn/working-with-data/live-pagination)
|
|
42
|
+
* [lazy loading](https://infinite-table.com/docs/latest/learn/working-with-data/lazy-loading)
|
|
43
|
+
* [keyboard navigation](https://infinite-table.com/docs/latest/learn/keyboard-navigation/navigating-cells)
|
|
44
|
+
* [fixed and flexible columns](https://infinite-table.com/docs/latest/learn/columns/fixed-and-flexible-size)
|
|
45
|
+
* [column grouping](https://infinite-table.com/docs/latest/learn/column-groups)
|
|
46
|
+
* [theming](https://infinite-table.com/docs/latest/learn/theming)
|
|
47
|
+
|
|
48
|
+
|
|
28
49
|
## Installation
|
|
29
50
|
|
|
30
51
|
```bash
|
|
31
52
|
npm install @infinite-table/infinite-react --save
|
|
32
53
|
```
|
|
33
54
|
|
|
34
|
-
## [
|
|
55
|
+
## [๐ Extensive documentation](https://infinite-table.com/docs)
|
|
35
56
|
|
|
36
57
|
Our approach with the `InfiniteTable` is to go documentation first. From our developer experience we know that most software products lack a good documentation. So we want to be different and start with the documentation first since our purpose is to have an outstanding documentation that developers can actually use.
|
|
37
58
|
|
|
38
|
-
**[Visit
|
|
59
|
+
**[Visit our docs and getting-started guide](https://infinite-table.com/docs)**
|
|
39
60
|
|
|
40
61
|
## โค๏ธ TypeScript
|
|
41
62
|
|
|
@@ -43,6 +64,25 @@ It's fully typed and offers you great developer experience to help you get up an
|
|
|
43
64
|
|
|
44
65
|
> The TypeScript typings file is included in the npm package - you don't have to download an additional **@types** package.
|
|
45
66
|
|
|
67
|
+
## ๐ข Enterprise-ready
|
|
68
|
+
|
|
69
|
+
Infinite Table is ready to power your enterprise apps, as it supports advanced data fetching, filtering, sorting, grouping, pivoting, aggregations, live pagination, lazy loading - all of those with support for both client-side and server-side implementations.
|
|
70
|
+
|
|
71
|
+
You can choose to leverage our built-in implementations in the browser or you can process your data on the server with full support from our-side.
|
|
72
|
+
|
|
73
|
+
### ๐ Secure by default
|
|
74
|
+
|
|
75
|
+
We take security seriously and only have a total of 3 dependencies in our full dependency graph - and this number will only go down.
|
|
76
|
+
|
|
77
|
+
### ๐ฆ Small bundle size
|
|
78
|
+
|
|
79
|
+
Our bundle size is under `200kB` and we're [keeping it small](https://bundlephobia.com/package/@infinite-table/infinite-react).
|
|
80
|
+
|
|
81
|
+
### ๐งช Automated end-to-end tests
|
|
82
|
+
|
|
83
|
+
Our releases are automated and we have [end-to-end tests](https://github.com/infinite-table/infinite-react/tree/master/source/examples/src/pages/tests) that ensure we're delivering to our standards. Real-browser tests help us move with confidence and continue to ship great features.
|
|
84
|
+
|
|
85
|
+
|
|
46
86
|
## ๐จ Themable
|
|
47
87
|
|
|
48
88
|
`Infinite Table` is fully customizable, via CSS variables. It ships with both a **light** and a **dark** theme - you have to import the CSS file from the package.
|
|
@@ -54,10 +94,6 @@ import "@infinite-table/infinite-react/index.css"
|
|
|
54
94
|
This file includes both the light and the dark themes.
|
|
55
95
|
|
|
56
96
|
|
|
57
|
-
## Testing
|
|
58
|
-
|
|
59
|
-
Infinite Table is built with extensive end-to-end testing via headless chrome (more exactly, puppeteer).
|
|
60
|
-
|
|
61
97
|
## License
|
|
62
98
|
|
|
63
|
-
[Commercial License](https://github.com/infinite-table/react-table/blob/master/source/LICENSE.md)
|
|
99
|
+
Both Open and [Commercial License](https://github.com/infinite-table/react-table/blob/master/source/LICENSE.md)
|
package/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* vanilla-extract-css-ns:@infinite-table/infinite-react/src/components/InfiniteTable/theme.css.ts.vanilla.css?source=#H4sIAAAAAAAAA+
|
|
1
|
+
/* vanilla-extract-css-ns:@infinite-table/infinite-react/src/components/InfiniteTable/theme.css.ts.vanilla.css?source=#H4sIAAAAAAAAA+1Xy27jIBTd5yuQsmmkUsWvpHU3I82XYMAxig0RkDSZUf59wHXqGBs3UdtZWaiqknMuF859cJNKITT4OwMAQsZzxpmmUO0QpnCZgqWk1esQFhjsKQgTHx5a3A9HFvaisUXXXjhJQeDDVgYb8bu2sBd9TkE4YvySgsirhxEr7oO54Boq9uddzCHPLaOWdDXkvuWEPmVaSi3t8zgnHlSwxROfii1l5VGyZax9ataUHFWsPKWA8YJKph0KFqWQKZjHz3Y5IMKYmh0unDxfL+PI4WRCEiqhRITtVQoOSD70c3ThGiG83Uix5yQFb4X5xsErxmFB2abQ5vLL5e7o4KVABFZIbaGmR93ZTm4y9BAmyePlz8TIdd+aiwOVJTp1dthIdPrUQJiLMX2yKeAq0pIb4YaVb2k7RAjjG494if/049p3UHeTgiILYlqWncvPKbFrhN2cFh49543GXF2MT18w7pkOOljcwjouwIg/ItFmY2kdgUhMIuLG/NqMYcHrwjS5u+ql7jVTCanf6RWSxtOYwfUZRm7W0nxKNsW8yu3qd4N9xS/USwVG/QKsfTVb4b2Upk38tp+GaE0evjGiC3PD4b3GayDsRdOTLlcOe1v1DrMASpSMgDle2TVydsYPTLGsNCHlgrvd6pp5Xx9EWLNDdwOlT9YNQaroleEA3avqALeOF4RGmfX6ZrYJSRC/3EzPzFsUJGP0jwSFqNwV6H18ucMAQo1MJOCe5wLvFSX1gORsIMXbWMX4q8QaCkK6JV+XipsfFt31HM1xhhPs3qflNhXGqdJ1ug/UlqUV9p1x+k5m1wB3JxjXhk0PpgoVNO+pUUdhKcqydoH2WrzOzrOn0pbzI3hqX5Lmi/p/aufTHppOU+s0tU5T6zS1TlPrNLVOU+s0tU5T6zS1/teplSC5vR5L7Wd3IO24DJZBHLix75SYybtLEYUoCiPfw9E0HRzZdetTFGRhELruv6sdelSOsnidxD+aTWFspHIT9rqhfsh0nv2qKGEIPOwkzalUTZUpXNCqbhJyu6gj2P64uCWad8bztojeG9Pvi+p9cf1CZO+J7efRBeA8O/8D9swiI8wYAAA= */
|
|
2
2
|
:root {
|
|
3
3
|
--infinite-space-0: 0rem;
|
|
4
4
|
--infinite-space-1: 0.125rem;
|
|
@@ -61,7 +61,10 @@
|
|
|
61
61
|
--infinite-row-hover-background: #dbdbdb;
|
|
62
62
|
--infinite-row-pointer-events-while-scrolling: auto;
|
|
63
63
|
}
|
|
64
|
-
.light
|
|
64
|
+
.light,
|
|
65
|
+
.infinite-light,
|
|
66
|
+
.light:root,
|
|
67
|
+
.infinite-light:root {
|
|
65
68
|
--infinite-space-0: 0rem;
|
|
66
69
|
--infinite-space-1: 0.125rem;
|
|
67
70
|
--infinite-space-2: 0.25rem;
|
|
@@ -123,79 +126,7 @@
|
|
|
123
126
|
--infinite-row-hover-background: #dbdbdb;
|
|
124
127
|
--infinite-row-pointer-events-while-scrolling: auto;
|
|
125
128
|
}
|
|
126
|
-
.
|
|
127
|
-
--infinite-space-0: 0rem;
|
|
128
|
-
--infinite-space-1: 0.125rem;
|
|
129
|
-
--infinite-space-2: 0.25rem;
|
|
130
|
-
--infinite-space-3: 0.5rem;
|
|
131
|
-
--infinite-space-4: 0.75rem;
|
|
132
|
-
--infinite-space-5: 1rem;
|
|
133
|
-
--infinite-space-6: 1.25rem;
|
|
134
|
-
--infinite-space-7: 1.5rem;
|
|
135
|
-
--infinite-space-8: 2.25rem;
|
|
136
|
-
--infinite-space-9: 3rem;
|
|
137
|
-
--infinite-space-10: 4rem;
|
|
138
|
-
--infinite-font-size-0: 0.5rem;
|
|
139
|
-
--infinite-font-size-1: 0.625rem;
|
|
140
|
-
--infinite-font-size-2: 0.75rem;
|
|
141
|
-
--infinite-font-size-3: 0.875rem;
|
|
142
|
-
--infinite-font-size-4: 1rem;
|
|
143
|
-
--infinite-font-size-5: 1.25rem;
|
|
144
|
-
--infinite-font-size-6: 1.5rem;
|
|
145
|
-
--infinite-font-size-7: 2.25rem;
|
|
146
|
-
--infinite-font-family: inherit;
|
|
147
|
-
--infinite-color: #484848;
|
|
148
|
-
--infinite-accent-color: #ff7043;
|
|
149
|
-
--infinite-border-radius: var(--infinite-space-2);
|
|
150
|
-
--infinite-background: white;
|
|
151
|
-
--infinite-min-height: 100px;
|
|
152
|
-
--infinite-load-mask-text-background: rgba(255,255,255,0.8);
|
|
153
|
-
--infinite-load-mask-overlay-background: gray;
|
|
154
|
-
--infinite-load-mask-overlay-opacity: 0.3;
|
|
155
|
-
--infinite-load-mask-color: inherit;
|
|
156
|
-
--infinite-load-mask-padding: var(--infinite-space-5);
|
|
157
|
-
--infinite-load-mask-border-radius: var(--infinite-border-radius);
|
|
158
|
-
--infinite-header-cell-background: #ededed;
|
|
159
|
-
--infinite-header-cell-padding-x: var(--infinite-space-3);
|
|
160
|
-
--infinite-header-cell-padding-y: var(--infinite-space-3);
|
|
161
|
-
--infinite-header-cell-padding: var(--infinite-header-cell-padding-y) var(--infinite-header-cell-padding-x) ;
|
|
162
|
-
--infinite-header-cell-dragging-background: #d4d3d3;
|
|
163
|
-
--infinite-header-cell-icon-size: 16px;
|
|
164
|
-
--infinite-header-cell-sort-icon-margin: 16px;
|
|
165
|
-
--infinite-header-background: var(--infinite-header-cell-background);
|
|
166
|
-
--infinite-header-color: #6f6f6f;
|
|
167
|
-
--infinite-column-header-height: 30px;
|
|
168
|
-
--infinite-cell-color: currentColor;
|
|
169
|
-
--infinite-cell-border-width: 1px;
|
|
170
|
-
--infinite-cell-padding: var(--infinite-space-2) var(--infinite-space-3);
|
|
171
|
-
--infinite-cell-border: var(--infinite-cell-border-width) solid #c6c6c6;
|
|
172
|
-
--infinite-cell-border-invisible: none;
|
|
173
|
-
--infinite-cell-border-radius: var(--infinite-space-2);
|
|
174
|
-
--infinite-active-cell-border-style: dashed;
|
|
175
|
-
--infinite-active-cell-border-width: 1px;
|
|
176
|
-
--infinite-active-cell-border-color--r: 77;
|
|
177
|
-
--infinite-active-cell-border-color--g: 149;
|
|
178
|
-
--infinite-active-cell-border-color--b: 215;
|
|
179
|
-
--infinite-active-cell-background-alpha: 0.25;
|
|
180
|
-
--infinite-active-cell-background-alpha--table-unfocused: 0.1;
|
|
181
|
-
--infinite-row-background: var(--infinite-background);
|
|
182
|
-
--infinite-row-odd-background: #f6f6f6;
|
|
183
|
-
--infinite-group-row-background: #cbc5c5;
|
|
184
|
-
--infinite-group-row-column-nesting: 30px;
|
|
185
|
-
--infinite-row-hover-background: #dbdbdb;
|
|
186
|
-
--infinite-row-pointer-events-while-scrolling: auto;
|
|
187
|
-
}
|
|
188
|
-
.dark {
|
|
189
|
-
--infinite-background: #101419;
|
|
190
|
-
--infinite-cell-border: 1px solid #2a323d;
|
|
191
|
-
--infinite-header-color: #c3c3c3;
|
|
192
|
-
--infinite-header-cell-background: #1b2129;
|
|
193
|
-
--infinite-header-background: var(--infinite-header-cell-background);
|
|
194
|
-
--infinite-row-hover-background: #3b4754;
|
|
195
|
-
--infinite-row-background: var(--infinite-background);
|
|
196
|
-
--infinite-row-odd-background: #242a31;
|
|
197
|
-
--infinite-cell-color: #c3c3c3;
|
|
198
|
-
}
|
|
129
|
+
.dark,
|
|
199
130
|
.infinite-dark {
|
|
200
131
|
--infinite-background: #101419;
|
|
201
132
|
--infinite-cell-border: 1px solid #2a323d;
|
package/index.d.ts
CHANGED
|
@@ -1599,6 +1599,269 @@ declare function useInfiniteHeaderCell<T>(): InfiniteTableColumnHeaderParams<T,
|
|
|
1599
1599
|
|
|
1600
1600
|
declare function useInfiniteColumnCell<T>(): InfiniteTableColumnCellContextType<T>;
|
|
1601
1601
|
|
|
1602
|
+
declare const ThemeVars: _vanilla_extract_private.MapLeafNodes<{
|
|
1603
|
+
color: {
|
|
1604
|
+
/**
|
|
1605
|
+
* Brand-specific accent color. This probably needs override to match your app.
|
|
1606
|
+
*/
|
|
1607
|
+
accent: string;
|
|
1608
|
+
/**
|
|
1609
|
+
* The text color inside the component
|
|
1610
|
+
*/
|
|
1611
|
+
color: string;
|
|
1612
|
+
};
|
|
1613
|
+
spacing: {
|
|
1614
|
+
0: string;
|
|
1615
|
+
1: string;
|
|
1616
|
+
2: string;
|
|
1617
|
+
3: string;
|
|
1618
|
+
4: string;
|
|
1619
|
+
5: string;
|
|
1620
|
+
6: string;
|
|
1621
|
+
7: string;
|
|
1622
|
+
8: string;
|
|
1623
|
+
9: string;
|
|
1624
|
+
10: string;
|
|
1625
|
+
};
|
|
1626
|
+
fontSize: {
|
|
1627
|
+
0: string;
|
|
1628
|
+
1: string;
|
|
1629
|
+
2: string;
|
|
1630
|
+
3: string;
|
|
1631
|
+
4: string;
|
|
1632
|
+
5: string;
|
|
1633
|
+
6: string;
|
|
1634
|
+
7: string;
|
|
1635
|
+
};
|
|
1636
|
+
fontFamily: string;
|
|
1637
|
+
minHeight: string;
|
|
1638
|
+
borderRadius: string;
|
|
1639
|
+
/**
|
|
1640
|
+
* The background color for the whole component.
|
|
1641
|
+
*
|
|
1642
|
+
* Overriden in the `dark` theme.
|
|
1643
|
+
*/
|
|
1644
|
+
background: string;
|
|
1645
|
+
components: {
|
|
1646
|
+
LoadMask: {
|
|
1647
|
+
/**
|
|
1648
|
+
* The padding used for the content inside the LoadMask.
|
|
1649
|
+
*/
|
|
1650
|
+
padding: string;
|
|
1651
|
+
color: string;
|
|
1652
|
+
textBackground: string;
|
|
1653
|
+
overlayBackground: string;
|
|
1654
|
+
overlayOpacity: string;
|
|
1655
|
+
borderRadius: string;
|
|
1656
|
+
};
|
|
1657
|
+
Header: {
|
|
1658
|
+
/**
|
|
1659
|
+
* Background color for the header. Defaults to [`--infinie-header-cell-background`](#header-cell-background).
|
|
1660
|
+
*
|
|
1661
|
+
* Overriden in the `dark` theme.
|
|
1662
|
+
*/
|
|
1663
|
+
background: string;
|
|
1664
|
+
/**
|
|
1665
|
+
* The text color inside the header.
|
|
1666
|
+
*
|
|
1667
|
+
* Overriden in the `dark` theme.
|
|
1668
|
+
*/
|
|
1669
|
+
color: string;
|
|
1670
|
+
columnHeaderHeight: string;
|
|
1671
|
+
};
|
|
1672
|
+
HeaderCell: {
|
|
1673
|
+
draggingBackground: string;
|
|
1674
|
+
/**
|
|
1675
|
+
* Background for header cells.
|
|
1676
|
+
*
|
|
1677
|
+
* Overriden in the `dark` theme.
|
|
1678
|
+
*/
|
|
1679
|
+
background: string;
|
|
1680
|
+
padding: string;
|
|
1681
|
+
paddingX: string;
|
|
1682
|
+
paddingY: string;
|
|
1683
|
+
iconSize: string;
|
|
1684
|
+
sortIconMargin: string;
|
|
1685
|
+
};
|
|
1686
|
+
Cell: {
|
|
1687
|
+
padding: string;
|
|
1688
|
+
borderWidth: string;
|
|
1689
|
+
/**
|
|
1690
|
+
* Specifies the border for cells.
|
|
1691
|
+
*
|
|
1692
|
+
* Overriden in the `dark` theme - eg: `1px solid #2a323d`
|
|
1693
|
+
*/
|
|
1694
|
+
border: string;
|
|
1695
|
+
borderInvisible: string;
|
|
1696
|
+
borderRadius: string;
|
|
1697
|
+
/**
|
|
1698
|
+
* Text color inside rows. Defaults to `currentColor`
|
|
1699
|
+
*
|
|
1700
|
+
* Overriden in `dark` theme.
|
|
1701
|
+
*/
|
|
1702
|
+
color: string;
|
|
1703
|
+
/**
|
|
1704
|
+
* The RED component of the color used for the active cell when cell keyboard navigation is enabled.
|
|
1705
|
+
*
|
|
1706
|
+
* The easiest way to define the color of the active cell is to use these 3 variables:
|
|
1707
|
+
* `--infinite-active-cell-border-color--r`
|
|
1708
|
+
* `--infinite-active-cell-border-color--g`
|
|
1709
|
+
* `--infinite-active-cell-border-color--b`
|
|
1710
|
+
* as they define both the border and the background color of the active cell and the active row.
|
|
1711
|
+
*
|
|
1712
|
+
* You can also specify the GREEN and BLUE components of the color using the next two css vars.
|
|
1713
|
+
*
|
|
1714
|
+
* The border color of the active cell is decomposed into multiple variables for convenience as by default
|
|
1715
|
+
* the background of the active cell is the same color, but with the opacity specified by the value of `--infinie-active-cell-background-alpha`.
|
|
1716
|
+
*
|
|
1717
|
+
* If you don't want this, you can use `--infinite-active-cell-background` instead.
|
|
1718
|
+
*/
|
|
1719
|
+
activeBorderColor_R: string;
|
|
1720
|
+
/**
|
|
1721
|
+
* The GREEN component of the color used for the active cell when cell keyboard navigation is enabled.
|
|
1722
|
+
*
|
|
1723
|
+
* The easiest way to define the color of the active cell is to use these 3 variables:
|
|
1724
|
+
* `--infinite-active-cell-border-color--r`
|
|
1725
|
+
* `--infinite-active-cell-border-color--g`
|
|
1726
|
+
* `--infinite-active-cell-border-color--b`
|
|
1727
|
+
* as they define both the border and the background color of the active cell and the active row.
|
|
1728
|
+
*
|
|
1729
|
+
* You can also specify the RED and BLUE components of the color using the next two css vars.
|
|
1730
|
+
*
|
|
1731
|
+
* The border color of the active cell is decomposed into multiple variables for convenience as by default
|
|
1732
|
+
* the background of the active cell is the same color, but with the opacity specified by the value of `--infinie-active-cell-background-alpha`.
|
|
1733
|
+
*
|
|
1734
|
+
* If you don't want this, you can use `--infinite-active-cell-background` instead.
|
|
1735
|
+
*/
|
|
1736
|
+
activeBorderColor_G: string;
|
|
1737
|
+
/**
|
|
1738
|
+
* The BLUE component of the color used for the active cell when cell keyboard navigation is enabled.
|
|
1739
|
+
*
|
|
1740
|
+
* The easiest way to define the color of the active cell is to use these 3 variables:
|
|
1741
|
+
* `--infinite-active-cell-border-color--r`
|
|
1742
|
+
* `--infinite-active-cell-border-color--g`
|
|
1743
|
+
* `--infinite-active-cell-border-color--b`
|
|
1744
|
+
* as they define both the border and the background color of the active cell and the active row.
|
|
1745
|
+
*
|
|
1746
|
+
* You can also specify the RED and GREEN components of the color using the next two css vars.
|
|
1747
|
+
*
|
|
1748
|
+
* The border color of the active cell is decomposed into multiple variables for convenience as by default
|
|
1749
|
+
* the background of the active cell is the same color, but with the opacity specified by the value of `--infinie-active-cell-background-alpha`.
|
|
1750
|
+
*
|
|
1751
|
+
* If you don't want this, you can use `--infinite-active-cell-background` instead.
|
|
1752
|
+
*/
|
|
1753
|
+
activeBorderColor_B: string;
|
|
1754
|
+
/**
|
|
1755
|
+
* The opacity of the background color for the active cell (when cell keyboard navigation is enabled).
|
|
1756
|
+
*
|
|
1757
|
+
* The background color of the active cell is based on the value of the above 3 variables, but with the opacity specified by this variable.
|
|
1758
|
+
* This is applied when the component has focus.
|
|
1759
|
+
*/
|
|
1760
|
+
activeBackgroundAlpha: string;
|
|
1761
|
+
/**
|
|
1762
|
+
* Same as the above, but applied when the component does not have focus.
|
|
1763
|
+
*/
|
|
1764
|
+
activeBackgroundAlphaWhenTableUnfocused: string;
|
|
1765
|
+
/**
|
|
1766
|
+
* The background color of the active cell defaults to the same color (with modified opacity, as explained above) as the border color.
|
|
1767
|
+
*
|
|
1768
|
+
* However, specify this to explicitly override the default.
|
|
1769
|
+
*/
|
|
1770
|
+
activeBackground: string;
|
|
1771
|
+
/**
|
|
1772
|
+
* The color for border of the active cell (when cell keyboard navigation is enabled).
|
|
1773
|
+
*/
|
|
1774
|
+
activeBorderColor: string;
|
|
1775
|
+
/**
|
|
1776
|
+
* The width of the border for the active cell.
|
|
1777
|
+
*/
|
|
1778
|
+
activeBorderWidth: string;
|
|
1779
|
+
/**
|
|
1780
|
+
* The style of the border for the active cell (eg: 'solid', 'dashed', 'dotted') - defaults to 'dashed'.
|
|
1781
|
+
*/
|
|
1782
|
+
activeBorderStyle: string;
|
|
1783
|
+
/**
|
|
1784
|
+
* Specifies the border for the active cell. Defaults to `var(--infinite-active-cell-border-width) var(--infinite-active-cell-border-style) var(--infinite-active-cell-border-color)`.
|
|
1785
|
+
*/
|
|
1786
|
+
activeBorder: string;
|
|
1787
|
+
};
|
|
1788
|
+
Row: {
|
|
1789
|
+
/**
|
|
1790
|
+
* Background color for rows. Defaults to [`--infinite-background`](#background).
|
|
1791
|
+
*
|
|
1792
|
+
* Overriden in `dark` theme.
|
|
1793
|
+
*/
|
|
1794
|
+
background: string;
|
|
1795
|
+
/**
|
|
1796
|
+
* Background color for odd rows. Even rows will use [`--infinite-row-background`](#row-background).
|
|
1797
|
+
*
|
|
1798
|
+
* Overriden in `dark` theme.
|
|
1799
|
+
*/
|
|
1800
|
+
oddBackground: string;
|
|
1801
|
+
/**
|
|
1802
|
+
* The background color of the active row. Defaults to the value of `var(--infinite-active-cell-background)`.
|
|
1803
|
+
*
|
|
1804
|
+
* However, specify this to explicitly override the default.
|
|
1805
|
+
*/
|
|
1806
|
+
activeBackground: string;
|
|
1807
|
+
/**
|
|
1808
|
+
* The border color for the active row. Defaults to the value of `var(--infinite-active-cell-border-color)`.
|
|
1809
|
+
*/
|
|
1810
|
+
activeBorderColor: string;
|
|
1811
|
+
/**
|
|
1812
|
+
* The width of the border for the active row. Defaults to the value of `var(--infinite-active-cell-border-width)`.
|
|
1813
|
+
*/
|
|
1814
|
+
activeBorderWidth: string;
|
|
1815
|
+
/**
|
|
1816
|
+
* The style of the border for the active row (eg: 'solid', 'dashed', 'dotted') - defaults to the value of `var(--infinite-active-cell-border-style)`, which is `dashed` by default.
|
|
1817
|
+
*/
|
|
1818
|
+
activeBorderStyle: string;
|
|
1819
|
+
/**
|
|
1820
|
+
* Specifies the border for the active row. Defaults to `var(--infinite-active-row-border-width) var(--infinite-active-row-border-style) var(--infinite-active-row-border-color)`.
|
|
1821
|
+
*/
|
|
1822
|
+
activeBorder: string;
|
|
1823
|
+
/**
|
|
1824
|
+
* The opacity of the background color for the active row (when row keyboard navigation is enabled).
|
|
1825
|
+
* When you explicitly specify `--infinite-active-row-background`, this variable will not be used.
|
|
1826
|
+
* Instead, this variable is used when the active row background uses the color of the active cell (border).
|
|
1827
|
+
*
|
|
1828
|
+
* This is applied when the component has focus.
|
|
1829
|
+
*
|
|
1830
|
+
* Defaults to the value of `var(--infinite-active-cell-background-alpha)`.
|
|
1831
|
+
*/
|
|
1832
|
+
activeBackgroundAlpha: string;
|
|
1833
|
+
/**
|
|
1834
|
+
* Same as the above, but applied when the component does not have focus.
|
|
1835
|
+
*
|
|
1836
|
+
* When you explicitly specify `--infinite-active-row-background`, this variable will not be used.
|
|
1837
|
+
* Instead, this variable is used when the active row background uses the color of the active cell (border).
|
|
1838
|
+
*
|
|
1839
|
+
* Defaults to the value of `var(--infinite-active-cell-background-alpha--table-unfocused)`.
|
|
1840
|
+
*/
|
|
1841
|
+
activeBackgroundAlphaWhenTableUnfocused: string;
|
|
1842
|
+
/**
|
|
1843
|
+
* Background color for rows, on hover.
|
|
1844
|
+
*
|
|
1845
|
+
* Overriden in the `dark` theme.
|
|
1846
|
+
*/
|
|
1847
|
+
hoverBackground: string;
|
|
1848
|
+
groupRowBackground: string;
|
|
1849
|
+
groupRowColumnNesting: string;
|
|
1850
|
+
groupNesting: string;
|
|
1851
|
+
pointerEventsWhileScrolling: string;
|
|
1852
|
+
};
|
|
1853
|
+
ColumnCell: {
|
|
1854
|
+
background: string;
|
|
1855
|
+
};
|
|
1856
|
+
};
|
|
1857
|
+
}, _vanilla_extract_private.CSSVarFunction>;
|
|
1858
|
+
declare const LightTheme: {
|
|
1859
|
+
[x: string]: string;
|
|
1860
|
+
};
|
|
1861
|
+
declare const DarkTheme: {
|
|
1862
|
+
[x: string]: string;
|
|
1863
|
+
};
|
|
1864
|
+
|
|
1602
1865
|
declare const InfiniteTableClassName: string;
|
|
1603
1866
|
declare const InfiniteTableComponent: React$1.MemoExoticComponent<(<T>() => JSX.Element)>;
|
|
1604
1867
|
declare function InfiniteTable<T>(props: InfiniteTableProps<T>): JSX.Element;
|
|
@@ -1670,4 +1933,4 @@ declare const defaultFilterEditors: InfiniteTablePropFilterEditors<unknown>;
|
|
|
1670
1933
|
declare function StringFilterEditor<T>(props: InfiniteTableFilterEditorProps<T>): JSX.Element;
|
|
1671
1934
|
declare function NumberFilterEditor<T>(props: InfiniteTableFilterEditorProps<T>): JSX.Element;
|
|
1672
1935
|
|
|
1673
|
-
export { ColumnTypeWithInherit, DataSource, DataSourceAction, DataSourceActionType, DataSourceAggregationReducer, DataSourceComponentActions, DataSourceContextValue, DataSourceData, DataSourceDataParams, DataSourceDataParamsChanges, DataSourceDerivedState, DataSourceFilterFunctionParam, DataSourceFilterOperator, DataSourceFilterOperatorFunction, DataSourceFilterOperatorFunctionParam, DataSourceFilterType, DataSourceFilterValueItem, DataSourceFilterValueItemValueGetter, DataSourceGroupBy, DataSourceGroupRowsList, DataSourceLivePaginationCursorFn, DataSourceLivePaginationCursorParams, DataSourceLivePaginationCursorValue, DataSourceMappedState, DataSourceMappings, DataSourcePivotBy, DataSourcePropAggregationReducers, DataSourcePropFilterFunction, DataSourcePropFilterTypes, DataSourcePropFilterValue, DataSourcePropGroupBy, DataSourcePropGroupRowsStateObject, DataSourcePropLivePaginationCursor, DataSourcePropPivotBy, DataSourcePropSortInfo, DataSourcePropSortTypes, DataSourceProps, DataSourceReducer, DataSourceRemoteData, DataSourceSetupState, DataSourceSingleSortInfo, DataSourceSortInfo, DataSourceState, GroupRowsState, InfiniteTable, InfiniteTableAction, InfiniteTableActionType, InfiniteTableClassName, InfiniteTableColumn, InfiniteTableColumnAggregator, InfiniteTableColumnComparer, InfiniteTableColumnGroup, InfiniteTableColumnRenderParam, InfiniteTableColumnRenderValueParam, InfiniteTableColumnRowspanParam, InfiniteTableColumnSizingOptions, InfiniteTableComponent, InfiniteTableComputedColumn, InfiniteTableComputedValues, InfiniteTableContextValue, InfiniteTableFilterEditorProps, InfiniteTableGroupColumnBase, InfiniteTableGroupColumnFunction, InfiniteTableGroupColumnGetterOptions, InfiniteTableGroupColumnRenderIconFunction, InfiniteTableImperativeApi, InfiniteTablePivotColumn, InfiniteTablePropAutoSizeColumnsKey, InfiniteTablePropColumnGroups, InfiniteTablePropColumnOrder, InfiniteTablePropColumnPinning, InfiniteTablePropColumnSizing, InfiniteTablePropColumnTypes, InfiniteTablePropColumnVisibility, InfiniteTablePropColumns, InfiniteTablePropColumnsMap, InfiniteTablePropComponents, InfiniteTablePropFilterEditors, InfiniteTablePropGroupColumn, InfiniteTablePropGroupRenderStrategy, InfiniteTablePropHeaderOptions, InfiniteTablePropKeyboardNavigation, InfiniteTablePropRowClassName, InfiniteTablePropRowStyle, InfiniteTableProps, InfiniteTableRowClassNameFn, InfiniteTableRowInfo, InfiniteTableRowStyleFn, InfiniteTableState, LazyGroupDataDeepMap, LazyGroupDataItem, LazyRowInfoGroup, NumberFilterEditor, Scrollbars, StringFilterEditor, debounce, defaultFilterEditors, defaultFilterTypes, defaultFilterTypes as filterTypes, flatten, getComponentStateRoot, group, interceptMap, multisort, useComponentState, useDataSource, useEffectWithChanges, useInfiniteColumnCell, useInfiniteHeaderCell };
|
|
1936
|
+
export { ColumnTypeWithInherit, DarkTheme, DataSource, DataSourceAction, DataSourceActionType, DataSourceAggregationReducer, DataSourceComponentActions, DataSourceContextValue, DataSourceData, DataSourceDataParams, DataSourceDataParamsChanges, DataSourceDerivedState, DataSourceFilterFunctionParam, DataSourceFilterOperator, DataSourceFilterOperatorFunction, DataSourceFilterOperatorFunctionParam, DataSourceFilterType, DataSourceFilterValueItem, DataSourceFilterValueItemValueGetter, DataSourceGroupBy, DataSourceGroupRowsList, DataSourceLivePaginationCursorFn, DataSourceLivePaginationCursorParams, DataSourceLivePaginationCursorValue, DataSourceMappedState, DataSourceMappings, DataSourcePivotBy, DataSourcePropAggregationReducers, DataSourcePropFilterFunction, DataSourcePropFilterTypes, DataSourcePropFilterValue, DataSourcePropGroupBy, DataSourcePropGroupRowsStateObject, DataSourcePropLivePaginationCursor, DataSourcePropPivotBy, DataSourcePropSortInfo, DataSourcePropSortTypes, DataSourceProps, DataSourceReducer, DataSourceRemoteData, DataSourceSetupState, DataSourceSingleSortInfo, DataSourceSortInfo, DataSourceState, GroupRowsState, InfiniteTable, InfiniteTableAction, InfiniteTableActionType, InfiniteTableClassName, InfiniteTableColumn, InfiniteTableColumnAggregator, InfiniteTableColumnComparer, InfiniteTableColumnGroup, InfiniteTableColumnRenderParam, InfiniteTableColumnRenderValueParam, InfiniteTableColumnRowspanParam, InfiniteTableColumnSizingOptions, InfiniteTableComponent, InfiniteTableComputedColumn, InfiniteTableComputedValues, InfiniteTableContextValue, InfiniteTableFilterEditorProps, InfiniteTableGroupColumnBase, InfiniteTableGroupColumnFunction, InfiniteTableGroupColumnGetterOptions, InfiniteTableGroupColumnRenderIconFunction, InfiniteTableImperativeApi, InfiniteTablePivotColumn, InfiniteTablePropAutoSizeColumnsKey, InfiniteTablePropColumnGroups, InfiniteTablePropColumnOrder, InfiniteTablePropColumnPinning, InfiniteTablePropColumnSizing, InfiniteTablePropColumnTypes, InfiniteTablePropColumnVisibility, InfiniteTablePropColumns, InfiniteTablePropColumnsMap, InfiniteTablePropComponents, InfiniteTablePropFilterEditors, InfiniteTablePropGroupColumn, InfiniteTablePropGroupRenderStrategy, InfiniteTablePropHeaderOptions, InfiniteTablePropKeyboardNavigation, InfiniteTablePropRowClassName, InfiniteTablePropRowStyle, InfiniteTableProps, InfiniteTableRowClassNameFn, InfiniteTableRowInfo, InfiniteTableRowStyleFn, InfiniteTableState, LazyGroupDataDeepMap, LazyGroupDataItem, LazyRowInfoGroup, LightTheme, NumberFilterEditor, Scrollbars, StringFilterEditor, ThemeVars, debounce, defaultFilterEditors, defaultFilterTypes, defaultFilterTypes as filterTypes, flatten, getComponentStateRoot, group, interceptMap, multisort, useComponentState, useDataSource, useEffectWithChanges, useInfiniteColumnCell, useInfiniteHeaderCell };
|
package/index.esm.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* vanilla-extract-css-ns:@infinite-table/infinite-react/src/components/InfiniteTable/theme.css.ts.vanilla.css?source=#H4sIAAAAAAAAA+
|
|
1
|
+
/* vanilla-extract-css-ns:@infinite-table/infinite-react/src/components/InfiniteTable/theme.css.ts.vanilla.css?source=#H4sIAAAAAAAAA+1Xy27jIBTd5yuQsmmkUsWvpHU3I82XYMAxig0RkDSZUf59wHXqGBs3UdtZWaiqknMuF859cJNKITT4OwMAQsZzxpmmUO0QpnCZgqWk1esQFhjsKQgTHx5a3A9HFvaisUXXXjhJQeDDVgYb8bu2sBd9TkE4YvySgsirhxEr7oO54Boq9uddzCHPLaOWdDXkvuWEPmVaSi3t8zgnHlSwxROfii1l5VGyZax9ataUHFWsPKWA8YJKph0KFqWQKZjHz3Y5IMKYmh0unDxfL+PI4WRCEiqhRITtVQoOSD70c3ThGiG83Uix5yQFb4X5xsErxmFB2abQ5vLL5e7o4KVABFZIbaGmR93ZTm4y9BAmyePlz8TIdd+aiwOVJTp1dthIdPrUQJiLMX2yKeAq0pIb4YaVb2k7RAjjG494if/049p3UHeTgiILYlqWncvPKbFrhN2cFh49543GXF2MT18w7pkOOljcwjouwIg/ItFmY2kdgUhMIuLG/NqMYcHrwjS5u+ql7jVTCanf6RWSxtOYwfUZRm7W0nxKNsW8yu3qd4N9xS/USwVG/QKsfTVb4b2Upk38tp+GaE0evjGiC3PD4b3GayDsRdOTLlcOe1v1DrMASpSMgDle2TVydsYPTLGsNCHlgrvd6pp5Xx9EWLNDdwOlT9YNQaroleEA3avqALeOF4RGmfX6ZrYJSRC/3EzPzFsUJGP0jwSFqNwV6H18ucMAQo1MJOCe5wLvFSX1gORsIMXbWMX4q8QaCkK6JV+XipsfFt31HM1xhhPs3qflNhXGqdJ1ug/UlqUV9p1x+k5m1wB3JxjXhk0PpgoVNO+pUUdhKcqydoH2WrzOzrOn0pbzI3hqX5Lmi/p/aufTHppOU+s0tU5T6zS1TlPrNLVOU+s0tU5T6zS1/teplSC5vR5L7Wd3IO24DJZBHLix75SYybtLEYUoCiPfw9E0HRzZdetTFGRhELruv6sdelSOsnidxD+aTWFspHIT9rqhfsh0nv2qKGEIPOwkzalUTZUpXNCqbhJyu6gj2P64uCWad8bztojeG9Pvi+p9cf1CZO+J7efRBeA8O/8D9swiI8wYAAA= */
|
|
2
2
|
:root {
|
|
3
3
|
--infinite-space-0: 0rem;
|
|
4
4
|
--infinite-space-1: 0.125rem;
|
|
@@ -61,7 +61,10 @@
|
|
|
61
61
|
--infinite-row-hover-background: #dbdbdb;
|
|
62
62
|
--infinite-row-pointer-events-while-scrolling: auto;
|
|
63
63
|
}
|
|
64
|
-
.light
|
|
64
|
+
.light,
|
|
65
|
+
.infinite-light,
|
|
66
|
+
.light:root,
|
|
67
|
+
.infinite-light:root {
|
|
65
68
|
--infinite-space-0: 0rem;
|
|
66
69
|
--infinite-space-1: 0.125rem;
|
|
67
70
|
--infinite-space-2: 0.25rem;
|
|
@@ -123,79 +126,7 @@
|
|
|
123
126
|
--infinite-row-hover-background: #dbdbdb;
|
|
124
127
|
--infinite-row-pointer-events-while-scrolling: auto;
|
|
125
128
|
}
|
|
126
|
-
.
|
|
127
|
-
--infinite-space-0: 0rem;
|
|
128
|
-
--infinite-space-1: 0.125rem;
|
|
129
|
-
--infinite-space-2: 0.25rem;
|
|
130
|
-
--infinite-space-3: 0.5rem;
|
|
131
|
-
--infinite-space-4: 0.75rem;
|
|
132
|
-
--infinite-space-5: 1rem;
|
|
133
|
-
--infinite-space-6: 1.25rem;
|
|
134
|
-
--infinite-space-7: 1.5rem;
|
|
135
|
-
--infinite-space-8: 2.25rem;
|
|
136
|
-
--infinite-space-9: 3rem;
|
|
137
|
-
--infinite-space-10: 4rem;
|
|
138
|
-
--infinite-font-size-0: 0.5rem;
|
|
139
|
-
--infinite-font-size-1: 0.625rem;
|
|
140
|
-
--infinite-font-size-2: 0.75rem;
|
|
141
|
-
--infinite-font-size-3: 0.875rem;
|
|
142
|
-
--infinite-font-size-4: 1rem;
|
|
143
|
-
--infinite-font-size-5: 1.25rem;
|
|
144
|
-
--infinite-font-size-6: 1.5rem;
|
|
145
|
-
--infinite-font-size-7: 2.25rem;
|
|
146
|
-
--infinite-font-family: inherit;
|
|
147
|
-
--infinite-color: #484848;
|
|
148
|
-
--infinite-accent-color: #ff7043;
|
|
149
|
-
--infinite-border-radius: var(--infinite-space-2);
|
|
150
|
-
--infinite-background: white;
|
|
151
|
-
--infinite-min-height: 100px;
|
|
152
|
-
--infinite-load-mask-text-background: rgba(255,255,255,0.8);
|
|
153
|
-
--infinite-load-mask-overlay-background: gray;
|
|
154
|
-
--infinite-load-mask-overlay-opacity: 0.3;
|
|
155
|
-
--infinite-load-mask-color: inherit;
|
|
156
|
-
--infinite-load-mask-padding: var(--infinite-space-5);
|
|
157
|
-
--infinite-load-mask-border-radius: var(--infinite-border-radius);
|
|
158
|
-
--infinite-header-cell-background: #ededed;
|
|
159
|
-
--infinite-header-cell-padding-x: var(--infinite-space-3);
|
|
160
|
-
--infinite-header-cell-padding-y: var(--infinite-space-3);
|
|
161
|
-
--infinite-header-cell-padding: var(--infinite-header-cell-padding-y) var(--infinite-header-cell-padding-x) ;
|
|
162
|
-
--infinite-header-cell-dragging-background: #d4d3d3;
|
|
163
|
-
--infinite-header-cell-icon-size: 16px;
|
|
164
|
-
--infinite-header-cell-sort-icon-margin: 16px;
|
|
165
|
-
--infinite-header-background: var(--infinite-header-cell-background);
|
|
166
|
-
--infinite-header-color: #6f6f6f;
|
|
167
|
-
--infinite-column-header-height: 30px;
|
|
168
|
-
--infinite-cell-color: currentColor;
|
|
169
|
-
--infinite-cell-border-width: 1px;
|
|
170
|
-
--infinite-cell-padding: var(--infinite-space-2) var(--infinite-space-3);
|
|
171
|
-
--infinite-cell-border: var(--infinite-cell-border-width) solid #c6c6c6;
|
|
172
|
-
--infinite-cell-border-invisible: none;
|
|
173
|
-
--infinite-cell-border-radius: var(--infinite-space-2);
|
|
174
|
-
--infinite-active-cell-border-style: dashed;
|
|
175
|
-
--infinite-active-cell-border-width: 1px;
|
|
176
|
-
--infinite-active-cell-border-color--r: 77;
|
|
177
|
-
--infinite-active-cell-border-color--g: 149;
|
|
178
|
-
--infinite-active-cell-border-color--b: 215;
|
|
179
|
-
--infinite-active-cell-background-alpha: 0.25;
|
|
180
|
-
--infinite-active-cell-background-alpha--table-unfocused: 0.1;
|
|
181
|
-
--infinite-row-background: var(--infinite-background);
|
|
182
|
-
--infinite-row-odd-background: #f6f6f6;
|
|
183
|
-
--infinite-group-row-background: #cbc5c5;
|
|
184
|
-
--infinite-group-row-column-nesting: 30px;
|
|
185
|
-
--infinite-row-hover-background: #dbdbdb;
|
|
186
|
-
--infinite-row-pointer-events-while-scrolling: auto;
|
|
187
|
-
}
|
|
188
|
-
.dark {
|
|
189
|
-
--infinite-background: #101419;
|
|
190
|
-
--infinite-cell-border: 1px solid #2a323d;
|
|
191
|
-
--infinite-header-color: #c3c3c3;
|
|
192
|
-
--infinite-header-cell-background: #1b2129;
|
|
193
|
-
--infinite-header-background: var(--infinite-header-cell-background);
|
|
194
|
-
--infinite-row-hover-background: #3b4754;
|
|
195
|
-
--infinite-row-background: var(--infinite-background);
|
|
196
|
-
--infinite-row-odd-background: #242a31;
|
|
197
|
-
--infinite-cell-color: #c3c3c3;
|
|
198
|
-
}
|
|
129
|
+
.dark,
|
|
199
130
|
.infinite-dark {
|
|
200
131
|
--infinite-background: #101419;
|
|
201
132
|
--infinite-cell-border: 1px solid #2a323d;
|
package/index.esm.js
CHANGED
|
@@ -5029,6 +5029,8 @@ function decamelize(str, options) {
|
|
|
5029
5029
|
}
|
|
5030
5030
|
|
|
5031
5031
|
// src/components/InfiniteTable/theme.css.ts
|
|
5032
|
+
var DarkTheme = { "var(--infinite-background)": "#101419", "var(--infinite-cell-border)": "1px solid #2a323d", "var(--infinite-header-color)": "#c3c3c3", "var(--infinite-header-cell-background)": "#1b2129", "var(--infinite-header-background)": "var(--infinite-header-cell-background)", "var(--infinite-row-hover-background)": "#3b4754", "var(--infinite-row-background)": "var(--infinite-background)", "var(--infinite-row-odd-background)": "#242a31", "var(--infinite-cell-color)": "#c3c3c3" };
|
|
5033
|
+
var LightTheme = { "var(--infinite-space-0)": "0rem", "var(--infinite-space-1)": "0.125rem", "var(--infinite-space-2)": "0.25rem", "var(--infinite-space-3)": "0.5rem", "var(--infinite-space-4)": "0.75rem", "var(--infinite-space-5)": "1rem", "var(--infinite-space-6)": "1.25rem", "var(--infinite-space-7)": "1.5rem", "var(--infinite-space-8)": "2.25rem", "var(--infinite-space-9)": "3rem", "var(--infinite-space-10)": "4rem", "var(--infinite-font-size-0)": "0.5rem", "var(--infinite-font-size-1)": "0.625rem", "var(--infinite-font-size-2)": "0.75rem", "var(--infinite-font-size-3)": "0.875rem", "var(--infinite-font-size-4)": "1rem", "var(--infinite-font-size-5)": "1.25rem", "var(--infinite-font-size-6)": "1.5rem", "var(--infinite-font-size-7)": "2.25rem", "var(--infinite-font-family)": "inherit", "var(--infinite-color)": "#484848", "var(--infinite-accent-color)": "#ff7043", "var(--infinite-border-radius)": "var(--infinite-space-2)", "var(--infinite-background)": "white", "var(--infinite-min-height)": "100px", "var(--infinite-load-mask-text-background)": "rgba(255,255,255,0.8)", "var(--infinite-load-mask-overlay-background)": "gray", "var(--infinite-load-mask-overlay-opacity)": "0.3", "var(--infinite-load-mask-color)": "inherit", "var(--infinite-load-mask-padding)": "var(--infinite-space-5)", "var(--infinite-load-mask-border-radius)": "var(--infinite-border-radius)", "var(--infinite-header-cell-background)": "#ededed", "var(--infinite-header-cell-padding-x)": "var(--infinite-space-3)", "var(--infinite-header-cell-padding-y)": "var(--infinite-space-3)", "var(--infinite-header-cell-padding)": "var(--infinite-header-cell-padding-y) var(--infinite-header-cell-padding-x) ", "var(--infinite-header-cell-dragging-background)": "#d4d3d3", "var(--infinite-header-cell-icon-size)": "16px", "var(--infinite-header-cell-sort-icon-margin)": "16px", "var(--infinite-header-background)": "var(--infinite-header-cell-background)", "var(--infinite-header-color)": "#6f6f6f", "var(--infinite-column-header-height)": "30px", "var(--infinite-cell-color)": "currentColor", "var(--infinite-cell-border-width)": "1px", "var(--infinite-cell-padding)": "var(--infinite-space-2) var(--infinite-space-3)", "var(--infinite-cell-border)": "var(--infinite-cell-border-width) solid #c6c6c6", "var(--infinite-cell-border-invisible)": "none", "var(--infinite-cell-border-radius)": "var(--infinite-space-2)", "var(--infinite-active-cell-border-style)": "dashed", "var(--infinite-active-cell-border-width)": "1px", "var(--infinite-active-cell-border-color--r)": "77", "var(--infinite-active-cell-border-color--g)": "149", "var(--infinite-active-cell-border-color--b)": "215", "var(--infinite-active-cell-background-alpha)": "0.25", "var(--infinite-active-cell-background-alpha--table-unfocused)": "0.1", "var(--infinite-row-background)": "var(--infinite-background)", "var(--infinite-row-odd-background)": "#f6f6f6", "var(--infinite-group-row-background)": "#cbc5c5", "var(--infinite-group-row-column-nesting)": "30px", "var(--infinite-row-hover-background)": "#dbdbdb", "var(--infinite-row-pointer-events-while-scrolling)": "auto" };
|
|
5032
5034
|
var ThemeVars = { color: { accent: "var(--infinite-accent-color)", color: "var(--infinite-color)" }, spacing: { "0": "var(--infinite-space-0)", "1": "var(--infinite-space-1)", "2": "var(--infinite-space-2)", "3": "var(--infinite-space-3)", "4": "var(--infinite-space-4)", "5": "var(--infinite-space-5)", "6": "var(--infinite-space-6)", "7": "var(--infinite-space-7)", "8": "var(--infinite-space-8)", "9": "var(--infinite-space-9)", "10": "var(--infinite-space-10)" }, fontSize: { "0": "var(--infinite-font-size-0)", "1": "var(--infinite-font-size-1)", "2": "var(--infinite-font-size-2)", "3": "var(--infinite-font-size-3)", "4": "var(--infinite-font-size-4)", "5": "var(--infinite-font-size-5)", "6": "var(--infinite-font-size-6)", "7": "var(--infinite-font-size-7)" }, fontFamily: "var(--infinite-font-family)", minHeight: "var(--infinite-min-height)", borderRadius: "var(--infinite-border-radius)", background: "var(--infinite-background)", components: { LoadMask: { padding: "var(--infinite-load-mask-padding)", color: "var(--infinite-load-mask-color)", textBackground: "var(--infinite-load-mask-text-background)", overlayBackground: "var(--infinite-load-mask-overlay-background)", overlayOpacity: "var(--infinite-load-mask-overlay-opacity)", borderRadius: "var(--infinite-load-mask-border-radius)" }, Header: { background: "var(--infinite-header-background)", color: "var(--infinite-header-color)", columnHeaderHeight: "var(--infinite-column-header-height)" }, HeaderCell: { draggingBackground: "var(--infinite-header-cell-dragging-background)", background: "var(--infinite-header-cell-background)", padding: "var(--infinite-header-cell-padding)", paddingX: "var(--infinite-header-cell-padding-x)", paddingY: "var(--infinite-header-cell-padding-y)", iconSize: "var(--infinite-header-cell-icon-size)", sortIconMargin: "var(--infinite-header-cell-sort-icon-margin)" }, Cell: { padding: "var(--infinite-cell-padding)", borderWidth: "var(--infinite-cell-border-width)", border: "var(--infinite-cell-border)", borderInvisible: "var(--infinite-cell-border-invisible)", borderRadius: "var(--infinite-cell-border-radius)", color: "var(--infinite-cell-color)", activeBorderColor_R: "var(--infinite-active-cell-border-color--r)", activeBorderColor_G: "var(--infinite-active-cell-border-color--g)", activeBorderColor_B: "var(--infinite-active-cell-border-color--b)", activeBackgroundAlpha: "var(--infinite-active-cell-background-alpha)", activeBackgroundAlphaWhenTableUnfocused: "var(--infinite-active-cell-background-alpha--table-unfocused)", activeBackground: "var(--infinite-active-cell-background)", activeBorderColor: "var(--infinite-active-cell-border-color)", activeBorderWidth: "var(--infinite-active-cell-border-width)", activeBorderStyle: "var(--infinite-active-cell-border-style)", activeBorder: "var(--infinite-active-cell-border)" }, Row: { background: "var(--infinite-row-background)", oddBackground: "var(--infinite-row-odd-background)", activeBackground: "var(--infinite-active-row-background)", activeBorderColor: "var(--infinite-active-row-border-color)", activeBorderWidth: "var(--infinite-active-row-border-width)", activeBorderStyle: "var(--infinite-active-row-border-style)", activeBorder: "var(--infinite-active-row-border)", activeBackgroundAlpha: "var(--infinite-active-row-background-alpha)", activeBackgroundAlphaWhenTableUnfocused: "var(--infinite-active-row-background-alpha--table-unfocused)", hoverBackground: "var(--infinite-row-hover-background)", groupRowBackground: "var(--infinite-group-row-background)", groupRowColumnNesting: "var(--infinite-group-row-column-nesting)", groupNesting: "var(--infinite-dont-override-group-row-nesting-length)", pointerEventsWhileScrolling: "var(--infinite-row-pointer-events-while-scrolling)" }, ColumnCell: { background: "var(--infinite-column-cell-bg-dont-override)" } } };
|
|
5033
5035
|
|
|
5034
5036
|
// src/components/InfiniteTable/InfiniteCls.css.ts
|
|
@@ -9404,7 +9406,7 @@ var useLicense = (licenseKey = "") => {
|
|
|
9404
9406
|
const valid = useMemo12(() => {
|
|
9405
9407
|
let valid2 = isValidLicense(licenseKey, {
|
|
9406
9408
|
publishedAt: 1624970570587,
|
|
9407
|
-
version: "0.3.
|
|
9409
|
+
version: "0.3.8"
|
|
9408
9410
|
});
|
|
9409
9411
|
if (!licenseKey && !valid2 && isInsidePlayground) {
|
|
9410
9412
|
return true;
|
|
@@ -9960,14 +9962,17 @@ InfiniteTable.defaultProps = {
|
|
|
9960
9962
|
columnHeaderHeight: ThemeVars.components.Header.columnHeaderHeight
|
|
9961
9963
|
};
|
|
9962
9964
|
export {
|
|
9965
|
+
DarkTheme,
|
|
9963
9966
|
DataSource,
|
|
9964
9967
|
DataSourceActionType,
|
|
9965
9968
|
GroupRowsState,
|
|
9966
9969
|
InfiniteTable,
|
|
9967
9970
|
InfiniteTableClassName,
|
|
9968
9971
|
InfiniteTableComponent,
|
|
9972
|
+
LightTheme,
|
|
9969
9973
|
NumberFilterEditor,
|
|
9970
9974
|
StringFilterEditor,
|
|
9975
|
+
ThemeVars,
|
|
9971
9976
|
debounce,
|
|
9972
9977
|
defaultFilterEditors,
|
|
9973
9978
|
defaultFilterTypes,
|
package/index.js
CHANGED
|
@@ -626,14 +626,17 @@ var require_vanilla_extract_recipes_createRuntimeFn_cjs = __commonJS({
|
|
|
626
626
|
|
|
627
627
|
// src/index.tsx
|
|
628
628
|
__export(exports, {
|
|
629
|
+
DarkTheme: () => DarkTheme,
|
|
629
630
|
DataSource: () => DataSource,
|
|
630
631
|
DataSourceActionType: () => DataSourceActionType,
|
|
631
632
|
GroupRowsState: () => GroupRowsState,
|
|
632
633
|
InfiniteTable: () => InfiniteTable,
|
|
633
634
|
InfiniteTableClassName: () => InfiniteTableClassName,
|
|
634
635
|
InfiniteTableComponent: () => InfiniteTableComponent,
|
|
636
|
+
LightTheme: () => LightTheme,
|
|
635
637
|
NumberFilterEditor: () => NumberFilterEditor,
|
|
636
638
|
StringFilterEditor: () => StringFilterEditor,
|
|
639
|
+
ThemeVars: () => ThemeVars,
|
|
637
640
|
debounce: () => debounce,
|
|
638
641
|
defaultFilterEditors: () => defaultFilterEditors,
|
|
639
642
|
defaultFilterTypes: () => defaultFilterTypes,
|
|
@@ -4966,6 +4969,8 @@ function decamelize(str, options) {
|
|
|
4966
4969
|
}
|
|
4967
4970
|
|
|
4968
4971
|
// src/components/InfiniteTable/theme.css.ts
|
|
4972
|
+
var DarkTheme = { "var(--infinite-background)": "#101419", "var(--infinite-cell-border)": "1px solid #2a323d", "var(--infinite-header-color)": "#c3c3c3", "var(--infinite-header-cell-background)": "#1b2129", "var(--infinite-header-background)": "var(--infinite-header-cell-background)", "var(--infinite-row-hover-background)": "#3b4754", "var(--infinite-row-background)": "var(--infinite-background)", "var(--infinite-row-odd-background)": "#242a31", "var(--infinite-cell-color)": "#c3c3c3" };
|
|
4973
|
+
var LightTheme = { "var(--infinite-space-0)": "0rem", "var(--infinite-space-1)": "0.125rem", "var(--infinite-space-2)": "0.25rem", "var(--infinite-space-3)": "0.5rem", "var(--infinite-space-4)": "0.75rem", "var(--infinite-space-5)": "1rem", "var(--infinite-space-6)": "1.25rem", "var(--infinite-space-7)": "1.5rem", "var(--infinite-space-8)": "2.25rem", "var(--infinite-space-9)": "3rem", "var(--infinite-space-10)": "4rem", "var(--infinite-font-size-0)": "0.5rem", "var(--infinite-font-size-1)": "0.625rem", "var(--infinite-font-size-2)": "0.75rem", "var(--infinite-font-size-3)": "0.875rem", "var(--infinite-font-size-4)": "1rem", "var(--infinite-font-size-5)": "1.25rem", "var(--infinite-font-size-6)": "1.5rem", "var(--infinite-font-size-7)": "2.25rem", "var(--infinite-font-family)": "inherit", "var(--infinite-color)": "#484848", "var(--infinite-accent-color)": "#ff7043", "var(--infinite-border-radius)": "var(--infinite-space-2)", "var(--infinite-background)": "white", "var(--infinite-min-height)": "100px", "var(--infinite-load-mask-text-background)": "rgba(255,255,255,0.8)", "var(--infinite-load-mask-overlay-background)": "gray", "var(--infinite-load-mask-overlay-opacity)": "0.3", "var(--infinite-load-mask-color)": "inherit", "var(--infinite-load-mask-padding)": "var(--infinite-space-5)", "var(--infinite-load-mask-border-radius)": "var(--infinite-border-radius)", "var(--infinite-header-cell-background)": "#ededed", "var(--infinite-header-cell-padding-x)": "var(--infinite-space-3)", "var(--infinite-header-cell-padding-y)": "var(--infinite-space-3)", "var(--infinite-header-cell-padding)": "var(--infinite-header-cell-padding-y) var(--infinite-header-cell-padding-x) ", "var(--infinite-header-cell-dragging-background)": "#d4d3d3", "var(--infinite-header-cell-icon-size)": "16px", "var(--infinite-header-cell-sort-icon-margin)": "16px", "var(--infinite-header-background)": "var(--infinite-header-cell-background)", "var(--infinite-header-color)": "#6f6f6f", "var(--infinite-column-header-height)": "30px", "var(--infinite-cell-color)": "currentColor", "var(--infinite-cell-border-width)": "1px", "var(--infinite-cell-padding)": "var(--infinite-space-2) var(--infinite-space-3)", "var(--infinite-cell-border)": "var(--infinite-cell-border-width) solid #c6c6c6", "var(--infinite-cell-border-invisible)": "none", "var(--infinite-cell-border-radius)": "var(--infinite-space-2)", "var(--infinite-active-cell-border-style)": "dashed", "var(--infinite-active-cell-border-width)": "1px", "var(--infinite-active-cell-border-color--r)": "77", "var(--infinite-active-cell-border-color--g)": "149", "var(--infinite-active-cell-border-color--b)": "215", "var(--infinite-active-cell-background-alpha)": "0.25", "var(--infinite-active-cell-background-alpha--table-unfocused)": "0.1", "var(--infinite-row-background)": "var(--infinite-background)", "var(--infinite-row-odd-background)": "#f6f6f6", "var(--infinite-group-row-background)": "#cbc5c5", "var(--infinite-group-row-column-nesting)": "30px", "var(--infinite-row-hover-background)": "#dbdbdb", "var(--infinite-row-pointer-events-while-scrolling)": "auto" };
|
|
4969
4974
|
var ThemeVars = { color: { accent: "var(--infinite-accent-color)", color: "var(--infinite-color)" }, spacing: { "0": "var(--infinite-space-0)", "1": "var(--infinite-space-1)", "2": "var(--infinite-space-2)", "3": "var(--infinite-space-3)", "4": "var(--infinite-space-4)", "5": "var(--infinite-space-5)", "6": "var(--infinite-space-6)", "7": "var(--infinite-space-7)", "8": "var(--infinite-space-8)", "9": "var(--infinite-space-9)", "10": "var(--infinite-space-10)" }, fontSize: { "0": "var(--infinite-font-size-0)", "1": "var(--infinite-font-size-1)", "2": "var(--infinite-font-size-2)", "3": "var(--infinite-font-size-3)", "4": "var(--infinite-font-size-4)", "5": "var(--infinite-font-size-5)", "6": "var(--infinite-font-size-6)", "7": "var(--infinite-font-size-7)" }, fontFamily: "var(--infinite-font-family)", minHeight: "var(--infinite-min-height)", borderRadius: "var(--infinite-border-radius)", background: "var(--infinite-background)", components: { LoadMask: { padding: "var(--infinite-load-mask-padding)", color: "var(--infinite-load-mask-color)", textBackground: "var(--infinite-load-mask-text-background)", overlayBackground: "var(--infinite-load-mask-overlay-background)", overlayOpacity: "var(--infinite-load-mask-overlay-opacity)", borderRadius: "var(--infinite-load-mask-border-radius)" }, Header: { background: "var(--infinite-header-background)", color: "var(--infinite-header-color)", columnHeaderHeight: "var(--infinite-column-header-height)" }, HeaderCell: { draggingBackground: "var(--infinite-header-cell-dragging-background)", background: "var(--infinite-header-cell-background)", padding: "var(--infinite-header-cell-padding)", paddingX: "var(--infinite-header-cell-padding-x)", paddingY: "var(--infinite-header-cell-padding-y)", iconSize: "var(--infinite-header-cell-icon-size)", sortIconMargin: "var(--infinite-header-cell-sort-icon-margin)" }, Cell: { padding: "var(--infinite-cell-padding)", borderWidth: "var(--infinite-cell-border-width)", border: "var(--infinite-cell-border)", borderInvisible: "var(--infinite-cell-border-invisible)", borderRadius: "var(--infinite-cell-border-radius)", color: "var(--infinite-cell-color)", activeBorderColor_R: "var(--infinite-active-cell-border-color--r)", activeBorderColor_G: "var(--infinite-active-cell-border-color--g)", activeBorderColor_B: "var(--infinite-active-cell-border-color--b)", activeBackgroundAlpha: "var(--infinite-active-cell-background-alpha)", activeBackgroundAlphaWhenTableUnfocused: "var(--infinite-active-cell-background-alpha--table-unfocused)", activeBackground: "var(--infinite-active-cell-background)", activeBorderColor: "var(--infinite-active-cell-border-color)", activeBorderWidth: "var(--infinite-active-cell-border-width)", activeBorderStyle: "var(--infinite-active-cell-border-style)", activeBorder: "var(--infinite-active-cell-border)" }, Row: { background: "var(--infinite-row-background)", oddBackground: "var(--infinite-row-odd-background)", activeBackground: "var(--infinite-active-row-background)", activeBorderColor: "var(--infinite-active-row-border-color)", activeBorderWidth: "var(--infinite-active-row-border-width)", activeBorderStyle: "var(--infinite-active-row-border-style)", activeBorder: "var(--infinite-active-row-border)", activeBackgroundAlpha: "var(--infinite-active-row-background-alpha)", activeBackgroundAlphaWhenTableUnfocused: "var(--infinite-active-row-background-alpha--table-unfocused)", hoverBackground: "var(--infinite-row-hover-background)", groupRowBackground: "var(--infinite-group-row-background)", groupRowColumnNesting: "var(--infinite-group-row-column-nesting)", groupNesting: "var(--infinite-dont-override-group-row-nesting-length)", pointerEventsWhileScrolling: "var(--infinite-row-pointer-events-while-scrolling)" }, ColumnCell: { background: "var(--infinite-column-cell-bg-dont-override)" } } };
|
|
4970
4975
|
|
|
4971
4976
|
// src/components/InfiniteTable/InfiniteCls.css.ts
|
|
@@ -9320,7 +9325,7 @@ var useLicense = (licenseKey = "") => {
|
|
|
9320
9325
|
const valid = (0, import_react43.useMemo)(() => {
|
|
9321
9326
|
let valid2 = isValidLicense(licenseKey, {
|
|
9322
9327
|
publishedAt: 1624970570587,
|
|
9323
|
-
version: "0.3.
|
|
9328
|
+
version: "0.3.8"
|
|
9324
9329
|
});
|
|
9325
9330
|
if (!licenseKey && !valid2 && isInsidePlayground) {
|
|
9326
9331
|
return true;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@infinite-table/infinite-react",
|
|
3
3
|
"description": "Infinite Table for React",
|
|
4
|
-
"version": "0.3.
|
|
4
|
+
"version": "0.3.8",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "index.esm.js",
|
|
7
7
|
"typings": "index.d.ts",
|
|
@@ -14,5 +14,5 @@
|
|
|
14
14
|
},
|
|
15
15
|
"license": "Commercial & Open Source",
|
|
16
16
|
"//": "will be updated at build time",
|
|
17
|
-
"publishedAt":
|
|
17
|
+
"publishedAt": 1654613192511
|
|
18
18
|
}
|