march-ui 0.0.4 → 0.0.5

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/Form/index.jsx CHANGED
@@ -50,7 +50,13 @@ const Form = ({ attrs }) => {
50
50
  }
51
51
  return {
52
52
  view({ attrs, children }) {
53
- const { icon, title, onsubmit: onsubmitNext, ...attributes } = {
53
+ const {
54
+ icon,
55
+ title,
56
+ onsubmit: onsubmitNext,
57
+ submit, beforeSubmit, afterSubmit, onerror, // internal usage only
58
+ ...attributes
59
+ } = {
54
60
  method: 'POST',
55
61
  enctype: 'multipart/form-data',
56
62
  ...attrs
package/Tabs/index.jsx CHANGED
@@ -1,6 +1,7 @@
1
1
  import './index.css'
2
2
  import './colors.css'
3
3
  import classNames from 'classnames'
4
+ import Tab from '../Tab'
4
5
 
5
6
  const Tabs = ({ attrs }) => {
6
7
  let { active } = attrs
@@ -11,7 +12,7 @@ const Tabs = ({ attrs }) => {
11
12
  }
12
13
  return {
13
14
  view({ attrs: { active: activeNext, onchange, ...attributes }, children }) {
14
- const tabs = children.filter(({ tag: { name } }) => name === 'Tab')
15
+ const tabs = children.filter(({ tag }) => tag === Tab)
15
16
  .map((tab, i) => {
16
17
  const { key, attrs: { title } } = tab
17
18
  tab.attrs = { ...tab.attrs, ...attributes }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "march-ui",
3
- "version": "0.0.4",
3
+ "version": "0.0.5",
4
4
  "description": "Lightweight UI-kit for Mithril.js",
5
5
  "type": "module",
6
6
  "main": "index.js",