@vlrc-fe/components 2.2.0 → 2.3.0

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 (215) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/dist/DataTable/DataTable.d.ts.map +1 -1
  3. package/dist/DataTable/components/DataTableTable.d.ts.map +1 -1
  4. package/dist/Form/Form.d.ts.map +1 -1
  5. package/dist/Form/FormDatePicker/FormDatePicker.d.ts.map +1 -1
  6. package/dist/Form/FormDatePicker/RangeDatePicker.d.ts.map +1 -1
  7. package/dist/Form/FormDatePicker/SingleDatePicker.d.ts +4 -3
  8. package/dist/Form/FormDatePicker/SingleDatePicker.d.ts.map +1 -1
  9. package/dist/Form/FormDatePicker/TimeInput.d.ts +3 -4
  10. package/dist/Form/FormDatePicker/TimeInput.d.ts.map +1 -1
  11. package/dist/Form/FormDatePicker/TimePicker.d.ts +3 -3
  12. package/dist/Form/FormDatePicker/TimePicker.d.ts.map +1 -1
  13. package/dist/Form/FormDatePicker/types.d.ts +1 -0
  14. package/dist/Form/FormDatePicker/types.d.ts.map +1 -1
  15. package/dist/Form/FormDatePicker/useFormDatePicker.d.ts +2 -2
  16. package/dist/Form/FormDatePicker/useFormDatePicker.d.ts.map +1 -1
  17. package/dist/Form/FormNumberInput/FormNumberInput.d.ts.map +1 -1
  18. package/dist/Form/FormNumberInput/StepperControls.d.ts.map +1 -1
  19. package/dist/Form/FormNumberInput/useFormNumberInput.d.ts.map +1 -1
  20. package/dist/MultiSelect/MultiSelect.d.ts.map +1 -1
  21. package/dist/MultiSelect/renderers.d.ts +2 -2
  22. package/dist/MultiSelect/renderers.d.ts.map +1 -1
  23. package/dist/assets/stylex.css +450 -0
  24. package/dist/index.cjs +1 -1
  25. package/dist/index.js +25 -25
  26. package/dist/index101.cjs +1 -1
  27. package/dist/index101.js +120 -91
  28. package/dist/index103.cjs +1 -1
  29. package/dist/index103.js +32 -15
  30. package/dist/index107.cjs +1 -1
  31. package/dist/index107.js +245 -132
  32. package/dist/index109.cjs +1 -1
  33. package/dist/index109.js +319 -138
  34. package/dist/index113.cjs +1 -1
  35. package/dist/index113.js +230 -95
  36. package/dist/index119.cjs +1 -1
  37. package/dist/index119.js +62 -35
  38. package/dist/index120.cjs +1 -1
  39. package/dist/index120.js +71 -32
  40. package/dist/index121.cjs +1 -1
  41. package/dist/index121.js +201 -79
  42. package/dist/index125.cjs +1 -1
  43. package/dist/index125.js +661 -288
  44. package/dist/index129.cjs +1 -1
  45. package/dist/index129.js +6 -5
  46. package/dist/index144.cjs +1 -1
  47. package/dist/index144.js +33 -22
  48. package/dist/index148.cjs +1 -1
  49. package/dist/index148.js +95 -92
  50. package/dist/index151.cjs +1 -1
  51. package/dist/index151.js +56 -56
  52. package/dist/index152.cjs +1 -1
  53. package/dist/index152.js +87 -3
  54. package/dist/index153.cjs +1 -1
  55. package/dist/index153.js +321 -85
  56. package/dist/index154.cjs +1 -1
  57. package/dist/index154.js +160 -287
  58. package/dist/index155.cjs +1 -1
  59. package/dist/index155.js +198 -162
  60. package/dist/index156.cjs +1 -1
  61. package/dist/index156.js +24 -125
  62. package/dist/index157.cjs +1 -1
  63. package/dist/index157.js +8 -25
  64. package/dist/index158.cjs +1 -1
  65. package/dist/index158.js +13 -5
  66. package/dist/index159.cjs +1 -1
  67. package/dist/index159.js +18 -13
  68. package/dist/index160.cjs +1 -1
  69. package/dist/index160.js +12 -16
  70. package/dist/index161.cjs +1 -1
  71. package/dist/index161.js +5 -17
  72. package/dist/index162.cjs +1 -1
  73. package/dist/index162.js +6 -5
  74. package/dist/index163.cjs +1 -1
  75. package/dist/index163.js +6 -5
  76. package/dist/index164.cjs +1 -1
  77. package/dist/index164.js +5 -6
  78. package/dist/index165.cjs +1 -1
  79. package/dist/index165.js +5 -5
  80. package/dist/index166.cjs +1 -1
  81. package/dist/index166.js +7 -5
  82. package/dist/index167.cjs +1 -1
  83. package/dist/index167.js +68 -8
  84. package/dist/index168.cjs +1 -1
  85. package/dist/index168.js +9 -67
  86. package/dist/index169.cjs +1 -1
  87. package/dist/index169.js +201 -10
  88. package/dist/index170.cjs +1 -1
  89. package/dist/index170.js +101 -179
  90. package/dist/index171.cjs +1 -1
  91. package/dist/index171.js +24 -116
  92. package/dist/index172.cjs +1 -1
  93. package/dist/index172.js +18 -30
  94. package/dist/index173.cjs +1 -1
  95. package/dist/index173.js +66 -17
  96. package/dist/index174.cjs +1 -1
  97. package/dist/index174.js +30 -67
  98. package/dist/index175.cjs +1 -1
  99. package/dist/index175.js +10 -31
  100. package/dist/index176.cjs +1 -1
  101. package/dist/index176.js +279 -10
  102. package/dist/index177.cjs +1 -1
  103. package/dist/index177.js +125 -248
  104. package/dist/index178.cjs +1 -1
  105. package/dist/index178.js +18 -155
  106. package/dist/index179.cjs +1 -1
  107. package/dist/index179.js +9 -19
  108. package/dist/index180.cjs +1 -1
  109. package/dist/index180.js +12 -8
  110. package/dist/index181.cjs +1 -1
  111. package/dist/index181.js +6 -12
  112. package/dist/index182.cjs +1 -1
  113. package/dist/index182.js +6 -6
  114. package/dist/index183.cjs +1 -1
  115. package/dist/index183.js +9 -6
  116. package/dist/index184.cjs +1 -1
  117. package/dist/index184.js +8 -9
  118. package/dist/index185.cjs +1 -1
  119. package/dist/index185.js +4 -8
  120. package/dist/index186.cjs +1 -1
  121. package/dist/index186.js +6 -4
  122. package/dist/index187.cjs +1 -1
  123. package/dist/index187.js +6 -6
  124. package/dist/index188.cjs +1 -1
  125. package/dist/index188.js +8 -6
  126. package/dist/index189.cjs +1 -1
  127. package/dist/index189.js +9 -8
  128. package/dist/index190.cjs +1 -1
  129. package/dist/index190.js +12 -8
  130. package/dist/index191.cjs +1 -1
  131. package/dist/index191.js +7 -11
  132. package/dist/index192.cjs +1 -1
  133. package/dist/index192.js +7 -7
  134. package/dist/index193.cjs +1 -1
  135. package/dist/index193.js +4 -9
  136. package/dist/index194.cjs +1 -1
  137. package/dist/index194.js +42 -5
  138. package/dist/index195.cjs +1 -1
  139. package/dist/index195.js +375 -29
  140. package/dist/index196.cjs +1 -1
  141. package/dist/index196.js +35 -386
  142. package/dist/index197.cjs +1 -1
  143. package/dist/index197.js +22 -37
  144. package/dist/index198.cjs +1 -1
  145. package/dist/index198.js +56 -20
  146. package/dist/index199.cjs +1 -1
  147. package/dist/index199.js +36 -54
  148. package/dist/index200.cjs +1 -1
  149. package/dist/index200.js +102 -54
  150. package/dist/index201.cjs +1 -1
  151. package/dist/index201.js +76 -54
  152. package/dist/index202.cjs +1 -1
  153. package/dist/index202.js +68 -66
  154. package/dist/index203.cjs +1 -1
  155. package/dist/index203.js +147 -63
  156. package/dist/index204.cjs +1 -1
  157. package/dist/index204.js +69 -91
  158. package/dist/index205.cjs +9 -1
  159. package/dist/index205.js +585 -62
  160. package/dist/index206.cjs +1 -9
  161. package/dist/index206.js +65 -586
  162. package/dist/index207.cjs +1 -1
  163. package/dist/index207.js +42 -41
  164. package/dist/index208.cjs +1 -1
  165. package/dist/index208.js +64 -46
  166. package/dist/index209.cjs +1 -1
  167. package/dist/index209.js +48 -64
  168. package/dist/index210.cjs +1 -1
  169. package/dist/index210.js +75 -47
  170. package/dist/index211.cjs +1 -1
  171. package/dist/index211.js +173 -69
  172. package/dist/index212.cjs +1 -1
  173. package/dist/index212.js +24 -180
  174. package/dist/index213.cjs +1 -1
  175. package/dist/index213.js +25 -24
  176. package/dist/index214.cjs +1 -1
  177. package/dist/index214.js +61 -24
  178. package/dist/index215.cjs +1 -1
  179. package/dist/index215.js +408 -49
  180. package/dist/index216.cjs +1 -1
  181. package/dist/index216.js +25 -422
  182. package/dist/index37.cjs +1 -1
  183. package/dist/index37.js +123 -65
  184. package/dist/index42.cjs +1 -1
  185. package/dist/index42.js +175 -88
  186. package/dist/index91.cjs +1 -1
  187. package/dist/index91.js +252 -124
  188. package/dist/ui/calendar.d.ts +5 -2
  189. package/dist/ui/calendar.d.ts.map +1 -1
  190. package/dist/ui/carousel.d.ts +19 -5
  191. package/dist/ui/carousel.d.ts.map +1 -1
  192. package/dist/ui/context-menu.d.ts +37 -12
  193. package/dist/ui/context-menu.d.ts.map +1 -1
  194. package/dist/ui/form.d.ts +15 -4
  195. package/dist/ui/form.d.ts.map +1 -1
  196. package/dist/ui/hover-card.d.ts +5 -1
  197. package/dist/ui/hover-card.d.ts.map +1 -1
  198. package/dist/ui/item.d.ts +43 -18
  199. package/dist/ui/item.d.ts.map +1 -1
  200. package/dist/ui/menubar.d.ts +45 -14
  201. package/dist/ui/menubar.d.ts.map +1 -1
  202. package/dist/ui/navigation-menu.d.ts +34 -10
  203. package/dist/ui/navigation-menu.d.ts.map +1 -1
  204. package/dist/ui/resizable.d.ts +9 -3
  205. package/dist/ui/resizable.d.ts.map +1 -1
  206. package/dist/ui/scroll-area.d.ts +9 -2
  207. package/dist/ui/scroll-area.d.ts.map +1 -1
  208. package/dist/ui/select.d.ts +19 -5
  209. package/dist/ui/select.d.ts.map +1 -1
  210. package/dist/ui/sidebar.d.ts +99 -37
  211. package/dist/ui/sidebar.d.ts.map +1 -1
  212. package/dist/ui/sonner.d.ts.map +1 -1
  213. package/package.json +1 -1
  214. package/dist/index217.cjs +0 -1
  215. package/dist/index217.js +0 -25
package/dist/index170.js CHANGED
@@ -1,201 +1,123 @@
1
- import { buildLocalizeFn as e } from "./index159.js";
2
- var t = {
3
- ordinalNumber: (e, t) => {
4
- let n = Number(e), r = n % 100;
5
- if (r > 20 || r < 10) switch (r % 10) {
6
- case 1: return n + "st";
7
- case 2: return n + "nd";
8
- case 3: return n + "rd";
9
- }
10
- return n + "th";
11
- },
1
+ import { buildMatchFn as e } from "./index159.js";
2
+ import { buildMatchPatternFn as t } from "./index160.js";
3
+ var n = {
4
+ ordinalNumber: t({
5
+ matchPattern: /^(\d+)(th|st|nd|rd)?/i,
6
+ parsePattern: /\d+/i,
7
+ valueCallback: (e) => parseInt(e, 10)
8
+ }),
12
9
  era: e({
13
- values: {
14
- narrow: ["B", "A"],
15
- abbreviated: ["BC", "AD"],
16
- wide: ["Before Christ", "Anno Domini"]
10
+ matchPatterns: {
11
+ narrow: /^(b|a)/i,
12
+ abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
13
+ wide: /^(before christ|before common era|anno domini|common era)/i
17
14
  },
18
- defaultWidth: "wide"
15
+ defaultMatchWidth: "wide",
16
+ parsePatterns: { any: [/^b/i, /^(a|c)/i] },
17
+ defaultParseWidth: "any"
19
18
  }),
20
19
  quarter: e({
21
- values: {
22
- narrow: [
23
- "1",
24
- "2",
25
- "3",
26
- "4"
27
- ],
28
- abbreviated: [
29
- "Q1",
30
- "Q2",
31
- "Q3",
32
- "Q4"
33
- ],
34
- wide: [
35
- "1st quarter",
36
- "2nd quarter",
37
- "3rd quarter",
38
- "4th quarter"
39
- ]
20
+ matchPatterns: {
21
+ narrow: /^[1234]/i,
22
+ abbreviated: /^q[1234]/i,
23
+ wide: /^[1234](th|st|nd|rd)? quarter/i
40
24
  },
41
- defaultWidth: "wide",
42
- argumentCallback: (e) => e - 1
25
+ defaultMatchWidth: "wide",
26
+ parsePatterns: { any: [
27
+ /1/i,
28
+ /2/i,
29
+ /3/i,
30
+ /4/i
31
+ ] },
32
+ defaultParseWidth: "any",
33
+ valueCallback: (e) => e + 1
43
34
  }),
44
35
  month: e({
45
- values: {
36
+ matchPatterns: {
37
+ narrow: /^[jfmasond]/i,
38
+ abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
39
+ wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
40
+ },
41
+ defaultMatchWidth: "wide",
42
+ parsePatterns: {
46
43
  narrow: [
47
- "J",
48
- "F",
49
- "M",
50
- "A",
51
- "M",
52
- "J",
53
- "J",
54
- "A",
55
- "S",
56
- "O",
57
- "N",
58
- "D"
44
+ /^j/i,
45
+ /^f/i,
46
+ /^m/i,
47
+ /^a/i,
48
+ /^m/i,
49
+ /^j/i,
50
+ /^j/i,
51
+ /^a/i,
52
+ /^s/i,
53
+ /^o/i,
54
+ /^n/i,
55
+ /^d/i
59
56
  ],
60
- abbreviated: [
61
- "Jan",
62
- "Feb",
63
- "Mar",
64
- "Apr",
65
- "May",
66
- "Jun",
67
- "Jul",
68
- "Aug",
69
- "Sep",
70
- "Oct",
71
- "Nov",
72
- "Dec"
73
- ],
74
- wide: [
75
- "January",
76
- "February",
77
- "March",
78
- "April",
79
- "May",
80
- "June",
81
- "July",
82
- "August",
83
- "September",
84
- "October",
85
- "November",
86
- "December"
57
+ any: [
58
+ /^ja/i,
59
+ /^f/i,
60
+ /^mar/i,
61
+ /^ap/i,
62
+ /^may/i,
63
+ /^jun/i,
64
+ /^jul/i,
65
+ /^au/i,
66
+ /^s/i,
67
+ /^o/i,
68
+ /^n/i,
69
+ /^d/i
87
70
  ]
88
71
  },
89
- defaultWidth: "wide"
72
+ defaultParseWidth: "any"
90
73
  }),
91
74
  day: e({
92
- values: {
75
+ matchPatterns: {
76
+ narrow: /^[smtwf]/i,
77
+ short: /^(su|mo|tu|we|th|fr|sa)/i,
78
+ abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
79
+ wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
80
+ },
81
+ defaultMatchWidth: "wide",
82
+ parsePatterns: {
93
83
  narrow: [
94
- "S",
95
- "M",
96
- "T",
97
- "W",
98
- "T",
99
- "F",
100
- "S"
101
- ],
102
- short: [
103
- "Su",
104
- "Mo",
105
- "Tu",
106
- "We",
107
- "Th",
108
- "Fr",
109
- "Sa"
84
+ /^s/i,
85
+ /^m/i,
86
+ /^t/i,
87
+ /^w/i,
88
+ /^t/i,
89
+ /^f/i,
90
+ /^s/i
110
91
  ],
111
- abbreviated: [
112
- "Sun",
113
- "Mon",
114
- "Tue",
115
- "Wed",
116
- "Thu",
117
- "Fri",
118
- "Sat"
119
- ],
120
- wide: [
121
- "Sunday",
122
- "Monday",
123
- "Tuesday",
124
- "Wednesday",
125
- "Thursday",
126
- "Friday",
127
- "Saturday"
92
+ any: [
93
+ /^su/i,
94
+ /^m/i,
95
+ /^tu/i,
96
+ /^w/i,
97
+ /^th/i,
98
+ /^f/i,
99
+ /^sa/i
128
100
  ]
129
101
  },
130
- defaultWidth: "wide"
102
+ defaultParseWidth: "any"
131
103
  }),
132
104
  dayPeriod: e({
133
- values: {
134
- narrow: {
135
- am: "a",
136
- pm: "p",
137
- midnight: "mi",
138
- noon: "n",
139
- morning: "morning",
140
- afternoon: "afternoon",
141
- evening: "evening",
142
- night: "night"
143
- },
144
- abbreviated: {
145
- am: "AM",
146
- pm: "PM",
147
- midnight: "midnight",
148
- noon: "noon",
149
- morning: "morning",
150
- afternoon: "afternoon",
151
- evening: "evening",
152
- night: "night"
153
- },
154
- wide: {
155
- am: "a.m.",
156
- pm: "p.m.",
157
- midnight: "midnight",
158
- noon: "noon",
159
- morning: "morning",
160
- afternoon: "afternoon",
161
- evening: "evening",
162
- night: "night"
163
- }
164
- },
165
- defaultWidth: "wide",
166
- formattingValues: {
167
- narrow: {
168
- am: "a",
169
- pm: "p",
170
- midnight: "mi",
171
- noon: "n",
172
- morning: "in the morning",
173
- afternoon: "in the afternoon",
174
- evening: "in the evening",
175
- night: "at night"
176
- },
177
- abbreviated: {
178
- am: "AM",
179
- pm: "PM",
180
- midnight: "midnight",
181
- noon: "noon",
182
- morning: "in the morning",
183
- afternoon: "in the afternoon",
184
- evening: "in the evening",
185
- night: "at night"
186
- },
187
- wide: {
188
- am: "a.m.",
189
- pm: "p.m.",
190
- midnight: "midnight",
191
- noon: "noon",
192
- morning: "in the morning",
193
- afternoon: "in the afternoon",
194
- evening: "in the evening",
195
- night: "at night"
196
- }
105
+ matchPatterns: {
106
+ narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
107
+ any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
197
108
  },
198
- defaultFormattingWidth: "wide"
109
+ defaultMatchWidth: "any",
110
+ parsePatterns: { any: {
111
+ am: /^a/i,
112
+ pm: /^p/i,
113
+ midnight: /^mi/i,
114
+ noon: /^no/i,
115
+ morning: /morning/i,
116
+ afternoon: /afternoon/i,
117
+ evening: /evening/i,
118
+ night: /night/i
119
+ } },
120
+ defaultParseWidth: "any"
199
121
  })
200
122
  };
201
- export { t as localize };
123
+ export { n as match };
package/dist/index171.cjs CHANGED
@@ -1 +1 @@
1
- const e=require("./index160.cjs");var t={ordinalNumber:require("./index161.cjs").buildMatchPatternFn({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:e.buildMatchFn({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:`any`}),quarter:e.buildMatchFn({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:e=>e+1}),month:e.buildMatchFn({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:e.buildMatchFn({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:`any`}),dayPeriod:e.buildMatchFn({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:`any`})};exports.match=t;
1
+ const e=require("./index157.cjs");var t={date:e.buildFormatLongFn({formats:{full:`EEEE, MMMM do, y`,long:`MMMM do, y`,medium:`MMM d, y`,short:`MM/dd/yyyy`},defaultWidth:`full`}),time:e.buildFormatLongFn({formats:{full:`h:mm:ss a zzzz`,long:`h:mm:ss a z`,medium:`h:mm:ss a`,short:`h:mm a`},defaultWidth:`full`}),dateTime:e.buildFormatLongFn({formats:{full:`{{date}} 'at' {{time}}`,long:`{{date}} 'at' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})};exports.formatLong=t;
package/dist/index171.js CHANGED
@@ -1,123 +1,31 @@
1
- import { buildMatchFn as e } from "./index160.js";
2
- import { buildMatchPatternFn as t } from "./index161.js";
3
- var n = {
4
- ordinalNumber: t({
5
- matchPattern: /^(\d+)(th|st|nd|rd)?/i,
6
- parsePattern: /\d+/i,
7
- valueCallback: (e) => parseInt(e, 10)
8
- }),
9
- era: e({
10
- matchPatterns: {
11
- narrow: /^(b|a)/i,
12
- abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
13
- wide: /^(before christ|before common era|anno domini|common era)/i
14
- },
15
- defaultMatchWidth: "wide",
16
- parsePatterns: { any: [/^b/i, /^(a|c)/i] },
17
- defaultParseWidth: "any"
18
- }),
19
- quarter: e({
20
- matchPatterns: {
21
- narrow: /^[1234]/i,
22
- abbreviated: /^q[1234]/i,
23
- wide: /^[1234](th|st|nd|rd)? quarter/i
1
+ import { buildFormatLongFn as e } from "./index157.js";
2
+ var t = {
3
+ date: e({
4
+ formats: {
5
+ full: "EEEE, MMMM do, y",
6
+ long: "MMMM do, y",
7
+ medium: "MMM d, y",
8
+ short: "MM/dd/yyyy"
24
9
  },
25
- defaultMatchWidth: "wide",
26
- parsePatterns: { any: [
27
- /1/i,
28
- /2/i,
29
- /3/i,
30
- /4/i
31
- ] },
32
- defaultParseWidth: "any",
33
- valueCallback: (e) => e + 1
10
+ defaultWidth: "full"
34
11
  }),
35
- month: e({
36
- matchPatterns: {
37
- narrow: /^[jfmasond]/i,
38
- abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
39
- wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
40
- },
41
- defaultMatchWidth: "wide",
42
- parsePatterns: {
43
- narrow: [
44
- /^j/i,
45
- /^f/i,
46
- /^m/i,
47
- /^a/i,
48
- /^m/i,
49
- /^j/i,
50
- /^j/i,
51
- /^a/i,
52
- /^s/i,
53
- /^o/i,
54
- /^n/i,
55
- /^d/i
56
- ],
57
- any: [
58
- /^ja/i,
59
- /^f/i,
60
- /^mar/i,
61
- /^ap/i,
62
- /^may/i,
63
- /^jun/i,
64
- /^jul/i,
65
- /^au/i,
66
- /^s/i,
67
- /^o/i,
68
- /^n/i,
69
- /^d/i
70
- ]
71
- },
72
- defaultParseWidth: "any"
73
- }),
74
- day: e({
75
- matchPatterns: {
76
- narrow: /^[smtwf]/i,
77
- short: /^(su|mo|tu|we|th|fr|sa)/i,
78
- abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
79
- wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
80
- },
81
- defaultMatchWidth: "wide",
82
- parsePatterns: {
83
- narrow: [
84
- /^s/i,
85
- /^m/i,
86
- /^t/i,
87
- /^w/i,
88
- /^t/i,
89
- /^f/i,
90
- /^s/i
91
- ],
92
- any: [
93
- /^su/i,
94
- /^m/i,
95
- /^tu/i,
96
- /^w/i,
97
- /^th/i,
98
- /^f/i,
99
- /^sa/i
100
- ]
12
+ time: e({
13
+ formats: {
14
+ full: "h:mm:ss a zzzz",
15
+ long: "h:mm:ss a z",
16
+ medium: "h:mm:ss a",
17
+ short: "h:mm a"
101
18
  },
102
- defaultParseWidth: "any"
19
+ defaultWidth: "full"
103
20
  }),
104
- dayPeriod: e({
105
- matchPatterns: {
106
- narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
107
- any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
21
+ dateTime: e({
22
+ formats: {
23
+ full: "{{date}} 'at' {{time}}",
24
+ long: "{{date}} 'at' {{time}}",
25
+ medium: "{{date}}, {{time}}",
26
+ short: "{{date}}, {{time}}"
108
27
  },
109
- defaultMatchWidth: "any",
110
- parsePatterns: { any: {
111
- am: /^a/i,
112
- pm: /^p/i,
113
- midnight: /^mi/i,
114
- noon: /^no/i,
115
- morning: /morning/i,
116
- afternoon: /afternoon/i,
117
- evening: /evening/i,
118
- night: /night/i
119
- } },
120
- defaultParseWidth: "any"
28
+ defaultWidth: "full"
121
29
  })
122
30
  };
123
- export { n as match };
31
+ export { t as formatLong };
package/dist/index172.cjs CHANGED
@@ -1 +1 @@
1
- const e=require("./index158.cjs");var t={date:e.buildFormatLongFn({formats:{full:`EEEE, MMMM do, y`,long:`MMMM do, y`,medium:`MMM d, y`,short:`MM/dd/yyyy`},defaultWidth:`full`}),time:e.buildFormatLongFn({formats:{full:`h:mm:ss a zzzz`,long:`h:mm:ss a z`,medium:`h:mm:ss a`,short:`h:mm a`},defaultWidth:`full`}),dateTime:e.buildFormatLongFn({formats:{full:`{{date}} 'at' {{time}}`,long:`{{date}} 'at' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})};exports.formatLong=t;
1
+ const e=require("./index167.cjs"),t=require("./index168.cjs"),n=require("./index169.cjs"),r=require("./index170.cjs"),i=require("./index171.cjs");var a={code:`en-US`,formatDistance:e.formatDistance,formatLong:i.formatLong,formatRelative:t.formatRelative,localize:n.localize,match:r.match,options:{weekStartsOn:0,firstWeekContainsDate:1}};exports.default=a,exports.enUS=a;
package/dist/index172.js CHANGED
@@ -1,31 +1,19 @@
1
- import { buildFormatLongFn as e } from "./index158.js";
2
- var t = {
3
- date: e({
4
- formats: {
5
- full: "EEEE, MMMM do, y",
6
- long: "MMMM do, y",
7
- medium: "MMM d, y",
8
- short: "MM/dd/yyyy"
9
- },
10
- defaultWidth: "full"
11
- }),
12
- time: e({
13
- formats: {
14
- full: "h:mm:ss a zzzz",
15
- long: "h:mm:ss a z",
16
- medium: "h:mm:ss a",
17
- short: "h:mm a"
18
- },
19
- defaultWidth: "full"
20
- }),
21
- dateTime: e({
22
- formats: {
23
- full: "{{date}} 'at' {{time}}",
24
- long: "{{date}} 'at' {{time}}",
25
- medium: "{{date}}, {{time}}",
26
- short: "{{date}}, {{time}}"
27
- },
28
- defaultWidth: "full"
29
- })
1
+ import { formatDistance as e } from "./index167.js";
2
+ import { formatRelative as t } from "./index168.js";
3
+ import { localize as n } from "./index169.js";
4
+ import { match as r } from "./index170.js";
5
+ import { formatLong as i } from "./index171.js";
6
+ // ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US.js
7
+ var a = {
8
+ code: "en-US",
9
+ formatDistance: e,
10
+ formatLong: i,
11
+ formatRelative: t,
12
+ localize: n,
13
+ match: r,
14
+ options: {
15
+ weekStartsOn: 0,
16
+ firstWeekContainsDate: 1
17
+ }
30
18
  };
31
- export { t as formatLong };
19
+ export { a as default, a as enUS };
package/dist/index173.cjs CHANGED
@@ -1 +1 @@
1
- const e=require("./index168.cjs"),t=require("./index169.cjs"),n=require("./index170.cjs"),r=require("./index171.cjs"),i=require("./index172.cjs");var a={code:`en-US`,formatDistance:e.formatDistance,formatLong:i.formatLong,formatRelative:t.formatRelative,localize:n.localize,match:r.match,options:{weekStartsOn:0,firstWeekContainsDate:1}};exports.default=a,exports.enUS=a;
1
+ var e={lessThanXSeconds:{one:`dưới 1 giây`,other:`dưới {{count}} giây`},xSeconds:{one:`1 giây`,other:`{{count}} giây`},halfAMinute:`nửa phút`,lessThanXMinutes:{one:`dưới 1 phút`,other:`dưới {{count}} phút`},xMinutes:{one:`1 phút`,other:`{{count}} phút`},aboutXHours:{one:`khoảng 1 giờ`,other:`khoảng {{count}} giờ`},xHours:{one:`1 giờ`,other:`{{count}} giờ`},xDays:{one:`1 ngày`,other:`{{count}} ngày`},aboutXWeeks:{one:`khoảng 1 tuần`,other:`khoảng {{count}} tuần`},xWeeks:{one:`1 tuần`,other:`{{count}} tuần`},aboutXMonths:{one:`khoảng 1 tháng`,other:`khoảng {{count}} tháng`},xMonths:{one:`1 tháng`,other:`{{count}} tháng`},aboutXYears:{one:`khoảng 1 năm`,other:`khoảng {{count}} năm`},xYears:{one:`1 năm`,other:`{{count}} năm`},overXYears:{one:`hơn 1 năm`,other:`hơn {{count}} năm`},almostXYears:{one:`gần 1 năm`,other:`gần {{count}} năm`}},t=(t,n,r)=>{let i,a=e[t];return i=typeof a==`string`?a:n===1?a.one:a.other.replace(`{{count}}`,String(n)),r?.addSuffix?r.comparison&&r.comparison>0?i+` nữa`:i+` trước`:i};exports.formatDistance=t;
package/dist/index173.js CHANGED
@@ -1,19 +1,68 @@
1
- import { formatDistance as e } from "./index168.js";
2
- import { formatRelative as t } from "./index169.js";
3
- import { localize as n } from "./index170.js";
4
- import { match as r } from "./index171.js";
5
- import { formatLong as i } from "./index172.js";
6
- // ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US.js
7
- var a = {
8
- code: "en-US",
9
- formatDistance: e,
10
- formatLong: i,
11
- formatRelative: t,
12
- localize: n,
13
- match: r,
14
- options: {
15
- weekStartsOn: 0,
16
- firstWeekContainsDate: 1
1
+ // ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/vi/_lib/formatDistance.js
2
+ var e = {
3
+ lessThanXSeconds: {
4
+ one: "dưới 1 giây",
5
+ other: "dưới {{count}} giây"
6
+ },
7
+ xSeconds: {
8
+ one: "1 giây",
9
+ other: "{{count}} giây"
10
+ },
11
+ halfAMinute: "nửa phút",
12
+ lessThanXMinutes: {
13
+ one: "dưới 1 phút",
14
+ other: "dưới {{count}} phút"
15
+ },
16
+ xMinutes: {
17
+ one: "1 phút",
18
+ other: "{{count}} phút"
19
+ },
20
+ aboutXHours: {
21
+ one: "khoảng 1 giờ",
22
+ other: "khoảng {{count}} giờ"
23
+ },
24
+ xHours: {
25
+ one: "1 giờ",
26
+ other: "{{count}} giờ"
27
+ },
28
+ xDays: {
29
+ one: "1 ngày",
30
+ other: "{{count}} ngày"
31
+ },
32
+ aboutXWeeks: {
33
+ one: "khoảng 1 tuần",
34
+ other: "khoảng {{count}} tuần"
35
+ },
36
+ xWeeks: {
37
+ one: "1 tuần",
38
+ other: "{{count}} tuần"
39
+ },
40
+ aboutXMonths: {
41
+ one: "khoảng 1 tháng",
42
+ other: "khoảng {{count}} tháng"
43
+ },
44
+ xMonths: {
45
+ one: "1 tháng",
46
+ other: "{{count}} tháng"
47
+ },
48
+ aboutXYears: {
49
+ one: "khoảng 1 năm",
50
+ other: "khoảng {{count}} năm"
51
+ },
52
+ xYears: {
53
+ one: "1 năm",
54
+ other: "{{count}} năm"
55
+ },
56
+ overXYears: {
57
+ one: "hơn 1 năm",
58
+ other: "hơn {{count}} năm"
59
+ },
60
+ almostXYears: {
61
+ one: "gần 1 năm",
62
+ other: "gần {{count}} năm"
17
63
  }
64
+ }, t = (t, n, r) => {
65
+ let i, a = e[t];
66
+ return i = typeof a == "string" ? a : n === 1 ? a.one : a.other.replace("{{count}}", String(n)), r?.addSuffix ? r.comparison && r.comparison > 0 ? i + " nữa" : i + " trước" : i;
18
67
  };
19
- export { a as default, a as enUS };
68
+ export { t as formatDistance };
package/dist/index174.cjs CHANGED
@@ -1 +1 @@
1
- var e={lessThanXSeconds:{one:`dưới 1 giây`,other:`dưới {{count}} giây`},xSeconds:{one:`1 giây`,other:`{{count}} giây`},halfAMinute:`nửa phút`,lessThanXMinutes:{one:`dưới 1 phút`,other:`dưới {{count}} phút`},xMinutes:{one:`1 phút`,other:`{{count}} phút`},aboutXHours:{one:`khoảng 1 giờ`,other:`khoảng {{count}} giờ`},xHours:{one:`1 giờ`,other:`{{count}} giờ`},xDays:{one:`1 ngày`,other:`{{count}} ngày`},aboutXWeeks:{one:`khoảng 1 tuần`,other:`khoảng {{count}} tuần`},xWeeks:{one:`1 tuần`,other:`{{count}} tuần`},aboutXMonths:{one:`khoảng 1 tháng`,other:`khoảng {{count}} tháng`},xMonths:{one:`1 tháng`,other:`{{count}} tháng`},aboutXYears:{one:`khoảng 1 năm`,other:`khoảng {{count}} năm`},xYears:{one:`1 năm`,other:`{{count}} năm`},overXYears:{one:`hơn 1 năm`,other:`hơn {{count}} năm`},almostXYears:{one:`gần 1 năm`,other:`gần {{count}} năm`}},t=(t,n,r)=>{let i,a=e[t];return i=typeof a==`string`?a:n===1?a.one:a.other.replace(`{{count}}`,String(n)),r?.addSuffix?r.comparison&&r.comparison>0?i+` nữa`:i+` trước`:i};exports.formatDistance=t;
1
+ const e=require("./index157.cjs");var t={date:e.buildFormatLongFn({formats:{full:`EEEE, 'ngày' d MMMM 'năm' y`,long:`'ngày' d MMMM 'năm' y`,medium:`d MMM 'năm' y`,short:`dd/MM/y`},defaultWidth:`full`}),time:e.buildFormatLongFn({formats:{full:`HH:mm:ss zzzz`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:e.buildFormatLongFn({formats:{full:`{{date}} {{time}}`,long:`{{date}} {{time}}`,medium:`{{date}} {{time}}`,short:`{{date}} {{time}}`},defaultWidth:`full`})};exports.formatLong=t;