@intlayer/design-system 8.6.8 → 8.6.9

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.
@@ -3,13 +3,13 @@ import { Accordion } from "../../Accordion/Accordion.mjs";
3
3
  import { getIsEditableSection } from "../getIsEditableSection.mjs";
4
4
  import { ChevronRight, Plus } from "lucide-react";
5
5
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
6
- import { internationalization } from "@intlayer/config/built";
7
6
  import { useIntlayer } from "react-intlayer";
8
7
  import { useEditedContentActions, useEditorLocale, useFocusUnmergedDictionary } from "@intlayer/editor-react";
9
8
  import { getContentNodeByKeyPath, getEmptyNode, getNodeType } from "@intlayer/core/dictionaryManipulator";
10
9
  import * as NodeTypes from "@intlayer/types/nodeType";
11
10
  import { isSameKeyPath } from "@intlayer/core/utils";
12
11
  import { camelCaseToSentence } from "@intlayer/config/client";
12
+ import { internationalization } from "@intlayer/config/built";
13
13
 
14
14
  //#region src/components/DictionaryFieldEditor/NavigationView/NavigationViewNode.tsx
15
15
  const traceKeys = [
@@ -1,9 +1,9 @@
1
1
  'use client';
2
2
 
3
3
  import { useQuery } from "@tanstack/react-query";
4
- import configuration from "@intlayer/config/built";
5
4
  import { useConfiguration } from "@intlayer/editor-react";
6
5
  import { getOAuthAPI } from "@intlayer/api";
6
+ import configuration from "@intlayer/config/built";
7
7
 
8
8
  //#region src/hooks/useAuth/useOAuth2.ts
9
9
  const useOAuth2 = (intlayerConfiguration) => {
@@ -3,8 +3,8 @@
3
3
  import { getAuthAPI } from "../../libs/auth.mjs";
4
4
  import { useQueryClient } from "../reactQuery.mjs";
5
5
  import { useQuery } from "@tanstack/react-query";
6
- import configuration from "@intlayer/config/built";
7
6
  import { useConfiguration } from "@intlayer/editor-react";
7
+ import configuration from "@intlayer/config/built";
8
8
 
9
9
  //#region src/hooks/useAuth/useSession.ts
10
10
  const useSession = (sessionProp, intlayerConfiguration) => {
@@ -1,6 +1,6 @@
1
+ import configuration from "@intlayer/config/built";
1
2
  import { passkeyClient } from "@better-auth/passkey/client";
2
3
  import { ssoClient } from "@better-auth/sso/client";
3
- import configuration from "@intlayer/config/built";
4
4
  import { BACKEND_URL } from "@intlayer/config/defaultValues";
5
5
  import { createAuthClient } from "better-auth/client";
6
6
  import { magicLinkClient, twoFactorClient } from "better-auth/client/plugins";
@@ -43,9 +43,9 @@ declare enum BadgeSize {
43
43
  * @description Defines the styling variants for different badge combinations
44
44
  */
45
45
  declare const badgeVariants: (props?: {
46
- color?: "text" | "error" | "custom" | "primary" | "secondary" | "destructive" | "neutral" | "light" | "dark" | "success";
47
- variant?: "none" | "default" | "outline" | "hoverable";
48
- size?: "sm" | "md" | "lg";
46
+ color?: "text" | "primary" | "secondary" | "destructive" | "neutral" | "light" | "dark" | "error" | "success" | "custom";
47
+ variant?: "default" | "none" | "outline" | "hoverable";
48
+ size?: "md" | "sm" | "lg";
49
49
  } & _$class_variance_authority_types0.ClassProp) => string;
50
50
  /**
51
51
  * Badge component props interface
@@ -60,10 +60,10 @@ declare enum ButtonTextAlign {
60
60
  * Enhanced button variants with improved accessibility and focus states
61
61
  */
62
62
  declare const buttonVariants: (props?: {
63
- size?: "sm" | "md" | "lg" | "xl" | "icon-sm" | "icon-md" | "icon-lg" | "icon-xl";
64
- color?: "text" | "error" | "custom" | "primary" | "secondary" | "destructive" | "neutral" | "card" | "light" | "dark" | "current" | "text-inverse" | "success";
65
- roundedSize?: "none" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "full";
66
- variant?: "input" | "none" | "default" | "outline" | "link" | "invisible-link" | "hoverable" | "fade";
63
+ size?: "md" | "sm" | "lg" | "xl" | "icon-sm" | "icon-md" | "icon-lg" | "icon-xl";
64
+ color?: "text" | "primary" | "secondary" | "destructive" | "neutral" | "card" | "light" | "dark" | "current" | "text-inverse" | "error" | "success" | "custom";
65
+ roundedSize?: "md" | "sm" | "lg" | "xl" | "none" | "2xl" | "3xl" | "4xl" | "5xl" | "full";
66
+ variant?: "input" | "default" | "none" | "outline" | "link" | "invisible-link" | "hoverable" | "fade";
67
67
  textAlign?: "left" | "center" | "right";
68
68
  isFullWidth?: boolean;
69
69
  } & _$class_variance_authority_types0.ClassProp) => string;
@@ -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" | "ghost" | "dark" | "outlined";
9
- spacing?: "none" | "sm" | "md" | "lg" | "auto";
8
+ variant?: "default" | "dark" | "ghost" | "outlined";
9
+ spacing?: "sm" | "md" | "lg" | "none" | "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" | keyof _$react.InputHTMLAttributes<HTMLInputElement> | "asChild">, "onChange" | "type" | "value"> & {
32
+ }, "key" | keyof _$react.InputHTMLAttributes<HTMLInputElement> | "asChild">, "type" | "value" | "onChange"> & {
33
33
  value?: string;
34
34
  onValueChange?: (search: string) => void;
35
35
  } & _$react.RefAttributes<HTMLInputElement>>;
@@ -73,7 +73,7 @@ declare const Command: {
73
73
  ref?: React.Ref<HTMLDivElement>;
74
74
  } & {
75
75
  asChild?: boolean;
76
- }, "key" | keyof HTMLAttributes<HTMLDivElement> | "asChild">, "onSelect" | "disabled" | "value"> & {
76
+ }, "key" | keyof HTMLAttributes<HTMLDivElement> | "asChild">, "disabled" | "value" | "onSelect"> & {
77
77
  disabled?: boolean;
78
78
  onSelect?: (value: string) => void;
79
79
  value?: string;
@@ -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?: "none" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "full";
12
- transparency?: "none" | "xs" | "sm" | "md" | "lg" | "xl" | "full";
13
- padding?: "none" | "sm" | "md" | "lg" | "xl" | "2xl";
11
+ roundedSize?: "sm" | "md" | "lg" | "xl" | "none" | "2xl" | "3xl" | "4xl" | "full";
12
+ transparency?: "sm" | "md" | "lg" | "xs" | "xl" | "none" | "full";
13
+ padding?: "sm" | "md" | "lg" | "xl" | "none" | "2xl";
14
14
  separator?: "both" | "without" | "x" | "y";
15
15
  border?: "none" | "with";
16
- borderColor?: "error" | "success" | "text" | "primary" | "secondary" | "neutral" | "card" | "warning";
16
+ borderColor?: "error" | "text" | "success" | "primary" | "secondary" | "neutral" | "card" | "warning";
17
17
  background?: "none" | "with" | "hoverable";
18
- gap?: "none" | "sm" | "md" | "lg" | "xl" | "2xl";
18
+ gap?: "sm" | "md" | "lg" | "xl" | "none" | "2xl";
19
19
  } & _$class_variance_authority_types0.ClassProp) => string;
20
20
  /** Available rounded corner sizes for the container */
21
21
  declare enum ContainerRoundedSize {
@@ -5,9 +5,9 @@ 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?: "xs" | "sm" | "md" | "lg";
9
- color?: "error" | "success" | "text" | "custom" | "primary" | "secondary" | "neutral" | "destructive" | "light" | "dark";
10
- validationStyleEnabled?: "enabled" | "disabled";
8
+ size?: "sm" | "md" | "lg" | "xs";
9
+ color?: "error" | "text" | "success" | "primary" | "secondary" | "destructive" | "neutral" | "light" | "dark" | "custom";
10
+ validationStyleEnabled?: "disabled" | "enabled";
11
11
  } & _$class_variance_authority_types0.ClassProp) => string;
12
12
  declare enum CheckboxSize {
13
13
  XS = "xs",
@@ -6,7 +6,7 @@ import { VariantProps } from "class-variance-authority";
6
6
  declare const inputVariants: (props?: {
7
7
  variant?: "default" | "invisible";
8
8
  size?: "sm" | "md" | "lg";
9
- validationStyleEnabled?: "enabled" | "disabled";
9
+ validationStyleEnabled?: "disabled" | "enabled";
10
10
  } & _$class_variance_authority_types0.ClassProp) => string;
11
11
  declare enum InputVariant {
12
12
  DEFAULT = "default",
@@ -54,9 +54,9 @@ declare enum LinkUnderlined {
54
54
  }
55
55
  declare const linkVariants: (props?: {
56
56
  variant?: "default" | "invisible-link" | "hoverable" | "button" | "button-outlined";
57
- roundedSize?: "none" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "full";
58
- color?: "text" | "error" | "custom" | "primary" | "secondary" | "destructive" | "neutral" | "light" | "dark" | "text-inverse" | "success";
59
- size?: "sm" | "md" | "lg" | "xl" | "custom";
57
+ roundedSize?: "md" | "sm" | "lg" | "xl" | "none" | "2xl" | "3xl" | "full";
58
+ color?: "text" | "primary" | "secondary" | "destructive" | "neutral" | "light" | "dark" | "text-inverse" | "error" | "success" | "custom";
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" | "neutral" | "destructive";
8
+ color?: "text" | "primary" | "secondary" | "destructive" | "neutral";
9
9
  variant?: "default" | "bordered" | "ghost";
10
10
  } & _$class_variance_authority_types0.ClassProp) => string;
11
11
  declare enum PaginationSize {
@@ -38,7 +38,7 @@ declare enum SwitchSelectorSize {
38
38
  LG = "lg"
39
39
  }
40
40
  declare const choiceVariant: (props?: {
41
- size?: "sm" | "md" | "lg";
41
+ size?: "md" | "sm" | "lg";
42
42
  } & _$class_variance_authority_types0.ClassProp) => string;
43
43
  /**
44
44
  *
@@ -15,7 +15,7 @@ declare enum TabSelectorColor {
15
15
  TEXT = "text"
16
16
  }
17
17
  declare const tabSelectorVariant: (props?: {
18
- color?: "text" | "primary" | "secondary" | "neutral" | "destructive" | "light" | "dark";
18
+ color?: "text" | "primary" | "secondary" | "destructive" | "neutral" | "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?: "none" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "full";
189
- color?: "text" | "error" | "primary" | "neutral" | "success" | "warning" | "blue" | "yellow" | "green" | "red" | "orange" | "purple" | "pink" | "brown" | "gray" | "black" | "white";
190
- size?: "xs" | "sm" | "md" | "lg" | "xl";
188
+ roundedSize?: "md" | "sm" | "lg" | "xl" | "none" | "2xl" | "3xl" | "full";
189
+ color?: "text" | "primary" | "neutral" | "error" | "success" | "warning" | "blue" | "yellow" | "green" | "red" | "orange" | "purple" | "pink" | "brown" | "gray" | "black" | "white";
190
+ size?: "md" | "xs" | "sm" | "lg" | "xl";
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.8",
3
+ "version": "8.6.9",
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.8",
120
- "@intlayer/config": "8.6.8",
121
- "@intlayer/core": "8.6.8",
122
- "@intlayer/dictionaries-entry": "8.6.8",
123
- "@intlayer/editor-react": "8.6.8",
124
- "@intlayer/types": "8.6.8",
119
+ "@intlayer/api": "8.6.9",
120
+ "@intlayer/config": "8.6.9",
121
+ "@intlayer/core": "8.6.9",
122
+ "@intlayer/dictionaries-entry": "8.6.9",
123
+ "@intlayer/editor-react": "8.6.9",
124
+ "@intlayer/types": "8.6.9",
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.8",
133
+ "react-intlayer": "8.6.9",
134
134
  "rollup-preserve-directives": "1.1.3",
135
135
  "zod": "4.3.6"
136
136
  },
137
137
  "devDependencies": {
138
- "@intlayer/backend": "8.6.8",
138
+ "@intlayer/backend": "8.6.9",
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.8",
168
+ "intlayer": "8.6.9",
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.8",
176
+ "vite-intlayer": "8.6.9",
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.8",
183
+ "@intlayer/backend": "8.6.9",
184
184
  "@monaco-editor/react": "4.7.0",
185
185
  "@shikijs/transformers": "4.0.2",
186
186
  "@tanstack/react-query": "5.96.2",
187
187
  "@tanstack/react-query-devtools": "5.95.2",
188
188
  "framer-motion": "12.38.0",
189
189
  "fuse.js": "7.2.0",
190
- "intlayer": "8.6.8",
190
+ "intlayer": "8.6.9",
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.8",
195
+ "react-intlayer": "8.6.9",
196
196
  "shiki": "4.0.2",
197
197
  "tailwindcss": "4.2.1"
198
198
  },
package/tailwind.css CHANGED
@@ -72,17 +72,17 @@
72
72
  --color-neutral-900: rgba(61, 61, 61);
73
73
  --color-neutral-950: rgba(48, 48, 48);
74
74
 
75
- --color-success: rgba(0, 204, 102);
76
- --color-success-50: rgba(254, 244, 255);
77
- --color-success-100: rgba(252, 232, 255);
78
- --color-success-200: rgba(248, 208, 254);
79
- --color-success-300: rgba(241, 171, 252);
80
- --color-success-400: rgba(203, 235, 64);
81
- --color-success-500: rgba(197, 101, 212);
82
- --color-success-600: rgba(163, 81, 175);
83
- --color-success-700: rgba(128, 61, 139);
84
- --color-success-800: rgba(93, 41, 102);
85
- --color-success-900: rgba(59, 21, 65);
75
+ --color-success: rgba(0, 204, 102, 1);
76
+ --color-success-50: rgba(235, 251, 243, 1);
77
+ --color-success-100: rgba(186, 242, 214, 1);
78
+ --color-success-200: rgba(121, 232, 180, 1);
79
+ --color-success-300: rgba(54, 219, 145, 1);
80
+ --color-success-400: rgba(26, 211, 123, 1);
81
+ --color-success-500: rgba(0, 184, 92, 1);
82
+ --color-success-600: rgba(0, 153, 77, 1);
83
+ --color-success-700: rgba(0, 122, 61, 1);
84
+ --color-success-800: rgba(0, 92, 46, 1);
85
+ --color-success-900: rgba(0, 61, 31, 1);
86
86
 
87
87
  --color-warning: rgba(214, 153, 66);
88
88
  --color-warning-50: rgba(254, 251, 232);