@vkzstudio/muza-ui 1.0.5 → 1.0.7

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.
Files changed (90) hide show
  1. package/dist/components/Button/buttonVariants.d.ts +1 -1
  2. package/dist/components/Calendar/Calendar.d.ts +2 -2
  3. package/dist/components/Calendar/Calendar.d.ts.map +1 -1
  4. package/dist/components/Calendar/Calendar.js +158 -150
  5. package/dist/components/DataTable/DataTable.d.ts +17 -0
  6. package/dist/components/DataTable/DataTable.d.ts.map +1 -0
  7. package/dist/components/DataTable/DataTable.js +73 -0
  8. package/dist/components/DataTable/DataTable.stories.d.ts +10 -0
  9. package/dist/components/DataTable/DataTable.stories.d.ts.map +1 -0
  10. package/dist/components/DataTable/index.d.ts +2 -0
  11. package/dist/components/DataTable/index.d.ts.map +1 -0
  12. package/dist/components/Dialog/Dialog.d.ts.map +1 -1
  13. package/dist/components/Dialog/Dialog.js +28 -26
  14. package/dist/components/ExpandableTable/Table.d.ts +1 -1
  15. package/dist/components/FileUpload/FileItem.d.ts.map +1 -1
  16. package/dist/components/FileUpload/FileItem.js +83 -78
  17. package/dist/components/FileUpload/FileUpload.d.ts.map +1 -1
  18. package/dist/components/FileUpload/FileUpload.js +98 -94
  19. package/dist/components/Flex/Flex.d.ts +1 -1
  20. package/dist/components/Icons/CustomIcons.d.ts +3 -0
  21. package/dist/components/Icons/CustomIcons.d.ts.map +1 -1
  22. package/dist/components/Icons/CustomIcons.js +90 -41
  23. package/dist/components/Icons/Icons.stories.d.ts.map +1 -1
  24. package/dist/components/MultiSelect/MultiSelect.d.ts.map +1 -1
  25. package/dist/components/MultiSelect/MultiSelect.js +51 -50
  26. package/dist/components/MuzaUIProvider/MuzaUIProvider.d.ts +19 -0
  27. package/dist/components/MuzaUIProvider/MuzaUIProvider.d.ts.map +1 -0
  28. package/dist/components/MuzaUIProvider/MuzaUIProvider.js +19 -0
  29. package/dist/components/MuzaUIProvider/MuzaUIProvider.stories.d.ts +10 -0
  30. package/dist/components/MuzaUIProvider/MuzaUIProvider.stories.d.ts.map +1 -0
  31. package/dist/components/MuzaUIProvider/index.d.ts +2 -0
  32. package/dist/components/MuzaUIProvider/index.d.ts.map +1 -0
  33. package/dist/components/Searchbar/Searchbar.d.ts +3 -2
  34. package/dist/components/Searchbar/Searchbar.d.ts.map +1 -1
  35. package/dist/components/Searchbar/Searchbar.js +56 -54
  36. package/dist/components/Searchbar/Searchbar.stories.d.ts +1 -0
  37. package/dist/components/Searchbar/Searchbar.stories.d.ts.map +1 -1
  38. package/dist/components/Select/Select.d.ts.map +1 -1
  39. package/dist/components/Select/Select.js +43 -42
  40. package/dist/components/Stepper/Stepper.d.ts +1 -1
  41. package/dist/components/Stepper/Stepper.d.ts.map +1 -1
  42. package/dist/components/Stepper/Stepper.js +43 -42
  43. package/dist/components/SwipeButton/SwipeButton.d.ts +1 -1
  44. package/dist/components/SwipeButton/SwipeButton.d.ts.map +1 -1
  45. package/dist/components/SwipeButton/SwipeButton.js +85 -84
  46. package/dist/components/SwipeButton/SwipeButton.stories.d.ts +1 -1
  47. package/dist/components/Typography/Typography.d.ts +1 -1
  48. package/dist/components/index.d.ts +3 -0
  49. package/dist/components/index.d.ts.map +1 -1
  50. package/dist/index.js +204 -186
  51. package/dist/muza-ui.css +1 -1
  52. package/dist/node_modules/date-fns/_lib/defaultOptions.js +7 -0
  53. package/dist/node_modules/date-fns/_lib/normalizeDates.js +11 -0
  54. package/dist/node_modules/date-fns/constants.js +4 -0
  55. package/dist/node_modules/date-fns/constructFrom.js +8 -0
  56. package/dist/node_modules/date-fns/isSameWeek.js +14 -0
  57. package/dist/node_modules/date-fns/locale/cs/_lib/formatDistance.js +275 -0
  58. package/dist/node_modules/date-fns/locale/cs/_lib/formatLong.js +33 -0
  59. package/dist/node_modules/date-fns/locale/cs/_lib/formatRelative.js +25 -0
  60. package/dist/node_modules/date-fns/locale/cs/_lib/localize.js +167 -0
  61. package/dist/node_modules/date-fns/locale/cs/_lib/match.js +109 -0
  62. package/dist/node_modules/date-fns/locale/cs.js +21 -0
  63. package/dist/node_modules/date-fns/locale/sk/_lib/formatDistance.js +158 -0
  64. package/dist/node_modules/date-fns/locale/sk/_lib/formatLong.js +33 -0
  65. package/dist/node_modules/date-fns/locale/sk/_lib/formatRelative.js +60 -0
  66. package/dist/node_modules/date-fns/locale/sk/_lib/localize.js +175 -0
  67. package/dist/node_modules/date-fns/locale/sk/_lib/match.js +111 -0
  68. package/dist/node_modules/date-fns/locale/sk.js +21 -0
  69. package/dist/node_modules/date-fns/startOfWeek.js +11 -0
  70. package/dist/node_modules/date-fns/toDate.js +8 -0
  71. package/dist/styles/token-colors.css +1206 -1199
  72. package/dist/styles/token-sizes.css +680 -680
  73. package/dist/styles/typography.css +84 -84
  74. package/dist/translations/TranslationContext.d.ts +61 -0
  75. package/dist/translations/TranslationContext.d.ts.map +1 -0
  76. package/dist/translations/TranslationContext.js +74 -0
  77. package/dist/translations/index.d.ts +6 -0
  78. package/dist/translations/index.d.ts.map +1 -0
  79. package/dist/translations/locales/cs.d.ts +3 -0
  80. package/dist/translations/locales/cs.d.ts.map +1 -0
  81. package/dist/translations/locales/cs.js +52 -0
  82. package/dist/translations/locales/en.d.ts +3 -0
  83. package/dist/translations/locales/en.d.ts.map +1 -0
  84. package/dist/translations/locales/en.js +52 -0
  85. package/dist/translations/locales/sk.d.ts +3 -0
  86. package/dist/translations/locales/sk.d.ts.map +1 -0
  87. package/dist/translations/locales/sk.js +52 -0
  88. package/dist/translations/types.d.ts +118 -0
  89. package/dist/translations/types.d.ts.map +1 -0
  90. package/package.json +1 -1
@@ -0,0 +1,158 @@
1
+ function c(t, e) {
2
+ return e === 1 && t.one ? t.one : e >= 2 && e <= 4 && t.twoFour ? t.twoFour : t.other;
3
+ }
4
+ function r(t, e, n) {
5
+ return c(t, e)[n].replace("{{count}}", String(e));
6
+ }
7
+ function p(t) {
8
+ return ["lessThan", "about", "over", "almost"].filter(
9
+ function(n) {
10
+ return !!t.match(new RegExp("^" + n));
11
+ }
12
+ )[0];
13
+ }
14
+ function s(t) {
15
+ let e = "";
16
+ return t === "almost" && (e = "takmer"), t === "about" && (e = "približne"), e.length > 0 ? e + " " : "";
17
+ }
18
+ function i(t) {
19
+ let e = "";
20
+ return t === "lessThan" && (e = "menej než"), t === "over" && (e = "viac než"), e.length > 0 ? e + " " : "";
21
+ }
22
+ function f(t) {
23
+ return t.charAt(0).toLowerCase() + t.slice(1);
24
+ }
25
+ const m = {
26
+ xSeconds: {
27
+ one: {
28
+ present: "sekunda",
29
+ past: "sekundou",
30
+ future: "sekundu"
31
+ },
32
+ twoFour: {
33
+ present: "{{count}} sekundy",
34
+ past: "{{count}} sekundami",
35
+ future: "{{count}} sekundy"
36
+ },
37
+ other: {
38
+ present: "{{count}} sekúnd",
39
+ past: "{{count}} sekundami",
40
+ future: "{{count}} sekúnd"
41
+ }
42
+ },
43
+ halfAMinute: {
44
+ other: {
45
+ present: "pol minúty",
46
+ past: "pol minútou",
47
+ future: "pol minúty"
48
+ }
49
+ },
50
+ xMinutes: {
51
+ one: {
52
+ present: "minúta",
53
+ past: "minútou",
54
+ future: "minútu"
55
+ },
56
+ twoFour: {
57
+ present: "{{count}} minúty",
58
+ past: "{{count}} minútami",
59
+ future: "{{count}} minúty"
60
+ },
61
+ other: {
62
+ present: "{{count}} minút",
63
+ past: "{{count}} minútami",
64
+ future: "{{count}} minút"
65
+ }
66
+ },
67
+ xHours: {
68
+ one: {
69
+ present: "hodina",
70
+ past: "hodinou",
71
+ future: "hodinu"
72
+ },
73
+ twoFour: {
74
+ present: "{{count}} hodiny",
75
+ past: "{{count}} hodinami",
76
+ future: "{{count}} hodiny"
77
+ },
78
+ other: {
79
+ present: "{{count}} hodín",
80
+ past: "{{count}} hodinami",
81
+ future: "{{count}} hodín"
82
+ }
83
+ },
84
+ xDays: {
85
+ one: {
86
+ present: "deň",
87
+ past: "dňom",
88
+ future: "deň"
89
+ },
90
+ twoFour: {
91
+ present: "{{count}} dni",
92
+ past: "{{count}} dňami",
93
+ future: "{{count}} dni"
94
+ },
95
+ other: {
96
+ present: "{{count}} dní",
97
+ past: "{{count}} dňami",
98
+ future: "{{count}} dní"
99
+ }
100
+ },
101
+ xWeeks: {
102
+ one: {
103
+ present: "týždeň",
104
+ past: "týždňom",
105
+ future: "týždeň"
106
+ },
107
+ twoFour: {
108
+ present: "{{count}} týždne",
109
+ past: "{{count}} týždňami",
110
+ future: "{{count}} týždne"
111
+ },
112
+ other: {
113
+ present: "{{count}} týždňov",
114
+ past: "{{count}} týždňami",
115
+ future: "{{count}} týždňov"
116
+ }
117
+ },
118
+ xMonths: {
119
+ one: {
120
+ present: "mesiac",
121
+ past: "mesiacom",
122
+ future: "mesiac"
123
+ },
124
+ twoFour: {
125
+ present: "{{count}} mesiace",
126
+ past: "{{count}} mesiacmi",
127
+ future: "{{count}} mesiace"
128
+ },
129
+ other: {
130
+ present: "{{count}} mesiacov",
131
+ past: "{{count}} mesiacmi",
132
+ future: "{{count}} mesiacov"
133
+ }
134
+ },
135
+ xYears: {
136
+ one: {
137
+ present: "rok",
138
+ past: "rokom",
139
+ future: "rok"
140
+ },
141
+ twoFour: {
142
+ present: "{{count}} roky",
143
+ past: "{{count}} rokmi",
144
+ future: "{{count}} roky"
145
+ },
146
+ other: {
147
+ present: "{{count}} rokov",
148
+ past: "{{count}} rokmi",
149
+ future: "{{count}} rokov"
150
+ }
151
+ }
152
+ }, d = (t, e, n) => {
153
+ const o = p(t) || "", a = f(t.substring(o.length)), u = m[a];
154
+ return n != null && n.addSuffix ? n.comparison && n.comparison > 0 ? s(o) + "o " + i(o) + r(u, e, "future") : s(o) + "pred " + i(o) + r(u, e, "past") : s(o) + i(o) + r(u, e, "present");
155
+ };
156
+ export {
157
+ d as formatDistance
158
+ };
@@ -0,0 +1,33 @@
1
+ import { buildFormatLongFn as t } from "../../_lib/buildFormatLongFn.js";
2
+ const m = {
3
+ full: "EEEE d. MMMM y",
4
+ long: "d. MMMM y",
5
+ medium: "d. M. y",
6
+ short: "d. M. y"
7
+ }, e = {
8
+ full: "H:mm:ss zzzz",
9
+ long: "H:mm:ss z",
10
+ medium: "H:mm:ss",
11
+ short: "H:mm"
12
+ }, o = {
13
+ full: "{{date}}, {{time}}",
14
+ long: "{{date}}, {{time}}",
15
+ medium: "{{date}}, {{time}}",
16
+ short: "{{date}} {{time}}"
17
+ }, a = {
18
+ date: t({
19
+ formats: m,
20
+ defaultWidth: "full"
21
+ }),
22
+ time: t({
23
+ formats: e,
24
+ defaultWidth: "full"
25
+ }),
26
+ dateTime: t({
27
+ formats: o,
28
+ defaultWidth: "full"
29
+ })
30
+ };
31
+ export {
32
+ a as formatLong
33
+ };
@@ -0,0 +1,60 @@
1
+ import { isSameWeek as a } from "../../../isSameWeek.js";
2
+ const s = [
3
+ "nedeľu",
4
+ "pondelok",
5
+ "utorok",
6
+ "stredu",
7
+ "štvrtok",
8
+ "piatok",
9
+ "sobotu"
10
+ ];
11
+ function c(e) {
12
+ const t = s[e];
13
+ switch (e) {
14
+ case 0:
15
+ /* Sun */
16
+ case 3:
17
+ /* Wed */
18
+ case 6:
19
+ return "'minulú " + t + " o' p";
20
+ default:
21
+ return "'minulý' eeee 'o' p";
22
+ }
23
+ }
24
+ function u(e) {
25
+ const t = s[e];
26
+ return e === 4 ? "'vo' eeee 'o' p" : "'v " + t + " o' p";
27
+ }
28
+ function i(e) {
29
+ const t = s[e];
30
+ switch (e) {
31
+ case 0:
32
+ /* Sun */
33
+ case 4:
34
+ /* Wed */
35
+ case 6:
36
+ return "'budúcu " + t + " o' p";
37
+ default:
38
+ return "'budúci' eeee 'o' p";
39
+ }
40
+ }
41
+ const f = {
42
+ lastWeek: (e, t, r) => {
43
+ const o = e.getDay();
44
+ return a(e, t, r) ? u(o) : c(o);
45
+ },
46
+ yesterday: "'včera o' p",
47
+ today: "'dnes o' p",
48
+ tomorrow: "'zajtra o' p",
49
+ nextWeek: (e, t, r) => {
50
+ const o = e.getDay();
51
+ return a(e, t, r) ? u(o) : i(o);
52
+ },
53
+ other: "P"
54
+ }, p = (e, t, r, o) => {
55
+ const n = f[e];
56
+ return typeof n == "function" ? n(t, r, o) : n;
57
+ };
58
+ export {
59
+ p as formatRelative
60
+ };
@@ -0,0 +1,175 @@
1
+ import { buildLocalizeFn as n } from "../../_lib/buildLocalizeFn.js";
2
+ const e = {
3
+ narrow: ["pred Kr.", "po Kr."],
4
+ abbreviated: ["pred Kr.", "po Kr."],
5
+ wide: ["pred Kristom", "po Kristovi"]
6
+ }, a = {
7
+ narrow: ["1", "2", "3", "4"],
8
+ abbreviated: ["Q1", "Q2", "Q3", "Q4"],
9
+ wide: ["1. štvrťrok", "2. štvrťrok", "3. štvrťrok", "4. štvrťrok"]
10
+ }, r = {
11
+ narrow: ["j", "f", "m", "a", "m", "j", "j", "a", "s", "o", "n", "d"],
12
+ abbreviated: [
13
+ "jan",
14
+ "feb",
15
+ "mar",
16
+ "apr",
17
+ "máj",
18
+ "jún",
19
+ "júl",
20
+ "aug",
21
+ "sep",
22
+ "okt",
23
+ "nov",
24
+ "dec"
25
+ ],
26
+ wide: [
27
+ "január",
28
+ "február",
29
+ "marec",
30
+ "apríl",
31
+ "máj",
32
+ "jún",
33
+ "júl",
34
+ "august",
35
+ "september",
36
+ "október",
37
+ "november",
38
+ "december"
39
+ ]
40
+ }, t = {
41
+ narrow: ["j", "f", "m", "a", "m", "j", "j", "a", "s", "o", "n", "d"],
42
+ abbreviated: [
43
+ "jan",
44
+ "feb",
45
+ "mar",
46
+ "apr",
47
+ "máj",
48
+ "jún",
49
+ "júl",
50
+ "aug",
51
+ "sep",
52
+ "okt",
53
+ "nov",
54
+ "dec"
55
+ ],
56
+ wide: [
57
+ "januára",
58
+ "februára",
59
+ "marca",
60
+ "apríla",
61
+ "mája",
62
+ "júna",
63
+ "júla",
64
+ "augusta",
65
+ "septembra",
66
+ "októbra",
67
+ "novembra",
68
+ "decembra"
69
+ ]
70
+ }, i = {
71
+ narrow: ["n", "p", "u", "s", "š", "p", "s"],
72
+ short: ["ne", "po", "ut", "st", "št", "pi", "so"],
73
+ abbreviated: ["ne", "po", "ut", "st", "št", "pi", "so"],
74
+ wide: [
75
+ "nedeľa",
76
+ "pondelok",
77
+ "utorok",
78
+ "streda",
79
+ "štvrtok",
80
+ "piatok",
81
+ "sobota"
82
+ ]
83
+ }, d = {
84
+ narrow: {
85
+ am: "AM",
86
+ pm: "PM",
87
+ midnight: "poln.",
88
+ noon: "pol.",
89
+ morning: "ráno",
90
+ afternoon: "pop.",
91
+ evening: "več.",
92
+ night: "noc"
93
+ },
94
+ abbreviated: {
95
+ am: "AM",
96
+ pm: "PM",
97
+ midnight: "poln.",
98
+ noon: "pol.",
99
+ morning: "ráno",
100
+ afternoon: "popol.",
101
+ evening: "večer",
102
+ night: "noc"
103
+ },
104
+ wide: {
105
+ am: "AM",
106
+ pm: "PM",
107
+ midnight: "polnoc",
108
+ noon: "poludnie",
109
+ morning: "ráno",
110
+ afternoon: "popoludnie",
111
+ evening: "večer",
112
+ night: "noc"
113
+ }
114
+ }, m = {
115
+ narrow: {
116
+ am: "AM",
117
+ pm: "PM",
118
+ midnight: "o poln.",
119
+ noon: "nap.",
120
+ morning: "ráno",
121
+ afternoon: "pop.",
122
+ evening: "več.",
123
+ night: "v n."
124
+ },
125
+ abbreviated: {
126
+ am: "AM",
127
+ pm: "PM",
128
+ midnight: "o poln.",
129
+ noon: "napol.",
130
+ morning: "ráno",
131
+ afternoon: "popol.",
132
+ evening: "večer",
133
+ night: "v noci"
134
+ },
135
+ wide: {
136
+ am: "AM",
137
+ pm: "PM",
138
+ midnight: "o polnoci",
139
+ noon: "napoludnie",
140
+ morning: "ráno",
141
+ afternoon: "popoludní",
142
+ evening: "večer",
143
+ night: "v noci"
144
+ }
145
+ }, p = (o, l) => Number(o) + ".", v = {
146
+ ordinalNumber: p,
147
+ era: n({
148
+ values: e,
149
+ defaultWidth: "wide"
150
+ }),
151
+ quarter: n({
152
+ values: a,
153
+ defaultWidth: "wide",
154
+ argumentCallback: (o) => o - 1
155
+ }),
156
+ month: n({
157
+ values: r,
158
+ defaultWidth: "wide",
159
+ formattingValues: t,
160
+ defaultFormattingWidth: "wide"
161
+ }),
162
+ day: n({
163
+ values: i,
164
+ defaultWidth: "wide"
165
+ }),
166
+ dayPeriod: n({
167
+ values: d,
168
+ defaultWidth: "wide",
169
+ formattingValues: m,
170
+ defaultFormattingWidth: "wide"
171
+ })
172
+ };
173
+ export {
174
+ v as localize
175
+ };
@@ -0,0 +1,111 @@
1
+ import { buildMatchFn as a } from "../../_lib/buildMatchFn.js";
2
+ import { buildMatchPatternFn as r } from "../../_lib/buildMatchPatternFn.js";
3
+ const e = /^(\d+)\.?/i, i = /\d+/i, n = {
4
+ narrow: /^(pred Kr\.|pred n\. l\.|po Kr\.|n\. l\.)/i,
5
+ abbreviated: /^(pred Kr\.|pred n\. l\.|po Kr\.|n\. l\.)/i,
6
+ wide: /^(pred Kristom|pred na[šs][íi]m letopo[čc]tom|po Kristovi|n[áa][šs]ho letopo[čc]tu)/i
7
+ }, o = {
8
+ any: [/^pr/i, /^(po|n)/i]
9
+ }, s = {
10
+ narrow: /^[1234]/i,
11
+ abbreviated: /^q[1234]/i,
12
+ wide: /^[1234]\. [šs]tvr[ťt]rok/i
13
+ }, p = {
14
+ any: [/1/i, /2/i, /3/i, /4/i]
15
+ }, d = {
16
+ narrow: /^[jfmasond]/i,
17
+ abbreviated: /^(jan|feb|mar|apr|m[áa]j|j[úu]n|j[úu]l|aug|sep|okt|nov|dec)/i,
18
+ wide: /^(janu[áa]ra?|febru[áa]ra?|(marec|marca)|apr[íi]la?|m[áa]ja?|j[úu]na?|j[úu]la?|augusta?|(september|septembra)|(okt[óo]ber|okt[óo]bra)|(november|novembra)|(december|decembra))/i
19
+ }, m = {
20
+ narrow: [
21
+ /^j/i,
22
+ /^f/i,
23
+ /^m/i,
24
+ /^a/i,
25
+ /^m/i,
26
+ /^j/i,
27
+ /^j/i,
28
+ /^a/i,
29
+ /^s/i,
30
+ /^o/i,
31
+ /^n/i,
32
+ /^d/i
33
+ ],
34
+ any: [
35
+ /^ja/i,
36
+ /^f/i,
37
+ /^mar/i,
38
+ /^ap/i,
39
+ /^m[áa]j/i,
40
+ /^j[úu]n/i,
41
+ /^j[úu]l/i,
42
+ /^au/i,
43
+ /^s/i,
44
+ /^o/i,
45
+ /^n/i,
46
+ /^d/i
47
+ ]
48
+ }, c = {
49
+ narrow: /^[npusšp]/i,
50
+ short: /^(ne|po|ut|st|št|pi|so)/i,
51
+ abbreviated: /^(ne|po|ut|st|št|pi|so)/i,
52
+ wide: /^(nede[ľl]a|pondelok|utorok|streda|[šs]tvrtok|piatok|sobota])/i
53
+ }, l = {
54
+ narrow: [/^n/i, /^p/i, /^u/i, /^s/i, /^š/i, /^p/i, /^s/i],
55
+ any: [/^n/i, /^po/i, /^u/i, /^st/i, /^(št|stv)/i, /^pi/i, /^so/i]
56
+ }, u = {
57
+ narrow: /^(am|pm|(o )?poln\.?|(nap\.?|pol\.?)|r[áa]no|pop\.?|ve[čc]\.?|(v n\.?|noc))/i,
58
+ abbreviated: /^(am|pm|(o )?poln\.?|(napol\.?|pol\.?)|r[áa]no|pop\.?|ve[čc]er|(v )?noci?)/i,
59
+ any: /^(am|pm|(o )?polnoci?|(na)?poludnie|r[áa]no|popoludn(ie|í|i)|ve[čc]er|(v )?noci?)/i
60
+ }, h = {
61
+ any: {
62
+ am: /^am/i,
63
+ pm: /^pm/i,
64
+ midnight: /poln/i,
65
+ noon: /^(nap|(na)?pol(\.|u))/i,
66
+ morning: /^r[áa]no/i,
67
+ afternoon: /^pop/i,
68
+ evening: /^ve[čc]/i,
69
+ night: /^(noc|v n\.)/i
70
+ }
71
+ }, v = {
72
+ ordinalNumber: r({
73
+ matchPattern: e,
74
+ parsePattern: i,
75
+ valueCallback: (t) => parseInt(t, 10)
76
+ }),
77
+ era: a({
78
+ matchPatterns: n,
79
+ defaultMatchWidth: "wide",
80
+ parsePatterns: o,
81
+ defaultParseWidth: "any"
82
+ }),
83
+ quarter: a({
84
+ matchPatterns: s,
85
+ defaultMatchWidth: "wide",
86
+ parsePatterns: p,
87
+ defaultParseWidth: "any",
88
+ valueCallback: (t) => t + 1
89
+ }),
90
+ month: a({
91
+ matchPatterns: d,
92
+ defaultMatchWidth: "wide",
93
+ parsePatterns: m,
94
+ defaultParseWidth: "any"
95
+ }),
96
+ day: a({
97
+ matchPatterns: c,
98
+ defaultMatchWidth: "wide",
99
+ parsePatterns: l,
100
+ defaultParseWidth: "any"
101
+ }),
102
+ dayPeriod: a({
103
+ matchPatterns: u,
104
+ defaultMatchWidth: "any",
105
+ parsePatterns: h,
106
+ defaultParseWidth: "any"
107
+ })
108
+ };
109
+ export {
110
+ v as match
111
+ };
@@ -0,0 +1,21 @@
1
+ import { formatDistance as o } from "./sk/_lib/formatDistance.js";
2
+ import { formatLong as t } from "./sk/_lib/formatLong.js";
3
+ import { formatRelative as a } from "./sk/_lib/formatRelative.js";
4
+ import { localize as r } from "./sk/_lib/localize.js";
5
+ import { match as m } from "./sk/_lib/match.js";
6
+ const c = {
7
+ code: "sk",
8
+ formatDistance: o,
9
+ formatLong: t,
10
+ formatRelative: a,
11
+ localize: r,
12
+ match: m,
13
+ options: {
14
+ weekStartsOn: 1,
15
+ firstWeekContainsDate: 4
16
+ }
17
+ };
18
+ export {
19
+ c as default,
20
+ c as sk
21
+ };
@@ -0,0 +1,11 @@
1
+ import { getDefaultOptions as s } from "./_lib/defaultOptions.js";
2
+ import { toDate as w } from "./toDate.js";
3
+ function m(u, e) {
4
+ var c, O, l, k;
5
+ const a = s(), r = (e == null ? void 0 : e.weekStartsOn) ?? ((O = (c = e == null ? void 0 : e.locale) == null ? void 0 : c.options) == null ? void 0 : O.weekStartsOn) ?? a.weekStartsOn ?? ((k = (l = a.locale) == null ? void 0 : l.options) == null ? void 0 : k.weekStartsOn) ?? 0, t = w(u, e == null ? void 0 : e.in), f = t.getDay(), d = (f < r ? 7 : 0) + f - r;
6
+ return t.setDate(t.getDate() - d), t.setHours(0, 0, 0, 0), t;
7
+ }
8
+ export {
9
+ m as default,
10
+ m as startOfWeek
11
+ };
@@ -0,0 +1,8 @@
1
+ import { constructFrom as r } from "./constructFrom.js";
2
+ function e(t, o) {
3
+ return r(o || t, t);
4
+ }
5
+ export {
6
+ e as default,
7
+ e as toDate
8
+ };