@particle-network/ui-react 0.5.1-beta.7 → 0.5.1-beta.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.
Files changed (37) hide show
  1. package/dist/components/ProgressWrapper/index.js +1 -1
  2. package/dist/components/UXButton/button-theme.js +2 -2
  3. package/dist/components/UXCheckbox/checkbox.extend.js +1 -1
  4. package/dist/components/UXColorPicker/color-input.js +1 -1
  5. package/dist/components/UXColorPicker/color-picker.js +2 -2
  6. package/dist/components/UXCopy/index.js +1 -1
  7. package/dist/components/UXEmpty/index.js +1 -1
  8. package/dist/components/UXHint/index.js +1 -1
  9. package/dist/components/UXInput/index.d.ts +2 -2
  10. package/dist/components/UXInput/input.extend.d.ts +2 -2
  11. package/dist/components/UXRadio/radio.extend.js +3 -3
  12. package/dist/components/UXSlider/use-slider.js +1 -1
  13. package/dist/components/UXSpinner/spinner.js +1 -1
  14. package/dist/components/UXSwitch/switch.extend.js +6 -6
  15. package/dist/components/UXTable/index.d.ts +2 -2
  16. package/dist/components/UXTable/table.extend.d.ts +2 -2
  17. package/dist/components/UXTabs/tabs.classes.js +4 -4
  18. package/dist/components/UXThemeSwitch/custom-theme-config.js +7 -5
  19. package/dist/components/UXThemeSwitch/theme-item.js +3 -3
  20. package/dist/components/UXThemeSwitch/theme-switch.js +1 -1
  21. package/dist/components/UXThemeSwitch/use-theme-store.js +1 -1
  22. package/dist/components/UXThemeSwitch/utils.js +29 -9
  23. package/dist/components/UXToast/index.js +3 -3
  24. package/dist/components/layout/Box/box-theme.d.ts +456 -39
  25. package/dist/components/layout/Box/box-theme.js +30 -10
  26. package/dist/components/layout/Box/box.js +4 -4
  27. package/dist/components/layout/Square.js +2 -4
  28. package/dist/components/typography/Text.js +4 -4
  29. package/dist/hooks/useI18n.d.ts +14 -10
  30. package/dist/hooks/useI18n.js +14 -10
  31. package/dist/utils/cn.d.ts +2 -0
  32. package/dist/utils/cn.js +258 -0
  33. package/dist/utils/index.d.ts +1 -0
  34. package/dist/utils/index.js +2 -1
  35. package/dist/utils/input-classes.js +2 -2
  36. package/package.json +5 -5
  37. package/tailwind-preset.js +62 -12
@@ -1,9 +1,9 @@
1
1
  'use client';
2
2
  import { jsx, jsxs } from "react/jsx-runtime";
3
3
  import { useMemo, useRef } from "react";
4
- import { cn } from "@heroui/theme";
5
4
  import { radiusMap } from "@particle-network/ui-shared";
6
5
  import { useSize } from "ahooks";
6
+ import { cn } from "../../utils/index.js";
7
7
  import { Center } from "../layout/index.js";
8
8
  import { useThemeColor } from "../UXThemeSwitch/use-theme-color.js";
9
9
  const ProgressWrapper = ({ className, value = 0, width, height, radius = 'sm', strokeWidth = 1, color = 'primary', children, svgClassName, ...restProps })=>{
@@ -381,13 +381,13 @@ const button_theme_button = tv({
381
381
  isSelected: true,
382
382
  color: 'default',
383
383
  variant: 'solid',
384
- class: 'bg-tertiary text-tertiary-foreground'
384
+ class: 'bg-cursor text-cursor-foreground'
385
385
  },
386
386
  {
387
387
  isSelected: true,
388
388
  color: 'secondary',
389
389
  variant: 'solid',
390
- class: 'bg-tertiary text-tertiary-foreground'
390
+ class: 'bg-cursor text-cursor-foreground'
391
391
  },
392
392
  {
393
393
  isSelected: true,
@@ -7,7 +7,7 @@ const ExtendedCheckbox = extendVariants(Checkbox, {
7
7
  wrapper: 'after:bg-primary after:text-primary-foreground text-primary-foreground'
8
8
  },
9
9
  secondary: {
10
- wrapper: 'after:bg-tertiary after:text-tertiary-foreground text-tertiary-foreground'
10
+ wrapper: 'after:bg-cursor after:text-cursor-foreground text-cursor-foreground'
11
11
  },
12
12
  success: {
13
13
  wrapper: 'after:bg-success after:text-success-foreground text-success-foreground'
@@ -1,7 +1,7 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
2
  import "react";
3
3
  import { ColorField, Input } from "react-aria-components";
4
- import { cn } from "@heroui/theme";
4
+ import { cn } from "../../utils/index.js";
5
5
  const inputClassName = 'w-full h-[30px] rounded-small border-none bg-background-200 px-2.5 text-tiny text-foreground focus:outline-none focus:ring-1 focus:ring-foreground text-center';
6
6
  const ColorInput = (props)=>/*#__PURE__*/ jsx(ColorField, {
7
7
  ...props,
@@ -2,9 +2,9 @@
2
2
  import { jsx, jsxs } from "react/jsx-runtime";
3
3
  import { useCallback, useEffect, useMemo, useRef, useState } from "react";
4
4
  import { ColorArea, ColorPicker, ColorSlider, ColorSwatch, ColorThumb, SliderTrack, parseColor } from "react-aria-components";
5
- import { cn } from "@heroui/theme";
6
5
  import ColorPickerIcon from "@particle-network/icons/web/ColorPickerIcon";
7
6
  import RefreshCcwIcon from "@particle-network/icons/web/RefreshCcwIcon";
7
+ import { cn } from "../../utils/index.js";
8
8
  import { HStack } from "../layout/index.js";
9
9
  import { UXButton } from "../UXButton/index.js";
10
10
  import { UXPopover, UXPopoverContent, UXPopoverTrigger } from "../UXPopover/index.js";
@@ -13,7 +13,7 @@ import { ColorFields } from "./color-fields.js";
13
13
  import { ColorInput } from "./color-input.js";
14
14
  import { normalizeColor } from "./utils.js";
15
15
  const UXColorPicker = ({ className, isDisabled, placement = 'bottom-start', value, defaultValue, onChange, onChangeEnd, onValueChange, onValueChangeEnd, isChanged, onReset })=>{
16
- const { 'bg-200': bg200 } = useThemeColor();
16
+ const { bg200: bg200 } = useThemeColor();
17
17
  const isControlled = void 0 !== value;
18
18
  const [pickerKey, setPickerKey] = useState(0);
19
19
  const [isInputFocused, setIsInputFocused] = useState(false);
@@ -1,9 +1,9 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import react from "react";
3
- import { cn } from "@heroui/theme";
4
3
  import CopyIcon from "@particle-network/icons/web/CopyIcon";
5
4
  import copy_to_clipboard from "copy-to-clipboard";
6
5
  import { useI18n } from "../../hooks/useI18n.js";
6
+ import { cn } from "../../utils/index.js";
7
7
  import { toast } from "../UXToast/index.js";
8
8
  import { UXTooltip } from "../UXTooltip/index.js";
9
9
  import { shortAddress } from "./utils.js";
@@ -1,9 +1,9 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import "react";
3
3
  import { forwardRef } from "@heroui/system";
4
- import { cn } from "@heroui/theme";
5
4
  import EmptyIcon from "@particle-network/icons/web/EmptyIcon";
6
5
  import { useI18n } from "../../hooks/useI18n.js";
6
+ import { cn } from "../../utils/index.js";
7
7
  import { VStack } from "../layout/index.js";
8
8
  import { Text } from "../typography/Text.js";
9
9
  const UXEmpty = forwardRef((props, ref)=>{
@@ -1,8 +1,8 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import "react";
3
- import { cn } from "@heroui/theme";
4
3
  import CircleQuestionIcon from "@particle-network/icons/web/CircleQuestionIcon";
5
4
  import { Center, UXPopover, UXPopoverContent, UXPopoverTrigger, UXTooltip } from "../index.js";
5
+ import { cn } from "../../utils/index.js";
6
6
  const UXHint = (props)=>{
7
7
  const { content, children, buttonClassName, iconClassName, triggerType = 'hover', ...restProps } = props;
8
8
  const renderTriggerContent = ()=>/*#__PURE__*/ jsx(Center, {
@@ -5,7 +5,7 @@ export declare const UXInput: React.ForwardRefExoticComponent<(Omit<Omit<import(
5
5
  as?: import("@heroui/system-rsc").As<any> | undefined;
6
6
  } & {
7
7
  variant?: "flat" | "bordered" | undefined;
8
- textAlign?: "center" | "left" | "right" | undefined;
8
+ textAlign?: "right" | "left" | "center" | undefined;
9
9
  isColorText?: boolean | undefined;
10
10
  color?: "secondary" | "primary" | "success" | "warning" | "danger" | "bullish" | "bearish" | "default" | undefined;
11
11
  size?: "sm" | "md" | "lg" | undefined;
@@ -21,7 +21,7 @@ export declare const UXInput: React.ForwardRefExoticComponent<(Omit<Omit<import(
21
21
  as?: import("@heroui/system-rsc").As<any> | undefined;
22
22
  } & {
23
23
  variant?: "flat" | "bordered" | undefined;
24
- textAlign?: "center" | "left" | "right" | undefined;
24
+ textAlign?: "right" | "left" | "center" | undefined;
25
25
  isColorText?: boolean | undefined;
26
26
  color?: "secondary" | "primary" | "success" | "warning" | "danger" | "bullish" | "bearish" | "default" | undefined;
27
27
  size?: "sm" | "md" | "lg" | undefined;
@@ -2,7 +2,7 @@ declare const ExtendedInput: import("react").ForwardRefExoticComponent<(Omit<imp
2
2
  as?: import("@heroui/system-rsc").As<any> | undefined;
3
3
  } & {
4
4
  variant?: "flat" | "bordered" | undefined;
5
- textAlign?: "center" | "left" | "right" | undefined;
5
+ textAlign?: "right" | "left" | "center" | undefined;
6
6
  isColorText?: boolean | undefined;
7
7
  color?: "secondary" | "primary" | "success" | "warning" | "danger" | "bullish" | "bearish" | "default" | undefined;
8
8
  size?: "sm" | "md" | "lg" | undefined;
@@ -18,7 +18,7 @@ declare const ExtendedInput: import("react").ForwardRefExoticComponent<(Omit<imp
18
18
  as?: import("@heroui/system-rsc").As<any> | undefined;
19
19
  } & {
20
20
  variant?: "flat" | "bordered" | undefined;
21
- textAlign?: "center" | "left" | "right" | undefined;
21
+ textAlign?: "right" | "left" | "center" | undefined;
22
22
  isColorText?: boolean | undefined;
23
23
  color?: "secondary" | "primary" | "success" | "warning" | "danger" | "bullish" | "bearish" | "default" | undefined;
24
24
  size?: "sm" | "md" | "lg" | undefined;
@@ -40,21 +40,21 @@ const ExtendedRadio = extendVariants(Radio, {
40
40
  sm: {
41
41
  wrapper: 'w-2.5 h-2.5 border-small',
42
42
  control: 'w-1.5 h-1.5',
43
- labelWrapper: 'ml-sm',
43
+ labelWrapper: 'ms-1',
44
44
  label: '!text-body3 font-medium',
45
45
  description: 'text-tiny text-foreground-100'
46
46
  },
47
47
  md: {
48
48
  wrapper: 'w-3 h-3 border-small',
49
49
  control: 'w-1.5 h-1.5',
50
- labelWrapper: 'ml-2',
50
+ labelWrapper: 'ms-1',
51
51
  label: '!text-body2 font-medium',
52
52
  description: 'text-tiny text-foreground-100'
53
53
  },
54
54
  lg: {
55
55
  wrapper: 'w-[14px] h-[14px] border-small',
56
56
  control: 'w-2 h-2',
57
- labelWrapper: 'ml-2',
57
+ labelWrapper: 'ms-1',
58
58
  label: '!text-body1 font-medium',
59
59
  description: 'text-small text-foreground-100'
60
60
  }
@@ -2,11 +2,11 @@ import { useCallback, useMemo, useRef } from "react";
2
2
  import { filterDOMProps, useDOMRef } from "@heroui/react-utils";
3
3
  import { mergeProps, objectToDeps, warn } from "@heroui/shared-utils";
4
4
  import { mapPropsVariants, useProviderContext } from "@heroui/system";
5
- import { cn } from "@heroui/theme";
6
5
  import { useLocale, useNumberFormatter } from "@react-aria/i18n";
7
6
  import { useHover } from "@react-aria/interactions";
8
7
  import { useSlider } from "@react-aria/slider";
9
8
  import { useSliderState } from "@react-stately/slider";
9
+ import { cn } from "../../utils/index.js";
10
10
  import { slider } from "./slider-theme.js";
11
11
  function use_slider_useSlider(originalProps) {
12
12
  const globalContext = useProviderContext();
@@ -1,6 +1,6 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
2
  import { useEffect, useRef, useState } from "react";
3
- import { cn } from "@heroui/theme";
3
+ import { cn } from "../../utils/index.js";
4
4
  import { Square } from "../layout/index.js";
5
5
  import { SpinnerIcon } from "./SpinnerIcon.js";
6
6
  const UXSpinner = ({ size = 18, duration = 400, className, iconClassName, style, ...restProps })=>{
@@ -48,9 +48,9 @@ const ExtendedSwitch = extendVariants(Switch, {
48
48
  },
49
49
  size: {
50
50
  sm: {
51
- wrapper: 'w-5 h-3 px-0.5',
51
+ wrapper: 'w-5 h-3 px-0.5 bg-cursor',
52
52
  thumb: [
53
- 'w-2 h-2 text-tiny',
53
+ 'w-2 h-2 text-tiny shadow-none',
54
54
  'group-data-[selected=true]:ms-2'
55
55
  ],
56
56
  endContent: 'text-tiny',
@@ -58,9 +58,9 @@ const ExtendedSwitch = extendVariants(Switch, {
58
58
  label: 'text-body3 font-medium ms-sm'
59
59
  },
60
60
  md: {
61
- wrapper: 'w-6 h-3.5 px-[3px]',
61
+ wrapper: 'w-6 h-3.5 px-[3px] bg-cursor',
62
62
  thumb: [
63
- 'w-2.5 h-2.5 text-small',
63
+ 'w-2.5 h-2.5 text-small shadow-none',
64
64
  'group-data-[selected=true]:ms-2'
65
65
  ],
66
66
  endContent: 'text-small',
@@ -68,9 +68,9 @@ const ExtendedSwitch = extendVariants(Switch, {
68
68
  label: 'text-body3 font-medium ms-sm'
69
69
  },
70
70
  lg: {
71
- wrapper: 'w-[34px] h-5 px-[3px]',
71
+ wrapper: 'w-[34px] h-5 px-[3px] bg-cursor',
72
72
  thumb: [
73
- 'w-3.5 h-3.5 text-medium',
73
+ 'w-3.5 h-3.5 text-medium shadow-none',
74
74
  'group-data-[selected=true]:ms-3.5'
75
75
  ],
76
76
  endContent: 'text-medium',
@@ -16,7 +16,7 @@ export declare const UXTable: import("@heroui/system-rsc").InternalForwardRefRen
16
16
  isSelectable?: boolean | undefined;
17
17
  isMultiSelectable?: boolean | undefined;
18
18
  fullWidth?: boolean | undefined;
19
- align?: "center" | "start" | "end" | undefined;
19
+ align?: "start" | "end" | "center" | undefined;
20
20
  }, "ref"> | Omit<import("@heroui/system-rsc").OmitCommonProps<Omit<Omit<any, "ref">, never>, keyof import("@heroui/table").TableProps<object>> & import("@heroui/table").TableProps<object> & {
21
21
  as?: import("@heroui/system-rsc").As<any> | undefined;
22
22
  } & {
@@ -32,6 +32,6 @@ export declare const UXTable: import("@heroui/system-rsc").InternalForwardRefRen
32
32
  isSelectable?: boolean | undefined;
33
33
  isMultiSelectable?: boolean | undefined;
34
34
  fullWidth?: boolean | undefined;
35
- align?: "center" | "start" | "end" | undefined;
35
+ align?: "start" | "end" | "center" | undefined;
36
36
  }, "ref">) & React.RefAttributes<HTMLElement>, never>;
37
37
  export { TableBody as UXTableBody, TableCell as UXTableCell, TableColumn as UXTableColumn, TableHeader as UXTableHeader, TableRow as UXTableRow, } from '@heroui/table';
@@ -13,7 +13,7 @@ declare const ExtendedTable: import("react").ForwardRefExoticComponent<(Omit<imp
13
13
  isSelectable?: boolean | undefined;
14
14
  isMultiSelectable?: boolean | undefined;
15
15
  fullWidth?: boolean | undefined;
16
- align?: "center" | "start" | "end" | undefined;
16
+ align?: "start" | "end" | "center" | undefined;
17
17
  }, "ref"> | Omit<import("@heroui/system-rsc").OmitCommonProps<Omit<Omit<any, "ref">, never>, keyof import("@heroui/table").TableProps<object>> & import("@heroui/table").TableProps<object> & {
18
18
  as?: import("@heroui/system-rsc").As<any> | undefined;
19
19
  } & {
@@ -29,6 +29,6 @@ declare const ExtendedTable: import("react").ForwardRefExoticComponent<(Omit<imp
29
29
  isSelectable?: boolean | undefined;
30
30
  isMultiSelectable?: boolean | undefined;
31
31
  fullWidth?: boolean | undefined;
32
- align?: "center" | "start" | "end" | undefined;
32
+ align?: "start" | "end" | "center" | undefined;
33
33
  }, "ref">) & import("react").RefAttributes<HTMLElement>>;
34
34
  export default ExtendedTable;
@@ -252,9 +252,9 @@ const tabsClasses = {
252
252
  color: 'default',
253
253
  class: {
254
254
  cursor: [
255
- 'bg-tertiary dark:bg-tertiary'
255
+ 'bg-cursor dark:bg-cursor'
256
256
  ],
257
- tabContent: 'group-data-[selected=true]:text-tertiary-foreground'
257
+ tabContent: 'group-data-[selected=true]:text-cursor-foreground'
258
258
  }
259
259
  },
260
260
  {
@@ -264,9 +264,9 @@ const tabsClasses = {
264
264
  color: 'default',
265
265
  class: {
266
266
  cursor: [
267
- 'bg-tertiary'
267
+ 'bg-cursor'
268
268
  ],
269
- tabContent: 'group-data-[selected=true]:text-tertiary-foreground'
269
+ tabContent: 'group-data-[selected=true]:text-cursor-foreground'
270
270
  }
271
271
  },
272
272
  {
@@ -17,10 +17,11 @@ const COLOR_CATEGORIES = {
17
17
  'bearish'
18
18
  ],
19
19
  background: [
20
- 'bg-default',
21
- 'bg-400',
22
- 'bg-300',
23
- 'bg-200',
20
+ 'bgDefault',
21
+ 'bg400',
22
+ 'bg300',
23
+ 'bg200',
24
+ 'cursor',
24
25
  'overlay',
25
26
  'divider'
26
27
  ],
@@ -41,7 +42,8 @@ const COLOR_CATEGORIES = {
41
42
  'success',
42
43
  'danger',
43
44
  'warning',
44
- 'alert'
45
+ 'alert',
46
+ 'blue'
45
47
  ]
46
48
  };
47
49
  const CustomThemeConfig = ()=>{
@@ -1,7 +1,7 @@
1
1
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
2
2
  import "react";
3
- import { cn } from "@heroui/theme";
4
3
  import { useLang } from "../../hooks/index.js";
4
+ import { cn } from "../../utils/index.js";
5
5
  import { VStack } from "../layout/index.js";
6
6
  import { Text } from "../typography/Text.js";
7
7
  import { useTheme } from "./use-theme.js";
@@ -57,7 +57,7 @@ const ThemeItem = ({ id, zhName, enName, isSelected, onClick })=>{
57
57
  fill: "currentColor",
58
58
  className: "text-background",
59
59
  style: {
60
- color: 'custom' === id ? customColors['bg-default'] : void 0
60
+ color: 'custom' === id ? customColors.bgDefault : void 0
61
61
  }
62
62
  })
63
63
  }),
@@ -72,7 +72,7 @@ const ThemeItem = ({ id, zhName, enName, isSelected, onClick })=>{
72
72
  fill: "currentColor",
73
73
  className: "text-background",
74
74
  style: {
75
- color: 'custom' === id ? customColors['bg-default'] : void 0
75
+ color: 'custom' === id ? customColors.bgDefault : void 0
76
76
  }
77
77
  })
78
78
  }),
@@ -1,10 +1,10 @@
1
1
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
2
2
  import { useMemo, useState } from "react";
3
- import { cn } from "@heroui/theme";
4
3
  import { useDisclosure } from "@heroui/use-disclosure";
5
4
  import { ChartColorSwitchIcon, CopyIcon } from "@particle-network/icons/web";
6
5
  import { DEFAULT_THEME_ID, themeData } from "@particle-network/ui-shared";
7
6
  import { useI18n } from "../../hooks/index.js";
7
+ import { cn } from "../../utils/index.js";
8
8
  import { HStack, VStack } from "../layout/index.js";
9
9
  import { Text } from "../typography/Text.js";
10
10
  import { UXButton } from "../UXButton/index.js";
@@ -24,7 +24,7 @@ const useThemeStore = create()(persist((set)=>({
24
24
  })
25
25
  }), {
26
26
  name: 'ux-preference-theme',
27
- version: 0,
27
+ version: 2,
28
28
  storage: createJSONStorage(()=>'undefined' != typeof window ? window.localStorage : {}),
29
29
  partialize: (state)=>({
30
30
  theme: state.theme,
@@ -46,32 +46,52 @@ const getCSSProperties = (theme)=>{
46
46
  ]
47
47
  ],
48
48
  warning: generateThemeColor(colorVariables.warning, 'warning', theme.colorScheme).cssVariables,
49
- 'bg-default': [
49
+ blue: [
50
+ [
51
+ '--heroui-blue',
52
+ colorVariables.blue
53
+ ],
54
+ [
55
+ '--heroui-blue-foreground',
56
+ readableColor(colorVariables.blue)
57
+ ]
58
+ ],
59
+ bgDefault: [
50
60
  [
51
61
  '--heroui-background',
52
- colorVariables['bg-default']
62
+ colorVariables.bgDefault
53
63
  ],
54
64
  [
55
65
  '--heroui-background-500',
56
- colorVariables['bg-default']
66
+ colorVariables.bgDefault
57
67
  ]
58
68
  ],
59
- 'bg-200': [
69
+ bg200: [
60
70
  [
61
71
  '--heroui-background-200',
62
- colorVariables['bg-200']
72
+ colorVariables.bg200
63
73
  ]
64
74
  ],
65
- 'bg-300': [
75
+ bg300: [
66
76
  [
67
77
  '--heroui-background-300',
68
- colorVariables['bg-300']
78
+ colorVariables.bg300
69
79
  ]
70
80
  ],
71
- 'bg-400': [
81
+ bg400: [
72
82
  [
73
83
  '--heroui-background-400',
74
- colorVariables['bg-400']
84
+ colorVariables.bg400
85
+ ]
86
+ ],
87
+ cursor: [
88
+ [
89
+ '--heroui-cursor',
90
+ colorVariables.cursor
91
+ ],
92
+ [
93
+ '--heroui-cursor-foreground',
94
+ readableColor(colorVariables.cursor)
75
95
  ]
76
96
  ],
77
97
  overlay: [
@@ -37,14 +37,14 @@ const show = (props)=>{
37
37
  return addToast({
38
38
  classNames: {
39
39
  base: [
40
- 'bg-tertiary rounded-xl px-3.5 py-3 shadow-none border-none !w-fit max-w-[90vw] md:max-w-[400px] m-0',
40
+ 'bg-cursor rounded-xl px-3.5 py-3 shadow-none border-none !w-fit max-w-[90vw] md:max-w-[400px] m-0',
41
41
  !hideCloseButton && 'pr-12',
42
42
  'flat' === variant && 'success' === type && 'bg-[#0E3728]',
43
43
  'flat' === variant && 'error' === type && 'bg-[#501D1D]',
44
44
  base
45
45
  ],
46
46
  description: [
47
- 'text-tertiary-foreground text-xs font-medium me-0 leading-4 line-clamp-4',
47
+ 'text-cursor-foreground text-xs font-medium me-0 leading-4 line-clamp-4',
48
48
  'flat' === variant && 'text-white',
49
49
  hasLongWord(description) && 'break-all',
50
50
  descriptionClassName
@@ -72,7 +72,7 @@ const show = (props)=>{
72
72
  icon: icon ?? getIcon(type),
73
73
  hideIcon: !icon && !getIcon(type),
74
74
  closeIcon: /*#__PURE__*/ jsx(CloseIcon, {
75
- className: 'flat' === variant ? 'text-white' : 'text-tertiary-foreground'
75
+ className: 'flat' === variant ? 'text-white' : 'text-cursor-foreground'
76
76
  }),
77
77
  loadingComponent: /*#__PURE__*/ jsx(UXSpinner, {
78
78
  size: 18