schummar-table 1.0.0-beta.2 → 1.0.0-beta.4
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 +10 -1
- package/dist/index.cjs +131 -1888
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -91
- package/dist/index.d.ts +2 -91
- package/dist/index.js +20 -1778
- package/dist/index.js.map +1 -1
- package/dist/mantineTheme.cjs +212 -0
- package/dist/mantineTheme.cjs.map +1 -0
- package/dist/mantineTheme.d.cts +10 -0
- package/dist/mantineTheme.d.ts +10 -0
- package/dist/mantineTheme.js +210 -0
- package/dist/mantineTheme.js.map +1 -0
- package/dist/mui4Theme.d.cts +1 -1
- package/dist/mui4Theme.d.ts +1 -1
- package/dist/mui5Theme.d.cts +1 -1
- package/dist/mui5Theme.d.ts +1 -1
- package/dist/{types-Cppu6jsI.d.cts → types--I5JSyno.d.cts} +104 -6
- package/dist/{types-ZTz8TVGe.d.ts → types-BFFYueFE.d.ts} +104 -6
- package/dist/useTheme-BxEsZbTm.cjs +1985 -0
- package/dist/useTheme-BxEsZbTm.cjs.map +1 -0
- package/dist/useTheme-C2MxW5qw.js +1793 -0
- package/dist/useTheme-C2MxW5qw.js.map +1 -0
- package/package.json +25 -5
- package/skills/schummar-table-upgrade/SKILL.md +44 -2
package/README.md
CHANGED
|
@@ -204,7 +204,8 @@ always wins. `classes.row/cell` and `styles.row/cell` also take a function of th
|
|
|
204
204
|
class names or constant styles there: function styles run for every cell render.
|
|
205
205
|
|
|
206
206
|
Components, icons, texts and colors are replaced through a theme, per table or for all tables via
|
|
207
|
-
`TableSettingsProvider`. MUI themes ship as separate entry points
|
|
207
|
+
`TableSettingsProvider`. MUI and Mantine themes ship as separate entry points
|
|
208
|
+
(`schummar-table/mui5Theme`, `schummar-table/mantineTheme`):
|
|
208
209
|
|
|
209
210
|
```tsx
|
|
210
211
|
import { Mui5TableThemeProvider } from 'schummar-table/mui5Theme';
|
|
@@ -214,6 +215,14 @@ import { Mui5TableThemeProvider } from 'schummar-table/mui5Theme';
|
|
|
214
215
|
</Mui5TableThemeProvider>;
|
|
215
216
|
```
|
|
216
217
|
|
|
218
|
+
`MantineTableThemeProvider` goes inside `MantineProvider` and takes its colors from Mantine's CSS
|
|
219
|
+
variables, so it follows the color scheme without re-rendering. Its date picker is the one from
|
|
220
|
+
`@mantine/dates`; import `@mantine/dates/styles.css` next to `@mantine/core/styles.css`.
|
|
221
|
+
|
|
222
|
+
The date picker is a theme component too (`components.DatePicker`). It receives the props with
|
|
223
|
+
`DatePickerProvider` defaults applied and min/max clamping done; `DatePickerQuickOptions` renders
|
|
224
|
+
the quick option buttons for a custom one.
|
|
225
|
+
|
|
217
226
|
## Upgrading from 0.x
|
|
218
227
|
|
|
219
228
|
1.0 changes the filter API, the `virtual` options and a few others. The package ships an agent
|