@youversion/design-system-components 0.0.20 → 0.0.21
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 +6 -0
- package/dist/ListItem/ListItem.d.ts +6 -6
- package/dist/ListItem/ListItem.d.ts.map +1 -1
- package/dist/index.es.js +247 -247
- package/dist/index.umd.js +6 -6
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @youversion/design-system-components
|
|
2
2
|
|
|
3
|
+
## 0.0.21
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 23bb542: Refactored `ListItem` component to allow for multiple endIcons and endActions. The prop `endIcons` now takes in an array of icons and the prop `endActions` now take an array of functions that correspond to the `endIcons` array. For example, if you pass `endIcons={[<DeleteIcon />, <DocumentIcon />]}` and `endActions={[function1, function2]}` then the `<DeleteIcon/>` uses `function1` and the `<DocumentIcon />` uses `function2`.
|
|
8
|
+
|
|
3
9
|
## 0.0.20
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
@@ -9,13 +9,13 @@ interface StartIconWithOutActionProps {
|
|
|
9
9
|
startIcon?: React.ReactNode;
|
|
10
10
|
}
|
|
11
11
|
interface EndIconWithActionProps {
|
|
12
|
-
/**
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
/** Actions to take when clicking the endIcons. */
|
|
13
|
+
endActions: Array<() => void>;
|
|
14
|
+
endIcons: Array<React.ReactNode>;
|
|
15
15
|
}
|
|
16
16
|
interface EndIconWithoutActionProps {
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
endActions?: never;
|
|
18
|
+
endIcons?: Array<React.ReactNode>;
|
|
19
19
|
}
|
|
20
20
|
type StartIconAndActionProps = StartIconWithActionProps | StartIconWithOutActionProps;
|
|
21
21
|
type EndIconAndActionProps = EndIconWithActionProps | EndIconWithoutActionProps;
|
|
@@ -25,7 +25,7 @@ interface ListItemPropsBase extends LiHTMLAttributes<HTMLLIElement> {
|
|
|
25
25
|
className?: string;
|
|
26
26
|
/** Display a divider between ListItems. */
|
|
27
27
|
divider?: boolean;
|
|
28
|
-
|
|
28
|
+
endIcons?: Array<React.ReactNode>;
|
|
29
29
|
onClick?: () => void;
|
|
30
30
|
startIcon?: React.ReactNode;
|
|
31
31
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ListItem.d.ts","sourceRoot":"","sources":["../../../src/ListItem/ListItem.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAA2C,gBAAgB,EAAE,MAAM,OAAO,CAAC;AAIzF,UAAU,wBAAwB;IAChC,kDAAkD;IAClD,WAAW,EAAE,MAAM,IAAI,CAAC;IACxB,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAED,UAAU,2BAA2B;IACnC,WAAW,CAAC,EAAE,KAAK,CAAC;IACpB,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC7B;AAED,UAAU,sBAAsB;IAC9B,
|
|
1
|
+
{"version":3,"file":"ListItem.d.ts","sourceRoot":"","sources":["../../../src/ListItem/ListItem.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAA2C,gBAAgB,EAAE,MAAM,OAAO,CAAC;AAIzF,UAAU,wBAAwB;IAChC,kDAAkD;IAClD,WAAW,EAAE,MAAM,IAAI,CAAC;IACxB,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAED,UAAU,2BAA2B;IACnC,WAAW,CAAC,EAAE,KAAK,CAAC;IACpB,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC7B;AAED,UAAU,sBAAsB;IAC9B,kDAAkD;IAClD,UAAU,EAAE,KAAK,CAAC,MAAM,IAAI,CAAC,CAAC;IAC9B,QAAQ,EAAE,KAAK,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;CAClC;AAED,UAAU,yBAAyB;IACjC,UA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