ferns-ui 0.46.0 → 0.47.0

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.
@@ -22,13 +22,13 @@ export declare function humanDateAndTime(date: string, { timezone, showTimezone
22
22
  showTimezone?: boolean;
23
23
  }): string;
24
24
  export declare const printDate: (date?: string, { timezone, showTimezone, ignoreTime, defaultValue, }?: {
25
- timezone?: string;
26
- showTimezone?: boolean;
27
- ignoreTime?: boolean;
28
- defaultValue?: string;
25
+ timezone?: string | undefined;
26
+ showTimezone?: boolean | undefined;
27
+ ignoreTime?: boolean | undefined;
28
+ defaultValue?: string | undefined;
29
29
  }) => string;
30
30
  export declare const printOnlyDate: (date?: string, { defaultValue, }?: {
31
- defaultValue?: string;
31
+ defaultValue?: string | undefined;
32
32
  }) => string;
33
33
  export declare function printTime(date?: string, { timezone, showTimezone, defaultValue, }?: {
34
34
  timezone: string;
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
2
  export declare const FernsProvider: ({ children, openAPISpecUrl, }: {
3
3
  children: React.ReactNode;
4
- openAPISpecUrl?: string;
4
+ openAPISpecUrl?: string | undefined;
5
5
  }) => React.ReactElement;
@@ -13,14 +13,6 @@ export const SideDrawer = ({ position = "left", isOpen, renderContent, onClose =
13
13
  const renderDrawerContent = () => {
14
14
  return React.createElement(SafeAreaView, null, renderContent());
15
15
  };
16
- return (React.createElement(Drawer, { drawerPosition: position, drawerStyle: [
17
- DEFAULT_STYLES,
18
- drawerStyles,
19
- {
20
- display: Platform.OS === "web" && !isOpen ? "none" : "flex",
21
- right: position === "right" ? 0 : undefined,
22
- left: position === "left" ? 0 : undefined,
23
- },
24
- ], drawerType: drawerType, open: isOpen, renderDrawerContent: renderDrawerContent, onClose: onClose, onOpen: onOpen }, children));
16
+ return (React.createElement(Drawer, { drawerPosition: position, drawerStyle: [DEFAULT_STYLES, drawerStyles], drawerType: drawerType, open: isOpen, renderDrawerContent: renderDrawerContent, onClose: onClose, onOpen: onOpen }, children));
25
17
  };
26
18
  //# sourceMappingURL=SideDrawer.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SideDrawer.js","sourceRoot":"","sources":["../src/SideDrawer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAC1C,OAAO,EAAC,QAAQ,EAAE,YAAY,EAAuB,MAAM,cAAc,CAAC;AAC1E,OAAO,EAAC,MAAM,EAAC,MAAM,4BAA4B,CAAC;AAGlD,OAAO,EAAC,cAAc,EAAC,MAAM,cAAc,CAAC;AAE5C,MAAM,cAAc,GAAyB;IAC3C,KAAK,EAAE,QAAQ,CAAC,EAAE,KAAK,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK;IAC5C,eAAe,EAAE,WAAW;IAC5B,WAAW,EAAE,CAAC;IACd,WAAW,EAAE,MAAM;IACnB,QAAQ,EAAE,cAAc,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,QAAQ;CAClD,CAAC;AAEF,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,EACzB,QAAQ,GAAG,MAAM,EACjB,MAAM,EACN,aAAa,EACb,OAAO,GAAG,GAAG,EAAE,GAAE,CAAC,EAClB,MAAM,GAAG,GAAG,EAAE,GAAE,CAAC,EACjB,UAAU,GAAG,OAAO,EACpB,QAAQ,EACR,YAAY,GAAG,EAAE,GACD,EAAgB,EAAE;IAClC,MAAM,mBAAmB,GAAG,GAAiB,EAAE;QAC7C,OAAO,oBAAC,YAAY,QAAE,aAAa,EAAE,CAAgB,CAAC;IACxD,CAAC,CAAC;IAEF,OAAO,CACL,oBAAC,MAAM,IACL,cAAc,EAAE,QAAQ,EACxB,WAAW,EAAE;YACX,cAAc;YACd,YAAY;YACZ;gBACE,OAAO,EAAE,QAAQ,CAAC,EAAE,KAAK,KAAK,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM;gBAC3D,KAAK,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QAAE,aAAa,EAAE,CAAgB,CAAC;IACxD,CAAC,CAAC;IACF,OAAO,CACL,oBAAC,MAAM,IACL,cAAc,EAAE,QAAQ,EACxB,WAAW,EAAE,CAAC,cAAc,EAAE,YAAY,CAAC,EAC3C,UAAU,EAAE,UAAU,EACtB,IAAI,EAAE,MAAM,EACZ,mBAAmB,EAAE,mBAAmB,EACxC,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,MAAM,IAEb,QAAQ,CACF,CACV,CAAC;AACJ,CAAC,CAAC"}
@@ -1 +1 @@
1
- export declare const useStoredState: <T>(key: string, initialValue?: T) => [T | undefined, (value: T | undefined) => Promise<void>];
1
+ export declare const useStoredState: <T>(key: string, initialValue?: T | undefined) => [T | undefined, (value: T | undefined) => Promise<void>];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ferns-ui",
3
- "version": "0.46.0",
3
+ "version": "0.47.0",
4
4
  "main": "dist/index.js",
5
5
  "license": "Apache-2.0",
6
6
  "scripts": {
@@ -81,9 +81,9 @@
81
81
  "src/**/*"
82
82
  ],
83
83
  "devDependencies": {
84
- "@expo/config-plugins": "~7.9.1",
84
+ "@expo/config-plugins": "~8.0.0",
85
85
  "@types/jest": "^29.5.12",
86
- "@types/lodash": "^4.17.0",
86
+ "@types/lodash": "^4.17.4",
87
87
  "@types/luxon": "^3.4.2",
88
88
  "@types/mdurl": "^2.0.0",
89
89
  "@types/react": "~18.2.45",
@@ -108,33 +108,33 @@
108
108
  "eslint-plugin-simple-import-sort": "^12.1.0",
109
109
  "eslint-plugin-unused-imports": "3.2.0",
110
110
  "jest": "^29.7.0",
111
- "jest-expo": "~50.0.4",
111
+ "jest-expo": "~51.0.2",
112
112
  "jest-github-actions-reporter": "^1.0.3",
113
113
  "mdurl": "^2.0.0",
114
114
  "prettier": "^3.2.5",
115
115
  "react": "18.2.0",
116
116
  "react-keyed-flatten-children": "^3.0.0",
117
- "react-router": "^6.22.1",
118
- "react-router-dom": "^6.22.1",
117
+ "react-router": "^6.23.0",
118
+ "react-router-dom": "^6.23.0",
119
119
  "tsc-watch": "^6.0.4",
120
- "typescript": "^5.4.5"
120
+ "typescript": "~5.3.3"
121
121
  },
122
122
  "peerDependencies": {
123
123
  "react": "18.2.0",
124
- "react-router": "^6.22.1",
125
- "react-router-dom": "^6.22.1"
124
+ "react-router": "^6.23.0",
125
+ "react-router-dom": "^6.23.0"
126
126
  },
127
127
  "dependencies": {
128
128
  "@expo/vector-icons": "^14.0.1",
129
- "@react-native-async-storage/async-storage": "1.21.0",
129
+ "@react-native-async-storage/async-storage": "1.23.1",
130
130
  "@react-native-community/blur": "^4.4.0",
131
- "@react-native-community/datetimepicker": "7.6.1",
132
- "@react-native-picker/picker": "2.6.1",
133
- "expo-clipboard": "~5.0.1",
134
- "expo-font": "~11.10.3",
135
- "expo-haptics": "~12.8.1",
136
- "expo-image-manipulator": "~11.8.0",
137
- "expo-image-picker": "~14.7.1",
131
+ "@react-native-community/datetimepicker": "8.0.1",
132
+ "@react-native-picker/picker": "2.7.5",
133
+ "expo-clipboard": "~6.0.3",
134
+ "expo-font": "~12.0.5",
135
+ "expo-haptics": "~13.0.1",
136
+ "expo-image-manipulator": "~12.0.5",
137
+ "expo-image-picker": "~15.0.5",
138
138
  "expo-localization": "~14.8.4",
139
139
  "libphonenumber-js": "^1.10.61",
140
140
  "lodash": "^4.17.21",
@@ -145,22 +145,22 @@
145
145
  "react-datetime-picker": "^6.0.1",
146
146
  "react-dev-utils": "^12.0.1",
147
147
  "react-dom": "18.2.0",
148
- "react-native": "0.73.6",
148
+ "react-native": "0.74.1",
149
149
  "react-native-actions-sheet": "^0.9.3",
150
150
  "react-native-calendars": "^1.1304.1",
151
151
  "react-native-drawer-layout": "3.3.0",
152
- "react-native-gesture-handler": "~2.14.0",
152
+ "react-native-gesture-handler": "~2.16.1",
153
153
  "react-native-google-places-autocomplete": "^2.5.6",
154
154
  "react-native-modalize": "^2.1.1",
155
155
  "react-native-permissions": "^4.1.5",
156
156
  "react-native-picker-select": "^9.1.3",
157
157
  "react-native-portalize": "^1.0.7",
158
- "react-native-reanimated": "~3.6.2",
158
+ "react-native-reanimated": "~3.10.1",
159
159
  "react-native-signature-canvas": "^4.7.2",
160
- "react-native-svg": "14.1.0",
160
+ "react-native-svg": "15.2.0",
161
161
  "react-native-swiper-flatlist": "^3.2.4",
162
162
  "react-native-toast-notifications": "^3.4.0",
163
- "react-native-webview": "13.6.4",
163
+ "react-native-webview": "13.8.6",
164
164
  "react-signature-canvas": "^1.0.6",
165
165
  "react-time-picker": "^7.0.0"
166
166
  }
@@ -26,19 +26,10 @@ export const SideDrawer = ({
26
26
  const renderDrawerContent = (): ReactElement => {
27
27
  return <SafeAreaView>{renderContent()}</SafeAreaView>;
28
28
  };
29
-
30
29
  return (
31
30
  <Drawer
32
31
  drawerPosition={position}
33
- drawerStyle={[
34
- DEFAULT_STYLES,
35
- drawerStyles,
36
- {
37
- display: Platform.OS === "web" && !isOpen ? "none" : "flex",
38
- right: position === "right" ? 0 : undefined,
39
- left: position === "left" ? 0 : undefined,
40
- },
41
- ]}
32
+ drawerStyle={[DEFAULT_STYLES, drawerStyles]}
42
33
  drawerType={drawerType}
43
34
  open={isOpen}
44
35
  renderDrawerContent={renderDrawerContent}