ywana-core8 0.0.474 → 0.0.475

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.474",
3
+ "version": "0.0.475",
4
4
  "description": "ywana-core8",
5
5
  "homepage": "https://ywana.github.io/workspace",
6
6
  "author": "Ernesto Roldan Garcia",
@@ -152,7 +152,7 @@ export const TabbedTablePage = (props) => {
152
152
  function renderTabs() {
153
153
  const selected = tab ? tab.value : null
154
154
  return (
155
- <Tabs selected={selected} onChange={changeTab}>
155
+ <Tabs selected={selected} onChange={changeTab} fillRight={true} fillLeft={false}>
156
156
  {tabs.map(tab => <Tab id={tab.value} label={tab.label} />)}
157
157
  </Tabs>
158
158
  )
package/src/html/tab.js CHANGED
@@ -7,7 +7,7 @@ import './tab.css'
7
7
  */
8
8
  export const Tabs = (props) => {
9
9
 
10
- const { children, selected, onChange } = props
10
+ const { children, selected, onChange, fillLeft=false, fillRight=true } = props
11
11
 
12
12
  const tabs = React.Children.map(children, (child, index) => {
13
13
 
@@ -23,8 +23,9 @@ export const Tabs = (props) => {
23
23
 
24
24
  return (
25
25
  <div className="tabs">
26
+ { fillLeft ? <div className="tab-filler" /> : null }
26
27
  {tabs}
27
- <div className="tab-filler" />
28
+ { fillRight ? <div className="tab-filler" /> : null }
28
29
  </div>
29
30
  )
30
31
  }