ywana-core8 0.0.963 → 0.0.965
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.cjs +4 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +4 -2
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +4 -2
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/html/textfield.js +2 -2
- package/src/incubator/planner.js +2 -1
package/package.json
CHANGED
package/src/html/textfield.js
CHANGED
@@ -12,7 +12,7 @@ import './textarea.css'
|
|
12
12
|
export const TextField = (props) => {
|
13
13
|
|
14
14
|
const site = useContext(SiteContext)
|
15
|
-
const { id, type = 'text', label, labelPosition = 'top', placeholder, value, outlined, readOnly = false, canClear = true, onChange, onEnter, onClick, onFocus, onBlur } = props
|
15
|
+
const { id, type = 'text', className, label, labelPosition = 'top', placeholder, value, outlined, readOnly = false, canClear = true, onChange, onEnter, onClick, onFocus, onBlur } = props
|
16
16
|
|
17
17
|
function onKeyPress(event) {
|
18
18
|
var key = event.charCode ? event.charCode : event.keyCode ? event.keyCode : 0;
|
@@ -48,7 +48,7 @@ export const TextField = (props) => {
|
|
48
48
|
const placeholderTxt = site.translate ? site.translate(placeholder) : placeholder
|
49
49
|
|
50
50
|
return (
|
51
|
-
<div className={`${style} ${id}`} onClick={onClick}>
|
51
|
+
<div className={`${style} ${id} ${className}`} onClick={onClick}>
|
52
52
|
<input id={id} type={type} placeholder={placeholderTxt} value={value} required onChange={change} onKeyDown={onKeyPress} onFocus={focus} onBlur={blur} readOnly={readOnly} step="any" />
|
53
53
|
{readOnly === false && canClear && value && value.length > 0 ? <Icon icon="close" clickable size="small" action={clear} /> : null}
|
54
54
|
<span className="bar"></span>
|
package/src/incubator/planner.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import React, { useEffect, useState } from 'react'
|
2
2
|
import "./planner.css"
|
3
3
|
|
4
|
-
export const Planner2 = ({ from, to, lanes = [], events = [], cellWidth = 10, rowHeaderWidth = 10, EventRenderer, onSelectCell, hideEmptyRows=false}) => {
|
4
|
+
export const Planner2 = ({ from, to, lanes = [], events = [], cellWidth = 10, rowHeaderWidth = 10, rowHeaderTitle, EventRenderer, onSelectCell, hideEmptyRows=false}) => {
|
5
5
|
|
6
6
|
const [days, setDays] = useState([]);
|
7
7
|
const lastDay = new Date(to);
|
@@ -62,6 +62,7 @@ export const Planner2 = ({ from, to, lanes = [], events = [], cellWidth = 10, ro
|
|
62
62
|
|
63
63
|
<div className="months-row" style={{ display: 'flex', width: `${totalDaysWidth}rem` }}>
|
64
64
|
<div className="row-header" style={{ width: `${rowHeaderWidth}rem` }} >
|
65
|
+
{rowHeaderTitle}
|
65
66
|
</div>
|
66
67
|
{uniqueMonths.map((month, index) => (
|
67
68
|
<div
|