@storybook/addon-ondevice-controls 9.0.9 → 9.0.17
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/README.md
CHANGED
|
@@ -15,7 +15,7 @@ yarn add -D @storybook/addon-ondevice-controls @react-native-community/datetimep
|
|
|
15
15
|
Then, add following content to `.rnstorybook/main.ts`:
|
|
16
16
|
|
|
17
17
|
```ts
|
|
18
|
-
import { StorybookConfig } from '@storybook/react-native';
|
|
18
|
+
import type { StorybookConfig } from '@storybook/react-native';
|
|
19
19
|
|
|
20
20
|
const main: StorybookConfig = {
|
|
21
21
|
addons: ['@storybook/addon-ondevice-controls'],
|
|
@@ -197,10 +197,7 @@ const styles = react_native_1.StyleSheet.create({
|
|
|
197
197
|
},
|
|
198
198
|
pickerIndicator: {
|
|
199
199
|
position: 'absolute',
|
|
200
|
-
|
|
201
|
-
shadowOpacity: 0.3,
|
|
202
|
-
shadowOffset: { width: 3, height: 3 },
|
|
203
|
-
shadowRadius: 4,
|
|
200
|
+
boxShadow: '3px 3px 4px 0px rgba(0, 0, 0, 0.3)',
|
|
204
201
|
elevation: 5,
|
|
205
202
|
},
|
|
206
203
|
selectedPreview: {
|
package/dist/hooks.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { Args } from '
|
|
1
|
+
import type { Args } from 'storybook/internal/csf';
|
|
2
2
|
export declare const useArgs: (storyId: string, storyStore: any) => [Args, (args: Args) => void, (argNames?: string[]) => void];
|
package/dist/types/Color.js
CHANGED
|
@@ -78,10 +78,7 @@ const InnerContainer = react_native_theming_1.styled.View(({ theme }) => ({
|
|
|
78
78
|
maxWidth: 350,
|
|
79
79
|
height: 400,
|
|
80
80
|
maxHeight: react_native_1.Dimensions.get('screen').height - 24 * 2,
|
|
81
|
-
|
|
82
|
-
shadowOpacity: 0.2,
|
|
83
|
-
shadowOffset: { width: 0, height: 0 },
|
|
84
|
-
shadowRadius: 16,
|
|
81
|
+
boxShadow: '0px 0px 16px 0px rgba(0, 0, 0, 0.2)',
|
|
85
82
|
elevation: 10,
|
|
86
83
|
}));
|
|
87
84
|
const styles = react_native_1.StyleSheet.create({
|
package/dist/types/Date.js
CHANGED
|
@@ -37,7 +37,7 @@ const DateType = ({ onChange, arg: { name, value } }) => {
|
|
|
37
37
|
date.getFullYear(),
|
|
38
38
|
].join('-'), [date]);
|
|
39
39
|
const timeString = (0, react_1.useMemo)(() => `${`0${date.getHours()}`.slice(-2)}:${`0${date.getMinutes()}`.slice(-2)}`, [date]);
|
|
40
|
-
const webDateString = (0, react_1.useMemo)(() => `${date.getFullYear()}-${`${date.getMonth() + 1}`.padStart(2, '0')}-${`${date.getDate()
|
|
40
|
+
const webDateString = (0, react_1.useMemo)(() => `${date.getFullYear()}-${`${date.getMonth() + 1}`.padStart(2, '0')}-${`${date.getDate()}`.padStart(2, '0')}T${`${date.getHours()}`.padStart(2, '0')}:${`${date.getMinutes()}`.padStart(2, '0')}`, [date]);
|
|
41
41
|
if (react_native_1.Platform.OS === 'web') {
|
|
42
42
|
return ((0, jsx_runtime_1.jsx)(react_native_1.View, { testID: name, children: (0, jsx_runtime_1.jsx)("input", { type: "datetime-local", defaultValue: webDateString, onChange: (e) => {
|
|
43
43
|
const newDate = new Date(e.target.value);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/addon-ondevice-controls",
|
|
3
|
-
"version": "9.0.
|
|
3
|
+
"version": "9.0.17",
|
|
4
4
|
"description": "Display storybook controls on your device.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"addon",
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
"copyimages": "cross-env-shell cp -r src/components/color-picker/resources dist/components/color-picker/resources"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@storybook/react-native-theming": "^9.0.
|
|
34
|
-
"@storybook/react-native-ui-common": "^9.0.
|
|
33
|
+
"@storybook/react-native-theming": "^9.0.17",
|
|
34
|
+
"@storybook/react-native-ui-common": "^9.0.17",
|
|
35
35
|
"deep-equal": "^1.0.1",
|
|
36
36
|
"prop-types": "^15.7.2",
|
|
37
37
|
"react-native-modal-datetime-picker": "^18.0.0",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"@react-native-community/slider": "*",
|
|
48
48
|
"react": "*",
|
|
49
49
|
"react-native": "*",
|
|
50
|
-
"storybook": "^9.0.
|
|
50
|
+
"storybook": "^9.0.17"
|
|
51
51
|
},
|
|
52
52
|
"peerDependenciesMeta": {
|
|
53
53
|
"@gorhom/bottom-sheet": {
|
|
@@ -57,5 +57,5 @@
|
|
|
57
57
|
"publishConfig": {
|
|
58
58
|
"access": "public"
|
|
59
59
|
},
|
|
60
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "648db0aedbd45ee3cf566ebff02e18247fcae198"
|
|
61
61
|
}
|