sveltacular 0.0.58 → 0.0.59
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/data/index.d.ts +1 -2
- package/dist/data/index.js +1 -2
- package/dist/helpers/date.d.ts +1 -1
- package/dist/index.d.ts +7 -3
- package/dist/index.js +7 -3
- package/dist/types/date.d.ts +1 -0
- package/package.json +1 -1
package/dist/data/index.d.ts
CHANGED
package/dist/data/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { Canada_Provinces, Canada_ProvinceCodes } from './canada.js';
|
|
|
2
2
|
import { Countries, CountryCodes } from './countries.js';
|
|
3
3
|
import { US_States, US_StateCodes } from './united-states.js';
|
|
4
4
|
import { Colors } from './colors.js';
|
|
5
|
-
const Data = {
|
|
5
|
+
export const Data = {
|
|
6
6
|
US_States,
|
|
7
7
|
US_StateCodes,
|
|
8
8
|
Canada_Provinces,
|
|
@@ -11,4 +11,3 @@ const Data = {
|
|
|
11
11
|
CountryCodes,
|
|
12
12
|
Colors
|
|
13
13
|
};
|
|
14
|
-
export default Data;
|
package/dist/helpers/date.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import type { DateUnit } from '../index.js';
|
|
2
2
|
export declare const currentDate: () => string;
|
|
3
3
|
export declare const currentDateTime: () => string;
|
|
4
4
|
export declare const addDays: (days: number, fromDate?: string | Date) => Date;
|
package/dist/index.d.ts
CHANGED
|
@@ -90,12 +90,16 @@ export { default as SkeletonText } from './placeholders/skeleton-text.svelte';
|
|
|
90
90
|
export * from './types/data.js';
|
|
91
91
|
export * from './types/date.js';
|
|
92
92
|
export * from './types/form.js';
|
|
93
|
+
export * from './helpers/ago.js';
|
|
94
|
+
export * from './helpers/capitalize.js';
|
|
93
95
|
export * from './helpers/date.js';
|
|
96
|
+
export * from './helpers/debounce.js';
|
|
94
97
|
export * from './helpers/navigate-to.js';
|
|
98
|
+
export * from './helpers/nobr.js';
|
|
99
|
+
export * from './helpers/random.js';
|
|
95
100
|
export * from './helpers/round-to-decimals.js';
|
|
96
|
-
export * from './helpers/
|
|
101
|
+
export * from './helpers/split-new-lines.js';
|
|
97
102
|
export * from './helpers/subscribable.js';
|
|
98
103
|
export * from './helpers/ucfirst.js';
|
|
99
|
-
export * from './helpers/
|
|
100
|
-
export * from './helpers/split-new-lines.js';
|
|
104
|
+
export * from './helpers/unique-id.js';
|
|
101
105
|
export * from './data/index.js';
|
package/dist/index.js
CHANGED
|
@@ -101,13 +101,17 @@ export * from './types/data.js';
|
|
|
101
101
|
export * from './types/date.js';
|
|
102
102
|
export * from './types/form.js';
|
|
103
103
|
// Helpers
|
|
104
|
+
export * from './helpers/ago.js';
|
|
105
|
+
export * from './helpers/capitalize.js';
|
|
104
106
|
export * from './helpers/date.js';
|
|
107
|
+
export * from './helpers/debounce.js';
|
|
105
108
|
export * from './helpers/navigate-to.js';
|
|
109
|
+
export * from './helpers/nobr.js';
|
|
110
|
+
export * from './helpers/random.js';
|
|
106
111
|
export * from './helpers/round-to-decimals.js';
|
|
107
|
-
export * from './helpers/
|
|
112
|
+
export * from './helpers/split-new-lines.js';
|
|
108
113
|
export * from './helpers/subscribable.js';
|
|
109
114
|
export * from './helpers/ucfirst.js';
|
|
110
|
-
export * from './helpers/
|
|
111
|
-
export * from './helpers/split-new-lines.js';
|
|
115
|
+
export * from './helpers/unique-id.js';
|
|
112
116
|
// Data
|
|
113
117
|
export * from './data/index.js';
|
package/dist/types/date.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export type DateTimeStyle = 'full' | 'long' | 'short' | 'medium';
|
|
2
2
|
export type TZStyle = 'long' | 'short' | 'shortOffset' | 'longOffset' | 'shortGeneric' | 'longGeneric';
|
|
3
3
|
export type DateType = 'date' | 'time' | 'datetime' | 'ago' | 'ymd' | 'ymdhm' | 'ymdhms' | 'ymdhmt' | 'ymdhmst';
|
|
4
|
+
export type DateUnit = 'day' | 'month' | 'year' | 'minute' | 'hour' | 'second';
|