@dayflow/core 3.1.2 → 3.2.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 +42 -13
- package/dist/index.d.ts +480 -294
- package/dist/index.esm.js +1 -1
- package/dist/index.js +1 -1
- package/dist/styles.css +89 -1
- package/package.json +43 -42
package/dist/styles.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! tailwindcss v4.2.
|
|
1
|
+
/*! tailwindcss v4.2.1 | MIT License | https://tailwindcss.com */
|
|
2
2
|
@layer properties;
|
|
3
3
|
@layer base {
|
|
4
4
|
*, ::after, ::before, ::backdrop, ::file-selector-button {
|
|
@@ -275,6 +275,9 @@
|
|
|
275
275
|
.-top-1\.5 {
|
|
276
276
|
top: calc(var(--spacing) * -1.5);
|
|
277
277
|
}
|
|
278
|
+
.-top-2\.5 {
|
|
279
|
+
top: calc(var(--spacing) * -2.5);
|
|
280
|
+
}
|
|
278
281
|
.top-0 {
|
|
279
282
|
top: calc(var(--spacing) * 0);
|
|
280
283
|
}
|
|
@@ -443,6 +446,9 @@
|
|
|
443
446
|
.mr-3 {
|
|
444
447
|
margin-right: calc(var(--spacing) * 3);
|
|
445
448
|
}
|
|
449
|
+
.mr-auto {
|
|
450
|
+
margin-right: auto;
|
|
451
|
+
}
|
|
446
452
|
.mb-1 {
|
|
447
453
|
margin-bottom: calc(var(--spacing) * 1);
|
|
448
454
|
}
|
|
@@ -500,6 +506,9 @@
|
|
|
500
506
|
.h-0\.5 {
|
|
501
507
|
height: calc(var(--spacing) * 0.5);
|
|
502
508
|
}
|
|
509
|
+
.h-1 {
|
|
510
|
+
height: calc(var(--spacing) * 1);
|
|
511
|
+
}
|
|
503
512
|
.h-1\.5 {
|
|
504
513
|
height: calc(var(--spacing) * 1.5);
|
|
505
514
|
}
|
|
@@ -626,6 +635,9 @@
|
|
|
626
635
|
.w-14 {
|
|
627
636
|
width: calc(var(--spacing) * 14);
|
|
628
637
|
}
|
|
638
|
+
.w-20 {
|
|
639
|
+
width: calc(var(--spacing) * 20);
|
|
640
|
+
}
|
|
629
641
|
.w-48 {
|
|
630
642
|
width: calc(var(--spacing) * 48);
|
|
631
643
|
}
|
|
@@ -822,6 +834,9 @@
|
|
|
822
834
|
.justify-end {
|
|
823
835
|
justify-content: flex-end;
|
|
824
836
|
}
|
|
837
|
+
.justify-evenly {
|
|
838
|
+
justify-content: space-evenly;
|
|
839
|
+
}
|
|
825
840
|
.justify-start {
|
|
826
841
|
justify-content: flex-start;
|
|
827
842
|
}
|
|
@@ -946,6 +961,10 @@
|
|
|
946
961
|
border-top-left-radius: var(--radius-sm);
|
|
947
962
|
border-top-right-radius: var(--radius-sm);
|
|
948
963
|
}
|
|
964
|
+
.rounded-l {
|
|
965
|
+
border-top-left-radius: 0.25rem;
|
|
966
|
+
border-bottom-left-radius: 0.25rem;
|
|
967
|
+
}
|
|
949
968
|
.rounded-l-none {
|
|
950
969
|
border-top-left-radius: 0;
|
|
951
970
|
border-bottom-left-radius: 0;
|
|
@@ -954,6 +973,10 @@
|
|
|
954
973
|
border-top-left-radius: var(--radius-xl);
|
|
955
974
|
border-bottom-left-radius: var(--radius-xl);
|
|
956
975
|
}
|
|
976
|
+
.rounded-r {
|
|
977
|
+
border-top-right-radius: 0.25rem;
|
|
978
|
+
border-bottom-right-radius: 0.25rem;
|
|
979
|
+
}
|
|
957
980
|
.rounded-r-none {
|
|
958
981
|
border-top-right-radius: 0;
|
|
959
982
|
border-bottom-right-radius: 0;
|
|
@@ -1249,6 +1272,9 @@
|
|
|
1249
1272
|
.pr-10 {
|
|
1250
1273
|
padding-right: calc(var(--spacing) * 10);
|
|
1251
1274
|
}
|
|
1275
|
+
.pb-0\.5 {
|
|
1276
|
+
padding-bottom: calc(var(--spacing) * 0.5);
|
|
1277
|
+
}
|
|
1252
1278
|
.pb-1 {
|
|
1253
1279
|
padding-bottom: calc(var(--spacing) * 1);
|
|
1254
1280
|
}
|
|
@@ -1548,6 +1574,11 @@
|
|
|
1548
1574
|
transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
|
|
1549
1575
|
transition-duration: var(--tw-duration, var(--default-transition-duration));
|
|
1550
1576
|
}
|
|
1577
|
+
.transition-\[min-height\] {
|
|
1578
|
+
transition-property: min-height;
|
|
1579
|
+
transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
|
|
1580
|
+
transition-duration: var(--tw-duration, var(--default-transition-duration));
|
|
1581
|
+
}
|
|
1551
1582
|
.transition-all {
|
|
1552
1583
|
transition-property: all;
|
|
1553
1584
|
transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
|
|
@@ -1973,6 +2004,11 @@
|
|
|
1973
2004
|
width: calc(var(--spacing) * 20);
|
|
1974
2005
|
}
|
|
1975
2006
|
}
|
|
2007
|
+
.md\:w-22 {
|
|
2008
|
+
@media (width >= 48rem) {
|
|
2009
|
+
width: calc(var(--spacing) * 22);
|
|
2010
|
+
}
|
|
2011
|
+
}
|
|
1976
2012
|
.md\:w-\[60\%\] {
|
|
1977
2013
|
@media (width >= 48rem) {
|
|
1978
2014
|
width: 60%;
|
|
@@ -1989,6 +2025,11 @@
|
|
|
1989
2025
|
line-height: var(--tw-leading, var(--text-xs--line-height));
|
|
1990
2026
|
}
|
|
1991
2027
|
}
|
|
2028
|
+
.md\:text-\[10px\] {
|
|
2029
|
+
@media (width >= 48rem) {
|
|
2030
|
+
font-size: 10px;
|
|
2031
|
+
}
|
|
2032
|
+
}
|
|
1992
2033
|
.md\:text-\[12px\] {
|
|
1993
2034
|
@media (width >= 48rem) {
|
|
1994
2035
|
font-size: 12px;
|
|
@@ -2050,6 +2091,11 @@
|
|
|
2050
2091
|
}
|
|
2051
2092
|
}
|
|
2052
2093
|
}
|
|
2094
|
+
.dark\:bg-gray-100 {
|
|
2095
|
+
.dark & {
|
|
2096
|
+
background-color: var(--color-gray-100);
|
|
2097
|
+
}
|
|
2098
|
+
}
|
|
2053
2099
|
.dark\:bg-gray-500\/20 {
|
|
2054
2100
|
.dark & {
|
|
2055
2101
|
background-color: color-mix(in srgb, oklch(55.1% 0.027 264.364) 20%, transparent);
|
|
@@ -2168,6 +2214,11 @@
|
|
|
2168
2214
|
color: var(--color-gray-600);
|
|
2169
2215
|
}
|
|
2170
2216
|
}
|
|
2217
|
+
.dark\:text-gray-900 {
|
|
2218
|
+
.dark & {
|
|
2219
|
+
color: var(--color-gray-900);
|
|
2220
|
+
}
|
|
2221
|
+
}
|
|
2171
2222
|
.dark\:text-slate-50 {
|
|
2172
2223
|
.dark & {
|
|
2173
2224
|
color: var(--color-slate-50);
|
|
@@ -2493,6 +2544,7 @@
|
|
|
2493
2544
|
}
|
|
2494
2545
|
:root {
|
|
2495
2546
|
color-scheme: light dark;
|
|
2547
|
+
font-family: Arial;
|
|
2496
2548
|
}
|
|
2497
2549
|
@layer df-theme {
|
|
2498
2550
|
:where(:root) {
|
|
@@ -2685,6 +2737,19 @@
|
|
|
2685
2737
|
opacity: 1;
|
|
2686
2738
|
}
|
|
2687
2739
|
}
|
|
2740
|
+
@keyframes df-event-pop-in {
|
|
2741
|
+
from {
|
|
2742
|
+
opacity: 0;
|
|
2743
|
+
transform: scale(0.95) translateY(-4px);
|
|
2744
|
+
}
|
|
2745
|
+
to {
|
|
2746
|
+
opacity: 1;
|
|
2747
|
+
transform: scale(1) translateY(0);
|
|
2748
|
+
}
|
|
2749
|
+
}
|
|
2750
|
+
.df-all-day-event-animate {
|
|
2751
|
+
animation: df-event-pop-in 0.3s ease-out forwards;
|
|
2752
|
+
}
|
|
2688
2753
|
@keyframes zoomIn {
|
|
2689
2754
|
from {
|
|
2690
2755
|
transform: scale(0.95);
|
|
@@ -2775,6 +2840,29 @@
|
|
|
2775
2840
|
.df-header-right {
|
|
2776
2841
|
flex: 1;
|
|
2777
2842
|
}
|
|
2843
|
+
.df-drag-active {
|
|
2844
|
+
-moz-user-select: none;
|
|
2845
|
+
user-select: none;
|
|
2846
|
+
-webkit-user-select: none;
|
|
2847
|
+
}
|
|
2848
|
+
.df-drag-active .calendar-event,
|
|
2849
|
+
.df-drag-active .df-month-more-events,
|
|
2850
|
+
.df-drag-active .df-month-title,
|
|
2851
|
+
.df-drag-active .df-year-event-content {
|
|
2852
|
+
pointer-events: none;
|
|
2853
|
+
}
|
|
2854
|
+
.df-cursor-ns-resize,
|
|
2855
|
+
.df-cursor-ns-resize * {
|
|
2856
|
+
cursor: ns-resize;
|
|
2857
|
+
}
|
|
2858
|
+
.df-cursor-ew-resize,
|
|
2859
|
+
.df-cursor-ew-resize * {
|
|
2860
|
+
cursor: ew-resize;
|
|
2861
|
+
}
|
|
2862
|
+
.df-cursor-grabbing,
|
|
2863
|
+
.df-cursor-grabbing * {
|
|
2864
|
+
cursor: grabbing;
|
|
2865
|
+
}
|
|
2778
2866
|
@property --tw-translate-x {
|
|
2779
2867
|
syntax: "*";
|
|
2780
2868
|
inherits: false;
|
package/package.json
CHANGED
|
@@ -1,52 +1,52 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dayflow/core",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.2.0",
|
|
4
4
|
"description": "A flexible and feature-rich calendar engine powered by Preact with drag-and-drop support, multiple views (Day, Week, Month, Year), and plugin architecture",
|
|
5
|
-
"main": "dist/index.js",
|
|
6
|
-
"module": "dist/index.esm.js",
|
|
7
|
-
"types": "dist/index.d.ts",
|
|
8
|
-
"exports": {
|
|
9
|
-
".": {
|
|
10
|
-
"types": "./dist/index.d.ts",
|
|
11
|
-
"import": "./dist/index.esm.js",
|
|
12
|
-
"require": "./dist/index.js"
|
|
13
|
-
},
|
|
14
|
-
"./dist/styles.css": "./dist/styles.css"
|
|
15
|
-
},
|
|
16
|
-
"files": [
|
|
17
|
-
"dist",
|
|
18
|
-
"README.md",
|
|
19
|
-
"LICENSE"
|
|
20
|
-
],
|
|
21
|
-
"sideEffects": [
|
|
22
|
-
"*.css",
|
|
23
|
-
"**/*.css"
|
|
24
|
-
],
|
|
25
5
|
"keywords": [
|
|
26
6
|
"calendar",
|
|
27
|
-
"
|
|
28
|
-
"schedule",
|
|
29
|
-
"events",
|
|
30
|
-
"typescript",
|
|
7
|
+
"day-view",
|
|
31
8
|
"drag-drop",
|
|
32
9
|
"event-calendar",
|
|
33
|
-
"
|
|
34
|
-
"week-view",
|
|
10
|
+
"events",
|
|
35
11
|
"month-view",
|
|
36
|
-
"
|
|
12
|
+
"plugin-architecture",
|
|
13
|
+
"preact",
|
|
14
|
+
"schedule",
|
|
15
|
+
"typescript",
|
|
37
16
|
"virtual-scroll",
|
|
38
|
-
"
|
|
17
|
+
"week-view",
|
|
18
|
+
"year-view"
|
|
39
19
|
],
|
|
40
|
-
"
|
|
20
|
+
"homepage": "https://github.com/dayflow-js/dayflow#readme",
|
|
21
|
+
"bugs": {
|
|
22
|
+
"url": "https://github.com/dayflow-js/dayflow/issues"
|
|
23
|
+
},
|
|
41
24
|
"license": "MIT",
|
|
25
|
+
"author": "Jayce Li",
|
|
42
26
|
"repository": {
|
|
43
27
|
"type": "git",
|
|
44
28
|
"url": "https://github.com/dayflow-js/dayflow.git"
|
|
45
29
|
},
|
|
46
|
-
"
|
|
47
|
-
"
|
|
30
|
+
"files": [
|
|
31
|
+
"dist",
|
|
32
|
+
"README.md",
|
|
33
|
+
"LICENSE"
|
|
34
|
+
],
|
|
35
|
+
"sideEffects": [
|
|
36
|
+
"*.css",
|
|
37
|
+
"**/*.css"
|
|
38
|
+
],
|
|
39
|
+
"main": "dist/index.js",
|
|
40
|
+
"module": "dist/index.esm.js",
|
|
41
|
+
"types": "dist/index.d.ts",
|
|
42
|
+
"exports": {
|
|
43
|
+
".": {
|
|
44
|
+
"types": "./dist/index.d.ts",
|
|
45
|
+
"import": "./dist/index.esm.js",
|
|
46
|
+
"require": "./dist/index.js"
|
|
47
|
+
},
|
|
48
|
+
"./dist/styles.css": "./dist/styles.css"
|
|
48
49
|
},
|
|
49
|
-
"homepage": "https://github.com/dayflow-js/dayflow#readme",
|
|
50
50
|
"dependencies": {
|
|
51
51
|
"@dayflow/blossom-color-picker": "^2.0.1",
|
|
52
52
|
"preact": "^10.28.3",
|
|
@@ -59,38 +59,39 @@
|
|
|
59
59
|
"@rollup/plugin-node-resolve": "^16.0.0",
|
|
60
60
|
"@rollup/plugin-terser": "^0.4.4",
|
|
61
61
|
"@rollup/plugin-typescript": "^12.1.2",
|
|
62
|
-
"@tailwindcss/postcss": "^4.1
|
|
62
|
+
"@tailwindcss/postcss": "^4.2.1",
|
|
63
63
|
"@testing-library/jest-dom": "^6.9.1",
|
|
64
64
|
"@testing-library/preact": "^3.2.4",
|
|
65
65
|
"@testing-library/user-event": "^14.6.1",
|
|
66
66
|
"@types/jest": "^29.5.14",
|
|
67
67
|
"@types/lodash": "^4.17.13",
|
|
68
68
|
"@types/node": "^22.10.2",
|
|
69
|
-
"autoprefixer": "^10.4.
|
|
69
|
+
"autoprefixer": "^10.4.24",
|
|
70
70
|
"identity-obj-proxy": "^3.0.0",
|
|
71
71
|
"jest": "^29.7.0",
|
|
72
72
|
"jest-environment-jsdom": "^29.7.0",
|
|
73
73
|
"postcss": "^8.5.6",
|
|
74
|
-
"prettier": "^3.8.1",
|
|
75
74
|
"rimraf": "^6.1.2",
|
|
76
75
|
"rollup": "^4.29.1",
|
|
77
76
|
"rollup-plugin-dts": "^6.3.0",
|
|
78
77
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
79
78
|
"rollup-plugin-postcss": "^4.0.2",
|
|
80
79
|
"rollup-plugin-visualizer": "^6.0.5",
|
|
81
|
-
"tailwindcss": "^4.1
|
|
80
|
+
"tailwindcss": "^4.2.1",
|
|
82
81
|
"ts-jest": "^29.4.5",
|
|
83
|
-
"typescript": "^5.
|
|
82
|
+
"typescript": "^5.9.3",
|
|
84
83
|
"vite": "^5.4.20"
|
|
85
84
|
},
|
|
86
85
|
"scripts": {
|
|
86
|
+
"build": "tsc -p tsconfig.build.json && rollup -c --bundleConfigAsCjs && pnpm run build:css",
|
|
87
|
+
"build:css": "node ./scripts/build-css.mjs",
|
|
88
|
+
"clean": "rimraf dist node_modules",
|
|
87
89
|
"dev": "vite --port 5529 --host",
|
|
88
|
-
"prebuild": "rimraf dist",
|
|
89
|
-
"build": "tsc -p tsconfig.build.json && rollup -c --bundleConfigAsCjs",
|
|
90
90
|
"postbuild": "rimraf dist/types",
|
|
91
|
-
"
|
|
91
|
+
"prebuild": "rimraf dist",
|
|
92
92
|
"test": "jest",
|
|
93
|
+
"test:coverage": "jest --coverage",
|
|
93
94
|
"test:watch": "jest --watch",
|
|
94
|
-
"
|
|
95
|
+
"typecheck": "tsc --noEmit"
|
|
95
96
|
}
|
|
96
97
|
}
|