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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ywana-core8",
3
- "version": "0.0.963",
3
+ "version": "0.0.965",
4
4
  "description": "ywana-core8",
5
5
  "homepage": "https://ywana.github.io/workspace",
6
6
  "author": "Ernesto Roldan Garcia",
@@ -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>
@@ -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