@intlayer/design-system 2.0.2

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 (252) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +30 -0
  3. package/dist/.vite/manifest.json +953 -0
  4. package/dist/MarkDownRender-BeQGOIow.cjs +14 -0
  5. package/dist/MarkDownRender-gURA8GAt.js +315 -0
  6. package/dist/StringWrapper-CW70GPXq.js +28 -0
  7. package/dist/StringWrapper-DUDqtkwz.cjs +1 -0
  8. package/dist/check-BLEiR8OY.js +12 -0
  9. package/dist/check-rhNgx2ZQ.cjs +6 -0
  10. package/dist/components/Accordion/Accordion.cjs.js +8 -0
  11. package/dist/components/Accordion/Accordion.d.ts +10 -0
  12. package/dist/components/Accordion/Accordion.es.js +48 -0
  13. package/dist/components/Accordion/index.cjs.js +1 -0
  14. package/dist/components/Accordion/index.d.ts +1 -0
  15. package/dist/components/Accordion/index.es.js +5 -0
  16. package/dist/components/Avatar/index.cjs.js +6 -0
  17. package/dist/components/Avatar/index.d.ts +9 -0
  18. package/dist/components/Avatar/index.es.js +71 -0
  19. package/dist/components/Button/index.cjs.js +6 -0
  20. package/dist/components/Button/index.d.ts +22 -0
  21. package/dist/components/Button/index.es.js +306 -0
  22. package/dist/components/Container/index.cjs.js +7 -0
  23. package/dist/components/Container/index.d.ts +23 -0
  24. package/dist/components/Container/index.es.js +152 -0
  25. package/dist/components/ContentEditor/ContentEditor.cjs.js +5 -0
  26. package/dist/components/ContentEditor/ContentEditor.d.ts +8 -0
  27. package/dist/components/ContentEditor/ContentEditor.es.js +75 -0
  28. package/dist/components/ContentEditor/index.cjs.js +1 -0
  29. package/dist/components/ContentEditor/index.d.ts +1 -0
  30. package/dist/components/ContentEditor/index.es.js +5 -0
  31. package/dist/components/ContentSelector/ContentSelector.cjs.js +1 -0
  32. package/dist/components/ContentSelector/ContentSelector.d.ts +11 -0
  33. package/dist/components/ContentSelector/ContentSelector.es.js +14 -0
  34. package/dist/components/ContentSelector/index.cjs.js +1 -0
  35. package/dist/components/ContentSelector/index.d.ts +1 -0
  36. package/dist/components/ContentSelector/index.es.js +5 -0
  37. package/dist/components/DictionaryEditor/DictionaryEditor.cjs.js +1 -0
  38. package/dist/components/DictionaryEditor/DictionaryEditor.d.ts +20 -0
  39. package/dist/components/DictionaryEditor/DictionaryEditor.es.js +25 -0
  40. package/dist/components/DictionaryEditor/ItemLayout.cjs.js +1 -0
  41. package/dist/components/DictionaryEditor/ItemLayout.d.ts +16 -0
  42. package/dist/components/DictionaryEditor/ItemLayout.es.js +81 -0
  43. package/dist/components/DictionaryEditor/NodeWrapper/ArrayWrapper.cjs.js +1 -0
  44. package/dist/components/DictionaryEditor/NodeWrapper/ArrayWrapper.d.ts +9 -0
  45. package/dist/components/DictionaryEditor/NodeWrapper/ArrayWrapper.es.js +10 -0
  46. package/dist/components/DictionaryEditor/NodeWrapper/EnumerationWrapper.cjs.js +1 -0
  47. package/dist/components/DictionaryEditor/NodeWrapper/EnumerationWrapper.d.ts +9 -0
  48. package/dist/components/DictionaryEditor/NodeWrapper/EnumerationWrapper.es.js +9 -0
  49. package/dist/components/DictionaryEditor/NodeWrapper/NestedObjectWrapper.cjs.js +1 -0
  50. package/dist/components/DictionaryEditor/NodeWrapper/NestedObjectWrapper.d.ts +9 -0
  51. package/dist/components/DictionaryEditor/NodeWrapper/NestedObjectWrapper.es.js +9 -0
  52. package/dist/components/DictionaryEditor/NodeWrapper/StringWrapper.cjs.js +1 -0
  53. package/dist/components/DictionaryEditor/NodeWrapper/StringWrapper.d.ts +8 -0
  54. package/dist/components/DictionaryEditor/NodeWrapper/StringWrapper.es.js +9 -0
  55. package/dist/components/DictionaryEditor/NodeWrapper/TranslationWrapper.cjs.js +1 -0
  56. package/dist/components/DictionaryEditor/NodeWrapper/TranslationWrapper.d.ts +9 -0
  57. package/dist/components/DictionaryEditor/NodeWrapper/TranslationWrapper.es.js +7 -0
  58. package/dist/components/DictionaryEditor/NodeWrapper/index.cjs.js +1 -0
  59. package/dist/components/DictionaryEditor/NodeWrapper/index.d.ts +19 -0
  60. package/dist/components/DictionaryEditor/NodeWrapper/index.es.js +9 -0
  61. package/dist/components/DictionaryEditor/ValidDictionaryChangeButtons.cjs.js +1 -0
  62. package/dist/components/DictionaryEditor/ValidDictionaryChangeButtons.d.ts +10 -0
  63. package/dist/components/DictionaryEditor/ValidDictionaryChangeButtons.es.js +40 -0
  64. package/dist/components/DictionaryEditor/index.cjs.js +1 -0
  65. package/dist/components/DictionaryEditor/index.d.ts +1 -0
  66. package/dist/components/DictionaryEditor/index.es.js +5 -0
  67. package/dist/components/DropDown/index.cjs.js +5 -0
  68. package/dist/components/DropDown/index.d.ts +3 -0
  69. package/dist/components/DropDown/index.es.js +50 -0
  70. package/dist/components/DropDown/types.cjs.js +1 -0
  71. package/dist/components/DropDown/types.d.ts +15 -0
  72. package/dist/components/DropDown/types.es.js +1 -0
  73. package/dist/components/Footer/index.cjs.js +1 -0
  74. package/dist/components/Footer/index.d.ts +17 -0
  75. package/dist/components/Footer/index.es.js +64 -0
  76. package/dist/components/Headers/index.cjs.js +1 -0
  77. package/dist/components/Headers/index.d.ts +5 -0
  78. package/dist/components/Headers/index.es.js +35 -0
  79. package/dist/components/IDE/CodeRender.cjs.js +11 -0
  80. package/dist/components/IDE/CodeRender.d.ts +10 -0
  81. package/dist/components/IDE/CodeRender.es.js +833 -0
  82. package/dist/components/IDE/IDE.cjs.js +1 -0
  83. package/dist/components/IDE/IDE.d.ts +10 -0
  84. package/dist/components/IDE/IDE.es.js +124 -0
  85. package/dist/components/IDE/MarkDownRender.cjs.js +1 -0
  86. package/dist/components/IDE/MarkDownRender.d.ts +8 -0
  87. package/dist/components/IDE/MarkDownRender.es.js +7 -0
  88. package/dist/components/IDE/index.cjs.js +1 -0
  89. package/dist/components/IDE/index.d.ts +2 -0
  90. package/dist/components/IDE/index.es.js +7 -0
  91. package/dist/components/Loader/index.cjs.js +1 -0
  92. package/dist/components/Loader/index.d.ts +6 -0
  93. package/dist/components/Loader/index.es.js +21 -0
  94. package/dist/components/Loader/spinner.cjs.js +1 -0
  95. package/dist/components/Loader/spinner.d.ts +7 -0
  96. package/dist/components/Loader/spinner.es.js +22 -0
  97. package/dist/components/LocaleSwitcherDropDown/LocaleSwitcher.cjs.js +6 -0
  98. package/dist/components/LocaleSwitcherDropDown/LocaleSwitcher.d.ts +11 -0
  99. package/dist/components/LocaleSwitcherDropDown/LocaleSwitcher.es.js +571 -0
  100. package/dist/components/LocaleSwitcherDropDown/index.cjs.js +1 -0
  101. package/dist/components/LocaleSwitcherDropDown/index.d.ts +1 -0
  102. package/dist/components/LocaleSwitcherDropDown/index.es.js +5 -0
  103. package/dist/components/Logo/LogoCircle.cjs.js +1 -0
  104. package/dist/components/Logo/LogoCircle.d.ts +4 -0
  105. package/dist/components/Logo/LogoCircle.es.js +12 -0
  106. package/dist/components/Logo/LogoNoFrame.cjs.js +1 -0
  107. package/dist/components/Logo/LogoNoFrame.d.ts +4 -0
  108. package/dist/components/Logo/LogoNoFrame.es.js +28 -0
  109. package/dist/components/Logo/LogoSquare.cjs.js +1 -0
  110. package/dist/components/Logo/LogoSquare.d.ts +4 -0
  111. package/dist/components/Logo/LogoSquare.es.js +12 -0
  112. package/dist/components/Logo/LogoSquircle.cjs.js +1 -0
  113. package/dist/components/Logo/LogoSquircle.d.ts +4 -0
  114. package/dist/components/Logo/LogoSquircle.es.js +17 -0
  115. package/dist/components/Logo/LogoTextOnly.cjs.js +1 -0
  116. package/dist/components/Logo/LogoTextOnly.d.ts +4 -0
  117. package/dist/components/Logo/LogoTextOnly.es.js +28 -0
  118. package/dist/components/Logo/LogoWithTextBelowCircle.cjs.js +1 -0
  119. package/dist/components/Logo/LogoWithTextBelowCircle.d.ts +4 -0
  120. package/dist/components/Logo/LogoWithTextBelowCircle.es.js +30 -0
  121. package/dist/components/Logo/LogoWithTextBelowNoFrame.cjs.js +1 -0
  122. package/dist/components/Logo/LogoWithTextBelowNoFrame.d.ts +4 -0
  123. package/dist/components/Logo/LogoWithTextBelowNoFrame.es.js +28 -0
  124. package/dist/components/Logo/LogoWithTextBelowSquircle.cjs.js +1 -0
  125. package/dist/components/Logo/LogoWithTextBelowSquircle.d.ts +4 -0
  126. package/dist/components/Logo/LogoWithTextBelowSquircle.es.js +17 -0
  127. package/dist/components/Logo/LogoWithTextCircle.cjs.js +1 -0
  128. package/dist/components/Logo/LogoWithTextCircle.d.ts +4 -0
  129. package/dist/components/Logo/LogoWithTextCircle.es.js +51 -0
  130. package/dist/components/Logo/LogoWithTextNoFrame.cjs.js +1 -0
  131. package/dist/components/Logo/LogoWithTextNoFrame.d.ts +4 -0
  132. package/dist/components/Logo/LogoWithTextNoFrame.es.js +28 -0
  133. package/dist/components/Logo/LogoWithTextSquircle.cjs.js +1 -0
  134. package/dist/components/Logo/LogoWithTextSquircle.d.ts +4 -0
  135. package/dist/components/Logo/LogoWithTextSquircle.es.js +17 -0
  136. package/dist/components/Logo/index.cjs.js +1 -0
  137. package/dist/components/Logo/index.d.ts +20 -0
  138. package/dist/components/Logo/index.es.js +65 -0
  139. package/dist/components/MarkDownRender/index.cjs.js +1 -0
  140. package/dist/components/MarkDownRender/index.d.ts +8 -0
  141. package/dist/components/MarkDownRender/index.es.js +84 -0
  142. package/dist/components/MaxHeightSmoother/index.cjs.js +6 -0
  143. package/dist/components/MaxHeightSmoother/index.d.ts +11 -0
  144. package/dist/components/MaxHeightSmoother/index.es.js +52 -0
  145. package/dist/components/MaxWidthSmoother/index.cjs.js +6 -0
  146. package/dist/components/MaxWidthSmoother/index.d.ts +11 -0
  147. package/dist/components/MaxWidthSmoother/index.es.js +39 -0
  148. package/dist/components/Modal/index.cjs.js +1 -0
  149. package/dist/components/Modal/index.d.ts +9 -0
  150. package/dist/components/Modal/index.es.js +64 -0
  151. package/dist/components/Navbar/Burger.cjs.js +1 -0
  152. package/dist/components/Navbar/Burger.d.ts +7 -0
  153. package/dist/components/Navbar/Burger.es.js +84 -0
  154. package/dist/components/Navbar/DesktopNavbar.cjs.js +7 -0
  155. package/dist/components/Navbar/DesktopNavbar.d.ts +10 -0
  156. package/dist/components/Navbar/DesktopNavbar.es.js +76 -0
  157. package/dist/components/Navbar/MobileNavbar.cjs.js +9 -0
  158. package/dist/components/Navbar/MobileNavbar.d.ts +12 -0
  159. package/dist/components/Navbar/MobileNavbar.es.js +199 -0
  160. package/dist/components/Navbar/index.cjs.js +1 -0
  161. package/dist/components/Navbar/index.d.ts +20 -0
  162. package/dist/components/Navbar/index.es.js +25 -0
  163. package/dist/components/Navbar/useNavigation.cjs.js +1 -0
  164. package/dist/components/Navbar/useNavigation.d.ts +5 -0
  165. package/dist/components/Navbar/useNavigation.es.js +39 -0
  166. package/dist/components/Popover/index.cjs.js +1 -0
  167. package/dist/components/Popover/index.d.ts +8 -0
  168. package/dist/components/Popover/index.es.js +48 -0
  169. package/dist/components/PressableDiv/PressableDiv.cjs.js +1 -0
  170. package/dist/components/PressableDiv/PressableDiv.d.ts +10 -0
  171. package/dist/components/PressableDiv/PressableDiv.es.js +62 -0
  172. package/dist/components/PressableDiv/index.cjs.js +1 -0
  173. package/dist/components/PressableDiv/index.d.ts +1 -0
  174. package/dist/components/PressableDiv/index.es.js +5 -0
  175. package/dist/components/ProfileDropDown/index.cjs.js +6 -0
  176. package/dist/components/ProfileDropDown/index.d.ts +6 -0
  177. package/dist/components/ProfileDropDown/index.es.js +37 -0
  178. package/dist/components/RedirectionButton/RedirectionButton.cjs.js +6 -0
  179. package/dist/components/RedirectionButton/RedirectionButton.d.ts +8 -0
  180. package/dist/components/RedirectionButton/RedirectionButton.es.js +42 -0
  181. package/dist/components/RedirectionButton/index.cjs.js +1 -0
  182. package/dist/components/RedirectionButton/index.d.ts +1 -0
  183. package/dist/components/RedirectionButton/index.es.js +5 -0
  184. package/dist/components/RightDrawer/RightDrawer.cjs.js +8 -0
  185. package/dist/components/RightDrawer/RightDrawer.d.ts +16 -0
  186. package/dist/components/RightDrawer/RightDrawer.es.js +118 -0
  187. package/dist/components/RightDrawer/index.cjs.js +1 -0
  188. package/dist/components/RightDrawer/index.d.ts +2 -0
  189. package/dist/components/RightDrawer/index.es.js +8 -0
  190. package/dist/components/RightDrawer/useRightDrawerStore.cjs.js +1 -0
  191. package/dist/components/RightDrawer/useRightDrawerStore.d.ts +8 -0
  192. package/dist/components/RightDrawer/useRightDrawerStore.es.js +15 -0
  193. package/dist/components/ThemeSwitcherDropDown/DesktopThemeSwitcher.cjs.js +1 -0
  194. package/dist/components/ThemeSwitcherDropDown/DesktopThemeSwitcher.d.ts +10 -0
  195. package/dist/components/ThemeSwitcherDropDown/DesktopThemeSwitcher.es.js +69 -0
  196. package/dist/components/ThemeSwitcherDropDown/MobileThemeSwitcher.cjs.js +1 -0
  197. package/dist/components/ThemeSwitcherDropDown/MobileThemeSwitcher.d.ts +10 -0
  198. package/dist/components/ThemeSwitcherDropDown/MobileThemeSwitcher.es.js +65 -0
  199. package/dist/components/ThemeSwitcherDropDown/index.cjs.js +1 -0
  200. package/dist/components/ThemeSwitcherDropDown/index.d.ts +3 -0
  201. package/dist/components/ThemeSwitcherDropDown/index.es.js +9 -0
  202. package/dist/components/ThemeSwitcherDropDown/types.cjs.js +1 -0
  203. package/dist/components/ThemeSwitcherDropDown/types.d.ts +5 -0
  204. package/dist/components/ThemeSwitcherDropDown/types.es.js +5 -0
  205. package/dist/components/index.cjs.js +1 -0
  206. package/dist/components/index.d.ts +22 -0
  207. package/dist/components/index.es.js +61 -0
  208. package/dist/createLucideIcon-DlZEiEGq.js +80 -0
  209. package/dist/createLucideIcon-ZOnO-fn6.cjs +21 -0
  210. package/dist/hooks/index.cjs.js +1 -0
  211. package/dist/hooks/index.d.ts +5 -0
  212. package/dist/hooks/index.es.js +13 -0
  213. package/dist/hooks/useDevice.cjs.js +1 -0
  214. package/dist/hooks/useDevice.d.ts +8 -0
  215. package/dist/hooks/useDevice.es.js +48 -0
  216. package/dist/hooks/useGetElementOrWindow.cjs.js +1 -0
  217. package/dist/hooks/useGetElementOrWindow.d.ts +1 -0
  218. package/dist/hooks/useGetElementOrWindow.es.js +11 -0
  219. package/dist/hooks/useIsMounted.cjs.js +1 -0
  220. package/dist/hooks/useIsMounted.d.ts +1 -0
  221. package/dist/hooks/useIsMounted.es.js +11 -0
  222. package/dist/hooks/useScrollBlockage/index.cjs.js +1 -0
  223. package/dist/hooks/useScrollBlockage/index.d.ts +14 -0
  224. package/dist/hooks/useScrollBlockage/index.es.js +24 -0
  225. package/dist/hooks/useScrollBlockage/useScrollBlockageStore.cjs.js +1 -0
  226. package/dist/hooks/useScrollBlockage/useScrollBlockageStore.d.ts +12 -0
  227. package/dist/hooks/useScrollBlockage/useScrollBlockageStore.es.js +40 -0
  228. package/dist/hooks/useScrollDetection.cjs.js +1 -0
  229. package/dist/hooks/useScrollDetection.d.ts +13 -0
  230. package/dist/hooks/useScrollDetection.es.js +41 -0
  231. package/dist/index-B2ncVbtX.cjs +1 -0
  232. package/dist/index-D-PWvdb-.js +91 -0
  233. package/dist/intlayer-editor/src/client/renderContentEditor.d.ts +14 -0
  234. package/dist/jsx-runtime-D6agescH.cjs +30 -0
  235. package/dist/jsx-runtime-Tw_Kw2GZ.js +638 -0
  236. package/dist/localeList-CaRF-907.js +300 -0
  237. package/dist/localeList-DlUgKn8J.cjs +1 -0
  238. package/dist/motion-BuKul-u9.cjs +1 -0
  239. package/dist/motion-CP5YERk7.js +4517 -0
  240. package/dist/styled-components.browser.esm-D6kkzXl4.js +1085 -0
  241. package/dist/styled-components.browser.esm-GqWwDlfY.cjs +58 -0
  242. package/dist/sun-BQYZHcpc.cjs +16 -0
  243. package/dist/sun-BrKC5Qwg.js +49 -0
  244. package/dist/utils/capitalize.cjs.js +1 -0
  245. package/dist/utils/capitalize.d.ts +1 -0
  246. package/dist/utils/capitalize.es.js +5 -0
  247. package/dist/utils/cn.cjs.js +1 -0
  248. package/dist/utils/cn.d.ts +3 -0
  249. package/dist/utils/cn.es.js +2338 -0
  250. package/dist/x-BKwnSvvj.js +15 -0
  251. package/dist/x-DIXoN4xe.cjs +6 -0
  252. package/package.json +84 -0
@@ -0,0 +1,42 @@
1
+ "use client";
2
+ import { j as t } from "../../jsx-runtime-Tw_Kw2GZ.js";
3
+ import { p as n } from "../../styled-components.browser.esm-D6kkzXl4.js";
4
+ import { c as i } from "../../createLucideIcon-DlZEiEGq.js";
5
+ /**
6
+ * @license lucide-react v0.376.0 - ISC
7
+ *
8
+ * This source code is licensed under the ISC license.
9
+ * See the LICENSE file in the root directory of this source tree.
10
+ */
11
+ const s = i("ChevronRight", [
12
+ ["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]
13
+ ]), a = n.button({
14
+ display: "flex",
15
+ width: "100%",
16
+ alignItems: "center",
17
+ justifyContent: "space-between",
18
+ gap: "0.5rem",
19
+ borderRadius: "0.25rem",
20
+ padding: "0.5rem",
21
+ "&:hover": {
22
+ backgroundColor: "rgb(241 245 249 / 0.3)"
23
+ },
24
+ "&:focus": {
25
+ outline: "2px solid transparent",
26
+ outlineOffset: "2px"
27
+ },
28
+ "&:disabled": {
29
+ cursor: "not-allowed",
30
+ opacity: "0.5"
31
+ }
32
+ }), l = ({
33
+ children: e,
34
+ label: o,
35
+ ...r
36
+ }) => /* @__PURE__ */ t.jsxs(a, { "aria-label": o, ...r, children: [
37
+ e,
38
+ /* @__PURE__ */ t.jsx(s, {})
39
+ ] });
40
+ export {
41
+ l as RedirectionButton
42
+ };
@@ -0,0 +1 @@
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./RedirectionButton.cjs.js");exports.RedirectionButton=t.RedirectionButton;
@@ -0,0 +1 @@
1
+ export * from './RedirectionButton';
@@ -0,0 +1,5 @@
1
+ "use client";
2
+ import { RedirectionButton as o } from "./RedirectionButton.es.js";
3
+ export {
4
+ o as RedirectionButton
5
+ };
@@ -0,0 +1,8 @@
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../jsx-runtime-D6agescH.cjs"),t=require("../../styled-components.browser.esm-GqWwDlfY.cjs"),c=require("react"),g=require("../../hooks/useDevice.cjs.js"),j=require("../../hooks/useScrollBlockage/index.cjs.js"),y=require("../Container/index.cjs.js"),S=require("../MaxWidthSmoother/index.cjs.js"),R=require("./useRightDrawerStore.cjs.js"),v=require("../../createLucideIcon-ZOnO-fn6.cjs"),w=require("../../x-DIXoN4xe.cjs");/**
2
+ * @license lucide-react v0.376.0 - ISC
3
+ *
4
+ * This source code is licensed under the ISC license.
5
+ * See the LICENSE file in the root directory of this source tree.
6
+ */const C=v.createLucideIcon("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]),E=t.pt.div({position:"fixed",right:"0px",top:"0px",zIndex:"50",display:"flex",height:"100%",justifyContent:"flex-end"}),_=t.pt(y.Container)(()=>[{position:"relative",display:"flex",height:"100vh",width:"100vw",flexDirection:"column","@media (min-width: 768px)":{width:"400px"}}]),D=t.pt.div({display:"flex",flexDirection:"column",gap:"0.75rem",padding:"1.5rem"}),q=t.pt.div({display:"flex",justifyContent:"space-between",gap:"0.75rem"}),L=t.pt.div({display:"flex",height:"100%",flexDirection:"column",overflowY:"auto",padding:"0.5rem"}),k=t.pt.div({flex:"1 1 0%"}),I=t.pt.button({display:"flex",cursor:"pointer",flexDirection:"row",alignItems:"center",gap:"0.25rem",textAlign:"left"}),M=t.pt.h2({display:"flex",alignItems:"center",justifyContent:"center",fontSize:"1.125rem",lineHeight:"1.75rem",fontWeight:"700"}),z=t.pt(w.X)`
7
+ ${{marginLeft:"auto",cursor:"pointer"}}
8
+ `,H=({title:x,identifier:s,children:u,header:a,closeOnOutsideClick:d=!0,backButton:n})=>{const{isMobile:p}=g.useDevice("md"),l=c.useRef(null),h=c.useRef(null),{isOpen:i,close:o}=R.useRightDrawerStore(s)();j.useScrollBlockage({disableScroll:i,key:s?"right_drawer":`right_drawer_${s}`}),c.useEffect(()=>{const r=f=>{i&&d&&l.current&&!l.current.contains(f.target)&&o()};return document.addEventListener("mousedown",r),()=>{document.removeEventListener("mousedown",r)}},[i,o,d]);const m=r=>{r.target===r.currentTarget&&p&&o()};return e.jsxRuntimeExports.jsx(E,{children:e.jsxRuntimeExports.jsx(S.MaxWidthSmoother,{isHidden:!i,align:"right",children:e.jsxRuntimeExports.jsxs(_,{ref:l,roundedSize:"none",children:[e.jsxRuntimeExports.jsxs(D,{children:[e.jsxRuntimeExports.jsxs(q,{children:[e.jsxRuntimeExports.jsx("div",{children:n&&e.jsxRuntimeExports.jsxs(I,{onClick:n.onBack,children:[e.jsxRuntimeExports.jsx(C,{}),n==null?void 0:n.text]})}),e.jsxRuntimeExports.jsx(z,{onClick:o})]}),e.jsxRuntimeExports.jsx(M,{children:x}),a]}),e.jsxRuntimeExports.jsx(L,{children:e.jsxRuntimeExports.jsx(k,{onClick:m,ref:h,children:u})})]})})})};exports.RightDrawer=H;
@@ -0,0 +1,16 @@
1
+ import { ReactNode, FC } from 'react';
2
+
3
+ type BackButtonProps = {
4
+ onBack: () => void;
5
+ text?: string;
6
+ };
7
+ type RightDrawerProps = {
8
+ title?: ReactNode;
9
+ identifier: string;
10
+ children?: ReactNode;
11
+ header?: ReactNode;
12
+ closeOnOutsideClick?: boolean;
13
+ backButton?: BackButtonProps;
14
+ };
15
+ export declare const RightDrawer: FC<RightDrawerProps>;
16
+ export {};
@@ -0,0 +1,118 @@
1
+ "use client";
2
+ import { j as e } from "../../jsx-runtime-Tw_Kw2GZ.js";
3
+ import { p as t } from "../../styled-components.browser.esm-D6kkzXl4.js";
4
+ import { useRef as c, useEffect as g } from "react";
5
+ import { useDevice as y } from "../../hooks/useDevice.es.js";
6
+ import { useScrollBlockage as S } from "../../hooks/useScrollBlockage/index.es.js";
7
+ import { Container as j } from "../Container/index.es.js";
8
+ import { MaxWidthSmoother as v } from "../MaxWidthSmoother/index.es.js";
9
+ import { useRightDrawerStore as C } from "./useRightDrawerStore.es.js";
10
+ import { c as w } from "../../createLucideIcon-DlZEiEGq.js";
11
+ import { X as D } from "../../x-BKwnSvvj.js";
12
+ /**
13
+ * @license lucide-react v0.376.0 - ISC
14
+ *
15
+ * This source code is licensed under the ISC license.
16
+ * See the LICENSE file in the root directory of this source tree.
17
+ */
18
+ const L = w("ChevronLeft", [
19
+ ["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]
20
+ ]), R = t.div({
21
+ position: "fixed",
22
+ right: "0px",
23
+ top: "0px",
24
+ zIndex: "50",
25
+ display: "flex",
26
+ height: "100%",
27
+ justifyContent: "flex-end"
28
+ }), E = t(j)(() => [{
29
+ position: "relative",
30
+ display: "flex",
31
+ height: "100vh",
32
+ width: "100vw",
33
+ flexDirection: "column",
34
+ "@media (min-width: 768px)": {
35
+ width: "400px"
36
+ }
37
+ }]), I = t.div({
38
+ display: "flex",
39
+ flexDirection: "column",
40
+ gap: "0.75rem",
41
+ padding: "1.5rem"
42
+ }), k = t.div({
43
+ display: "flex",
44
+ justifyContent: "space-between",
45
+ gap: "0.75rem"
46
+ }), z = t.div({
47
+ display: "flex",
48
+ height: "100%",
49
+ flexDirection: "column",
50
+ overflowY: "auto",
51
+ padding: "0.5rem"
52
+ }), H = t.div({
53
+ flex: "1 1 0%"
54
+ }), _ = t.button({
55
+ display: "flex",
56
+ cursor: "pointer",
57
+ flexDirection: "row",
58
+ alignItems: "center",
59
+ gap: "0.25rem",
60
+ textAlign: "left"
61
+ }), M = t.h2({
62
+ display: "flex",
63
+ alignItems: "center",
64
+ justifyContent: "center",
65
+ fontSize: "1.125rem",
66
+ lineHeight: "1.75rem",
67
+ fontWeight: "700"
68
+ }), P = t(D)`
69
+ ${{
70
+ marginLeft: "auto",
71
+ cursor: "pointer"
72
+ }}
73
+ `, G = ({
74
+ title: a,
75
+ identifier: l,
76
+ children: m,
77
+ header: f,
78
+ closeOnOutsideClick: d = !0,
79
+ backButton: r
80
+ }) => {
81
+ const {
82
+ isMobile: p
83
+ } = y("md"), s = c(null), h = c(null), {
84
+ isOpen: i,
85
+ close: o
86
+ } = C(l)();
87
+ S({
88
+ disableScroll: i,
89
+ key: l ? "right_drawer" : `right_drawer_${l}`
90
+ }), g(() => {
91
+ const n = (u) => {
92
+ i && d && s.current && !s.current.contains(u.target) && o();
93
+ };
94
+ return document.addEventListener("mousedown", n), () => {
95
+ document.removeEventListener("mousedown", n);
96
+ };
97
+ }, [i, o, d]);
98
+ const x = (n) => {
99
+ n.target === n.currentTarget && p && o();
100
+ };
101
+ return /* @__PURE__ */ e.jsx(R, { children: /* @__PURE__ */ e.jsx(v, { isHidden: !i, align: "right", children: /* @__PURE__ */ e.jsxs(E, { ref: s, roundedSize: "none", children: [
102
+ /* @__PURE__ */ e.jsxs(I, { children: [
103
+ /* @__PURE__ */ e.jsxs(k, { children: [
104
+ /* @__PURE__ */ e.jsx("div", { children: r && /* @__PURE__ */ e.jsxs(_, { onClick: r.onBack, children: [
105
+ /* @__PURE__ */ e.jsx(L, {}),
106
+ r == null ? void 0 : r.text
107
+ ] }) }),
108
+ /* @__PURE__ */ e.jsx(P, { onClick: o })
109
+ ] }),
110
+ /* @__PURE__ */ e.jsx(M, { children: a }),
111
+ f
112
+ ] }),
113
+ /* @__PURE__ */ e.jsx(z, { children: /* @__PURE__ */ e.jsx(H, { onClick: x, ref: h, children: m }) })
114
+ ] }) }) });
115
+ };
116
+ export {
117
+ G as RightDrawer
118
+ };
@@ -0,0 +1 @@
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./RightDrawer.cjs.js"),e=require("./useRightDrawerStore.cjs.js");exports.RightDrawer=r.RightDrawer;exports.createRightDrawerStore=e.createRightDrawerStore;exports.useRightDrawerStore=e.useRightDrawerStore;
@@ -0,0 +1,2 @@
1
+ export * from './RightDrawer';
2
+ export * from './useRightDrawerStore';
@@ -0,0 +1,8 @@
1
+ "use client";
2
+ import { RightDrawer as t } from "./RightDrawer.es.js";
3
+ import { createRightDrawerStore as a, useRightDrawerStore as i } from "./useRightDrawerStore.es.js";
4
+ export {
5
+ t as RightDrawer,
6
+ a as createRightDrawerStore,
7
+ i as useRightDrawerStore
8
+ };
@@ -0,0 +1 @@
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("zustand"),t=()=>s.create(e=>({isOpen:!1,open:()=>e({isOpen:!0}),close:()=>e({isOpen:!1})})),r={},o=e=>(r[e]||(r[e]=t()),r[e]);exports.createRightDrawerStore=t;exports.useRightDrawerStore=o;
@@ -0,0 +1,8 @@
1
+ type RightDrawerStore = {
2
+ isOpen: boolean;
3
+ open: () => void;
4
+ close: () => void;
5
+ };
6
+ export declare const createRightDrawerStore: () => import('zustand').UseBoundStore<import('zustand').StoreApi<RightDrawerStore>>;
7
+ export declare const useRightDrawerStore: (key: string) => import('zustand').UseBoundStore<import('zustand').StoreApi<RightDrawerStore>>;
8
+ export {};
@@ -0,0 +1,15 @@
1
+ "use client";
2
+ import { create as t } from "zustand";
3
+ const o = () => t((e) => ({
4
+ isOpen: !1,
5
+ open: () => e({
6
+ isOpen: !0
7
+ }),
8
+ close: () => e({
9
+ isOpen: !1
10
+ })
11
+ })), r = {}, n = (e) => (r[e] || (r[e] = o()), r[e]);
12
+ export {
13
+ o as createRightDrawerStore,
14
+ n as useRightDrawerStore
15
+ };
@@ -0,0 +1 @@
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../../jsx-runtime-D6agescH.cjs"),i=require("../../styled-components.browser.esm-GqWwDlfY.cjs"),g=require("react"),j=require("../Button/index.cjs.js"),b=require("../Container/index.cjs.js"),x=require("../DropDown/index.cjs.js"),e=require("./types.cjs.js"),s=require("../../sun-BQYZHcpc.cjs"),k=i.pt.div({position:"relative",width:"100%",padding:"0.125rem"}),y=i.pt(j.Button)({width:"100%",cursor:"pointer",borderRadius:"0.5rem",padding:"0.25rem",textAlign:"left","&:hover":{backgroundColor:"rgba(18, 18, 18, 0.1)"},"&:focus":{backgroundColor:"rgba(255, 245, 237, 0.2)",outline:"2px solid transparent",outlineOffset:"2px"},"&:disabled":{color:"rgba(255, 255, 255, 0.25)"},'&:where([data-theme="dark"], [data-theme="dark"] *):hover':{backgroundColor:"rgba(255, 245, 237, 0.1)"},'&:where([data-theme="dark"], [data-theme="dark"] *):focus':{backgroundColor:"rgba(255, 245, 237, 0.2)"}}),l=({Icon:r,ref:d,children:n,...m})=>t.jsxRuntimeExports.jsx(k,{children:t.jsxRuntimeExports.jsx(y,{Icon:r,"data-mode":"system",variant:"none",...m,children:n})}),M=i.pt(x.DropDown.Trigger)({padding:"0.5rem"}),w=i.pt(b.Container)({minWidth:"100px",alignItems:"flex-start",padding:"0.25rem"}),S=({theme:r,setTheme:d,systemTheme:n})=>{const p=n===r?e.Modes.system:r,[o,h]=g.useState(p),a=c=>{c===e.Modes.system?d(n??e.Modes.light):d(c),h(c)},u="theme-switcher";return t.jsxRuntimeExports.jsxs(M,{identifier:u,"aria-label":"Theme selector",children:[o===e.Modes.system&&t.jsxRuntimeExports.jsx(s.CircleDashed,{"data-mode":"system"}),o===e.Modes.light&&t.jsxRuntimeExports.jsx(s.Sun,{"data-mode":"light"}),o===e.Modes.dark&&t.jsxRuntimeExports.jsx(s.Moon,{"data-mode":"dark"}),t.jsxRuntimeExports.jsx(x.DropDown,{identifier:u,isFocusable:!0,isOverable:!0,children:t.jsxRuntimeExports.jsxs(w,{separator:"y",children:[t.jsxRuntimeExports.jsx(l,{Icon:s.CircleDashed,onClick:()=>a(e.Modes.system),isActive:o===e.Modes.system,label:"Restore to system mode",children:"System"}),t.jsxRuntimeExports.jsx(l,{Icon:s.Sun,onClick:()=>a(e.Modes.light),isActive:o===e.Modes.light,label:"Switch to light mode",children:"Light"}),t.jsxRuntimeExports.jsx(l,{Icon:s.Moon,onClick:()=>a(e.Modes.dark),isActive:o===e.Modes.dark,label:"Switch to dark mode",children:"Dark"})]})})]})};exports.DesktopThemeSwitcher=S;
@@ -0,0 +1,10 @@
1
+ import { FC } from 'react';
2
+ import { Modes } from './types';
3
+
4
+ type DesktopThemeSwitcherProps = {
5
+ theme: Modes;
6
+ setTheme: (theme: Modes) => void;
7
+ systemTheme: Modes;
8
+ };
9
+ export declare const DesktopThemeSwitcher: FC<DesktopThemeSwitcherProps>;
10
+ export {};
@@ -0,0 +1,69 @@
1
+ "use client";
2
+ import { j as t } from "../../jsx-runtime-Tw_Kw2GZ.js";
3
+ import { p as s } from "../../styled-components.browser.esm-D6kkzXl4.js";
4
+ import { useState as k } from "react";
5
+ import { Button as b } from "../Button/index.es.js";
6
+ import { Container as y } from "../Container/index.es.js";
7
+ import { DropDown as u } from "../DropDown/index.es.js";
8
+ import { Modes as e } from "./types.es.js";
9
+ import { C as h, S as p, M as g } from "../../sun-BrKC5Qwg.js";
10
+ const j = s.div({
11
+ position: "relative",
12
+ width: "100%",
13
+ padding: "0.125rem"
14
+ }), S = s(b)({
15
+ width: "100%",
16
+ cursor: "pointer",
17
+ borderRadius: "0.5rem",
18
+ padding: "0.25rem",
19
+ textAlign: "left",
20
+ "&:hover": {
21
+ backgroundColor: "rgba(18, 18, 18, 0.1)"
22
+ },
23
+ "&:focus": {
24
+ backgroundColor: "rgba(255, 245, 237, 0.2)",
25
+ outline: "2px solid transparent",
26
+ outlineOffset: "2px"
27
+ },
28
+ "&:disabled": {
29
+ color: "rgba(255, 255, 255, 0.25)"
30
+ },
31
+ '&:where([data-theme="dark"], [data-theme="dark"] *):hover': {
32
+ backgroundColor: "rgba(255, 245, 237, 0.1)"
33
+ },
34
+ '&:where([data-theme="dark"], [data-theme="dark"] *):focus': {
35
+ backgroundColor: "rgba(255, 245, 237, 0.2)"
36
+ }
37
+ }), l = ({
38
+ Icon: r,
39
+ ref: a,
40
+ children: i,
41
+ ...m
42
+ }) => /* @__PURE__ */ t.jsx(j, { children: /* @__PURE__ */ t.jsx(S, { Icon: r, "data-mode": "system", variant: "none", ...m, children: i }) }), C = s(u.Trigger)({
43
+ padding: "0.5rem"
44
+ }), w = s(y)({
45
+ minWidth: "100px",
46
+ alignItems: "flex-start",
47
+ padding: "0.25rem"
48
+ }), O = ({
49
+ theme: r,
50
+ setTheme: a,
51
+ systemTheme: i
52
+ }) => {
53
+ const f = i === r ? e.system : r, [o, x] = k(f), n = (d) => {
54
+ d === e.system ? a(i ?? e.light) : a(d), x(d);
55
+ }, c = "theme-switcher";
56
+ return /* @__PURE__ */ t.jsxs(C, { identifier: c, "aria-label": "Theme selector", children: [
57
+ o === e.system && /* @__PURE__ */ t.jsx(h, { "data-mode": "system" }),
58
+ o === e.light && /* @__PURE__ */ t.jsx(p, { "data-mode": "light" }),
59
+ o === e.dark && /* @__PURE__ */ t.jsx(g, { "data-mode": "dark" }),
60
+ /* @__PURE__ */ t.jsx(u, { identifier: c, isFocusable: !0, isOverable: !0, children: /* @__PURE__ */ t.jsxs(w, { separator: "y", children: [
61
+ /* @__PURE__ */ t.jsx(l, { Icon: h, onClick: () => n(e.system), isActive: o === e.system, label: "Restore to system mode", children: "System" }),
62
+ /* @__PURE__ */ t.jsx(l, { Icon: p, onClick: () => n(e.light), isActive: o === e.light, label: "Switch to light mode", children: "Light" }),
63
+ /* @__PURE__ */ t.jsx(l, { Icon: g, onClick: () => n(e.dark), isActive: o === e.dark, label: "Switch to dark mode", children: "Dark" })
64
+ ] }) })
65
+ ] });
66
+ };
67
+ export {
68
+ O as DesktopThemeSwitcher
69
+ };
@@ -0,0 +1 @@
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../../jsx-runtime-D6agescH.cjs"),r=require("../../styled-components.browser.esm-GqWwDlfY.cjs"),S=require("react"),e=require("./types.cjs.js"),d=require("../../sun-BQYZHcpc.cjs"),k=({theme:i,systemTheme:c,setTheme:l})=>{const u=c===i,m=u?e.Modes.system:i,[s,M]=S.useState(m),t=s===e.Modes.system?i===e.Modes.dark?e.Modes.light:e.Modes.dark:u?e.Modes.system:s===e.Modes.light?e.Modes.dark:e.Modes.light,n=()=>{t===e.Modes.system?l(c??e.Modes.light):l(t),M(t)},y=r.pt.button({position:"relative",width:"2.5rem",height:"2.5rem"}),a=({isCurrentMode:h,isNextMode:w})=>[{position:"absolute",left:"50%",top:"50%","--tw-translate-x":"-50%",transform:"translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))","--tw-translate-y":"-50%"},{opacity:"0",transitionProperty:"opacity",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"300ms",animationDuration:"300ms",animationTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)"},h?{opacity:"1",".group:hover &":{opacity:"0"}}:{},w?{".group:hover &":{opacity:"1"}}:{}],p=r.pt(d.CircleDashed)(a),x=r.pt(d.Moon)(a),g=r.pt(d.Sun)(a);return o.jsxRuntimeExports.jsxs(y,{"aria-label":"Theme selector",className:"group",children:[o.jsxRuntimeExports.jsx(p,{onClick:n,"data-mode":"system",isCurrentMode:s===e.Modes.system,isNextMode:t===e.Modes.system}),o.jsxRuntimeExports.jsx(x,{onClick:n,"data-mode":"light",isCurrentMode:s===e.Modes.dark,isNextMode:t===e.Modes.dark}),o.jsxRuntimeExports.jsx(g,{onClick:n,"data-mode":"dark",isCurrentMode:s===e.Modes.light,isNextMode:t===e.Modes.light})]})};exports.MobileThemeSwitcher=k;
@@ -0,0 +1,10 @@
1
+ import { FC } from 'react';
2
+ import { Modes } from './types';
3
+
4
+ type MobileThemeSwitcherProps = {
5
+ theme: Modes;
6
+ systemTheme: Modes;
7
+ setTheme: (theme: Modes) => void;
8
+ };
9
+ export declare const MobileThemeSwitcher: FC<MobileThemeSwitcherProps>;
10
+ export {};
@@ -0,0 +1,65 @@
1
+ "use client";
2
+ import { j as s } from "../../jsx-runtime-Tw_Kw2GZ.js";
3
+ import { p as r } from "../../styled-components.browser.esm-D6kkzXl4.js";
4
+ import { useState as M } from "react";
5
+ import { Modes as t } from "./types.es.js";
6
+ import { C as k, M as S, S as v } from "../../sun-BrKC5Qwg.js";
7
+ const D = ({
8
+ theme: a,
9
+ systemTheme: l,
10
+ setTheme: c
11
+ }) => {
12
+ const d = l === a, m = d ? t.system : a, [o, y] = M(m), e = (
13
+ // Start loop
14
+ // If mode is system, toggle the theme inverse of the system theme
15
+ o === t.system ? a === t.dark ? t.light : t.dark : (
16
+ // Close loop
17
+ // If current theme same as system theme, reset by toggle the system theme
18
+ d ? t.system : (
19
+ // Go to next step
20
+ // Otherwise, toggle the remaining theme
21
+ o === t.light ? t.dark : t.light
22
+ )
23
+ )
24
+ ), i = () => {
25
+ e === t.system ? c(l ?? t.light) : c(e), y(e);
26
+ }, p = r.button({
27
+ position: "relative",
28
+ width: "2.5rem",
29
+ height: "2.5rem"
30
+ }), n = ({
31
+ isCurrentMode: w,
32
+ isNextMode: x
33
+ }) => [{
34
+ position: "absolute",
35
+ left: "50%",
36
+ top: "50%",
37
+ "--tw-translate-x": "-50%",
38
+ transform: "translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))",
39
+ "--tw-translate-y": "-50%"
40
+ }, {
41
+ opacity: "0",
42
+ transitionProperty: "opacity",
43
+ transitionTimingFunction: "cubic-bezier(0.4, 0, 0.2, 1)",
44
+ transitionDuration: "300ms",
45
+ animationDuration: "300ms",
46
+ animationTimingFunction: "cubic-bezier(0.4, 0, 0.2, 1)"
47
+ }, w ? {
48
+ opacity: "1",
49
+ ".group:hover &": {
50
+ opacity: "0"
51
+ }
52
+ } : {}, x ? {
53
+ ".group:hover &": {
54
+ opacity: "1"
55
+ }
56
+ } : {}], u = r(k)(n), g = r(S)(n), h = r(v)(n);
57
+ return /* @__PURE__ */ s.jsxs(p, { "aria-label": "Theme selector", className: "group", children: [
58
+ /* @__PURE__ */ s.jsx(u, { onClick: i, "data-mode": "system", isCurrentMode: o === t.system, isNextMode: e === t.system }),
59
+ /* @__PURE__ */ s.jsx(g, { onClick: i, "data-mode": "light", isCurrentMode: o === t.dark, isNextMode: e === t.dark }),
60
+ /* @__PURE__ */ s.jsx(h, { onClick: i, "data-mode": "dark", isCurrentMode: o === t.light, isNextMode: e === t.light })
61
+ ] });
62
+ };
63
+ export {
64
+ D as MobileThemeSwitcher
65
+ };
@@ -0,0 +1 @@
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./DesktopThemeSwitcher.cjs.js"),o=require("./MobileThemeSwitcher.cjs.js"),t=require("./types.cjs.js");exports.DesktopThemeSwitcher=e.DesktopThemeSwitcher;exports.MobileThemeSwitcher=o.MobileThemeSwitcher;exports.Modes=t.Modes;
@@ -0,0 +1,3 @@
1
+ export * from './DesktopThemeSwitcher';
2
+ export * from './MobileThemeSwitcher';
3
+ export * from './types';
@@ -0,0 +1,9 @@
1
+ "use client";
2
+ import { DesktopThemeSwitcher as r } from "./DesktopThemeSwitcher.es.js";
3
+ import { MobileThemeSwitcher as m } from "./MobileThemeSwitcher.es.js";
4
+ import { Modes as i } from "./types.es.js";
5
+ export {
6
+ r as DesktopThemeSwitcher,
7
+ m as MobileThemeSwitcher,
8
+ i as Modes
9
+ };
@@ -0,0 +1 @@
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e=(t=>(t.dark="dark",t.light="light",t.system="system",t))(e||{});exports.Modes=e;
@@ -0,0 +1,5 @@
1
+ export declare enum Modes {
2
+ dark = "dark",
3
+ light = "light",
4
+ system = "system"
5
+ }
@@ -0,0 +1,5 @@
1
+ "use client";
2
+ var r = /* @__PURE__ */ ((t) => (t.dark = "dark", t.light = "light", t.system = "system", t))(r || {});
3
+ export {
4
+ r as Modes
5
+ };
@@ -0,0 +1 @@
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./MaxHeightSmoother/index.cjs.js"),n=require("./MaxWidthSmoother/index.cjs.js"),i=require("./RightDrawer/RightDrawer.cjs.js"),o=require("./RightDrawer/useRightDrawerStore.cjs.js"),c=require("./PressableDiv/PressableDiv.cjs.js"),s=require("./ContentEditor/ContentEditor.cjs.js"),a=require("./ContentSelector/ContentSelector.cjs.js"),_=require("./DictionaryEditor/DictionaryEditor.cjs.js"),D=require("./DropDown/index.cjs.js"),h=require("./LocaleSwitcherDropDown/LocaleSwitcher.cjs.js"),p=require("./ThemeSwitcherDropDown/DesktopThemeSwitcher.cjs.js"),d=require("./ThemeSwitcherDropDown/MobileThemeSwitcher.cjs.js"),m=require("./ThemeSwitcherDropDown/types.cjs.js"),u=require("./RedirectionButton/RedirectionButton.cjs.js"),w=require("./Button/index.cjs.js"),t=require("./Container/index.cjs.js"),S=require("./Footer/index.cjs.js"),q=require("./Navbar/index.cjs.js"),l=require("./ProfileDropDown/index.cjs.js"),g=require("./Avatar/index.cjs.js"),x=require("./Logo/index.cjs.js"),R=require("./IDE/CodeRender.cjs.js"),C=require("./IDE/IDE.cjs.js"),M=require("./Popover/index.cjs.js"),v=require("./MarkDownRender/index.cjs.js"),e=require("./Headers/index.cjs.js");exports.MaxHeightSmoother=r.MaxHeightSmoother;exports.MaxWidthSmoother=n.MaxWidthSmoother;exports.RightDrawer=i.RightDrawer;exports.createRightDrawerStore=o.createRightDrawerStore;exports.useRightDrawerStore=o.useRightDrawerStore;exports.PressableDiv=c.PressableDiv;exports.ContentEditor=s.ContentEditor;exports.ContentSelector=a.ContentSelector;exports.DictionaryEditor=_.DictionaryEditor;exports.DropDown=D.DropDown;exports.LocaleSwitcher=h.LocaleSwitcher;exports.DesktopThemeSwitcher=p.DesktopThemeSwitcher;exports.MobileThemeSwitcher=d.MobileThemeSwitcher;exports.Modes=m.Modes;exports.RedirectionButton=u.RedirectionButton;exports.Button=w.Button;exports.Container=t.Container;exports.getContainerStyles=t.getContainerStyles;exports.Footer=S.Footer;exports.Navbar=q.Navbar;exports.ProfileDropDown=l.ProfileDropDown;exports.Avatar=g.Avatar;exports.Logo=x.Logo;exports.Code=R.Code;exports.IDE=C.IDE;exports.Popover=M.Popover;exports.MarkdownRenderer=v.MarkdownRenderer;exports.H1=e.H1;exports.H2=e.H2;exports.H3=e.H3;exports.H4=e.H4;exports.H5=e.H5;
@@ -0,0 +1,22 @@
1
+ export * from './MaxHeightSmoother';
2
+ export * from './MaxWidthSmoother';
3
+ export * from './RightDrawer';
4
+ export * from './PressableDiv';
5
+ export * from './ContentEditor';
6
+ export * from './ContentSelector';
7
+ export * from './DictionaryEditor';
8
+ export * from './DropDown';
9
+ export * from './LocaleSwitcherDropDown';
10
+ export * from './ThemeSwitcherDropDown';
11
+ export * from './RedirectionButton';
12
+ export * from './Button';
13
+ export * from './Container';
14
+ export * from './Footer';
15
+ export * from './Navbar';
16
+ export * from './ProfileDropDown';
17
+ export * from './Avatar';
18
+ export * from './Logo';
19
+ export * from './IDE';
20
+ export * from './Popover';
21
+ export * from './MarkDownRender';
22
+ export * from './Headers';
@@ -0,0 +1,61 @@
1
+ "use client";
2
+ import { MaxHeightSmoother as e } from "./MaxHeightSmoother/index.es.js";
3
+ import { MaxWidthSmoother as m } from "./MaxWidthSmoother/index.es.js";
4
+ import { RightDrawer as x } from "./RightDrawer/RightDrawer.es.js";
5
+ import { createRightDrawerStore as i, useRightDrawerStore as n } from "./RightDrawer/useRightDrawerStore.es.js";
6
+ import { PressableDiv as h } from "./PressableDiv/PressableDiv.es.js";
7
+ import { ContentEditor as c } from "./ContentEditor/ContentEditor.es.js";
8
+ import { ContentSelector as S } from "./ContentSelector/ContentSelector.es.js";
9
+ import { DictionaryEditor as l } from "./DictionaryEditor/DictionaryEditor.es.js";
10
+ import { DropDown as g } from "./DropDown/index.es.js";
11
+ import { LocaleSwitcher as C } from "./LocaleSwitcherDropDown/LocaleSwitcher.es.js";
12
+ import { DesktopThemeSwitcher as R } from "./ThemeSwitcherDropDown/DesktopThemeSwitcher.es.js";
13
+ import { MobileThemeSwitcher as v } from "./ThemeSwitcherDropDown/MobileThemeSwitcher.es.js";
14
+ import { Modes as E } from "./ThemeSwitcherDropDown/types.es.js";
15
+ import { RedirectionButton as k } from "./RedirectionButton/RedirectionButton.es.js";
16
+ import { Button as B } from "./Button/index.es.js";
17
+ import { Container as T, getContainerStyles as A } from "./Container/index.es.js";
18
+ import { Footer as I } from "./Footer/index.es.js";
19
+ import { Navbar as W } from "./Navbar/index.es.js";
20
+ import { ProfileDropDown as q } from "./ProfileDropDown/index.es.js";
21
+ import { Avatar as G } from "./Avatar/index.es.js";
22
+ import { Logo as K } from "./Logo/index.es.js";
23
+ import { Code as Q } from "./IDE/CodeRender.es.js";
24
+ import { IDE as V } from "./IDE/IDE.es.js";
25
+ import { Popover as Y } from "./Popover/index.es.js";
26
+ import { MarkdownRenderer as _ } from "./MarkDownRender/index.es.js";
27
+ import { H1 as oo, H2 as ro, H3 as eo, H4 as to, H5 as mo } from "./Headers/index.es.js";
28
+ export {
29
+ G as Avatar,
30
+ B as Button,
31
+ Q as Code,
32
+ T as Container,
33
+ c as ContentEditor,
34
+ S as ContentSelector,
35
+ R as DesktopThemeSwitcher,
36
+ l as DictionaryEditor,
37
+ g as DropDown,
38
+ I as Footer,
39
+ oo as H1,
40
+ ro as H2,
41
+ eo as H3,
42
+ to as H4,
43
+ mo as H5,
44
+ V as IDE,
45
+ C as LocaleSwitcher,
46
+ K as Logo,
47
+ _ as MarkdownRenderer,
48
+ e as MaxHeightSmoother,
49
+ m as MaxWidthSmoother,
50
+ v as MobileThemeSwitcher,
51
+ E as Modes,
52
+ W as Navbar,
53
+ Y as Popover,
54
+ h as PressableDiv,
55
+ q as ProfileDropDown,
56
+ k as RedirectionButton,
57
+ x as RightDrawer,
58
+ i as createRightDrawerStore,
59
+ A as getContainerStyles,
60
+ n as useRightDrawerStore
61
+ };
@@ -0,0 +1,80 @@
1
+ "use client";
2
+ import { forwardRef as c, createElement as a } from "react";
3
+ /**
4
+ * @license lucide-react v0.376.0 - ISC
5
+ *
6
+ * This source code is licensed under the ISC license.
7
+ * See the LICENSE file in the root directory of this source tree.
8
+ */
9
+ const p = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), i = (...e) => e.filter((r, t, o) => !!r && o.indexOf(r) === t).join(" ");
10
+ /**
11
+ * @license lucide-react v0.376.0 - ISC
12
+ *
13
+ * This source code is licensed under the ISC license.
14
+ * See the LICENSE file in the root directory of this source tree.
15
+ */
16
+ var f = {
17
+ xmlns: "http://www.w3.org/2000/svg",
18
+ width: 24,
19
+ height: 24,
20
+ viewBox: "0 0 24 24",
21
+ fill: "none",
22
+ stroke: "currentColor",
23
+ strokeWidth: 2,
24
+ strokeLinecap: "round",
25
+ strokeLinejoin: "round"
26
+ };
27
+ /**
28
+ * @license lucide-react v0.376.0 - ISC
29
+ *
30
+ * This source code is licensed under the ISC license.
31
+ * See the LICENSE file in the root directory of this source tree.
32
+ */
33
+ const g = c(
34
+ ({
35
+ color: e = "currentColor",
36
+ size: r = 24,
37
+ strokeWidth: t = 2,
38
+ absoluteStrokeWidth: o,
39
+ className: s = "",
40
+ children: n,
41
+ iconNode: u,
42
+ ...l
43
+ }, d) => a(
44
+ "svg",
45
+ {
46
+ ref: d,
47
+ ...f,
48
+ width: r,
49
+ height: r,
50
+ stroke: e,
51
+ strokeWidth: o ? Number(t) * 24 / Number(r) : t,
52
+ className: i("lucide", s),
53
+ ...l
54
+ },
55
+ [
56
+ ...u.map(([m, w]) => a(m, w)),
57
+ ...Array.isArray(n) ? n : [n]
58
+ ]
59
+ )
60
+ );
61
+ /**
62
+ * @license lucide-react v0.376.0 - ISC
63
+ *
64
+ * This source code is licensed under the ISC license.
65
+ * See the LICENSE file in the root directory of this source tree.
66
+ */
67
+ const C = (e, r) => {
68
+ const t = c(
69
+ ({ className: o, ...s }, n) => a(g, {
70
+ ref: n,
71
+ iconNode: r,
72
+ className: i(`lucide-${p(e)}`, o),
73
+ ...s
74
+ })
75
+ );
76
+ return t.displayName = `${e}`, t;
77
+ };
78
+ export {
79
+ C as c
80
+ };