@likable-hair/svelte 0.0.66 → 0.0.68

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/dates/utils.js CHANGED
@@ -185,12 +185,20 @@ const dateToDayAndHourd = (date, locale = 'it') => {
185
185
  period = 'pm';
186
186
  hours -= 12;
187
187
  }
188
- else
188
+ else {
189
189
  period = 'am';
190
- return `${day} at ${hours}:${minutes} ${period}`;
190
+ }
191
+ let minuteFormatted = minutes.toString();
192
+ if (minutes < 10)
193
+ minuteFormatted = '0' + minutes;
194
+ return `${day} at ${hours}:${minuteFormatted} ${period}`;
195
+ }
196
+ else if (locale == 'it') {
197
+ let minutesFormatted = minutes.toString();
198
+ if (minutes < 10)
199
+ minutesFormatted = '0' + minutesFormatted;
200
+ return `${day} alle ${hours}:${minutesFormatted}`;
191
201
  }
192
- else if (locale == 'it')
193
- return `${day} alle ${hours}:${minutes}`;
194
202
  };
195
203
  export const dateToString = (date, format = 'extended', locale = 'it') => {
196
204
  switch (format) {
@@ -25,7 +25,7 @@ declare const __propDef: {
25
25
  paddingBottom?: string;
26
26
  paddingTop?: string;
27
27
  fontSize?: string;
28
- type?: 'text' | 'password';
28
+ type?: 'text' | 'password' | 'number';
29
29
  readonly?: boolean;
30
30
  inputElement?: HTMLElement;
31
31
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@likable-hair/svelte",
3
3
  "description": "A Svelte component for likablehair",
4
- "version": "0.0.66",
4
+ "version": "0.0.68",
5
5
  "devDependencies": {
6
6
  "@sveltejs/adapter-auto": "next",
7
7
  "@sveltejs/kit": "next",