trepur_components 2.3.9 → 2.3.10

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 (282) hide show
  1. package/lib/_virtual/react.js +4 -0
  2. package/lib/components/Accordion/Accordion.stories.d.ts +47 -0
  3. package/lib/components/Accordion/const.d.ts +31 -0
  4. package/lib/components/Accordion/index.d.ts +5 -0
  5. package/lib/components/Accordion/index.js +9 -0
  6. package/lib/components/AlertBar/AlertBar.stories.d.ts +24 -0
  7. package/lib/components/AlertBar/index.d.ts +16 -0
  8. package/lib/components/AlertBar/index.js +36 -0
  9. package/lib/components/Avatar/Avatar.stories.d.ts +10 -0
  10. package/lib/components/Avatar/index.d.ts +3 -0
  11. package/lib/components/Breadcrumbs/Breadcrumbs.stories.d.ts +18 -0
  12. package/lib/components/Breadcrumbs/index.d.ts +17 -0
  13. package/lib/components/Breadcrumbs/index.js +16 -0
  14. package/lib/components/Button/Button.stories.d.ts +20 -0
  15. package/lib/components/Button/index.d.ts +13 -0
  16. package/lib/components/Button/index.js +30 -0
  17. package/lib/components/Calendar/Calendar.stories.d.ts +11 -0
  18. package/lib/components/Calendar/index.d.ts +14 -0
  19. package/lib/components/Calendar/index.js +49 -0
  20. package/lib/components/Calendar/style.css.js +1 -0
  21. package/lib/components/Card/Card.stories.d.ts +11 -0
  22. package/lib/components/Card/index.d.ts +2 -0
  23. package/lib/components/Card/index.js +25 -0
  24. package/lib/components/Carousel/Carousel.stories.d.ts +23 -0
  25. package/lib/components/Carousel/index.d.ts +70 -0
  26. package/lib/components/Carousel/index.js +159 -0
  27. package/lib/components/Carousel/utils.d.ts +1 -0
  28. package/lib/components/Carousel/utils.js +38 -0
  29. package/lib/components/CarouselThumbnail/CarouselThumbnail.stories.d.ts +22 -0
  30. package/lib/components/CarouselThumbnail/const.d.ts +1 -0
  31. package/lib/components/CarouselThumbnail/const.js +20 -0
  32. package/lib/components/CarouselThumbnail/index.d.ts +51 -0
  33. package/lib/components/CarouselThumbnail/index.js +74 -0
  34. package/lib/components/CarouselThumbnail/utils.d.ts +2 -0
  35. package/lib/components/CarouselThumbnail/utils.js +65 -0
  36. package/lib/components/Checkbox/Checkbox.stories.d.ts +17 -0
  37. package/lib/components/Checkbox/index.d.ts +11 -0
  38. package/lib/components/Checkbox/index.js +28 -0
  39. package/lib/components/Collapsible/Collapsible.stories.d.ts +57 -0
  40. package/lib/components/Collapsible/index.d.ts +19 -0
  41. package/lib/components/Collapsible/index.js +87 -0
  42. package/lib/components/Counter/Counter.stories.d.ts +17 -0
  43. package/lib/components/Counter/index.d.ts +14 -0
  44. package/lib/components/Counter/index.js +49 -0
  45. package/lib/components/DetailUpdater/DetailUpdater.stories.d.ts +20 -0
  46. package/lib/components/DetailUpdater/index.d.ts +18 -0
  47. package/lib/components/DetailUpdater/index.js +63 -0
  48. package/lib/components/Dialog/Dialog.stories.d.ts +15 -0
  49. package/lib/components/Dialog/index.d.ts +12 -0
  50. package/lib/components/Dialog/index.js +16 -0
  51. package/lib/components/Dropdown/Dropdown.stories.d.ts +17 -0
  52. package/lib/components/Dropdown/index.d.ts +13 -0
  53. package/lib/components/Dropdown/index.js +66 -0
  54. package/lib/components/Dropdown/utils.d.ts +1 -0
  55. package/lib/components/Dropdown/utils.js +14 -0
  56. package/lib/components/FileUploader/FilePreview.d.ts +8 -0
  57. package/lib/components/FileUploader/FileUploader.stories.d.ts +52 -0
  58. package/lib/components/FileUploader/index.d.ts +15 -0
  59. package/lib/components/Footer/Footer.stories.d.ts +19 -0
  60. package/lib/components/Footer/index.d.ts +16 -0
  61. package/lib/components/Footer/index.js +36 -0
  62. package/lib/components/FooterNav/FooterNav.stories.d.ts +22 -0
  63. package/lib/components/FooterNav/index.d.ts +15 -0
  64. package/lib/components/FooterNav/index.js +38 -0
  65. package/lib/components/Form/Form.stories.d.ts +117 -0
  66. package/lib/components/Form/index.d.ts +13 -0
  67. package/lib/components/Form/index.js +17 -0
  68. package/lib/components/Gallery/Gallery.stories.d.ts +16 -0
  69. package/lib/components/Gallery/index.d.ts +7 -0
  70. package/lib/components/Greeting/Greeting.stories.d.ts +13 -0
  71. package/lib/components/Greeting/index.d.ts +7 -0
  72. package/lib/components/Greeting/index.js +20 -0
  73. package/lib/components/HamburgerIcon/HamburgerIcon.stories.d.ts +10 -0
  74. package/lib/components/HamburgerIcon/index.d.ts +2 -0
  75. package/lib/components/HamburgerIcon/index.js +78 -0
  76. package/lib/components/Icon/Icon.stories.d.ts +16 -0
  77. package/lib/components/Icon/index.d.ts +10 -0
  78. package/lib/components/Icon/index.js +23 -0
  79. package/lib/components/Image/Image.stories.d.ts +13 -0
  80. package/lib/components/Image/index.d.ts +5 -0
  81. package/lib/components/Image/index.js +17 -0
  82. package/lib/components/ImageCard/ImageCard.stories.d.ts +19 -0
  83. package/lib/components/ImageCard/index.d.ts +11 -0
  84. package/lib/components/ImageCard/index.js +32 -0
  85. package/lib/components/Input/Input.stories.d.ts +22 -0
  86. package/lib/components/Input/index.d.ts +33 -0
  87. package/lib/components/Input/index.js +83 -0
  88. package/lib/components/MenuButton/MenuButton.stories.d.ts +76 -0
  89. package/lib/components/MenuButton/index.d.ts +14 -0
  90. package/lib/components/MenuButton/index.js +56 -0
  91. package/lib/components/Modal/Modal.stories.d.ts +67 -0
  92. package/lib/components/Modal/index.d.ts +10 -0
  93. package/lib/components/Modal/index.js +45 -0
  94. package/lib/components/Nav/Nav.stories.d.ts +32 -0
  95. package/lib/components/Nav/index.d.ts +21 -0
  96. package/lib/components/Nav/index.js +82 -0
  97. package/lib/components/NavItem/NavItem.stories.d.ts +18 -0
  98. package/lib/components/NavItem/index.d.ts +8 -0
  99. package/lib/components/NavItem/index.js +24 -0
  100. package/lib/components/Pill/Pill.stories.d.ts +22 -0
  101. package/lib/components/Pill/index.d.ts +17 -0
  102. package/lib/components/Pill/index.js +31 -0
  103. package/lib/components/Search/Search.stories.d.ts +86 -0
  104. package/lib/components/Search/index.d.ts +12 -0
  105. package/lib/components/Search/index.js +42 -0
  106. package/lib/components/Select/Select.stories.d.ts +56 -0
  107. package/lib/components/Select/index.d.ts +11 -0
  108. package/lib/components/Select/index.js +68 -0
  109. package/lib/components/Showcase/Showcase.stories.d.ts +55 -0
  110. package/lib/components/Showcase/index.d.ts +15 -0
  111. package/lib/components/SideNav/SideNav.stories.d.ts +80 -0
  112. package/lib/components/SideNav/index.d.ts +12 -0
  113. package/lib/components/SocialButton/SocialButton.stories.d.ts +130 -0
  114. package/lib/components/SocialButton/index.d.ts +12 -0
  115. package/lib/components/SplitCard/SplitCard.stories.d.ts +21 -0
  116. package/lib/components/SplitCard/index.d.ts +14 -0
  117. package/lib/components/Stars/Star.stories.d.ts +14 -0
  118. package/lib/components/Stars/index.d.ts +8 -0
  119. package/lib/components/Stars/index.js +22 -0
  120. package/lib/components/Testimonial/Testimonial.stories.d.ts +21 -0
  121. package/lib/components/Testimonial/index.d.ts +13 -0
  122. package/lib/components/Testimonial/index.js +42 -0
  123. package/lib/components/TextArea/TextArea.stories.d.ts +21 -0
  124. package/lib/components/TextArea/index.d.ts +33 -0
  125. package/lib/components/TextArea/index.js +76 -0
  126. package/lib/components/Timeline/Timeline.stories.d.ts +21 -0
  127. package/lib/components/Timeline/index.d.ts +11 -0
  128. package/lib/components/Timeline/index.js +31 -0
  129. package/lib/components/Tubestops/Tubestops.stories.d.ts +19 -0
  130. package/lib/components/Tubestops/index.d.ts +15 -0
  131. package/lib/components/Tubestops/index.js +77 -0
  132. package/lib/components/Video/Video.stories.d.ts +23 -0
  133. package/lib/components/Video/index.d.ts +18 -0
  134. package/lib/components/Video/index.js +32 -0
  135. package/{src/components/index.ts → lib/components/index.d.ts} +35 -71
  136. package/lib/documentation/assets/index.d.ts +3 -0
  137. package/lib/documentation/typography/Fonts/Fonts.d.ts +2 -0
  138. package/lib/documentation/typography/Fonts/Fonts.stories.d.ts +10 -0
  139. package/lib/index.js +72 -0
  140. package/lib/node_modules/keen-slider/keen-slider.min.css.js +1 -0
  141. package/lib/node_modules/keen-slider/react.js +591 -0
  142. package/lib/style.css +1 -0
  143. package/lib/utils/controls.d.ts +36 -0
  144. package/lib/utils/matchMedia.d.ts +2 -0
  145. package/lib/utils/screens.d.ts +7 -0
  146. package/package.json +4 -1
  147. package/.eslintrc.cjs +0 -72
  148. package/.husky/pre-commit +0 -4
  149. package/.prettierignore +0 -10
  150. package/.prettierrc.json +0 -22
  151. package/postcss.config.js +0 -8
  152. package/src/components/Accordion/Accordion.stories.tsx +0 -39
  153. package/src/components/Accordion/const.tsx +0 -34
  154. package/src/components/Accordion/index.tsx +0 -22
  155. package/src/components/AlertBar/AlertBar.stories.tsx +0 -89
  156. package/src/components/AlertBar/index.tsx +0 -82
  157. package/src/components/Avatar/Avatar.stories.tsx +0 -14
  158. package/src/components/Avatar/index.tsx +0 -492
  159. package/src/components/Breadcrumbs/Breadcrumbs.stories.tsx +0 -29
  160. package/src/components/Breadcrumbs/index.tsx +0 -89
  161. package/src/components/Button/Button.stories.tsx +0 -24
  162. package/src/components/Button/index.tsx +0 -59
  163. package/src/components/Calendar/Calendar.stories.tsx +0 -21
  164. package/src/components/Calendar/index.tsx +0 -92
  165. package/src/components/Calendar/style.css +0 -233
  166. package/src/components/Card/Card.stories.tsx +0 -14
  167. package/src/components/Card/index.tsx +0 -39
  168. package/src/components/Carousel/Carousel.stories.tsx +0 -44
  169. package/src/components/Carousel/index.tsx +0 -301
  170. package/src/components/Carousel/utils.ts +0 -53
  171. package/src/components/CarouselThumbnail/CarouselThumbnail.stories.tsx +0 -29
  172. package/src/components/CarouselThumbnail/const.ts +0 -17
  173. package/src/components/CarouselThumbnail/index.tsx +0 -169
  174. package/src/components/CarouselThumbnail/utils.ts +0 -87
  175. package/src/components/Checkbox/Checkbox.mdx +0 -33
  176. package/src/components/Checkbox/Checkbox.stories.tsx +0 -27
  177. package/src/components/Checkbox/index.tsx +0 -44
  178. package/src/components/Collapsible/Collapsible.stories.tsx +0 -67
  179. package/src/components/Collapsible/index.tsx +0 -169
  180. package/src/components/Counter/Counter.stories.tsx +0 -20
  181. package/src/components/Counter/index.tsx +0 -98
  182. package/src/components/DetailUpdater/DetailUpdater.stories.tsx +0 -37
  183. package/src/components/DetailUpdater/index.tsx +0 -107
  184. package/src/components/Dialog/Dialog.stories.tsx +0 -65
  185. package/src/components/Dialog/index.tsx +0 -29
  186. package/src/components/Dropdown/Dropdown.stories.tsx +0 -22
  187. package/src/components/Dropdown/index.tsx +0 -117
  188. package/src/components/Dropdown/utils.ts +0 -15
  189. package/src/components/FileUploader/FilePreview.tsx +0 -45
  190. package/src/components/FileUploader/FileUploader.stories.tsx +0 -28
  191. package/src/components/FileUploader/index.tsx +0 -177
  192. package/src/components/Footer/Footer.stories.tsx +0 -47
  193. package/src/components/Footer/index.tsx +0 -96
  194. package/src/components/FooterNav/FooterNav.stories.tsx +0 -32
  195. package/src/components/FooterNav/index.tsx +0 -75
  196. package/src/components/Form/Form.stories.tsx +0 -86
  197. package/src/components/Form/index.tsx +0 -41
  198. package/src/components/Gallery/Gallery.stories.tsx +0 -39
  199. package/src/components/Gallery/index.tsx +0 -31
  200. package/src/components/Greeting/Greeting.stories.tsx +0 -16
  201. package/src/components/Greeting/index.tsx +0 -49
  202. package/src/components/HamburgerIcon/HamburgerIcon.stories.tsx +0 -14
  203. package/src/components/HamburgerIcon/index.tsx +0 -75
  204. package/src/components/Icon/Icon.stories.tsx +0 -41
  205. package/src/components/Icon/index.tsx +0 -33
  206. package/src/components/Image/Image.stories.tsx +0 -17
  207. package/src/components/Image/index.tsx +0 -25
  208. package/src/components/ImageCard/ImageCard.stories.tsx +0 -29
  209. package/src/components/ImageCard/index.tsx +0 -75
  210. package/src/components/Input/Input.stories.tsx +0 -25
  211. package/src/components/Input/index.tsx +0 -139
  212. package/src/components/MenuButton/MenuButton.stories.tsx +0 -46
  213. package/src/components/MenuButton/index.tsx +0 -66
  214. package/src/components/Modal/Modal.stories.tsx +0 -82
  215. package/src/components/Modal/index.tsx +0 -71
  216. package/src/components/Nav/Nav.stories.tsx +0 -80
  217. package/src/components/Nav/index.tsx +0 -171
  218. package/src/components/NavItem/NavItem.stories.tsx +0 -17
  219. package/src/components/NavItem/index.tsx +0 -39
  220. package/src/components/Pill/Pill.stories.tsx +0 -51
  221. package/src/components/Pill/index.tsx +0 -69
  222. package/src/components/Search/Search.stories.tsx +0 -63
  223. package/src/components/Search/index.tsx +0 -64
  224. package/src/components/Select/Select.stories.tsx +0 -55
  225. package/src/components/Select/index.tsx +0 -97
  226. package/src/components/Showcase/Showcase.stories.tsx +0 -31
  227. package/src/components/Showcase/index.tsx +0 -62
  228. package/src/components/SideNav/SideNav.stories.tsx +0 -50
  229. package/src/components/SideNav/index.tsx +0 -39
  230. package/src/components/SocialButton/SocialButton.stories.tsx +0 -88
  231. package/src/components/SocialButton/index.tsx +0 -63
  232. package/src/components/SplitCard/SplitCard.stories.tsx +0 -34
  233. package/src/components/SplitCard/index.tsx +0 -132
  234. package/src/components/Stars/Star.stories.tsx +0 -18
  235. package/src/components/Stars/index.tsx +0 -38
  236. package/src/components/Testimonial/Testimonial.stories.tsx +0 -37
  237. package/src/components/Testimonial/index.tsx +0 -123
  238. package/src/components/TextArea/TextArea.stories.tsx +0 -24
  239. package/src/components/TextArea/index.tsx +0 -133
  240. package/src/components/Timeline/Timeline.stories.tsx +0 -45
  241. package/src/components/Timeline/index.tsx +0 -65
  242. package/src/components/Tubestops/Tubestops.stories.tsx +0 -22
  243. package/src/components/Tubestops/index.tsx +0 -132
  244. package/src/components/Video/Video.stories.tsx +0 -58
  245. package/src/components/Video/assets/example.mp4 +0 -0
  246. package/src/components/Video/assets/example.ogv +0 -0
  247. package/src/components/Video/assets/example.webm +0 -0
  248. package/src/components/Video/index.tsx +0 -92
  249. package/src/custom.d.ts +0 -14
  250. package/src/documentation/Colours.mdx +0 -192
  251. package/src/documentation/Introduction.mdx +0 -13
  252. package/src/documentation/assets/index.ts +0 -3
  253. package/src/documentation/assets/trepurComponentsLogo.svg +0 -32
  254. package/src/documentation/typography/Fonts/Fonts.stories.tsx +0 -14
  255. package/src/documentation/typography/Fonts/Fonts.tsx +0 -73
  256. package/src/fonts/Sora/OFL.txt +0 -93
  257. package/src/fonts/Sora/README.txt +0 -70
  258. package/src/fonts/Sora/Sora-VariableFont_wght.ttf +0 -0
  259. package/src/fonts/Sora/static/Sora-Bold.ttf +0 -0
  260. package/src/fonts/Sora/static/Sora-ExtraBold.ttf +0 -0
  261. package/src/fonts/Sora/static/Sora-ExtraLight.ttf +0 -0
  262. package/src/fonts/Sora/static/Sora-Light.ttf +0 -0
  263. package/src/fonts/Sora/static/Sora-Medium.ttf +0 -0
  264. package/src/fonts/Sora/static/Sora-Regular.ttf +0 -0
  265. package/src/fonts/Sora/static/Sora-SemiBold.ttf +0 -0
  266. package/src/fonts/Sora/static/Sora-Thin.ttf +0 -0
  267. package/src/utils/controls.ts +0 -44
  268. package/src/utils/matchMedia.ts +0 -9
  269. package/src/utils/screens.ts +0 -7
  270. package/tailwind.config.ts +0 -13
  271. package/tsconfig.json +0 -49
  272. package/tsconfig.node.json +0 -12
  273. package/vite.config.mjs +0 -64
  274. /package/{src/index.ts → lib/index.d.ts} +0 -0
  275. /package/{src → lib}/styles/global.css +0 -0
  276. /package/{src → lib}/styles/themes/local.css +0 -0
  277. /package/{src → lib}/styles/themes/test.css +0 -0
  278. /package/{tailwind → lib/tailwind}/boxShadow.ts +0 -0
  279. /package/{tailwind → lib/tailwind}/colors.ts +0 -0
  280. /package/{tailwind → lib/tailwind}/container.ts +0 -0
  281. /package/{tailwind → lib/tailwind}/preset.ts +0 -0
  282. /package/{tailwind → lib/tailwind}/spacing.ts +0 -0
@@ -0,0 +1,591 @@
1
+ import { __exports as ct } from "../../_virtual/react.js";
2
+ import vt from "react";
3
+ Object.defineProperty(ct, "__esModule", { value: !0 });
4
+ var $ = vt;
5
+ function et(t) {
6
+ return Array.prototype.slice.call(t);
7
+ }
8
+ function at(t, r) {
9
+ var i = Math.floor(t);
10
+ return i === r || i + 1 === r ? t : r;
11
+ }
12
+ function ot() {
13
+ return Date.now();
14
+ }
15
+ function Z(t, r, i) {
16
+ if (r = "data-keen-slider-" + r, i === null)
17
+ return t.removeAttribute(r);
18
+ t.setAttribute(r, i || "");
19
+ }
20
+ function U(t, r) {
21
+ return r = r || document, typeof t == "function" && (t = t(r)), Array.isArray(t) ? t : typeof t == "string" ? et(r.querySelectorAll(t)) : t instanceof HTMLElement ? [t] : t instanceof NodeList ? et(t) : [];
22
+ }
23
+ function B(t) {
24
+ t.raw && (t = t.raw), t.cancelable && !t.defaultPrevented && t.preventDefault();
25
+ }
26
+ function G(t) {
27
+ t.raw && (t = t.raw), t.stopPropagation && t.stopPropagation();
28
+ }
29
+ function st() {
30
+ var t = [];
31
+ return { add: function(r, i, o, u) {
32
+ r.addListener ? r.addListener(o) : r.addEventListener(i, o, u), t.push([r, i, o, u]);
33
+ }, input: function(r, i, o, u) {
34
+ this.add(r, i, /* @__PURE__ */ function(a) {
35
+ return function(e) {
36
+ e.nativeEvent && (e = e.nativeEvent);
37
+ var k = e.changedTouches || [], x = e.targetTouches || [], l = e.detail && e.detail.x ? e.detail : null;
38
+ return a({ id: l ? l.identifier ? l.identifier : "i" : x[0] ? x[0] ? x[0].identifier : "e" : "d", idChanged: l ? l.identifier ? l.identifier : "i" : k[0] ? k[0] ? k[0].identifier : "e" : "d", raw: e, x: l && l.x ? l.x : x[0] ? x[0].screenX : l ? l.x : e.pageX, y: l && l.y ? l.y : x[0] ? x[0].screenY : l ? l.y : e.pageY });
39
+ };
40
+ }(o), u);
41
+ }, purge: function() {
42
+ t.forEach(function(r) {
43
+ r[0].removeListener ? r[0].removeListener(r[2]) : r[0].removeEventListener(r[1], r[2], r[3]);
44
+ }), t = [];
45
+ } };
46
+ }
47
+ function tt(t, r, i) {
48
+ return Math.min(Math.max(t, r), i);
49
+ }
50
+ function F(t) {
51
+ return (t > 0 ? 1 : 0) - (t < 0 ? 1 : 0) || +t;
52
+ }
53
+ function ut(t) {
54
+ var r = t.getBoundingClientRect();
55
+ return { height: at(r.height, t.offsetHeight), width: at(r.width, t.offsetWidth) };
56
+ }
57
+ function N(t, r, i, o) {
58
+ var u = t && t[r];
59
+ return u == null ? i : o && typeof u == "function" ? u() : u;
60
+ }
61
+ function W(t) {
62
+ return Math.round(1e6 * t) / 1e6;
63
+ }
64
+ function dt(t, r) {
65
+ if (t === r)
66
+ return !0;
67
+ var i = typeof t;
68
+ if (i !== typeof r)
69
+ return !1;
70
+ if (i !== "object" || t === null || r === null)
71
+ return i === "function" && t.toString() === r.toString();
72
+ if (t.length !== r.length || Object.getOwnPropertyNames(t).length !== Object.getOwnPropertyNames(r).length)
73
+ return !1;
74
+ for (var o in t)
75
+ if (!dt(t[o], r[o]))
76
+ return !1;
77
+ return !0;
78
+ }
79
+ var Y = function() {
80
+ return Y = Object.assign || function(t) {
81
+ for (var r, i = 1, o = arguments.length; i < o; i++)
82
+ for (var u in r = arguments[i])
83
+ Object.prototype.hasOwnProperty.call(r, u) && (t[u] = r[u]);
84
+ return t;
85
+ }, Y.apply(this, arguments);
86
+ };
87
+ function lt(t, r, i) {
88
+ for (var o, u = 0, a = r.length; u < a; u++)
89
+ !o && u in r || (o || (o = Array.prototype.slice.call(r, 0, u)), o[u] = r[u]);
90
+ return t.concat(o || Array.prototype.slice.call(r));
91
+ }
92
+ function mt(t) {
93
+ var r, i, o, u, a, e;
94
+ function k(M) {
95
+ e || (e = M), x(!0);
96
+ var E = M - e;
97
+ E > o && (E = o);
98
+ var v = u[i];
99
+ if (v[3] < E)
100
+ return i++, k(M);
101
+ var T = v[2], z = v[4], m = v[0], h = v[1] * (0, v[5])(z === 0 ? 1 : (E - T) / z);
102
+ if (h && t.track.to(m + h), E < o)
103
+ return C();
104
+ e = null, x(!1), l(null), t.emit("animationEnded");
105
+ }
106
+ function x(M) {
107
+ r.active = M;
108
+ }
109
+ function l(M) {
110
+ r.targetIdx = M;
111
+ }
112
+ function C() {
113
+ var M;
114
+ M = k, a = window.requestAnimationFrame(M);
115
+ }
116
+ function D() {
117
+ var M;
118
+ M = a, window.cancelAnimationFrame(M), x(!1), l(null), e && t.emit("animationStopped"), e = null;
119
+ }
120
+ return r = { active: !1, start: function(M) {
121
+ if (D(), t.track.details) {
122
+ var E = 0, v = t.track.details.position;
123
+ i = 0, o = 0, u = M.map(function(T) {
124
+ var z, m = Number(v), h = (z = T.earlyExit) !== null && z !== void 0 ? z : T.duration, p = T.easing, _ = T.distance * p(h / T.duration) || 0;
125
+ v += _;
126
+ var A = o;
127
+ return o += h, E += _, [m, T.distance, A, o, T.duration, p];
128
+ }), l(t.track.distToIdx(E)), C(), t.emit("animationStarted");
129
+ }
130
+ }, stop: D, targetIdx: null };
131
+ }
132
+ function ht(t) {
133
+ var r, i, o, u, a, e, k, x, l, C, D, M, E, v, T = 1 / 0, z = [], m = null, h = 0;
134
+ function p(f) {
135
+ H(h + f);
136
+ }
137
+ function _(f) {
138
+ var s = A(h + f).abs;
139
+ return w(s) ? s : null;
140
+ }
141
+ function A(f) {
142
+ var s = Math.floor(Math.abs(W(f / i))), n = W((f % i + i) % i);
143
+ n === i && (n = 0);
144
+ var b = F(f), d = k.indexOf(lt([], k).reduce(function(I, O) {
145
+ return Math.abs(O - n) < Math.abs(I - n) ? O : I;
146
+ })), y = d;
147
+ return b < 0 && s++, d === e && (y = 0, s += b > 0 ? 1 : -1), { abs: y + s * e * b, origin: d, rel: y };
148
+ }
149
+ function S(f, s, n) {
150
+ var b;
151
+ if (s || !q())
152
+ return c(f, n);
153
+ if (!w(f))
154
+ return null;
155
+ var d = A(n ?? h), y = d.abs, I = f - d.rel, O = y + I;
156
+ b = c(O);
157
+ var P = c(O - e * F(I));
158
+ return (P !== null && Math.abs(P) < Math.abs(b) || b === null) && (b = P), W(b);
159
+ }
160
+ function c(f, s) {
161
+ if (s == null && (s = W(h)), !w(f) || f === null)
162
+ return null;
163
+ f = Math.round(f);
164
+ var n = A(s), b = n.abs, d = n.rel, y = n.origin, I = R(f), O = (s % i + i) % i, P = k[y], V = Math.floor((f - (b - d)) / e) * i;
165
+ return W(P - O - P + k[I] + V + (y === e ? i : 0));
166
+ }
167
+ function w(f) {
168
+ return L(f) === f;
169
+ }
170
+ function L(f) {
171
+ return tt(f, l, C);
172
+ }
173
+ function q() {
174
+ return u.loop;
175
+ }
176
+ function R(f) {
177
+ return (f % e + e) % e;
178
+ }
179
+ function H(f) {
180
+ var s;
181
+ s = f - h, z.push({ distance: s, timestamp: ot() }), z.length > 6 && (z = z.slice(-6)), h = W(f);
182
+ var n = g().abs;
183
+ if (n !== m) {
184
+ var b = m !== null;
185
+ m = n, b && t.emit("slideChanged");
186
+ }
187
+ }
188
+ function g(f) {
189
+ var s = f ? null : function() {
190
+ if (e) {
191
+ var n = q(), b = n ? (h % i + i) % i : h, d = (n ? h % i : h) - a[0][2], y = 0 - (d < 0 && n ? i - Math.abs(d) : d), I = 0, O = A(h), P = O.abs, V = O.rel, J = a[V][2], Q = a.map(function(X, ft) {
192
+ var j = y + I;
193
+ (j < 0 - X[0] || j > 1) && (j += (Math.abs(j) > i - 1 && n ? i : 0) * F(-j));
194
+ var it = ft - V, rt = F(it), K = it + P;
195
+ n && (rt === -1 && j > J && (K += e), rt === 1 && j < J && (K -= e), D !== null && K < D && (j += i), M !== null && K > M && (j -= i));
196
+ var nt = j + X[0] + X[1], pt = Math.max(j >= 0 && nt <= 1 ? 1 : nt < 0 || j > 1 ? 0 : j < 0 ? Math.min(1, (X[0] + j) / X[0]) : (1 - j) / X[0], 0);
197
+ return I += X[0] + X[1], { abs: K, distance: u.rtl ? -1 * j + 1 - X[0] : j, portion: pt, size: X[0] };
198
+ });
199
+ return P = L(P), V = R(P), { abs: L(P), length: o, max: v, maxIdx: C, min: E, minIdx: l, position: h, progress: n ? b / i : h / o, rel: V, slides: Q, slidesLength: i };
200
+ }
201
+ }();
202
+ return r.details = s, t.emit("detailsChanged"), s;
203
+ }
204
+ return r = { absToRel: R, add: p, details: null, distToIdx: _, idxToDist: S, init: function(f) {
205
+ if (function() {
206
+ if (u = t.options, a = (u.trackConfig || []).map(function(d) {
207
+ return [N(d, "size", 1), N(d, "spacing", 0), N(d, "origin", 0)];
208
+ }), e = a.length) {
209
+ i = W(a.reduce(function(d, y) {
210
+ return d + y[0] + y[1];
211
+ }, 0));
212
+ var n, b = e - 1;
213
+ o = W(i + a[0][2] - a[b][0] - a[b][2] - a[b][1]), k = a.reduce(function(d, y) {
214
+ if (!d)
215
+ return [0];
216
+ var I = a[d.length - 1], O = d[d.length - 1] + (I[0] + I[2]) + I[1];
217
+ return O -= y[2], d[d.length - 1] > O && (O = d[d.length - 1]), O = W(O), d.push(O), (!n || n < O) && (x = d.length - 1), n = O, d;
218
+ }, null), o === 0 && (x = 0), k.push(W(i));
219
+ }
220
+ }(), !e)
221
+ return g(!0);
222
+ var s;
223
+ (function() {
224
+ var n = t.options.range, b = t.options.loop;
225
+ D = l = b ? N(b, "min", -1 / 0) : 0, M = C = b ? N(b, "max", T) : x;
226
+ var d = N(n, "min", null), y = N(n, "max", null);
227
+ d !== null && (l = d), y !== null && (C = y), E = l === -1 / 0 ? l : t.track.idxToDist(l || 0, !0, 0), v = C === T ? C : S(C, !0, 0), y === null && (M = C), N(n, "align", !1) && C !== T && a[R(C)][2] === 0 && (v -= 1 - a[R(C)][0], C = _(v - h)), E = W(E), v = W(v);
228
+ })(), s = f, Number(s) === s ? p(c(L(f))) : g();
229
+ }, to: H, velocity: function() {
230
+ var f = ot(), s = z.reduce(function(n, b) {
231
+ var d = b.distance, y = b.timestamp;
232
+ return f - y > 200 || (F(d) !== F(n.distance) && n.distance && (n = { distance: 0, lastTimestamp: 0, time: 0 }), n.time && (n.distance += d), n.lastTimestamp && (n.time += y - n.lastTimestamp), n.lastTimestamp = y), n;
233
+ }, { distance: 0, lastTimestamp: 0, time: 0 });
234
+ return s.distance / s.time || 0;
235
+ } };
236
+ }
237
+ function gt(t) {
238
+ var r, i, o, u, a, e, k, x;
239
+ function l(m) {
240
+ return 2 * m;
241
+ }
242
+ function C(m) {
243
+ return tt(m, k, x);
244
+ }
245
+ function D(m) {
246
+ return 1 - Math.pow(1 - m, 3);
247
+ }
248
+ function M() {
249
+ return o ? t.track.velocity() : 0;
250
+ }
251
+ function E() {
252
+ z();
253
+ var m = t.options.mode === "free-snap", h = t.track, p = M();
254
+ u = F(p);
255
+ var _ = t.track.details, A = [];
256
+ if (p || !m) {
257
+ var S = v(p), c = S.dist, w = S.dur;
258
+ if (w = l(w), c *= u, m) {
259
+ var L = h.idxToDist(h.distToIdx(c), !0);
260
+ L && (c = L);
261
+ }
262
+ A.push({ distance: c, duration: w, easing: D });
263
+ var q = _.position, R = q + c;
264
+ if (R < a || R > e) {
265
+ var H = R < a ? a - q : e - q, g = 0, f = p;
266
+ if (F(H) === u) {
267
+ var s = Math.min(Math.abs(H) / Math.abs(c), 1), n = function(y) {
268
+ return 1 - Math.pow(1 - y, 1 / 3);
269
+ }(s) * w;
270
+ A[0].earlyExit = n, f = p * (1 - s);
271
+ } else
272
+ A[0].earlyExit = 0, g += H;
273
+ var b = v(f, 100), d = b.dist * u;
274
+ t.options.rubberband && (A.push({ distance: d, duration: l(b.dur), easing: D }), A.push({ distance: -d + g, duration: 500, easing: D }));
275
+ }
276
+ t.animator.start(A);
277
+ } else
278
+ t.moveToIdx(C(_.abs), !0, { duration: 500, easing: function(y) {
279
+ return 1 + --y * y * y * y * y;
280
+ } });
281
+ }
282
+ function v(m, h) {
283
+ h === void 0 && (h = 1e3);
284
+ var p = 147e-9 + (m = Math.abs(m)) / h;
285
+ return { dist: Math.pow(m, 2) / p, dur: m / p };
286
+ }
287
+ function T() {
288
+ var m = t.track.details;
289
+ m && (a = m.min, e = m.max, k = m.minIdx, x = m.maxIdx);
290
+ }
291
+ function z() {
292
+ t.animator.stop();
293
+ }
294
+ t.on("updated", T), t.on("optionsChanged", T), t.on("created", T), t.on("dragStarted", function() {
295
+ o = !1, z(), r = i = t.track.details.abs;
296
+ }), t.on("dragChecked", function() {
297
+ o = !0;
298
+ }), t.on("dragEnded", function() {
299
+ var m = t.options.mode;
300
+ m === "snap" && function() {
301
+ var h = t.track, p = t.track.details, _ = p.position, A = F(M());
302
+ (_ > e || _ < a) && (A = 0);
303
+ var S = r + A;
304
+ p.slides[h.absToRel(S)].portion === 0 && (S -= A), r !== i && (S = i), F(h.idxToDist(S, !0)) !== A && (S += A), S = C(S);
305
+ var c = h.idxToDist(S, !0);
306
+ t.animator.start([{ distance: c, duration: 500, easing: function(w) {
307
+ return 1 + --w * w * w * w * w;
308
+ } }]);
309
+ }(), m !== "free" && m !== "free-snap" || E();
310
+ }), t.on("dragged", function() {
311
+ i = t.track.details.abs;
312
+ });
313
+ }
314
+ function bt(t) {
315
+ var r, i, o, u, a, e, k, x, l, C, D, M, E, v, T, z, m, h, p = st();
316
+ function _(g) {
317
+ if (e && x === g.id) {
318
+ var f = w(g);
319
+ if (l) {
320
+ if (!c(g))
321
+ return S(g);
322
+ C = f, l = !1, t.emit("dragChecked");
323
+ }
324
+ if (z)
325
+ return C = f;
326
+ B(g);
327
+ var s = function(b) {
328
+ if (m === -1 / 0 && h === 1 / 0)
329
+ return b;
330
+ var d = t.track.details, y = d.length, I = d.position, O = tt(b, m - I, h - I);
331
+ if (y === 0)
332
+ return 0;
333
+ if (!t.options.rubberband)
334
+ return O;
335
+ if (I <= h && I >= m || I < m && i > 0 || I > h && i < 0)
336
+ return b;
337
+ var P = (I < m ? I - m : I - h) / y, V = u * y, J = Math.abs(P * V), Q = Math.max(0, 1 - J / a * 2);
338
+ return Q * Q * b;
339
+ }(k(C - f) / u * o);
340
+ i = F(s);
341
+ var n = t.track.details.position;
342
+ (n > m && n < h || n === m && i > 0 || n === h && i < 0) && G(g), D += s, !M && Math.abs(D * u) > 5 && (M = !0), t.track.add(s), C = f, t.emit("dragged");
343
+ }
344
+ }
345
+ function A(g) {
346
+ !e && t.track.details && t.track.details.length && (D = 0, e = !0, M = !1, l = !0, x = g.id, c(g), C = w(g), t.emit("dragStarted"));
347
+ }
348
+ function S(g) {
349
+ e && x === g.idChanged && (e = !1, t.emit("dragEnded"));
350
+ }
351
+ function c(g) {
352
+ var f = L(), s = f ? g.y : g.x, n = f ? g.x : g.y, b = E !== void 0 && v !== void 0 && Math.abs(v - n) <= Math.abs(E - s);
353
+ return E = s, v = n, b;
354
+ }
355
+ function w(g) {
356
+ return L() ? g.y : g.x;
357
+ }
358
+ function L() {
359
+ return t.options.vertical;
360
+ }
361
+ function q() {
362
+ u = t.size, a = L() ? window.innerHeight : window.innerWidth;
363
+ var g = t.track.details;
364
+ g && (m = g.min, h = g.max);
365
+ }
366
+ function R(g) {
367
+ M && (G(g), B(g));
368
+ }
369
+ function H() {
370
+ if (p.purge(), t.options.drag && !t.options.disabled) {
371
+ var g;
372
+ g = t.options.dragSpeed || 1, k = typeof g == "function" ? g : function(s) {
373
+ return s * g;
374
+ }, o = t.options.rtl ? -1 : 1, q(), r = t.container, function() {
375
+ var s = "data-keen-slider-clickable";
376
+ U("[".concat(s, "]:not([").concat(s, "=false])"), r).map(function(n) {
377
+ p.add(n, "dragstart", G), p.add(n, "mousedown", G), p.add(n, "touchstart", G);
378
+ });
379
+ }(), p.add(r, "dragstart", function(s) {
380
+ B(s);
381
+ }), p.add(r, "click", R, { capture: !0 }), p.input(r, "ksDragStart", A), p.input(r, "ksDrag", _), p.input(r, "ksDragEnd", S), p.input(r, "mousedown", A), p.input(r, "mousemove", _), p.input(r, "mouseleave", S), p.input(r, "mouseup", S), p.input(r, "touchstart", A, { passive: !0 }), p.input(r, "touchmove", _, { passive: !1 }), p.input(r, "touchend", S), p.input(r, "touchcancel", S), p.add(window, "wheel", function(s) {
382
+ e && B(s);
383
+ });
384
+ var f = "data-keen-slider-scrollable";
385
+ U("[".concat(f, "]:not([").concat(f, "=false])"), t.container).map(function(s) {
386
+ return function(n) {
387
+ var b;
388
+ p.input(n, "touchstart", function(d) {
389
+ b = w(d), z = !0, T = !0;
390
+ }, { passive: !0 }), p.input(n, "touchmove", function(d) {
391
+ var y = L(), I = y ? n.scrollHeight - n.clientHeight : n.scrollWidth - n.clientWidth, O = b - w(d), P = y ? n.scrollTop : n.scrollLeft, V = y && n.style.overflowY === "scroll" || !y && n.style.overflowX === "scroll";
392
+ if (b = w(d), (O < 0 && P > 0 || O > 0 && P < I) && T && V)
393
+ return z = !0;
394
+ T = !1, B(d), z = !1;
395
+ }), p.input(n, "touchend", function() {
396
+ z = !1;
397
+ });
398
+ }(s);
399
+ });
400
+ }
401
+ }
402
+ t.on("updated", q), t.on("optionsChanged", H), t.on("created", H), t.on("destroyed", p.purge);
403
+ }
404
+ function xt(t) {
405
+ var r, i, o = null;
406
+ function u(E, v, T) {
407
+ t.animator.active ? e(E, v, T) : requestAnimationFrame(function() {
408
+ return e(E, v, T);
409
+ });
410
+ }
411
+ function a() {
412
+ u(!1, !1, i);
413
+ }
414
+ function e(E, v, T) {
415
+ var z = 0, m = t.size, h = t.track.details;
416
+ if (h && r) {
417
+ var p = h.slides;
418
+ r.forEach(function(_, A) {
419
+ if (E)
420
+ !o && v && x(_, null, T), l(_, null, T);
421
+ else {
422
+ if (!p[A])
423
+ return;
424
+ var S = p[A].size * m;
425
+ !o && v && x(_, S, T), l(_, p[A].distance * m - z, T), z += S;
426
+ }
427
+ });
428
+ }
429
+ }
430
+ function k(E) {
431
+ return t.options.renderMode === "performance" ? Math.round(E) : E;
432
+ }
433
+ function x(E, v, T) {
434
+ var z = T ? "height" : "width";
435
+ v !== null && (v = k(v) + "px"), E.style["min-" + z] = v, E.style["max-" + z] = v;
436
+ }
437
+ function l(E, v, T) {
438
+ if (v !== null) {
439
+ v = k(v);
440
+ var z = T ? v : 0;
441
+ v = "translate3d(".concat(T ? 0 : v, "px, ").concat(z, "px, 0)");
442
+ }
443
+ E.style.transform = v, E.style["-webkit-transform"] = v;
444
+ }
445
+ function C() {
446
+ r && (e(!0, !0, i), r = null), t.on("detailsChanged", a, !0);
447
+ }
448
+ function D() {
449
+ u(!1, !0, i);
450
+ }
451
+ function M() {
452
+ C(), i = t.options.vertical, t.options.disabled || t.options.renderMode === "custom" || (o = N(t.options.slides, "perView", null) === "auto", t.on("detailsChanged", a), (r = t.slides).length && D());
453
+ }
454
+ t.on("created", M), t.on("optionsChanged", M), t.on("beforeOptionsChanged", function() {
455
+ C();
456
+ }), t.on("updated", D), t.on("destroyed", C);
457
+ }
458
+ function yt(t, r) {
459
+ return function(i) {
460
+ var o, u, a, e, k, x = st();
461
+ function l(c) {
462
+ var w;
463
+ Z(i.container, "reverse", (w = i.container, window.getComputedStyle(w, null).getPropertyValue("direction") !== "rtl" || c ? null : "")), Z(i.container, "v", i.options.vertical && !c ? "" : null), Z(i.container, "disabled", i.options.disabled && !c ? "" : null);
464
+ }
465
+ function C() {
466
+ D() && z();
467
+ }
468
+ function D() {
469
+ var c = null;
470
+ if (e.forEach(function(L) {
471
+ L.matches && (c = L.__media);
472
+ }), c === o)
473
+ return !1;
474
+ o || i.emit("beforeOptionsChanged"), o = c;
475
+ var w = c ? a.breakpoints[c] : a;
476
+ return i.options = Y(Y({}, a), w), l(), A(), S(), h(), !0;
477
+ }
478
+ function M(c) {
479
+ var w = ut(c);
480
+ return (i.options.vertical ? w.height : w.width) / i.size || 1;
481
+ }
482
+ function E() {
483
+ return i.options.trackConfig.length;
484
+ }
485
+ function v(c) {
486
+ for (var w in o = !1, a = Y(Y({}, r), c), x.purge(), u = i.size, e = [], a.breakpoints || []) {
487
+ var L = window.matchMedia(w);
488
+ L.__media = w, e.push(L), x.add(L, "change", C);
489
+ }
490
+ x.add(window, "orientationchange", _), x.add(window, "resize", p), D();
491
+ }
492
+ function T(c) {
493
+ i.animator.stop();
494
+ var w = i.track.details;
495
+ i.track.init(c ?? (w ? w.abs : 0));
496
+ }
497
+ function z(c) {
498
+ T(c), i.emit("optionsChanged");
499
+ }
500
+ function m(c, w) {
501
+ if (c)
502
+ return v(c), void z(w);
503
+ A(), S();
504
+ var L = E();
505
+ h(), E() !== L ? z(w) : T(w), i.emit("updated");
506
+ }
507
+ function h() {
508
+ var c = i.options.slides;
509
+ if (typeof c == "function")
510
+ return i.options.trackConfig = c(i.size, i.slides);
511
+ for (var w = i.slides, L = w.length, q = typeof c == "number" ? c : N(c, "number", L, !0), R = [], H = N(c, "perView", 1, !0), g = N(c, "spacing", 0, !0) / i.size || 0, f = H === "auto" ? g : g / H, s = N(c, "origin", "auto"), n = 0, b = 0; b < q; b++) {
512
+ var d = H === "auto" ? M(w[b]) : 1 / H - g + f, y = s === "center" ? 0.5 - d / 2 : s === "auto" ? 0 : s;
513
+ R.push({ origin: y, size: d, spacing: g }), n += d;
514
+ }
515
+ if (n += g * (q - 1), s === "auto" && !i.options.loop && H !== 1) {
516
+ var I = 0;
517
+ R.map(function(O) {
518
+ var P = n - I;
519
+ return I += O.size + g, P >= 1 || (O.origin = 1 - P - (n > 1 ? 0 : 1 - n)), O;
520
+ });
521
+ }
522
+ i.options.trackConfig = R;
523
+ }
524
+ function p() {
525
+ A();
526
+ var c = i.size;
527
+ i.options.disabled || c === u || (u = c, m());
528
+ }
529
+ function _() {
530
+ p(), setTimeout(p, 500), setTimeout(p, 2e3);
531
+ }
532
+ function A() {
533
+ var c = ut(i.container);
534
+ i.size = (i.options.vertical ? c.height : c.width) || 1;
535
+ }
536
+ function S() {
537
+ i.slides = U(i.options.selector, i.container);
538
+ }
539
+ i.container = (k = U(t, document)).length ? k[0] : null, i.destroy = function() {
540
+ x.purge(), i.emit("destroyed"), l(!0);
541
+ }, i.prev = function() {
542
+ i.moveToIdx(i.track.details.abs - 1, !0);
543
+ }, i.next = function() {
544
+ i.moveToIdx(i.track.details.abs + 1, !0);
545
+ }, i.update = m, v(i.options);
546
+ };
547
+ }
548
+ var kt = function(t, r, i) {
549
+ try {
550
+ return function(o, u) {
551
+ var a, e = {};
552
+ return a = { emit: function(k) {
553
+ e[k] && e[k].forEach(function(l) {
554
+ l(a);
555
+ });
556
+ var x = a.options && a.options[k];
557
+ x && x(a);
558
+ }, moveToIdx: function(k, x, l) {
559
+ var C = a.track.idxToDist(k, x);
560
+ if (C) {
561
+ var D = a.options.defaultAnimation;
562
+ a.animator.start([{ distance: C, duration: N(l || D, "duration", 500), easing: N(l || D, "easing", function(M) {
563
+ return 1 + --M * M * M * M * M;
564
+ }) }]);
565
+ }
566
+ }, on: function(k, x, l) {
567
+ l === void 0 && (l = !1), e[k] || (e[k] = []);
568
+ var C = e[k].indexOf(x);
569
+ C > -1 ? l && delete e[k][C] : l || e[k].push(x);
570
+ }, options: o }, function() {
571
+ if (a.track = ht(a), a.animator = mt(a), u)
572
+ for (var k = 0, x = u; k < x.length; k++)
573
+ (0, x[k])(a);
574
+ a.track.init(a.options.initial || 0), a.emit("created");
575
+ }(), a;
576
+ }(r, lt([yt(t, { drag: !0, mode: "snap", renderMode: "precision", rubberband: !0, selector: ".keen-slider__slide" }), xt, bt, gt], i || [], !0));
577
+ } catch (o) {
578
+ console.error(o);
579
+ }
580
+ }, Tt = ct.useKeenSlider = function(t, r) {
581
+ var i = $.useRef(null), o = $.useRef(!1), u = $.useRef(t), a = $.useCallback(function(e) {
582
+ e ? (u.current = t, i.current = new kt(e, t, r), o.current = !1) : (i.current && i.current.destroy && i.current.destroy(), i.current = null);
583
+ }, []);
584
+ return $.useEffect(function() {
585
+ dt(u.current, t) || (u.current = t, i.current && i.current.update(u.current));
586
+ }, [t]), [a, i];
587
+ };
588
+ export {
589
+ ct as default,
590
+ Tt as useKeenSlider
591
+ };
package/lib/style.css ADDED
@@ -0,0 +1 @@
1
+ .react-calendar{width:410px;background:#fff;border:none;border-radius:25px;border:1px solid #fff;box-shadow:0 12px 24px #0003;padding:8px;line-height:1.125em}.react-calendar--doubleView .react-calendar__viewContainer{display:flex;margin:-.5em}.react-calendar--doubleView .react-calendar__viewContainer>*{width:50%;margin:.5em}.react-calendar button:enabled:hover{cursor:pointer}.react-calendar__navigation{display:flex;height:50px;margin-bottom:1em}.react-calendar__month-view__weekdays__weekday{padding:.5em}.react-calendar__month-view__weekdays{text-align:center;text-transform:uppercase;font-size:.75em}.react-calendar--doubleView{width:800px}.react-calendar__month-view{padding-left:20px;padding-right:20px}.react-calendar__tile{height:50px;width:50px}.react-calendar__tile:disabled{background-color:#fff;color:#bebebe}.react-calendar__month-view__days__day--weekend,.react-calendar__month-view__days__day{color:#000}.react-calendar__month-view__days__day--neighboringMonth{visibility:hidden}.react-calendar__tile:enabled:hover,.react-calendar__tile:enabled:focus{border-radius:50%;border:1px solid;border-color:#000;background:#fff;color:#000}.react-calendar__tile--now{background:#fff;color:#000}.react-calendar__tile--now:enabled:hover,.react-calendar__tile--now:enabled:focus{border-radius:50%;border:1px solid;border-color:#000;background:#fff;color:#000}.react-calendar__tile--hasActive:enabled:hover,.react-calendar__tile--hasActive:enabled:focus{background:#f8f8fa}.react-calendar__tile--active{background:#000;border-radius:50%;color:#fff}.react-calendar__tile--rangeEnd.react-calendar__tile--active:enabled:hover,.react-calendar__tile--rangeEnd.react-calendar__tile--active:enabled:focus,.react-calendar__tile--rangeEnd:enabled{border-radius:0 50% 50% 0;border:1px solid;border-color:#000;background:#000;color:#fff}.react-calendar__tile--rangeStart.react-calendar__tile--active:enabled:hover,.react-calendar__tile--rangeStart.react-calendar__tile--active:enabled:focus,.react-calendar__tile--rangeStart:enabled{border-radius:50% 0 0 50%;border:1px solid;border-color:#000;background:#000;color:#fff}.react-calendar--selectRange .react-calendar__tile--hover{background-color:#dfdfe1}.react-calendar--selectRange .react-calendar__tile--rangeStart{background-color:#000;color:#fff}.react-calendar__tile--range{background:#dfdfe1;color:#000;border-radius:0}.react-calendar__tile--rangeStart{border-radius:50% 0 0 50%;background:#000;color:#fff}.react-calendar__tile--rangeEnd{border-radius:0 50% 50% 0;background:#000;color:#fff}.react-calendar__navigation__prev-button,.react-calendar__navigation__next-button{background:#fff}.react-calendar__navigation__prev2-button,.react-calendar__navigation__next2-button{display:none}.react-calendar__navigation__label__labelText{color:#000}.react-calendar__navigation{height:50px}.react-calendar__navigation button{color:#000;width:50px;background:none;font-size:16px}.react-calendar__navigation button:enabled:hover,.react-calendar__navigation button:enabled:focus{background-color:#bebebe;color:#000;border-radius:50%}.react-calendar__navigation button:disabled{background:#fff;color:#bebebe}abbr[title]{text-decoration:none}.react-calendar__navigation__label__divider{display:none}.react-calendar__navigation__label{padding-top:20px;display:flex;flex-grow:1;justify-content:space-between}.react-calendar__navigation__label__labelText--from{margin-left:80px}.react-calendar__navigation__label__labelText--to{margin-right:100px}button.react-calendar__tile.react-calendar__tile--active.react-calendar__tile--range.react-calendar__tile--rangeStart.react-calendar__tile--rangeEnd.react-calendar__tile--rangeBothEnds.react-calendar__tile--hover.react-calendar__tile--hoverStart.react-calendar__tile--hoverEnd.react-calendar__tile--hoverBothEnds.react-calendar__month-view__days__day.react-calendar__month-view__days__day--weekend{background-color:#000}.keen-slider:not([data-keen-slider-disabled]){-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent;align-content:flex-start;display:flex;overflow:hidden;position:relative;touch-action:pan-y;-webkit-user-select:none;user-select:none;-khtml-user-select:none;width:100%}.keen-slider:not([data-keen-slider-disabled]) .keen-slider__slide{min-height:100%;overflow:hidden;position:relative;width:100%}.keen-slider:not([data-keen-slider-disabled])[data-keen-slider-reverse]{flex-direction:row-reverse}.keen-slider:not([data-keen-slider-disabled])[data-keen-slider-v]{flex-wrap:wrap}
@@ -0,0 +1,36 @@
1
+ export type Colours = 'primary' | 'secondary' | 'white' | 'black' | 'grey' | 'gold' | 'facebook' | 'linkedin' | 'email' | 'instagram' | 'github' | 'interactive-facebook' | 'interactive-email' | 'interactive-linkedin' | 'interactive-instagram' | 'interactive-github' | 'success' | 'error' | 'ink' | 'transparent';
2
+ export type SocialTypes = 'facebook' | 'instagram' | 'github' | 'linkedin';
3
+ export declare const idAndClassName: {
4
+ id: {
5
+ description: string;
6
+ control: {
7
+ type: string;
8
+ default: boolean;
9
+ };
10
+ table: {
11
+ category: string;
12
+ type: {
13
+ summary: string;
14
+ };
15
+ defaultValue: {
16
+ summary: string;
17
+ };
18
+ };
19
+ };
20
+ className: {
21
+ description: string;
22
+ control: {
23
+ type: string;
24
+ default: boolean;
25
+ };
26
+ table: {
27
+ category: string;
28
+ type: {
29
+ summary: string;
30
+ };
31
+ defaultValue: {
32
+ summary: string;
33
+ };
34
+ };
35
+ };
36
+ };
@@ -0,0 +1,2 @@
1
+ declare const MatchMedia: (query: string) => boolean;
2
+ export default MatchMedia;
@@ -0,0 +1,7 @@
1
+ export declare const Screens: {
2
+ xs: string;
3
+ sm: string;
4
+ md: string;
5
+ lg: string;
6
+ xl: string;
7
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "trepur_components",
3
- "version": "2.3.9",
3
+ "version": "2.3.10",
4
4
  "description": "component lib",
5
5
  "author": "trepur_ttenneb",
6
6
  "private": false,
@@ -9,6 +9,9 @@
9
9
  "components",
10
10
  "ui"
11
11
  ],
12
+ "files": [
13
+ "lib/**/*"
14
+ ],
12
15
  "license": "UNLICENSED",
13
16
  ".": {
14
17
  "import": "./lib/index.js"