@intlayer/design-system 8.6.5 → 8.6.7
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/DictionaryFieldEditor/NavigationView/NavigationViewNode.mjs +1 -1
- package/dist/esm/hooks/useAuth/useOAuth2.mjs +1 -1
- package/dist/esm/hooks/useAuth/useSession.mjs +1 -1
- package/dist/types/components/Badge/index.d.ts +1 -1
- package/dist/types/components/Button/Button.d.ts +4 -4
- package/dist/types/components/CollapsibleTable/CollapsibleTable.d.ts +2 -2
- package/dist/types/components/Command/index.d.ts +1 -1
- package/dist/types/components/Container/index.d.ts +4 -4
- package/dist/types/components/Input/Checkbox.d.ts +2 -2
- package/dist/types/components/Link/Link.d.ts +3 -3
- package/dist/types/components/Pagination/Pagination.d.ts +1 -1
- package/dist/types/components/SwitchSelector/index.d.ts +1 -1
- package/dist/types/components/TabSelector/TabSelector.d.ts +1 -1
- package/dist/types/components/Tag/index.d.ts +2 -2
- package/package.json +14 -14
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Button, ButtonColor, ButtonTextAlign, ButtonVariant } from "../../Button/Button.mjs";
|
|
2
2
|
import { Accordion } from "../../Accordion/Accordion.mjs";
|
|
3
3
|
import { getIsEditableSection } from "../getIsEditableSection.mjs";
|
|
4
|
+
import { internationalization } from "@intlayer/config/built";
|
|
4
5
|
import { ChevronRight, Plus } from "lucide-react";
|
|
5
6
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
-
import { internationalization } from "@intlayer/config/built";
|
|
7
7
|
import { useEditedContentActions, useEditorLocale, useFocusUnmergedDictionary } from "@intlayer/editor-react";
|
|
8
8
|
import { useIntlayer } from "react-intlayer";
|
|
9
9
|
import { getContentNodeByKeyPath, getEmptyNode, getNodeType } from "@intlayer/core/dictionaryManipulator";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import { useQuery } from "@tanstack/react-query";
|
|
4
3
|
import configuration from "@intlayer/config/built";
|
|
4
|
+
import { useQuery } from "@tanstack/react-query";
|
|
5
5
|
import { useConfiguration } from "@intlayer/editor-react";
|
|
6
6
|
import { getOAuthAPI } from "@intlayer/api";
|
|
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 configuration from "@intlayer/config/built";
|
|
6
|
+
import { useQuery } from "@tanstack/react-query";
|
|
7
7
|
import { useConfiguration } from "@intlayer/editor-react";
|
|
8
8
|
|
|
9
9
|
//#region src/hooks/useAuth/useSession.ts
|
|
@@ -45,7 +45,7 @@ declare enum BadgeSize {
|
|
|
45
45
|
declare const badgeVariants: (props?: {
|
|
46
46
|
color?: "text" | "primary" | "secondary" | "destructive" | "neutral" | "light" | "dark" | "error" | "success" | "custom";
|
|
47
47
|
variant?: "none" | "default" | "outline" | "hoverable";
|
|
48
|
-
size?: "
|
|
48
|
+
size?: "md" | "sm" | "lg";
|
|
49
49
|
} & _$class_variance_authority_types0.ClassProp) => string;
|
|
50
50
|
/**
|
|
51
51
|
* Badge component props interface
|
|
@@ -60,11 +60,11 @@ declare enum ButtonTextAlign {
|
|
|
60
60
|
* Enhanced button variants with improved accessibility and focus states
|
|
61
61
|
*/
|
|
62
62
|
declare const buttonVariants: (props?: {
|
|
63
|
-
size?: "
|
|
63
|
+
size?: "md" | "sm" | "lg" | "xl" | "icon-sm" | "icon-md" | "icon-lg" | "icon-xl";
|
|
64
64
|
color?: "text" | "primary" | "secondary" | "destructive" | "neutral" | "card" | "light" | "dark" | "current" | "text-inverse" | "error" | "success" | "custom";
|
|
65
|
-
roundedSize?: "
|
|
66
|
-
variant?: "input" | "none" | "default" | "
|
|
67
|
-
textAlign?: "left" | "
|
|
65
|
+
roundedSize?: "none" | "md" | "sm" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "full";
|
|
66
|
+
variant?: "input" | "none" | "default" | "outline" | "link" | "invisible-link" | "hoverable" | "fade";
|
|
67
|
+
textAlign?: "left" | "right" | "center";
|
|
68
68
|
isFullWidth?: boolean;
|
|
69
69
|
} & _$class_variance_authority_types0.ClassProp) => string;
|
|
70
70
|
/**
|
|
@@ -5,8 +5,8 @@ import { VariantProps } from "class-variance-authority";
|
|
|
5
5
|
//#region src/components/CollapsibleTable/CollapsibleTable.d.ts
|
|
6
6
|
declare const collapsibleTableVariants: (props?: {
|
|
7
7
|
size?: "sm" | "md" | "lg" | "xl" | "full";
|
|
8
|
-
variant?: "default" | "
|
|
9
|
-
spacing?: "
|
|
8
|
+
variant?: "default" | "ghost" | "dark" | "outlined";
|
|
9
|
+
spacing?: "none" | "sm" | "md" | "lg" | "auto";
|
|
10
10
|
} & _$class_variance_authority_types0.ClassProp) => string;
|
|
11
11
|
interface CollapsibleTableProps extends Omit<HTMLAttributes<HTMLElement>, 'title'>, VariantProps<typeof collapsibleTableVariants> {
|
|
12
12
|
/** Table title displayed in the header */
|
|
@@ -29,7 +29,7 @@ declare const Command: {
|
|
|
29
29
|
ref?: React.Ref<HTMLInputElement>;
|
|
30
30
|
} & {
|
|
31
31
|
asChild?: boolean;
|
|
32
|
-
}, "key" |
|
|
32
|
+
}, "key" | keyof _$react.InputHTMLAttributes<HTMLInputElement> | "asChild">, "onChange" | "type" | "value"> & {
|
|
33
33
|
value?: string;
|
|
34
34
|
onValueChange?: (search: string) => void;
|
|
35
35
|
} & _$react.RefAttributes<HTMLInputElement>>;
|
|
@@ -8,14 +8,14 @@ import { VariantProps } from "class-variance-authority";
|
|
|
8
8
|
* Provides flexible styling options for background, padding, borders, and layout
|
|
9
9
|
*/
|
|
10
10
|
declare const containerVariants: (props?: {
|
|
11
|
-
roundedSize?: "sm" | "md" | "lg" | "xl" | "2xl" | "
|
|
12
|
-
transparency?: "
|
|
13
|
-
padding?: "sm" | "md" | "lg" | "xl" | "2xl"
|
|
11
|
+
roundedSize?: "none" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "full";
|
|
12
|
+
transparency?: "none" | "sm" | "md" | "lg" | "xs" | "xl" | "full";
|
|
13
|
+
padding?: "none" | "sm" | "md" | "lg" | "xl" | "2xl";
|
|
14
14
|
separator?: "both" | "without" | "x" | "y";
|
|
15
15
|
border?: "none" | "with";
|
|
16
16
|
borderColor?: "error" | "success" | "text" | "primary" | "secondary" | "neutral" | "card" | "warning";
|
|
17
17
|
background?: "none" | "with" | "hoverable";
|
|
18
|
-
gap?: "sm" | "md" | "lg" | "xl" | "2xl"
|
|
18
|
+
gap?: "none" | "sm" | "md" | "lg" | "xl" | "2xl";
|
|
19
19
|
} & _$class_variance_authority_types0.ClassProp) => string;
|
|
20
20
|
/** Available rounded corner sizes for the container */
|
|
21
21
|
declare enum ContainerRoundedSize {
|
|
@@ -5,8 +5,8 @@ import { VariantProps } from "class-variance-authority";
|
|
|
5
5
|
//#region src/components/Input/Checkbox.d.ts
|
|
6
6
|
declare const checkboxVariants: (props?: {
|
|
7
7
|
variant?: "default";
|
|
8
|
-
size?: "
|
|
9
|
-
color?: "error" | "success" | "text" | "primary" | "secondary" | "
|
|
8
|
+
size?: "sm" | "md" | "lg" | "xs";
|
|
9
|
+
color?: "error" | "success" | "text" | "primary" | "secondary" | "neutral" | "destructive" | "light" | "dark" | "custom";
|
|
10
10
|
validationStyleEnabled?: "enabled" | "disabled";
|
|
11
11
|
} & _$class_variance_authority_types0.ClassProp) => string;
|
|
12
12
|
declare enum CheckboxSize {
|
|
@@ -53,10 +53,10 @@ declare enum LinkUnderlined {
|
|
|
53
53
|
FALSE = "false"
|
|
54
54
|
}
|
|
55
55
|
declare const linkVariants: (props?: {
|
|
56
|
-
variant?: "default" | "
|
|
57
|
-
roundedSize?: "
|
|
56
|
+
variant?: "default" | "invisible-link" | "hoverable" | "button" | "button-outlined";
|
|
57
|
+
roundedSize?: "none" | "md" | "sm" | "lg" | "xl" | "2xl" | "3xl" | "full";
|
|
58
58
|
color?: "text" | "primary" | "secondary" | "destructive" | "neutral" | "light" | "dark" | "text-inverse" | "error" | "success" | "custom";
|
|
59
|
-
size?: "
|
|
59
|
+
size?: "md" | "sm" | "lg" | "xl" | "custom";
|
|
60
60
|
underlined?: boolean | LinkUnderlined.DEFAULT;
|
|
61
61
|
} & _$class_variance_authority_types0.ClassProp) => string;
|
|
62
62
|
type LinkProps = DetailedHTMLProps<AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement> & VariantProps<typeof linkVariants> & {
|
|
@@ -5,7 +5,7 @@ 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?: "text" | "primary" | "secondary" | "
|
|
8
|
+
color?: "text" | "primary" | "secondary" | "neutral" | "destructive";
|
|
9
9
|
variant?: "default" | "bordered" | "ghost";
|
|
10
10
|
} & _$class_variance_authority_types0.ClassProp) => string;
|
|
11
11
|
declare enum PaginationSize {
|
|
@@ -15,7 +15,7 @@ declare enum TabSelectorColor {
|
|
|
15
15
|
TEXT = "text"
|
|
16
16
|
}
|
|
17
17
|
declare const tabSelectorVariant: (props?: {
|
|
18
|
-
color?: "text" | "primary" | "secondary" | "
|
|
18
|
+
color?: "text" | "primary" | "secondary" | "neutral" | "destructive" | "light" | "dark";
|
|
19
19
|
} & _$class_variance_authority_types0.ClassProp) => string;
|
|
20
20
|
type TabSelectorItemProps = HTMLAttributes<HTMLElement> & {
|
|
21
21
|
key: string | number;
|
|
@@ -185,9 +185,9 @@ declare enum TagBackground {
|
|
|
185
185
|
WITH = "with"
|
|
186
186
|
}
|
|
187
187
|
declare const containerVariants: (props?: {
|
|
188
|
-
roundedSize?: "
|
|
188
|
+
roundedSize?: "none" | "md" | "sm" | "lg" | "xl" | "2xl" | "3xl" | "full";
|
|
189
189
|
color?: "text" | "primary" | "neutral" | "error" | "success" | "warning" | "blue" | "yellow" | "green" | "red" | "orange" | "purple" | "pink" | "brown" | "gray" | "black" | "white";
|
|
190
|
-
size?: "
|
|
190
|
+
size?: "md" | "sm" | "lg" | "xl" | "xs";
|
|
191
191
|
border?: "none" | "with";
|
|
192
192
|
background?: "none" | "with";
|
|
193
193
|
} & _$class_variance_authority_types0.ClassProp) => string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intlayer/design-system",
|
|
3
|
-
"version": "8.6.
|
|
3
|
+
"version": "8.6.7",
|
|
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": [
|
|
@@ -116,12 +116,12 @@
|
|
|
116
116
|
"dependencies": {
|
|
117
117
|
"@better-auth/passkey": "1.5.6",
|
|
118
118
|
"@better-auth/sso": "1.5.6",
|
|
119
|
-
"@intlayer/api": "8.6.
|
|
120
|
-
"@intlayer/config": "8.6.
|
|
121
|
-
"@intlayer/core": "8.6.
|
|
122
|
-
"@intlayer/dictionaries-entry": "8.6.
|
|
123
|
-
"@intlayer/editor-react": "8.6.
|
|
124
|
-
"@intlayer/types": "8.6.
|
|
119
|
+
"@intlayer/api": "8.6.7",
|
|
120
|
+
"@intlayer/config": "8.6.7",
|
|
121
|
+
"@intlayer/core": "8.6.7",
|
|
122
|
+
"@intlayer/dictionaries-entry": "8.6.7",
|
|
123
|
+
"@intlayer/editor-react": "8.6.7",
|
|
124
|
+
"@intlayer/types": "8.6.7",
|
|
125
125
|
"@radix-ui/react-dialog": "1.1.15",
|
|
126
126
|
"@radix-ui/react-select": "2.2.6",
|
|
127
127
|
"@radix-ui/react-slot": "1.2.4",
|
|
@@ -130,12 +130,12 @@
|
|
|
130
130
|
"better-auth": "1.5.6",
|
|
131
131
|
"class-variance-authority": "0.7.1",
|
|
132
132
|
"cmdk": "1.1.1",
|
|
133
|
-
"react-intlayer": "8.6.
|
|
133
|
+
"react-intlayer": "8.6.7",
|
|
134
134
|
"rollup-preserve-directives": "1.1.3",
|
|
135
135
|
"zod": "4.3.6"
|
|
136
136
|
},
|
|
137
137
|
"devDependencies": {
|
|
138
|
-
"@intlayer/backend": "8.6.
|
|
138
|
+
"@intlayer/backend": "8.6.7",
|
|
139
139
|
"@shikijs/transformers": "4.0.2",
|
|
140
140
|
"@storybook/addon-a11y": "8.6.14",
|
|
141
141
|
"@storybook/addon-essentials": "8.6.14",
|
|
@@ -165,7 +165,7 @@
|
|
|
165
165
|
"@utils/ts-config-types": "1.0.4",
|
|
166
166
|
"clsx": "2.1.1",
|
|
167
167
|
"fast-glob": "3.3.3",
|
|
168
|
-
"intlayer": "8.6.
|
|
168
|
+
"intlayer": "8.6.7",
|
|
169
169
|
"rimraf": "6.1.3",
|
|
170
170
|
"shiki": "4.0.2",
|
|
171
171
|
"storybook": "8.6.17",
|
|
@@ -173,26 +173,26 @@
|
|
|
173
173
|
"tsdown": "0.21.7",
|
|
174
174
|
"typescript": "6.0.2",
|
|
175
175
|
"vite": "8.0.3",
|
|
176
|
-
"vite-intlayer": "8.6.
|
|
176
|
+
"vite-intlayer": "8.6.7",
|
|
177
177
|
"vite-plugin-dts": "4.5.4",
|
|
178
178
|
"vitest": "4.1.2"
|
|
179
179
|
},
|
|
180
180
|
"peerDependencies": {
|
|
181
181
|
"@better-fetch/fetch": "1.1.21",
|
|
182
182
|
"@hookform/resolvers": "5.2.2",
|
|
183
|
-
"@intlayer/backend": "8.6.
|
|
183
|
+
"@intlayer/backend": "8.6.7",
|
|
184
184
|
"@monaco-editor/react": "4.7.0",
|
|
185
185
|
"@shikijs/transformers": "4.0.2",
|
|
186
186
|
"@tanstack/react-query": "5.95.2",
|
|
187
187
|
"@tanstack/react-query-devtools": "5.95.2",
|
|
188
188
|
"framer-motion": "12.38.0",
|
|
189
189
|
"fuse.js": "7.1.0",
|
|
190
|
-
"intlayer": "8.6.
|
|
190
|
+
"intlayer": "8.6.7",
|
|
191
191
|
"lucide-react": "1.7.0",
|
|
192
192
|
"react": ">=16.0.0",
|
|
193
193
|
"react-dom": ">=16.0.0",
|
|
194
194
|
"react-hook-form": "7.72.0",
|
|
195
|
-
"react-intlayer": "8.6.
|
|
195
|
+
"react-intlayer": "8.6.7",
|
|
196
196
|
"shiki": "4.0.2",
|
|
197
197
|
"tailwindcss": "4.2.1"
|
|
198
198
|
},
|