@rankingcoach/vanguard 1.6.0 → 1.7.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 (237) hide show
  1. package/dist/index-AMPMMidnightParser.js +1 -1
  2. package/dist/index-AMPMParser.js +1 -1
  3. package/dist/index-Accordion2.js +1 -1
  4. package/dist/index-AccordionDetails.js +1 -1
  5. package/dist/index-AccordionSummary.js +1 -1
  6. package/dist/index-AppBar2.js +1 -1
  7. package/dist/index-Autocomplete2.js +1 -1
  8. package/dist/index-Axios4.js +1 -1
  9. package/dist/index-AxiosError.js +1 -1
  10. package/dist/index-Backdrop.js +1 -1
  11. package/dist/index-BasePopper.js +1 -1
  12. package/dist/index-BenchmarkGauge.js +119 -0
  13. package/dist/index-BenchmarkGauge.module.scss.js +35 -0
  14. package/dist/index-BenchmarkGaugeMarker.js +58 -0
  15. package/dist/index-BenchmarkGaugeMarker.module.scss.js +19 -0
  16. package/dist/index-BenchmarkGaugePin.js +40 -0
  17. package/dist/index-BenchmarkGaugePin.module.scss.js +15 -0
  18. package/dist/index-Box.js +1 -1
  19. package/dist/index-Button2.js +1 -1
  20. package/dist/index-ButtonBase.js +1 -1
  21. package/dist/index-CSSTransition.js +1 -1
  22. package/dist/index-Calendar.js +1 -1
  23. package/dist/index-CalendarPicker.js +1 -1
  24. package/dist/index-CanceledError.js +1 -1
  25. package/dist/index-Chip.js +1 -1
  26. package/dist/index-ClickAwayListener.js +1 -1
  27. package/dist/index-ClockPicker.js +1 -1
  28. package/dist/index-Collapse2.js +2 -2
  29. package/dist/index-DateParser.js +1 -1
  30. package/dist/index-DatePicker2.js +1 -1
  31. package/dist/index-DateRange2.js +1 -1
  32. package/dist/index-DateRangePicker2.js +1 -1
  33. package/dist/index-DayOfYearParser.js +1 -1
  34. package/dist/index-DayPeriodParser.js +1 -1
  35. package/dist/index-DefaultPropsProvider.js +1 -1
  36. package/dist/index-DefaultPropsProvider2.js +1 -1
  37. package/dist/index-DesktopDatePicker.js +1 -1
  38. package/dist/index-Dialog.js +1 -1
  39. package/dist/index-DialogActions.js +1 -1
  40. package/dist/index-DialogContent.js +1 -1
  41. package/dist/index-Drawer2.js +1 -1
  42. package/dist/index-ExtendedYearParser.js +1 -1
  43. package/dist/index-Fade.js +2 -2
  44. package/dist/index-FilledInput.js +1 -1
  45. package/dist/index-FocusTrap.js +1 -1
  46. package/dist/index-FormControl2.js +2 -2
  47. package/dist/index-FormHelperText.js +1 -1
  48. package/dist/index-FormLabel.js +1 -1
  49. package/dist/index-FractionOfSecondParser.js +1 -1
  50. package/dist/index-GlobalStyles.js +1 -1
  51. package/dist/index-GlobalStyles2.js +1 -1
  52. package/dist/index-GlobalStyles3.js +1 -1
  53. package/dist/index-Grid.js +1 -1
  54. package/dist/index-Grow.js +2 -2
  55. package/dist/index-Hour0To11Parser.js +1 -1
  56. package/dist/index-Hour0to23Parser.js +1 -1
  57. package/dist/index-Hour1To24Parser.js +1 -1
  58. package/dist/index-Hour1to12Parser.js +1 -1
  59. package/dist/index-ISODayParser.js +1 -1
  60. package/dist/index-ISOTimezoneParser.js +1 -1
  61. package/dist/index-ISOTimezoneWithZParser.js +1 -1
  62. package/dist/index-ISOWeekParser.js +1 -1
  63. package/dist/index-ISOWeekYearParser.js +1 -1
  64. package/dist/index-IconButton2.js +1 -1
  65. package/dist/index-Input2.js +1 -1
  66. package/dist/index-InputAdornment.js +1 -1
  67. package/dist/index-InputBase2.js +2 -2
  68. package/dist/index-InputLabel.js +1 -1
  69. package/dist/index-InterceptorManager.js +1 -1
  70. package/dist/index-LexicalToolkit2.js +1 -1
  71. package/dist/index-LinearProgress.js +1 -1
  72. package/dist/index-List2.js +1 -1
  73. package/dist/index-ListSubheader.js +1 -1
  74. package/dist/index-LocalDayParser.js +1 -1
  75. package/dist/index-LocalWeekParser.js +1 -1
  76. package/dist/index-LocalWeekYearParser.js +1 -1
  77. package/dist/index-LocalizationProvider.js +1 -1
  78. package/dist/index-Menu2.js +1 -1
  79. package/dist/index-MenuItem2.js +1 -1
  80. package/dist/index-MenuList.js +1 -1
  81. package/dist/index-MinuteParser.js +1 -1
  82. package/dist/index-MobileDatePicker.js +1 -1
  83. package/dist/index-Modal2.js +1 -1
  84. package/dist/index-Month.js +1 -1
  85. package/dist/index-MonthParser.js +1 -1
  86. package/dist/index-MonthPicker.js +1 -1
  87. package/dist/index-NativeSelectInput.js +1 -1
  88. package/dist/index-NotchedOutline.js +1 -1
  89. package/dist/index-OutlinedInput.js +1 -1
  90. package/dist/index-Paper.js +1 -1
  91. package/dist/index-Parser2.js +2 -3
  92. package/dist/index-PickersDay.js +1 -1
  93. package/dist/index-PickersMonth.js +1 -1
  94. package/dist/index-PickersPopper.js +1 -1
  95. package/dist/index-Popover2.js +1 -1
  96. package/dist/index-Popper.js +1 -1
  97. package/dist/index-Portal.js +1 -1
  98. package/dist/index-PropTypes.js +1 -1
  99. package/dist/index-PureDateInput.js +1 -1
  100. package/dist/index-QuarterParser.js +1 -1
  101. package/dist/index-Ripple.js +1 -1
  102. package/dist/index-RtlProvider.js +1 -1
  103. package/dist/index-ScrollbarSize.js +1 -1
  104. package/dist/index-SecondParser.js +1 -1
  105. package/dist/index-Select2.js +1 -1
  106. package/dist/index-SelectInput2.js +2 -2
  107. package/dist/index-Skeleton2.js +1 -1
  108. package/dist/index-Slide.js +2 -2
  109. package/dist/index-Slider2.js +1 -1
  110. package/dist/index-SliderValueLabel.js +1 -1
  111. package/dist/index-Snackbar2.js +1 -1
  112. package/dist/index-SnackbarContent.js +1 -1
  113. package/dist/index-SocialMediaLink.js +1 -1
  114. package/dist/index-StandAloneLocalDayParser.js +1 -1
  115. package/dist/index-StandAloneMonthParser.js +1 -1
  116. package/dist/index-StandAloneQuarterParser.js +1 -1
  117. package/dist/index-StyledEngineProvider.js +1 -1
  118. package/dist/index-SvgIcon.js +1 -1
  119. package/dist/index-Tab2.js +1 -1
  120. package/dist/index-TabScrollButton.js +1 -1
  121. package/dist/index-Tabs2.js +1 -1
  122. package/dist/index-TextField.js +1 -1
  123. package/dist/index-TextareaAutosize.js +1 -1
  124. package/dist/index-TimestampMillisecondsParser.js +1 -1
  125. package/dist/index-TimestampSecondsParser.js +1 -1
  126. package/dist/index-ToggleButton2.js +1 -1
  127. package/dist/index-ToggleButtonGroup2.js +1 -1
  128. package/dist/index-Toolbar2.js +1 -1
  129. package/dist/index-Tooltip.js +1 -1
  130. package/dist/index-TouchRipple.js +1 -1
  131. package/dist/index-Transition.js +1 -1
  132. package/dist/index-TransitionGroup.js +1 -1
  133. package/dist/index-Typography.js +1 -1
  134. package/dist/index-YearParser.js +1 -1
  135. package/dist/index-YearPicker.js +1 -1
  136. package/dist/index-_virtual16.js +5 -3
  137. package/dist/index-_virtual17.js +3 -5
  138. package/dist/index-_virtual6.js +1 -1
  139. package/dist/index-axios2.js +1 -1
  140. package/dist/index-buildURL.js +1 -1
  141. package/dist/index-cookies.js +1 -1
  142. package/dist/index-defaults.js +1 -1
  143. package/dist/index-dispatchRequest.js +1 -1
  144. package/dist/index-dist2.js +78 -20
  145. package/dist/index-dist3.js +20 -78
  146. package/dist/index-elementAcceptingRef.js +1 -1
  147. package/dist/index-elementTypeAcceptingRef.js +1 -1
  148. package/dist/index-es.js +1 -1
  149. package/dist/index-formDataToJSON.js +1 -1
  150. package/dist/index-helpers3.js +1 -1
  151. package/dist/index-isAxiosError.js +1 -1
  152. package/dist/index-isURLSameOrigin.js +1 -1
  153. package/dist/index-mergeConfig.js +1 -1
  154. package/dist/index-normalizeHeaderName.js +1 -1
  155. package/dist/index-parseHeaders.js +1 -1
  156. package/dist/index-position_high.svg.js +4 -0
  157. package/dist/index-position_low.svg.js +4 -0
  158. package/dist/index-position_mid.svg.js +4 -0
  159. package/dist/index-refType.js +1 -1
  160. package/dist/index-responsivePropType.js +1 -1
  161. package/dist/index-toFormData.js +1 -1
  162. package/dist/index-toURLEncodedForm.js +1 -1
  163. package/dist/index-transformData.js +1 -1
  164. package/dist/index-use-benchmark-gauge-render-state.js +61 -0
  165. package/dist/index-use-dynamic-import.js +3 -0
  166. package/dist/index-useIsLandscape.js +1 -1
  167. package/dist/index-useViews.js +1 -1
  168. package/dist/index-utils10.js +179 -11
  169. package/dist/index-utils11.js +12 -100
  170. package/dist/index-utils12.js +102 -0
  171. package/dist/index-utils3.js +48 -19
  172. package/dist/index-utils4.js +18 -63
  173. package/dist/index-utils5.js +63 -15
  174. package/dist/index-utils6.js +15 -66
  175. package/dist/index-utils7.js +66 -11
  176. package/dist/index-utils8.js +12 -2
  177. package/dist/index-utils9.js +2 -180
  178. package/dist/index-xhr.js +1 -1
  179. package/dist/index.js +290 -288
  180. package/dist/reputation/position_high.svg +5 -0
  181. package/dist/reputation/position_low.svg +12 -0
  182. package/dist/reputation/position_mid.svg +11 -0
  183. package/dist/types/core/BenchmarkGauge/BenchmarkGauge.d.ts +2 -0
  184. package/dist/types/core/BenchmarkGauge/BenchmarkGaugeMarker/BenchmarkGaugeMarker.d.ts +16 -0
  185. package/dist/types/core/BenchmarkGauge/BenchmarkGaugeMarker/BenchmarkGaugePin/BenchmarkGaugePin.d.ts +10 -0
  186. package/dist/types/core/BenchmarkGauge/hooks/use-benchmark-gauge-render-state.d.ts +19 -0
  187. package/dist/types/core/BenchmarkGauge/index.d.ts +2 -0
  188. package/dist/types/core/BenchmarkGauge/stories/AuditSimulation.story.d.ts +2 -0
  189. package/dist/types/core/BenchmarkGauge/stories/ColorByRankCustomPalette.story.d.ts +2 -0
  190. package/dist/types/core/BenchmarkGauge/stories/ColorByRankDefault.story.d.ts +2 -0
  191. package/dist/types/core/BenchmarkGauge/stories/ColorByRankMixedPrecedence.story.d.ts +2 -0
  192. package/dist/types/core/BenchmarkGauge/stories/ColorByRankTwoMarkersEndpoints.story.d.ts +2 -0
  193. package/dist/types/core/BenchmarkGauge/stories/EdgePins.story.d.ts +2 -0
  194. package/dist/types/core/BenchmarkGauge/stories/FullTrackNoProgress.story.d.ts +2 -0
  195. package/dist/types/core/BenchmarkGauge/stories/HorizontalDefault.story.d.ts +2 -0
  196. package/dist/types/core/BenchmarkGauge/stories/InsideEndLabelOnly.story.d.ts +2 -0
  197. package/dist/types/core/BenchmarkGauge/stories/InsideLabels.story.d.ts +2 -0
  198. package/dist/types/core/BenchmarkGauge/stories/InsideLabelsVertical.story.d.ts +2 -0
  199. package/dist/types/core/BenchmarkGauge/stories/InsideLabelsWithOverlap.story.d.ts +2 -0
  200. package/dist/types/core/BenchmarkGauge/stories/InsideLabelsWithProgress.story.d.ts +2 -0
  201. package/dist/types/core/BenchmarkGauge/stories/InsideStartLabelOnly.story.d.ts +2 -0
  202. package/dist/types/core/BenchmarkGauge/stories/InvalidRangeGuard.story.d.ts +2 -0
  203. package/dist/types/core/BenchmarkGauge/stories/LegendHorizontal.story.d.ts +2 -0
  204. package/dist/types/core/BenchmarkGauge/stories/LegendNone.story.d.ts +2 -0
  205. package/dist/types/core/BenchmarkGauge/stories/LegendPartial.story.d.ts +2 -0
  206. package/dist/types/core/BenchmarkGauge/stories/LegendVertical.story.d.ts +2 -0
  207. package/dist/types/core/BenchmarkGauge/stories/LegendWithCoreGrowEffect.story.d.ts +2 -0
  208. package/dist/types/core/BenchmarkGauge/stories/LegendWithHighlightedIcons.story.d.ts +2 -0
  209. package/dist/types/core/BenchmarkGauge/stories/LegendWithWrapperExtras.story.d.ts +2 -0
  210. package/dist/types/core/BenchmarkGauge/stories/ListingsSimulation.story.d.ts +2 -0
  211. package/dist/types/core/BenchmarkGauge/stories/NoMarkers.story.d.ts +2 -0
  212. package/dist/types/core/BenchmarkGauge/stories/OverlappingMarkers.story.d.ts +2 -0
  213. package/dist/types/core/BenchmarkGauge/stories/ProgressAtMax.story.d.ts +2 -0
  214. package/dist/types/core/BenchmarkGauge/stories/ProgressAtMin.story.d.ts +2 -0
  215. package/dist/types/core/BenchmarkGauge/stories/ProgressHorizontal.story.d.ts +2 -0
  216. package/dist/types/core/BenchmarkGauge/stories/ProgressInvalidId.story.d.ts +2 -0
  217. package/dist/types/core/BenchmarkGauge/stories/ProgressVertical.story.d.ts +2 -0
  218. package/dist/types/core/BenchmarkGauge/stories/ProgressVerticalAtMin.story.d.ts +2 -0
  219. package/dist/types/core/BenchmarkGauge/stories/ProgressWideTextPin.story.d.ts +2 -0
  220. package/dist/types/core/BenchmarkGauge/stories/ProgressWideTextPinVertical.story.d.ts +2 -0
  221. package/dist/types/core/BenchmarkGauge/stories/RankScenarioA.story.d.ts +2 -0
  222. package/dist/types/core/BenchmarkGauge/stories/RankScenarioB.story.d.ts +2 -0
  223. package/dist/types/core/BenchmarkGauge/stories/RankScenarioC.story.d.ts +2 -0
  224. package/dist/types/core/BenchmarkGauge/stories/RankWithContent.story.d.ts +2 -0
  225. package/dist/types/core/BenchmarkGauge/stories/ScoreSimulation.story.d.ts +2 -0
  226. package/dist/types/core/BenchmarkGauge/stories/StaticColorRegression.story.d.ts +2 -0
  227. package/dist/types/core/BenchmarkGauge/stories/VerticalDefault.story.d.ts +2 -0
  228. package/dist/types/core/BenchmarkGauge/stories/WithContentAutoFlip.story.d.ts +2 -0
  229. package/dist/types/core/BenchmarkGauge/stories/WithContentEnd.story.d.ts +2 -0
  230. package/dist/types/core/BenchmarkGauge/stories/WithContentStart.story.d.ts +2 -0
  231. package/dist/types/core/BenchmarkGauge/stories/_BenchmarkGauge.default.d.ts +44 -0
  232. package/dist/types/core/BenchmarkGauge/types.d.ts +136 -0
  233. package/dist/types/core/BenchmarkGauge/utils.d.ts +61 -0
  234. package/dist/types/index.d.ts +2 -0
  235. package/dist/vanguard-asset-analysis.json +1 -1
  236. package/dist/vanguard.css +1 -1
  237. package/package.json +1 -1
@@ -1,21 +1,50 @@
1
- function n(i) {
2
- if (!i) return;
3
- const e = i.toLowerCase();
4
- if (e.includes("facebook.com") || e.includes("fb.com"))
5
- return "facebook";
6
- if (e.includes("instagram.com"))
7
- return "instagram";
8
- if (e.includes("youtube.com") || e.includes("youtu.be"))
9
- return "youtube";
10
- if (e.includes("linkedin.com"))
11
- return "linkedin";
12
- if (e.includes("pinterest.com") || e.includes("pin.it"))
13
- return "pinterest";
14
- if (e.includes("tiktok.com"))
15
- return "tiktok";
16
- if (e.includes("twitter.com") || e.includes("x.com"))
17
- return "twitter";
18
- }
1
+ const d = (e, t, n) => n <= t ? 0 : Math.max(0, Math.min(100, (e - t) / (n - t) * 100)), l = (e) => `calc(var(--benchmark-gauge-marker-inset, 20px) + ${e / 100} * (100% - 2 * var(--benchmark-gauge-marker-inset, 20px)))`, g = (e) => e >= 100 ? "0px" : `calc(${1 - e / 100} * (100% - 2 * var(--benchmark-gauge-marker-inset, 20px)))`, m = (e) => new Intl.NumberFormat("en", {
2
+ notation: "compact",
3
+ maximumSignificantDigits: 3
4
+ }).format(e), o = ["var(--e500)", "var(--a2900)", "var(--s400)"], h = ({
5
+ markerColor: e,
6
+ rankIndex: t,
7
+ rankCount: n,
8
+ colorByRank: c,
9
+ rankColors: r
10
+ }) => {
11
+ const u = "var(--n400)";
12
+ if (e) return e;
13
+ if (c) {
14
+ const a = r != null && r.length ? r : o;
15
+ if (!a.length)
16
+ return u;
17
+ const i = Math.round(t / Math.max(n - 1, 1) * (a.length - 1));
18
+ return a[Math.max(0, Math.min(i, a.length - 1))] ?? u;
19
+ }
20
+ return u;
21
+ }, v = ({
22
+ showLabels: e,
23
+ startLabel: t,
24
+ endLabel: n,
25
+ min: c,
26
+ max: r,
27
+ compactLabels: u = !1
28
+ }) => {
29
+ if (e === !1)
30
+ return {
31
+ startLabel: void 0,
32
+ endLabel: void 0
33
+ };
34
+ const a = u ? m : String, i = (s, f) => {
35
+ if (s !== null)
36
+ return s !== void 0 ? s : e ? a(f) : void 0;
37
+ };
38
+ return {
39
+ startLabel: i(t, c),
40
+ endLabel: i(n, r)
41
+ };
42
+ };
19
43
  export {
20
- n as detectNetworkFromUrl
44
+ o as DEFAULT_RANK_COLORS,
45
+ g as fillClipInset,
46
+ l as markerPosition,
47
+ v as resolveLabels,
48
+ h as resolveMarkerColor,
49
+ d as valueToPercent
21
50
  };
@@ -1,66 +1,21 @@
1
- import c from "./index-loadjs.umd.js";
2
- import { useRef as s } from "react";
3
- function i() {
4
- return i = Object.assign || function(t) {
5
- for (var r = 1; r < arguments.length; r++) {
6
- var e = arguments[r];
7
- for (var o in e)
8
- Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
9
- }
10
- return t;
11
- }, i.apply(this, arguments);
12
- }
13
- var l = "https://platform.twitter.com/widgets.js", f = "twttr", a = f, m = !!(typeof window < "u" && window.document && window.document.createElement);
14
- function h() {
15
- c(l, a);
16
- }
17
- function g() {
18
- return new Promise(function(t, r) {
19
- var e = function() {
20
- return r(new Error("Could not load remote twitter widgets js"));
21
- };
22
- c.ready(a, {
23
- success: function() {
24
- var n = window[f];
25
- (!n || !n.widgets) && e(), t(n.widgets);
26
- },
27
- error: e
28
- });
29
- });
30
- }
31
- function v(t, r) {
32
- t && t.querySelectorAll("*").forEach(function(e) {
33
- e.hasAttribute(r) && e.remove();
34
- });
35
- }
36
- function u(t, r) {
37
- return t === r ? t !== 0 || r !== 0 || 1 / t === 1 / r : t !== t && r !== r;
38
- }
39
- function w(t, r) {
40
- if (u(t, r))
41
- return !0;
42
- if (typeof t != "object" || t === null || typeof r != "object" || r === null)
43
- return !1;
44
- var e = Object.keys(t), o = Object.keys(r);
45
- if (e.length !== o.length)
46
- return !1;
47
- for (var n = 0; n < e.length; n++)
48
- if (!Object.prototype.hasOwnProperty.call(r, e[n]) || !u(t[e[n]], r[e[n]]))
49
- return !1;
50
- return !0;
51
- }
52
- function y(t) {
53
- var r = s();
54
- return w(t, r.current) || (r.current = t), r.current;
55
- }
56
- function O(t) {
57
- return typeof t == "object" ? i({}, t) : t;
1
+ function n(i) {
2
+ if (!i) return;
3
+ const e = i.toLowerCase();
4
+ if (e.includes("facebook.com") || e.includes("fb.com"))
5
+ return "facebook";
6
+ if (e.includes("instagram.com"))
7
+ return "instagram";
8
+ if (e.includes("youtube.com") || e.includes("youtu.be"))
9
+ return "youtube";
10
+ if (e.includes("linkedin.com"))
11
+ return "linkedin";
12
+ if (e.includes("pinterest.com") || e.includes("pin.it"))
13
+ return "pinterest";
14
+ if (e.includes("tiktok.com"))
15
+ return "tiktok";
16
+ if (e.includes("twitter.com") || e.includes("x.com"))
17
+ return "twitter";
58
18
  }
59
19
  export {
60
- m as canUseDOM,
61
- O as cloneShallow,
62
- v as removeChildrenWithAttribute,
63
- h as twLoad,
64
- g as twWidgetFactory,
65
- y as useShallowCompareMemoize
20
+ n as detectNetworkFromUrl
66
21
  };
@@ -1,18 +1,66 @@
1
- const s = (t) => t.scrollTop;
2
- function l(t, e) {
3
- var r, a;
4
- const {
5
- timeout: n,
6
- easing: i,
7
- style: o = {}
8
- } = t;
9
- return {
10
- duration: (r = o.transitionDuration) != null ? r : typeof n == "number" ? n : n[e.mode] || 0,
11
- easing: (a = o.transitionTimingFunction) != null ? a : typeof i == "object" ? i[e.mode] : i,
12
- delay: o.transitionDelay
13
- };
1
+ import c from "./index-loadjs.umd.js";
2
+ import { useRef as s } from "react";
3
+ function i() {
4
+ return i = Object.assign || function(t) {
5
+ for (var r = 1; r < arguments.length; r++) {
6
+ var e = arguments[r];
7
+ for (var o in e)
8
+ Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
9
+ }
10
+ return t;
11
+ }, i.apply(this, arguments);
12
+ }
13
+ var l = "https://platform.twitter.com/widgets.js", f = "twttr", a = f, m = !!(typeof window < "u" && window.document && window.document.createElement);
14
+ function h() {
15
+ c(l, a);
16
+ }
17
+ function g() {
18
+ return new Promise(function(t, r) {
19
+ var e = function() {
20
+ return r(new Error("Could not load remote twitter widgets js"));
21
+ };
22
+ c.ready(a, {
23
+ success: function() {
24
+ var n = window[f];
25
+ (!n || !n.widgets) && e(), t(n.widgets);
26
+ },
27
+ error: e
28
+ });
29
+ });
30
+ }
31
+ function v(t, r) {
32
+ t && t.querySelectorAll("*").forEach(function(e) {
33
+ e.hasAttribute(r) && e.remove();
34
+ });
35
+ }
36
+ function u(t, r) {
37
+ return t === r ? t !== 0 || r !== 0 || 1 / t === 1 / r : t !== t && r !== r;
38
+ }
39
+ function w(t, r) {
40
+ if (u(t, r))
41
+ return !0;
42
+ if (typeof t != "object" || t === null || typeof r != "object" || r === null)
43
+ return !1;
44
+ var e = Object.keys(t), o = Object.keys(r);
45
+ if (e.length !== o.length)
46
+ return !1;
47
+ for (var n = 0; n < e.length; n++)
48
+ if (!Object.prototype.hasOwnProperty.call(r, e[n]) || !u(t[e[n]], r[e[n]]))
49
+ return !1;
50
+ return !0;
51
+ }
52
+ function y(t) {
53
+ var r = s();
54
+ return w(t, r.current) || (r.current = t), r.current;
55
+ }
56
+ function O(t) {
57
+ return typeof t == "object" ? i({}, t) : t;
14
58
  }
15
59
  export {
16
- l as getTransitionProps,
17
- s as reflow
60
+ m as canUseDOM,
61
+ O as cloneShallow,
62
+ v as removeChildrenWithAttribute,
63
+ h as twLoad,
64
+ g as twWidgetFactory,
65
+ y as useShallowCompareMemoize
18
66
  };
@@ -1,69 +1,18 @@
1
- import { __exports as d } from "./index-utils8.js";
2
- import { __require as y } from "./index-classnames2.js";
3
- import C from "./index-_virtual39.js";
4
- import p from "./index-_virtual47.js";
5
- import w from "./index-_virtual40.js";
6
- import F from "./index-_virtual52.js";
7
- import N from "./index-_virtual53.js";
8
- import S from "./index-_virtual45.js";
9
- import U from "./index-_virtual46.js";
10
- var v;
11
- function H() {
12
- if (v) return d;
13
- v = 1, Object.defineProperty(d, "__esModule", {
14
- value: !0
15
- }), d.calcFocusDate = M, d.findNextRangeIndex = x, d.getMonthDisplayRange = R, d.generateStyles = I;
16
- var D = f(y()), _ = f(C), g = f(p), h = f(w), $ = f(F), q = f(N), s = f(S), l = f(U);
17
- function f(e) {
18
- return e && e.__esModule ? e : { default: e };
19
- }
20
- function M(e, t) {
21
- var a = t.shownDate, r = t.date, u = t.months, o = t.ranges, i = t.focusedRange, O = t.displayMode, n;
22
- if (O === "dateRange") {
23
- var c = o[i[0]] || {};
24
- n = {
25
- start: c.startDate,
26
- end: c.endDate
27
- };
28
- } else
29
- n = {
30
- start: r,
31
- end: r
32
- };
33
- n.start = (0, l.default)(n.start || /* @__PURE__ */ new Date()), n.end = (0, s.default)(n.end || n.start);
34
- var m = n.start || n.end || a || /* @__PURE__ */ new Date();
35
- return e ? (0, g.default)(n.start, n.end) > u ? e : m : a || m;
36
- }
37
- function x(e) {
38
- var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : -1, a = e.findIndex(function(r, u) {
39
- return u > t && r.autoFocus !== !1 && !r.disabled;
40
- });
41
- return a !== -1 ? a : e.findIndex(function(r) {
42
- return r.autoFocus !== !1 && !r.disabled;
43
- });
44
- }
45
- function R(e, t, a) {
46
- var r = (0, l.default)(e, t), u = (0, s.default)(e, t), o = (0, q.default)(r, t), i = (0, $.default)(u, t);
47
- return a && (0, h.default)(i, o) <= 34 && (i = (0, _.default)(i, 7)), {
48
- start: o,
49
- end: i,
50
- startDateOfMonth: r,
51
- endDateOfMonth: u
52
- };
53
- }
54
- function I(e) {
55
- if (!e.length) return {};
56
- var t = e.filter(function(a) {
57
- return !!a;
58
- }).reduce(function(a, r) {
59
- return Object.keys(r).forEach(function(u) {
60
- a[u] = (0, D.default)(a[u], r[u]);
61
- }), a;
62
- }, {});
63
- return t;
64
- }
65
- return d;
1
+ const s = (t) => t.scrollTop;
2
+ function l(t, e) {
3
+ var r, a;
4
+ const {
5
+ timeout: n,
6
+ easing: i,
7
+ style: o = {}
8
+ } = t;
9
+ return {
10
+ duration: (r = o.transitionDuration) != null ? r : typeof n == "number" ? n : n[e.mode] || 0,
11
+ easing: (a = o.transitionTimingFunction) != null ? a : typeof i == "object" ? i[e.mode] : i,
12
+ delay: o.transitionDelay
13
+ };
66
14
  }
67
15
  export {
68
- H as __require
16
+ l as getTransitionProps,
17
+ s as reflow
69
18
  };
@@ -1,14 +1,69 @@
1
- function t(r) {
2
- return r != null && !(Array.isArray(r) && r.length === 0);
3
- }
4
- function n(r, e = !1) {
5
- return r && (t(r.value) && r.value !== "" || e && t(r.defaultValue) && r.defaultValue !== "");
6
- }
7
- function u(r) {
8
- return r.startAdornment;
1
+ import { __exports as d } from "./index-utils9.js";
2
+ import { __require as y } from "./index-classnames2.js";
3
+ import C from "./index-_virtual39.js";
4
+ import p from "./index-_virtual47.js";
5
+ import w from "./index-_virtual40.js";
6
+ import F from "./index-_virtual52.js";
7
+ import N from "./index-_virtual53.js";
8
+ import S from "./index-_virtual45.js";
9
+ import U from "./index-_virtual46.js";
10
+ var v;
11
+ function H() {
12
+ if (v) return d;
13
+ v = 1, Object.defineProperty(d, "__esModule", {
14
+ value: !0
15
+ }), d.calcFocusDate = M, d.findNextRangeIndex = x, d.getMonthDisplayRange = R, d.generateStyles = I;
16
+ var D = f(y()), _ = f(C), g = f(p), h = f(w), $ = f(F), q = f(N), s = f(S), l = f(U);
17
+ function f(e) {
18
+ return e && e.__esModule ? e : { default: e };
19
+ }
20
+ function M(e, t) {
21
+ var a = t.shownDate, r = t.date, u = t.months, o = t.ranges, i = t.focusedRange, O = t.displayMode, n;
22
+ if (O === "dateRange") {
23
+ var c = o[i[0]] || {};
24
+ n = {
25
+ start: c.startDate,
26
+ end: c.endDate
27
+ };
28
+ } else
29
+ n = {
30
+ start: r,
31
+ end: r
32
+ };
33
+ n.start = (0, l.default)(n.start || /* @__PURE__ */ new Date()), n.end = (0, s.default)(n.end || n.start);
34
+ var m = n.start || n.end || a || /* @__PURE__ */ new Date();
35
+ return e ? (0, g.default)(n.start, n.end) > u ? e : m : a || m;
36
+ }
37
+ function x(e) {
38
+ var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : -1, a = e.findIndex(function(r, u) {
39
+ return u > t && r.autoFocus !== !1 && !r.disabled;
40
+ });
41
+ return a !== -1 ? a : e.findIndex(function(r) {
42
+ return r.autoFocus !== !1 && !r.disabled;
43
+ });
44
+ }
45
+ function R(e, t, a) {
46
+ var r = (0, l.default)(e, t), u = (0, s.default)(e, t), o = (0, q.default)(r, t), i = (0, $.default)(u, t);
47
+ return a && (0, h.default)(i, o) <= 34 && (i = (0, _.default)(i, 7)), {
48
+ start: o,
49
+ end: i,
50
+ startDateOfMonth: r,
51
+ endDateOfMonth: u
52
+ };
53
+ }
54
+ function I(e) {
55
+ if (!e.length) return {};
56
+ var t = e.filter(function(a) {
57
+ return !!a;
58
+ }).reduce(function(a, r) {
59
+ return Object.keys(r).forEach(function(u) {
60
+ a[u] = (0, D.default)(a[u], r[u]);
61
+ }), a;
62
+ }, {});
63
+ return t;
64
+ }
65
+ return d;
9
66
  }
10
67
  export {
11
- t as hasValue,
12
- u as isAdornedStart,
13
- n as isFilled
68
+ H as __require
14
69
  };
@@ -1,4 +1,14 @@
1
- var r = {};
1
+ function t(r) {
2
+ return r != null && !(Array.isArray(r) && r.length === 0);
3
+ }
4
+ function n(r, e = !1) {
5
+ return r && (t(r.value) && r.value !== "" || e && t(r.defaultValue) && r.defaultValue !== "");
6
+ }
7
+ function u(r) {
8
+ return r.startAdornment;
9
+ }
2
10
  export {
3
- r as __exports
11
+ t as hasValue,
12
+ u as isAdornedStart,
13
+ n as isFilled
4
14
  };
@@ -1,182 +1,4 @@
1
- import { __require as J } from "./index-bind.js";
2
- var F, A;
3
- function X() {
4
- if (A) return F;
5
- A = 1;
6
- var w = J(), s = Object.prototype.toString, l = /* @__PURE__ */ (function(r) {
7
- return function(e) {
8
- var t = s.call(e);
9
- return r[t] || (r[t] = t.slice(8, -1).toLowerCase());
10
- };
11
- })(/* @__PURE__ */ Object.create(null));
12
- function f(r) {
13
- return r = r.toLowerCase(), function(t) {
14
- return l(t) === r;
15
- };
16
- }
17
- function o(r) {
18
- return Array.isArray(r);
19
- }
20
- function p(r) {
21
- return typeof r > "u";
22
- }
23
- function B(r) {
24
- return r !== null && !p(r) && r.constructor !== null && !p(r.constructor) && typeof r.constructor.isBuffer == "function" && r.constructor.isBuffer(r);
25
- }
26
- var O = f("ArrayBuffer");
27
- function S(r) {
28
- var e;
29
- return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(r) : e = r && r.buffer && O(r.buffer), e;
30
- }
31
- function E(r) {
32
- return typeof r == "string";
33
- }
34
- function g(r) {
35
- return typeof r == "number";
36
- }
37
- function h(r) {
38
- return r !== null && typeof r == "object";
39
- }
40
- function c(r) {
41
- if (l(r) !== "object")
42
- return !1;
43
- var e = Object.getPrototypeOf(r);
44
- return e === null || e === Object.prototype;
45
- }
46
- function P(r) {
47
- return r && Object.keys(r).length === 0 && Object.getPrototypeOf(r) === Object.prototype;
48
- }
49
- var L = f("Date"), x = f("File"), b = f("Blob"), U = f("FileList");
50
- function y(r) {
51
- return s.call(r) === "[object Function]";
52
- }
53
- function D(r) {
54
- return h(r) && y(r.pipe);
55
- }
56
- function N(r) {
57
- var e = "[object FormData]";
58
- return r && (typeof FormData == "function" && r instanceof FormData || s.call(r) === e || y(r.toString) && r.toString() === e);
59
- }
60
- var T = f("URLSearchParams");
61
- function V(r) {
62
- return r.trim ? r.trim() : r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
63
- }
64
- function q() {
65
- var r;
66
- return typeof navigator < "u" && ((r = navigator.product) === "ReactNative" || r === "NativeScript" || r === "NS") ? !1 : typeof window < "u" && typeof document < "u";
67
- }
68
- function d(r, e) {
69
- if (!(r === null || typeof r > "u"))
70
- if (typeof r != "object" && (r = [r]), o(r))
71
- for (var t = 0, i = r.length; t < i; t++)
72
- e.call(null, r[t], t, r);
73
- else
74
- for (var n in r)
75
- Object.prototype.hasOwnProperty.call(r, n) && e.call(null, r[n], n, r);
76
- }
77
- function m() {
78
- var r = {};
79
- function e(n, u) {
80
- c(r[u]) && c(n) ? r[u] = m(r[u], n) : c(n) ? r[u] = m({}, n) : o(n) ? r[u] = n.slice() : r[u] = n;
81
- }
82
- for (var t = 0, i = arguments.length; t < i; t++)
83
- d(arguments[t], e);
84
- return r;
85
- }
86
- function M(r, e, t) {
87
- return d(e, function(n, u) {
88
- t && typeof n == "function" ? r[u] = w(n, t) : r[u] = n;
89
- }), r;
90
- }
91
- function R(r) {
92
- return r.charCodeAt(0) === 65279 && (r = r.slice(1)), r;
93
- }
94
- function _(r, e, t, i) {
95
- r.prototype = Object.create(e.prototype, i), r.prototype.constructor = r, t && Object.assign(r.prototype, t);
96
- }
97
- function C(r, e, t, i) {
98
- var n, u, a, v = {};
99
- if (e = e || {}, r == null) return e;
100
- do {
101
- for (n = Object.getOwnPropertyNames(r), u = n.length; u-- > 0; )
102
- a = n[u], (!i || i(a, r, e)) && !v[a] && (e[a] = r[a], v[a] = !0);
103
- r = t !== !1 && Object.getPrototypeOf(r);
104
- } while (r && (!t || t(r, e)) && r !== Object.prototype);
105
- return e;
106
- }
107
- function H(r, e, t) {
108
- r = String(r), (t === void 0 || t > r.length) && (t = r.length), t -= e.length;
109
- var i = r.indexOf(e, t);
110
- return i !== -1 && i === t;
111
- }
112
- function W(r) {
113
- if (!r) return null;
114
- if (o(r)) return r;
115
- var e = r.length;
116
- if (!g(e)) return null;
117
- for (var t = new Array(e); e-- > 0; )
118
- t[e] = r[e];
119
- return t;
120
- }
121
- var I = /* @__PURE__ */ (function(r) {
122
- return function(e) {
123
- return r && e instanceof r;
124
- };
125
- })(typeof Uint8Array < "u" && Object.getPrototypeOf(Uint8Array));
126
- function K(r, e) {
127
- for (var t = r && r[Symbol.iterator], i = t.call(r), n; (n = i.next()) && !n.done; ) {
128
- var u = n.value;
129
- e.call(r, u[0], u[1]);
130
- }
131
- }
132
- function $(r, e) {
133
- for (var t, i = []; (t = r.exec(e)) !== null; )
134
- i.push(t);
135
- return i;
136
- }
137
- var z = f("HTMLFormElement"), G = /* @__PURE__ */ (function(e) {
138
- return function(t, i) {
139
- return e.call(t, i);
140
- };
141
- })(Object.prototype.hasOwnProperty);
142
- return F = {
143
- isArray: o,
144
- isArrayBuffer: O,
145
- isBuffer: B,
146
- isFormData: N,
147
- isArrayBufferView: S,
148
- isString: E,
149
- isNumber: g,
150
- isObject: h,
151
- isPlainObject: c,
152
- isEmptyObject: P,
153
- isUndefined: p,
154
- isDate: L,
155
- isFile: x,
156
- isBlob: b,
157
- isFunction: y,
158
- isStream: D,
159
- isURLSearchParams: T,
160
- isStandardBrowserEnv: q,
161
- forEach: d,
162
- merge: m,
163
- extend: M,
164
- trim: V,
165
- stripBOM: R,
166
- inherits: _,
167
- toFlatObject: C,
168
- kindOf: l,
169
- kindOfTest: f,
170
- endsWith: H,
171
- toArray: W,
172
- isTypedArray: I,
173
- isFileList: U,
174
- forEachEntry: K,
175
- matchAll: $,
176
- isHTMLForm: z,
177
- hasOwnProperty: G
178
- }, F;
179
- }
1
+ var r = {};
180
2
  export {
181
- X as __require
3
+ r as __exports
182
4
  };
package/dist/index-xhr.js CHANGED
@@ -1,4 +1,4 @@
1
- import { __require as S } from "./index-utils9.js";
1
+ import { __require as S } from "./index-utils10.js";
2
2
  import { __require as B } from "./index-settle.js";
3
3
  import { __require as F } from "./index-cookies.js";
4
4
  import { __require as X } from "./index-buildURL.js";