schummar-table 0.35.0 → 0.35.2
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/cjs/index.js +10 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/es/index.js +13 -3
- package/dist/es/index.js.map +1 -1
- package/dist/es/tableTheme.js +2 -2
- package/dist/types/index.d.ts +4 -4
- package/package.json +4 -1
package/dist/es/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs, jsx, Fragment as Fragment$1 } from "@emotion/react/jsx-runtime";
|
|
2
2
|
import { createContext, useContext, useState, cloneElement, useMemo, useRef, useLayoutEffect, useEffect, Fragment, memo, forwardRef } from "react";
|
|
3
3
|
import { d as darkGray, l as lightGray, P as Popover, S as Store, T as TableThemeContext, g as globalTableTheme, m as mergeThemes, a as gray, b as defaultClasses, c as StoreScope } from "./tableTheme.js";
|
|
4
|
-
import {
|
|
4
|
+
import { e, f } from "./tableTheme.js";
|
|
5
5
|
import { css, ClassNames } from "@emotion/react";
|
|
6
6
|
import { castDraft } from "immer";
|
|
7
7
|
import { nanoid } from "nanoid";
|
|
@@ -793,6 +793,13 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__$d() {
|
|
|
793
793
|
return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).";
|
|
794
794
|
}
|
|
795
795
|
const DatePickerContext = createContext({});
|
|
796
|
+
function DatePickerProvider({
|
|
797
|
+
children,
|
|
798
|
+
...props
|
|
799
|
+
}) {
|
|
800
|
+
const value = useMemo(() => props, [JSON.stringify(props)]);
|
|
801
|
+
return /* @__PURE__ */ jsx(DatePickerContext.Provider, { value, children });
|
|
802
|
+
}
|
|
796
803
|
const weekDays = [0, 1, 2, 3, 4, 5, 6];
|
|
797
804
|
const startOfDay = (d) => new Date(d.getFullYear(), d.getMonth(), d.getDate());
|
|
798
805
|
const endOfDay = (d) => new Date(d.getFullYear(), d.getMonth(), d.getDate() + 1, 0, 0, 0, -1);
|
|
@@ -3369,18 +3376,21 @@ export {
|
|
|
3369
3376
|
ColumnContext,
|
|
3370
3377
|
DateFilter,
|
|
3371
3378
|
DatePicker,
|
|
3379
|
+
DatePickerProvider,
|
|
3372
3380
|
RangeFilter,
|
|
3373
3381
|
SelectFilter,
|
|
3374
3382
|
Table,
|
|
3375
3383
|
TableContext,
|
|
3376
3384
|
TableResetContext,
|
|
3377
3385
|
TableThemeContext,
|
|
3378
|
-
|
|
3386
|
+
e as TableThemeProvider,
|
|
3379
3387
|
TextFilter,
|
|
3380
3388
|
commonQuickOptions,
|
|
3381
|
-
|
|
3389
|
+
f as configureTableTheme,
|
|
3390
|
+
dateClamp,
|
|
3382
3391
|
dateIntersect,
|
|
3383
3392
|
endOfDay,
|
|
3393
|
+
getCalendarWeek,
|
|
3384
3394
|
helpers,
|
|
3385
3395
|
lastDays,
|
|
3386
3396
|
mergeThemes,
|