nuxt-ui-elements 0.1.39 → 0.1.40
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/module.json
CHANGED
|
@@ -205,6 +205,13 @@ export declare function now(timeZone?: string): ZonedDateTime;
|
|
|
205
205
|
* parse('2024-01-15')
|
|
206
206
|
*/
|
|
207
207
|
export declare function parse(dateString: string): CalendarDate;
|
|
208
|
+
/**
|
|
209
|
+
* Maps a weekStartsOn value to a locale string that
|
|
210
|
+
* @internationalized/date uses for week-start calculation.
|
|
211
|
+
*
|
|
212
|
+
* @param weekStartsOn - 0 for Sunday, 1 for Monday
|
|
213
|
+
*/
|
|
214
|
+
export declare function getWeekStartLocale(weekStartsOn?: 0 | 1): string;
|
|
208
215
|
/**
|
|
209
216
|
* Re-export useful utilities from @internationalized/date
|
|
210
217
|
* that complement (not duplicate) the main API
|
|
@@ -296,6 +296,9 @@ export function now(timeZone) {
|
|
|
296
296
|
export function parse(dateString) {
|
|
297
297
|
return parseDate(dateString);
|
|
298
298
|
}
|
|
299
|
+
export function getWeekStartLocale(weekStartsOn = 0) {
|
|
300
|
+
return weekStartsOn === 1 ? "en-GB" : "en-US";
|
|
301
|
+
}
|
|
299
302
|
export {
|
|
300
303
|
isSameDay,
|
|
301
304
|
isSameMonth,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nuxt-ui-elements",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.40",
|
|
4
4
|
"description": "A collection of beautiful, animated UI components for Nuxt applications",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": "https://github.com/genu/nuxt-ui-elements.git",
|
|
@@ -51,8 +51,8 @@
|
|
|
51
51
|
"tailwind-variants": "3.2.2"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
|
-
"@nuxt/devtools": "3.
|
|
55
|
-
"@nuxt/eslint-config": "1.
|
|
54
|
+
"@nuxt/devtools": "3.2.1",
|
|
55
|
+
"@nuxt/eslint-config": "1.15.1",
|
|
56
56
|
"@nuxt/module-builder": "1.0.2",
|
|
57
57
|
"@nuxt/schema": "4.3.1",
|
|
58
58
|
"@nuxt/test-utils": "4.0.0",
|