@super-calendar/core 2.3.0 → 2.3.1
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/index.d.mts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/dist/index.mjs +2 -0
- package/package.json +1 -1
- package/src/tokens.ts +4 -0
package/dist/index.d.mts
CHANGED
|
@@ -111,6 +111,8 @@ type BusinessHours = (date: Date) => {
|
|
|
111
111
|
//#region src/tokens.d.ts
|
|
112
112
|
/** The shared colour palette both renderers derive their themes from. */
|
|
113
113
|
interface CalendarColors {
|
|
114
|
+
/** Opaque surface behind floating chrome (e.g. the date-picker field and popover). */
|
|
115
|
+
surface: string;
|
|
114
116
|
/** Hour lines, day separators and month-cell borders. */
|
|
115
117
|
gridLine: string;
|
|
116
118
|
/** Background tint behind weekend columns/cells. */
|
package/dist/index.d.ts
CHANGED
|
@@ -111,6 +111,8 @@ type BusinessHours = (date: Date) => {
|
|
|
111
111
|
//#region src/tokens.d.ts
|
|
112
112
|
/** The shared colour palette both renderers derive their themes from. */
|
|
113
113
|
interface CalendarColors {
|
|
114
|
+
/** Opaque surface behind floating chrome (e.g. the date-picker field and popover). */
|
|
115
|
+
surface: string;
|
|
114
116
|
/** Hour lines, day separators and month-cell borders. */
|
|
115
117
|
gridLine: string;
|
|
116
118
|
/** Background tint behind weekend columns/cells. */
|
package/dist/index.js
CHANGED
|
@@ -4,6 +4,7 @@ let react = require("react");
|
|
|
4
4
|
//#region src/tokens.ts
|
|
5
5
|
/** The default light-theme colour palette. */
|
|
6
6
|
const lightColors = {
|
|
7
|
+
surface: "#FFFFFF",
|
|
7
8
|
gridLine: "#E2E4E9",
|
|
8
9
|
weekendBackground: "#F6F7F9",
|
|
9
10
|
outsideHoursBackground: "#F1F2F4",
|
|
@@ -22,6 +23,7 @@ const lightColors = {
|
|
|
22
23
|
};
|
|
23
24
|
/** The default dark-theme colour palette. */
|
|
24
25
|
const darkColors = {
|
|
26
|
+
surface: "#1A1B1E",
|
|
25
27
|
gridLine: "#2A2E37",
|
|
26
28
|
weekendBackground: "#15171C",
|
|
27
29
|
outsideHoursBackground: "#101216",
|
package/dist/index.mjs
CHANGED
|
@@ -3,6 +3,7 @@ import { createContext, useCallback, useContext, useMemo, useState } from "react
|
|
|
3
3
|
//#region src/tokens.ts
|
|
4
4
|
/** The default light-theme colour palette. */
|
|
5
5
|
const lightColors = {
|
|
6
|
+
surface: "#FFFFFF",
|
|
6
7
|
gridLine: "#E2E4E9",
|
|
7
8
|
weekendBackground: "#F6F7F9",
|
|
8
9
|
outsideHoursBackground: "#F1F2F4",
|
|
@@ -21,6 +22,7 @@ const lightColors = {
|
|
|
21
22
|
};
|
|
22
23
|
/** The default dark-theme colour palette. */
|
|
23
24
|
const darkColors = {
|
|
25
|
+
surface: "#1A1B1E",
|
|
24
26
|
gridLine: "#2A2E37",
|
|
25
27
|
weekendBackground: "#15171C",
|
|
26
28
|
outsideHoursBackground: "#101216",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@super-calendar/core",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.1",
|
|
4
4
|
"description": "Render-agnostic core for super-calendar: date math, selection model, event layout, the month-grid builder, headless hooks, and neutral theme tokens. No renderer.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"calendar",
|
package/src/tokens.ts
CHANGED
|
@@ -5,6 +5,8 @@
|
|
|
5
5
|
|
|
6
6
|
/** The shared colour palette both renderers derive their themes from. */
|
|
7
7
|
export interface CalendarColors {
|
|
8
|
+
/** Opaque surface behind floating chrome (e.g. the date-picker field and popover). */
|
|
9
|
+
surface: string;
|
|
8
10
|
/** Hour lines, day separators and month-cell borders. */
|
|
9
11
|
gridLine: string;
|
|
10
12
|
/** Background tint behind weekend columns/cells. */
|
|
@@ -39,6 +41,7 @@ export interface CalendarColors {
|
|
|
39
41
|
|
|
40
42
|
/** The default light-theme colour palette. */
|
|
41
43
|
export const lightColors: CalendarColors = {
|
|
44
|
+
surface: "#FFFFFF",
|
|
42
45
|
gridLine: "#E2E4E9",
|
|
43
46
|
weekendBackground: "#F6F7F9",
|
|
44
47
|
outsideHoursBackground: "#F1F2F4",
|
|
@@ -58,6 +61,7 @@ export const lightColors: CalendarColors = {
|
|
|
58
61
|
|
|
59
62
|
/** The default dark-theme colour palette. */
|
|
60
63
|
export const darkColors: CalendarColors = {
|
|
64
|
+
surface: "#1A1B1E",
|
|
61
65
|
gridLine: "#2A2E37",
|
|
62
66
|
weekendBackground: "#15171C",
|
|
63
67
|
outsideHoursBackground: "#101216",
|