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/dist/index.cjs +12 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +12 -4
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +12 -4
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/domain/TabbedTablePage.js +1 -1
- package/src/html/tab.js +3 -2
package/package.json
CHANGED
@@ -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
|
}
|