@intlayer/design-system 8.11.0 → 8.11.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/api/useAuth/useOAuth2.mjs +1 -1
- package/dist/esm/api/useIntlayerAPI.mjs +1 -1
- package/dist/esm/components/ContentEditor/ContentEditorTextArea.mjs +1 -1
- package/dist/esm/components/DictionaryFieldEditor/ContentEditorView/TextEditor.mjs +2 -2
- package/dist/esm/components/DictionaryFieldEditor/DictionaryCreationForm/DictionaryCreationForm.mjs +1 -1
- package/dist/esm/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.mjs +4 -4
- package/dist/esm/components/DictionaryFieldEditor/DictionaryFieldEditor.mjs +1 -1
- package/dist/esm/components/DictionaryFieldEditor/NavigationView/NavigationViewNode.mjs +1 -1
- package/dist/esm/components/DictionaryFieldEditor/SaveForm/SaveForm.mjs +2 -2
- package/dist/esm/components/DictionaryFieldEditor/StructureView/StructureView.mjs +1 -1
- package/dist/esm/components/Form/elements/OTPElement.mjs +1 -1
- package/dist/esm/components/LocaleSwitcherContentDropDown/LocaleSwitcherContent.mjs +1 -1
- package/dist/esm/components/Modal/Modal.mjs +2 -2
- package/dist/esm/components/Navbar/MobileNavbar.mjs +1 -1
- package/dist/esm/components/Pagination/Pagination.mjs +1 -1
- package/dist/esm/components/RightDrawer/RightDrawer.mjs +3 -3
- package/dist/esm/components/Tab/Tab.mjs +1 -1
- package/dist/esm/hooks/index.mjs +8 -8
- package/dist/types/components/Badge/index.d.ts +2 -2
- package/dist/types/components/Button/Button.d.ts +3 -3
- package/dist/types/components/CollapsibleTable/CollapsibleTable.d.ts +1 -1
- package/dist/types/components/Command/index.d.ts +2 -2
- package/dist/types/components/Container/index.d.ts +3 -3
- package/dist/types/components/Input/Checkbox.d.ts +2 -2
- package/dist/types/components/Input/Input.d.ts +1 -1
- package/dist/types/components/Link/Link.d.ts +2 -2
- package/dist/types/components/Tag/index.d.ts +1 -1
- package/package.json +14 -14
- package/tailwind.css +3 -5
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
import { useQuery } from "@tanstack/react-query";
|
|
4
4
|
import configuration from "@intlayer/config/built";
|
|
5
|
-
import { getOAuthAPI } from "@intlayer/api";
|
|
6
5
|
import { useConfiguration } from "@intlayer/editor-react";
|
|
6
|
+
import { getOAuthAPI } from "@intlayer/api";
|
|
7
7
|
import { defu } from "defu";
|
|
8
8
|
|
|
9
9
|
//#region src/api/useAuth/useOAuth2.ts
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { getAuthAPI } from "../libs/auth.mjs";
|
|
4
4
|
import { useAuth } from "./useAuth/useAuth.mjs";
|
|
5
|
+
import { useConfiguration } from "@intlayer/editor-react";
|
|
5
6
|
import { getIntlayerAPI } from "@intlayer/api";
|
|
6
7
|
import { getAiAPI } from "@intlayer/api/ai";
|
|
7
8
|
import { getAuditAPI } from "@intlayer/api/audit";
|
|
@@ -21,7 +22,6 @@ import { getStripeAPI } from "@intlayer/api/stripe";
|
|
|
21
22
|
import { getTagAPI } from "@intlayer/api/tag";
|
|
22
23
|
import { getTranslateAPI } from "@intlayer/api/translate";
|
|
23
24
|
import { getUserAPI } from "@intlayer/api/user";
|
|
24
|
-
import { useConfiguration } from "@intlayer/editor-react";
|
|
25
25
|
|
|
26
26
|
//#region src/api/useIntlayerAPI.ts
|
|
27
27
|
const useIntlayerOAuthOptions = (props) => {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import { useUser } from "../../api/useUser/index.mjs";
|
|
4
3
|
import { Button, ButtonColor, ButtonSize, ButtonVariant } from "../Button/Button.mjs";
|
|
5
4
|
import { AutoCompleteTextarea } from "../TextArea/AutocompleteTextArea.mjs";
|
|
5
|
+
import { useUser } from "../../api/useUser/index.mjs";
|
|
6
6
|
import { useEffect, useState } from "react";
|
|
7
7
|
import { Check, X } from "lucide-react";
|
|
8
8
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import { useAuditContentDeclarationField } from "../../../api/hooks/ai.mjs";
|
|
4
3
|
import { Container } from "../../Container/index.mjs";
|
|
5
4
|
import { Loader } from "../../Loader/index.mjs";
|
|
6
5
|
import { Button, ButtonColor, ButtonSize, ButtonTextAlign, ButtonVariant } from "../../Button/Button.mjs";
|
|
@@ -8,6 +7,7 @@ import { Accordion } from "../../Accordion/Accordion.mjs";
|
|
|
8
7
|
import { InputVariant } from "../../Input/Input.mjs";
|
|
9
8
|
import { SwitchSelector, SwitchSelectorColor, SwitchSelectorSize } from "../../SwitchSelector/SwitchSelector.mjs";
|
|
10
9
|
import { useLocaleSwitcherContent } from "../../LocaleSwitcherContentDropDown/LocaleSwitcherContentContext.mjs";
|
|
10
|
+
import { useAuditContentDeclarationField } from "../../../api/hooks/ai.mjs";
|
|
11
11
|
import { ContentEditorInput as ContentEditorInput$1 } from "../../ContentEditor/ContentEditorInput.mjs";
|
|
12
12
|
import { ContentEditorTextArea as ContentEditorTextArea$1 } from "../../ContentEditor/ContentEditorTextArea.mjs";
|
|
13
13
|
import { renameKey } from "./object.mjs";
|
|
@@ -17,9 +17,9 @@ import { SafeHtmlRenderer } from "./SafeHtmlRenderer.mjs";
|
|
|
17
17
|
import { Fragment, Suspense, lazy, memo, useState } from "react";
|
|
18
18
|
import { Plus, Trash, WandSparkles } from "lucide-react";
|
|
19
19
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
20
|
-
import { useConfiguration, useEditedContent } from "@intlayer/editor-react";
|
|
21
20
|
import { useIntlayer, useLocale } from "react-intlayer";
|
|
22
21
|
import { getLocaleName } from "@intlayer/core/localization";
|
|
22
|
+
import { useConfiguration, useEditedContent } from "@intlayer/editor-react";
|
|
23
23
|
import { getEmptyNode, getNodeType } from "@intlayer/core/dictionaryManipulator";
|
|
24
24
|
import * as NodeTypes from "@intlayer/types/nodeType";
|
|
25
25
|
import { camelCaseToSentence } from "@intlayer/config/client";
|
package/dist/esm/components/DictionaryFieldEditor/DictionaryCreationForm/DictionaryCreationForm.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
+
import { ButtonColor } from "../../Button/Button.mjs";
|
|
3
4
|
import { useSession } from "../../../api/useAuth/useSession.mjs";
|
|
4
5
|
import { useAddDictionary } from "../../../api/hooks/dictionary.mjs";
|
|
5
6
|
import { useGetProjects } from "../../../api/hooks/project.mjs";
|
|
6
|
-
import { ButtonColor } from "../../Button/Button.mjs";
|
|
7
7
|
import { MultiSelect } from "../../Select/Multiselect.mjs";
|
|
8
8
|
import { useForm } from "../../Form/FormBase.mjs";
|
|
9
9
|
import { Form } from "../../Form/Form.mjs";
|
package/dist/esm/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.mjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
+
import { Loader } from "../../Loader/index.mjs";
|
|
4
|
+
import { ButtonColor, ButtonSize, ButtonVariant } from "../../Button/Button.mjs";
|
|
5
|
+
import { Checkbox } from "../../Input/Checkbox.mjs";
|
|
3
6
|
import { useSession } from "../../../api/useAuth/useSession.mjs";
|
|
4
7
|
import { useAuditContentDeclarationMetadata } from "../../../api/hooks/ai.mjs";
|
|
5
8
|
import { useGetProjects } from "../../../api/hooks/project.mjs";
|
|
6
9
|
import { useGetTags } from "../../../api/hooks/tag.mjs";
|
|
7
|
-
import { Loader } from "../../Loader/index.mjs";
|
|
8
|
-
import { ButtonColor, ButtonSize, ButtonVariant } from "../../Button/Button.mjs";
|
|
9
|
-
import { Checkbox } from "../../Input/Checkbox.mjs";
|
|
10
10
|
import { MultiSelect } from "../../Select/Multiselect.mjs";
|
|
11
11
|
import { Select } from "../../Select/Select.mjs";
|
|
12
12
|
import { useForm as useForm$1 } from "../../Form/FormBase.mjs";
|
|
@@ -15,8 +15,8 @@ import { useDictionaryDetailsSchema } from "./useDictionaryDetailsSchema.mjs";
|
|
|
15
15
|
import { useEffect } from "react";
|
|
16
16
|
import { WandSparkles } from "lucide-react";
|
|
17
17
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
18
|
-
import { useEditedContent } from "@intlayer/editor-react";
|
|
19
18
|
import { useIntlayer } from "react-intlayer";
|
|
19
|
+
import { useEditedContent } from "@intlayer/editor-react";
|
|
20
20
|
import { useWatch } from "react-hook-form";
|
|
21
21
|
import { AnimatePresence, motion } from "framer-motion";
|
|
22
22
|
|
|
@@ -13,8 +13,8 @@ import { StructureEditor } from "./StructureEditor.mjs";
|
|
|
13
13
|
import { useEffect, useState } from "react";
|
|
14
14
|
import { ArrowLeft } from "lucide-react";
|
|
15
15
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
16
|
-
import { useConfiguration, useDictionariesRecordActions, useFocusUnmergedDictionary } from "@intlayer/editor-react";
|
|
17
16
|
import { useIntlayer } from "react-intlayer";
|
|
17
|
+
import { useConfiguration, useDictionariesRecordActions, useFocusUnmergedDictionary } from "@intlayer/editor-react";
|
|
18
18
|
|
|
19
19
|
//#region src/components/DictionaryFieldEditor/DictionaryFieldEditor.tsx
|
|
20
20
|
const DictionaryFieldEditor = ({ dictionary, onClickDictionaryList, isDarkMode, mode, onDelete, onSave, showReturnButton = true }) => {
|
|
@@ -5,8 +5,8 @@ import { getIsEditableSection } from "../getIsEditableSection.mjs";
|
|
|
5
5
|
import { useState } from "react";
|
|
6
6
|
import { ChevronRight, Plus } from "lucide-react";
|
|
7
7
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
-
import { useEditedContentActions, useEditorLocale, useFocusUnmergedDictionary } from "@intlayer/editor-react";
|
|
9
8
|
import { useIntlayer } from "react-intlayer";
|
|
9
|
+
import { useEditedContentActions, useEditorLocale, useFocusUnmergedDictionary } from "@intlayer/editor-react";
|
|
10
10
|
import { getContentNodeByKeyPath, getEmptyNode, getNodeType } from "@intlayer/core/dictionaryManipulator";
|
|
11
11
|
import * as NodeTypes from "@intlayer/types/nodeType";
|
|
12
12
|
import { isSameKeyPath } from "@intlayer/core/utils";
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
import { cn } from "../../../utils/cn.mjs";
|
|
4
|
+
import { ButtonColor, ButtonVariant } from "../../Button/Button.mjs";
|
|
4
5
|
import { useAuth } from "../../../api/useAuth/useAuth.mjs";
|
|
5
6
|
import { useDeleteDictionary, usePushDictionaries } from "../../../api/hooks/dictionary.mjs";
|
|
6
7
|
import { useWriteDictionary } from "../../../api/hooks/editor.mjs";
|
|
7
|
-
import { ButtonColor, ButtonVariant } from "../../Button/Button.mjs";
|
|
8
8
|
import { Form } from "../../Form/Form.mjs";
|
|
9
9
|
import { Modal, ModalSize } from "../../Modal/Modal.mjs";
|
|
10
10
|
import { useState } from "react";
|
|
11
11
|
import { ArrowUpFromLine, Download, RotateCcw, Save, Trash } from "lucide-react";
|
|
12
12
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
13
|
-
import { useDictionariesRecordActions, useEditedContent } from "@intlayer/editor-react";
|
|
14
13
|
import { useIntlayer } from "react-intlayer";
|
|
14
|
+
import { useDictionariesRecordActions, useEditedContent } from "@intlayer/editor-react";
|
|
15
15
|
|
|
16
16
|
//#region src/components/DictionaryFieldEditor/SaveForm/SaveForm.tsx
|
|
17
17
|
const SaveForm = ({ dictionary, mode, className, onDelete, onSave, ...props }) => {
|
|
@@ -7,8 +7,8 @@ import { EditableFieldInput } from "../../EditableField/EditableFieldInput.mjs";
|
|
|
7
7
|
import { NodeTypeSelector } from "../NodeTypeSelector.mjs";
|
|
8
8
|
import { Plus, Trash } from "lucide-react";
|
|
9
9
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
10
|
-
import { useConfiguration, useEditedContentActions, useFocusUnmergedDictionary } from "@intlayer/editor-react";
|
|
11
10
|
import { useIntlayer } from "react-intlayer";
|
|
11
|
+
import { useConfiguration, useEditedContentActions, useFocusUnmergedDictionary } from "@intlayer/editor-react";
|
|
12
12
|
import { getDefaultNode, getNodeChildren, getNodeType } from "@intlayer/core/dictionaryManipulator";
|
|
13
13
|
import * as NodeTypes from "@intlayer/types/nodeType";
|
|
14
14
|
import { isSameKeyPath } from "@intlayer/core/utils";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import { useItemSelector } from "../../../hooks/useItemSelector.mjs";
|
|
4
3
|
import { InputIndicator, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot } from "../../Input/OTPInput.mjs";
|
|
4
|
+
import { useItemSelector } from "../../../hooks/useItemSelector.mjs";
|
|
5
5
|
import { useFormField } from "../FormField.mjs";
|
|
6
6
|
import { FormItemLayout } from "../layout/FormItemLayout.mjs";
|
|
7
7
|
import { Form } from "../Form.mjs";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import { usePersistedStore } from "../../hooks/usePersistedStore.mjs";
|
|
4
3
|
import { Container } from "../Container/index.mjs";
|
|
5
4
|
import { Button, ButtonColor, ButtonSize, ButtonTextAlign, ButtonVariant } from "../Button/Button.mjs";
|
|
6
5
|
import { DropDown } from "../DropDown/index.mjs";
|
|
7
6
|
import { Input } from "../Input/Input.mjs";
|
|
8
7
|
import { SwitchSelector, SwitchSelectorColor, SwitchSelectorSize } from "../SwitchSelector/SwitchSelector.mjs";
|
|
8
|
+
import { usePersistedStore } from "../../hooks/usePersistedStore.mjs";
|
|
9
9
|
import { useLocaleSwitcherContent } from "./LocaleSwitcherContentContext.mjs";
|
|
10
10
|
import { useMemo, useRef, useState } from "react";
|
|
11
11
|
import { Check, Globe, MoveVertical } from "lucide-react";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
import { cn } from "../../utils/cn.mjs";
|
|
4
|
-
import { useGetElementOrWindow } from "../../hooks/useGetElementOrWindow.mjs";
|
|
5
|
-
import { useScrollBlockage } from "../../hooks/useScrollBlockage/index.mjs";
|
|
6
4
|
import { Container } from "../Container/index.mjs";
|
|
7
5
|
import { Button, ButtonColor, ButtonSize, ButtonVariant } from "../Button/Button.mjs";
|
|
6
|
+
import { useGetElementOrWindow } from "../../hooks/useGetElementOrWindow.mjs";
|
|
7
|
+
import { useScrollBlockage } from "../../hooks/useScrollBlockage/index.mjs";
|
|
8
8
|
import { H3 } from "../Headers/index.mjs";
|
|
9
9
|
import { useEffect } from "react";
|
|
10
10
|
import { cva } from "class-variance-authority";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
import { cn } from "../../utils/cn.mjs";
|
|
4
|
+
import { MaxHeightSmoother } from "../MaxHeightSmoother/index.mjs";
|
|
4
5
|
import { useScrollBlockage } from "../../hooks/useScrollBlockage/index.mjs";
|
|
5
6
|
import { useScrollDetection } from "../../hooks/useScrollDetection.mjs";
|
|
6
|
-
import { MaxHeightSmoother } from "../MaxHeightSmoother/index.mjs";
|
|
7
7
|
import { Burger } from "./Burger.mjs";
|
|
8
8
|
import { useRef, useState } from "react";
|
|
9
9
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
import { cn } from "../../utils/cn.mjs";
|
|
4
|
-
import { useItemSelector } from "../../hooks/useItemSelector.mjs";
|
|
5
4
|
import { Button, ButtonColor, ButtonSize, ButtonVariant } from "../Button/Button.mjs";
|
|
5
|
+
import { useItemSelector } from "../../hooks/useItemSelector.mjs";
|
|
6
6
|
import { useEffect, useRef } from "react";
|
|
7
7
|
import { cva } from "class-variance-authority";
|
|
8
8
|
import { ChevronLeft, ChevronRight, MoreHorizontal } from "lucide-react";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import { useGetElementOrWindow } from "../../hooks/useGetElementOrWindow.mjs";
|
|
4
|
-
import { useDevice } from "../../hooks/useDevice.mjs";
|
|
5
|
-
import { useScrollBlockage } from "../../hooks/useScrollBlockage/index.mjs";
|
|
6
3
|
import { Container } from "../Container/index.mjs";
|
|
7
4
|
import { Button, ButtonColor, ButtonSize, ButtonVariant } from "../Button/Button.mjs";
|
|
5
|
+
import { useDevice } from "../../hooks/useDevice.mjs";
|
|
8
6
|
import { KeyboardShortcut } from "../KeyboardShortcut/KeyboardShortcut.mjs";
|
|
9
7
|
import { Popover } from "../Popover/dynamic.mjs";
|
|
8
|
+
import { useGetElementOrWindow } from "../../hooks/useGetElementOrWindow.mjs";
|
|
9
|
+
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";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
import { cn } from "../../utils/cn.mjs";
|
|
4
|
-
import { useHorizontalSwipe } from "../../hooks/useHorizontalSwipe.mjs";
|
|
5
4
|
import { TabSelector, TabSelectorColor } from "../TabSelector/TabSelector.mjs";
|
|
5
|
+
import { useHorizontalSwipe } from "../../hooks/useHorizontalSwipe.mjs";
|
|
6
6
|
import { useTabContext } from "./TabContext.mjs";
|
|
7
7
|
import { Children, createContext, isValidElement, useState } from "react";
|
|
8
8
|
import { cva } from "class-variance-authority";
|
package/dist/esm/hooks/index.mjs
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { useKeyboardDetector } from "./useKeyboardDetector.mjs";
|
|
2
|
-
import { useGetElementOrWindow } from "./useGetElementOrWindow.mjs";
|
|
3
|
-
import { useScrollY } from "./useScrollY.mjs";
|
|
4
|
-
import { usePersistedStore } from "./usePersistedStore.mjs";
|
|
5
|
-
import { useHorizontalSwipe } from "./useHorizontalSwipe.mjs";
|
|
6
|
-
import { useItemSelector } from "./useItemSelector.mjs";
|
|
7
1
|
import { calculateIsMobile, checkIsIOS, checkIsIphoneOrSafariDevice, checkIsMac, checkIsMobileScreen, checkIsMobileUserAgent, getBreakpointFromSize, useDevice } from "./useDevice.mjs";
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
2
|
+
import { useItemSelector } from "./useItemSelector.mjs";
|
|
3
|
+
import { usePersistedStore } from "./usePersistedStore.mjs";
|
|
10
4
|
import { useGetElementById } from "./useGetElementById.mjs";
|
|
5
|
+
import { useGetElementOrWindow } from "./useGetElementOrWindow.mjs";
|
|
6
|
+
import { useHorizontalSwipe } from "./useHorizontalSwipe.mjs";
|
|
11
7
|
import { useIsDarkMode } from "./useIsDarkMode.mjs";
|
|
8
|
+
import { useIsMounted } from "./useIsMounted.mjs";
|
|
9
|
+
import { useKeyboardDetector } from "./useKeyboardDetector.mjs";
|
|
12
10
|
import { useScreenWidth } from "./useScreenWidth.mjs";
|
|
13
11
|
import { useScrollBlockage } from "./useScrollBlockage/index.mjs";
|
|
14
12
|
import { useScrollDetection } from "./useScrollDetection.mjs";
|
|
13
|
+
import { useScrollY } from "./useScrollY.mjs";
|
|
14
|
+
import { useSearch } from "./useSearch.mjs";
|
|
15
15
|
|
|
16
16
|
export { calculateIsMobile, checkIsIOS, checkIsIphoneOrSafariDevice, checkIsMac, checkIsMobileScreen, checkIsMobileUserAgent, getBreakpointFromSize, useDevice, useGetElementById, useGetElementOrWindow, useHorizontalSwipe, useIsDarkMode, useIsMounted, useItemSelector, useKeyboardDetector, usePersistedStore, useScreenWidth, useScrollBlockage, useScrollDetection, useScrollY, useSearch };
|
|
@@ -41,8 +41,8 @@ declare enum BadgeSize {
|
|
|
41
41
|
* @description Defines the styling variants for different badge combinations
|
|
42
42
|
*/
|
|
43
43
|
declare const badgeVariants: (props?: {
|
|
44
|
-
color?: "
|
|
45
|
-
variant?: "default" | "none" | "
|
|
44
|
+
color?: "text" | "error" | "primary" | "custom" | "secondary" | "neutral" | "light" | "dark" | "success";
|
|
45
|
+
variant?: "default" | "none" | "hoverable" | "outline";
|
|
46
46
|
size?: "sm" | "md" | "lg";
|
|
47
47
|
} & import("class-variance-authority/types").ClassProp) => string;
|
|
48
48
|
/**
|
|
@@ -60,9 +60,9 @@ declare enum ButtonTextAlign {
|
|
|
60
60
|
*/
|
|
61
61
|
declare const buttonVariants: (props?: {
|
|
62
62
|
size?: "xs" | "sm" | "md" | "lg" | "xl" | "icon-sm" | "icon-md" | "icon-lg" | "icon-xl";
|
|
63
|
-
color?: "
|
|
64
|
-
roundedSize?: "sm" | "md" | "lg" | "xl" | "2xl" | "none" | "3xl" | "
|
|
65
|
-
variant?: "
|
|
63
|
+
color?: "text" | "error" | "primary" | "custom" | "secondary" | "neutral" | "light" | "dark" | "text-inverse" | "success" | "card" | "current";
|
|
64
|
+
roundedSize?: "sm" | "md" | "lg" | "xl" | "2xl" | "none" | "3xl" | "full" | "4xl" | "5xl";
|
|
65
|
+
variant?: "default" | "input" | "none" | "invisible-link" | "hoverable" | "outline" | "link" | "fade";
|
|
66
66
|
textAlign?: "left" | "center" | "right";
|
|
67
67
|
isFullWidth?: boolean;
|
|
68
68
|
} & import("class-variance-authority/types").ClassProp) => string;
|
|
@@ -4,7 +4,7 @@ import { VariantProps } from "class-variance-authority";
|
|
|
4
4
|
//#region src/components/CollapsibleTable/CollapsibleTable.d.ts
|
|
5
5
|
declare const collapsibleTableVariants: (props?: {
|
|
6
6
|
size?: "sm" | "md" | "lg" | "xl" | "full";
|
|
7
|
-
variant?: "default" | "
|
|
7
|
+
variant?: "default" | "dark" | "ghost" | "outlined";
|
|
8
8
|
spacing?: "sm" | "md" | "lg" | "auto" | "none";
|
|
9
9
|
} & import("class-variance-authority/types").ClassProp) => string;
|
|
10
10
|
interface CollapsibleTableProps extends Omit<HTMLAttributes<HTMLElement>, 'title'>, VariantProps<typeof collapsibleTableVariants> {
|
|
@@ -27,7 +27,7 @@ declare const Command: {
|
|
|
27
27
|
ref?: React.Ref<HTMLInputElement>;
|
|
28
28
|
} & {
|
|
29
29
|
asChild?: boolean;
|
|
30
|
-
}, "key" | keyof import("react").InputHTMLAttributes<HTMLInputElement> | "asChild">, "
|
|
30
|
+
}, "key" | keyof import("react").InputHTMLAttributes<HTMLInputElement> | "asChild">, "value" | "onChange" | "type"> & {
|
|
31
31
|
value?: string;
|
|
32
32
|
onValueChange?: (search: string) => void;
|
|
33
33
|
} & import("react").RefAttributes<HTMLInputElement>>;
|
|
@@ -71,7 +71,7 @@ declare const Command: {
|
|
|
71
71
|
ref?: React.Ref<HTMLDivElement>;
|
|
72
72
|
} & {
|
|
73
73
|
asChild?: boolean;
|
|
74
|
-
}, "key" | keyof HTMLAttributes<HTMLDivElement> | "asChild">, "
|
|
74
|
+
}, "key" | keyof HTMLAttributes<HTMLDivElement> | "asChild">, "disabled" | "value" | "onSelect"> & {
|
|
75
75
|
disabled?: boolean;
|
|
76
76
|
onSelect?: (value: string) => void;
|
|
77
77
|
value?: string;
|
|
@@ -7,13 +7,13 @@ import { VariantProps } from "class-variance-authority";
|
|
|
7
7
|
* Provides flexible styling options for background, padding, borders, and layout
|
|
8
8
|
*/
|
|
9
9
|
declare const containerVariants: (props?: {
|
|
10
|
-
roundedSize?: "sm" | "md" | "lg" | "xl" | "2xl" | "none" | "3xl" | "
|
|
10
|
+
roundedSize?: "sm" | "md" | "lg" | "xl" | "2xl" | "none" | "3xl" | "full" | "4xl";
|
|
11
11
|
transparency?: "xs" | "sm" | "md" | "lg" | "xl" | "none" | "full";
|
|
12
12
|
padding?: "sm" | "md" | "lg" | "xl" | "2xl" | "none";
|
|
13
13
|
separator?: "both" | "without" | "x" | "y";
|
|
14
14
|
border?: "with" | "none";
|
|
15
|
-
borderColor?: "error" | "
|
|
16
|
-
background?: "with" | "
|
|
15
|
+
borderColor?: "error" | "text" | "primary" | "secondary" | "neutral" | "success" | "card" | "warning";
|
|
16
|
+
background?: "with" | "hoverable" | "none";
|
|
17
17
|
gap?: "sm" | "md" | "lg" | "xl" | "2xl" | "none";
|
|
18
18
|
} & import("class-variance-authority/types").ClassProp) => string;
|
|
19
19
|
/** Available rounded corner sizes for the container */
|
|
@@ -5,8 +5,8 @@ import { VariantProps } from "class-variance-authority";
|
|
|
5
5
|
declare const checkboxVariants: (props?: {
|
|
6
6
|
variant?: "default";
|
|
7
7
|
size?: "xs" | "sm" | "md" | "lg";
|
|
8
|
-
color?: "error" | "
|
|
9
|
-
validationStyleEnabled?: "
|
|
8
|
+
color?: "error" | "text" | "primary" | "secondary" | "neutral" | "light" | "dark" | "custom" | "success" | "text-inverse";
|
|
9
|
+
validationStyleEnabled?: "disabled" | "enabled";
|
|
10
10
|
} & import("class-variance-authority/types").ClassProp) => string;
|
|
11
11
|
declare enum CheckboxSize {
|
|
12
12
|
XS = "xs",
|
|
@@ -5,7 +5,7 @@ import { VariantProps } from "class-variance-authority";
|
|
|
5
5
|
declare const inputVariants: (props?: {
|
|
6
6
|
variant?: "default" | "invisible";
|
|
7
7
|
size?: "sm" | "md" | "lg";
|
|
8
|
-
validationStyleEnabled?: "
|
|
8
|
+
validationStyleEnabled?: "disabled" | "enabled";
|
|
9
9
|
} & import("class-variance-authority/types").ClassProp) => string;
|
|
10
10
|
declare enum InputVariant {
|
|
11
11
|
DEFAULT = "default",
|
|
@@ -51,9 +51,9 @@ declare enum LinkUnderlined {
|
|
|
51
51
|
FALSE = "false"
|
|
52
52
|
}
|
|
53
53
|
declare const linkVariants: (props?: {
|
|
54
|
-
variant?: "default" | "invisible-link" | "
|
|
54
|
+
variant?: "default" | "invisible-link" | "button" | "button-outlined" | "hoverable";
|
|
55
55
|
roundedSize?: "sm" | "md" | "lg" | "xl" | "2xl" | "none" | "3xl" | "full";
|
|
56
|
-
color?: "
|
|
56
|
+
color?: "text" | "error" | "primary" | "custom" | "secondary" | "neutral" | "light" | "dark" | "text-inverse" | "success";
|
|
57
57
|
size?: "sm" | "md" | "lg" | "xl" | "custom";
|
|
58
58
|
underlined?: boolean | LinkUnderlined.DEFAULT;
|
|
59
59
|
} & import("class-variance-authority/types").ClassProp) => string;
|
|
@@ -185,7 +185,7 @@ declare enum TagBackground {
|
|
|
185
185
|
}
|
|
186
186
|
declare const containerVariants: (props?: {
|
|
187
187
|
roundedSize?: "sm" | "md" | "lg" | "xl" | "2xl" | "none" | "3xl" | "full";
|
|
188
|
-
color?: "
|
|
188
|
+
color?: "text" | "error" | "primary" | "neutral" | "success" | "warning" | "blue" | "yellow" | "green" | "red" | "orange" | "purple" | "pink" | "brown" | "gray" | "black" | "white";
|
|
189
189
|
size?: "xs" | "sm" | "md" | "lg" | "xl";
|
|
190
190
|
border?: "none" | "with";
|
|
191
191
|
background?: "none" | "with";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intlayer/design-system",
|
|
3
|
-
"version": "8.11.
|
|
3
|
+
"version": "8.11.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": [
|
|
@@ -426,12 +426,12 @@
|
|
|
426
426
|
"dependencies": {
|
|
427
427
|
"@better-auth/passkey": "1.6.11",
|
|
428
428
|
"@better-auth/sso": "1.6.11",
|
|
429
|
-
"@intlayer/api": "8.11.
|
|
430
|
-
"@intlayer/config": "8.11.
|
|
431
|
-
"@intlayer/core": "8.11.
|
|
432
|
-
"@intlayer/dictionaries-entry": "8.11.
|
|
433
|
-
"@intlayer/editor-react": "8.11.
|
|
434
|
-
"@intlayer/types": "8.11.
|
|
429
|
+
"@intlayer/api": "8.11.1",
|
|
430
|
+
"@intlayer/config": "8.11.1",
|
|
431
|
+
"@intlayer/core": "8.11.1",
|
|
432
|
+
"@intlayer/dictionaries-entry": "8.11.1",
|
|
433
|
+
"@intlayer/editor-react": "8.11.1",
|
|
434
|
+
"@intlayer/types": "8.11.1",
|
|
435
435
|
"@radix-ui/react-dialog": "1.1.15",
|
|
436
436
|
"@radix-ui/react-select": "2.2.6",
|
|
437
437
|
"@radix-ui/react-slot": "1.2.4",
|
|
@@ -446,12 +446,12 @@
|
|
|
446
446
|
"defu": "6.1.7",
|
|
447
447
|
"dompurify": "^3.4.6",
|
|
448
448
|
"isomorphic-dompurify": "^3.14.0",
|
|
449
|
-
"react-intlayer": "8.11.
|
|
449
|
+
"react-intlayer": "8.11.1",
|
|
450
450
|
"rollup-preserve-directives": "1.1.3",
|
|
451
451
|
"zod": "4.4.3"
|
|
452
452
|
},
|
|
453
453
|
"devDependencies": {
|
|
454
|
-
"@intlayer/backend": "8.11.
|
|
454
|
+
"@intlayer/backend": "8.11.1",
|
|
455
455
|
"@shikijs/transformers": "4.1.0",
|
|
456
456
|
"@storybook/addon-a11y": "8.6.14",
|
|
457
457
|
"@storybook/addon-essentials": "8.6.14",
|
|
@@ -482,7 +482,7 @@
|
|
|
482
482
|
"@utils/ts-config-types": "1.0.4",
|
|
483
483
|
"clsx": "2.1.1",
|
|
484
484
|
"fast-glob": "3.3.3",
|
|
485
|
-
"intlayer": "8.11.
|
|
485
|
+
"intlayer": "8.11.1",
|
|
486
486
|
"rimraf": "6.1.3",
|
|
487
487
|
"shiki": "4.1.0",
|
|
488
488
|
"storybook": "8.6.17",
|
|
@@ -490,26 +490,26 @@
|
|
|
490
490
|
"tsdown": "0.22.00",
|
|
491
491
|
"typescript": "6.0.3",
|
|
492
492
|
"vite": "8.0.14",
|
|
493
|
-
"vite-intlayer": "8.11.
|
|
493
|
+
"vite-intlayer": "8.11.1",
|
|
494
494
|
"vite-plugin-dts": "5.0.1",
|
|
495
495
|
"vitest": "4.1.7"
|
|
496
496
|
},
|
|
497
497
|
"peerDependencies": {
|
|
498
498
|
"@better-fetch/fetch": "1.1.21",
|
|
499
499
|
"@hookform/resolvers": "5.4.0",
|
|
500
|
-
"@intlayer/backend": "8.11.
|
|
500
|
+
"@intlayer/backend": "8.11.1",
|
|
501
501
|
"@monaco-editor/react": "4.7.0",
|
|
502
502
|
"@shikijs/transformers": "4.1.0",
|
|
503
503
|
"@tanstack/react-query": "5.100.14",
|
|
504
504
|
"@tanstack/react-query-devtools": "5.100.14",
|
|
505
505
|
"framer-motion": "12.40.0",
|
|
506
506
|
"fuse.js": "7.3.0",
|
|
507
|
-
"intlayer": "8.11.
|
|
507
|
+
"intlayer": "8.11.1",
|
|
508
508
|
"lucide-react": "1.16.0",
|
|
509
509
|
"react": ">=16.0.0",
|
|
510
510
|
"react-dom": ">=16.0.0",
|
|
511
511
|
"react-hook-form": "7.76.1",
|
|
512
|
-
"react-intlayer": "8.11.
|
|
512
|
+
"react-intlayer": "8.11.1",
|
|
513
513
|
"shiki": "4.1.0",
|
|
514
514
|
"tailwindcss": "4.3.0"
|
|
515
515
|
},
|
package/tailwind.css
CHANGED
|
@@ -115,10 +115,8 @@
|
|
|
115
115
|
--radius-sm: calc(var(--radius) - 4px);
|
|
116
116
|
}
|
|
117
117
|
|
|
118
|
-
@variant dark
|
|
119
|
-
(
|
|
120
|
-
:where([data-theme="dark"], [data-theme="dark"] *) &);
|
|
121
|
-
@variant light (:where([data-theme="light"], [data-theme="light"] *) &);
|
|
118
|
+
@custom-variant dark (:where([data-theme="dark"], [data-theme="dark"] *) &);
|
|
119
|
+
@custom-variant light (:where([data-theme="light"], [data-theme="light"] *) &);
|
|
122
120
|
|
|
123
121
|
:root,
|
|
124
122
|
[data-theme="light"] {
|
|
@@ -234,4 +232,4 @@
|
|
|
234
232
|
|
|
235
233
|
@plugin '@tailwindcss/aspect-ratio';
|
|
236
234
|
|
|
237
|
-
@source "./src/**/*.{ts,tsx,
|
|
235
|
+
@source "./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}";
|