@artsy/palette-mobile 13.0.18 → 13.0.20
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/CHANGELOG.md +24 -0
- package/dist/elements/Checkbox/Checkbox.d.ts +2 -1
- package/dist/elements/Checkbox/Checkbox.js +2 -2
- package/dist/svgs/ImageSetIcon.d.ts +3 -0
- package/dist/svgs/ImageSetIcon.js +11 -0
- package/dist/svgs/index.d.ts +1 -0
- package/dist/svgs/index.js +1 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,27 @@
|
|
|
1
|
+
# v13.0.20 (Tue Nov 14 2023)
|
|
2
|
+
|
|
3
|
+
#### 🐛 Bug Fix
|
|
4
|
+
|
|
5
|
+
- feat(checkbox): expose custom accessibilityProps to the View wrapping the icon [#164](https://github.com/artsy/palette-mobile/pull/164) ([@araujobarret](https://github.com/araujobarret))
|
|
6
|
+
|
|
7
|
+
#### Authors: 1
|
|
8
|
+
|
|
9
|
+
- Carlos ([@araujobarret](https://github.com/araujobarret))
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# v13.0.19 (Fri Oct 13 2023)
|
|
14
|
+
|
|
15
|
+
#### 🐛 Bug Fix
|
|
16
|
+
|
|
17
|
+
- feat(DIA-134): add ImageSetIcon [#161](https://github.com/artsy/palette-mobile/pull/161) ([@araujobarret](https://github.com/araujobarret))
|
|
18
|
+
|
|
19
|
+
#### Authors: 1
|
|
20
|
+
|
|
21
|
+
- Carlos Alberto de Araujo Barreto ([@araujobarret](https://github.com/araujobarret))
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
1
25
|
# v13.0.18 (Wed Oct 11 2023)
|
|
2
26
|
|
|
3
27
|
#### 🐛 Bug Fix
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { TouchableWithoutFeedbackProps } from "react-native";
|
|
2
|
+
import { AccessibilityProps, TouchableWithoutFeedbackProps } from "react-native";
|
|
3
3
|
import { FlexProps } from "../Flex";
|
|
4
4
|
export interface CheckboxProps extends TouchableWithoutFeedbackProps, FlexProps {
|
|
5
5
|
checked?: boolean;
|
|
@@ -8,6 +8,7 @@ export interface CheckboxProps extends TouchableWithoutFeedbackProps, FlexProps
|
|
|
8
8
|
text?: React.ReactElement | string;
|
|
9
9
|
subtitle?: React.ReactElement | string;
|
|
10
10
|
children?: React.ReactElement | string;
|
|
11
|
+
checkboxAccessibilityProps?: AccessibilityProps;
|
|
11
12
|
}
|
|
12
13
|
export declare const Checkbox: React.FC<CheckboxProps>;
|
|
13
14
|
interface CheckMarkProps {
|
|
@@ -16,7 +16,7 @@ const Flex_1 = require("../Flex");
|
|
|
16
16
|
const Text_1 = require("../Text");
|
|
17
17
|
const CHECKBOX_SIZE = 20;
|
|
18
18
|
const DURATION = 250;
|
|
19
|
-
const Checkbox = ({ checked: checkedProp, disabled, error, onPress, text, subtitle, children, ...restProps }) => {
|
|
19
|
+
const Checkbox = ({ checked: checkedProp, disabled, error, onPress, text, subtitle, children, checkboxAccessibilityProps, ...restProps }) => {
|
|
20
20
|
const { color, space } = (0, useTheme_1.useTheme)();
|
|
21
21
|
const fontScale = react_native_1.PixelRatio.getFontScale();
|
|
22
22
|
const checkboxSize = CHECKBOX_SIZE * fontScale;
|
|
@@ -55,7 +55,7 @@ const Checkbox = ({ checked: checkedProp, disabled, error, onPress, text, subtit
|
|
|
55
55
|
}
|
|
56
56
|
setChecked(!checked);
|
|
57
57
|
onPress?.(event);
|
|
58
|
-
}, children: (0, jsx_runtime_1.jsxs)(Flex_1.Flex, { flex: 1, ...restProps, children: [(0, jsx_runtime_1.jsxs)(Flex_1.Flex, { flexDirection: "row", children: [(0, jsx_runtime_1.jsx)(Flex_1.Flex, { mt: "2px", children: (0, jsx_runtime_1.jsx)(CssTransition_1.CssTransition, { style: [
|
|
58
|
+
}, children: (0, jsx_runtime_1.jsxs)(Flex_1.Flex, { flex: 1, ...restProps, children: [(0, jsx_runtime_1.jsxs)(Flex_1.Flex, { flexDirection: "row", children: [(0, jsx_runtime_1.jsx)(Flex_1.Flex, { mt: "2px", ...checkboxAccessibilityProps, children: (0, jsx_runtime_1.jsx)(CssTransition_1.CssTransition, { style: [
|
|
59
59
|
styles(fontScale).container,
|
|
60
60
|
text || subtitle || children ? { marginRight: space(1) * fontScale } : {},
|
|
61
61
|
checkboxStyle,
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ImageSetIcon = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const Icon_1 = require("./Icon");
|
|
6
|
+
const hooks_1 = require("../utils/hooks");
|
|
7
|
+
const ImageSetIcon = ({ fill, ...restProps }) => {
|
|
8
|
+
const color = (0, hooks_1.useColor)();
|
|
9
|
+
return ((0, jsx_runtime_1.jsxs)(Icon_1.Icon, { ...restProps, viewBox: "0 0 18 18", children: [(0, jsx_runtime_1.jsx)(Icon_1.Path, { fillRule: "evenodd", clipRule: "evenodd", d: "M12 6H2V16H12V6ZM1 5V17H13V5H1Z", fill: color(fill) }), (0, jsx_runtime_1.jsx)(Icon_1.Path, { fillRule: "evenodd", clipRule: "evenodd", d: "M14 3H3V4H14L14 15H15V4V3H14Z", fill: color(fill) }), (0, jsx_runtime_1.jsx)(Icon_1.Path, { fillRule: "evenodd", clipRule: "evenodd", d: "M16 1H5V2H16L16 13H17V2V1H16Z", fill: color(fill) })] }));
|
|
10
|
+
};
|
|
11
|
+
exports.ImageSetIcon = ImageSetIcon;
|
package/dist/svgs/index.d.ts
CHANGED
|
@@ -58,6 +58,7 @@ export * from "./HeartFillIcon";
|
|
|
58
58
|
export * from "./HeartIcon";
|
|
59
59
|
export * from "./HomeIcon";
|
|
60
60
|
export * from "./ImageIcon";
|
|
61
|
+
export * from "./ImageSetIcon";
|
|
61
62
|
export * from "./IncreaseIcon";
|
|
62
63
|
export * from "./InfoCircleIcon";
|
|
63
64
|
export * from "./InstagramAppIcon";
|
package/dist/svgs/index.js
CHANGED
|
@@ -74,6 +74,7 @@ __exportStar(require("./HeartFillIcon"), exports);
|
|
|
74
74
|
__exportStar(require("./HeartIcon"), exports);
|
|
75
75
|
__exportStar(require("./HomeIcon"), exports);
|
|
76
76
|
__exportStar(require("./ImageIcon"), exports);
|
|
77
|
+
__exportStar(require("./ImageSetIcon"), exports);
|
|
77
78
|
__exportStar(require("./IncreaseIcon"), exports);
|
|
78
79
|
__exportStar(require("./InfoCircleIcon"), exports);
|
|
79
80
|
__exportStar(require("./InstagramAppIcon"), exports);
|