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/cjs/index.js
CHANGED
|
@@ -794,6 +794,13 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__$d() {
|
|
|
794
794
|
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).";
|
|
795
795
|
}
|
|
796
796
|
const DatePickerContext = React.createContext({});
|
|
797
|
+
function DatePickerProvider({
|
|
798
|
+
children,
|
|
799
|
+
...props
|
|
800
|
+
}) {
|
|
801
|
+
const value = React.useMemo(() => props, [JSON.stringify(props)]);
|
|
802
|
+
return /* @__PURE__ */ jsxRuntime.jsx(DatePickerContext.Provider, { value, children });
|
|
803
|
+
}
|
|
797
804
|
const weekDays = [0, 1, 2, 3, 4, 5, 6];
|
|
798
805
|
const startOfDay = (d) => new Date(d.getFullYear(), d.getMonth(), d.getDate());
|
|
799
806
|
const endOfDay = (d) => new Date(d.getFullYear(), d.getMonth(), d.getDate() + 1, 0, 0, 0, -1);
|
|
@@ -3373,6 +3380,7 @@ exports.AutoFocusTextField = AutoFocusTextField;
|
|
|
3373
3380
|
exports.ColumnContext = ColumnContext;
|
|
3374
3381
|
exports.DateFilter = DateFilter;
|
|
3375
3382
|
exports.DatePicker = DatePicker;
|
|
3383
|
+
exports.DatePickerProvider = DatePickerProvider;
|
|
3376
3384
|
exports.RangeFilter = RangeFilter;
|
|
3377
3385
|
exports.SelectFilter = SelectFilter;
|
|
3378
3386
|
exports.Table = Table;
|
|
@@ -3380,8 +3388,10 @@ exports.TableContext = TableContext;
|
|
|
3380
3388
|
exports.TableResetContext = TableResetContext;
|
|
3381
3389
|
exports.TextFilter = TextFilter;
|
|
3382
3390
|
exports.commonQuickOptions = commonQuickOptions;
|
|
3391
|
+
exports.dateClamp = dateClamp;
|
|
3383
3392
|
exports.dateIntersect = dateIntersect;
|
|
3384
3393
|
exports.endOfDay = endOfDay;
|
|
3394
|
+
exports.getCalendarWeek = getCalendarWeek;
|
|
3385
3395
|
exports.helpers = helpers;
|
|
3386
3396
|
exports.lastDays = lastDays;
|
|
3387
3397
|
exports.startOfDay = startOfDay;
|