nuxt-ui-elements 0.1.38 → 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
|
@@ -104,8 +104,6 @@ const handleClose = () => {
|
|
|
104
104
|
<UModal
|
|
105
105
|
:dismissible="false"
|
|
106
106
|
:close="false"
|
|
107
|
-
:title="title"
|
|
108
|
-
:description="description"
|
|
109
107
|
:ui="{
|
|
110
108
|
content: ui.content({ class: uiProps?.content }),
|
|
111
109
|
header: ui.header({ class: uiProps?.header }),
|
|
@@ -120,9 +118,8 @@ const handleClose = () => {
|
|
|
120
118
|
{{ title }}
|
|
121
119
|
</DialogTitle>
|
|
122
120
|
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
</DialogDescription>
|
|
121
|
+
<!-- eslint-disable-next-line vue/no-v-text-v-html-on-component, vue/no-v-html -->
|
|
122
|
+
<DialogDescription v-if="description" :class="ui.description({ class: uiProps?.description })" v-html="description" />
|
|
126
123
|
</div>
|
|
127
124
|
|
|
128
125
|
<UButton
|
|
@@ -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",
|