@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 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../jsx-runtime-D6agescH.cjs"),c=require("../../styled-components.browser.esm-GqWwDlfY.cjs"),d=require("../../index-B2ncVbtX.cjs"),u=require("./ValidDictionaryChangeButtons.cjs.js"),p=c.pt.div({display:"flex",height:"100%",flexDirection:"column",justifyContent:"space-between",gap:"0.5rem"}),l=({dictionary:i,onContentChange:o,focusedKeyPath:r,onCancelEdition:s,onValidEdition:a,...t})=>e.jsxRuntimeExports.jsxs(p,{children:[e.jsxRuntimeExports.jsx("div",{children:e.jsxRuntimeExports.jsx(d.NodeWrapper,{...t,keyPath:[],focusedKeyPath:r,section:i,onContentChange:n=>o(n.keyPath,n.newValue)})}),e.jsxRuntimeExports.jsx(u.ValidDictionaryChangeButtons,{onCancelEdition:s,onValidEdition:a,editedContent:t.editedContent})]});exports.DictionaryEditor=l;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Locales } from '@intlayer/config/client';
|
|
2
|
+
import { Dictionary, KeyPath } from '@intlayer/core';
|
|
3
|
+
import { FC } from 'react';
|
|
4
|
+
|
|
5
|
+
export type FileContent = {
|
|
6
|
+
keyPath: KeyPath[];
|
|
7
|
+
newValue: string;
|
|
8
|
+
};
|
|
9
|
+
interface DictionaryEditorProps {
|
|
10
|
+
dictionary: Dictionary;
|
|
11
|
+
onContentChange: (keyPath: KeyPath[], newValue: string) => void;
|
|
12
|
+
onValidEdition: () => void;
|
|
13
|
+
onCancelEdition: () => void;
|
|
14
|
+
locale: Locales;
|
|
15
|
+
editedContent?: FileContent[];
|
|
16
|
+
focusedKeyPath?: KeyPath[];
|
|
17
|
+
onFocusKeyPath: (keyPath: KeyPath[]) => void;
|
|
18
|
+
}
|
|
19
|
+
export declare const DictionaryEditor: FC<DictionaryEditorProps>;
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { j as e } from "../../jsx-runtime-Tw_Kw2GZ.js";
|
|
3
|
+
import { p as d } from "../../styled-components.browser.esm-D6kkzXl4.js";
|
|
4
|
+
import { N as m } from "../../index-D-PWvdb-.js";
|
|
5
|
+
import { ValidDictionaryChangeButtons as p } from "./ValidDictionaryChangeButtons.es.js";
|
|
6
|
+
const c = d.div({
|
|
7
|
+
display: "flex",
|
|
8
|
+
height: "100%",
|
|
9
|
+
flexDirection: "column",
|
|
10
|
+
justifyContent: "space-between",
|
|
11
|
+
gap: "0.5rem"
|
|
12
|
+
}), j = ({
|
|
13
|
+
dictionary: n,
|
|
14
|
+
onContentChange: o,
|
|
15
|
+
focusedKeyPath: r,
|
|
16
|
+
onCancelEdition: s,
|
|
17
|
+
onValidEdition: a,
|
|
18
|
+
...t
|
|
19
|
+
}) => /* @__PURE__ */ e.jsxs(c, { children: [
|
|
20
|
+
/* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsx(m, { ...t, keyPath: [], focusedKeyPath: r, section: n, onContentChange: (i) => o(i.keyPath, i.newValue) }) }),
|
|
21
|
+
/* @__PURE__ */ e.jsx(p, { onCancelEdition: s, onValidEdition: a, editedContent: t.editedContent })
|
|
22
|
+
] });
|
|
23
|
+
export {
|
|
24
|
+
j as DictionaryEditor
|
|
25
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../../jsx-runtime-D6agescH.cjs"),o=require("../../styled-components.browser.esm-GqWwDlfY.cjs"),m=require("../Accordion/Accordion.cjs.js"),a=o.pt.div(({$level:e,$isSelected:t})=>[{borderRadius:"0.375rem",padding:"0.5rem",transitionProperty:"color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"150ms"},{"&:hover":{backgroundColor:"rgba(231, 231, 231, 0.3)"},'&:where([data-theme="dark"], [data-theme="dark"] *):hover':{backgroundColor:"rgba(69, 69, 69, 0.3)"},"&:has(.section:hover)":{backgroundColor:"transparent"}},e===2&&{"&:hover":{backgroundColor:"rgba(231, 231, 231, 0.3)"},'&:where([data-theme="dark"], [data-theme="dark"] *):hover':{backgroundColor:"rgba(69, 69, 69, 0.3)"}},e>=3&&{},t===!0&&{backgroundColor:"rgba(231, 231, 231, 0.4)",'&:where([data-theme="dark"], [data-theme="dark"] *)':{backgroundColor:"rgba(69, 69, 69, 0.4)"}}]),u=o.pt.p({paddingLeft:"0.75rem",fontSize:"0.875rem",lineHeight:"1.25rem","--tw-text-opacity":"1",color:"rgba(231, 231, 231, var(--tw-text-opacity))"}),h=o.pt.span(({$level:e})=>[{},e===0&&{fontSize:"1.5rem",lineHeight:"2rem"},e===1&&{fontSize:"1.25rem",lineHeight:"1.75rem"},e===2&&{fontSize:"1.125rem",lineHeight:"1.75rem"},e>=3&&{fontSize:"1rem",lineHeight:"1.5rem"}]),l=o.pt.div({display:"flex",width:"100%",alignItems:"center",justifyContent:"space-between",padding:"0.75rem","@media (min-width: 640px)":{width:"auto"}}),p=({level:e,title:t,description:d,children:s,rightParam:n,isSelected:i,...c})=>r.jsxRuntimeExports.jsx(a,{$level:e,$isSelected:i,...c,children:r.jsxRuntimeExports.jsx(m.Accordion,{isOpen:i,identifier:`accordion_${t}`,header:r.jsxRuntimeExports.jsxs("div",{children:[r.jsxRuntimeExports.jsx(h,{$level:e,children:t}),r.jsxRuntimeExports.jsx(u,{children:d}),n&&r.jsxRuntimeExports.jsx(l,{children:n})]}),children:s})});exports.ItemLayout=p;exports.StyledContainer=a;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ReactNode, FC, HTMLAttributes } from 'react';
|
|
2
|
+
|
|
3
|
+
interface ItemWrapperProps extends HTMLAttributes<HTMLDivElement> {
|
|
4
|
+
level: number;
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
title: string;
|
|
7
|
+
description: string;
|
|
8
|
+
rightParam?: ReactNode;
|
|
9
|
+
isSelected: boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare const StyledContainer: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
12
|
+
$level: number;
|
|
13
|
+
$isSelected?: boolean;
|
|
14
|
+
}>> & string;
|
|
15
|
+
export declare const ItemLayout: FC<ItemWrapperProps>;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,81 @@
|
|
|
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 { Accordion as s } from "../Accordion/Accordion.es.js";
|
|
5
|
+
const m = t.div(({
|
|
6
|
+
$level: r,
|
|
7
|
+
$isSelected: o
|
|
8
|
+
}) => [{
|
|
9
|
+
borderRadius: "0.375rem",
|
|
10
|
+
padding: "0.5rem",
|
|
11
|
+
transitionProperty: "color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter",
|
|
12
|
+
transitionTimingFunction: "cubic-bezier(0.4, 0, 0.2, 1)",
|
|
13
|
+
transitionDuration: "150ms"
|
|
14
|
+
}, {
|
|
15
|
+
"&:hover": {
|
|
16
|
+
backgroundColor: "rgba(231, 231, 231, 0.3)"
|
|
17
|
+
},
|
|
18
|
+
'&:where([data-theme="dark"], [data-theme="dark"] *):hover': {
|
|
19
|
+
backgroundColor: "rgba(69, 69, 69, 0.3)"
|
|
20
|
+
},
|
|
21
|
+
"&:has(.section:hover)": {
|
|
22
|
+
backgroundColor: "transparent"
|
|
23
|
+
}
|
|
24
|
+
}, r === 2 && {
|
|
25
|
+
"&:hover": {
|
|
26
|
+
backgroundColor: "rgba(231, 231, 231, 0.3)"
|
|
27
|
+
},
|
|
28
|
+
'&:where([data-theme="dark"], [data-theme="dark"] *):hover': {
|
|
29
|
+
backgroundColor: "rgba(69, 69, 69, 0.3)"
|
|
30
|
+
}
|
|
31
|
+
}, r >= 3 && {}, o === !0 && {
|
|
32
|
+
backgroundColor: "rgba(231, 231, 231, 0.4)",
|
|
33
|
+
'&:where([data-theme="dark"], [data-theme="dark"] *)': {
|
|
34
|
+
backgroundColor: "rgba(69, 69, 69, 0.4)"
|
|
35
|
+
}
|
|
36
|
+
}]), h = t.p({
|
|
37
|
+
paddingLeft: "0.75rem",
|
|
38
|
+
fontSize: "0.875rem",
|
|
39
|
+
lineHeight: "1.25rem",
|
|
40
|
+
"--tw-text-opacity": "1",
|
|
41
|
+
color: "rgba(231, 231, 231, var(--tw-text-opacity))"
|
|
42
|
+
}), g = t.span(({
|
|
43
|
+
$level: r
|
|
44
|
+
}) => [{}, r === 0 && {
|
|
45
|
+
fontSize: "1.5rem",
|
|
46
|
+
lineHeight: "2rem"
|
|
47
|
+
}, r === 1 && {
|
|
48
|
+
fontSize: "1.25rem",
|
|
49
|
+
lineHeight: "1.75rem"
|
|
50
|
+
}, r === 2 && {
|
|
51
|
+
fontSize: "1.125rem",
|
|
52
|
+
lineHeight: "1.75rem"
|
|
53
|
+
}, r >= 3 && {
|
|
54
|
+
fontSize: "1rem",
|
|
55
|
+
lineHeight: "1.5rem"
|
|
56
|
+
}]), l = t.div({
|
|
57
|
+
display: "flex",
|
|
58
|
+
width: "100%",
|
|
59
|
+
alignItems: "center",
|
|
60
|
+
justifyContent: "space-between",
|
|
61
|
+
padding: "0.75rem",
|
|
62
|
+
"@media (min-width: 640px)": {
|
|
63
|
+
width: "auto"
|
|
64
|
+
}
|
|
65
|
+
}), f = ({
|
|
66
|
+
level: r,
|
|
67
|
+
title: o,
|
|
68
|
+
description: n,
|
|
69
|
+
children: d,
|
|
70
|
+
rightParam: i,
|
|
71
|
+
isSelected: a,
|
|
72
|
+
...c
|
|
73
|
+
}) => /* @__PURE__ */ e.jsx(m, { $level: r, $isSelected: a, ...c, children: /* @__PURE__ */ e.jsx(s, { isOpen: a, identifier: `accordion_${o}`, header: /* @__PURE__ */ e.jsxs("div", { children: [
|
|
74
|
+
/* @__PURE__ */ e.jsx(g, { $level: r, children: o }),
|
|
75
|
+
/* @__PURE__ */ e.jsx(h, { children: n }),
|
|
76
|
+
i && /* @__PURE__ */ e.jsx(l, { children: i })
|
|
77
|
+
] }), children: d }) });
|
|
78
|
+
export {
|
|
79
|
+
f as ItemLayout,
|
|
80
|
+
m as StyledContainer
|
|
81
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../../../jsx-runtime-D6agescH.cjs");require("react");require("../../../localeList-DlUgKn8J.cjs");require("../../../StringWrapper-DUDqtkwz.cjs");require("../ItemLayout.cjs.js");const r=require("../../../index-B2ncVbtX.cjs");exports.ArrayWrapper=r.ArrayWrapper;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { DictionaryValue } from '@intlayer/core';
|
|
2
|
+
import { FC } from 'react';
|
|
3
|
+
import { NodeWrapperProps } from './index';
|
|
4
|
+
|
|
5
|
+
interface ArrayWrapperProps extends Omit<NodeWrapperProps, 'section'> {
|
|
6
|
+
section: DictionaryValue[];
|
|
7
|
+
}
|
|
8
|
+
export declare const ArrayWrapper: FC<ArrayWrapperProps>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import "../../../jsx-runtime-Tw_Kw2GZ.js";
|
|
3
|
+
import "react";
|
|
4
|
+
import "../../../localeList-CaRF-907.js";
|
|
5
|
+
import "../../../StringWrapper-CW70GPXq.js";
|
|
6
|
+
import "../ItemLayout.es.js";
|
|
7
|
+
import { A as a } from "../../../index-D-PWvdb-.js";
|
|
8
|
+
export {
|
|
9
|
+
a as ArrayWrapper
|
|
10
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../../../jsx-runtime-D6agescH.cjs");require("react");require("../../../styled-components.browser.esm-GqWwDlfY.cjs");const r=require("../../../index-B2ncVbtX.cjs");require("../../../localeList-DlUgKn8J.cjs");exports.EnumerationWrapper=r.EnumerationWrapper;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { EnumerationContent, DictionaryValue } from '@intlayer/core';
|
|
2
|
+
import { FC } from 'react';
|
|
3
|
+
import { NodeWrapperProps } from './index';
|
|
4
|
+
|
|
5
|
+
interface EnumerationWrapperProps extends Omit<NodeWrapperProps, 'section'> {
|
|
6
|
+
section: EnumerationContent<DictionaryValue>;
|
|
7
|
+
}
|
|
8
|
+
export declare const EnumerationWrapper: FC<EnumerationWrapperProps>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import "../../../jsx-runtime-Tw_Kw2GZ.js";
|
|
3
|
+
import "react";
|
|
4
|
+
import "../../../styled-components.browser.esm-D6kkzXl4.js";
|
|
5
|
+
import { E as e } from "../../../index-D-PWvdb-.js";
|
|
6
|
+
import "../../../localeList-CaRF-907.js";
|
|
7
|
+
export {
|
|
8
|
+
e as EnumerationWrapper
|
|
9
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../../../jsx-runtime-D6agescH.cjs");require("../../../localeList-DlUgKn8J.cjs");require("../../../StringWrapper-DUDqtkwz.cjs");require("../ItemLayout.cjs.js");const e=require("../../../index-B2ncVbtX.cjs");exports.NestedObjectWrapper=e.NestedObjectWrapper;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { DictionaryValue } from '@intlayer/core';
|
|
2
|
+
import { FC } from 'react';
|
|
3
|
+
import { NodeWrapperProps } from './index';
|
|
4
|
+
|
|
5
|
+
interface NestedObjectWrapperProps extends Omit<NodeWrapperProps, 'section'> {
|
|
6
|
+
section: Record<string, DictionaryValue>;
|
|
7
|
+
}
|
|
8
|
+
export declare const NestedObjectWrapper: FC<NestedObjectWrapperProps>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import "../../../jsx-runtime-Tw_Kw2GZ.js";
|
|
3
|
+
import "../../../localeList-CaRF-907.js";
|
|
4
|
+
import "../../../StringWrapper-CW70GPXq.js";
|
|
5
|
+
import "../ItemLayout.es.js";
|
|
6
|
+
import { a as m } from "../../../index-D-PWvdb-.js";
|
|
7
|
+
export {
|
|
8
|
+
m as NestedObjectWrapper
|
|
9
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../../../jsx-runtime-D6agescH.cjs");require("../../../localeList-DlUgKn8J.cjs");const r=require("../../../StringWrapper-DUDqtkwz.cjs");require("../../ContentEditor/ContentEditor.cjs.js");require("../ItemLayout.cjs.js");exports.StringWrapper=r.StringWrapper;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import "../../../jsx-runtime-Tw_Kw2GZ.js";
|
|
3
|
+
import "../../../localeList-CaRF-907.js";
|
|
4
|
+
import { S as e } from "../../../StringWrapper-CW70GPXq.js";
|
|
5
|
+
import "../../ContentEditor/ContentEditor.es.js";
|
|
6
|
+
import "../ItemLayout.es.js";
|
|
7
|
+
export {
|
|
8
|
+
e as StringWrapper
|
|
9
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../../../jsx-runtime-D6agescH.cjs");const r=require("../../../index-B2ncVbtX.cjs");require("../../../localeList-DlUgKn8J.cjs");exports.TranslationWrapper=r.TranslationWrapper;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { TranslationContent, DictionaryValue } from '@intlayer/core';
|
|
2
|
+
import { FC } from 'react';
|
|
3
|
+
import { NodeWrapperProps } from './index';
|
|
4
|
+
|
|
5
|
+
interface TranslationWrapperProps extends Omit<NodeWrapperProps, 'section'> {
|
|
6
|
+
section: TranslationContent<DictionaryValue>;
|
|
7
|
+
}
|
|
8
|
+
export declare const TranslationWrapper: FC<TranslationWrapperProps>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../../../jsx-runtime-D6agescH.cjs");const e=require("../../../index-B2ncVbtX.cjs");require("../../../localeList-DlUgKn8J.cjs");require("../../../StringWrapper-DUDqtkwz.cjs");exports.NodeWrapper=e.NodeWrapper;exports.traceKeys=e.traceKeys;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Locales } from '@intlayer/config/client';
|
|
2
|
+
import { KeyPath, DictionaryValue } from '@intlayer/core';
|
|
3
|
+
import { FC } from 'react';
|
|
4
|
+
import { FileContent } from '../';
|
|
5
|
+
|
|
6
|
+
export declare const traceKeys: string[];
|
|
7
|
+
export interface NodeWrapperProps {
|
|
8
|
+
keyPath: KeyPath[];
|
|
9
|
+
section: DictionaryValue;
|
|
10
|
+
onContentChange: (content: {
|
|
11
|
+
keyPath: KeyPath[];
|
|
12
|
+
newValue: string;
|
|
13
|
+
}) => void;
|
|
14
|
+
locale: Locales;
|
|
15
|
+
editedContent?: FileContent[];
|
|
16
|
+
focusedKeyPath: KeyPath[] | undefined;
|
|
17
|
+
onFocusKeyPath: (keyPath: KeyPath[]) => void;
|
|
18
|
+
}
|
|
19
|
+
export declare const NodeWrapper: FC<NodeWrapperProps>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import "../../../jsx-runtime-Tw_Kw2GZ.js";
|
|
3
|
+
import { N as a, t as i } from "../../../index-D-PWvdb-.js";
|
|
4
|
+
import "../../../localeList-CaRF-907.js";
|
|
5
|
+
import "../../../StringWrapper-CW70GPXq.js";
|
|
6
|
+
export {
|
|
7
|
+
a as NodeWrapper,
|
|
8
|
+
i as traceKeys
|
|
9
|
+
};
|
|
@@ -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"),o=require("../../check-rhNgx2ZQ.cjs"),i=require("../../x-DIXoN4xe.cjs"),c=e.pt.div({display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"flex-end",gap:"0.5rem"}),l=e.pt(o.Check)({cursor:"pointer","&:hover":{"--tw-scale-x":"1.1","--tw-scale-y":"1.1",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))"}}),x=e.pt(i.X)({cursor:"pointer","&:hover":{"--tw-scale-x":"1.1","--tw-scale-y":"1.1",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))"}}),w=({onCancelEdition:s,onValidEdition:r,...a})=>{const n=(a.editedContent??[]).length>0;return t.jsxRuntimeExports.jsx(t.jsxRuntimeExports.Fragment,{children:n&&t.jsxRuntimeExports.jsxs(c,{children:[t.jsxRuntimeExports.jsx("span",{children:"Valid dictionary changes"}),t.jsxRuntimeExports.jsx(l,{size:16,onClick:r}),t.jsxRuntimeExports.jsx(x,{size:16,onClick:s})]})})};exports.ValidDictionaryChangeButtons=w;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { FileContent } from '.';
|
|
3
|
+
|
|
4
|
+
interface ValidDictionaryChangeButtonsProps {
|
|
5
|
+
onValidEdition: () => void;
|
|
6
|
+
onCancelEdition: () => void;
|
|
7
|
+
editedContent?: FileContent[];
|
|
8
|
+
}
|
|
9
|
+
export declare const ValidDictionaryChangeButtons: FC<ValidDictionaryChangeButtonsProps>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { j as t } from "../../jsx-runtime-Tw_Kw2GZ.js";
|
|
3
|
+
import { p as e } from "../../styled-components.browser.esm-D6kkzXl4.js";
|
|
4
|
+
import { C as o } from "../../check-BLEiR8OY.js";
|
|
5
|
+
import { X as l } from "../../x-BKwnSvvj.js";
|
|
6
|
+
const c = e.div({
|
|
7
|
+
display: "flex",
|
|
8
|
+
flexDirection: "row",
|
|
9
|
+
alignItems: "center",
|
|
10
|
+
justifyContent: "flex-end",
|
|
11
|
+
gap: "0.5rem"
|
|
12
|
+
}), i = e(o)({
|
|
13
|
+
cursor: "pointer",
|
|
14
|
+
"&:hover": {
|
|
15
|
+
"--tw-scale-x": "1.1",
|
|
16
|
+
"--tw-scale-y": "1.1",
|
|
17
|
+
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))"
|
|
18
|
+
}
|
|
19
|
+
}), w = e(l)({
|
|
20
|
+
cursor: "pointer",
|
|
21
|
+
"&:hover": {
|
|
22
|
+
"--tw-scale-x": "1.1",
|
|
23
|
+
"--tw-scale-y": "1.1",
|
|
24
|
+
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))"
|
|
25
|
+
}
|
|
26
|
+
}), m = ({
|
|
27
|
+
onCancelEdition: a,
|
|
28
|
+
onValidEdition: r,
|
|
29
|
+
...s
|
|
30
|
+
}) => {
|
|
31
|
+
const n = (s.editedContent ?? []).length > 0;
|
|
32
|
+
return /* @__PURE__ */ t.jsx(t.Fragment, { children: n && /* @__PURE__ */ t.jsxs(c, { children: [
|
|
33
|
+
/* @__PURE__ */ t.jsx("span", { children: "Valid dictionary changes" }),
|
|
34
|
+
/* @__PURE__ */ t.jsx(i, { size: 16, onClick: r }),
|
|
35
|
+
/* @__PURE__ */ t.jsx(w, { size: 16, onClick: a })
|
|
36
|
+
] }) });
|
|
37
|
+
};
|
|
38
|
+
export {
|
|
39
|
+
m as ValidDictionaryChangeButtons
|
|
40
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./DictionaryEditor.cjs.js");exports.DictionaryEditor=i.DictionaryEditor;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './DictionaryEditor';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("../../jsx-runtime-D6agescH.cjs"),s=require("../../styled-components.browser.esm-GqWwDlfY.cjs"),p=require("../MaxHeightSmoother/index.cjs.js"),u=s.pt.button({position:"relative",cursor:"pointer"}),w=({children:e,className:t,identifier:o,...r})=>a.jsxRuntimeExports.jsx(u,{className:`group ${t}`,"aria-label":`Open panel ${o}`,id:`unrollable-panel-button-${o}`,"aria-haspopup":!0,...r,children:e}),c=s.pt.div({position:"absolute",right:"0px",minWidth:"100%","--tw-translate-y":"0.5rem",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))"}),x=s.pt(p.MaxHeightSmoother)`
|
|
2
|
+
${{overflowX:"hidden"}}
|
|
3
|
+
${({$isOverable:e})=>e?{".group:hover &":{gridTemplateRows:"1fr",overflowX:"auto"}}:""}
|
|
4
|
+
${({$isFocusable:e})=>e?{".group:focus &":{gridTemplateRows:"1fr",overflowX:"auto"}}:""}
|
|
5
|
+
`,l=({children:e,isHidden:t=void 0,isOverable:o=!1,isFocusable:r=!1,identifier:n,...i})=>a.jsxRuntimeExports.jsx(c,{"aria-hidden":t,"aria-labelledby":`unrollable-panel-button-${n}`,id:`unrollable-panel-${n}`,children:a.jsxRuntimeExports.jsx(x,{$isOverable:o,$isFocusable:r,isHidden:t,...i,children:e})});l.Trigger=w;exports.DropDown=l;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { j as a } from "../../jsx-runtime-Tw_Kw2GZ.js";
|
|
3
|
+
import { p as l } from "../../styled-components.browser.esm-D6kkzXl4.js";
|
|
4
|
+
import { MaxHeightSmoother as p } from "../MaxHeightSmoother/index.es.js";
|
|
5
|
+
const i = l.button({
|
|
6
|
+
position: "relative",
|
|
7
|
+
cursor: "pointer"
|
|
8
|
+
}), w = ({
|
|
9
|
+
children: o,
|
|
10
|
+
className: r,
|
|
11
|
+
identifier: t,
|
|
12
|
+
...e
|
|
13
|
+
}) => /* @__PURE__ */ a.jsx(i, { className: `group ${r}`, "aria-label": `Open panel ${t}`, id: `unrollable-panel-button-${t}`, "aria-haspopup": !0, ...e, children: o }), u = l.div({
|
|
14
|
+
position: "absolute",
|
|
15
|
+
right: "0px",
|
|
16
|
+
minWidth: "100%",
|
|
17
|
+
"--tw-translate-y": "0.5rem",
|
|
18
|
+
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))"
|
|
19
|
+
}), c = l(p)`
|
|
20
|
+
${{
|
|
21
|
+
overflowX: "hidden"
|
|
22
|
+
}}
|
|
23
|
+
${({
|
|
24
|
+
$isOverable: o
|
|
25
|
+
}) => o ? {
|
|
26
|
+
".group:hover &": {
|
|
27
|
+
gridTemplateRows: "1fr",
|
|
28
|
+
overflowX: "auto"
|
|
29
|
+
}
|
|
30
|
+
} : ""}
|
|
31
|
+
${({
|
|
32
|
+
$isFocusable: o
|
|
33
|
+
}) => o ? {
|
|
34
|
+
".group:focus &": {
|
|
35
|
+
gridTemplateRows: "1fr",
|
|
36
|
+
overflowX: "auto"
|
|
37
|
+
}
|
|
38
|
+
} : ""}
|
|
39
|
+
`, m = ({
|
|
40
|
+
children: o,
|
|
41
|
+
isHidden: r = void 0,
|
|
42
|
+
isOverable: t = !1,
|
|
43
|
+
isFocusable: e = !1,
|
|
44
|
+
identifier: s,
|
|
45
|
+
...n
|
|
46
|
+
}) => /* @__PURE__ */ a.jsx(u, { "aria-hidden": r, "aria-labelledby": `unrollable-panel-button-${s}`, id: `unrollable-panel-${s}`, children: /* @__PURE__ */ a.jsx(c, { $isOverable: t, $isFocusable: e, isHidden: r, ...n, children: o }) });
|
|
47
|
+
m.Trigger = w;
|
|
48
|
+
export {
|
|
49
|
+
m as DropDown
|
|
50
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { HTMLAttributes, FC } from 'react';
|
|
2
|
+
|
|
3
|
+
export type UnrollablePanelTriggerProps = HTMLAttributes<HTMLButtonElement> & {
|
|
4
|
+
identifier: string;
|
|
5
|
+
};
|
|
6
|
+
type UnrollablePanelProps = HTMLAttributes<HTMLDivElement> & {
|
|
7
|
+
isFocusable?: boolean;
|
|
8
|
+
isHidden?: boolean;
|
|
9
|
+
isOverable?: boolean;
|
|
10
|
+
identifier: string;
|
|
11
|
+
};
|
|
12
|
+
export type UnrollablePanelType = FC<UnrollablePanelProps> & {
|
|
13
|
+
Trigger: FC<UnrollablePanelTriggerProps>;
|
|
14
|
+
};
|
|
15
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";
|
|
@@ -0,0 +1 @@
|
|
|
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"),l=require("../Logo/index.cjs.js"),x=t.pt.footer({display:"flex",flex:"1 1 auto",flexDirection:"row",flexWrap:"wrap",alignItems:"center",justifyContent:"space-around",gap:"2.5rem",padding:"1.5rem"}),p=t.pt.aside({display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"space-between","@media (min-width: 768px)":{width:"25%"}}),a=t.pt.span({textAlign:"center",fontSize:"0.75rem",lineHeight:"1rem","--tw-text-opacity":"1",color:"rgba(93, 93, 93, var(--tw-text-opacity))"}),c=t.pt.div({margin:"auto",display:"flex",width:"100%",flexDirection:"row",flexWrap:"wrap",justifyContent:"space-around",gap:"0.5rem","@media (min-width: 768px)":{width:"66.666667%"}}),d=t.pt.div({display:"flex",flexDirection:"column",gap:"0.5rem"}),m=t.pt.div({display:"flex",flexDirection:"column",gap:"0.75rem"}),u=({links:o})=>e.jsxRuntimeExports.jsxs(x,{children:[e.jsxRuntimeExports.jsxs(p,{children:[e.jsxRuntimeExports.jsx(l.Logo,{type:"logoWithTextBelow",width:80,height:80}),e.jsxRuntimeExports.jsx(a,{children:"© 2024 Intlayer, Inc."})]}),e.jsxRuntimeExports.jsx(c,{children:(o??[]).map(({title:i,links:s},r)=>e.jsxRuntimeExports.jsxs(d,{children:[e.jsxRuntimeExports.jsx("strong",{children:i}),e.jsxRuntimeExports.jsx(m,{children:s.map(n=>e.jsxRuntimeExports.jsx("a",{href:n.href,"aria-label":n.label,children:n.text},n.href))})]},r))})]});exports.Footer=u;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { FC, ReactNode } from 'react';
|
|
2
|
+
|
|
3
|
+
export type Link = {
|
|
4
|
+
href: string;
|
|
5
|
+
text: ReactNode;
|
|
6
|
+
onClick?: () => void;
|
|
7
|
+
label: string;
|
|
8
|
+
};
|
|
9
|
+
export type LinkGroup = {
|
|
10
|
+
title: ReactNode;
|
|
11
|
+
links: Link[];
|
|
12
|
+
};
|
|
13
|
+
type FooterProps = {
|
|
14
|
+
links?: LinkGroup[];
|
|
15
|
+
};
|
|
16
|
+
export declare const Footer: FC<FooterProps>;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,64 @@
|
|
|
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 { Logo as s } from "../Logo/index.es.js";
|
|
5
|
+
const a = t.footer({
|
|
6
|
+
display: "flex",
|
|
7
|
+
flex: "1 1 auto",
|
|
8
|
+
flexDirection: "row",
|
|
9
|
+
flexWrap: "wrap",
|
|
10
|
+
alignItems: "center",
|
|
11
|
+
justifyContent: "space-around",
|
|
12
|
+
gap: "2.5rem",
|
|
13
|
+
padding: "1.5rem"
|
|
14
|
+
}), d = t.aside({
|
|
15
|
+
display: "flex",
|
|
16
|
+
flexDirection: "column",
|
|
17
|
+
alignItems: "center",
|
|
18
|
+
justifyContent: "space-between",
|
|
19
|
+
"@media (min-width: 768px)": {
|
|
20
|
+
width: "25%"
|
|
21
|
+
}
|
|
22
|
+
}), c = t.span({
|
|
23
|
+
textAlign: "center",
|
|
24
|
+
fontSize: "0.75rem",
|
|
25
|
+
lineHeight: "1rem",
|
|
26
|
+
"--tw-text-opacity": "1",
|
|
27
|
+
color: "rgba(93, 93, 93, var(--tw-text-opacity))"
|
|
28
|
+
}), p = t.div({
|
|
29
|
+
margin: "auto",
|
|
30
|
+
display: "flex",
|
|
31
|
+
width: "100%",
|
|
32
|
+
flexDirection: "row",
|
|
33
|
+
flexWrap: "wrap",
|
|
34
|
+
justifyContent: "space-around",
|
|
35
|
+
gap: "0.5rem",
|
|
36
|
+
"@media (min-width: 768px)": {
|
|
37
|
+
width: "66.666667%"
|
|
38
|
+
}
|
|
39
|
+
}), x = t.div({
|
|
40
|
+
display: "flex",
|
|
41
|
+
flexDirection: "column",
|
|
42
|
+
gap: "0.5rem"
|
|
43
|
+
}), m = t.div({
|
|
44
|
+
display: "flex",
|
|
45
|
+
flexDirection: "column",
|
|
46
|
+
gap: "0.75rem"
|
|
47
|
+
}), g = ({
|
|
48
|
+
links: o
|
|
49
|
+
}) => /* @__PURE__ */ e.jsxs(a, { children: [
|
|
50
|
+
/* @__PURE__ */ e.jsxs(d, { children: [
|
|
51
|
+
/* @__PURE__ */ e.jsx(s, { type: "logoWithTextBelow", width: 80, height: 80 }),
|
|
52
|
+
/* @__PURE__ */ e.jsx(c, { children: "© 2024 Intlayer, Inc." })
|
|
53
|
+
] }),
|
|
54
|
+
/* @__PURE__ */ e.jsx(p, { children: (o ?? []).map(({
|
|
55
|
+
title: n,
|
|
56
|
+
links: r
|
|
57
|
+
}, l) => /* @__PURE__ */ e.jsxs(x, { children: [
|
|
58
|
+
/* @__PURE__ */ e.jsx("strong", { children: n }),
|
|
59
|
+
/* @__PURE__ */ e.jsx(m, { children: r.map((i) => /* @__PURE__ */ e.jsx("a", { href: i.href, "aria-label": i.label, children: i.text }, i.href)) })
|
|
60
|
+
] }, l)) })
|
|
61
|
+
] });
|
|
62
|
+
export {
|
|
63
|
+
g as Footer
|
|
64
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../styled-components.browser.esm-GqWwDlfY.cjs"),t=e.pt.h1({marginTop:"2.5rem",fontSize:"2.25rem",lineHeight:"2.5rem",fontWeight:"700"}),n=e.pt.h2({marginTop:"1.25rem",fontSize:"1.5rem",lineHeight:"2rem",fontWeight:"700"}),i=e.pt.h3({marginTop:"0.75rem",fontSize:"1.25rem",lineHeight:"1.75rem",fontWeight:"700"}),o=e.pt.h4({marginTop:"0.75rem",fontSize:"1.125rem",lineHeight:"1.75rem",fontWeight:"700"}),r=e.pt.h5({marginTop:"0.75rem",fontSize:"1rem",lineHeight:"1.5rem",fontWeight:"700"});exports.H1=t;exports.H2=n;exports.H3=i;exports.H4=o;exports.H5=r;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const H1: import('twin.macro').TwComponent<"h1">;
|
|
2
|
+
export declare const H2: import('twin.macro').TwComponent<"h2">;
|
|
3
|
+
export declare const H3: import('twin.macro').TwComponent<"h3">;
|
|
4
|
+
export declare const H4: import('twin.macro').TwComponent<"h4">;
|
|
5
|
+
export declare const H5: import('twin.macro').TwComponent<"h5">;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { p as e } from "../../styled-components.browser.esm-D6kkzXl4.js";
|
|
3
|
+
const i = e.h1({
|
|
4
|
+
marginTop: "2.5rem",
|
|
5
|
+
fontSize: "2.25rem",
|
|
6
|
+
lineHeight: "2.5rem",
|
|
7
|
+
fontWeight: "700"
|
|
8
|
+
}), n = e.h2({
|
|
9
|
+
marginTop: "1.25rem",
|
|
10
|
+
fontSize: "1.5rem",
|
|
11
|
+
lineHeight: "2rem",
|
|
12
|
+
fontWeight: "700"
|
|
13
|
+
}), o = e.h3({
|
|
14
|
+
marginTop: "0.75rem",
|
|
15
|
+
fontSize: "1.25rem",
|
|
16
|
+
lineHeight: "1.75rem",
|
|
17
|
+
fontWeight: "700"
|
|
18
|
+
}), r = e.h4({
|
|
19
|
+
marginTop: "0.75rem",
|
|
20
|
+
fontSize: "1.125rem",
|
|
21
|
+
lineHeight: "1.75rem",
|
|
22
|
+
fontWeight: "700"
|
|
23
|
+
}), m = e.h5({
|
|
24
|
+
marginTop: "0.75rem",
|
|
25
|
+
fontSize: "1rem",
|
|
26
|
+
lineHeight: "1.5rem",
|
|
27
|
+
fontWeight: "700"
|
|
28
|
+
});
|
|
29
|
+
export {
|
|
30
|
+
i as H1,
|
|
31
|
+
n as H2,
|
|
32
|
+
o as H3,
|
|
33
|
+
r as H4,
|
|
34
|
+
m as H5
|
|
35
|
+
};
|