@startupjs-ui/date-time-picker 0.1.22 → 0.2.0-alpha.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.
- package/CHANGELOG.md +11 -0
- package/helpers/getLocale.ts +4 -3
- package/package.json +13 -13
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [0.2.0-alpha.0](https://github.com/startupjs/startupjs-ui/compare/v0.1.22...v0.2.0-alpha.0) (2026-03-27)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* fix and improve accessibility of various components. Add storybook with tests. ([#21](https://github.com/startupjs/startupjs-ui/issues/21)) ([83b6576](https://github.com/startupjs/startupjs-ui/commit/83b65767ed61b24209f71b143ba1c2986170ab58))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [0.1.22](https://github.com/startupjs/startupjs-ui/compare/v0.1.21...v0.1.22) (2026-03-25)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @startupjs-ui/date-time-picker
|
package/helpers/getLocale.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { I18nManager,
|
|
1
|
+
import { I18nManager, NativeModules, Platform } from 'react-native'
|
|
2
2
|
|
|
3
3
|
export default function getLocale (): string {
|
|
4
4
|
if (Platform.OS === 'web') {
|
|
@@ -6,8 +6,9 @@ export default function getLocale (): string {
|
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
if (Platform.OS === 'ios') {
|
|
9
|
-
const
|
|
10
|
-
const
|
|
9
|
+
const settings = NativeModules.SettingsManager?.settings
|
|
10
|
+
const appleLocale = settings?.AppleLocale as string | undefined
|
|
11
|
+
const appleLanguages = settings?.AppleLanguages as string[] | undefined
|
|
11
12
|
return appleLocale ?? appleLanguages?.[0] ?? 'en'
|
|
12
13
|
}
|
|
13
14
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@startupjs-ui/date-time-picker",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0-alpha.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -10,17 +10,17 @@
|
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"@fortawesome/free-solid-svg-icons": "^7.1.0",
|
|
12
12
|
"@react-native-community/datetimepicker": "^8.4.4",
|
|
13
|
-
"@startupjs-ui/abstract-popover": "^0.
|
|
14
|
-
"@startupjs-ui/button": "^0.
|
|
15
|
-
"@startupjs-ui/core": "^0.
|
|
16
|
-
"@startupjs-ui/div": "^0.
|
|
17
|
-
"@startupjs-ui/divider": "^0.
|
|
18
|
-
"@startupjs-ui/drawer": "^0.
|
|
19
|
-
"@startupjs-ui/flat-list": "^0.
|
|
20
|
-
"@startupjs-ui/icon": "^0.
|
|
21
|
-
"@startupjs-ui/popover": "^0.
|
|
22
|
-
"@startupjs-ui/span": "^0.
|
|
23
|
-
"@startupjs-ui/text-input": "^0.
|
|
13
|
+
"@startupjs-ui/abstract-popover": "^0.2.0-alpha.0",
|
|
14
|
+
"@startupjs-ui/button": "^0.2.0-alpha.0",
|
|
15
|
+
"@startupjs-ui/core": "^0.2.0-alpha.0",
|
|
16
|
+
"@startupjs-ui/div": "^0.2.0-alpha.0",
|
|
17
|
+
"@startupjs-ui/divider": "^0.2.0-alpha.0",
|
|
18
|
+
"@startupjs-ui/drawer": "^0.2.0-alpha.0",
|
|
19
|
+
"@startupjs-ui/flat-list": "^0.2.0-alpha.0",
|
|
20
|
+
"@startupjs-ui/icon": "^0.2.0-alpha.0",
|
|
21
|
+
"@startupjs-ui/popover": "^0.2.0-alpha.0",
|
|
22
|
+
"@startupjs-ui/span": "^0.2.0-alpha.0",
|
|
23
|
+
"@startupjs-ui/text-input": "^0.2.0-alpha.0",
|
|
24
24
|
"moment-timezone": "^0.5.31",
|
|
25
25
|
"react-native-safe-area-context": "^5.6.0"
|
|
26
26
|
},
|
|
@@ -29,5 +29,5 @@
|
|
|
29
29
|
"react-native": "*",
|
|
30
30
|
"startupjs": "*"
|
|
31
31
|
},
|
|
32
|
-
"gitHead": "
|
|
32
|
+
"gitHead": "a428246a18d0e7f77809043c8240253240d11d66"
|
|
33
33
|
}
|