kiban-design-system 3.12.0 → 3.13.1

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 (183) hide show
  1. package/dist/components/table-search-filters.d.ts +34 -0
  2. package/dist/components/table-search-filters.d.ts.map +1 -0
  3. package/dist/components/table-search-filters.js +222 -0
  4. package/dist/components/totalizer.d.ts.map +1 -1
  5. package/dist/components/totalizer.js +6 -1
  6. package/dist/components/ui/calendar.d.ts +9 -0
  7. package/dist/components/ui/calendar.d.ts.map +1 -0
  8. package/dist/components/ui/calendar.js +56 -0
  9. package/dist/components/ui/popover.d.ts +11 -0
  10. package/dist/components/ui/popover.d.ts.map +1 -0
  11. package/dist/components/ui/popover.js +81 -0
  12. package/dist/index.d.ts +3 -0
  13. package/dist/index.d.ts.map +1 -1
  14. package/dist/index.js +99 -87
  15. package/dist/node_modules/@date-fns/tz/date/index.js +61 -0
  16. package/dist/node_modules/@date-fns/tz/date/mini.js +69 -0
  17. package/dist/node_modules/@date-fns/tz/tzName/index.js +11 -0
  18. package/dist/node_modules/@date-fns/tz/tzOffset/index.js +22 -0
  19. package/dist/node_modules/@radix-ui/react-popover/dist/index.js +240 -0
  20. package/dist/node_modules/date-fns/_lib/addLeadingZeros.js +7 -0
  21. package/dist/node_modules/date-fns/_lib/defaultOptions.js +7 -0
  22. package/dist/node_modules/date-fns/_lib/format/formatters.js +548 -0
  23. package/dist/node_modules/date-fns/_lib/format/lightFormatters.js +58 -0
  24. package/dist/node_modules/date-fns/_lib/format/longFormatters.js +49 -0
  25. package/dist/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js +18 -0
  26. package/dist/node_modules/date-fns/_lib/normalizeDates.js +11 -0
  27. package/dist/node_modules/date-fns/_lib/normalizeInterval.js +8 -0
  28. package/dist/node_modules/date-fns/_lib/protectedTokens.js +20 -0
  29. package/dist/node_modules/date-fns/addDays.js +9 -0
  30. package/dist/node_modules/date-fns/addMonths.js +19 -0
  31. package/dist/node_modules/date-fns/addWeeks.js +7 -0
  32. package/dist/node_modules/date-fns/addYears.js +7 -0
  33. package/dist/node_modules/date-fns/constants.js +8 -0
  34. package/dist/node_modules/date-fns/constructFrom.js +7 -0
  35. package/dist/node_modules/date-fns/differenceInCalendarDays.js +15 -0
  36. package/dist/node_modules/date-fns/differenceInCalendarMonths.js +12 -0
  37. package/dist/node_modules/date-fns/eachMonthOfInterval.js +16 -0
  38. package/dist/node_modules/date-fns/eachYearOfInterval.js +16 -0
  39. package/dist/node_modules/date-fns/endOfISOWeek.js +7 -0
  40. package/dist/node_modules/date-fns/endOfMonth.js +8 -0
  41. package/dist/node_modules/date-fns/endOfWeek.js +9 -0
  42. package/dist/node_modules/date-fns/endOfYear.js +8 -0
  43. package/dist/node_modules/date-fns/format.js +57 -0
  44. package/dist/node_modules/date-fns/getDayOfYear.js +10 -0
  45. package/dist/node_modules/date-fns/getDaysInMonth.js +9 -0
  46. package/dist/node_modules/date-fns/getISOWeek.js +11 -0
  47. package/dist/node_modules/date-fns/getISOWeekYear.js +14 -0
  48. package/dist/node_modules/date-fns/getMonth.js +7 -0
  49. package/dist/node_modules/date-fns/getWeek.js +11 -0
  50. package/dist/node_modules/date-fns/getWeekYear.js +15 -0
  51. package/dist/node_modules/date-fns/getYear.js +7 -0
  52. package/dist/node_modules/date-fns/isAfter.js +7 -0
  53. package/dist/node_modules/date-fns/isBefore.js +7 -0
  54. package/dist/node_modules/date-fns/isDate.js +6 -0
  55. package/dist/node_modules/date-fns/isSameDay.js +13 -0
  56. package/dist/node_modules/date-fns/isSameMonth.js +12 -0
  57. package/dist/node_modules/date-fns/isSameYear.js +12 -0
  58. package/dist/node_modules/date-fns/isValid.js +8 -0
  59. package/dist/node_modules/date-fns/locale/_lib/buildFormatLongFn.js +9 -0
  60. package/dist/node_modules/date-fns/locale/_lib/buildLocalizeFn.js +18 -0
  61. package/dist/node_modules/date-fns/locale/_lib/buildMatchFn.js +31 -0
  62. package/dist/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js +15 -0
  63. package/dist/node_modules/date-fns/locale/en-US/_lib/formatDistance.js +70 -0
  64. package/dist/node_modules/date-fns/locale/en-US/_lib/formatLong.js +33 -0
  65. package/dist/node_modules/date-fns/locale/en-US/_lib/formatRelative.js +11 -0
  66. package/dist/node_modules/date-fns/locale/en-US/_lib/localize.js +155 -0
  67. package/dist/node_modules/date-fns/locale/en-US/_lib/match.js +110 -0
  68. package/dist/node_modules/date-fns/locale/en-US.js +20 -0
  69. package/dist/node_modules/date-fns/max.js +13 -0
  70. package/dist/node_modules/date-fns/min.js +13 -0
  71. package/dist/node_modules/date-fns/parseISO.js +121 -0
  72. package/dist/node_modules/date-fns/setMonth.js +12 -0
  73. package/dist/node_modules/date-fns/setYear.js +9 -0
  74. package/dist/node_modules/date-fns/startOfDay.js +8 -0
  75. package/dist/node_modules/date-fns/startOfISOWeek.js +7 -0
  76. package/dist/node_modules/date-fns/startOfISOWeekYear.js +10 -0
  77. package/dist/node_modules/date-fns/startOfMonth.js +8 -0
  78. package/dist/node_modules/date-fns/startOfWeek.js +9 -0
  79. package/dist/node_modules/date-fns/startOfWeekYear.js +11 -0
  80. package/dist/node_modules/date-fns/startOfYear.js +8 -0
  81. package/dist/node_modules/date-fns/toDate.js +7 -0
  82. package/dist/node_modules/react-day-picker/dist/esm/DayPicker.js +234 -0
  83. package/dist/node_modules/react-day-picker/dist/esm/UI.js +22 -0
  84. package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarDay.js +19 -0
  85. package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarMonth.js +8 -0
  86. package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarWeek.js +8 -0
  87. package/dist/node_modules/react-day-picker/dist/esm/classes/DateLib.js +148 -0
  88. package/dist/node_modules/react-day-picker/dist/esm/components/Button.js +7 -0
  89. package/dist/node_modules/react-day-picker/dist/esm/components/CaptionLabel.js +7 -0
  90. package/dist/node_modules/react-day-picker/dist/esm/components/Chevron.js +18 -0
  91. package/dist/node_modules/react-day-picker/dist/esm/components/Day.js +8 -0
  92. package/dist/node_modules/react-day-picker/dist/esm/components/DayButton.js +10 -0
  93. package/dist/node_modules/react-day-picker/dist/esm/components/Dropdown.js +19 -0
  94. package/dist/node_modules/react-day-picker/dist/esm/components/DropdownNav.js +7 -0
  95. package/dist/node_modules/react-day-picker/dist/esm/components/Footer.js +7 -0
  96. package/dist/node_modules/react-day-picker/dist/esm/components/Month.js +8 -0
  97. package/dist/node_modules/react-day-picker/dist/esm/components/MonthCaption.js +8 -0
  98. package/dist/node_modules/react-day-picker/dist/esm/components/MonthGrid.js +7 -0
  99. package/dist/node_modules/react-day-picker/dist/esm/components/Months.js +7 -0
  100. package/dist/node_modules/react-day-picker/dist/esm/components/MonthsDropdown.js +9 -0
  101. package/dist/node_modules/react-day-picker/dist/esm/components/Nav.js +27 -0
  102. package/dist/node_modules/react-day-picker/dist/esm/components/NextMonthButton.js +9 -0
  103. package/dist/node_modules/react-day-picker/dist/esm/components/Option.js +7 -0
  104. package/dist/node_modules/react-day-picker/dist/esm/components/PreviousMonthButton.js +9 -0
  105. package/dist/node_modules/react-day-picker/dist/esm/components/Root.js +8 -0
  106. package/dist/node_modules/react-day-picker/dist/esm/components/Select.js +7 -0
  107. package/dist/node_modules/react-day-picker/dist/esm/components/Week.js +8 -0
  108. package/dist/node_modules/react-day-picker/dist/esm/components/WeekNumber.js +8 -0
  109. package/dist/node_modules/react-day-picker/dist/esm/components/WeekNumberHeader.js +7 -0
  110. package/dist/node_modules/react-day-picker/dist/esm/components/Weekday.js +7 -0
  111. package/dist/node_modules/react-day-picker/dist/esm/components/Weekdays.js +11 -0
  112. package/dist/node_modules/react-day-picker/dist/esm/components/Weeks.js +7 -0
  113. package/dist/node_modules/react-day-picker/dist/esm/components/YearsDropdown.js +9 -0
  114. package/dist/node_modules/react-day-picker/dist/esm/components/custom-components.js +54 -0
  115. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatCaption.js +9 -0
  116. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatDay.js +7 -0
  117. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatMonthDropdown.js +7 -0
  118. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumber.js +7 -0
  119. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumberHeader.js +6 -0
  120. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekdayName.js +7 -0
  121. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatYearDropdown.js +9 -0
  122. package/dist/node_modules/react-day-picker/dist/esm/formatters/index.js +18 -0
  123. package/dist/node_modules/react-day-picker/dist/esm/helpers/calculateFocusTarget.js +19 -0
  124. package/dist/node_modules/react-day-picker/dist/esm/helpers/createGetModifiers.js +42 -0
  125. package/dist/node_modules/react-day-picker/dist/esm/helpers/endOfBroadcastWeek.js +9 -0
  126. package/dist/node_modules/react-day-picker/dist/esm/helpers/getBroadcastWeeksInMonth.js +7 -0
  127. package/dist/node_modules/react-day-picker/dist/esm/helpers/getClassNamesForModifiers.js +7 -0
  128. package/dist/node_modules/react-day-picker/dist/esm/helpers/getComponents.js +10 -0
  129. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDataAttributes.js +16 -0
  130. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDates.js +19 -0
  131. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDays.js +10 -0
  132. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDefaultClassNames.js +16 -0
  133. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDisplayMonths.js +13 -0
  134. package/dist/node_modules/react-day-picker/dist/esm/helpers/getFocusableDate.js +15 -0
  135. package/dist/node_modules/react-day-picker/dist/esm/helpers/getFormatters.js +10 -0
  136. package/dist/node_modules/react-day-picker/dist/esm/helpers/getInitialMonth.js +13 -0
  137. package/dist/node_modules/react-day-picker/dist/esm/helpers/getLabels.js +34 -0
  138. package/dist/node_modules/react-day-picker/dist/esm/helpers/getMonthOptions.js +13 -0
  139. package/dist/node_modules/react-day-picker/dist/esm/helpers/getMonths.js +24 -0
  140. package/dist/node_modules/react-day-picker/dist/esm/helpers/getNavMonth.js +13 -0
  141. package/dist/node_modules/react-day-picker/dist/esm/helpers/getNextFocus.js +12 -0
  142. package/dist/node_modules/react-day-picker/dist/esm/helpers/getNextMonth.js +12 -0
  143. package/dist/node_modules/react-day-picker/dist/esm/helpers/getPreviousMonth.js +12 -0
  144. package/dist/node_modules/react-day-picker/dist/esm/helpers/getStyleForModifiers.js +13 -0
  145. package/dist/node_modules/react-day-picker/dist/esm/helpers/getWeekdays.js +11 -0
  146. package/dist/node_modules/react-day-picker/dist/esm/helpers/getWeeks.js +7 -0
  147. package/dist/node_modules/react-day-picker/dist/esm/helpers/getYearOptions.js +16 -0
  148. package/dist/node_modules/react-day-picker/dist/esm/helpers/startOfBroadcastWeek.js +7 -0
  149. package/dist/node_modules/react-day-picker/dist/esm/helpers/useControlledValue.js +8 -0
  150. package/dist/node_modules/react-day-picker/dist/esm/labels/index.js +26 -0
  151. package/dist/node_modules/react-day-picker/dist/esm/labels/labelDayButton.js +10 -0
  152. package/dist/node_modules/react-day-picker/dist/esm/labels/labelGrid.js +9 -0
  153. package/dist/node_modules/react-day-picker/dist/esm/labels/labelGridcell.js +8 -0
  154. package/dist/node_modules/react-day-picker/dist/esm/labels/labelMonthDropdown.js +6 -0
  155. package/dist/node_modules/react-day-picker/dist/esm/labels/labelNav.js +6 -0
  156. package/dist/node_modules/react-day-picker/dist/esm/labels/labelNext.js +7 -0
  157. package/dist/node_modules/react-day-picker/dist/esm/labels/labelPrevious.js +6 -0
  158. package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekNumber.js +6 -0
  159. package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekNumberHeader.js +6 -0
  160. package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekday.js +7 -0
  161. package/dist/node_modules/react-day-picker/dist/esm/labels/labelYearDropdown.js +6 -0
  162. package/dist/node_modules/react-day-picker/dist/esm/locale/en-US.js +37 -0
  163. package/dist/node_modules/react-day-picker/dist/esm/noonDateLib.js +104 -0
  164. package/dist/node_modules/react-day-picker/dist/esm/selection/useMulti.js +21 -0
  165. package/dist/node_modules/react-day-picker/dist/esm/selection/useRange.js +18 -0
  166. package/dist/node_modules/react-day-picker/dist/esm/selection/useSingle.js +15 -0
  167. package/dist/node_modules/react-day-picker/dist/esm/useAnimation.js +56 -0
  168. package/dist/node_modules/react-day-picker/dist/esm/useCalendar.js +75 -0
  169. package/dist/node_modules/react-day-picker/dist/esm/useDayPicker.js +12 -0
  170. package/dist/node_modules/react-day-picker/dist/esm/useFocus.js +23 -0
  171. package/dist/node_modules/react-day-picker/dist/esm/useSelection.js +19 -0
  172. package/dist/node_modules/react-day-picker/dist/esm/utils/addToRange.js +32 -0
  173. package/dist/node_modules/react-day-picker/dist/esm/utils/convertMatchersToTimeZone.js +26 -0
  174. package/dist/node_modules/react-day-picker/dist/esm/utils/dateMatchModifiers.js +26 -0
  175. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeContainsDayOfWeek.js +15 -0
  176. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeContainsModifiers.js +28 -0
  177. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeIncludesDate.js +9 -0
  178. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeOverlaps.js +8 -0
  179. package/dist/node_modules/react-day-picker/dist/esm/utils/toTimeZone.js +8 -0
  180. package/dist/node_modules/react-day-picker/dist/esm/utils/typeguards.js +26 -0
  181. package/dist/style.css +1 -1
  182. package/dist/tokens.css +107 -0
  183. package/package.json +11 -5
@@ -0,0 +1,155 @@
1
+ import { buildLocalizeFn as e } from "../../_lib/buildLocalizeFn.js";
2
+ const a = {
3
+ narrow: ["B", "A"],
4
+ abbreviated: ["BC", "AD"],
5
+ wide: ["Before Christ", "Anno Domini"]
6
+ }, r = {
7
+ narrow: ["1", "2", "3", "4"],
8
+ abbreviated: ["Q1", "Q2", "Q3", "Q4"],
9
+ wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
10
+ }, o = {
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
+ "May",
18
+ "Jun",
19
+ "Jul",
20
+ "Aug",
21
+ "Sep",
22
+ "Oct",
23
+ "Nov",
24
+ "Dec"
25
+ ],
26
+ wide: [
27
+ "January",
28
+ "February",
29
+ "March",
30
+ "April",
31
+ "May",
32
+ "June",
33
+ "July",
34
+ "August",
35
+ "September",
36
+ "October",
37
+ "November",
38
+ "December"
39
+ ]
40
+ }, d = {
41
+ narrow: ["S", "M", "T", "W", "T", "F", "S"],
42
+ short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
43
+ abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
44
+ wide: [
45
+ "Sunday",
46
+ "Monday",
47
+ "Tuesday",
48
+ "Wednesday",
49
+ "Thursday",
50
+ "Friday",
51
+ "Saturday"
52
+ ]
53
+ }, m = {
54
+ narrow: {
55
+ am: "a",
56
+ pm: "p",
57
+ midnight: "mi",
58
+ noon: "n",
59
+ morning: "morning",
60
+ afternoon: "afternoon",
61
+ evening: "evening",
62
+ night: "night"
63
+ },
64
+ abbreviated: {
65
+ am: "AM",
66
+ pm: "PM",
67
+ midnight: "midnight",
68
+ noon: "noon",
69
+ morning: "morning",
70
+ afternoon: "afternoon",
71
+ evening: "evening",
72
+ night: "night"
73
+ },
74
+ wide: {
75
+ am: "a.m.",
76
+ pm: "p.m.",
77
+ midnight: "midnight",
78
+ noon: "noon",
79
+ morning: "morning",
80
+ afternoon: "afternoon",
81
+ evening: "evening",
82
+ night: "night"
83
+ }
84
+ }, g = {
85
+ narrow: {
86
+ am: "a",
87
+ pm: "p",
88
+ midnight: "mi",
89
+ noon: "n",
90
+ morning: "in the morning",
91
+ afternoon: "in the afternoon",
92
+ evening: "in the evening",
93
+ night: "at night"
94
+ },
95
+ abbreviated: {
96
+ am: "AM",
97
+ pm: "PM",
98
+ midnight: "midnight",
99
+ noon: "noon",
100
+ morning: "in the morning",
101
+ afternoon: "in the afternoon",
102
+ evening: "in the evening",
103
+ night: "at night"
104
+ },
105
+ wide: {
106
+ am: "a.m.",
107
+ pm: "p.m.",
108
+ midnight: "midnight",
109
+ noon: "noon",
110
+ morning: "in the morning",
111
+ afternoon: "in the afternoon",
112
+ evening: "in the evening",
113
+ night: "at night"
114
+ }
115
+ }, u = (i, h) => {
116
+ const n = Number(i), t = n % 100;
117
+ if (t > 20 || t < 10)
118
+ switch (t % 10) {
119
+ case 1:
120
+ return n + "st";
121
+ case 2:
122
+ return n + "nd";
123
+ case 3:
124
+ return n + "rd";
125
+ }
126
+ return n + "th";
127
+ }, l = {
128
+ ordinalNumber: u,
129
+ era: e({
130
+ values: a,
131
+ defaultWidth: "wide"
132
+ }),
133
+ quarter: e({
134
+ values: r,
135
+ defaultWidth: "wide",
136
+ argumentCallback: (i) => i - 1
137
+ }),
138
+ month: e({
139
+ values: o,
140
+ defaultWidth: "wide"
141
+ }),
142
+ day: e({
143
+ values: d,
144
+ defaultWidth: "wide"
145
+ }),
146
+ dayPeriod: e({
147
+ values: m,
148
+ defaultWidth: "wide",
149
+ formattingValues: g,
150
+ defaultFormattingWidth: "wide"
151
+ })
152
+ };
153
+ export {
154
+ l as localize
155
+ };
@@ -0,0 +1,110 @@
1
+ import { buildMatchFn as a } from "../../_lib/buildMatchFn.js";
2
+ import { buildMatchPatternFn as i } from "../../_lib/buildMatchPatternFn.js";
3
+ const n = /^(\d+)(th|st|nd|rd)?/i, e = /\d+/i, r = {
4
+ narrow: /^(b|a)/i,
5
+ abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
6
+ wide: /^(before christ|before common era|anno domini|common era)/i
7
+ }, s = {
8
+ any: [/^b/i, /^(a|c)/i]
9
+ }, o = {
10
+ narrow: /^[1234]/i,
11
+ abbreviated: /^q[1234]/i,
12
+ wide: /^[1234](th|st|nd|rd)? quarter/i
13
+ }, d = {
14
+ any: [/1/i, /2/i, /3/i, /4/i]
15
+ }, m = {
16
+ narrow: /^[jfmasond]/i,
17
+ abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
18
+ wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
19
+ }, h = {
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
+ /^may/i,
40
+ /^jun/i,
41
+ /^jul/i,
42
+ /^au/i,
43
+ /^s/i,
44
+ /^o/i,
45
+ /^n/i,
46
+ /^d/i
47
+ ]
48
+ }, c = {
49
+ narrow: /^[smtwf]/i,
50
+ short: /^(su|mo|tu|we|th|fr|sa)/i,
51
+ abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
52
+ wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
53
+ }, u = {
54
+ narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
55
+ any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
56
+ }, P = {
57
+ narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
58
+ any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
59
+ }, y = {
60
+ any: {
61
+ am: /^a/i,
62
+ pm: /^p/i,
63
+ midnight: /^mi/i,
64
+ noon: /^no/i,
65
+ morning: /morning/i,
66
+ afternoon: /afternoon/i,
67
+ evening: /evening/i,
68
+ night: /night/i
69
+ }
70
+ }, l = {
71
+ ordinalNumber: i({
72
+ matchPattern: n,
73
+ parsePattern: e,
74
+ valueCallback: (t) => parseInt(t, 10)
75
+ }),
76
+ era: a({
77
+ matchPatterns: r,
78
+ defaultMatchWidth: "wide",
79
+ parsePatterns: s,
80
+ defaultParseWidth: "any"
81
+ }),
82
+ quarter: a({
83
+ matchPatterns: o,
84
+ defaultMatchWidth: "wide",
85
+ parsePatterns: d,
86
+ defaultParseWidth: "any",
87
+ valueCallback: (t) => t + 1
88
+ }),
89
+ month: a({
90
+ matchPatterns: m,
91
+ defaultMatchWidth: "wide",
92
+ parsePatterns: h,
93
+ defaultParseWidth: "any"
94
+ }),
95
+ day: a({
96
+ matchPatterns: c,
97
+ defaultMatchWidth: "wide",
98
+ parsePatterns: u,
99
+ defaultParseWidth: "any"
100
+ }),
101
+ dayPeriod: a({
102
+ matchPatterns: P,
103
+ defaultMatchWidth: "any",
104
+ parsePatterns: y,
105
+ defaultParseWidth: "any"
106
+ })
107
+ };
108
+ export {
109
+ l as match
110
+ };
@@ -0,0 +1,20 @@
1
+ import { formatDistance as o } from "./en-US/_lib/formatDistance.js";
2
+ import { formatLong as t } from "./en-US/_lib/formatLong.js";
3
+ import { formatRelative as r } from "./en-US/_lib/formatRelative.js";
4
+ import { localize as m } from "./en-US/_lib/localize.js";
5
+ import { match as a } from "./en-US/_lib/match.js";
6
+ const p = {
7
+ code: "en-US",
8
+ formatDistance: o,
9
+ formatLong: t,
10
+ formatRelative: r,
11
+ localize: m,
12
+ match: a,
13
+ options: {
14
+ weekStartsOn: 0,
15
+ firstWeekContainsDate: 1
16
+ }
17
+ };
18
+ export {
19
+ p as enUS
20
+ };
@@ -0,0 +1,13 @@
1
+ import { constructFrom as e } from "./constructFrom.js";
2
+ import { toDate as f } from "./toDate.js";
3
+ function u(i, c) {
4
+ let t, o = c?.in;
5
+ return i.forEach((r) => {
6
+ !o && typeof r == "object" && (o = e.bind(null, r));
7
+ const n = f(r, o);
8
+ (!t || t < n || isNaN(+n)) && (t = n);
9
+ }), e(o, t || NaN);
10
+ }
11
+ export {
12
+ u as max
13
+ };
@@ -0,0 +1,13 @@
1
+ import { constructFrom as i } from "./constructFrom.js";
2
+ import { toDate as f } from "./toDate.js";
3
+ function u(e, c) {
4
+ let t, o = c?.in;
5
+ return e.forEach((r) => {
6
+ !o && typeof r == "object" && (o = i.bind(null, r));
7
+ const n = f(r, o);
8
+ (!t || t > n || isNaN(+n)) && (t = n);
9
+ }), i(o, t || NaN);
10
+ }
11
+ export {
12
+ u as min
13
+ };
@@ -0,0 +1,121 @@
1
+ import { millisecondsInHour as p, millisecondsInMinute as N } from "./constants.js";
2
+ import { constructFrom as T } from "./constructFrom.js";
3
+ import { toDate as D } from "./toDate.js";
4
+ function v(t, e) {
5
+ const n = () => T(e?.in, NaN), i = I(t);
6
+ let s;
7
+ if (i.date) {
8
+ const a = x(i.date, 2);
9
+ s = Y(a.restDateString, a.year);
10
+ }
11
+ if (!s || isNaN(+s)) return n();
12
+ const u = +s;
13
+ let o = 0, c;
14
+ if (i.time && (o = w(i.time), isNaN(o)))
15
+ return n();
16
+ if (i.timezone) {
17
+ if (c = y(i.timezone), isNaN(c)) return n();
18
+ } else {
19
+ const a = new Date(u + o), d = D(0, e?.in);
20
+ return d.setFullYear(
21
+ a.getUTCFullYear(),
22
+ a.getUTCMonth(),
23
+ a.getUTCDate()
24
+ ), d.setHours(
25
+ a.getUTCHours(),
26
+ a.getUTCMinutes(),
27
+ a.getUTCSeconds(),
28
+ a.getUTCMilliseconds()
29
+ ), d;
30
+ }
31
+ return D(u + o + c, e?.in);
32
+ }
33
+ const f = {
34
+ dateTimeDelimiter: /[T ]/,
35
+ timeZoneDelimiter: /[Z ]/i,
36
+ timezone: /([Z+-].*)$/
37
+ }, U = /^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/, h = /^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/, C = /^([+-])(\d{2})(?::?(\d{2}))?$/;
38
+ function I(t) {
39
+ const e = {}, n = t.split(f.dateTimeDelimiter);
40
+ let r;
41
+ if (n.length > 2)
42
+ return e;
43
+ if (/:/.test(n[0]) ? r = n[0] : (e.date = n[0], r = n[1], f.timeZoneDelimiter.test(e.date) && (e.date = t.split(f.timeZoneDelimiter)[0], r = t.substr(
44
+ e.date.length,
45
+ t.length
46
+ ))), r) {
47
+ const i = f.timezone.exec(r);
48
+ i ? (e.time = r.replace(i[1], ""), e.timezone = i[1]) : e.time = r;
49
+ }
50
+ return e;
51
+ }
52
+ function x(t, e) {
53
+ const n = new RegExp(
54
+ "^(?:(\\d{4}|[+-]\\d{" + (4 + e) + "})|(\\d{2}|[+-]\\d{" + (2 + e) + "})$)"
55
+ ), r = t.match(n);
56
+ if (!r) return { year: NaN, restDateString: "" };
57
+ const i = r[1] ? parseInt(r[1]) : null, s = r[2] ? parseInt(r[2]) : null;
58
+ return {
59
+ year: s === null ? i : s * 100,
60
+ restDateString: t.slice((r[1] || r[2]).length)
61
+ };
62
+ }
63
+ function Y(t, e) {
64
+ if (e === null) return /* @__PURE__ */ new Date(NaN);
65
+ const n = t.match(U);
66
+ if (!n) return /* @__PURE__ */ new Date(NaN);
67
+ const r = !!n[4], i = l(n[1]), s = l(n[2]) - 1, u = l(n[3]), o = l(n[4]), c = l(n[5]) - 1;
68
+ if (r)
69
+ return Z(e, o, c) ? z(e, o, c) : /* @__PURE__ */ new Date(NaN);
70
+ {
71
+ const a = /* @__PURE__ */ new Date(0);
72
+ return !M(e, s, u) || !O(e, i) ? /* @__PURE__ */ new Date(NaN) : (a.setUTCFullYear(e, s, Math.max(i, u)), a);
73
+ }
74
+ }
75
+ function l(t) {
76
+ return t ? parseInt(t) : 1;
77
+ }
78
+ function w(t) {
79
+ const e = t.match(h);
80
+ if (!e) return NaN;
81
+ const n = m(e[1]), r = m(e[2]), i = m(e[3]);
82
+ return k(n, r, i) ? n * p + r * N + i * 1e3 : NaN;
83
+ }
84
+ function m(t) {
85
+ return t && parseFloat(t.replace(",", ".")) || 0;
86
+ }
87
+ function y(t) {
88
+ if (t === "Z") return 0;
89
+ const e = t.match(C);
90
+ if (!e) return 0;
91
+ const n = e[1] === "+" ? -1 : 1, r = parseInt(e[2]), i = e[3] && parseInt(e[3]) || 0;
92
+ return R(r, i) ? n * (r * p + i * N) : NaN;
93
+ }
94
+ function z(t, e, n) {
95
+ const r = /* @__PURE__ */ new Date(0);
96
+ r.setUTCFullYear(t, 0, 4);
97
+ const i = r.getUTCDay() || 7, s = (e - 1) * 7 + n + 1 - i;
98
+ return r.setUTCDate(r.getUTCDate() + s), r;
99
+ }
100
+ const F = [31, null, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
101
+ function g(t) {
102
+ return t % 400 === 0 || t % 4 === 0 && t % 100 !== 0;
103
+ }
104
+ function M(t, e, n) {
105
+ return e >= 0 && e <= 11 && n >= 1 && n <= (F[e] || (g(t) ? 29 : 28));
106
+ }
107
+ function O(t, e) {
108
+ return e >= 1 && e <= (g(t) ? 366 : 365);
109
+ }
110
+ function Z(t, e, n) {
111
+ return e >= 1 && e <= 53 && n >= 0 && n <= 6;
112
+ }
113
+ function k(t, e, n) {
114
+ return t === 24 ? e === 0 && n === 0 : n >= 0 && n < 60 && e >= 0 && e < 60 && t >= 0 && t < 25;
115
+ }
116
+ function R(t, e) {
117
+ return e >= 0 && e <= 59;
118
+ }
119
+ export {
120
+ v as parseISO
121
+ };
@@ -0,0 +1,12 @@
1
+ import { constructFrom as m } from "./constructFrom.js";
2
+ import { getDaysInMonth as i } from "./getDaysInMonth.js";
3
+ import { toDate as u } from "./toDate.js";
4
+ function l(n, r, e) {
5
+ const t = u(n, e?.in), s = t.getFullYear(), a = t.getDate(), o = m(n, 0);
6
+ o.setFullYear(s, r, 15), o.setHours(0, 0, 0, 0);
7
+ const c = i(o);
8
+ return t.setMonth(r, Math.min(a, c)), t;
9
+ }
10
+ export {
11
+ l as setMonth
12
+ };
@@ -0,0 +1,9 @@
1
+ import { constructFrom as n } from "./constructFrom.js";
2
+ import { toDate as i } from "./toDate.js";
3
+ function s(t, o, e) {
4
+ const r = i(t, e?.in);
5
+ return isNaN(+r) ? n(t, NaN) : (r.setFullYear(o), r);
6
+ }
7
+ export {
8
+ s as setYear
9
+ };
@@ -0,0 +1,8 @@
1
+ import { toDate as e } from "./toDate.js";
2
+ function a(o, r) {
3
+ const t = e(o, r?.in);
4
+ return t.setHours(0, 0, 0, 0), t;
5
+ }
6
+ export {
7
+ a as startOfDay
8
+ };
@@ -0,0 +1,7 @@
1
+ import { startOfWeek as r } from "./startOfWeek.js";
2
+ function n(t, e) {
3
+ return r(t, { ...e, weekStartsOn: 1 });
4
+ }
5
+ export {
6
+ n as startOfISOWeek
7
+ };
@@ -0,0 +1,10 @@
1
+ import { constructFrom as f } from "./constructFrom.js";
2
+ import { getISOWeekYear as s } from "./getISOWeekYear.js";
3
+ import { startOfISOWeek as a } from "./startOfISOWeek.js";
4
+ function O(t, e) {
5
+ const o = s(t, e), r = f(t, 0);
6
+ return r.setFullYear(o, 0, 4), r.setHours(0, 0, 0, 0), a(r);
7
+ }
8
+ export {
9
+ O as startOfISOWeekYear
10
+ };
@@ -0,0 +1,8 @@
1
+ import { toDate as r } from "./toDate.js";
2
+ function s(o, e) {
3
+ const t = r(o, e?.in);
4
+ return t.setDate(1), t.setHours(0, 0, 0, 0), t;
5
+ }
6
+ export {
7
+ s as startOfMonth
8
+ };
@@ -0,0 +1,9 @@
1
+ import { getDefaultOptions as c } from "./_lib/defaultOptions.js";
2
+ import { toDate as f } from "./toDate.js";
3
+ function k(s, e) {
4
+ const o = c(), a = e?.weekStartsOn ?? e?.locale?.options?.weekStartsOn ?? o.weekStartsOn ?? o.locale?.options?.weekStartsOn ?? 0, t = f(s, e?.in), n = t.getDay(), r = (n < a ? 7 : 0) + n - a;
5
+ return t.setDate(t.getDate() - r), t.setHours(0, 0, 0, 0), t;
6
+ }
7
+ export {
8
+ k as startOfWeek
9
+ };
@@ -0,0 +1,11 @@
1
+ import { getDefaultOptions as n } from "./_lib/defaultOptions.js";
2
+ import { constructFrom as i } from "./constructFrom.js";
3
+ import { getWeekYear as f } from "./getWeekYear.js";
4
+ import { startOfWeek as c } from "./startOfWeek.js";
5
+ function D(r, t) {
6
+ const o = n(), s = t?.firstWeekContainsDate ?? t?.locale?.options?.firstWeekContainsDate ?? o.firstWeekContainsDate ?? o.locale?.options?.firstWeekContainsDate ?? 1, a = f(r, t), e = i(t?.in || r, 0);
7
+ return e.setFullYear(a, 0, s), e.setHours(0, 0, 0, 0), c(e, t);
8
+ }
9
+ export {
10
+ D as startOfWeekYear
11
+ };
@@ -0,0 +1,8 @@
1
+ import { toDate as o } from "./toDate.js";
2
+ function n(e, r) {
3
+ const t = o(e, r?.in);
4
+ return t.setFullYear(t.getFullYear(), 0, 1), t.setHours(0, 0, 0, 0), t;
5
+ }
6
+ export {
7
+ n as startOfYear
8
+ };
@@ -0,0 +1,7 @@
1
+ import { constructFrom as r } from "./constructFrom.js";
2
+ function n(o, t) {
3
+ return r(t || o, o);
4
+ }
5
+ export {
6
+ n as toDate
7
+ };