diff --git a/package.json b/package.json index dd795c7..a08dce8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@ulleritech/nepali-date-picker", - "version": "1.4.2", + "version": "1.4.3", "description": "Nepali Date Picker", "author": { "name": "Ulleri Tech", diff --git a/src/lib/ad-picker/CalendarAD.svelte b/src/lib/ad-picker/CalendarAD.svelte index 615f8ca..560f839 100644 --- a/src/lib/ad-picker/CalendarAD.svelte +++ b/src/lib/ad-picker/CalendarAD.svelte @@ -116,9 +116,9 @@ } -
-
- +
+
+ {new Date(selectedYear, selectedMonth - 1, 1).toLocaleString('en-ca', { month: 'long', year: 'numeric' @@ -127,12 +127,12 @@
- +
{#each shortDays as day} @@ -145,7 +145,7 @@ {#if isValidDate(value)} {#each col as i}
-
+
{day}
-
+
{#if i > 0 && i <= currentNumberOfDays} {#if i === selectedDay && selectedMonth == new Date(value).getMonth() + 1} {:else} -

+

-
-
diff --git a/src/lib/ad-picker/DatePicker.svelte b/src/lib/ad-picker/DatePicker.svelte index e39e9f1..95954b1 100644 --- a/src/lib/ad-picker/DatePicker.svelte +++ b/src/lib/ad-picker/DatePicker.svelte @@ -14,10 +14,10 @@ let selectedDate: string; -
-
+
+
{#if !hidelabel} - + {/if}
{ @@ -26,10 +26,16 @@ on:click={() => { isOpenCalendar = !isOpenCalendar; }} - class="date-select-box" + class="ut--date-select-box" > - -
+ +
-
+
-
diff --git a/src/lib/bs-picker/NepaliDatePicker.svelte b/src/lib/bs-picker/NepaliDatePicker.svelte index 21d9b16..e8ae0fb 100644 --- a/src/lib/bs-picker/NepaliDatePicker.svelte +++ b/src/lib/bs-picker/NepaliDatePicker.svelte @@ -13,10 +13,10 @@ let selectedDate: string; -
-
+
+
{#if !hidelabel} - + {/if}
{ @@ -25,10 +25,16 @@ on:click={() => { isOpenCalendar = !isOpenCalendar; }} - class="date-select-box" + class="ut--date-select-box" > - -
+ +
-
+
-