@intlayer/design-system 9.0.0-canary.6 → 9.0.0-canary.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.
Files changed (28) hide show
  1. package/dist/esm/components/Form/elements/OTPElement.mjs +1 -1
  2. package/dist/esm/components/LocaleSwitcherContentDropDown/LocaleSwitcherContent.mjs +1 -1
  3. package/dist/esm/components/Modal/Modal.mjs +2 -2
  4. package/dist/esm/components/Navbar/MobileNavbar.mjs +1 -1
  5. package/dist/esm/components/Pagination/Pagination.mjs +1 -1
  6. package/dist/esm/components/RightDrawer/RightDrawer.mjs +3 -3
  7. package/dist/esm/components/SwitchSelector/useSwitchSelector.mjs +0 -1
  8. package/dist/esm/components/SwitchSelector/useSwitchSelector.mjs.map +1 -1
  9. package/dist/esm/components/Tab/Tab.mjs +1 -1
  10. package/dist/esm/hooks/index.mjs +8 -8
  11. package/dist/types/api/useIntlayerAPI.d.ts +2 -2
  12. package/dist/types/components/Badge/index.d.ts +2 -2
  13. package/dist/types/components/Breadcrumb/index.d.ts +1 -1
  14. package/dist/types/components/Button/Button.d.ts +4 -4
  15. package/dist/types/components/CollapsibleTable/CollapsibleTable.d.ts +1 -1
  16. package/dist/types/components/Command/index.d.ts +2 -2
  17. package/dist/types/components/Container/index.d.ts +5 -5
  18. package/dist/types/components/Input/Checkbox.d.ts +2 -2
  19. package/dist/types/components/Input/Radio.d.ts +2 -2
  20. package/dist/types/components/Link/Link.d.ts +3 -3
  21. package/dist/types/components/Pagination/Pagination.d.ts +2 -2
  22. package/dist/types/components/SwitchSelector/SwitchSelector.d.ts +3 -3
  23. package/dist/types/components/SwitchSelector/VerticalSwitchSelector.d.ts +1 -1
  24. package/dist/types/components/Tab/Tab.d.ts +1 -1
  25. package/dist/types/components/TabSelector/TabSelector.d.ts +1 -1
  26. package/dist/types/components/Tag/index.d.ts +3 -3
  27. package/dist/types/components/Toaster/Toast.d.ts +1 -1
  28. package/package.json +15 -15
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
 
3
- import { InputIndicator, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot } from "../../Input/OTPInput.mjs";
4
3
  import { useItemSelector } from "../../../hooks/useItemSelector.mjs";
4
+ import { InputIndicator, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot } from "../../Input/OTPInput.mjs";
5
5
  import { FormField, useFormField } from "../FormField.mjs";
6
6
  import { FormItemLayout } from "../layout/FormItemLayout.mjs";
7
7
  import { useEffect, useRef } from "react";
@@ -1,11 +1,11 @@
1
1
  'use client';
2
2
 
3
+ import { usePersistedStore } from "../../hooks/usePersistedStore.mjs";
3
4
  import { Button } from "../Button/Button.mjs";
4
5
  import { Container } from "../Container/index.mjs";
5
6
  import { DropDown } from "../DropDown/index.mjs";
6
7
  import { Input } from "../Input/Input.mjs";
7
8
  import { SwitchSelector } 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 { Button } from "../Button/Button.mjs";
5
- import { Container } from "../Container/index.mjs";
6
4
  import { useGetElementOrWindow } from "../../hooks/useGetElementOrWindow.mjs";
7
5
  import { useScrollBlockage } from "../../hooks/useScrollBlockage/index.mjs";
6
+ import { Button } from "../Button/Button.mjs";
7
+ import { Container } from "../Container/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";
5
4
  import { useScrollBlockage } from "../../hooks/useScrollBlockage/index.mjs";
6
5
  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 { Button } from "../Button/Button.mjs";
5
4
  import { useItemSelector } from "../../hooks/useItemSelector.mjs";
5
+ import { Button } from "../Button/Button.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";
3
6
  import { Button } from "../Button/Button.mjs";
4
7
  import { Container } from "../Container/index.mjs";
5
- import { useDevice } from "../../hooks/useDevice.mjs";
6
8
  import { KeyboardShortcut } from "../KeyboardShortcut/KeyboardShortcut.mjs";
7
9
  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";
@@ -17,7 +17,6 @@ const useSwitchSelector = ({ choices = [], value, defaultValue, onChange, hovera
17
17
  const selectedIndex = choices.findIndex((choice) => choice.value === valueState);
18
18
  const indicatorIndex = hoverable && hoveredIndex !== null ? hoveredIndex : selectedIndex;
19
19
  const handleChange = (newValue) => {
20
- console.log("useSwitchSelector handleChange", newValue);
21
20
  setValue(newValue);
22
21
  onChange?.(newValue);
23
22
  };
@@ -1 +1 @@
1
- {"version":3,"file":"useSwitchSelector.mjs","names":[],"sources":["../../../../src/components/SwitchSelector/useSwitchSelector.ts"],"sourcesContent":["'use client';\n\nimport {\n type ItemSelectorOrientation,\n useItemSelector,\n} from '@hooks/useItemSelector';\nimport { useEffect, useRef, useState } from 'react';\nimport type { SwitchSelectorBaseProps } from './SwitchSelector';\n\nexport const useSwitchSelector = <T>(\n {\n choices = [],\n value,\n defaultValue,\n onChange,\n hoverable = true,\n disabled = false,\n }: SwitchSelectorBaseProps<T>,\n orientation: ItemSelectorOrientation\n) => {\n const [valueState, setValue] = useState<T>(\n value ?? defaultValue ?? choices[0]?.value\n );\n const [hoveredIndex, setHoveredIndex] = useState<number | null>(null);\n\n const optionsRefs = useRef<HTMLButtonElement[]>([]);\n const indicatorRef = useRef<HTMLDivElement | null>(null);\n const { choiceIndicatorPosition } = useItemSelector(optionsRefs, {\n selector: (el) => el.getAttribute('data-indicator') === 'true',\n isHoverable: false,\n orientation,\n });\n\n const selectedIndex = choices.findIndex(\n (choice) => choice.value === valueState\n );\n\n // The indicator follows hover if hoverable, otherwise the selected option\n const indicatorIndex =\n hoverable && hoveredIndex !== null ? hoveredIndex : selectedIndex;\n\n const handleChange = (newValue: T) => {\n console.log('useSwitchSelector handleChange', newValue);\n setValue(newValue);\n onChange?.(newValue);\n };\n\n useEffect(() => {\n if (value === undefined) return;\n setValue(value);\n }, [value]);\n\n return {\n valueState,\n hoveredIndex,\n setHoveredIndex,\n optionsRefs,\n indicatorRef,\n choiceIndicatorPosition,\n selectedIndex,\n indicatorIndex,\n handleChange,\n disabled,\n };\n};\n"],"mappings":";;;;;;AASA,MAAa,qBACX,EACE,UAAU,EAAE,EACZ,OACA,cACA,UACA,YAAY,MACZ,WAAW,SAEb,gBACG;CACH,MAAM,CAAC,YAAY,YAAY,SAC7B,SAAS,gBAAgB,QAAQ,IAAI,MACtC;CACD,MAAM,CAAC,cAAc,mBAAmB,SAAwB,KAAK;CAErE,MAAM,cAAc,OAA4B,EAAE,CAAC;CACnD,MAAM,eAAe,OAA8B,KAAK;CACxD,MAAM,EAAE,4BAA4B,gBAAgB,aAAa;EAC/D,WAAW,OAAO,GAAG,aAAa,iBAAiB,KAAK;EACxD,aAAa;EACb;EACD,CAAC;CAEF,MAAM,gBAAgB,QAAQ,WAC3B,WAAW,OAAO,UAAU,WAC9B;CAGD,MAAM,iBACJ,aAAa,iBAAiB,OAAO,eAAe;CAEtD,MAAM,gBAAgB,aAAgB;AACpC,UAAQ,IAAI,kCAAkC,SAAS;AACvD,WAAS,SAAS;AAClB,aAAW,SAAS;;AAGtB,iBAAgB;AACd,MAAI,UAAU,OAAW;AACzB,WAAS,MAAM;IACd,CAAC,MAAM,CAAC;AAEX,QAAO;EACL;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACD"}
1
+ {"version":3,"file":"useSwitchSelector.mjs","names":[],"sources":["../../../../src/components/SwitchSelector/useSwitchSelector.ts"],"sourcesContent":["'use client';\n\nimport {\n type ItemSelectorOrientation,\n useItemSelector,\n} from '@hooks/useItemSelector';\nimport { useEffect, useRef, useState } from 'react';\nimport type { SwitchSelectorBaseProps } from './SwitchSelector';\n\nexport const useSwitchSelector = <T>(\n {\n choices = [],\n value,\n defaultValue,\n onChange,\n hoverable = true,\n disabled = false,\n }: SwitchSelectorBaseProps<T>,\n orientation: ItemSelectorOrientation\n) => {\n const [valueState, setValue] = useState<T>(\n value ?? defaultValue ?? choices[0]?.value\n );\n const [hoveredIndex, setHoveredIndex] = useState<number | null>(null);\n\n const optionsRefs = useRef<HTMLButtonElement[]>([]);\n const indicatorRef = useRef<HTMLDivElement | null>(null);\n const { choiceIndicatorPosition } = useItemSelector(optionsRefs, {\n selector: (el) => el.getAttribute('data-indicator') === 'true',\n isHoverable: false,\n orientation,\n });\n\n const selectedIndex = choices.findIndex(\n (choice) => choice.value === valueState\n );\n\n // The indicator follows hover if hoverable, otherwise the selected option\n const indicatorIndex =\n hoverable && hoveredIndex !== null ? hoveredIndex : selectedIndex;\n\n const handleChange = (newValue: T) => {\n setValue(newValue);\n onChange?.(newValue);\n };\n\n useEffect(() => {\n if (value === undefined) return;\n setValue(value);\n }, [value]);\n\n return {\n valueState,\n hoveredIndex,\n setHoveredIndex,\n optionsRefs,\n indicatorRef,\n choiceIndicatorPosition,\n selectedIndex,\n indicatorIndex,\n handleChange,\n disabled,\n };\n};\n"],"mappings":";;;;;;AASA,MAAa,qBACX,EACE,UAAU,EAAE,EACZ,OACA,cACA,UACA,YAAY,MACZ,WAAW,SAEb,gBACG;CACH,MAAM,CAAC,YAAY,YAAY,SAC7B,SAAS,gBAAgB,QAAQ,IAAI,MACtC;CACD,MAAM,CAAC,cAAc,mBAAmB,SAAwB,KAAK;CAErE,MAAM,cAAc,OAA4B,EAAE,CAAC;CACnD,MAAM,eAAe,OAA8B,KAAK;CACxD,MAAM,EAAE,4BAA4B,gBAAgB,aAAa;EAC/D,WAAW,OAAO,GAAG,aAAa,iBAAiB,KAAK;EACxD,aAAa;EACb;EACD,CAAC;CAEF,MAAM,gBAAgB,QAAQ,WAC3B,WAAW,OAAO,UAAU,WAC9B;CAGD,MAAM,iBACJ,aAAa,iBAAiB,OAAO,eAAe;CAEtD,MAAM,gBAAgB,aAAgB;AACpC,WAAS,SAAS;AAClB,aAAW,SAAS;;AAGtB,iBAAgB;AACd,MAAI,UAAU,OAAW;AACzB,WAAS,MAAM;IACd,CAAC,MAAM,CAAC;AAEX,QAAO;EACL;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACD"}
@@ -1,8 +1,8 @@
1
1
  'use client';
2
2
 
3
3
  import { cn } from "../../utils/cn.mjs";
4
- import { TabSelector } from "../TabSelector/TabSelector.mjs";
5
4
  import { useHorizontalSwipe } from "../../hooks/useHorizontalSwipe.mjs";
5
+ import { TabSelector } from "../TabSelector/TabSelector.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";
@@ -1,16 +1,16 @@
1
- import { calculateIsMobile, checkIsIOS, checkIsIphoneOrSafariDevice, checkIsMac, checkIsMobileScreen, checkIsMobileUserAgent, getBreakpointFromSize, useDevice } from "./useDevice.mjs";
2
- import { useItemSelector } from "./useItemSelector.mjs";
3
- import { usePersistedStore } from "./usePersistedStore.mjs";
4
- import { useGetElementById } from "./useGetElementById.mjs";
1
+ import { useKeyboardDetector } from "./useKeyboardDetector.mjs";
5
2
  import { useGetElementOrWindow } from "./useGetElementOrWindow.mjs";
3
+ import { useScrollY } from "./useScrollY.mjs";
4
+ import { usePersistedStore } from "./usePersistedStore.mjs";
6
5
  import { useHorizontalSwipe } from "./useHorizontalSwipe.mjs";
7
- import { useIsDarkMode } from "./useIsDarkMode.mjs";
6
+ import { useItemSelector } from "./useItemSelector.mjs";
7
+ import { calculateIsMobile, checkIsIOS, checkIsIphoneOrSafariDevice, checkIsMac, checkIsMobileScreen, checkIsMobileUserAgent, getBreakpointFromSize, useDevice } from "./useDevice.mjs";
8
+ import { useSearch } from "./useSearch.mjs";
8
9
  import { useIsMounted } from "./useIsMounted.mjs";
9
- import { useKeyboardDetector } from "./useKeyboardDetector.mjs";
10
+ import { useGetElementById } from "./useGetElementById.mjs";
11
+ import { useIsDarkMode } from "./useIsDarkMode.mjs";
10
12
  import { useScreenWidth } from "./useScreenWidth.mjs";
11
13
  import { useScrollBlockage } from "./useScrollBlockage/index.mjs";
12
14
  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 };
@@ -11,9 +11,10 @@ type UseIntlayerAuthProps = {
11
11
  };
12
12
  declare const useIntlayerOAuthOptions: (props?: UseIntlayerAuthProps) => {
13
13
  options: {
14
- headers: HeadersInit;
14
+ signal?: AbortSignal | null;
15
15
  cache?: RequestCache;
16
16
  credentials?: RequestCredentials;
17
+ headers: HeadersInit;
17
18
  integrity?: string;
18
19
  keepalive?: boolean;
19
20
  method?: string;
@@ -22,7 +23,6 @@ declare const useIntlayerOAuthOptions: (props?: UseIntlayerAuthProps) => {
22
23
  redirect?: RequestRedirect;
23
24
  referrer?: string;
24
25
  referrerPolicy?: ReferrerPolicy;
25
- signal?: AbortSignal | null;
26
26
  window?: null;
27
27
  body?: Record<string, unknown>;
28
28
  params?: Record<string, string | string[] | undefined> | string[] | URLSearchParams;
@@ -23,8 +23,8 @@ type BadgeSize = 'sm' | 'md' | 'lg';
23
23
  * @description Defines the styling variants for different badge combinations
24
24
  */
25
25
  declare const badgeVariants: (props?: {
26
- color?: "error" | "success" | "text" | "primary" | "secondary" | "neutral" | "light" | "dark" | "custom";
27
- variant?: "default" | "none" | "hoverable" | "outline";
26
+ color?: "success" | "error" | "primary" | "secondary" | "text" | "custom" | "neutral" | "light" | "dark";
27
+ variant?: "default" | "none" | "outline" | "hoverable";
28
28
  size?: "sm" | "md" | "lg";
29
29
  } & _$class_variance_authority_types0.ClassProp) => string;
30
30
  /**
@@ -9,7 +9,7 @@ import { LocalesValues } from "@intlayer/types/module_augmentation";
9
9
  * Breadcrumb variant styles using class-variance-authority
10
10
  */
11
11
  declare const breadcrumbVariants: (props?: {
12
- size?: "xs" | "sm" | "md" | "lg" | "xl";
12
+ size?: "sm" | "md" | "lg" | "xs" | "xl";
13
13
  spacing?: "compact" | "normal" | "loose";
14
14
  } & _$class_variance_authority_types0.ClassProp) => string;
15
15
  /**
@@ -24,10 +24,10 @@ type ButtonTextAlign = 'left' | 'center' | 'right';
24
24
  * Enhanced button variants with improved accessibility and focus states
25
25
  */
26
26
  declare const buttonVariants: (props?: {
27
- size?: "xs" | "sm" | "md" | "lg" | "xl" | "custom" | "icon-sm" | "icon-md" | "icon-lg" | "icon-xl";
28
- color?: "error" | "success" | "text" | "primary" | "secondary" | "neutral" | "light" | "dark" | "custom" | "card" | "text-inverse" | "current";
29
- roundedSize?: "sm" | "md" | "lg" | "xl" | "2xl" | "none" | "full" | "3xl" | "4xl" | "5xl";
30
- variant?: "default" | "input" | "none" | "hoverable" | "link" | "outline" | "invisible-link" | "fade";
27
+ size?: "sm" | "md" | "lg" | "xs" | "xl" | "custom" | "icon-sm" | "icon-md" | "icon-lg" | "icon-xl";
28
+ color?: "success" | "error" | "primary" | "secondary" | "text" | "custom" | "neutral" | "card" | "light" | "dark" | "current" | "text-inverse";
29
+ roundedSize?: "none" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "full";
30
+ variant?: "link" | "default" | "none" | "input" | "outline" | "invisible-link" | "hoverable" | "fade";
31
31
  textAlign?: "center" | "left" | "right";
32
32
  isFullWidth?: boolean;
33
33
  } & _$class_variance_authority_types0.ClassProp) => string;
@@ -6,7 +6,7 @@ import { VariantProps } from "class-variance-authority";
6
6
  declare const collapsibleTableVariants: (props?: {
7
7
  size?: "sm" | "md" | "lg" | "xl" | "full";
8
8
  variant?: "default" | "dark" | "ghost" | "outlined";
9
- spacing?: "auto" | "sm" | "md" | "lg" | "none";
9
+ spacing?: "auto" | "none" | "sm" | "md" | "lg";
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 */
@@ -28,7 +28,7 @@ declare const Command: {
28
28
  ref?: React.Ref<HTMLInputElement>;
29
29
  } & {
30
30
  asChild?: boolean;
31
- }, "key" | keyof _$react.InputHTMLAttributes<HTMLInputElement> | "asChild">, "type" | "onChange" | "value"> & {
31
+ }, "key" | keyof _$react.InputHTMLAttributes<HTMLInputElement> | "asChild">, "value" | "type" | "onChange"> & {
32
32
  value?: string;
33
33
  onValueChange?: (search: string) => void;
34
34
  } & _$react.RefAttributes<HTMLInputElement>>;
@@ -72,7 +72,7 @@ declare const Command: {
72
72
  ref?: React.Ref<HTMLDivElement>;
73
73
  } & {
74
74
  asChild?: boolean;
75
- }, "key" | keyof HTMLAttributes<HTMLDivElement> | "asChild">, "onSelect" | "disabled" | "value"> & {
75
+ }, "key" | keyof HTMLAttributes<HTMLDivElement> | "asChild">, "value" | "disabled" | "onSelect"> & {
76
76
  disabled?: boolean;
77
77
  onSelect?: (value: string) => void;
78
78
  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?: "sm" | "md" | "lg" | "xl" | "2xl" | "none" | "full" | "3xl" | "4xl";
12
- transparency?: "xs" | "sm" | "md" | "lg" | "xl" | "none" | "full";
13
- padding?: "sm" | "md" | "lg" | "xl" | "2xl" | "none";
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?: "with" | "none";
16
- borderColor?: "error" | "success" | "text" | "primary" | "secondary" | "neutral" | "warning" | "card";
16
+ borderColor?: "success" | "error" | "primary" | "secondary" | "text" | "neutral" | "card" | "warning";
17
17
  background?: "with" | "none" | "hoverable";
18
- gap?: "sm" | "md" | "lg" | "xl" | "2xl" | "none";
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
  type ContainerRoundedSize = 'none' | 'sm' | 'md' | 'lg' | 'xl' | 'full';
@@ -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?: "xs" | "sm" | "md" | "lg";
9
- color?: "error" | "success" | "text" | "primary" | "secondary" | "neutral" | "light" | "dark" | "custom" | "text-inverse";
8
+ size?: "sm" | "md" | "lg" | "xs";
9
+ color?: "success" | "error" | "primary" | "secondary" | "text" | "custom" | "neutral" | "light" | "dark" | "text-inverse";
10
10
  validationStyleEnabled?: "enabled" | "disabled";
11
11
  } & _$class_variance_authority_types0.ClassProp) => string;
12
12
  type CheckboxSize = 'xs' | 'sm' | 'md' | 'lg';
@@ -5,8 +5,8 @@ import { VariantProps } from "class-variance-authority";
5
5
  //#region src/components/Input/Radio.d.ts
6
6
  declare const radioVariants: (props?: {
7
7
  variant?: "default";
8
- size?: "xs" | "sm" | "md" | "lg";
9
- color?: "error" | "success" | "text" | "primary" | "secondary" | "neutral" | "light" | "dark" | "custom" | "text-inverse";
8
+ size?: "sm" | "md" | "lg" | "xs";
9
+ color?: "success" | "error" | "primary" | "secondary" | "text" | "custom" | "neutral" | "light" | "dark" | "text-inverse";
10
10
  validationStyleEnabled?: "enabled" | "disabled";
11
11
  } & _$class_variance_authority_types0.ClassProp) => string;
12
12
  type RadioSize = 'xs' | 'sm' | 'md' | 'lg';
@@ -13,9 +13,9 @@ type LinkRoundedSize = 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | 'ful
13
13
  type LinkSize = 'sm' | 'md' | 'lg' | 'xl' | 'custom';
14
14
  type LinkUnderlined = 'default' | 'true' | 'false';
15
15
  declare const linkVariants: (props?: {
16
- variant?: "default" | "hoverable" | "button" | "invisible-link" | "button-outlined";
17
- roundedSize?: "sm" | "md" | "lg" | "xl" | "2xl" | "none" | "full" | "3xl";
18
- color?: "error" | "success" | "text" | "primary" | "secondary" | "neutral" | "light" | "dark" | "custom" | "text-inverse";
16
+ variant?: "default" | "button" | "invisible-link" | "hoverable" | "button-outlined";
17
+ roundedSize?: "none" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "full";
18
+ color?: "success" | "error" | "primary" | "secondary" | "text" | "custom" | "neutral" | "light" | "dark" | "text-inverse";
19
19
  size?: "sm" | "md" | "lg" | "xl" | "custom";
20
20
  underlined?: boolean | "default";
21
21
  } & _$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?: "text" | "primary" | "secondary" | "neutral";
9
- variant?: "default" | "ghost" | "bordered";
8
+ color?: "primary" | "secondary" | "text" | "neutral";
9
+ variant?: "default" | "bordered" | "ghost";
10
10
  } & _$class_variance_authority_types0.ClassProp) => string;
11
11
  type PaginationSize = 'sm' | 'md' | 'lg';
12
12
  type PaginationVariant = 'default' | 'bordered' | 'ghost';
@@ -25,14 +25,14 @@ type SwitchSelectorBaseProps<T = boolean> = {
25
25
  };
26
26
  type SwitchSelectorProps<T = boolean> = SwitchSelectorBaseProps<T> & VariantProps<typeof switchSelectorVariant> & VariantProps<typeof choiceVariant>;
27
27
  declare const switchSelectorVariant: (props?: {
28
- color?: "text" | "primary" | "secondary" | "neutral" | "light" | "dark";
28
+ color?: "primary" | "secondary" | "text" | "neutral" | "light" | "dark";
29
29
  disabled?: boolean;
30
30
  } & _$class_variance_authority_types0.ClassProp) => string;
31
31
  declare const choiceVariant: (props?: {
32
- size?: "xs" | "sm" | "md" | "lg";
32
+ size?: "sm" | "md" | "lg" | "xs";
33
33
  } & _$class_variance_authority_types0.ClassProp) => string;
34
34
  declare const indicatorVariant: (props?: {
35
- color?: "error" | "text" | "primary" | "secondary" | "neutral" | "light" | "dark";
35
+ color?: "error" | "primary" | "secondary" | "text" | "neutral" | "light" | "dark";
36
36
  } & _$class_variance_authority_types0.ClassProp) => string;
37
37
  /**
38
38
  * Component that allows the user to select one of the provided choices.
@@ -5,7 +5,7 @@ import { VariantProps } from "class-variance-authority";
5
5
 
6
6
  //#region src/components/SwitchSelector/VerticalSwitchSelector.d.ts
7
7
  declare const verticalSwitchSelectorVariant: (props?: {
8
- color?: "error" | "text" | "primary" | "secondary" | "neutral" | "light" | "dark";
8
+ color?: "primary" | "secondary" | "text" | "error" | "neutral" | "light" | "dark";
9
9
  disabled?: boolean;
10
10
  } & _$class_variance_authority_types0.ClassProp) => string;
11
11
  declare const verticalChoiceVariant: (props?: {
@@ -6,7 +6,7 @@ import { VariantProps } from "class-variance-authority";
6
6
  //#region src/components/Tab/Tab.d.ts
7
7
  declare const tabContainerVariant: (props?: {
8
8
  background?: "with" | "without";
9
- variant?: "default" | "ghost" | "bordered";
9
+ variant?: "default" | "bordered" | "ghost";
10
10
  } & _$class_variance_authority_types0.ClassProp) => string;
11
11
  type TabProps = HTMLAttributes<HTMLDivElement> & VariantProps<typeof tabContainerVariant> & {
12
12
  defaultTab?: string;
@@ -7,7 +7,7 @@ import { ItemSelectorOrientation } from "@hooks/useItemSelector";
7
7
  //#region src/components/TabSelector/TabSelector.d.ts
8
8
  type TabSelectorColor = 'primary' | 'secondary' | 'error' | 'neutral' | 'light' | 'dark' | 'text';
9
9
  declare const tabSelectorVariant: (props?: {
10
- color?: "error" | "text" | "primary" | "secondary" | "neutral" | "light" | "dark";
10
+ color?: "error" | "primary" | "secondary" | "text" | "neutral" | "light" | "dark";
11
11
  } & _$class_variance_authority_types0.ClassProp) => string;
12
12
  type TabSelectorItemProps = HTMLAttributes<HTMLElement> & {
13
13
  key: string | number;
@@ -146,9 +146,9 @@ type TagBorder = 'none' | 'with';
146
146
  */
147
147
  type TagBackground = 'none' | 'with';
148
148
  declare const containerVariants: (props?: {
149
- roundedSize?: "sm" | "md" | "lg" | "xl" | "none" | "full" | "xxl" | "xxxl";
150
- color?: "error" | "success" | "text" | "primary" | "neutral" | "warning" | "black" | "white";
151
- size?: "xs" | "sm" | "md" | "lg" | "xl";
149
+ roundedSize?: "none" | "sm" | "md" | "lg" | "xl" | "full" | "xxl" | "xxxl";
150
+ color?: "success" | "error" | "primary" | "text" | "neutral" | "warning" | "black" | "white";
151
+ size?: "sm" | "md" | "lg" | "xs" | "xl";
152
152
  border?: "with" | "none";
153
153
  background?: "with" | "none";
154
154
  } & _$class_variance_authority_types0.ClassProp) => string;
@@ -25,7 +25,7 @@ declare const ToastViewport: FC<ComponentProps<typeof ToastPrimitives.Viewport>>
25
25
  * ```
26
26
  */
27
27
  declare const toastVariants: (props?: {
28
- variant?: "error" | "default" | "success";
28
+ variant?: "success" | "error" | "default";
29
29
  } & _$class_variance_authority_types0.ClassProp) => string;
30
30
  /**
31
31
  * Toast Component
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intlayer/design-system",
3
- "version": "9.0.0-canary.6",
3
+ "version": "9.0.0-canary.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": [
@@ -442,13 +442,13 @@
442
442
  "dependencies": {
443
443
  "@better-auth/passkey": "1.6.20",
444
444
  "@better-auth/sso": "1.6.20",
445
- "@intlayer/api": "9.0.0-canary.6",
446
- "@intlayer/chokidar": "9.0.0-canary.6",
447
- "@intlayer/config": "9.0.0-canary.6",
448
- "@intlayer/core": "9.0.0-canary.6",
449
- "@intlayer/dictionaries-entry": "9.0.0-canary.6",
450
- "@intlayer/editor-react": "9.0.0-canary.6",
451
- "@intlayer/types": "9.0.0-canary.6",
445
+ "@intlayer/api": "9.0.0-canary.7",
446
+ "@intlayer/chokidar": "9.0.0-canary.7",
447
+ "@intlayer/config": "9.0.0-canary.7",
448
+ "@intlayer/core": "9.0.0-canary.7",
449
+ "@intlayer/dictionaries-entry": "9.0.0-canary.7",
450
+ "@intlayer/editor-react": "9.0.0-canary.7",
451
+ "@intlayer/types": "9.0.0-canary.7",
452
452
  "@radix-ui/react-dialog": "1.1.17",
453
453
  "@radix-ui/react-select": "2.3.1",
454
454
  "@radix-ui/react-slot": "1.3.0",
@@ -481,7 +481,7 @@
481
481
  "defu": "6.1.7",
482
482
  "dompurify": "3.4.10",
483
483
  "isomorphic-dompurify": "3.17.0",
484
- "react-intlayer": "9.0.0-canary.6",
484
+ "react-intlayer": "9.0.0-canary.7",
485
485
  "react-moveable": "^0.56.0",
486
486
  "rollup-preserve-directives": "1.1.3",
487
487
  "tippy.js": "^6.3.7",
@@ -492,7 +492,7 @@
492
492
  "zod": "4.4.3"
493
493
  },
494
494
  "devDependencies": {
495
- "@intlayer/backend": "9.0.0-canary.6",
495
+ "@intlayer/backend": "9.0.0-canary.7",
496
496
  "@shikijs/transformers": "4.2.0",
497
497
  "@storybook/addon-a11y": "8.6.14",
498
498
  "@storybook/addon-essentials": "8.6.14",
@@ -522,33 +522,33 @@
522
522
  "@utils/ts-config": "1.0.4",
523
523
  "@utils/ts-config-types": "1.0.4",
524
524
  "fast-glob": "3.3.3",
525
- "intlayer": "9.0.0-canary.6",
525
+ "intlayer": "9.0.0-canary.7",
526
526
  "rimraf": "6.1.3",
527
527
  "shiki": "4.2.0",
528
528
  "storybook": "8.6.17",
529
529
  "tsdown": "0.21.10",
530
530
  "typescript": "6.0.3",
531
531
  "vite": "8.1.0",
532
- "vite-intlayer": "9.0.0-canary.6",
532
+ "vite-intlayer": "9.0.0-canary.7",
533
533
  "vite-plugin-dts": "5.0.2",
534
534
  "vitest": "4.1.9"
535
535
  },
536
536
  "peerDependencies": {
537
537
  "@better-fetch/fetch": "1.3.1",
538
538
  "@hookform/resolvers": "5.4.0",
539
- "@intlayer/backend": "9.0.0-canary.6",
539
+ "@intlayer/backend": "9.0.0-canary.7",
540
540
  "@monaco-editor/react": "4.7.0",
541
541
  "@shikijs/transformers": "4.2.0",
542
542
  "@tanstack/react-query": "5.101.1",
543
543
  "@tanstack/react-query-devtools": "5.101.1",
544
544
  "framer-motion": "12.41.0",
545
545
  "fuse.js": "7.4.2",
546
- "intlayer": "9.0.0-canary.6",
546
+ "intlayer": "9.0.0-canary.7",
547
547
  "lucide-react": "1.21.0",
548
548
  "react": ">=16.0.0",
549
549
  "react-dom": ">=16.0.0",
550
550
  "react-hook-form": "7.79.0",
551
- "react-intlayer": "9.0.0-canary.6",
551
+ "react-intlayer": "9.0.0-canary.7",
552
552
  "shiki": "4.2.0",
553
553
  "tailwindcss": "4.3.1"
554
554
  },