@buoy-gg/storage 2.1.1 → 2.1.2

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.
@@ -577,16 +577,10 @@ function StorageModalWithTabs({
577
577
  size: 14,
578
578
  color: ignoredPatterns.size > 0 ? _sharedUi.macOSColors.semantic.debug : _sharedUi.macOSColors.text.secondary
579
579
  })
580
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
581
- onPress: handleToggleListening,
582
- style: [styles.iconButton, isListening && styles.activeButton],
583
- children: isListening ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_sharedUi.Pause, {
584
- size: 14,
585
- color: _sharedUi.macOSColors.semantic.success
586
- }) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_sharedUi.Play, {
587
- size: 14,
588
- color: _sharedUi.macOSColors.semantic.success
589
- })
580
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_sharedUi.PowerToggleButton, {
581
+ isEnabled: isListening,
582
+ onToggle: handleToggleListening,
583
+ accessibilityLabel: "Toggle storage event monitoring"
590
584
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
591
585
  onPress: handleClearEvents,
592
586
  style: styles.iconButton,
@@ -623,9 +617,6 @@ const styles = _reactNative.StyleSheet.create({
623
617
  alignItems: "center",
624
618
  justifyContent: "center"
625
619
  },
626
- activeButton: {
627
- backgroundColor: _sharedUi.macOSColors.semantic.successBackground
628
- },
629
620
  activeFilterButton: {
630
621
  backgroundColor: _sharedUi.macOSColors.semantic.infoBackground
631
622
  },
@@ -3,7 +3,7 @@
3
3
  import { useState, useCallback, useEffect, useRef, useMemo } from "react";
4
4
  import { Text, View, TouchableOpacity, StyleSheet, FlatList, Alert } from "react-native";
5
5
  import AsyncStorage from "@react-native-async-storage/async-storage";
6
- import { JsModal, ModalHeader, TabSelector, parseValue, devToolsStorageKeys, macOSColors, Database, Pause, Play, Trash2, Filter, Search, SearchBar } from "@buoy-gg/shared-ui";
6
+ import { JsModal, ModalHeader, TabSelector, parseValue, devToolsStorageKeys, macOSColors, Database, Trash2, Filter, Search, SearchBar, PowerToggleButton } from "@buoy-gg/shared-ui";
7
7
  import { StorageBrowserMode } from "./StorageBrowserMode";
8
8
  import { clearAllAppStorage, clearAllStorageIncludingDevTools } from "../utils/clearAllStorage";
9
9
  import { ProFeatureBanner } from "@buoy-gg/shared-ui";
@@ -573,16 +573,10 @@ export function StorageModalWithTabs({
573
573
  size: 14,
574
574
  color: ignoredPatterns.size > 0 ? macOSColors.semantic.debug : macOSColors.text.secondary
575
575
  })
576
- }), /*#__PURE__*/_jsx(TouchableOpacity, {
577
- onPress: handleToggleListening,
578
- style: [styles.iconButton, isListening && styles.activeButton],
579
- children: isListening ? /*#__PURE__*/_jsx(Pause, {
580
- size: 14,
581
- color: macOSColors.semantic.success
582
- }) : /*#__PURE__*/_jsx(Play, {
583
- size: 14,
584
- color: macOSColors.semantic.success
585
- })
576
+ }), /*#__PURE__*/_jsx(PowerToggleButton, {
577
+ isEnabled: isListening,
578
+ onToggle: handleToggleListening,
579
+ accessibilityLabel: "Toggle storage event monitoring"
586
580
  }), /*#__PURE__*/_jsx(TouchableOpacity, {
587
581
  onPress: handleClearEvents,
588
582
  style: styles.iconButton,
@@ -619,9 +613,6 @@ const styles = StyleSheet.create({
619
613
  alignItems: "center",
620
614
  justifyContent: "center"
621
615
  },
622
- activeButton: {
623
- backgroundColor: macOSColors.semantic.successBackground
624
- },
625
616
  activeFilterButton: {
626
617
  backgroundColor: macOSColors.semantic.infoBackground
627
618
  },
@@ -1 +1 @@
1
- {"version":3,"file":"StorageModalWithTabs.d.ts","sourceRoot":"","sources":["../../../../src/storage/components/StorageModalWithTabs.tsx"],"names":[],"mappings":"AA0BA,OAAO,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AA0B9C,eAAO,MAAM,qBAAqB,KAAK,CAAC;AAExC,UAAU,yBAAyB;IACjC,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,UAAU,CAAC,EAAE,CAAC,UAAU,EAAE,GAAG,KAAK,IAAI,CAAC;IACvC,2BAA2B,CAAC,EAAE,OAAO,CAAC;IACtC,mBAAmB,CAAC,EAAE,kBAAkB,EAAE,CAAC;CAC5C;AAqBD,wBAAgB,oBAAoB,CAAC,EACnC,OAAO,EACP,OAAO,EACP,MAAM,EACN,UAAU,EACV,2BAAmC,EACnC,mBAAwB,GACzB,EAAE,yBAAyB,sCA6sB3B"}
1
+ {"version":3,"file":"StorageModalWithTabs.d.ts","sourceRoot":"","sources":["../../../../src/storage/components/StorageModalWithTabs.tsx"],"names":[],"mappings":"AAyBA,OAAO,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AA0B9C,eAAO,MAAM,qBAAqB,KAAK,CAAC;AAExC,UAAU,yBAAyB;IACjC,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,UAAU,CAAC,EAAE,CAAC,UAAU,EAAE,GAAG,KAAK,IAAI,CAAC;IACvC,2BAA2B,CAAC,EAAE,OAAO,CAAC;IACtC,mBAAmB,CAAC,EAAE,kBAAkB,EAAE,CAAC;CAC5C;AAqBD,wBAAgB,oBAAoB,CAAC,EACnC,OAAO,EACP,OAAO,EACP,MAAM,EACN,UAAU,EACV,2BAAmC,EACnC,mBAAwB,GACzB,EAAE,yBAAyB,sCAqsB3B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@buoy-gg/storage",
3
- "version": "2.1.1",
3
+ "version": "2.1.2",
4
4
  "description": "storage package",
5
5
  "main": "lib/commonjs/index.js",
6
6
  "module": "lib/module/index.js",
@@ -26,8 +26,8 @@
26
26
  ],
27
27
  "sideEffects": false,
28
28
  "dependencies": {
29
- "@buoy-gg/floating-tools-core": "2.1.1",
30
- "@buoy-gg/shared-ui": "2.1.1"
29
+ "@buoy-gg/floating-tools-core": "2.1.2",
30
+ "@buoy-gg/shared-ui": "2.1.2"
31
31
  },
32
32
  "peerDependencies": {
33
33
  "@buoy-gg/license": "*",
@@ -40,7 +40,7 @@
40
40
  "@types/react": "^19.1.0",
41
41
  "@types/react-native": "^0.73.0",
42
42
  "typescript": "~5.8.3",
43
- "@buoy-gg/license": "2.1.1"
43
+ "@buoy-gg/license": "2.1.2"
44
44
  },
45
45
  "react-native-builder-bob": {
46
46
  "source": "src",