accomadesc 0.3.2 → 0.3.3
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/helpers/moneyFormats.d.ts +1 -0
- package/dist/helpers/moneyFormats.js +22 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -1
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const MoneyFormats: Record<string, Intl.NumberFormat>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export const MoneyFormats = {
|
|
2
|
+
en: new Intl.NumberFormat('en-US', {
|
|
3
|
+
style: 'currency',
|
|
4
|
+
currency: 'EUR',
|
|
5
|
+
}),
|
|
6
|
+
de: new Intl.NumberFormat('de-DE', {
|
|
7
|
+
style: 'currency',
|
|
8
|
+
currency: 'EUR',
|
|
9
|
+
}),
|
|
10
|
+
fr: new Intl.NumberFormat('fr-FR', {
|
|
11
|
+
style: 'currency',
|
|
12
|
+
currency: 'EUR',
|
|
13
|
+
}),
|
|
14
|
+
pl: new Intl.NumberFormat('pl-PL', {
|
|
15
|
+
style: 'currency',
|
|
16
|
+
currency: 'EUR',
|
|
17
|
+
}),
|
|
18
|
+
es: new Intl.NumberFormat('es-ES', {
|
|
19
|
+
style: 'currency',
|
|
20
|
+
currency: 'EUR',
|
|
21
|
+
}),
|
|
22
|
+
};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { randomName, randomID } from './names/gen.js';
|
|
2
2
|
import { format } from './helpers/format.ts';
|
|
3
|
+
import { MoneyFormats } from './helpers/moneyFormats.ts';
|
|
3
4
|
import Avatar from './basic/Avatar.svelte';
|
|
4
5
|
import Button from './basic/Button.svelte';
|
|
5
6
|
import Icon from './basic/Icon.svelte';
|
|
@@ -27,4 +28,4 @@ import PageComponent from './PageComponent.svelte';
|
|
|
27
28
|
export type { OccuplanTranslations } from './occuplan/state.svelte.ts';
|
|
28
29
|
export type { GridPhoto, LeafletMap as LeafletMapI, LeafletMapContent, Calendar as CalendarI, CalendarContent, CalendarAvailable as CalendarAvailableI, CalendarAvailableContent, CalendarGrid as CalendarGridI, CalendarGridContent, CalendarRows as CalendarRowsI, CalendarRowsContent, Text as TextI, TextContent, Weather as WeatherI, WeatherContent, Photo as PhotoI, PhotoContent, PhotoGallery as PhotoGalleryI, PhotoGalleryContent, Pricing as PricingI, PricingContent, PricingShort as PricingShortI, PricingShortContent, PricingEntry, PricingRange, PricingColumn, StaticRangeDate, StaticPricingRange, AmenitiesCore as AmenitiesCoreI, AmenitiesCoreContent, AccoCard as AccoCardI, AccoCardContent, ContactForm as ContactFormI, ContactFormContent, BookingRequest as BookingRequestI, BookingRequestContent, AccoDescription as AccoDescriptionI, AccoDescriptionContent, Section as SectionI, I18nFacade, AccoBlock, Block, PageProps, PageConfig, Nav as NavI, FormatSpec, FormatTemplateName, SiteConfig, LangConfig, CookieConfig, SiteFonts, SiteTranslation, FontSpec, Hero, } from './types.js';
|
|
29
30
|
export { PRICING_COLUMNS, BLOCK_KINDS, isAccoCard, isText, isPhoto, isGallery, isLeafletMap, isWeather, isAmenitiesCore, isCalendarAvailable, isCalendar, isCalendarGrid, isCalendarRows, isPricing, isPricingShort, isAccoDescription, isBookingRequest, isContactForm, isAccoBlock, } from './types.js';
|
|
30
|
-
export { randomID, randomName, format, Avatar, Button, Icon, Spinner, TextInput, AccoCard, AccoDescription, AmenitiesCore, Calendar, CalendarAvailable, LeafletMap, Photo, PhotoGallery, Pricing, PricingShort, Section, Text, Weather, BookingRequest, ContactForm, CalendarRows, CalendarGrid, Notes, PageComponent, };
|
|
31
|
+
export { randomID, randomName, format, MoneyFormats, Avatar, Button, Icon, Spinner, TextInput, AccoCard, AccoDescription, AmenitiesCore, Calendar, CalendarAvailable, LeafletMap, Photo, PhotoGallery, Pricing, PricingShort, Section, Text, Weather, BookingRequest, ContactForm, CalendarRows, CalendarGrid, Notes, PageComponent, };
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// Reexport your entry components here
|
|
2
2
|
import { randomName, randomID } from './names/gen.js';
|
|
3
3
|
import { format } from './helpers/format.ts';
|
|
4
|
+
import { MoneyFormats } from './helpers/moneyFormats.ts';
|
|
4
5
|
import Avatar from './basic/Avatar.svelte';
|
|
5
6
|
import Button from './basic/Button.svelte';
|
|
6
7
|
import Icon from './basic/Icon.svelte';
|
|
@@ -26,4 +27,4 @@ import Text from './Text.svelte';
|
|
|
26
27
|
import Weather from './Weather.svelte';
|
|
27
28
|
import PageComponent from './PageComponent.svelte';
|
|
28
29
|
export { PRICING_COLUMNS, BLOCK_KINDS, isAccoCard, isText, isPhoto, isGallery, isLeafletMap, isWeather, isAmenitiesCore, isCalendarAvailable, isCalendar, isCalendarGrid, isCalendarRows, isPricing, isPricingShort, isAccoDescription, isBookingRequest, isContactForm, isAccoBlock, } from './types.js';
|
|
29
|
-
export { randomID, randomName, format, Avatar, Button, Icon, Spinner, TextInput, AccoCard, AccoDescription, AmenitiesCore, Calendar, CalendarAvailable, LeafletMap, Photo, PhotoGallery, Pricing, PricingShort, Section, Text, Weather, BookingRequest, ContactForm, CalendarRows, CalendarGrid, Notes, PageComponent, };
|
|
30
|
+
export { randomID, randomName, format, MoneyFormats, Avatar, Button, Icon, Spinner, TextInput, AccoCard, AccoDescription, AmenitiesCore, Calendar, CalendarAvailable, LeafletMap, Photo, PhotoGallery, Pricing, PricingShort, Section, Text, Weather, BookingRequest, ContactForm, CalendarRows, CalendarGrid, Notes, PageComponent, };
|