@ecohouse/ui 0.1.47 → 0.1.48

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ecohouse/ui",
3
- "version": "0.1.47",
3
+ "version": "0.1.48",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "description": "Cross-platform presentation-only UI components for EcoHouse (React Native + React Native Web)",
@@ -0,0 +1,20 @@
1
+ import Svg, { Path } from "react-native-svg";
2
+ import { colors } from "../../theme";
3
+ import type { IconProps } from "../types";
4
+ import { UNLOCK_PATH } from "./unlockPath";
5
+
6
+ export { UNLOCK_PATH } from "./unlockPath";
7
+
8
+ export function UnlockIcon({ size = 16, color = colors.grey0, strokeWidth = 1.5 }: IconProps) {
9
+ return (
10
+ <Svg width={size} height={size} viewBox="0 0 16 16" fill="none">
11
+ <Path
12
+ d={UNLOCK_PATH}
13
+ stroke={color}
14
+ strokeWidth={strokeWidth}
15
+ strokeLinecap="round"
16
+ strokeLinejoin="round"
17
+ />
18
+ </Svg>
19
+ );
20
+ }
@@ -0,0 +1,26 @@
1
+ import { UNLOCK_PATH } from "./unlockPath";
2
+ import { colors } from "../../theme";
3
+ import type { IconProps } from "../types";
4
+
5
+ export function UnlockIcon({ size = 16, color = colors.grey0, strokeWidth = 1.5 }: IconProps) {
6
+ return (
7
+ <svg
8
+ width={size}
9
+ height={size}
10
+ viewBox="0 0 16 16"
11
+ fill="none"
12
+ xmlns="http://www.w3.org/2000/svg"
13
+ aria-hidden
14
+ >
15
+ <path
16
+ d={UNLOCK_PATH}
17
+ stroke={color}
18
+ strokeWidth={strokeWidth}
19
+ strokeLinecap="round"
20
+ strokeLinejoin="round"
21
+ />
22
+ </svg>
23
+ );
24
+ }
25
+
26
+ export { UNLOCK_PATH } from "./unlockPath";
@@ -0,0 +1 @@
1
+ export { UnlockIcon, UNLOCK_PATH } from "./UnlockIcon";
@@ -0,0 +1,2 @@
1
+ export const UNLOCK_PATH =
2
+ "M5.33333 7.33333V5.33333C5.33333 3.86057 6.52724 2.66667 8 2.66667C9.47276 2.66667 10.6667 3.86057 10.6667 5.33333M4 7.33333H12C12.7364 7.33333 13.3333 7.93029 13.3333 8.66667V12.6667C13.3333 13.403 12.7364 14 12 14H4C3.26362 14 2.66667 13.403 2.66667 12.6667V8.66667C2.66667 7.93029 3.26362 7.33333 4 7.33333Z";
@@ -104,6 +104,7 @@ export { StarOutlineIcon } from "./StarOutline";
104
104
  export { SunIcon } from "./Sun";
105
105
  export { TableViewIcon } from "./TableView";
106
106
  export { TotalGuestsIcon } from "./TotalGuests";
107
+ export { UnlockIcon } from "./Unlock";
107
108
  export { UserIcon } from "./User";
108
109
  export { UsersAltIcon } from "./UsersAlt";
109
110
  export { VideoIcon } from "./Video";
@@ -91,6 +91,7 @@ import { StarOutlineIcon } from "./StarOutline";
91
91
  import { SunIcon } from "./Sun";
92
92
  import { TableViewIcon } from "./TableView";
93
93
  import { TotalGuestsIcon } from "./TotalGuests";
94
+ import { UnlockIcon } from "./Unlock";
94
95
  import { UserIcon } from "./User";
95
96
  import { UsersAltIcon } from "./UsersAlt";
96
97
  import { VideoIcon } from "./Video";
@@ -186,6 +187,7 @@ export const icons = {
186
187
  totalGuests: TotalGuestsIcon,
187
188
  tooltipArrow: TooltipArrowIcon,
188
189
  trash: TrashIcon,
190
+ unlock: UnlockIcon,
189
191
  user: UserIcon,
190
192
  usersAlt: UsersAltIcon,
191
193
  video: VideoIcon,
@@ -284,6 +286,7 @@ export const iconGroups = {
284
286
  "qrCode",
285
287
  "quietHours",
286
288
  "trash",
289
+ "unlock",
287
290
  "user",
288
291
  "usersAlt",
289
292
  "video",
package/src/index.ts CHANGED
@@ -216,6 +216,7 @@ export {
216
216
  StarOutlineIcon,
217
217
  SunIcon,
218
218
  TableViewIcon,
219
+ UnlockIcon,
219
220
  UserIcon,
220
221
  UsersAltIcon,
221
222
  TotalGuestsIcon,