@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 @@
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../../jsx-runtime-D6agescH.cjs"),e=require("../../styled-components.browser.esm-GqWwDlfY.cjs"),p=require("react"),g=require("../Container/index.cjs.js"),l=require("../../MarkDownRender-BeQGOIow.cjs"),b=e.pt(g.Container)({display:"flex",height:"100%",width:"100%",flexDirection:"column",overflow:"scroll","--tw-shadow":"0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)","--tw-shadow-colored":"0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)"}),m=e.pt.div({display:"flex",width:"100%",alignItems:"center",justifyContent:"flex-start",overflow:"scroll",borderTopLeftRadius:"1.5rem",borderTopRightRadius:"1.5rem","--tw-bg-opacity":"1",backgroundColor:"rgba(209, 209, 209, var(--tw-bg-opacity))",fontSize:"0.75rem",lineHeight:"1rem","--tw-text-opacity":"1",color:"rgba(93, 93, 93, var(--tw-text-opacity))",'&:where([data-theme="dark"], [data-theme="dark"] *)':{"--tw-bg-opacity":"1",backgroundColor:"rgba(79, 79, 79, var(--tw-bg-opacity))","--tw-text-opacity":"1",color:"rgba(136, 136, 136, var(--tw-text-opacity))"}}),w=e.pt.div({marginLeft:"0.5rem",marginRight:"0.5rem",display:"flex",alignItems:"center",justifyContent:"flex-start",gap:"0.5rem",padding:"0.25rem"}),o=e.pt.div({height:"0.75rem",width:"0.75rem",borderRadius:"9999px"}),x=e.pt(o)({"--tw-bg-opacity":"1",backgroundColor:"rgb(239 68 68 / var(--tw-bg-opacity))"}),u=e.pt(o)({"--tw-bg-opacity":"1",backgroundColor:"rgb(234 179 8 / var(--tw-bg-opacity))"}),y=e.pt(o)({"--tw-bg-opacity":"1",backgroundColor:"rgb(34 197 94 / var(--tw-bg-opacity))"}),h=e.pt.div(({$isActive:r})=>[{display:"flex",height:"2rem",minWidth:"5rem",alignItems:"center",justifyContent:"center",paddingLeft:"0.75rem",paddingRight:"0.75rem",paddingTop:"0.25rem",paddingBottom:"0.25rem"},r?{"--tw-bg-opacity":"1",backgroundColor:"rgba(231, 231, 231, var(--tw-bg-opacity))",'&:where([data-theme="dark"], [data-theme="dark"] *)':{"--tw-bg-opacity":"1",backgroundColor:"rgba(69, 69, 69, var(--tw-bg-opacity))"}}:{cursor:"pointer","--tw-bg-opacity":"1",backgroundColor:"rgba(209, 209, 209, var(--tw-bg-opacity))","&:hover":{"--tw-bg-opacity":"1",backgroundColor:"rgba(176, 176, 176, var(--tw-bg-opacity))"},'&:where([data-theme="dark"], [data-theme="dark"] *)':{"--tw-bg-opacity":"1",backgroundColor:"rgba(79, 79, 79, var(--tw-bg-opacity))"},'&:where([data-theme="dark"], [data-theme="dark"] *):hover':{"--tw-bg-opacity":"1",backgroundColor:"rgba(93, 93, 93, var(--tw-bg-opacity))"}}]),v=e.pt.div({paddingLeft:"0.5rem",paddingTop:"0.5rem",fontSize:"0.75rem",lineHeight:"1rem","@media (min-width: 768px)":{fontSize:"0.875rem",lineHeight:"1.25rem"}}),j=({tabs:r,isDarkMode:d})=>{const[a,s]=p.useState(0),{content:c}=r[a];return t.jsxRuntimeExports.jsxs(b,{roundedSize:"3xl",transparency:"none",children:[t.jsxRuntimeExports.jsxs(m,{children:[t.jsxRuntimeExports.jsxs(w,{children:[t.jsxRuntimeExports.jsx(x,{}),t.jsxRuntimeExports.jsx(u,{}),t.jsxRuntimeExports.jsx(y,{})]}),r.map(({title:i},n)=>t.jsxRuntimeExports.jsx(h,{onClick:()=>s(n),$isActive:a===n,children:i},i))]}),t.jsxRuntimeExports.jsx(v,{children:t.jsxRuntimeExports.jsx(l.MarkdownRenderer,{isDarkMode:d,children:c})})]})};exports.IDE=j;
@@ -0,0 +1,10 @@
1
+ import { FC } from 'react';
2
+
3
+ export type IDEProps = {
4
+ tabs: {
5
+ title: string;
6
+ content: string;
7
+ }[];
8
+ isDarkMode?: boolean;
9
+ };
10
+ export declare const IDE: FC<IDEProps>;
@@ -0,0 +1,124 @@
1
+ "use client";
2
+ import { j as t } from "../../jsx-runtime-Tw_Kw2GZ.js";
3
+ import { p as r } from "../../styled-components.browser.esm-D6kkzXl4.js";
4
+ import { useState as p } from "react";
5
+ import { Container as s } from "../Container/index.es.js";
6
+ import { a as l } from "../../MarkDownRender-gURA8GAt.js";
7
+ const b = r(s)({
8
+ display: "flex",
9
+ height: "100%",
10
+ width: "100%",
11
+ flexDirection: "column",
12
+ overflow: "scroll",
13
+ "--tw-shadow": "0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)",
14
+ "--tw-shadow-colored": "0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color)",
15
+ boxShadow: "var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)"
16
+ }), m = r.div({
17
+ display: "flex",
18
+ width: "100%",
19
+ alignItems: "center",
20
+ justifyContent: "flex-start",
21
+ overflow: "scroll",
22
+ borderTopLeftRadius: "1.5rem",
23
+ borderTopRightRadius: "1.5rem",
24
+ "--tw-bg-opacity": "1",
25
+ backgroundColor: "rgba(209, 209, 209, var(--tw-bg-opacity))",
26
+ fontSize: "0.75rem",
27
+ lineHeight: "1rem",
28
+ "--tw-text-opacity": "1",
29
+ color: "rgba(93, 93, 93, var(--tw-text-opacity))",
30
+ '&:where([data-theme="dark"], [data-theme="dark"] *)': {
31
+ "--tw-bg-opacity": "1",
32
+ backgroundColor: "rgba(79, 79, 79, var(--tw-bg-opacity))",
33
+ "--tw-text-opacity": "1",
34
+ color: "rgba(136, 136, 136, var(--tw-text-opacity))"
35
+ }
36
+ }), w = r.div({
37
+ marginLeft: "0.5rem",
38
+ marginRight: "0.5rem",
39
+ display: "flex",
40
+ alignItems: "center",
41
+ justifyContent: "flex-start",
42
+ gap: "0.5rem",
43
+ padding: "0.25rem"
44
+ }), a = r.div({
45
+ height: "0.75rem",
46
+ width: "0.75rem",
47
+ borderRadius: "9999px"
48
+ }), h = r(a)({
49
+ "--tw-bg-opacity": "1",
50
+ backgroundColor: "rgb(239 68 68 / var(--tw-bg-opacity))"
51
+ }), y = r(a)({
52
+ "--tw-bg-opacity": "1",
53
+ backgroundColor: "rgb(234 179 8 / var(--tw-bg-opacity))"
54
+ }), x = r(a)({
55
+ "--tw-bg-opacity": "1",
56
+ backgroundColor: "rgb(34 197 94 / var(--tw-bg-opacity))"
57
+ }), v = r.div(({
58
+ $isActive: o
59
+ }) => [{
60
+ display: "flex",
61
+ height: "2rem",
62
+ minWidth: "5rem",
63
+ alignItems: "center",
64
+ justifyContent: "center",
65
+ paddingLeft: "0.75rem",
66
+ paddingRight: "0.75rem",
67
+ paddingTop: "0.25rem",
68
+ paddingBottom: "0.25rem"
69
+ }, o ? {
70
+ "--tw-bg-opacity": "1",
71
+ backgroundColor: "rgba(231, 231, 231, var(--tw-bg-opacity))",
72
+ '&:where([data-theme="dark"], [data-theme="dark"] *)': {
73
+ "--tw-bg-opacity": "1",
74
+ backgroundColor: "rgba(69, 69, 69, var(--tw-bg-opacity))"
75
+ }
76
+ } : {
77
+ cursor: "pointer",
78
+ "--tw-bg-opacity": "1",
79
+ backgroundColor: "rgba(209, 209, 209, var(--tw-bg-opacity))",
80
+ "&:hover": {
81
+ "--tw-bg-opacity": "1",
82
+ backgroundColor: "rgba(176, 176, 176, var(--tw-bg-opacity))"
83
+ },
84
+ '&:where([data-theme="dark"], [data-theme="dark"] *)': {
85
+ "--tw-bg-opacity": "1",
86
+ backgroundColor: "rgba(79, 79, 79, var(--tw-bg-opacity))"
87
+ },
88
+ '&:where([data-theme="dark"], [data-theme="dark"] *):hover': {
89
+ "--tw-bg-opacity": "1",
90
+ backgroundColor: "rgba(93, 93, 93, var(--tw-bg-opacity))"
91
+ }
92
+ }]), u = r.div({
93
+ paddingLeft: "0.5rem",
94
+ paddingTop: "0.5rem",
95
+ fontSize: "0.75rem",
96
+ lineHeight: "1rem",
97
+ "@media (min-width: 768px)": {
98
+ fontSize: "0.875rem",
99
+ lineHeight: "1.25rem"
100
+ }
101
+ }), R = ({
102
+ tabs: o,
103
+ isDarkMode: d
104
+ }) => {
105
+ const [e, c] = p(0), {
106
+ content: g
107
+ } = o[e];
108
+ return /* @__PURE__ */ t.jsxs(b, { roundedSize: "3xl", transparency: "none", children: [
109
+ /* @__PURE__ */ t.jsxs(m, { children: [
110
+ /* @__PURE__ */ t.jsxs(w, { children: [
111
+ /* @__PURE__ */ t.jsx(h, {}),
112
+ /* @__PURE__ */ t.jsx(y, {}),
113
+ /* @__PURE__ */ t.jsx(x, {})
114
+ ] }),
115
+ o.map(({
116
+ title: i
117
+ }, n) => /* @__PURE__ */ t.jsx(v, { onClick: () => c(n), $isActive: e === n, children: i }, i))
118
+ ] }),
119
+ /* @__PURE__ */ t.jsx(u, { children: /* @__PURE__ */ t.jsx(l, { isDarkMode: d, children: g }) })
120
+ ] });
121
+ };
122
+ export {
123
+ R as IDE
124
+ };
@@ -0,0 +1 @@
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../../jsx-runtime-D6agescH.cjs");const e=require("../../MarkDownRender-BeQGOIow.cjs");require("./CodeRender.cjs.js");exports.MarkdownRenderer=e.MarkdownRenderer;
@@ -0,0 +1,8 @@
1
+ import { FC } from 'react';
2
+
3
+ type MarkdownRendererProps = {
4
+ isDarkMode?: boolean;
5
+ children: string;
6
+ };
7
+ export declare const MarkdownRenderer: FC<MarkdownRendererProps>;
8
+ export {};
@@ -0,0 +1,7 @@
1
+ "use client";
2
+ import "../../jsx-runtime-Tw_Kw2GZ.js";
3
+ import { a } from "../../MarkDownRender-gURA8GAt.js";
4
+ import "./CodeRender.es.js";
5
+ export {
6
+ a as MarkdownRenderer
7
+ };
@@ -0,0 +1 @@
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CodeRender.cjs.js"),o=require("./IDE.cjs.js");exports.Code=e.Code;exports.IDE=o.IDE;
@@ -0,0 +1,2 @@
1
+ export * from './CodeRender';
2
+ export * from './IDE';
@@ -0,0 +1,7 @@
1
+ "use client";
2
+ import { Code as r } from "./CodeRender.es.js";
3
+ import { IDE as f } from "./IDE.es.js";
4
+ export {
5
+ r as Code,
6
+ f as IDE
7
+ };
@@ -0,0 +1 @@
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../jsx-runtime-D6agescH.cjs"),r=require("../../styled-components.browser.esm-GqWwDlfY.cjs"),i=require("./spinner.cjs.js"),o=r.pt.div({display:"flex",width:"100%",height:"100%",maxHeight:"100vh",maxWidth:"100vw",alignItems:"center",justifyContent:"center"}),a=({className:x,children:t,isLoading:n=!0,...s})=>n?e.jsxRuntimeExports.jsx(o,{"aria-label":"Animated icon, meaning that the website is processing",...s,children:e.jsxRuntimeExports.jsx(i.Spinner,{})}):e.jsxRuntimeExports.jsx(e.jsxRuntimeExports.Fragment,{children:t??e.jsxRuntimeExports.jsx(e.jsxRuntimeExports.Fragment,{})});exports.Loader=a;
@@ -0,0 +1,6 @@
1
+ import { FC, HTMLAttributes } from 'react';
2
+
3
+ export interface LoaderProps extends HTMLAttributes<HTMLDivElement> {
4
+ isLoading?: boolean;
5
+ }
6
+ export declare const Loader: FC<LoaderProps>;
@@ -0,0 +1,21 @@
1
+ "use client";
2
+ import { j as e } from "../../jsx-runtime-Tw_Kw2GZ.js";
3
+ import { p as r } from "../../styled-components.browser.esm-D6kkzXl4.js";
4
+ import { Spinner as s } from "./spinner.es.js";
5
+ const a = r.div({
6
+ display: "flex",
7
+ width: "100%",
8
+ height: "100%",
9
+ maxHeight: "100vh",
10
+ maxWidth: "100vw",
11
+ alignItems: "center",
12
+ justifyContent: "center"
13
+ }), l = ({
14
+ className: m,
15
+ children: t,
16
+ isLoading: i = !0,
17
+ ...n
18
+ }) => i ? /* @__PURE__ */ e.jsx(a, { "aria-label": "Animated icon, meaning that the website is processing", ...n, children: /* @__PURE__ */ e.jsx(s, {}) }) : /* @__PURE__ */ e.jsx(e.Fragment, { children: t ?? /* @__PURE__ */ e.jsx(e.Fragment, {}) });
19
+ export {
20
+ l as Loader
21
+ };
@@ -0,0 +1 @@
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../jsx-runtime-D6agescH.cjs"),i=require("../../styled-components.browser.esm-GqWwDlfY.cjs"),n=i.pt.svg({width:"100%",height:"100%"}),r=({className:t,strokeWidth:s=4})=>e.jsxRuntimeExports.jsx(n,{xmlns:"http://www.w3.org/2000/svg",width:"44",height:"44",viewBox:"0 0 44 44",stroke:"currentColor",className:t,children:e.jsxRuntimeExports.jsxs("g",{fill:"none",fillRule:"evenodd",strokeWidth:s,children:[e.jsxRuntimeExports.jsxs("circle",{cx:"22",cy:"22",r:"1",children:[e.jsxRuntimeExports.jsx("animate",{attributeName:"r",begin:"0s",dur:"1.8s",values:"1; 20",calcMode:"spline",keyTimes:"0; 1",keySplines:"0.165, 0.84, 0.44, 1",repeatCount:"indefinite"}),e.jsxRuntimeExports.jsx("animate",{attributeName:"stroke-opacity",begin:"0s",dur:"1.8s",values:"1; 0",calcMode:"spline",keyTimes:"0; 1",keySplines:"0.3, 0.61, 0.355, 1",repeatCount:"indefinite"})]}),e.jsxRuntimeExports.jsxs("circle",{cx:"22",cy:"22",r:"1",children:[e.jsxRuntimeExports.jsx("animate",{attributeName:"r",begin:"-0.9s",dur:"1.8s",values:"1; 20",calcMode:"spline",keyTimes:"0; 1",keySplines:"0.165, 0.84, 0.44, 1",repeatCount:"indefinite"}),e.jsxRuntimeExports.jsx("animate",{attributeName:"stroke-opacity",begin:"-0.9s",dur:"1.8s",values:"1; 0",calcMode:"spline",keyTimes:"0; 1",keySplines:"0.3, 0.61, 0.355, 1",repeatCount:"indefinite"})]})]})});exports.Spinner=r;
@@ -0,0 +1,7 @@
1
+ import { SVGProps } from 'react';
2
+
3
+ type SpinnerProps = SVGProps<SVGSVGElement> & {
4
+ strokeWidth?: number;
5
+ };
6
+ export declare const Spinner: ({ className, strokeWidth }: SpinnerProps) => import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -0,0 +1,22 @@
1
+ "use client";
2
+ import { j as e } from "../../jsx-runtime-Tw_Kw2GZ.js";
3
+ import { p as s } from "../../styled-components.browser.esm-D6kkzXl4.js";
4
+ const n = s.svg({
5
+ width: "100%",
6
+ height: "100%"
7
+ }), l = ({
8
+ className: i,
9
+ strokeWidth: t = 4
10
+ }) => /* @__PURE__ */ e.jsx(n, { xmlns: "http://www.w3.org/2000/svg", width: "44", height: "44", viewBox: "0 0 44 44", stroke: "currentColor", className: i, children: /* @__PURE__ */ e.jsxs("g", { fill: "none", fillRule: "evenodd", strokeWidth: t, children: [
11
+ /* @__PURE__ */ e.jsxs("circle", { cx: "22", cy: "22", r: "1", children: [
12
+ /* @__PURE__ */ e.jsx("animate", { attributeName: "r", begin: "0s", dur: "1.8s", values: "1; 20", calcMode: "spline", keyTimes: "0; 1", keySplines: "0.165, 0.84, 0.44, 1", repeatCount: "indefinite" }),
13
+ /* @__PURE__ */ e.jsx("animate", { attributeName: "stroke-opacity", begin: "0s", dur: "1.8s", values: "1; 0", calcMode: "spline", keyTimes: "0; 1", keySplines: "0.3, 0.61, 0.355, 1", repeatCount: "indefinite" })
14
+ ] }),
15
+ /* @__PURE__ */ e.jsxs("circle", { cx: "22", cy: "22", r: "1", children: [
16
+ /* @__PURE__ */ e.jsx("animate", { attributeName: "r", begin: "-0.9s", dur: "1.8s", values: "1; 20", calcMode: "spline", keyTimes: "0; 1", keySplines: "0.165, 0.84, 0.44, 1", repeatCount: "indefinite" }),
17
+ /* @__PURE__ */ e.jsx("animate", { attributeName: "stroke-opacity", begin: "-0.9s", dur: "1.8s", values: "1; 0", calcMode: "spline", keyTimes: "0; 1", keySplines: "0.3, 0.61, 0.355, 1", repeatCount: "indefinite" })
18
+ ] })
19
+ ] }) });
20
+ export {
21
+ l as Spinner
22
+ };
@@ -0,0 +1,6 @@
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../jsx-runtime-D6agescH.cjs"),a=require("../../styled-components.browser.esm-GqWwDlfY.cjs"),u=require("../../localeList-DlUgKn8J.cjs"),l=require("../Container/index.cjs.js"),t=require("../DropDown/index.cjs.js"),E=require("../../createLucideIcon-ZOnO-fn6.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 L=E.createLucideIcon("MoveVertical",[["polyline",{points:"8 18 12 22 16 18",key:"1uutw3"}],["polyline",{points:"8 6 12 2 16 6",key:"d60sxy"}],["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}]]),c=r=>{switch(r){case u.Locales.ENGLISH:return"English";case u.Locales.FRENCH:return"Français";case u.Locales.SPANISH:return"Español";case u.Locales.PORTUGUESE:return"Português";case u.Locales.GERMAN:return"Deutsch";case u.Locales.AFRIKAANS:return"Afrikaans";case u.Locales.ARABIC:return"العربية";case u.Locales.AZERI_LATIN:return"Azərbaycan";case u.Locales.BELARUSIAN:return"Беларуская";case u.Locales.BULGARIAN:return"Български";case u.Locales.BOSNIAN:return"Bosanski";case u.Locales.CATALAN:return"Català";case u.Locales.CZECH:return"Čeština";case u.Locales.WELSH:return"Cymraeg";case u.Locales.DANISH:return"Dansk";case u.Locales.DIVEHI:return"ދިވެހި";case u.Locales.GREEK:return"Ελληνικά";case u.Locales.ESPERANTO:return"Esperanto";case u.Locales.ESTONIAN:return"Eesti";case u.Locales.BASQUE:return"Euskara";case u.Locales.FARSI:return"فارسی";case u.Locales.FINNISH:return"Suomi";case u.Locales.FAROESE:return"Føroyskt";case u.Locales.GALICIAN:return"Galego";case u.Locales.GUJARATI:return"ગુજરાતી";case u.Locales.HEBREW:return"עברית";case u.Locales.HINDI:return"हिन्दी";case u.Locales.CROATIAN:return"Hrvatski";case u.Locales.HUNGARIAN:return"Magyar";case u.Locales.ARMENIAN:return"Հայերեն";case u.Locales.INDONESIAN:return"Bahasa Indonesia";case u.Locales.ICELANDIC:return"Íslenska";case u.Locales.ITALIAN:return"Italiano";case u.Locales.JAPANESE:return"日本語";case u.Locales.GEORGIAN:return"ქართული";case u.Locales.KAZAKH:return"Қазақ";case u.Locales.KANNADA:return"ಕನ್ನಡ";case u.Locales.KOREAN:return"한국어";case u.Locales.KONKANI:return"कोंकणी";case u.Locales.KYRGYZ:return"Кыргыз";case u.Locales.LITHUANIAN:return"Lietuvių";case u.Locales.LATVIAN:return"Latviešu";case u.Locales.MAORI:return"Māori";case u.Locales.FYRO_MACEDONIAN:return"Македонски";case u.Locales.MONGOLIAN:return"Монгол";case u.Locales.MARATHI:return"मराठी";case u.Locales.MALAY:return"Bahasa Melayu";case u.Locales.MALTESE:return"Malti";case u.Locales.NORWEGIAN_BOKMAL:return"Norsk Bokmål";case u.Locales.DUTCH:return"Nederlands";case u.Locales.NORTHERN_SOTHO:return"Sesotho sa Leboa";case u.Locales.PUNJABI:return"ਪੰਜਾਬੀ";case u.Locales.POLISH:return"Polski";case u.Locales.PASHTO:return"پښتو";case u.Locales.QUECHUA:return"Runasimi";case u.Locales.ROMANIAN:return"Română";case u.Locales.RUSSIAN:return"Русский";case u.Locales.SANSKRIT:return"संस्कृतम्";case u.Locales.SAMI_NORTHERN:return"Davvisámegiella";case u.Locales.SLOVAK:return"Slovenčina";case u.Locales.SLOVENIAN:return"Slovenščina";case u.Locales.ALBANIAN:return"Shqip";case u.Locales.SERBIAN_LATIN:return"Srpski";case u.Locales.SWEDISH:return"Svenska";case u.Locales.SWAHILI:return"Kiswahili";case u.Locales.SYRIAC:return"ܣܘܪܝܝܐ";case u.Locales.TAMIL:return"தமிழ்";case u.Locales.TELUGU:return"తెలుగు";case u.Locales.THAI:return"ไทย";case u.Locales.TAGALOG:return"Tagalog";case u.Locales.TSWANA:return"Setswana";case u.Locales.TURKISH:return"Türkçe";case u.Locales.TATAR:return"Xitsonga";case u.Locales.UKRAINIAN:return"Українська";case u.Locales.URDU:return"اردو";case u.Locales.UZBEK_LATIN:return"O‘zbekcha";case u.Locales.VIETNAMESE:return"Tiếng Việt";case u.Locales.XHOSA:return"isiXhosa";case u.Locales.CHINESE_SIMPLIFIED:return"简体中文";case u.Locales.CHINESE_TRADITIONAL:return"繁體中文";case u.Locales.ZULU:return"isiZulu";case u.Locales.AFRIKAANS_SOUTH_AFRICA:return"Afrikaans (Suid-Afrika)";case u.Locales.ARABIC_UNITED_ARAB_EMIRATES:return"العربية (الإمارات)";case u.Locales.ARABIC_BAHRAIN:return"العربية (البحرين)";case u.Locales.ARABIC_ALGERIA:return"العربية (الجزائر)";case u.Locales.ARABIC_EGYPT:return"العربية (مصر)";case u.Locales.ARABIC_IRAQ:return"العربية (العراق)";case u.Locales.ARABIC_JORDAN:return"العربية (الأردن)";case u.Locales.ARABIC_KUWAIT:return"العربية (الكويت)";case u.Locales.ARABIC_LEBANON:return"العربية (لبنان)";case u.Locales.ARABIC_LIBYA:return"العربية (ليبيا)";case u.Locales.ARABIC_MOROCCO:return"العربية (المغرب)";case u.Locales.ARABIC_OMAN:return"العربية (عمان)";case u.Locales.ARABIC_QATAR:return"العربية (قطر)";case u.Locales.ARABIC_SAUDI_ARABIA:return"العربية (السعودية)";case u.Locales.ARABIC_SYRIA:return"العربية (سوريا)";case u.Locales.ARABIC_TUNISIA:return"العربية (تونس)";case u.Locales.ARABIC_YEMEN:return"العربية (اليمن)";case u.Locales.AZERI_LATIN_AZERBAIJAN:return"Azərbaycan (Azərbaycan)";case u.Locales.BELARUSIAN_BELARUS:return"Беларуская (Беларусь)";case u.Locales.BULGARIAN_BULGARIA:return"Български (България)";case u.Locales.BOSNIAN_BOSNIA_AND_HERZEGOVINA:return"Bosanski (Bosna i Hercegovina)";case u.Locales.CATALAN_SPAIN:return"Català (Espanya)";case u.Locales.CZECH_CZECH_REPUBLIC:return"Čeština (Česká republika)";case u.Locales.WELSH_UNITED_KINGDOM:return"Cymraeg (Y Deyrnas Unedig)";case u.Locales.DANISH_DENMARK:return"Dansk (Danmark)";case u.Locales.GERMAN_AUSTRIA:return"Deutsch (Österreich)";case u.Locales.GERMAN_SWITZERLAND:return"Deutsch (Schweiz)";case u.Locales.GERMAN_GERMANY:return"Deutsch (Deutschland)";case u.Locales.GERMAN_LIECHTENSTEIN:return"Deutsch (Liechtenstein)";case u.Locales.GERMAN_LUXEMBOURG:return"Deutsch (Luxemburg)";case u.Locales.DIVEHI_MALDIVES:return"ދިވެހި (ދިވެހި ރާއްޖެ)";case u.Locales.GREEK_GREECE:return"Ελληνικά (Ελλάδα)";case u.Locales.ENGLISH_AUSTRALIA:return"English (Australia)";case u.Locales.ENGLISH_BELIZE:return"English (Belize)";case u.Locales.ENGLISH_CANADA:return"English (Canada)";case u.Locales.ENGLISH_CARIBBEAN:return"English (Caribbean)";case u.Locales.ENGLISH_UNITED_KINGDOM:return"English (United Kingdom)";case u.Locales.ENGLISH_IRELAND:return"English (Ireland)";case u.Locales.ENGLISH_JAMAICA:return"English (Jamaica)";case u.Locales.ENGLISH_NEW_ZEALAND:return"English (New Zealand)";case u.Locales.ENGLISH_PHILIPPINES:return"English (Philippines)";case u.Locales.ENGLISH_TRINIDAD_AND_TOBAGO:return"English (Trinidad and Tobago)";case u.Locales.ENGLISH_UNITED_STATES:return"English (United States)";case u.Locales.ENGLISH_SOUTH_AFRICA:return"English (South Africa)";case u.Locales.ENGLISH_ZIMBABWE:return"English (Zimbabwe)";case u.Locales.SPANISH_ARGENTINA:return"Español (Argentina)";case u.Locales.SPANISH_BOLIVIA:return"Español (Bolivia)";case u.Locales.SPANISH_CHILE:return"Español (Chile)";case u.Locales.SPANISH_COLOMBIA:return"Español (Colombia)";case u.Locales.SPANISH_COSTA_RICA:return"Español (Costa Rica)";case u.Locales.SPANISH_DOMINICAN_REPUBLIC:return"Español (República Dominicana)";case u.Locales.SPANISH_ECUADOR:return"Español (Ecuador)";case u.Locales.SPANISH_SPAIN:return"Español (España)";case u.Locales.SPANISH_GUATEMALA:return"Español (Guatemala)";case u.Locales.SPANISH_HONDURAS:return"Español (Honduras)";case u.Locales.SPANISH_MEXICO:return"Español (México)";case u.Locales.SPANISH_NICARAGUA:return"Español (Nicaragua)";case u.Locales.SPANISH_PANAMA:return"Español (Panamá)";case u.Locales.SPANISH_PERU:return"Español (Perú)";case u.Locales.SPANISH_PUERTO_RICO:return"Español (Puerto Rico)";case u.Locales.SPANISH_PARAGUAY:return"Español (Paraguay)";case u.Locales.SPANISH_EL_SALVADOR:return"Español (El Salvador)";case u.Locales.SPANISH_URUGUAY:return"Español (Uruguay)";case u.Locales.SPANISH_VENEZUELA:return"Español (Venezuela)";case u.Locales.ESTONIAN_ESTONIA:return"Eesti (Eesti)";case u.Locales.BASQUE_SPAIN:return"Euskara (Espainia)";case u.Locales.FARSI_IRAN:return"فارسی (ایران)";case u.Locales.FINNISH_FINLAND:return"Suomi (Suomi)";case u.Locales.FAROESE_FAROE_ISLANDS:return"Føroyskt (Føroyar)";case u.Locales.FRENCH_BELGIUM:return"Français (Belgique)";case u.Locales.FRENCH_CANADA:return"Français (Canada)";case u.Locales.FRENCH_SWITZERLAND:return"Français (Suisse)";case u.Locales.FRENCH_FRANCE:return"Français (France)";case u.Locales.FRENCH_LUXEMBOURG:return"Français (Luxembourg)";case u.Locales.FRENCH_PRINCIPALITY_OF_MONACO:return"Français (Monaco)";case u.Locales.GALICIAN_SPAIN:return"Galego (España)";case u.Locales.GUJARATI_INDIA:return"ગુજરાતી (ભારત)";case u.Locales.HEBREW_ISRAEL:return"עברית (ישראל)";case u.Locales.HINDI_INDIA:return"हिन्दी (भारत)";case u.Locales.CROATIAN_BOSNIA_AND_HERZEGOVINA:return"Hrvatski (Bosna i Hercegovina)";case u.Locales.CROATIAN_CROATIA:return"Hrvatski (Hrvatska)";case u.Locales.HUNGARIAN_HUNGARY:return"Magyar (Magyarország)";case u.Locales.ARMENIAN_ARMENIA:return"Հայերեն (Հայաստան)";case u.Locales.INDONESIAN_INDONESIA:return"Bahasa Indonesia (Indonesia)";case u.Locales.ICELANDIC_ICELAND:return"Íslenska (Ísland)";case u.Locales.ITALIAN_SWITZERLAND:return"Italiano (Svizzera)";case u.Locales.ITALIAN_ITALY:return"Italiano (Italia)";case u.Locales.JAPANESE_JAPAN:return"日本語 (日本)";case u.Locales.GEORGIAN_GEORGIA:return"ქართული (საქართველო)";case u.Locales.KAZAKH_KAZAKHSTAN:return"Қазақ (Қазақстан)";case u.Locales.KANNADA_INDIA:return"ಕನ್ನಡ (ಭಾರತ)";case u.Locales.KOREAN_KOREA:return"한국어 (대한민국)";case u.Locales.KONKANI_INDIA:return"कोंकणी (भारत)";case u.Locales.KYRGYZ_KYRGYZSTAN:return"Кыргыз (Кыргызстан)";case u.Locales.LITHUANIAN_LITHUANIA:return"Lietuvių (Lietuva)";case u.Locales.LATVIAN_LATVIA:return"Latviešu (Latvija)";case u.Locales.MAORI_NEW_ZEALAND:return"Māori (Aotearoa)";case u.Locales.FYRO_MACEDONIAN_MACEDONIA:return"Македонски (Македонија)";case u.Locales.MONGOLIAN_MONGOLIA:return"Монгол (Монгол)";case u.Locales.MARATHI_INDIA:return"मराठी (भारत)";case u.Locales.MALAY_BRUNEI_DARUSSALAM:return"Bahasa Melayu (Brunei)";case u.Locales.MALAY_MALAYSIA:return"Bahasa Melayu (Malaysia)";case u.Locales.MALTESE_MALTA:return"Malti (Malta)";case u.Locales.NORWEGIAN_BOKMAL_NORWAY:return"Norsk Bokmål (Norge)";case u.Locales.DUTCH_BELGIUM:return"Nederlands (België)";case u.Locales.DUTCH_NETHERLANDS:return"Nederlands (Nederland)";case u.Locales.NORWEGIAN_NYNORSK_NORWAY:return"Norsk Nynorsk (Norge)";case u.Locales.NORTHERN_SOTHO_SOUTH_AFRICA:return"Sesotho sa Leboa (South Africa)";case u.Locales.PUNJABI_INDIA:return"ਪੰਜਾਬੀ (ਭਾਰਤ)";case u.Locales.POLISH_POLAND:return"Polski (Polska)";case u.Locales.PASHTO_AFGHANISTAN:return"پښتو (افغانستان)";case u.Locales.PORTUGUESE_BRAZIL:return"Português (Brasil)";case u.Locales.PORTUGUESE_PORTUGAL:return"Português (Portugal)";case u.Locales.QUECHUA_BOLIVIA:return"Runasimi (Bolivia)";case u.Locales.QUECHUA_ECUADOR:return"Runasimi (Ecuador)";case u.Locales.QUECHUA_PERU:return"Runasimi (Perú)";case u.Locales.ROMANIAN_ROMANIA:return"Română (România)";case u.Locales.RUSSIAN_RUSSIA:return"Русский (Россия)";case u.Locales.SANSKRIT_INDIA:return"संस्कृतम् (भारत)";case u.Locales.SAMI_NORTHERN_FINLAND:return"Davvisámegiella (Suomi)";case u.Locales.SAMI_NORTHERN_NORWAY:return"Davvisámegiella (Norge)";case u.Locales.SAMI_NORTHERN_SWEDEN:return"Davvisámegiella (Sverige)";case u.Locales.SLOVAK_SLOVAKIA:return"Slovenčina (Slovensko)";case u.Locales.SLOVENIAN_SLOVENIA:return"Slovenščina (Slovenija)";case u.Locales.ALBANIAN_ALBANIA:return"Shqip (Shqipëria)";case u.Locales.SERBIAN_LATIN_BOSNIA_AND_HERZEGOVINA:return"Srpski (Bosna i Hercegovina)";case u.Locales.SERBIAN_LATIN_SERBIA_AND_MONTENEGRO:return"Srpski (Srbija i Crna Gora)";case u.Locales.SWAHILI_KENYA:return"Kiswahili (Kenya)";case u.Locales.SYRIAC_SYRIA:return"ܣܘܪܝܝܐ (ܣܘܪܝܐ)";case u.Locales.TAMIL_INDIA:return"தமிழ் (இந்தியா)";case u.Locales.TELUGU_INDIA:return"తెలుగు (భారతదేశం)";case u.Locales.THAI_THAILAND:return"ไทย (ประเทศไทย)";case u.Locales.TAGALOG_PHILIPPINES:return"Tagalog (Pilipinas)";case u.Locales.TSWANA_SOUTH_AFRICA:return"Setswana (Aforika Borwa)";case u.Locales.TURKISH_TURKEY:return"Türkçe (Türkiye)";case u.Locales.TATAR_RUSSIA:return"Татар (Россия)";case u.Locales.TSOGA:return"Xitsonga";case u.Locales.UKRAINIAN_UKRAINE:return"Українська (Україна)";case u.Locales.URDU_ISLAMIC_REPUBLIC_OF_PAKISTAN:return"اردو (پاکستان)";case u.Locales.UZBEK_LATIN_UZBEKISTAN:return"O‘zbekcha (O‘zbekiston)";case u.Locales.VIETNAMESE_VIET_NAM:return"Tiếng Việt (Việt Nam)";case u.Locales.XHOSA_SOUTH_AFRICA:return"isiXhosa (South Africa)";case u.Locales.CHINESE_HONG_KONG:return"中文 (香港)";case u.Locales.CHINESE_MACAU:return"中文 (澳門)";case u.Locales.CHINESE_SINGAPORE:return"中文 (新加坡)";case u.Locales.ZULU_SOUTH_AFRICA:return"isiZulu (South Africa)";default:return"Locale not found"}},i=a.pt.div({position:"relative",width:"100%",padding:"0.125rem"}),I=a.pt.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)"}}),N=({children:r,...A})=>e.jsxRuntimeExports.jsx(i,{children:e.jsxRuntimeExports.jsx(I,{"data-mode":"system",...A,children:r})}),S=a.pt.div({borderRadius:"0.25rem",borderWidth:"1px","--tw-border-opacity":"1",borderColor:"rgba(18, 18, 18, var(--tw-border-opacity))","--tw-text-opacity":"1",color:"rgba(18, 18, 18, var(--tw-text-opacity))",transitionProperty:"color, background-color, border-color, text-decoration-color, fill, stroke",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"150ms",'&:where([data-theme="dark"], [data-theme="dark"] *)':{"--tw-border-opacity":"1",borderColor:"rgba(255, 245, 237, var(--tw-border-opacity))","--tw-text-opacity":"1",color:"rgba(255, 245, 237, var(--tw-text-opacity))"}}),C=a.pt(t.DropDown.Trigger)({width:"100%",padding:"0px"}),R=a.pt.div({display:"flex",alignItems:"center",justifyContent:"space-between"}),_=a.pt.div({paddingLeft:"0.5rem",paddingRight:"0.5rem",paddingTop:"0.25rem",paddingBottom:"0.25rem"}),B=a.pt(L)({width:"1.25rem",alignSelf:"center"}),D=a.pt(t.DropDown)({width:"100%","> :not([hidden]) ~ :not([hidden])":{"--tw-divide-x-reverse":"0",borderRightWidth:"calc(1px * var(--tw-divide-x-reverse))",borderLeftWidth:"calc(1px * calc(1 - var(--tw-divide-x-reverse)))","--tw-divide-y-reverse":"0",borderTopWidth:"calc(1px * calc(1 - var(--tw-divide-y-reverse)))",borderBottomWidth:"calc(1px * var(--tw-divide-y-reverse))",borderStyle:"dotted","--tw-divide-opacity":"1",borderColor:"rgba(18, 18, 18, var(--tw-divide-opacity))"},'&:where([data-theme="dark"], [data-theme="dark"] *) > :not([hidden]) ~ :not([hidden])':{"--tw-divide-opacity":"1",borderColor:"rgba(255, 245, 237, var(--tw-divide-opacity))"}}),d=a.pt(l.Container)({padding:"0.25rem"}),O=({locale:r,localeList:A,availableLocales:o,setLocale:n})=>e.jsxRuntimeExports.jsx(S,{"aria-label":"Language switcher",children:e.jsxRuntimeExports.jsxs(C,{identifier:"local-switcher","aria-label":"Language selector",children:[r&&e.jsxRuntimeExports.jsxs(R,{children:[e.jsxRuntimeExports.jsx(_,{children:r?c(r):"Select a locale"}),e.jsxRuntimeExports.jsx(B,{})]}),e.jsxRuntimeExports.jsx(D,{identifier:"local-switcher",isOverable:!0,isFocusable:!0,children:e.jsxRuntimeExports.jsx(d,{separator:"y",children:A.filter(s=>s!==r).map(s=>e.jsxRuntimeExports.jsx(N,{onClick:()=>n(s),"aria-label":`Switch to ${s}`,disabled:!(o??A).includes(s),children:c(s)},s))})})]})});exports.LocaleSwitcher=O;
@@ -0,0 +1,11 @@
1
+ import { Locales } from '@intlayer/config/client';
2
+ import { FC } from 'react';
3
+
4
+ type LocaleSwitcherProps = {
5
+ locale?: Locales;
6
+ localeList: Locales[];
7
+ availableLocales?: Locales[];
8
+ setLocale: (locale: Locales) => void;
9
+ };
10
+ export declare const LocaleSwitcher: FC<LocaleSwitcherProps>;
11
+ export {};