@tastic/hud 0.30.0 → 0.30.1

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.
@@ -733,11 +733,14 @@ var styles9 = import_react_native12.StyleSheet.create({
733
733
  overflow: "hidden",
734
734
  paddingVertical: 10
735
735
  },
736
- // Same shape as toggleButton, `flex: 1` instead of its own width - two of these side by side in
737
- // toggleRow share the row's own edge alignment instead of each carrying their own.
736
+ // Same shape as toggleButton, half the row instead of its own width - two of these side by side in
737
+ // toggleRow share the row's own edge alignment instead of each carrying their own. Two to a row:
738
+ // three (Sound, Music, Haptics) don't fit across a phone's dialog (Haptics was cut off on a 402pt
739
+ // iPhone), so a third wraps onto its own row and grows to fill it, like the full-width rows above.
738
740
  toggleButtonInRow: {
739
741
  borderRadius: 12,
740
- flex: 1,
742
+ flexBasis: "45%",
743
+ flexGrow: 1,
741
744
  overflow: "hidden",
742
745
  paddingVertical: 10
743
746
  },
@@ -756,6 +759,7 @@ var styles9 = import_react_native12.StyleSheet.create({
756
759
  // No horizontal margin of its own now either - see toggleButton's identical note.
757
760
  toggleRow: {
758
761
  flexDirection: "row",
762
+ flexWrap: "wrap",
759
763
  gap: 4
760
764
  }
761
765
  });
@@ -18,15 +18,7 @@ import {
18
18
  getStaggeredWordDuration,
19
19
  useCompactDialog,
20
20
  useWellColors
21
- } from "../chunk-VDPL2WUK.mjs";
22
- import {
23
- InlineColorPicker,
24
- MONO_FONT,
25
- PopoverBody,
26
- getInlineColorPickerContentSize,
27
- useAutoAlign,
28
- usePopoverHost
29
- } from "../chunk-5ECU3722.mjs";
21
+ } from "../chunk-4666H2UG.mjs";
30
22
  import {
31
23
  COMPACT_DIALOG_HEIGHT,
32
24
  DialogHeader,
@@ -38,6 +30,14 @@ import {
38
30
  overlayStyles,
39
31
  useOverlayCardColors
40
32
  } from "../chunk-CBH7GQKI.mjs";
33
+ import {
34
+ InlineColorPicker,
35
+ MONO_FONT,
36
+ PopoverBody,
37
+ getInlineColorPickerContentSize,
38
+ useAutoAlign,
39
+ usePopoverHost
40
+ } from "../chunk-5ECU3722.mjs";
41
41
  export {
42
42
  AchievementCatalogSection,
43
43
  AchievementRow,
@@ -1,6 +1,3 @@
1
- import {
2
- MONO_FONT
3
- } from "./chunk-5ECU3722.mjs";
4
1
  import {
5
2
  DialogHeader,
6
3
  OverlayBackdrop,
@@ -11,6 +8,9 @@ import {
11
8
  overlayStyles,
12
9
  useOverlayCardColors
13
10
  } from "./chunk-CBH7GQKI.mjs";
11
+ import {
12
+ MONO_FONT
13
+ } from "./chunk-5ECU3722.mjs";
14
14
 
15
15
  // src/wellSurface.ts
16
16
  import { useAutoPaperTheme } from "@rific/auto-paper";
@@ -533,11 +533,14 @@ var styles7 = StyleSheet7.create({
533
533
  overflow: "hidden",
534
534
  paddingVertical: 10
535
535
  },
536
- // Same shape as toggleButton, `flex: 1` instead of its own width - two of these side by side in
537
- // toggleRow share the row's own edge alignment instead of each carrying their own.
536
+ // Same shape as toggleButton, half the row instead of its own width - two of these side by side in
537
+ // toggleRow share the row's own edge alignment instead of each carrying their own. Two to a row:
538
+ // three (Sound, Music, Haptics) don't fit across a phone's dialog (Haptics was cut off on a 402pt
539
+ // iPhone), so a third wraps onto its own row and grows to fill it, like the full-width rows above.
538
540
  toggleButtonInRow: {
539
541
  borderRadius: 12,
540
- flex: 1,
542
+ flexBasis: "45%",
543
+ flexGrow: 1,
541
544
  overflow: "hidden",
542
545
  paddingVertical: 10
543
546
  },
@@ -556,6 +559,7 @@ var styles7 = StyleSheet7.create({
556
559
  // No horizontal margin of its own now either - see toggleButton's identical note.
557
560
  toggleRow: {
558
561
  flexDirection: "row",
562
+ flexWrap: "wrap",
559
563
  gap: 4
560
564
  }
561
565
  });
package/dist/index.js CHANGED
@@ -932,11 +932,14 @@ var styles10 = import_react_native13.StyleSheet.create({
932
932
  overflow: "hidden",
933
933
  paddingVertical: 10
934
934
  },
935
- // Same shape as toggleButton, `flex: 1` instead of its own width - two of these side by side in
936
- // toggleRow share the row's own edge alignment instead of each carrying their own.
935
+ // Same shape as toggleButton, half the row instead of its own width - two of these side by side in
936
+ // toggleRow share the row's own edge alignment instead of each carrying their own. Two to a row:
937
+ // three (Sound, Music, Haptics) don't fit across a phone's dialog (Haptics was cut off on a 402pt
938
+ // iPhone), so a third wraps onto its own row and grows to fill it, like the full-width rows above.
937
939
  toggleButtonInRow: {
938
940
  borderRadius: 12,
939
- flex: 1,
941
+ flexBasis: "45%",
942
+ flexGrow: 1,
940
943
  overflow: "hidden",
941
944
  paddingVertical: 10
942
945
  },
@@ -955,6 +958,7 @@ var styles10 = import_react_native13.StyleSheet.create({
955
958
  // No horizontal margin of its own now either - see toggleButton's identical note.
956
959
  toggleRow: {
957
960
  flexDirection: "row",
961
+ flexWrap: "wrap",
958
962
  gap: 4
959
963
  }
960
964
  });
package/dist/index.mjs CHANGED
@@ -18,7 +18,22 @@ import {
18
18
  getStaggeredWordDuration,
19
19
  useCompactDialog,
20
20
  useWellColors
21
- } from "./chunk-VDPL2WUK.mjs";
21
+ } from "./chunk-4666H2UG.mjs";
22
+ import {
23
+ COMPACT_DIALOG_HEIGHT,
24
+ DialogHeader,
25
+ OverlayBackdrop,
26
+ OverlayCard,
27
+ SecondaryButton,
28
+ isCompactDialogHeight,
29
+ overlayActionStyles,
30
+ overlayStyles,
31
+ useOverlayCardColors
32
+ } from "./chunk-CBH7GQKI.mjs";
33
+ import {
34
+ loadSkiaWeb,
35
+ locateSkiaWebFile
36
+ } from "./chunk-3TCJHMJP.mjs";
22
37
  import {
23
38
  PlayerSetupPanel,
24
39
  ReadyButton,
@@ -36,21 +51,6 @@ import {
36
51
  useAutoAlign,
37
52
  usePopoverHost
38
53
  } from "./chunk-5ECU3722.mjs";
39
- import {
40
- loadSkiaWeb,
41
- locateSkiaWebFile
42
- } from "./chunk-3TCJHMJP.mjs";
43
- import {
44
- COMPACT_DIALOG_HEIGHT,
45
- DialogHeader,
46
- OverlayBackdrop,
47
- OverlayCard,
48
- SecondaryButton,
49
- isCompactDialogHeight,
50
- overlayActionStyles,
51
- overlayStyles,
52
- useOverlayCardColors
53
- } from "./chunk-CBH7GQKI.mjs";
54
54
 
55
55
  // src/AchievementUnlockList.tsx
56
56
  import { getContrastColor, useAutoPaperTheme } from "@rific/auto-paper";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tastic/hud",
3
- "version": "0.30.0",
3
+ "version": "0.30.1",
4
4
  "description": "Visual component kit for local-multiplayer React Native games: inline (non-modal) popovers, dropdowns, color pickers, gauges, ready buttons, and dialogs, built to stay scoped to one player's own zone on a shared screen",
5
5
  "keywords": [
6
6
  "react-native",
@@ -507,11 +507,14 @@ const styles = StyleSheet.create({
507
507
  overflow: 'hidden',
508
508
  paddingVertical: 10
509
509
  },
510
- // Same shape as toggleButton, `flex: 1` instead of its own width - two of these side by side in
511
- // toggleRow share the row's own edge alignment instead of each carrying their own.
510
+ // Same shape as toggleButton, half the row instead of its own width - two of these side by side in
511
+ // toggleRow share the row's own edge alignment instead of each carrying their own. Two to a row:
512
+ // three (Sound, Music, Haptics) don't fit across a phone's dialog (Haptics was cut off on a 402pt
513
+ // iPhone), so a third wraps onto its own row and grows to fill it, like the full-width rows above.
512
514
  toggleButtonInRow: {
513
515
  borderRadius: 12,
514
- flex: 1,
516
+ flexBasis: '45%',
517
+ flexGrow: 1,
515
518
  overflow: 'hidden',
516
519
  paddingVertical: 10
517
520
  },
@@ -530,6 +533,7 @@ const styles = StyleSheet.create({
530
533
  // No horizontal margin of its own now either - see toggleButton's identical note.
531
534
  toggleRow: {
532
535
  flexDirection: 'row',
536
+ flexWrap: 'wrap',
533
537
  gap: 4
534
538
  }
535
539
  })