next-helios-fe 1.8.127 → 1.8.128

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "next-helios-fe",
3
- "version": "1.8.127",
3
+ "version": "1.8.128",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -13,19 +13,16 @@ interface BigCalendarProps {
13
13
  options?: {
14
14
  showEventListFilter?: boolean;
15
15
  toolbar?: {
16
- month?: {
17
- show?: boolean
18
- },
19
16
  week?: {
20
- show?: boolean
21
- },
17
+ show?: boolean;
18
+ };
22
19
  day?: {
23
- show?: boolean
24
- },
20
+ show?: boolean;
21
+ };
25
22
  list?: {
26
- show?: boolean
27
- },
28
- }
23
+ show?: boolean;
24
+ };
25
+ };
29
26
  };
30
27
  eventList: {
31
28
  id: number | string;
@@ -6,9 +6,6 @@ import dayjs from "dayjs";
6
6
  interface ToolbarProps {
7
7
  toolbar: any;
8
8
  option?: {
9
- month?: {
10
- show?: boolean;
11
- };
12
9
  week?: {
13
10
  show?: boolean;
14
11
  };
@@ -59,32 +56,30 @@ export const Toolbar: React.FC<ToolbarProps> = ({
59
56
  </span>
60
57
  </div>
61
58
  <div className="flex">
62
- {option?.month?.show !== false && (
63
- <button
64
- type="button"
65
- className={`px-4 py-1.5 text-primary hover:bg-primary-light ${
66
- active === "month" ? "bg-primary-light" : "bg-primary-transparent"
67
- } ${
68
- option?.week?.show === false &&
69
- option?.day?.show === false &&
70
- option?.list?.show === false
71
- ? "rounded-md"
72
- : "rounded-l-md"
73
- }`}
74
- onClick={() => {
75
- toolbar.onView("month");
76
- setActive("month");
77
- }}
78
- >
79
- Month
80
- </button>
81
- )}
59
+ <button
60
+ type="button"
61
+ className={`px-4 py-1.5 text-primary hover:bg-primary-light ${
62
+ active === "month" ? "bg-primary-light" : "bg-primary-transparent"
63
+ } ${
64
+ option?.week?.show === false &&
65
+ option?.day?.show === false &&
66
+ option?.list?.show === false
67
+ ? "rounded-md"
68
+ : "rounded-l-md"
69
+ }`}
70
+ onClick={() => {
71
+ toolbar.onView("month");
72
+ setActive("month");
73
+ }}
74
+ >
75
+ Month
76
+ </button>
82
77
  {option?.week?.show !== false && (
83
78
  <button
84
79
  type="button"
85
80
  className={`px-4 py-1.5 border-x border-primary/30 text-primary hover:bg-primary-light ${
86
81
  active === "week" ? "bg-primary-light" : "bg-primary-transparent"
87
- } ${option?.month?.show === false && "rounded-l-md"} ${
82
+ } ${
88
83
  option?.day?.show === false &&
89
84
  option?.list?.show === false &&
90
85
  "rounded-r-md"
@@ -102,10 +97,6 @@ export const Toolbar: React.FC<ToolbarProps> = ({
102
97
  type="button"
103
98
  className={`px-4 py-1.5 border-r border-primary/30 text-primary hover:bg-primary-light ${
104
99
  active === "day" ? "bg-primary-light" : "bg-primary-transparent"
105
- } ${
106
- option?.month?.show === false &&
107
- option?.week?.show === false &&
108
- "rounded-l-md"
109
100
  } ${option?.list?.show === false && "rounded-r-md"}`}
110
101
  onClick={() => {
111
102
  toolbar.onView("day");
@@ -118,16 +109,10 @@ export const Toolbar: React.FC<ToolbarProps> = ({
118
109
  {option?.list?.show !== false && (
119
110
  <button
120
111
  type="button"
121
- className={`px-3 py-1.5 text-primary hover:bg-primary-light ${
112
+ className={`px-3 py-1.5 rounded-r-md text-primary hover:bg-primary-light ${
122
113
  active === "agenda"
123
114
  ? "bg-primary-light"
124
115
  : "bg-primary-transparent"
125
- } ${
126
- option?.month?.show === false &&
127
- option?.week?.show === false &&
128
- option?.day?.show === false
129
- ? "rounded-md"
130
- : "rounded-r-md"
131
116
  }`}
132
117
  onClick={() => {
133
118
  toolbar.onView("agenda");
@@ -316,13 +316,12 @@ button.rbc-input::-moz-focus-inner {
316
316
  }
317
317
 
318
318
  .rbc-show-more {
319
- background-color: rgba(255, 255, 255, 0.3);
320
319
  z-index: 4;
321
320
  font-weight: bold;
322
321
  font-size: 85%;
323
322
  height: auto;
324
323
  line-height: normal;
325
- color: var(--color-primary-dark);
324
+ color: var(--color-primary);
326
325
  }
327
326
  .rbc-show-more:hover, .rbc-show-more:focus {
328
327
  color: var(--color-primary-dark);
@@ -427,7 +426,8 @@ button.rbc-input::-moz-focus-inner {
427
426
  position: absolute;
428
427
  z-index: 5;
429
428
  border: 1px solid var(--border-color-default);
430
- background-color: #fff;
429
+ border-radius: 6px;
430
+ background-color: var(--background-primary);
431
431
  -webkit-box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25);
432
432
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25);
433
433
  padding: 10px;