@uswitch/spark.list
Advanced tools
Comparing version 0.1.26-alpha.1 to 0.2.0
@@ -15,8 +15,7 @@ import _extends from "@babel/runtime/helpers/extends"; | ||
}); | ||
var List = /*#__PURE__*/React.forwardRef((_ref, ref) => { | ||
var { | ||
as: As = 'ul', | ||
withDivider, | ||
children | ||
} = _ref, | ||
var List = /*#__PURE__*/React.forwardRef(function (_ref, ref) { | ||
var _ref$as = _ref.as, | ||
As = _ref$as === void 0 ? 'ul' : _ref$as, | ||
withDivider = _ref.withDivider, | ||
children = _ref.children, | ||
props = _objectWithoutProperties(_ref, ["as", "withDivider", "children"]); | ||
@@ -23,0 +22,0 @@ |
@@ -30,16 +30,17 @@ import _extends from "@babel/runtime/helpers/extends"; | ||
var withColor = color => ({ | ||
svg: { | ||
color | ||
} | ||
}); | ||
var withColor = function withColor(color) { | ||
return { | ||
svg: { | ||
color: color | ||
} | ||
}; | ||
}; | ||
export var ListItem = /*#__PURE__*/React.forwardRef((_ref, ref) => { | ||
var { | ||
as: As = 'li', | ||
icon, | ||
title, | ||
iconColor, | ||
children | ||
} = _ref, | ||
export var ListItem = /*#__PURE__*/React.forwardRef(function (_ref, ref) { | ||
var _ref$as = _ref.as, | ||
As = _ref$as === void 0 ? 'li' : _ref$as, | ||
icon = _ref.icon, | ||
title = _ref.title, | ||
iconColor = _ref.iconColor, | ||
children = _ref.children, | ||
props = _objectWithoutProperties(_ref, ["as", "icon", "title", "iconColor", "children"]); | ||
@@ -46,0 +47,0 @@ |
{ | ||
"name": "@uswitch/spark.list", | ||
"version": "0.1.26-alpha.1", | ||
"version": "0.2.0", | ||
"description": "", | ||
@@ -11,6 +11,2 @@ "repository": "https://github.com/uswitch/spark", | ||
"default": "./lib/esm/index.js" | ||
}, | ||
"./": { | ||
"require": "./lib/cjs/", | ||
"default": "./lib/esm/" | ||
} | ||
@@ -23,4 +19,4 @@ }, | ||
"@uswitch/spark-icons": "*", | ||
"@uswitch/spark.type": "^0.1.26-alpha.0", | ||
"@uswitch/spark.utils": "^0.1.26-alpha.1" | ||
"@uswitch/spark.type": "^0.2.0", | ||
"@uswitch/spark.utils": "^0.2.0" | ||
}, | ||
@@ -30,3 +26,3 @@ "peerDependencies": { | ||
"react-dom": ">=16", | ||
"theme-ui": "^0.9.1" | ||
"theme-ui": "^0.6.1" | ||
}, | ||
@@ -36,3 +32,3 @@ "publishConfig": { | ||
}, | ||
"gitHead": "1ed771adb3e5e77a982a02d2ef5cde964572c01c" | ||
"gitHead": "c3ff97854be9ac29e40b4a6d987fc469f4dc12a6" | ||
} |
11729
+ Added@theme-ui/color-modes@0.6.2(transitive)
+ Added@theme-ui/components@0.6.2(transitive)
+ Added@theme-ui/core@0.6.2(transitive)
+ Added@theme-ui/css@0.6.00.6.2(transitive)
+ Added@theme-ui/mdx@0.6.2(transitive)
+ Added@theme-ui/parse-props@0.6.2(transitive)
+ Added@theme-ui/theme-provider@0.6.2(transitive)
+ Added@uswitch/spark.stack@0.2.9(transitive)
+ Added@uswitch/spark.themes@0.2.9(transitive)
+ Added@uswitch/spark.type@0.2.9(transitive)
+ Added@uswitch/spark.utils@0.2.9(transitive)
+ Addedtheme-ui@0.6.2(transitive)
- Removed@uswitch/spark.stack@0.1.26-alpha.1(transitive)
- Removed@uswitch/spark.themes@0.1.26-alpha.1(transitive)
- Removed@uswitch/spark.type@0.1.26-alpha.0(transitive)
- Removed@uswitch/spark.utils@0.1.26-alpha.1(transitive)
Updated@uswitch/spark.type@^0.2.0
Updated@uswitch/spark.utils@^0.2.0