@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.
- package/LICENSE +21 -0
- package/README.md +30 -0
- package/dist/.vite/manifest.json +953 -0
- package/dist/MarkDownRender-BeQGOIow.cjs +14 -0
- package/dist/MarkDownRender-gURA8GAt.js +315 -0
- package/dist/StringWrapper-CW70GPXq.js +28 -0
- package/dist/StringWrapper-DUDqtkwz.cjs +1 -0
- package/dist/check-BLEiR8OY.js +12 -0
- package/dist/check-rhNgx2ZQ.cjs +6 -0
- package/dist/components/Accordion/Accordion.cjs.js +8 -0
- package/dist/components/Accordion/Accordion.d.ts +10 -0
- package/dist/components/Accordion/Accordion.es.js +48 -0
- package/dist/components/Accordion/index.cjs.js +1 -0
- package/dist/components/Accordion/index.d.ts +1 -0
- package/dist/components/Accordion/index.es.js +5 -0
- package/dist/components/Avatar/index.cjs.js +6 -0
- package/dist/components/Avatar/index.d.ts +9 -0
- package/dist/components/Avatar/index.es.js +71 -0
- package/dist/components/Button/index.cjs.js +6 -0
- package/dist/components/Button/index.d.ts +22 -0
- package/dist/components/Button/index.es.js +306 -0
- package/dist/components/Container/index.cjs.js +7 -0
- package/dist/components/Container/index.d.ts +23 -0
- package/dist/components/Container/index.es.js +152 -0
- package/dist/components/ContentEditor/ContentEditor.cjs.js +5 -0
- package/dist/components/ContentEditor/ContentEditor.d.ts +8 -0
- package/dist/components/ContentEditor/ContentEditor.es.js +75 -0
- package/dist/components/ContentEditor/index.cjs.js +1 -0
- package/dist/components/ContentEditor/index.d.ts +1 -0
- package/dist/components/ContentEditor/index.es.js +5 -0
- package/dist/components/ContentSelector/ContentSelector.cjs.js +1 -0
- package/dist/components/ContentSelector/ContentSelector.d.ts +11 -0
- package/dist/components/ContentSelector/ContentSelector.es.js +14 -0
- package/dist/components/ContentSelector/index.cjs.js +1 -0
- package/dist/components/ContentSelector/index.d.ts +1 -0
- package/dist/components/ContentSelector/index.es.js +5 -0
- package/dist/components/DictionaryEditor/DictionaryEditor.cjs.js +1 -0
- package/dist/components/DictionaryEditor/DictionaryEditor.d.ts +20 -0
- package/dist/components/DictionaryEditor/DictionaryEditor.es.js +25 -0
- package/dist/components/DictionaryEditor/ItemLayout.cjs.js +1 -0
- package/dist/components/DictionaryEditor/ItemLayout.d.ts +16 -0
- package/dist/components/DictionaryEditor/ItemLayout.es.js +81 -0
- package/dist/components/DictionaryEditor/NodeWrapper/ArrayWrapper.cjs.js +1 -0
- package/dist/components/DictionaryEditor/NodeWrapper/ArrayWrapper.d.ts +9 -0
- package/dist/components/DictionaryEditor/NodeWrapper/ArrayWrapper.es.js +10 -0
- package/dist/components/DictionaryEditor/NodeWrapper/EnumerationWrapper.cjs.js +1 -0
- package/dist/components/DictionaryEditor/NodeWrapper/EnumerationWrapper.d.ts +9 -0
- package/dist/components/DictionaryEditor/NodeWrapper/EnumerationWrapper.es.js +9 -0
- package/dist/components/DictionaryEditor/NodeWrapper/NestedObjectWrapper.cjs.js +1 -0
- package/dist/components/DictionaryEditor/NodeWrapper/NestedObjectWrapper.d.ts +9 -0
- package/dist/components/DictionaryEditor/NodeWrapper/NestedObjectWrapper.es.js +9 -0
- package/dist/components/DictionaryEditor/NodeWrapper/StringWrapper.cjs.js +1 -0
- package/dist/components/DictionaryEditor/NodeWrapper/StringWrapper.d.ts +8 -0
- package/dist/components/DictionaryEditor/NodeWrapper/StringWrapper.es.js +9 -0
- package/dist/components/DictionaryEditor/NodeWrapper/TranslationWrapper.cjs.js +1 -0
- package/dist/components/DictionaryEditor/NodeWrapper/TranslationWrapper.d.ts +9 -0
- package/dist/components/DictionaryEditor/NodeWrapper/TranslationWrapper.es.js +7 -0
- package/dist/components/DictionaryEditor/NodeWrapper/index.cjs.js +1 -0
- package/dist/components/DictionaryEditor/NodeWrapper/index.d.ts +19 -0
- package/dist/components/DictionaryEditor/NodeWrapper/index.es.js +9 -0
- package/dist/components/DictionaryEditor/ValidDictionaryChangeButtons.cjs.js +1 -0
- package/dist/components/DictionaryEditor/ValidDictionaryChangeButtons.d.ts +10 -0
- package/dist/components/DictionaryEditor/ValidDictionaryChangeButtons.es.js +40 -0
- package/dist/components/DictionaryEditor/index.cjs.js +1 -0
- package/dist/components/DictionaryEditor/index.d.ts +1 -0
- package/dist/components/DictionaryEditor/index.es.js +5 -0
- package/dist/components/DropDown/index.cjs.js +5 -0
- package/dist/components/DropDown/index.d.ts +3 -0
- package/dist/components/DropDown/index.es.js +50 -0
- package/dist/components/DropDown/types.cjs.js +1 -0
- package/dist/components/DropDown/types.d.ts +15 -0
- package/dist/components/DropDown/types.es.js +1 -0
- package/dist/components/Footer/index.cjs.js +1 -0
- package/dist/components/Footer/index.d.ts +17 -0
- package/dist/components/Footer/index.es.js +64 -0
- package/dist/components/Headers/index.cjs.js +1 -0
- package/dist/components/Headers/index.d.ts +5 -0
- package/dist/components/Headers/index.es.js +35 -0
- package/dist/components/IDE/CodeRender.cjs.js +11 -0
- package/dist/components/IDE/CodeRender.d.ts +10 -0
- package/dist/components/IDE/CodeRender.es.js +833 -0
- package/dist/components/IDE/IDE.cjs.js +1 -0
- package/dist/components/IDE/IDE.d.ts +10 -0
- package/dist/components/IDE/IDE.es.js +124 -0
- package/dist/components/IDE/MarkDownRender.cjs.js +1 -0
- package/dist/components/IDE/MarkDownRender.d.ts +8 -0
- package/dist/components/IDE/MarkDownRender.es.js +7 -0
- package/dist/components/IDE/index.cjs.js +1 -0
- package/dist/components/IDE/index.d.ts +2 -0
- package/dist/components/IDE/index.es.js +7 -0
- package/dist/components/Loader/index.cjs.js +1 -0
- package/dist/components/Loader/index.d.ts +6 -0
- package/dist/components/Loader/index.es.js +21 -0
- package/dist/components/Loader/spinner.cjs.js +1 -0
- package/dist/components/Loader/spinner.d.ts +7 -0
- package/dist/components/Loader/spinner.es.js +22 -0
- package/dist/components/LocaleSwitcherDropDown/LocaleSwitcher.cjs.js +6 -0
- package/dist/components/LocaleSwitcherDropDown/LocaleSwitcher.d.ts +11 -0
- package/dist/components/LocaleSwitcherDropDown/LocaleSwitcher.es.js +571 -0
- package/dist/components/LocaleSwitcherDropDown/index.cjs.js +1 -0
- package/dist/components/LocaleSwitcherDropDown/index.d.ts +1 -0
- package/dist/components/LocaleSwitcherDropDown/index.es.js +5 -0
- package/dist/components/Logo/LogoCircle.cjs.js +1 -0
- package/dist/components/Logo/LogoCircle.d.ts +4 -0
- package/dist/components/Logo/LogoCircle.es.js +12 -0
- package/dist/components/Logo/LogoNoFrame.cjs.js +1 -0
- package/dist/components/Logo/LogoNoFrame.d.ts +4 -0
- package/dist/components/Logo/LogoNoFrame.es.js +28 -0
- package/dist/components/Logo/LogoSquare.cjs.js +1 -0
- package/dist/components/Logo/LogoSquare.d.ts +4 -0
- package/dist/components/Logo/LogoSquare.es.js +12 -0
- package/dist/components/Logo/LogoSquircle.cjs.js +1 -0
- package/dist/components/Logo/LogoSquircle.d.ts +4 -0
- package/dist/components/Logo/LogoSquircle.es.js +17 -0
- package/dist/components/Logo/LogoTextOnly.cjs.js +1 -0
- package/dist/components/Logo/LogoTextOnly.d.ts +4 -0
- package/dist/components/Logo/LogoTextOnly.es.js +28 -0
- package/dist/components/Logo/LogoWithTextBelowCircle.cjs.js +1 -0
- package/dist/components/Logo/LogoWithTextBelowCircle.d.ts +4 -0
- package/dist/components/Logo/LogoWithTextBelowCircle.es.js +30 -0
- package/dist/components/Logo/LogoWithTextBelowNoFrame.cjs.js +1 -0
- package/dist/components/Logo/LogoWithTextBelowNoFrame.d.ts +4 -0
- package/dist/components/Logo/LogoWithTextBelowNoFrame.es.js +28 -0
- package/dist/components/Logo/LogoWithTextBelowSquircle.cjs.js +1 -0
- package/dist/components/Logo/LogoWithTextBelowSquircle.d.ts +4 -0
- package/dist/components/Logo/LogoWithTextBelowSquircle.es.js +17 -0
- package/dist/components/Logo/LogoWithTextCircle.cjs.js +1 -0
- package/dist/components/Logo/LogoWithTextCircle.d.ts +4 -0
- package/dist/components/Logo/LogoWithTextCircle.es.js +51 -0
- package/dist/components/Logo/LogoWithTextNoFrame.cjs.js +1 -0
- package/dist/components/Logo/LogoWithTextNoFrame.d.ts +4 -0
- package/dist/components/Logo/LogoWithTextNoFrame.es.js +28 -0
- package/dist/components/Logo/LogoWithTextSquircle.cjs.js +1 -0
- package/dist/components/Logo/LogoWithTextSquircle.d.ts +4 -0
- package/dist/components/Logo/LogoWithTextSquircle.es.js +17 -0
- package/dist/components/Logo/index.cjs.js +1 -0
- package/dist/components/Logo/index.d.ts +20 -0
- package/dist/components/Logo/index.es.js +65 -0
- package/dist/components/MarkDownRender/index.cjs.js +1 -0
- package/dist/components/MarkDownRender/index.d.ts +8 -0
- package/dist/components/MarkDownRender/index.es.js +84 -0
- package/dist/components/MaxHeightSmoother/index.cjs.js +6 -0
- package/dist/components/MaxHeightSmoother/index.d.ts +11 -0
- package/dist/components/MaxHeightSmoother/index.es.js +52 -0
- package/dist/components/MaxWidthSmoother/index.cjs.js +6 -0
- package/dist/components/MaxWidthSmoother/index.d.ts +11 -0
- package/dist/components/MaxWidthSmoother/index.es.js +39 -0
- package/dist/components/Modal/index.cjs.js +1 -0
- package/dist/components/Modal/index.d.ts +9 -0
- package/dist/components/Modal/index.es.js +64 -0
- package/dist/components/Navbar/Burger.cjs.js +1 -0
- package/dist/components/Navbar/Burger.d.ts +7 -0
- package/dist/components/Navbar/Burger.es.js +84 -0
- package/dist/components/Navbar/DesktopNavbar.cjs.js +7 -0
- package/dist/components/Navbar/DesktopNavbar.d.ts +10 -0
- package/dist/components/Navbar/DesktopNavbar.es.js +76 -0
- package/dist/components/Navbar/MobileNavbar.cjs.js +9 -0
- package/dist/components/Navbar/MobileNavbar.d.ts +12 -0
- package/dist/components/Navbar/MobileNavbar.es.js +199 -0
- package/dist/components/Navbar/index.cjs.js +1 -0
- package/dist/components/Navbar/index.d.ts +20 -0
- package/dist/components/Navbar/index.es.js +25 -0
- package/dist/components/Navbar/useNavigation.cjs.js +1 -0
- package/dist/components/Navbar/useNavigation.d.ts +5 -0
- package/dist/components/Navbar/useNavigation.es.js +39 -0
- package/dist/components/Popover/index.cjs.js +1 -0
- package/dist/components/Popover/index.d.ts +8 -0
- package/dist/components/Popover/index.es.js +48 -0
- package/dist/components/PressableDiv/PressableDiv.cjs.js +1 -0
- package/dist/components/PressableDiv/PressableDiv.d.ts +10 -0
- package/dist/components/PressableDiv/PressableDiv.es.js +62 -0
- package/dist/components/PressableDiv/index.cjs.js +1 -0
- package/dist/components/PressableDiv/index.d.ts +1 -0
- package/dist/components/PressableDiv/index.es.js +5 -0
- package/dist/components/ProfileDropDown/index.cjs.js +6 -0
- package/dist/components/ProfileDropDown/index.d.ts +6 -0
- package/dist/components/ProfileDropDown/index.es.js +37 -0
- package/dist/components/RedirectionButton/RedirectionButton.cjs.js +6 -0
- package/dist/components/RedirectionButton/RedirectionButton.d.ts +8 -0
- package/dist/components/RedirectionButton/RedirectionButton.es.js +42 -0
- package/dist/components/RedirectionButton/index.cjs.js +1 -0
- package/dist/components/RedirectionButton/index.d.ts +1 -0
- package/dist/components/RedirectionButton/index.es.js +5 -0
- package/dist/components/RightDrawer/RightDrawer.cjs.js +8 -0
- package/dist/components/RightDrawer/RightDrawer.d.ts +16 -0
- package/dist/components/RightDrawer/RightDrawer.es.js +118 -0
- package/dist/components/RightDrawer/index.cjs.js +1 -0
- package/dist/components/RightDrawer/index.d.ts +2 -0
- package/dist/components/RightDrawer/index.es.js +8 -0
- package/dist/components/RightDrawer/useRightDrawerStore.cjs.js +1 -0
- package/dist/components/RightDrawer/useRightDrawerStore.d.ts +8 -0
- package/dist/components/RightDrawer/useRightDrawerStore.es.js +15 -0
- package/dist/components/ThemeSwitcherDropDown/DesktopThemeSwitcher.cjs.js +1 -0
- package/dist/components/ThemeSwitcherDropDown/DesktopThemeSwitcher.d.ts +10 -0
- package/dist/components/ThemeSwitcherDropDown/DesktopThemeSwitcher.es.js +69 -0
- package/dist/components/ThemeSwitcherDropDown/MobileThemeSwitcher.cjs.js +1 -0
- package/dist/components/ThemeSwitcherDropDown/MobileThemeSwitcher.d.ts +10 -0
- package/dist/components/ThemeSwitcherDropDown/MobileThemeSwitcher.es.js +65 -0
- package/dist/components/ThemeSwitcherDropDown/index.cjs.js +1 -0
- package/dist/components/ThemeSwitcherDropDown/index.d.ts +3 -0
- package/dist/components/ThemeSwitcherDropDown/index.es.js +9 -0
- package/dist/components/ThemeSwitcherDropDown/types.cjs.js +1 -0
- package/dist/components/ThemeSwitcherDropDown/types.d.ts +5 -0
- package/dist/components/ThemeSwitcherDropDown/types.es.js +5 -0
- package/dist/components/index.cjs.js +1 -0
- package/dist/components/index.d.ts +22 -0
- package/dist/components/index.es.js +61 -0
- package/dist/createLucideIcon-DlZEiEGq.js +80 -0
- package/dist/createLucideIcon-ZOnO-fn6.cjs +21 -0
- package/dist/hooks/index.cjs.js +1 -0
- package/dist/hooks/index.d.ts +5 -0
- package/dist/hooks/index.es.js +13 -0
- package/dist/hooks/useDevice.cjs.js +1 -0
- package/dist/hooks/useDevice.d.ts +8 -0
- package/dist/hooks/useDevice.es.js +48 -0
- package/dist/hooks/useGetElementOrWindow.cjs.js +1 -0
- package/dist/hooks/useGetElementOrWindow.d.ts +1 -0
- package/dist/hooks/useGetElementOrWindow.es.js +11 -0
- package/dist/hooks/useIsMounted.cjs.js +1 -0
- package/dist/hooks/useIsMounted.d.ts +1 -0
- package/dist/hooks/useIsMounted.es.js +11 -0
- package/dist/hooks/useScrollBlockage/index.cjs.js +1 -0
- package/dist/hooks/useScrollBlockage/index.d.ts +14 -0
- package/dist/hooks/useScrollBlockage/index.es.js +24 -0
- package/dist/hooks/useScrollBlockage/useScrollBlockageStore.cjs.js +1 -0
- package/dist/hooks/useScrollBlockage/useScrollBlockageStore.d.ts +12 -0
- package/dist/hooks/useScrollBlockage/useScrollBlockageStore.es.js +40 -0
- package/dist/hooks/useScrollDetection.cjs.js +1 -0
- package/dist/hooks/useScrollDetection.d.ts +13 -0
- package/dist/hooks/useScrollDetection.es.js +41 -0
- package/dist/index-B2ncVbtX.cjs +1 -0
- package/dist/index-D-PWvdb-.js +91 -0
- package/dist/intlayer-editor/src/client/renderContentEditor.d.ts +14 -0
- package/dist/jsx-runtime-D6agescH.cjs +30 -0
- package/dist/jsx-runtime-Tw_Kw2GZ.js +638 -0
- package/dist/localeList-CaRF-907.js +300 -0
- package/dist/localeList-DlUgKn8J.cjs +1 -0
- package/dist/motion-BuKul-u9.cjs +1 -0
- package/dist/motion-CP5YERk7.js +4517 -0
- package/dist/styled-components.browser.esm-D6kkzXl4.js +1085 -0
- package/dist/styled-components.browser.esm-GqWwDlfY.cjs +58 -0
- package/dist/sun-BQYZHcpc.cjs +16 -0
- package/dist/sun-BrKC5Qwg.js +49 -0
- package/dist/utils/capitalize.cjs.js +1 -0
- package/dist/utils/capitalize.d.ts +1 -0
- package/dist/utils/capitalize.es.js +5 -0
- package/dist/utils/cn.cjs.js +1 -0
- package/dist/utils/cn.d.ts +3 -0
- package/dist/utils/cn.es.js +2338 -0
- package/dist/x-BKwnSvvj.js +15 -0
- package/dist/x-DIXoN4xe.cjs +6 -0
- 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,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,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,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 @@
|
|
|
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
|
+
};
|