ywana-core8 0.0.944 → 0.0.946

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.944",
3
+ "version": "0.0.946",
4
4
  "description": "ywana-core8",
5
5
  "homepage": "https://ywana.github.io/workspace",
6
6
  "author": "Ernesto Roldan Garcia",
package/src/html/tab.js CHANGED
@@ -1,6 +1,7 @@
1
1
  import React, { useState } from 'react'
2
2
  import { Fragment } from 'react'
3
- import { Icon, TEXTFORMATS, Text } from '../html'
3
+ import { Icon } from './icon'
4
+ import { Text, TEXTFORMATS } from './text'
4
5
  import './tab.css'
5
6
 
6
7
  /**
package/src/html/table.js CHANGED
@@ -154,7 +154,7 @@ const DataTableFiltersRow = ({ columns }) => {
154
154
 
155
155
  function changeFilter(id, value, onFilter) {
156
156
  setForm({ ...form, [id]: value })
157
- if (onFilter) onFilter(value)
157
+ if (onFilter) onFilter(id, value)
158
158
  }
159
159
 
160
160
  function clear() {
@@ -166,11 +166,10 @@ const DataTableFiltersRow = ({ columns }) => {
166
166
  return (
167
167
  <tr className="filters-row">
168
168
  {columns.map(({ id, filterable, onFilter, options }) => {
169
-
170
- const field = options ?
171
- <DropDown id={id} value={form[id]} options={options} onChange={(id,value) => changeFilter(id,value, onFilter)} outlined />
172
- :
173
- <TextField id={id} value={form[id]} onChange={(id,value) => changeFilter(id,value, onFilter)} outlined />
169
+ const field = options ?
170
+ <DropDown id={id} value={form[id]} options={options} onChange={(id, value) => changeFilter(id, value, onFilter)} outlined />
171
+ :
172
+ <TextField id={id} value={form[id]} onChange={(id, value) => changeFilter(id, value, onFilter)} outlined />
174
173
  return (
175
174
  <td className='filter-cell'>
176
175
  {filterable ? field : null}