@wavv/ui 2.4.4-alpha.7 → 2.4.4-alpha.8
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/build/components/Button/Button.js +2 -2
- package/build/components/Button/DropdownCaretIcon.d.ts +3 -0
- package/build/components/Button/DropdownCaretIcon.js +20 -0
- package/package.json +1 -1
- package/build/components/Button/dropdown-caret.js +0 -2
- package/build/static/svg/dropdown-caret.svg +0 -3
|
@@ -8,7 +8,7 @@ import DropdownMenu from "../DropdownMenu.js";
|
|
|
8
8
|
import { marginProps } from "../helpers/styledProps.js";
|
|
9
9
|
import Icon from "../Icon/index.js";
|
|
10
10
|
import ButtonLoader from "./ButtonLoader.js";
|
|
11
|
-
import
|
|
11
|
+
import DropdownCaretIcon from "./DropdownCaretIcon.js";
|
|
12
12
|
import Group from "./Group.js";
|
|
13
13
|
const Button_Button = ({ content, children, dropdown, options, ref, ...rest })=>{
|
|
14
14
|
const text = content || children;
|
|
@@ -131,7 +131,7 @@ const DropdownButton = ({ children, options, dropdown = true, onClick, onPress,
|
|
|
131
131
|
/*#__PURE__*/ jsx(CaretIconWrapper, {
|
|
132
132
|
isOpen: optionsOpen,
|
|
133
133
|
children: /*#__PURE__*/ jsx(Icon, {
|
|
134
|
-
svg: /*#__PURE__*/ jsx(
|
|
134
|
+
svg: /*#__PURE__*/ jsx(DropdownCaretIcon, {}),
|
|
135
135
|
size: caretSize
|
|
136
136
|
})
|
|
137
137
|
})
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
function DropdownCaretIcon(props) {
|
|
3
|
+
return /*#__PURE__*/ jsx("svg", {
|
|
4
|
+
width: "6",
|
|
5
|
+
height: "4",
|
|
6
|
+
viewBox: "0 0 6 4",
|
|
7
|
+
fill: "none",
|
|
8
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
9
|
+
...props,
|
|
10
|
+
children: /*#__PURE__*/ jsx("path", {
|
|
11
|
+
d: "M0.75 0.75L3 3L5.25 0.75",
|
|
12
|
+
stroke: "currentColor",
|
|
13
|
+
strokeWidth: "1.5",
|
|
14
|
+
strokeLinecap: "round",
|
|
15
|
+
strokeLinejoin: "round"
|
|
16
|
+
})
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
const Button_DropdownCaretIcon = DropdownCaretIcon;
|
|
20
|
+
export { Button_DropdownCaretIcon as default };
|
package/package.json
CHANGED