@intlayer/design-system 8.7.1-canary-0 → 8.7.1
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/dist/esm/components/Accordion/Accordion.mjs +1 -1
- package/dist/esm/components/Avatar/index.mjs +1 -1
- package/dist/esm/components/Breadcrumb/index.mjs +1 -1
- package/dist/esm/components/Browser/Browser.mjs +1 -1
- package/dist/esm/components/Carousel/index.mjs +1 -1
- package/dist/esm/components/CollapsibleTable/CollapsibleTable.mjs +1 -1
- package/dist/esm/components/ContentEditor/ContentEditor.mjs +1 -1
- package/dist/esm/components/ContentEditor/ContentEditorInput.mjs +1 -1
- package/dist/esm/components/ContentEditor/ContentEditorTextArea.mjs +1 -1
- package/dist/esm/components/CopyButton/index.mjs +1 -1
- package/dist/esm/components/CopyToClipboard/index.mjs +1 -1
- package/dist/esm/components/DictionaryFieldEditor/ContentEditorView/TextEditor.mjs +1 -1
- package/dist/esm/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.mjs +1 -1
- package/dist/esm/components/DictionaryFieldEditor/DictionaryFieldEditor.mjs +1 -1
- package/dist/esm/components/DictionaryFieldEditor/SaveForm/SaveForm.mjs +1 -1
- package/dist/esm/components/EditableField/EditableFieldLayout.mjs +1 -1
- package/dist/esm/components/HideShow/index.mjs +1 -1
- package/dist/esm/components/IDE/FileTree.mjs +1 -1
- package/dist/esm/components/Input/InputPassword.mjs +1 -1
- package/dist/esm/components/Input/OTPInput.mjs +1 -1
- package/dist/esm/components/Link/Link.mjs +1 -1
- package/dist/esm/components/LocaleSwitcherContentDropDown/LocaleSwitcherContent.mjs +1 -1
- package/dist/esm/components/LocaleSwitcherDropDown/LocaleSwitcher.mjs +1 -1
- package/dist/esm/components/Modal/Modal.mjs +1 -1
- package/dist/esm/components/Pagination/Pagination.mjs +1 -1
- package/dist/esm/components/RightDrawer/RightDrawer.mjs +1 -1
- package/dist/esm/components/Select/Multiselect.mjs +1 -1
- package/dist/esm/components/ThemeSwitcherDropDown/DesktopThemeSwitcher.mjs +1 -1
- package/dist/esm/components/ThemeSwitcherDropDown/MobileThemeSwitcher.mjs +1 -1
- package/dist/esm/components/Toaster/Toast.mjs +2 -2
- package/dist/esm/components/index.mjs +3 -3
- package/dist/esm/hooks/reactQuery.mjs +1 -1
- package/dist/esm/hooks/useAuth/useOAuth2.mjs +1 -1
- package/dist/esm/hooks/useAuth/useSession.mjs +1 -1
- package/dist/esm/providers/ReactQueryProvider.mjs +1 -1
- package/dist/types/components/Badge/index.d.ts +1 -1
- package/dist/types/components/Button/Button.d.ts +1 -1
- package/dist/types/components/Container/index.d.ts +1 -1
- package/dist/types/components/Input/Checkbox.d.ts +1 -1
- package/dist/types/components/Link/Link.d.ts +1 -1
- package/dist/types/components/Pagination/Pagination.d.ts +2 -2
- package/dist/types/components/SwitchSelector/index.d.ts +1 -1
- package/dist/types/components/Tab/Tab.d.ts +1 -1
- package/dist/types/components/TabSelector/TabSelector.d.ts +1 -1
- package/dist/types/components/Tag/index.d.ts +1 -1
- package/package.json +19 -19
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
import { cn } from "../../utils/cn.mjs";
|
|
4
4
|
import { Button, ButtonColor, ButtonVariant } from "../Button/Button.mjs";
|
|
5
5
|
import { MaxHeightSmoother } from "../MaxHeightSmoother/index.mjs";
|
|
6
|
-
import { useId, useState } from "react";
|
|
7
6
|
import { ChevronDown } from "lucide-react";
|
|
7
|
+
import { useId, useState } from "react";
|
|
8
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
9
|
|
|
10
10
|
//#region src/components/Accordion/Accordion.tsx
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { cn } from "../../utils/cn.mjs";
|
|
2
2
|
import { Loader } from "../Loader/index.mjs";
|
|
3
|
-
import { useMemo } from "react";
|
|
4
3
|
import { User } from "lucide-react";
|
|
4
|
+
import { useMemo } from "react";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
|
|
7
7
|
//#region src/components/Avatar/index.tsx
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
import { cn } from "../../utils/cn.mjs";
|
|
4
4
|
import { Button, ButtonVariant } from "../Button/Button.mjs";
|
|
5
5
|
import { Link, LinkColor } from "../Link/Link.mjs";
|
|
6
|
+
import { ChevronRightIcon } from "lucide-react";
|
|
6
7
|
import { Fragment, createElement } from "react";
|
|
7
8
|
import { cva } from "class-variance-authority";
|
|
8
|
-
import { ChevronRightIcon } from "lucide-react";
|
|
9
9
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
10
10
|
import { getIntlayer } from "intlayer";
|
|
11
11
|
import { useIntlayer } from "react-intlayer";
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
import { cn } from "../../utils/cn.mjs";
|
|
4
4
|
import { Button } from "../Button/Button.mjs";
|
|
5
5
|
import { Input, inputVariants } from "../Input/Input.mjs";
|
|
6
|
-
import { useEffect, useImperativeHandle, useRef, useState } from "react";
|
|
7
6
|
import { ArrowLeft, ArrowRight, RotateCw } from "lucide-react";
|
|
7
|
+
import { useEffect, useImperativeHandle, useRef, useState } from "react";
|
|
8
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
9
|
import { useIntlayer } from "react-intlayer";
|
|
10
10
|
|
|
@@ -4,8 +4,8 @@ import { cn } from "../../utils/cn.mjs";
|
|
|
4
4
|
import { Button, ButtonColor, ButtonSize, ButtonVariant } from "../Button/Button.mjs";
|
|
5
5
|
import { KeyboardShortcut } from "../KeyboardShortcut/KeyboardShortcut.mjs";
|
|
6
6
|
import { Popover } from "../Popover/dynamic.mjs";
|
|
7
|
-
import { Children, createContext, isValidElement, useContext, useEffect, useRef, useState } from "react";
|
|
8
7
|
import { ChevronLeft, ChevronRight } from "lucide-react";
|
|
8
|
+
import { Children, createContext, isValidElement, useContext, useEffect, useRef, useState } from "react";
|
|
9
9
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
10
|
import { useIntlayer } from "react-intlayer";
|
|
11
11
|
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
import { cn } from "../../utils/cn.mjs";
|
|
4
4
|
import { MaxHeightSmoother } from "../MaxHeightSmoother/index.mjs";
|
|
5
|
+
import { ChevronRight } from "lucide-react";
|
|
5
6
|
import { useState } from "react";
|
|
6
7
|
import { cva } from "class-variance-authority";
|
|
7
|
-
import { ChevronRight } from "lucide-react";
|
|
8
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
9
|
|
|
10
10
|
//#region src/components/CollapsibleTable/CollapsibleTable.tsx
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
import { cn } from "../../utils/cn.mjs";
|
|
4
4
|
import { InputVariant } from "../Input/Input.mjs";
|
|
5
5
|
import { AutoSizedTextArea } from "../TextArea/AutoSizeTextArea.mjs";
|
|
6
|
-
import { useState } from "react";
|
|
7
6
|
import { Check, X } from "lucide-react";
|
|
7
|
+
import { useState } from "react";
|
|
8
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
9
|
|
|
10
10
|
//#region src/components/ContentEditor/ContentEditor.tsx
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
import { Button, ButtonColor, ButtonSize, ButtonVariant } from "../Button/Button.mjs";
|
|
4
4
|
import { Input, InputVariant } from "../Input/Input.mjs";
|
|
5
|
-
import { useEffect, useState } from "react";
|
|
6
5
|
import { Check, X } from "lucide-react";
|
|
6
|
+
import { useEffect, useState } from "react";
|
|
7
7
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
|
|
9
9
|
//#region src/components/ContentEditor/ContentEditorInput.tsx
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
import { Button, ButtonColor, ButtonSize, ButtonVariant } from "../Button/Button.mjs";
|
|
4
4
|
import { AutoCompleteTextarea } from "../TextArea/AutocompleteTextArea.mjs";
|
|
5
5
|
import { useUser } from "../../hooks/useUser/index.mjs";
|
|
6
|
-
import { useEffect, useState } from "react";
|
|
7
6
|
import { Check, X } from "lucide-react";
|
|
7
|
+
import { useEffect, useState } from "react";
|
|
8
8
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
9
9
|
|
|
10
10
|
//#region src/components/ContentEditor/ContentEditorTextArea.tsx
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
import { Button, ButtonColor, ButtonSize, ButtonVariant } from "../Button/Button.mjs";
|
|
4
|
-
import { useEffect, useState } from "react";
|
|
5
4
|
import { CopyCheckIcon, CopyIcon } from "lucide-react";
|
|
5
|
+
import { useEffect, useState } from "react";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
7
|
import { useIntlayer } from "react-intlayer";
|
|
8
8
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
import { cn } from "../../utils/cn.mjs";
|
|
4
|
-
import { useState } from "react";
|
|
5
4
|
import { CopyCheck, CopyIcon } from "lucide-react";
|
|
5
|
+
import { useState } from "react";
|
|
6
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
|
|
8
8
|
//#region src/components/CopyToClipboard/index.tsx
|
|
@@ -12,8 +12,8 @@ import { renameKey } from "./object.mjs";
|
|
|
12
12
|
import { Label } from "../../Label/index.mjs";
|
|
13
13
|
import { MarkdownRenderer as MarkdownRenderer$1 } from "../../MarkDownRender/MarkDownRender.mjs";
|
|
14
14
|
import { EnumKeyInput } from "../EnumKeyInput.mjs";
|
|
15
|
-
import { Fragment, useState } from "react";
|
|
16
15
|
import { Plus, Trash, WandSparkles } from "lucide-react";
|
|
16
|
+
import { Fragment, useState } from "react";
|
|
17
17
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
18
18
|
import { useIntlayer, useLocale } from "react-intlayer";
|
|
19
19
|
import { getLocaleName } from "@intlayer/core/localization";
|
package/dist/esm/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.mjs
CHANGED
|
@@ -10,8 +10,8 @@ import { Select } from "../../Select/Select.mjs";
|
|
|
10
10
|
import { useForm as useForm$1 } from "../../Form/FormBase.mjs";
|
|
11
11
|
import { Form } from "../../Form/Form.mjs";
|
|
12
12
|
import { useDictionaryDetailsSchema } from "./useDictionaryDetailsSchema.mjs";
|
|
13
|
-
import { useEffect } from "react";
|
|
14
13
|
import { WandSparkles } from "lucide-react";
|
|
14
|
+
import { useEffect } from "react";
|
|
15
15
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
16
16
|
import { useIntlayer } from "react-intlayer";
|
|
17
17
|
import { useEditedContent } from "@intlayer/editor-react";
|
|
@@ -9,8 +9,8 @@ import { DictionaryDetailsForm } from "./DictionaryDetails/DictionaryDetailsForm
|
|
|
9
9
|
import { JSONEditor } from "./JSONEditor.mjs";
|
|
10
10
|
import { SaveForm } from "./SaveForm/SaveForm.mjs";
|
|
11
11
|
import { StructureEditor } from "./StructureEditor.mjs";
|
|
12
|
-
import { useEffect } from "react";
|
|
13
12
|
import { ArrowLeft } from "lucide-react";
|
|
13
|
+
import { useEffect } from "react";
|
|
14
14
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
15
15
|
import { useIntlayer } from "react-intlayer";
|
|
16
16
|
import { useConfiguration, useDictionariesRecordActions, useFocusUnmergedDictionary } from "@intlayer/editor-react";
|
|
@@ -6,8 +6,8 @@ import { useAuth } from "../../../hooks/useAuth/useAuth.mjs";
|
|
|
6
6
|
import { useDeleteDictionary, usePushDictionaries, useWriteDictionary } from "../../../hooks/reactQuery.mjs";
|
|
7
7
|
import { Modal, ModalSize } from "../../Modal/Modal.mjs";
|
|
8
8
|
import { Form } from "../../Form/Form.mjs";
|
|
9
|
-
import { useState } from "react";
|
|
10
9
|
import { ArrowUpFromLine, Download, RotateCcw, Save, Trash } from "lucide-react";
|
|
10
|
+
import { useState } from "react";
|
|
11
11
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
12
12
|
import { useIntlayer } from "react-intlayer";
|
|
13
13
|
import { useDictionariesRecordActions, useEditedContent } from "@intlayer/editor-react";
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
import { cn } from "../../utils/cn.mjs";
|
|
4
4
|
import { Button, ButtonColor, ButtonSize, ButtonVariant } from "../Button/Button.mjs";
|
|
5
|
-
import { useCallback, useEffect, useRef, useState } from "react";
|
|
6
5
|
import { Check, Pencil, X } from "lucide-react";
|
|
6
|
+
import { useCallback, useEffect, useRef, useState } from "react";
|
|
7
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
|
|
9
9
|
//#region src/components/EditableField/EditableFieldLayout.tsx
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
import { cn } from "../../utils/cn.mjs";
|
|
4
|
-
import { useEffect, useMemo, useRef, useState } from "react";
|
|
5
4
|
import { Eye, EyeOff } from "lucide-react";
|
|
5
|
+
import { useEffect, useMemo, useRef, useState } from "react";
|
|
6
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
|
|
8
8
|
//#region src/components/HideShow/index.tsx
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
import { cn } from "../../utils/cn.mjs";
|
|
4
4
|
import { MaxHeightSmoother } from "../MaxHeightSmoother/index.mjs";
|
|
5
5
|
import { createFileTree } from "./createFileTree.mjs";
|
|
6
|
-
import { useState } from "react";
|
|
7
6
|
import { ChevronRight } from "lucide-react";
|
|
7
|
+
import { useState } from "react";
|
|
8
8
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
9
9
|
|
|
10
10
|
//#region src/components/IDE/FileTree.tsx
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
import { Input } from "./Input.mjs";
|
|
4
|
-
import { useState } from "react";
|
|
5
4
|
import { EyeIcon, EyeOffIcon } from "lucide-react";
|
|
5
|
+
import { useState } from "react";
|
|
6
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
|
|
8
8
|
//#region src/components/Input/InputPassword.tsx
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
import { cn } from "../../utils/cn.mjs";
|
|
4
4
|
import { Button } from "../Button/Button.mjs";
|
|
5
|
+
import { MinusIcon } from "lucide-react";
|
|
5
6
|
import { createContext, useContext, useEffect, useRef, useState } from "react";
|
|
6
7
|
import { cva } from "class-variance-authority";
|
|
7
|
-
import { MinusIcon } from "lucide-react";
|
|
8
8
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
9
9
|
|
|
10
10
|
//#region src/components/Input/OTPInput.tsx
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { cn } from "../../utils/cn.mjs";
|
|
2
|
+
import { ExternalLink, MoveRight } from "lucide-react";
|
|
2
3
|
import { isValidElement } from "react";
|
|
3
4
|
import { cva } from "class-variance-authority";
|
|
4
|
-
import { ExternalLink, MoveRight } from "lucide-react";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
import { getLocalizedUrl } from "@intlayer/core/localization";
|
|
7
7
|
|
|
@@ -7,8 +7,8 @@ import { SwitchSelector, SwitchSelectorColor, SwitchSelectorSize } from "../Swit
|
|
|
7
7
|
import { usePersistedStore } from "../../hooks/usePersistedStore.mjs";
|
|
8
8
|
import { DropDown } from "../DropDown/index.mjs";
|
|
9
9
|
import { useLocaleSwitcherContent } from "./LocaleSwitcherContentContext.mjs";
|
|
10
|
-
import { useMemo, useRef, useState } from "react";
|
|
11
10
|
import { Check, Globe, MoveVertical } from "lucide-react";
|
|
11
|
+
import { useMemo, useRef, useState } from "react";
|
|
12
12
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
13
13
|
import { useIntlayer, useLocale } from "react-intlayer";
|
|
14
14
|
import { getHTMLTextDir, getLocaleName } from "@intlayer/core/localization";
|
|
@@ -4,8 +4,8 @@ import { Container } from "../Container/index.mjs";
|
|
|
4
4
|
import { Button, ButtonColor, ButtonTextAlign, ButtonVariant } from "../Button/Button.mjs";
|
|
5
5
|
import { Input } from "../Input/Input.mjs";
|
|
6
6
|
import { DropDown } from "../DropDown/index.mjs";
|
|
7
|
-
import { useCallback, useMemo, useRef, useState } from "react";
|
|
8
7
|
import { MoveVertical } from "lucide-react";
|
|
8
|
+
import { useCallback, useMemo, useRef, useState } from "react";
|
|
9
9
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
10
|
import { useIntlayer } from "react-intlayer";
|
|
11
11
|
import { getHTMLTextDir, getLocaleName } from "@intlayer/core/localization";
|
|
@@ -6,9 +6,9 @@ import { Button, ButtonColor, ButtonSize, ButtonVariant } from "../Button/Button
|
|
|
6
6
|
import { H3 } from "../Headers/index.mjs";
|
|
7
7
|
import { useGetElementOrWindow } from "../../hooks/useGetElementOrWindow.mjs";
|
|
8
8
|
import { useScrollBlockage } from "../../hooks/useScrollBlockage/index.mjs";
|
|
9
|
+
import { X } from "lucide-react";
|
|
9
10
|
import { useEffect } from "react";
|
|
10
11
|
import { cva } from "class-variance-authority";
|
|
11
|
-
import { X } from "lucide-react";
|
|
12
12
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
13
13
|
import { motion } from "framer-motion";
|
|
14
14
|
import { createPortal } from "react-dom";
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
import { cn } from "../../utils/cn.mjs";
|
|
4
4
|
import { Button, ButtonColor, ButtonSize, ButtonVariant } from "../Button/Button.mjs";
|
|
5
5
|
import { useItemSelector } from "../../hooks/useItemSelector.mjs";
|
|
6
|
+
import { ChevronLeft, ChevronRight, MoreHorizontal } from "lucide-react";
|
|
6
7
|
import { useEffect, useRef } from "react";
|
|
7
8
|
import { cva } from "class-variance-authority";
|
|
8
|
-
import { ChevronLeft, ChevronRight, MoreHorizontal } from "lucide-react";
|
|
9
9
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
10
|
|
|
11
11
|
//#region src/components/Pagination/Pagination.tsx
|
|
@@ -10,8 +10,8 @@ import { useScrollBlockage } from "../../hooks/useScrollBlockage/index.mjs";
|
|
|
10
10
|
import { MaxWidthSmoother } from "../MaxWidthSmoother/index.mjs";
|
|
11
11
|
import { isElementAtTopAndNotCovered } from "./isElementAtTopAndNotCovered.mjs";
|
|
12
12
|
import { useRightDrawer } from "./useRightDrawer.mjs";
|
|
13
|
-
import { useEffect, useRef } from "react";
|
|
14
13
|
import { ChevronLeft, X } from "lucide-react";
|
|
14
|
+
import { useEffect, useRef } from "react";
|
|
15
15
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
16
16
|
import { useIntlayer } from "react-intlayer";
|
|
17
17
|
import { createPortal } from "react-dom";
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
import { cn } from "../../utils/cn.mjs";
|
|
4
4
|
import { Badge, BadgeColor } from "../Badge/index.mjs";
|
|
5
5
|
import { Command, CommandRoot } from "../Command/index.mjs";
|
|
6
|
-
import { createContext, useCallback, useContext, useEffect, useMemo, useRef, useState } from "react";
|
|
7
6
|
import { Check, X } from "lucide-react";
|
|
7
|
+
import { createContext, useCallback, useContext, useEffect, useMemo, useRef, useState } from "react";
|
|
8
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
9
|
|
|
10
10
|
//#region src/components/Select/Multiselect.tsx
|
|
@@ -4,8 +4,8 @@ import { Container } from "../Container/index.mjs";
|
|
|
4
4
|
import { Button, ButtonVariant } from "../Button/Button.mjs";
|
|
5
5
|
import { DropDown } from "../DropDown/index.mjs";
|
|
6
6
|
import { Modes } from "./types.mjs";
|
|
7
|
-
import { useState } from "react";
|
|
8
7
|
import { CircleDashed, Moon, Sun } from "lucide-react";
|
|
8
|
+
import { useState } from "react";
|
|
9
9
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
10
|
|
|
11
11
|
//#region src/components/ThemeSwitcherDropDown/DesktopThemeSwitcher.tsx
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
import { cn } from "../../utils/cn.mjs";
|
|
4
4
|
import { Modes } from "./types.mjs";
|
|
5
|
-
import { useState } from "react";
|
|
6
5
|
import { CircleDashed, Moon, Sun } from "lucide-react";
|
|
6
|
+
import { useState } from "react";
|
|
7
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
|
|
9
9
|
//#region src/components/ThemeSwitcherDropDown/MobileThemeSwitcher.tsx
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
import { cn } from "../../utils/cn.mjs";
|
|
4
|
-
import * as ToastPrimitives from "@radix-ui/react-toast";
|
|
5
|
-
import { cva } from "class-variance-authority";
|
|
6
4
|
import { X } from "lucide-react";
|
|
5
|
+
import { cva } from "class-variance-authority";
|
|
7
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
|
+
import * as ToastPrimitives from "@radix-ui/react-toast";
|
|
8
8
|
|
|
9
9
|
//#region src/components/Toaster/Toast.tsx
|
|
10
10
|
const ToastProvider = ToastPrimitives;
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import { Toast, ToastAction, ToastClose, ToastDescription, ToastProvider, ToastTitle, ToastViewport } from "./Toaster/Toast.mjs";
|
|
2
|
-
import { reducer, toast, useToast } from "./Toaster/useToast.mjs";
|
|
3
|
-
import { Toaster } from "./Toaster/Toaster.mjs";
|
|
4
1
|
import { Container, ContainerBackground, ContainerBorderColor, ContainerGap, ContainerPadding, ContainerRoundedSize, ContainerSeparator, ContainerTransparency, containerVariants } from "./Container/index.mjs";
|
|
5
2
|
import { Loader } from "./Loader/index.mjs";
|
|
6
3
|
import { Button, ButtonColor, ButtonSize, ButtonTextAlign, ButtonVariant, buttonVariants } from "./Button/Button.mjs";
|
|
@@ -113,5 +110,8 @@ import { Terminal } from "./Terminal/Terminal.mjs";
|
|
|
113
110
|
import { Modes } from "./ThemeSwitcherDropDown/types.mjs";
|
|
114
111
|
import { DesktopThemeSwitcher } from "./ThemeSwitcherDropDown/DesktopThemeSwitcher.mjs";
|
|
115
112
|
import { MobileThemeSwitcher } from "./ThemeSwitcherDropDown/MobileThemeSwitcher.mjs";
|
|
113
|
+
import { Toast, ToastAction, ToastClose, ToastDescription, ToastProvider, ToastTitle, ToastViewport } from "./Toaster/Toast.mjs";
|
|
114
|
+
import { reducer, toast, useToast } from "./Toaster/useToast.mjs";
|
|
115
|
+
import { Toaster } from "./Toaster/Toaster.mjs";
|
|
116
116
|
|
|
117
117
|
export { Accordion, AutoCompleteTextarea, AutoSizedTextArea, Avatar, Badge, BadgeColor, BadgeSize, BadgeVariant, BitbucketLogo, Breadcrumb, Browser, Burger, Button, ButtonColor, ButtonSize, ButtonTextAlign, ButtonVariant, Carousel, Checkbox, CheckboxColor, CheckboxSize, ClickOutsideDiv, Code, CodeBlock, CodeDefault, CollapsibleTable, Command, CommandRoot, Container, ContainerBackground, ContainerBorderColor, ContainerGap, ContainerPadding, ContainerRoundedSize, ContainerSeparator, ContainerTransparency, ContentEditableTextArea, ContentEditor, ContentSelector, CopyButton, CopyToClipboard, DesktopNavbar, DesktopThemeSwitcher, Detail, DictionaryCreationForm, DictionaryEditor, DictionaryFieldEditor, DiscordLogo, DotPattern, DropDown, DropDownAlign, DropDownYAlign, EditableFieldInput, EditableFieldTextArea, ExpandCollapse, FacebookLogo, FileList, Flag, flags_exports as Flags, Footer, Form, GitHubLogo, GitLabLogo, GoogleLogo, GridPattern, H1, H2, H3, H4, H5, H6, HTMLRenderer, HeightResizer, HideShow, IDE, InformationTag, Input, InputIndicator, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, InputPassword, InputSize, InputVariant, InstagramLogo, KeyList, KeyPathBreadcrumb, KeyboardScreenAdapter, KeyboardShortcut, Label, LanguageBackground, LanguageSection, Link, LinkColor, LinkRoundedSize, LinkSize, LinkUnderlined, LinkVariant, LinkedInLogo, Loader, LocaleSwitcher, LocaleSwitcherContent, LocaleSwitcherContentProvider, Logo, LogoTextOnly, LogoWithText, LogoWithTextBelow, MarkdownRenderer, MaxHeightSmoother, MaxWidthSmoother, MobileNavbar, MobileThemeSwitcher, Modal, ModalSize, Modes, MultiSelect, Navbar, NumberItemsSelector, OTPInput, OTPInputContext, Pagination, PaginationSize, PaginationVariant, Popover, PopoverStatic, PopoverXAlign, PopoverYAlign, PressableSpan, ProductHuntLogo, RightDrawer, SaveForm, SearchInput, Select, SelectContent, SelectContentPosition, SelectLabel, SelectSeparator, ShowingResultsNumberItems, SmartTable, SocialNetworks, Spotlight, SwitchSelector, SwitchSelectorColor, SwitchSelectorSize, Tab, TabSelector, TabSelectorColor, Table, Tag, TagBackground, TagBorder, TagColor, TagRoundedSize, TagSize, TechLogo, TechLogoName, techLogos_exports as TechLogos, Terminal, TextArea, TextEditor, TextEditorContainer, TiktokLogo, Toast, ToastAction, ToastClose, ToastDescription, ToastProvider, ToastTitle, ToastViewport, Toaster, VersionSwitcher, VersionSwitcherProvider, WithResizer, XLogo, YoutubeLogo, badgeVariants, baseMarkdownComponents, buttonVariants, checkIsExternalLink, checkboxVariants, containerVariants, drawerManager, getCapitals, getIntlayerHTMLOptions, getIntlayerMarkdownOptions, inputSlotVariants, inputVariants, isTextChildren, linkVariants, paginationVariants, reducer, toast, traceKeys, useContentEditable, useCopyToClipboard, useForm, useFormField, useLocaleSwitcherContent, usePasswordManagerBadge, usePrevious, useRightDrawer, useToast, useVersionSwitcher };
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
import { useAuth } from "./useAuth/useAuth.mjs";
|
|
4
4
|
import { useIntlayerAuth, useIntlayerOAuth } from "./useIntlayerAPI.mjs";
|
|
5
|
-
import { useInfiniteQuery, useMutation, useQuery, useQueryClient } from "@tanstack/react-query";
|
|
6
5
|
import { useConfiguration } from "@intlayer/editor-react";
|
|
6
|
+
import { useInfiniteQuery, useMutation, useQuery, useQueryClient } from "@tanstack/react-query";
|
|
7
7
|
|
|
8
8
|
//#region src/hooks/reactQuery.ts
|
|
9
9
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import { useQuery } from "@tanstack/react-query";
|
|
4
3
|
import { useConfiguration } from "@intlayer/editor-react";
|
|
4
|
+
import { useQuery } from "@tanstack/react-query";
|
|
5
5
|
import { getOAuthAPI } from "@intlayer/api";
|
|
6
6
|
import configuration from "@intlayer/config/built";
|
|
7
7
|
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
import { getAuthAPI } from "../../libs/auth.mjs";
|
|
4
4
|
import { useQueryClient } from "../reactQuery.mjs";
|
|
5
|
-
import { useQuery } from "@tanstack/react-query";
|
|
6
5
|
import { useConfiguration } from "@intlayer/editor-react";
|
|
6
|
+
import { useQuery } from "@tanstack/react-query";
|
|
7
7
|
import configuration from "@intlayer/config/built";
|
|
8
8
|
|
|
9
9
|
//#region src/hooks/useAuth/useSession.ts
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
import { useToast } from "../components/Toaster/useToast.mjs";
|
|
4
|
-
import { MutationCache, QueryClient, QueryClientProvider } from "@tanstack/react-query";
|
|
5
4
|
import { useRef } from "react";
|
|
6
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
import { MutationCache, QueryClient, QueryClientProvider } from "@tanstack/react-query";
|
|
7
7
|
|
|
8
8
|
//#region src/providers/ReactQueryProvider.tsx
|
|
9
9
|
const defaultQueryOptions = {
|
|
@@ -43,7 +43,7 @@ declare enum BadgeSize {
|
|
|
43
43
|
* @description Defines the styling variants for different badge combinations
|
|
44
44
|
*/
|
|
45
45
|
declare const badgeVariants: (props?: {
|
|
46
|
-
color?: "
|
|
46
|
+
color?: "primary" | "secondary" | "destructive" | "neutral" | "light" | "dark" | "text" | "error" | "success" | "custom";
|
|
47
47
|
variant?: "none" | "default" | "outline" | "hoverable";
|
|
48
48
|
size?: "sm" | "md" | "lg";
|
|
49
49
|
} & _$class_variance_authority_types0.ClassProp) => string;
|
|
@@ -61,7 +61,7 @@ declare enum ButtonTextAlign {
|
|
|
61
61
|
*/
|
|
62
62
|
declare const buttonVariants: (props?: {
|
|
63
63
|
size?: "sm" | "md" | "lg" | "xl" | "icon-sm" | "icon-md" | "icon-lg" | "icon-xl";
|
|
64
|
-
color?: "
|
|
64
|
+
color?: "primary" | "secondary" | "destructive" | "neutral" | "card" | "light" | "dark" | "text" | "current" | "text-inverse" | "error" | "success" | "custom";
|
|
65
65
|
roundedSize?: "sm" | "md" | "lg" | "xl" | "2xl" | "none" | "3xl" | "4xl" | "5xl" | "full";
|
|
66
66
|
variant?: "input" | "none" | "default" | "outline" | "link" | "invisible-link" | "hoverable" | "fade";
|
|
67
67
|
textAlign?: "left" | "center" | "right";
|
|
@@ -13,7 +13,7 @@ declare const containerVariants: (props?: {
|
|
|
13
13
|
padding?: "sm" | "md" | "lg" | "xl" | "2xl" | "none";
|
|
14
14
|
separator?: "both" | "without" | "x" | "y";
|
|
15
15
|
border?: "with" | "none";
|
|
16
|
-
borderColor?: "error" | "success" | "
|
|
16
|
+
borderColor?: "error" | "success" | "primary" | "secondary" | "neutral" | "text" | "card" | "warning";
|
|
17
17
|
background?: "with" | "none" | "hoverable";
|
|
18
18
|
gap?: "sm" | "md" | "lg" | "xl" | "2xl" | "none";
|
|
19
19
|
} & _$class_variance_authority_types0.ClassProp) => string;
|
|
@@ -6,7 +6,7 @@ import { VariantProps } from "class-variance-authority";
|
|
|
6
6
|
declare const checkboxVariants: (props?: {
|
|
7
7
|
variant?: "default";
|
|
8
8
|
size?: "xs" | "sm" | "md" | "lg";
|
|
9
|
-
color?: "error" | "success" | "
|
|
9
|
+
color?: "error" | "success" | "primary" | "secondary" | "destructive" | "neutral" | "light" | "text" | "dark" | "custom";
|
|
10
10
|
validationStyleEnabled?: "enabled" | "disabled";
|
|
11
11
|
} & _$class_variance_authority_types0.ClassProp) => string;
|
|
12
12
|
declare enum CheckboxSize {
|
|
@@ -55,7 +55,7 @@ declare enum LinkUnderlined {
|
|
|
55
55
|
declare const linkVariants: (props?: {
|
|
56
56
|
variant?: "default" | "invisible-link" | "hoverable" | "button" | "button-outlined";
|
|
57
57
|
roundedSize?: "sm" | "md" | "lg" | "xl" | "2xl" | "none" | "3xl" | "full";
|
|
58
|
-
color?: "
|
|
58
|
+
color?: "primary" | "secondary" | "destructive" | "neutral" | "light" | "dark" | "text" | "text-inverse" | "error" | "success" | "custom";
|
|
59
59
|
size?: "sm" | "md" | "lg" | "xl" | "custom";
|
|
60
60
|
underlined?: boolean | LinkUnderlined.DEFAULT;
|
|
61
61
|
} & _$class_variance_authority_types0.ClassProp) => string;
|
|
@@ -5,8 +5,8 @@ import { VariantProps } from "class-variance-authority";
|
|
|
5
5
|
//#region src/components/Pagination/Pagination.d.ts
|
|
6
6
|
declare const paginationVariants: (props?: {
|
|
7
7
|
size?: "sm" | "md" | "lg";
|
|
8
|
-
color?: "
|
|
9
|
-
variant?: "default" | "
|
|
8
|
+
color?: "primary" | "secondary" | "destructive" | "neutral" | "text";
|
|
9
|
+
variant?: "default" | "ghost" | "bordered";
|
|
10
10
|
} & _$class_variance_authority_types0.ClassProp) => string;
|
|
11
11
|
declare enum PaginationSize {
|
|
12
12
|
SM = "sm",
|
|
@@ -29,7 +29,7 @@ declare enum SwitchSelectorColor {
|
|
|
29
29
|
TEXT = "text"
|
|
30
30
|
}
|
|
31
31
|
declare const switchSelectorVariant: (props?: {
|
|
32
|
-
color?: "
|
|
32
|
+
color?: "primary" | "secondary" | "destructive" | "neutral" | "light" | "dark" | "text";
|
|
33
33
|
disabled?: boolean;
|
|
34
34
|
} & _$class_variance_authority_types0.ClassProp) => string;
|
|
35
35
|
declare enum SwitchSelectorSize {
|
|
@@ -6,7 +6,7 @@ import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
|
6
6
|
//#region src/components/Tab/Tab.d.ts
|
|
7
7
|
declare const tabContainerVariant: (props?: {
|
|
8
8
|
background?: "with" | "without";
|
|
9
|
-
variant?: "default" | "
|
|
9
|
+
variant?: "default" | "ghost" | "bordered";
|
|
10
10
|
} & _$class_variance_authority_types0.ClassProp) => string;
|
|
11
11
|
type TabProps = HTMLAttributes<HTMLDivElement> & VariantProps<typeof tabContainerVariant> & {
|
|
12
12
|
defaultTab?: string;
|
|
@@ -15,7 +15,7 @@ declare enum TabSelectorColor {
|
|
|
15
15
|
TEXT = "text"
|
|
16
16
|
}
|
|
17
17
|
declare const tabSelectorVariant: (props?: {
|
|
18
|
-
color?: "
|
|
18
|
+
color?: "primary" | "secondary" | "destructive" | "neutral" | "light" | "text" | "dark";
|
|
19
19
|
} & _$class_variance_authority_types0.ClassProp) => string;
|
|
20
20
|
type TabSelectorItemProps = HTMLAttributes<HTMLElement> & {
|
|
21
21
|
key: string | number;
|
|
@@ -186,7 +186,7 @@ declare enum TagBackground {
|
|
|
186
186
|
}
|
|
187
187
|
declare const containerVariants: (props?: {
|
|
188
188
|
roundedSize?: "sm" | "md" | "lg" | "xl" | "2xl" | "none" | "3xl" | "full";
|
|
189
|
-
color?: "
|
|
189
|
+
color?: "primary" | "neutral" | "text" | "error" | "success" | "warning" | "blue" | "yellow" | "green" | "red" | "orange" | "purple" | "pink" | "brown" | "gray" | "black" | "white";
|
|
190
190
|
size?: "xs" | "sm" | "md" | "lg" | "xl";
|
|
191
191
|
border?: "none" | "with";
|
|
192
192
|
background?: "none" | "with";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intlayer/design-system",
|
|
3
|
-
"version": "8.7.1
|
|
3
|
+
"version": "8.7.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Intlayer design system, including UI components used in the Intlayer editor, website, and visual editor/CMS.",
|
|
6
6
|
"keywords": [
|
|
@@ -419,28 +419,28 @@
|
|
|
419
419
|
"typecheck_": "tsc --noEmit --project tsconfig.types.json"
|
|
420
420
|
},
|
|
421
421
|
"dependencies": {
|
|
422
|
-
"@better-auth/passkey": "1.6.
|
|
423
|
-
"@better-auth/sso": "1.6.
|
|
424
|
-
"@intlayer/api": "8.7.1
|
|
425
|
-
"@intlayer/config": "8.7.1
|
|
426
|
-
"@intlayer/core": "8.7.1
|
|
427
|
-
"@intlayer/dictionaries-entry": "8.7.1
|
|
428
|
-
"@intlayer/editor-react": "8.7.1
|
|
429
|
-
"@intlayer/types": "8.7.1
|
|
422
|
+
"@better-auth/passkey": "1.6.4",
|
|
423
|
+
"@better-auth/sso": "1.6.4",
|
|
424
|
+
"@intlayer/api": "8.7.1",
|
|
425
|
+
"@intlayer/config": "8.7.1",
|
|
426
|
+
"@intlayer/core": "8.7.1",
|
|
427
|
+
"@intlayer/dictionaries-entry": "8.7.1",
|
|
428
|
+
"@intlayer/editor-react": "8.7.1",
|
|
429
|
+
"@intlayer/types": "8.7.1",
|
|
430
430
|
"@radix-ui/react-dialog": "1.1.15",
|
|
431
431
|
"@radix-ui/react-select": "2.2.6",
|
|
432
432
|
"@radix-ui/react-slot": "1.2.4",
|
|
433
433
|
"@radix-ui/react-toast": "1.2.15",
|
|
434
434
|
"@tailwindcss/aspect-ratio": "0.4.2",
|
|
435
|
-
"better-auth": "1.6.
|
|
435
|
+
"better-auth": "1.6.4",
|
|
436
436
|
"class-variance-authority": "0.7.1",
|
|
437
437
|
"cmdk": "1.1.1",
|
|
438
|
-
"react-intlayer": "8.7.1
|
|
438
|
+
"react-intlayer": "8.7.1",
|
|
439
439
|
"rollup-preserve-directives": "1.1.3",
|
|
440
440
|
"zod": "4.3.6"
|
|
441
441
|
},
|
|
442
442
|
"devDependencies": {
|
|
443
|
-
"@intlayer/backend": "8.7.1
|
|
443
|
+
"@intlayer/backend": "8.7.1",
|
|
444
444
|
"@shikijs/transformers": "4.0.2",
|
|
445
445
|
"@storybook/addon-a11y": "8.6.14",
|
|
446
446
|
"@storybook/addon-essentials": "8.6.14",
|
|
@@ -470,34 +470,34 @@
|
|
|
470
470
|
"@utils/ts-config-types": "1.0.4",
|
|
471
471
|
"clsx": "2.1.1",
|
|
472
472
|
"fast-glob": "3.3.3",
|
|
473
|
-
"intlayer": "8.7.1
|
|
473
|
+
"intlayer": "8.7.1",
|
|
474
474
|
"rimraf": "6.1.3",
|
|
475
475
|
"shiki": "4.0.2",
|
|
476
476
|
"storybook": "8.6.17",
|
|
477
477
|
"tailwind-merge": "3.5.0",
|
|
478
|
-
"tsdown": "0.21.
|
|
478
|
+
"tsdown": "0.21.8",
|
|
479
479
|
"typescript": "6.0.2",
|
|
480
480
|
"vite": "8.0.8",
|
|
481
|
-
"vite-intlayer": "8.7.1
|
|
481
|
+
"vite-intlayer": "8.7.1",
|
|
482
482
|
"vite-plugin-dts": "4.5.4",
|
|
483
483
|
"vitest": "4.1.4"
|
|
484
484
|
},
|
|
485
485
|
"peerDependencies": {
|
|
486
486
|
"@better-fetch/fetch": "1.1.21",
|
|
487
487
|
"@hookform/resolvers": "5.2.2",
|
|
488
|
-
"@intlayer/backend": "8.7.1
|
|
488
|
+
"@intlayer/backend": "8.7.1",
|
|
489
489
|
"@monaco-editor/react": "4.7.0",
|
|
490
490
|
"@shikijs/transformers": "4.0.2",
|
|
491
|
-
"@tanstack/react-query": "5.
|
|
491
|
+
"@tanstack/react-query": "5.99.0",
|
|
492
492
|
"@tanstack/react-query-devtools": "5.97.0",
|
|
493
493
|
"framer-motion": "12.38.0",
|
|
494
494
|
"fuse.js": "7.3.0",
|
|
495
|
-
"intlayer": "8.7.1
|
|
495
|
+
"intlayer": "8.7.1",
|
|
496
496
|
"lucide-react": "1.8.0",
|
|
497
497
|
"react": ">=16.0.0",
|
|
498
498
|
"react-dom": ">=16.0.0",
|
|
499
499
|
"react-hook-form": "7.72.1",
|
|
500
|
-
"react-intlayer": "8.7.1
|
|
500
|
+
"react-intlayer": "8.7.1",
|
|
501
501
|
"shiki": "4.0.2",
|
|
502
502
|
"tailwindcss": "4.2.1"
|
|
503
503
|
},
|