next-helios-fe 1.8.125 → 1.8.127

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.125",
3
+ "version": "1.8.127",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -62,8 +62,14 @@ export const Toolbar: React.FC<ToolbarProps> = ({
62
62
  {option?.month?.show !== false && (
63
63
  <button
64
64
  type="button"
65
- className={`px-4 py-1.5 rounded-l-md text-primary hover:bg-primary-light ${
65
+ className={`px-4 py-1.5 text-primary hover:bg-primary-light ${
66
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"
67
73
  }`}
68
74
  onClick={() => {
69
75
  toolbar.onView("month");
@@ -78,6 +84,10 @@ export const Toolbar: React.FC<ToolbarProps> = ({
78
84
  type="button"
79
85
  className={`px-4 py-1.5 border-x border-primary/30 text-primary hover:bg-primary-light ${
80
86
  active === "week" ? "bg-primary-light" : "bg-primary-transparent"
87
+ } ${option?.month?.show === false && "rounded-l-md"} ${
88
+ option?.day?.show === false &&
89
+ option?.list?.show === false &&
90
+ "rounded-r-md"
81
91
  }`}
82
92
  onClick={() => {
83
93
  toolbar.onView("week");
@@ -92,7 +102,11 @@ export const Toolbar: React.FC<ToolbarProps> = ({
92
102
  type="button"
93
103
  className={`px-4 py-1.5 border-r border-primary/30 text-primary hover:bg-primary-light ${
94
104
  active === "day" ? "bg-primary-light" : "bg-primary-transparent"
95
- }`}
105
+ } ${
106
+ option?.month?.show === false &&
107
+ option?.week?.show === false &&
108
+ "rounded-l-md"
109
+ } ${option?.list?.show === false && "rounded-r-md"}`}
96
110
  onClick={() => {
97
111
  toolbar.onView("day");
98
112
  setActive("day");
@@ -104,10 +118,16 @@ export const Toolbar: React.FC<ToolbarProps> = ({
104
118
  {option?.list?.show !== false && (
105
119
  <button
106
120
  type="button"
107
- className={`px-3 py-1.5 rounded-r-md text-primary hover:bg-primary-light ${
121
+ className={`px-3 py-1.5 text-primary hover:bg-primary-light ${
108
122
  active === "agenda"
109
123
  ? "bg-primary-light"
110
124
  : "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"
111
131
  }`}
112
132
  onClick={() => {
113
133
  toolbar.onView("agenda");