funda-ui 1.0.537 → 1.0.545
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/ColorPicker/index.css +28 -8
- package/ColorPicker/index.d.ts +2 -0
- package/ColorPicker/index.js +18 -7
- package/EventCalendar/index.css +228 -0
- package/EventCalendar/index.d.ts +32 -0
- package/EventCalendar/index.js +1522 -0
- package/README.md +3 -1
- package/Tree/index.js +0 -16
- package/all.d.ts +1 -1
- package/all.js +1 -1
- package/lib/cjs/ColorPicker/index.d.ts +2 -0
- package/lib/cjs/ColorPicker/index.js +18 -7
- package/lib/cjs/EventCalendar/index.d.ts +32 -0
- package/lib/cjs/EventCalendar/index.js +1522 -0
- package/lib/cjs/Tree/index.js +0 -16
- package/lib/cjs/index.d.ts +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/css/ColorPicker/index.css +28 -8
- package/lib/css/EventCalendar/index.css +228 -0
- package/lib/esm/ColorPicker/index.scss +73 -30
- package/lib/esm/ColorPicker/index.tsx +23 -11
- package/lib/esm/EventCalendar/index.scss +301 -0
- package/lib/esm/EventCalendar/index.tsx +594 -0
- package/lib/esm/Tree/TreeList.tsx +0 -15
- package/lib/esm/index.js +1 -1
- package/package.json +1 -1
- package/Calendar/index.css +0 -96
- package/Calendar/index.d.ts +0 -7
- package/Calendar/index.js +0 -308
- package/lib/cjs/Calendar/index.d.ts +0 -7
- package/lib/cjs/Calendar/index.js +0 -308
- package/lib/css/Calendar/index.css +0 -96
- package/lib/esm/Calendar/index.scss +0 -120
- package/lib/esm/Calendar/index.tsx +0 -211
package/ColorPicker/index.css
CHANGED
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
/* ======================================================
|
|
2
2
|
<!-- Color Picker -->
|
|
3
3
|
/* ====================================================== */
|
|
4
|
-
.custom-
|
|
4
|
+
.custom-colorpicker__wrapper {
|
|
5
|
+
position: relative;
|
|
5
6
|
--color-control-border-radius: 0.375rem;
|
|
6
7
|
--color-control-size: 30px;
|
|
7
8
|
--color-control-border-color: rgba(0,0,0,.1);
|
|
9
|
+
/* placeholder */
|
|
10
|
+
}
|
|
11
|
+
.custom-colorpicker__wrapper .custom-colorpicker-control {
|
|
8
12
|
-webkit-appearance: none;
|
|
9
13
|
-moz-appearance: none;
|
|
10
14
|
appearance: none;
|
|
@@ -15,24 +19,40 @@
|
|
|
15
19
|
border: none;
|
|
16
20
|
cursor: pointer;
|
|
17
21
|
}
|
|
18
|
-
.custom-
|
|
22
|
+
.custom-colorpicker__wrapper .custom-colorpicker-control::-webkit-color-swatch {
|
|
19
23
|
border: 2px solid var(--color-control-border-color);
|
|
20
24
|
}
|
|
21
|
-
.custom-
|
|
25
|
+
.custom-colorpicker__wrapper .custom-colorpicker-control::-moz-color-swatch {
|
|
22
26
|
border: 2px solid var(--color-control-border-color);
|
|
23
27
|
}
|
|
24
|
-
.custom-
|
|
28
|
+
.custom-colorpicker__wrapper .custom-colorpicker-control:disabled {
|
|
25
29
|
cursor: not-allowed;
|
|
26
30
|
}
|
|
27
|
-
.custom-
|
|
31
|
+
.custom-colorpicker__wrapper .custom-colorpicker__transparent-placeholder {
|
|
32
|
+
position: absolute;
|
|
33
|
+
width: var(--color-control-size);
|
|
34
|
+
height: var(--color-control-size);
|
|
35
|
+
left: 0;
|
|
36
|
+
top: 0;
|
|
37
|
+
z-index: 1;
|
|
38
|
+
pointer-events: none;
|
|
39
|
+
background: #fff url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==) repeat;
|
|
40
|
+
}
|
|
41
|
+
.custom-colorpicker__wrapper.custom-colorpicker--rounded .custom-colorpicker-control::-webkit-color-swatch {
|
|
42
|
+
border-radius: var(--color-control-border-radius);
|
|
43
|
+
}
|
|
44
|
+
.custom-colorpicker__wrapper.custom-colorpicker--rounded .custom-colorpicker-control::-moz-color-swatch {
|
|
28
45
|
border-radius: var(--color-control-border-radius);
|
|
29
46
|
}
|
|
30
|
-
.custom-
|
|
47
|
+
.custom-colorpicker__wrapper.custom-colorpicker--rounded .custom-colorpicker__transparent-placeholder {
|
|
31
48
|
border-radius: var(--color-control-border-radius);
|
|
32
49
|
}
|
|
33
|
-
.custom-
|
|
50
|
+
.custom-colorpicker__wrapper.custom-colorpicker--circle .custom-colorpicker-control::-webkit-color-swatch {
|
|
51
|
+
border-radius: 50%;
|
|
52
|
+
}
|
|
53
|
+
.custom-colorpicker__wrapper.custom-colorpicker--circle .custom-colorpicker-control::-moz-color-swatch {
|
|
34
54
|
border-radius: 50%;
|
|
35
55
|
}
|
|
36
|
-
.custom-
|
|
56
|
+
.custom-colorpicker__wrapper.custom-colorpicker--circle .custom-colorpicker__transparent-placeholder {
|
|
37
57
|
border-radius: 50%;
|
|
38
58
|
}
|
package/ColorPicker/index.d.ts
CHANGED
|
@@ -7,6 +7,8 @@ declare module 'react' {
|
|
|
7
7
|
interface ColorPickerProps extends React.ComponentPropsWithoutRef<"input"> {
|
|
8
8
|
wrapperClassName?: string;
|
|
9
9
|
controlClassName?: string;
|
|
10
|
+
clearBtnClassName?: string;
|
|
11
|
+
clearBtnLabel?: string;
|
|
10
12
|
value?: string;
|
|
11
13
|
label?: React.ReactNode | string;
|
|
12
14
|
name?: string;
|
package/ColorPicker/index.js
CHANGED
|
@@ -96,7 +96,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
96
96
|
/* harmony export */ });
|
|
97
97
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(787);
|
|
98
98
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
99
|
-
var _excluded = ["wrapperClassName", "controlClassName", "disabled", "required", "readOnly", "value", "label", "name", "shape", "id", "style", "tabIndex", "onChange", "onBlur", "onFocus"];
|
|
99
|
+
var _excluded = ["wrapperClassName", "controlClassName", "clearBtnClassName", "clearBtnLabel", "disabled", "required", "readOnly", "value", "label", "name", "shape", "id", "style", "tabIndex", "onChange", "onBlur", "onFocus"];
|
|
100
100
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
101
101
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
102
102
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
@@ -111,6 +111,8 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
111
111
|
var ColorPicker = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(function (props, _ref) {
|
|
112
112
|
var wrapperClassName = props.wrapperClassName,
|
|
113
113
|
controlClassName = props.controlClassName,
|
|
114
|
+
clearBtnClassName = props.clearBtnClassName,
|
|
115
|
+
clearBtnLabel = props.clearBtnLabel,
|
|
114
116
|
disabled = props.disabled,
|
|
115
117
|
required = props.required,
|
|
116
118
|
readOnly = props.readOnly,
|
|
@@ -137,10 +139,10 @@ var ColorPicker = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)
|
|
|
137
139
|
if (shape && typeof shape === 'string') {
|
|
138
140
|
switch (shape) {
|
|
139
141
|
case 'rounded':
|
|
140
|
-
shapeClassName = 'custom-
|
|
142
|
+
shapeClassName = 'custom-colorpicker--rounded';
|
|
141
143
|
break;
|
|
142
144
|
case 'circle':
|
|
143
|
-
shapeClassName = 'custom-
|
|
145
|
+
shapeClassName = 'custom-colorpicker--circle';
|
|
144
146
|
break;
|
|
145
147
|
}
|
|
146
148
|
}
|
|
@@ -182,7 +184,7 @@ var ColorPicker = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)
|
|
|
182
184
|
setChangedVal(value || '');
|
|
183
185
|
}, [value]);
|
|
184
186
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
|
|
185
|
-
className: wrapperClassName || wrapperClassName === '' ? wrapperClassName : "mb-3 position-relative",
|
|
187
|
+
className: wrapperClassName || wrapperClassName === '' ? "custom-colorpicker__wrapper ".concat(shapeClassName, " ").concat(wrapperClassName) : "custom-colorpicker__wrapper mb-3 position-relative ".concat(shapeClassName),
|
|
186
188
|
ref: rootRef
|
|
187
189
|
}, label ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("label", {
|
|
188
190
|
htmlFor: idRes,
|
|
@@ -203,7 +205,7 @@ var ColorPicker = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)
|
|
|
203
205
|
},
|
|
204
206
|
tabIndex: tabIndex || 0,
|
|
205
207
|
type: "color",
|
|
206
|
-
className: "".concat(controlClassName || controlClassName === '' ? controlClassName : "form-control custom-
|
|
208
|
+
className: "".concat(controlClassName || controlClassName === '' ? controlClassName : "form-control custom-colorpicker-control flex-grow-0"),
|
|
207
209
|
id: idRes,
|
|
208
210
|
name: name,
|
|
209
211
|
value: changedVal,
|
|
@@ -214,11 +216,20 @@ var ColorPicker = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)
|
|
|
214
216
|
required: required || null,
|
|
215
217
|
readOnly: readOnly || null,
|
|
216
218
|
style: style
|
|
217
|
-
}, attributes))
|
|
219
|
+
}, attributes)), changedVal !== '' ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("button", {
|
|
220
|
+
tabIndex: -1,
|
|
221
|
+
type: "button",
|
|
222
|
+
className: clearBtnClassName || 'btn btn-link btn-sm',
|
|
223
|
+
onClick: function onClick() {
|
|
224
|
+
setChangedVal('');
|
|
225
|
+
}
|
|
226
|
+
}, clearBtnLabel || 'clear')) : null), required ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("span", {
|
|
218
227
|
className: "position-absolute end-0 top-0 my-2 mx-2"
|
|
219
228
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("span", {
|
|
220
229
|
className: "text-danger"
|
|
221
|
-
}, "*"))) : ''))
|
|
230
|
+
}, "*"))) : '', changedVal === '' ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
|
|
231
|
+
className: "custom-colorpicker__transparent-placeholder"
|
|
232
|
+
})) : null));
|
|
222
233
|
});
|
|
223
234
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ColorPicker);
|
|
224
235
|
})();
|
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
/* ======================================================
|
|
2
|
+
<!-- Event Calendar -->
|
|
3
|
+
/* ====================================================== */
|
|
4
|
+
.custom-event-cal__wrapper {
|
|
5
|
+
--custom-event-cal-wrapper-min-width: 400px;
|
|
6
|
+
--custom-event-cal-border-color: #ddd;
|
|
7
|
+
--custom-event-cal-border-color-hover: #333;
|
|
8
|
+
--custom-event-cal-header-fs: 1.125rem;
|
|
9
|
+
--custom-event-cal-default-border-color: #eee;
|
|
10
|
+
--custom-event-cal-day-border-color: #ddd;
|
|
11
|
+
--custom-event-cal-day-hover-bg: #f6f6f6;
|
|
12
|
+
--custom-event-cal-dayselected-bg: #0b5ed7;
|
|
13
|
+
--custom-event-cal-dayselected-text-color: #fff;
|
|
14
|
+
--custom-event-cal-year-month-btn-border-color: #ddd;
|
|
15
|
+
--custom-event-cal-year-month-btn-hover-bg: rgba(0, 58, 166, .1);
|
|
16
|
+
--custom-event-cal-year-month-btn-selected-bg: rgba(0, 58, 166, 1);
|
|
17
|
+
--custom-event-cal-year-month-btn-selected-color: #fff;
|
|
18
|
+
--custom-event-cal-month-wrapper-w: 18.75rem;
|
|
19
|
+
--custom-event-cal-year-wrapper-w: 18.75rem;
|
|
20
|
+
--custom-event-cal-header-arrow-bg: #000;
|
|
21
|
+
--custom-event-cal-header-text-color: #000;
|
|
22
|
+
--custom-event-cal-header-prevnext-btn-bg: transparent;
|
|
23
|
+
--custom-event-cal-header-prevnext-btn-color: #000;
|
|
24
|
+
--custom-event-cal-header-prevnext-btn-radius: 0.25rem;
|
|
25
|
+
--custom-event-cal-delete-btn-color: #ee4949;
|
|
26
|
+
--custom-event-cal-footer-today-btn-bg: rgba(0, 58, 166, 1);
|
|
27
|
+
--custom-event-cal-footer-today-btn-color: #fff;
|
|
28
|
+
--custom-event-cal-event-bg: rgb(255, 240, 227);
|
|
29
|
+
position: relative;
|
|
30
|
+
min-width: var(--custom-event-cal-wrapper-min-width);
|
|
31
|
+
border: 1px solid var(--custom-event-cal-border-color);
|
|
32
|
+
/* --HEADER --*/
|
|
33
|
+
/*-- BODY --*/
|
|
34
|
+
/*-- CELL --*/
|
|
35
|
+
/*-- SELECTION --*/
|
|
36
|
+
/* --BUTTON --*/
|
|
37
|
+
}
|
|
38
|
+
.custom-event-cal__wrapper .custom-event-cal__header {
|
|
39
|
+
font-size: var(--custom-event-cal-header-fs);
|
|
40
|
+
font-weight: bold;
|
|
41
|
+
padding: 10px 10px 5px 10px;
|
|
42
|
+
display: flex;
|
|
43
|
+
justify-content: space-between;
|
|
44
|
+
}
|
|
45
|
+
.custom-event-cal__wrapper .custom-event-cal__header .custom-event-cal__header__btns .custom-event-cal__btn {
|
|
46
|
+
margin-right: 1rem;
|
|
47
|
+
color: var(--custom-event-cal-header-text-color);
|
|
48
|
+
}
|
|
49
|
+
.custom-event-cal__wrapper .custom-event-cal__header .custom-event-cal__header__btns .custom-event-cal__btn svg {
|
|
50
|
+
margin-left: 0.3rem;
|
|
51
|
+
}
|
|
52
|
+
.custom-event-cal__wrapper .custom-event-cal__header .custom-event-cal__header__btns .custom-event-cal__btn svg path {
|
|
53
|
+
fill: var(--custom-event-cal-header-arrow-bg);
|
|
54
|
+
}
|
|
55
|
+
.custom-event-cal__wrapper .custom-event-cal__header .custom-event-cal__header__btns .custom-event-cal__btn.active svg {
|
|
56
|
+
transform: rotate(180deg);
|
|
57
|
+
}
|
|
58
|
+
.custom-event-cal__wrapper .custom-event-cal__body {
|
|
59
|
+
width: 100%;
|
|
60
|
+
display: flex;
|
|
61
|
+
flex-wrap: wrap;
|
|
62
|
+
}
|
|
63
|
+
.custom-event-cal__wrapper .custom-event-cal__row {
|
|
64
|
+
display: flex;
|
|
65
|
+
width: 100%;
|
|
66
|
+
}
|
|
67
|
+
.custom-event-cal__wrapper .custom-event-cal__row .custom-event-cal__cell {
|
|
68
|
+
flex: 1;
|
|
69
|
+
position: relative;
|
|
70
|
+
height: auto;
|
|
71
|
+
min-height: 4.75em;
|
|
72
|
+
display: flex;
|
|
73
|
+
align-items: center;
|
|
74
|
+
justify-content: center;
|
|
75
|
+
flex-direction: column;
|
|
76
|
+
text-align: center;
|
|
77
|
+
border-width: 0;
|
|
78
|
+
border-color: var(--custom-event-cal-default-border-color);
|
|
79
|
+
border-style: solid;
|
|
80
|
+
border-top-width: 1px;
|
|
81
|
+
border-right-width: 1px;
|
|
82
|
+
}
|
|
83
|
+
.custom-event-cal__wrapper .custom-event-cal__row .custom-event-cal__cell.last-cell {
|
|
84
|
+
border-right-width: 0;
|
|
85
|
+
}
|
|
86
|
+
.custom-event-cal__wrapper .custom-event-cal__row .custom-event-cal__cell.last-row {
|
|
87
|
+
border-bottom-width: 1px;
|
|
88
|
+
}
|
|
89
|
+
.custom-event-cal__wrapper .custom-event-cal__row .custom-event-cal__cell.custom-event-cal__day--week {
|
|
90
|
+
min-height: 2.75em;
|
|
91
|
+
align-items: end;
|
|
92
|
+
padding-inline-end: 0.75rem;
|
|
93
|
+
}
|
|
94
|
+
.custom-event-cal__wrapper .custom-event-cal__row .custom-event-cal__cell .custom-event-cal__day__event {
|
|
95
|
+
background-color: var(--custom-event-cal-event-bg);
|
|
96
|
+
width: 100%;
|
|
97
|
+
padding: 0.1rem 0.5rem;
|
|
98
|
+
margin: 0.5rem;
|
|
99
|
+
border-radius: 0;
|
|
100
|
+
margin-top: 2.5rem;
|
|
101
|
+
text-align: left;
|
|
102
|
+
font-size: 0.75rem;
|
|
103
|
+
}
|
|
104
|
+
.custom-event-cal__wrapper .custom-event-cal__row .custom-event-cal__cell .custom-event-cal__day__eventdel {
|
|
105
|
+
position: absolute;
|
|
106
|
+
z-index: 1;
|
|
107
|
+
left: 0;
|
|
108
|
+
top: 0;
|
|
109
|
+
display: none;
|
|
110
|
+
color: var(--custom-event-cal-delete-btn-color);
|
|
111
|
+
}
|
|
112
|
+
.custom-event-cal__wrapper .custom-event-cal__row .custom-event-cal__cell .custom-event-cal__day__eventdel svg path {
|
|
113
|
+
fill: var(--custom-event-cal-delete-btn-color);
|
|
114
|
+
}
|
|
115
|
+
.custom-event-cal__wrapper .custom-event-cal__row .custom-event-cal__cell > span {
|
|
116
|
+
position: absolute;
|
|
117
|
+
right: 0.25rem;
|
|
118
|
+
top: 0.25rem;
|
|
119
|
+
display: inline-block;
|
|
120
|
+
padding: 0.1rem;
|
|
121
|
+
border-radius: 50%;
|
|
122
|
+
width: 1.7rem;
|
|
123
|
+
height: 1.7rem;
|
|
124
|
+
line-height: 1.5;
|
|
125
|
+
margin: 0.5rem 0;
|
|
126
|
+
}
|
|
127
|
+
.custom-event-cal__wrapper .custom-event-cal__row .custom-event-cal__cell > span.disabled {
|
|
128
|
+
opacity: 0.2;
|
|
129
|
+
}
|
|
130
|
+
.custom-event-cal__wrapper .custom-event-cal__row .custom-event-cal__cell:not(.empty) {
|
|
131
|
+
cursor: pointer;
|
|
132
|
+
}
|
|
133
|
+
.custom-event-cal__wrapper .custom-event-cal__row .custom-event-cal__cell.selected > span {
|
|
134
|
+
color: var(--custom-event-cal-dayselected-text-color);
|
|
135
|
+
background-color: var(--custom-event-cal-dayselected-bg);
|
|
136
|
+
}
|
|
137
|
+
.custom-event-cal__wrapper .custom-event-cal__row .custom-event-cal__cell:not(.empty):hover {
|
|
138
|
+
background-color: var(--custom-event-cal-day-hover-bg);
|
|
139
|
+
}
|
|
140
|
+
.custom-event-cal__wrapper .custom-event-cal__row .custom-event-cal__cell:not(.empty):hover .custom-event-cal__day__eventdel {
|
|
141
|
+
display: block;
|
|
142
|
+
}
|
|
143
|
+
.custom-event-cal__wrapper .custom-event-cal__month-wrapper {
|
|
144
|
+
position: absolute;
|
|
145
|
+
width: var(--custom-event-cal-month-wrapper-w);
|
|
146
|
+
height: auto;
|
|
147
|
+
z-index: 1;
|
|
148
|
+
top: calc(1rem + 22px);
|
|
149
|
+
left: 50%;
|
|
150
|
+
transform: translateX(-50%);
|
|
151
|
+
display: none;
|
|
152
|
+
}
|
|
153
|
+
.custom-event-cal__wrapper .custom-event-cal__month-wrapper.active {
|
|
154
|
+
display: block;
|
|
155
|
+
}
|
|
156
|
+
.custom-event-cal__wrapper .custom-event-cal__month-wrapper .custom-event-cal__month-container {
|
|
157
|
+
display: grid;
|
|
158
|
+
grid-template-columns: repeat(3, 1fr);
|
|
159
|
+
grid-template-rows: repeat(4, 2.5em);
|
|
160
|
+
grid-gap: 10px;
|
|
161
|
+
}
|
|
162
|
+
.custom-event-cal__wrapper .custom-event-cal__year-wrapper {
|
|
163
|
+
position: absolute;
|
|
164
|
+
width: var(--custom-event-cal-year-wrapper-w);
|
|
165
|
+
height: auto;
|
|
166
|
+
z-index: 1;
|
|
167
|
+
top: calc(1rem + 22px);
|
|
168
|
+
left: 50%;
|
|
169
|
+
transform: translateX(-50%);
|
|
170
|
+
display: none;
|
|
171
|
+
}
|
|
172
|
+
.custom-event-cal__wrapper .custom-event-cal__year-wrapper.active {
|
|
173
|
+
display: block;
|
|
174
|
+
}
|
|
175
|
+
.custom-event-cal__wrapper .custom-event-cal__year-wrapper .custom-event-cal__year-container {
|
|
176
|
+
display: grid;
|
|
177
|
+
grid-template-columns: repeat(4, 1fr);
|
|
178
|
+
grid-template-rows: repeat(5, 2.5em);
|
|
179
|
+
grid-gap: 5px;
|
|
180
|
+
}
|
|
181
|
+
.custom-event-cal__wrapper .custom-event-cal__year,
|
|
182
|
+
.custom-event-cal__wrapper .custom-event-cal__month {
|
|
183
|
+
display: flex;
|
|
184
|
+
align-items: center;
|
|
185
|
+
justify-content: center;
|
|
186
|
+
padding: 5px;
|
|
187
|
+
font-size: 0.875em;
|
|
188
|
+
border: 1px solid var(--custom-event-cal-year-month-btn-border-color);
|
|
189
|
+
border-radius: 0.25rem;
|
|
190
|
+
cursor: pointer;
|
|
191
|
+
}
|
|
192
|
+
.custom-event-cal__wrapper .custom-event-cal__year:hover,
|
|
193
|
+
.custom-event-cal__wrapper .custom-event-cal__month:hover {
|
|
194
|
+
background-color: var(--custom-event-cal-year-month-btn-hover-bg);
|
|
195
|
+
}
|
|
196
|
+
.custom-event-cal__wrapper .custom-event-cal__year.selected,
|
|
197
|
+
.custom-event-cal__wrapper .custom-event-cal__month.selected {
|
|
198
|
+
background-color: var(--custom-event-cal-year-month-btn-selected-bg);
|
|
199
|
+
color: var(--custom-event-cal-year-month-btn-selected-color);
|
|
200
|
+
}
|
|
201
|
+
.custom-event-cal__wrapper .custom-event-cal__btn {
|
|
202
|
+
border: none;
|
|
203
|
+
outline: none;
|
|
204
|
+
background: none;
|
|
205
|
+
padding: 0;
|
|
206
|
+
margin: 0;
|
|
207
|
+
box-shadow: none;
|
|
208
|
+
cursor: pointer;
|
|
209
|
+
}
|
|
210
|
+
.custom-event-cal__wrapper .custom-event-cal__btn svg path {
|
|
211
|
+
fill: var(--custom-event-cal-header-arrow-bg);
|
|
212
|
+
}
|
|
213
|
+
.custom-event-cal__wrapper .custom-event-cal__btn--prev, .custom-event-cal__wrapper .custom-event-cal__btn--next {
|
|
214
|
+
border-radius: var(--custom-event-cal-header-prevnext-btn-radius);
|
|
215
|
+
color: var(--custom-event-cal-header-prevnext-btn-color);
|
|
216
|
+
background-color: var(--custom-event-cal-header-prevnext-btn-bg);
|
|
217
|
+
}
|
|
218
|
+
.custom-event-cal__wrapper .custom-event-cal__btn--prev svg path, .custom-event-cal__wrapper .custom-event-cal__btn--next svg path {
|
|
219
|
+
fill: var(--custom-event-cal-header-prevnext-btn-color);
|
|
220
|
+
}
|
|
221
|
+
.custom-event-cal__wrapper .custom-event-cal__btn--today {
|
|
222
|
+
border: 1px solid var(--custom-event-cal-border-color);
|
|
223
|
+
border-radius: 0.25rem;
|
|
224
|
+
font-size: 0.875em;
|
|
225
|
+
padding: 0.2rem 1rem;
|
|
226
|
+
color: var(--custom-event-cal-footer-today-btn-color);
|
|
227
|
+
background-color: var(--custom-event-cal-footer-today-btn-bg);
|
|
228
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare type EventCalendarProps = {
|
|
3
|
+
customTodayDate?: string;
|
|
4
|
+
eventsValue?: any[];
|
|
5
|
+
langWeek?: string[];
|
|
6
|
+
langWeekFull?: string[];
|
|
7
|
+
langMonths?: string[];
|
|
8
|
+
langMonthsFull?: string[];
|
|
9
|
+
langToday?: string;
|
|
10
|
+
iconRemove?: React.ReactNode | string;
|
|
11
|
+
onChangeDate?: (currentData: any) => void;
|
|
12
|
+
modalMaskOpacity?: string;
|
|
13
|
+
modalMaxWidth?: number | string;
|
|
14
|
+
modalMinHeight?: number | string;
|
|
15
|
+
modalHeading?: React.ReactNode;
|
|
16
|
+
modalContent?: React.ReactNode;
|
|
17
|
+
modalDeleteContent?: React.ReactNode;
|
|
18
|
+
modalCloseBtnClassName?: string;
|
|
19
|
+
modalCloseBtnLabel?: string | React.ReactNode;
|
|
20
|
+
modalSubmitBtnClassName?: string;
|
|
21
|
+
modalSubmitBtnLabel?: string | React.ReactNode;
|
|
22
|
+
modalSubmitDeleteBtnClassName?: string;
|
|
23
|
+
modalSubmitDeleteBtnLabel?: string | React.ReactNode;
|
|
24
|
+
onModalEditOpen?: (currentData: any) => void;
|
|
25
|
+
onModalEditClose?: (currentData: any) => void;
|
|
26
|
+
onModalDeleteOpen?: (currentData: any) => void;
|
|
27
|
+
onModalDeleteClose?: (currentData: any) => void;
|
|
28
|
+
onModalEditEvent?: (currentData: any, closewin: any) => void;
|
|
29
|
+
onModalDeleteEvent?: (currentData: any, closewin: any) => void;
|
|
30
|
+
};
|
|
31
|
+
declare const EventCalendar: (props: EventCalendarProps) => JSX.Element;
|
|
32
|
+
export default EventCalendar;
|