simple-table-core 1.4.7 → 1.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -9,7 +9,7 @@ Simple Table is a **lightweight**, **high-performance** React data grid componen
9
9
 
10
10
  ## Why Simple Table?
11
11
 
12
- - **100% Free**: All features included at no cost - no premium versions or paid add-ons
12
+ - **Developer-Friendly Pricing**: Free for individuals & startups, affordable PRO tier for growing businesses - never scales with revenue or team size
13
13
  - **Lightweight**: Only 16 kB (minified + gzipped) for fast loading
14
14
  - **Intuitive**: Minimal boilerplate with a clean, React-first API
15
15
  - **TypeScript-ready**: Full TypeScript support for type-safe development
@@ -28,6 +28,50 @@ npm install simple-table-core
28
28
 
29
29
  **[👉 Follow our Quick Start Guide](https://www.simple-table.com/docs/quick-start)** for step-by-step instructions and live examples.
30
30
 
31
+ ## Quick Examples
32
+
33
+ Explore Simple Table's capabilities with these focused examples:
34
+
35
+ ### Column Features
36
+
37
+ - **[Column Sorting](https://www.simple-table.com/docs/column-sorting)** - Sort data by any column with single or multi-column support
38
+ - **[Column Filtering](https://www.simple-table.com/docs/column-filtering)** - Filter data with built-in text, number, and date filters
39
+ - **[Column Resizing](https://www.simple-table.com/docs/column-resizing)** - Drag column borders to resize on the fly
40
+ - **[Column Pinning](https://www.simple-table.com/docs/column-pinning)** - Pin important columns to the left or right
41
+ - **[Column Reordering](https://www.simple-table.com/docs/column-reordering)** - Drag and drop columns to rearrange
42
+ - **[Column Visibility](https://www.simple-table.com/docs/column-visibility)** - Show or hide columns dynamically
43
+ - **[Column Alignment](https://www.simple-table.com/docs/column-alignment)** - Align content left, center, or right
44
+ - **[Column Selection](https://www.simple-table.com/docs/column-selection)** - Select entire columns for bulk operations
45
+ - **[Column Editing](https://www.simple-table.com/docs/column-editing)** - Edit entire columns with custom editors
46
+ - **[Nested Headers](https://www.simple-table.com/docs/nested-headers)** - Create multi-level header hierarchies
47
+ - **[Collapsible Columns](https://www.simple-table.com/docs/collapsible-columns)** - Expand and collapse column groups
48
+
49
+ ### Row Features
50
+
51
+ - **[Row Selection](https://www.simple-table.com/docs/row-selection)** - Select single or multiple rows with checkboxes
52
+ - **[Row Grouping](https://www.simple-table.com/docs/row-grouping)** - Group and organize rows by any column
53
+ - **[Aggregate Functions](https://www.simple-table.com/docs/aggregate-functions)** - Calculate Sum, Average, Count, and more
54
+ - **[Row Height](https://www.simple-table.com/docs/row-height)** - Customize row height for optimal display
55
+
56
+ ### Cell Features
57
+
58
+ - **[Cell Editing](https://www.simple-table.com/docs/cell-editing)** - Edit cells inline with custom editors
59
+ - **[Cell Highlighting](https://www.simple-table.com/docs/cell-highlighting)** - Highlight cells based on conditions
60
+ - **[Cell Renderer](https://www.simple-table.com/docs/cell-renderer)** - Custom cell rendering for any data type
61
+ - **[Cell Clicking](https://www.simple-table.com/docs/cell-clicking)** - Handle cell click events with ease
62
+
63
+ ### Advanced Features
64
+
65
+ - **[Pagination](https://www.simple-table.com/docs/pagination)** - Server-side and client-side pagination support
66
+ - **[Infinite Scroll](https://www.simple-table.com/docs/infinite-scroll)** - Fetch and display data as you scroll
67
+ - **[Live Updates](https://www.simple-table.com/docs/live-updates)** - Real-time data updates and websocket integration
68
+ - **[Header Renderer](https://www.simple-table.com/docs/header-renderer)** - Custom header rendering for advanced layouts
69
+
70
+ ### Customization
71
+
72
+ - **[Themes](https://www.simple-table.com/docs/themes)** - Apply built-in themes or create your own
73
+ - **[Custom Icons](https://www.simple-table.com/docs/custom-icons)** - Replace default icons with your own
74
+
31
75
  ## Features
32
76
 
33
77
  - **Data Management**
@@ -71,6 +115,35 @@ Browse all available examples and comprehensive documentation
71
115
  - **📖 Documentation**: [Complete Documentation](https://www.simple-table.com/docs/installation)
72
116
  - **🚀 Quick Start**: [Get Started Now](https://www.simple-table.com/docs/quick-start)
73
117
 
118
+ ## 💰 Pricing
119
+
120
+ Simple, transparent pricing that never changes based on your revenue or team size:
121
+
122
+ ### FREE - For Individuals & Startups
123
+
124
+ **$0/forever** - Perfect for fun projects, bootstrapped startups, and pre-revenue companies
125
+
126
+ - Full Simple Table library access
127
+ - Unlimited users per product
128
+ - All core features (sorting, filtering, editing)
129
+ - Built-in themes & TypeScript support
130
+ - MIT License & commercial use
131
+ - Community support
132
+
133
+ ### PRO - For Growing Businesses
134
+
135
+ **$85/month** (50% off for first 50 customers - use code: `first_50`)
136
+
137
+ - Everything in FREE
138
+ - Priority email & Discord support
139
+ - Direct developer access
140
+ - Feature request prioritization
141
+ - Early access to new features
142
+ - Custom implementation guidance
143
+ - 30-day money-back guarantee
144
+
145
+ **[View Detailed Pricing](https://www.simple-table.com/pricing)**
146
+
74
147
  ## Community & Support
75
148
 
76
149
  Join our growing community to ask questions or share feedback:
@@ -2,6 +2,7 @@ import { FC, ReactElement, MutableRefObject } from "react";
2
2
  interface ScrollSyncPaneProps {
3
3
  childRef: MutableRefObject<HTMLElement | null>;
4
4
  children: ReactElement<any>;
5
+ group?: string;
5
6
  }
6
7
  export declare const ScrollSyncPane: FC<ScrollSyncPaneProps>;
7
8
  export {};
@@ -1,9 +1,11 @@
1
1
  import { RefObject } from "react";
2
- declare const TableHorizontalScrollbar: ({ mainBodyWidth, mainBodyRef, pinnedLeftWidth, pinnedRightWidth, tableBodyContainerRef, }: {
2
+ declare const TableHorizontalScrollbar: ({ mainBodyWidth, mainBodyRef, pinnedLeftWidth, pinnedRightWidth, pinnedLeftContentWidth, pinnedRightContentWidth, tableBodyContainerRef, }: {
3
3
  mainBodyRef: RefObject<HTMLDivElement>;
4
4
  mainBodyWidth: number;
5
5
  pinnedLeftWidth: number;
6
6
  pinnedRightWidth: number;
7
+ pinnedLeftContentWidth: number;
8
+ pinnedRightContentWidth: number;
7
9
  tableBodyContainerRef: RefObject<HTMLDivElement>;
8
10
  }) => import("react/jsx-runtime").JSX.Element | null;
9
11
  export default TableHorizontalScrollbar;
@@ -6,3 +6,10 @@ export declare const COLUMN_EDIT_WIDTH = 28;
6
6
  export declare const TABLE_HEADER_CELL_WIDTH_DEFAULT = 150;
7
7
  export declare const PINNED_BORDER_WIDTH = 1;
8
8
  export declare const MAX_PINNED_WIDTH_PERCENT = 0.8;
9
+ /**
10
+ * Get the maximum allowed width percentage for pinned columns based on viewport width
11
+ * This ensures better mobile compatibility by reducing pinned column space on smaller screens
12
+ * @param viewportWidth - The current viewport width in pixels
13
+ * @returns The maximum percentage (0-1) of container width that pinned columns can occupy
14
+ */
15
+ export declare const getResponsiveMaxPinnedPercent: (viewportWidth: number) => number;