ferns-ui 0.45.5 → 0.46.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.
- package/dist/DateUtilities.d.ts +5 -5
- package/dist/FernsProvider.d.ts +1 -1
- package/dist/SideDrawer.js +1 -9
- package/dist/SideDrawer.js.map +1 -1
- package/dist/useStoredState.d.ts +1 -1
- package/package.json +36 -33
- package/src/SideDrawer.tsx +1 -10
package/dist/DateUtilities.d.ts
CHANGED
|
@@ -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;
|
|
26
|
+
showTimezone?: boolean;
|
|
27
|
+
ignoreTime?: boolean;
|
|
28
|
+
defaultValue?: string;
|
|
29
29
|
}) => string;
|
|
30
30
|
export declare const printOnlyDate: (date?: string, { defaultValue, }?: {
|
|
31
|
-
defaultValue?: string
|
|
31
|
+
defaultValue?: string;
|
|
32
32
|
}) => string;
|
|
33
33
|
export declare function printTime(date?: string, { timezone, showTimezone, defaultValue, }?: {
|
|
34
34
|
timezone: string;
|
package/dist/FernsProvider.d.ts
CHANGED
package/dist/SideDrawer.js
CHANGED
|
@@ -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
|
package/dist/SideDrawer.js.map
CHANGED
|
@@ -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,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AE,mBAAmB,EACxC,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,MAAM,IAEb,QAAQ,CACF,CACV,CAAC;AACJ,CAAC,CAAC"}
|
package/dist/useStoredState.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const useStoredState: <T>(key: string, initialValue?: T
|
|
1
|
+
export declare const useStoredState: <T>(key: string, initialValue?: T) => [T | undefined, (value: T | undefined) => Promise<void>];
|
package/package.json
CHANGED
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ferns-ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.46.1",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"local": "tsc-watch --onSuccess \"cp -a dist/* ../flourish/node_modules/ferns-ui/dist\"",
|
|
8
|
-
"lint": "eslint
|
|
9
|
-
"lintfix": "eslint --fix
|
|
8
|
+
"lint": "eslint",
|
|
9
|
+
"lintfix": "eslint --fix",
|
|
10
10
|
"build": "tsc",
|
|
11
11
|
"dev": "tsc -w",
|
|
12
12
|
"deps": "node checkDeps.js",
|
|
13
13
|
"test": "TZ=America/New_York jest --watchAll",
|
|
14
|
-
"test:ci": "TZ=America/New_York jest --ci"
|
|
14
|
+
"test:ci": "TZ=America/New_York jest --ci",
|
|
15
|
+
"postinstall": "cd ../.. && patch-package"
|
|
15
16
|
},
|
|
16
17
|
"babel": {
|
|
17
18
|
"presets": [
|
|
@@ -80,19 +81,20 @@
|
|
|
80
81
|
"src/**/*"
|
|
81
82
|
],
|
|
82
83
|
"devDependencies": {
|
|
83
|
-
"@expo/config-plugins": "~7.
|
|
84
|
+
"@expo/config-plugins": "~7.9.1",
|
|
84
85
|
"@types/jest": "^29.5.12",
|
|
86
|
+
"@types/lodash": "^4.17.0",
|
|
85
87
|
"@types/luxon": "^3.4.2",
|
|
86
|
-
"@types/mdurl": "^
|
|
87
|
-
"@types/react": "~18.2.
|
|
88
|
+
"@types/mdurl": "^2.0.0",
|
|
89
|
+
"@types/react": "~18.2.45",
|
|
88
90
|
"@types/react-datetime-picker": "^5.0.0",
|
|
89
91
|
"@types/react-signature-canvas": "^1.0.5",
|
|
90
92
|
"@types/react-time-picker": "^6.0.0",
|
|
91
|
-
"@typescript-eslint/eslint-plugin": "^7.0
|
|
92
|
-
"@typescript-eslint/parser": "^7.0
|
|
93
|
+
"@typescript-eslint/eslint-plugin": "^7.8.0",
|
|
94
|
+
"@typescript-eslint/parser": "^7.8.0",
|
|
93
95
|
"babel-jest": "^29.7.0",
|
|
94
96
|
"babel-preset-react-app": "^10.0.1",
|
|
95
|
-
"eslint": "^8.
|
|
97
|
+
"eslint": "^8.57.0",
|
|
96
98
|
"eslint-config-prettier": "^9.1.0",
|
|
97
99
|
"eslint-plugin-ban": "^1.6.0",
|
|
98
100
|
"eslint-plugin-comment-length": "^1.7.3",
|
|
@@ -100,13 +102,13 @@
|
|
|
100
102
|
"eslint-plugin-import": "^2.29.1",
|
|
101
103
|
"eslint-plugin-lodash": "^7.1.0",
|
|
102
104
|
"eslint-plugin-prettier": "^5.1.3",
|
|
103
|
-
"eslint-plugin-react": "^7.
|
|
104
|
-
"eslint-plugin-react-hooks": "^4.6.
|
|
105
|
+
"eslint-plugin-react": "^7.34.1",
|
|
106
|
+
"eslint-plugin-react-hooks": "^4.6.2",
|
|
105
107
|
"eslint-plugin-react-native": "^4.1.0",
|
|
106
|
-
"eslint-plugin-simple-import-sort": "^12.
|
|
107
|
-
"eslint-plugin-unused-imports": "3.
|
|
108
|
+
"eslint-plugin-simple-import-sort": "^12.1.0",
|
|
109
|
+
"eslint-plugin-unused-imports": "3.2.0",
|
|
108
110
|
"jest": "^29.7.0",
|
|
109
|
-
"jest-expo": "~50.0.
|
|
111
|
+
"jest-expo": "~50.0.4",
|
|
110
112
|
"jest-github-actions-reporter": "^1.0.3",
|
|
111
113
|
"mdurl": "^2.0.0",
|
|
112
114
|
"prettier": "^3.2.5",
|
|
@@ -115,15 +117,15 @@
|
|
|
115
117
|
"react-router": "^6.22.1",
|
|
116
118
|
"react-router-dom": "^6.22.1",
|
|
117
119
|
"tsc-watch": "^6.0.4",
|
|
118
|
-
"typescript": "^5.
|
|
120
|
+
"typescript": "^5.4.5"
|
|
119
121
|
},
|
|
120
122
|
"peerDependencies": {
|
|
121
|
-
"react": "
|
|
122
|
-
"react-router": "^6.
|
|
123
|
-
"react-router-dom": "^6.
|
|
123
|
+
"react": "18.2.0",
|
|
124
|
+
"react-router": "^6.22.1",
|
|
125
|
+
"react-router-dom": "^6.22.1"
|
|
124
126
|
},
|
|
125
127
|
"dependencies": {
|
|
126
|
-
"@expo/vector-icons": "^14.0.
|
|
128
|
+
"@expo/vector-icons": "^14.0.1",
|
|
127
129
|
"@react-native-async-storage/async-storage": "1.21.0",
|
|
128
130
|
"@react-native-community/blur": "^4.4.0",
|
|
129
131
|
"@react-native-community/datetimepicker": "7.6.1",
|
|
@@ -133,32 +135,33 @@
|
|
|
133
135
|
"expo-haptics": "~12.8.1",
|
|
134
136
|
"expo-image-manipulator": "~11.8.0",
|
|
135
137
|
"expo-image-picker": "~14.7.1",
|
|
136
|
-
"expo-localization": "~14.8.
|
|
137
|
-
"libphonenumber-js": "^1.10.
|
|
138
|
+
"expo-localization": "~14.8.4",
|
|
139
|
+
"libphonenumber-js": "^1.10.61",
|
|
138
140
|
"lodash": "^4.17.21",
|
|
139
141
|
"luxon": "^3.4.4",
|
|
142
|
+
"patch-package": "^8.0.0",
|
|
140
143
|
"react-app-polyfill": "^3.0.0",
|
|
141
|
-
"react-date-picker": "^
|
|
142
|
-
"react-datetime-picker": "^
|
|
144
|
+
"react-date-picker": "^11.0.0",
|
|
145
|
+
"react-datetime-picker": "^6.0.1",
|
|
143
146
|
"react-dev-utils": "^12.0.1",
|
|
144
147
|
"react-dom": "18.2.0",
|
|
145
|
-
"react-native": "0.73.
|
|
146
|
-
"react-native-actions-sheet": "^0.9.
|
|
147
|
-
"react-native-calendars": "^1.
|
|
148
|
-
"react-native-drawer-layout": "3.
|
|
148
|
+
"react-native": "0.73.6",
|
|
149
|
+
"react-native-actions-sheet": "^0.9.3",
|
|
150
|
+
"react-native-calendars": "^1.1304.1",
|
|
151
|
+
"react-native-drawer-layout": "3.3.0",
|
|
149
152
|
"react-native-gesture-handler": "~2.14.0",
|
|
150
153
|
"react-native-google-places-autocomplete": "^2.5.6",
|
|
151
154
|
"react-native-modalize": "^2.1.1",
|
|
152
|
-
"react-native-permissions": "^4.1.
|
|
153
|
-
"react-native-picker-select": "^9.
|
|
155
|
+
"react-native-permissions": "^4.1.5",
|
|
156
|
+
"react-native-picker-select": "^9.1.3",
|
|
154
157
|
"react-native-portalize": "^1.0.7",
|
|
155
158
|
"react-native-reanimated": "~3.6.2",
|
|
156
|
-
"react-native-signature-canvas": "^4.7.
|
|
159
|
+
"react-native-signature-canvas": "^4.7.2",
|
|
157
160
|
"react-native-svg": "14.1.0",
|
|
158
|
-
"react-native-swiper-flatlist": "^3.2.
|
|
161
|
+
"react-native-swiper-flatlist": "^3.2.4",
|
|
159
162
|
"react-native-toast-notifications": "^3.4.0",
|
|
160
163
|
"react-native-webview": "13.6.4",
|
|
161
164
|
"react-signature-canvas": "^1.0.6",
|
|
162
|
-
"react-time-picker": "^
|
|
165
|
+
"react-time-picker": "^7.0.0"
|
|
163
166
|
}
|
|
164
167
|
}
|
package/src/SideDrawer.tsx
CHANGED
|
@@ -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}
|