@utilitywarehouse/hearth-react-native 0.15.2 → 0.15.3

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.
@@ -1,4 +1,4 @@
1
1
 
2
- > @utilitywarehouse/hearth-react-native@0.15.2 build /home/runner/work/hearth/hearth/packages/react-native
2
+ > @utilitywarehouse/hearth-react-native@0.15.3 build /home/runner/work/hearth/hearth/packages/react-native
3
3
  > tsc
4
4
 
@@ -1,5 +1,5 @@
1
1
 
2
- > @utilitywarehouse/hearth-react-native@0.15.2 lint /home/runner/work/hearth/hearth/packages/react-native
2
+ > @utilitywarehouse/hearth-react-native@0.15.3 lint /home/runner/work/hearth/hearth/packages/react-native
3
3
  > TIMING=1 eslint --max-warnings 0
4
4
 
5
5
  Rule | Time (ms) | Relative
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @utilitywarehouse/hearth-react-native
2
2
 
3
+ ## 0.15.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [#801](https://github.com/utilitywarehouse/hearth/pull/801) [`6d11339`](https://github.com/utilitywarehouse/hearth/commit/6d1133997b28efa104c282522a5708f1d4d8614c) Thanks [@jordmccord](https://github.com/jordmccord)! - 🐛 [FIX]: `Modal` without handle heading padding issue
8
+
9
+ - [#796](https://github.com/utilitywarehouse/hearth/pull/796) [`f0ccadb`](https://github.com/utilitywarehouse/hearth/commit/f0ccadbb48fb7a7a70520d7521746a63421e01cc) Thanks [@jordmccord](https://github.com/jordmccord)! - 🐛 [FIX]: `CheckboxTile` text wrapping issue
10
+
3
11
  ## 0.15.2
4
12
 
5
13
  ### Patch Changes
@@ -14,6 +14,8 @@ const BottomSheetScrollView = ({ children, style, contentContainerStyle, isModal
14
14
  const styles = StyleSheet.create((theme, rt) => ({
15
15
  container: {
16
16
  backgroundColor: theme.color.surface.neutral.strong,
17
+ borderTopLeftRadius: theme.components.bottomSheet.borderTopLeftRadius,
18
+ borderTopRightRadius: theme.components.bottomSheet.borderTopRightRadius,
17
19
  },
18
20
  contentContainer: {
19
21
  paddingHorizontal: theme.components.bottomSheet.padding,
@@ -36,6 +36,9 @@ const styles = StyleSheet.create(theme => ({
36
36
  column: {
37
37
  flex: 1,
38
38
  },
39
+ default: {
40
+ flex: 1,
41
+ },
39
42
  },
40
43
  },
41
44
  },
@@ -104,6 +104,7 @@ const Modal = ({ ref, children, heading, description, showCloseButton = true, pr
104
104
  bothButtons: !!(onPressPrimaryButton && onPressSecondaryButton),
105
105
  noButtons,
106
106
  stickyFooter,
107
+ showHandle: props.showHandle,
107
108
  });
108
109
  const footer = (_jsxs(View, { style: styles.footer, children: [onPressPrimaryButton && primaryButtonText ? (_jsx(Button, { onPress: handlePrimaryButtonPress, text: primaryButtonText, ...primaryButtonProps, variant: primaryButtonProps?.variant ?? 'solid', colorScheme: primaryButtonProps?.colorScheme ?? 'highlight' })) : null, onPressSecondaryButton && secondaryButtonText ? (_jsx(Button, { onPress: handleSecondaryButtonPress, text: secondaryButtonText, ...secondaryButtonProps, variant: secondaryButtonProps?.variant ?? 'outline', colorScheme: secondaryButtonProps?.colorScheme ?? 'functional' })) : null] }));
109
110
  const content = (_jsx(_Fragment, { children: loading ? (_jsxs(View, { style: styles.loadingContainer, accessible: Platform.OS === 'android' ? true : undefined, accessibilityLabel: Platform.OS === 'android' ? 'Loading' : undefined, screenReaderFocusable: true, ref: viewRef, children: [_jsx(Spinner, { size: "lg" }), _jsx(Heading, { size: "lg", textAlign: "center", children: "Loading..." })] })) : (_jsxs(View, { style: styles.container, accessible: Platform.OS === 'android' ? true : undefined, accessibilityLabel: Platform.OS === 'android' ? 'Modal content' : undefined, screenReaderFocusable: true, ref: viewRef, children: [_jsxs(View, { style: styles.header, children: [_jsxs(View, { style: styles.headerTextContent, children: [heading && !image ? (_jsx(Heading, { size: "lg", accessible: true, children: heading })) : null, description && !image ? _jsx(BodyText, { accessible: true, children: description }) : null] }), showCloseButton ? (_jsx(UnstyledIconButton, { icon: CloseMediumIcon, onPress: handleCloseButtonPress, accessibilityLabel: "Close modal", ...closeButtonProps })) : null] }), image ? (_jsxs(View, { style: styles.imageContainer, children: [image, _jsxs(View, { style: styles.textContent, children: [heading ? (_jsx(Heading, { size: "lg", textAlign: "center", accessible: true, children: heading })) : null, description ? (_jsx(BodyText, { textAlign: "center", accessible: true, children: description })) : null] })] })) : null, children, !stickyFooter && !noButtons ? footer : null] })) }));
@@ -159,6 +160,14 @@ const styles = StyleSheet.create((theme, rt) => ({
159
160
  header: {
160
161
  flexDirection: 'row',
161
162
  gap: theme.components.modal.gap,
163
+ variants: {
164
+ showHandle: {
165
+ true: {},
166
+ false: {
167
+ marginTop: -6,
168
+ },
169
+ },
170
+ },
162
171
  },
163
172
  headerTextContent: {
164
173
  flex: 1,
@@ -17,7 +17,7 @@ import {
17
17
  import SpotBillingDark from '@utilitywarehouse/hearth-svg-assets/lib/spot-billing-dark.svg';
18
18
  // @ts-ignore
19
19
  import SpotBillingLight from '@utilitywarehouse/hearth-svg-assets/lib/spot-billing-light.svg';
20
- import { Pressable, ScrollView, View, ViewProps } from 'react-native';
20
+ import { Image, Pressable, ScrollView, View, ViewProps } from 'react-native';
21
21
  import { StyleSheet } from 'react-native-unistyles';
22
22
  import {
23
23
  Accordion,
@@ -488,11 +488,13 @@ const AllComponents: React.FC = () => {
488
488
  heading="Featured Content"
489
489
  headingColor="energy"
490
490
  imageContainerHeight={40}
491
- image={{
492
- source: {
493
- uri: 'https://images.unsplash.com/photo-1506126613408-eca07ce68773?w=800&q=80',
494
- },
495
- }}
491
+ image={
492
+ <Image
493
+ source={{
494
+ uri: 'https://images.unsplash.com/photo-1506126613408-eca07ce68773?w=800&q=80',
495
+ }}
496
+ />
497
+ }
496
498
  description="Banner description goes here."
497
499
  />
498
500
  </Center>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@utilitywarehouse/hearth-react-native",
3
- "version": "0.15.2",
3
+ "version": "0.15.3",
4
4
  "description": "Utility Warehouse React Native UI library",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
@@ -55,9 +55,9 @@
55
55
  "vite": "^7.1.3",
56
56
  "vite-plugin-svgr": "^4.5.0",
57
57
  "vitest": "^3.2.4",
58
- "@utilitywarehouse/hearth-fonts": "^0.0.4",
59
58
  "@utilitywarehouse/hearth-react-icons": "^0.7.4",
60
59
  "@utilitywarehouse/hearth-react-native-icons": "^0.7.4",
60
+ "@utilitywarehouse/hearth-fonts": "^0.0.4",
61
61
  "@utilitywarehouse/hearth-svg-assets": "^0.3.0",
62
62
  "@utilitywarehouse/hearth-tokens": "^0.2.2"
63
63
  },
@@ -34,6 +34,8 @@ const BottomSheetScrollView = ({
34
34
  const styles = StyleSheet.create((theme, rt) => ({
35
35
  container: {
36
36
  backgroundColor: theme.color.surface.neutral.strong,
37
+ borderTopLeftRadius: theme.components.bottomSheet.borderTopLeftRadius,
38
+ borderTopRightRadius: theme.components.bottomSheet.borderTopRightRadius,
37
39
  },
38
40
  contentContainer: {
39
41
  paddingHorizontal: theme.components.bottomSheet.padding,
@@ -37,6 +37,9 @@ const styles = StyleSheet.create(theme => ({
37
37
  column: {
38
38
  flex: 1,
39
39
  },
40
+ default: {
41
+ flex: 1,
42
+ },
40
43
  },
41
44
  },
42
45
  },
@@ -168,6 +168,7 @@ const Modal = ({
168
168
  bothButtons: !!(onPressPrimaryButton && onPressSecondaryButton),
169
169
  noButtons,
170
170
  stickyFooter,
171
+ showHandle: props.showHandle,
171
172
  });
172
173
 
173
174
  const footer = (
@@ -349,6 +350,14 @@ const styles = StyleSheet.create((theme, rt) => ({
349
350
  header: {
350
351
  flexDirection: 'row',
351
352
  gap: theme.components.modal.gap,
353
+ variants: {
354
+ showHandle: {
355
+ true: {},
356
+ false: {
357
+ marginTop: -6,
358
+ },
359
+ },
360
+ },
352
361
  },
353
362
  headerTextContent: {
354
363
  flex: 1,