@lobehub/ui 5.32.7 → 5.33.0

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 (60) hide show
  1. package/es/ActionIcon/ActionIcon.d.mts +3 -0
  2. package/es/ActionIcon/ActionIcon.mjs +3 -0
  3. package/es/ActionIcon/ActionIcon.mjs.map +1 -1
  4. package/es/Avatar/Avatar.mjs +3 -0
  5. package/es/Avatar/Avatar.mjs.map +1 -1
  6. package/es/Tag/Tag.d.mts +3 -0
  7. package/es/Tag/Tag.mjs +4 -1
  8. package/es/Tag/Tag.mjs.map +1 -1
  9. package/es/Text/Text.d.mts +3 -0
  10. package/es/Text/Text.mjs +3 -0
  11. package/es/Text/Text.mjs.map +1 -1
  12. package/es/base-ui/ActionIcon/ActionIcon.d.mts +6 -0
  13. package/es/base-ui/ActionIcon/ActionIcon.mjs +88 -0
  14. package/es/base-ui/ActionIcon/ActionIcon.mjs.map +1 -0
  15. package/es/base-ui/ActionIcon/index.d.mts +4 -0
  16. package/es/base-ui/ActionIcon/style.d.mts +9 -0
  17. package/es/base-ui/ActionIcon/style.mjs +36 -0
  18. package/es/base-ui/ActionIcon/style.mjs.map +1 -0
  19. package/es/base-ui/ActionIcon/type.d.mts +41 -0
  20. package/es/base-ui/ActionIcon/utils.mjs +42 -0
  21. package/es/base-ui/ActionIcon/utils.mjs.map +1 -0
  22. package/es/base-ui/Avatar/Avatar.mjs +99 -0
  23. package/es/base-ui/Avatar/Avatar.mjs.map +1 -0
  24. package/es/base-ui/Avatar/AvatarGroup/index.d.mts +6 -0
  25. package/es/base-ui/Avatar/AvatarGroup/index.mjs +65 -0
  26. package/es/base-ui/Avatar/AvatarGroup/index.mjs.map +1 -0
  27. package/es/base-ui/Avatar/AvatarGroup/style.mjs +17 -0
  28. package/es/base-ui/Avatar/AvatarGroup/style.mjs.map +1 -0
  29. package/es/base-ui/Avatar/index.d.mts +12 -0
  30. package/es/base-ui/Avatar/index.mjs +9 -0
  31. package/es/base-ui/Avatar/index.mjs.map +1 -0
  32. package/es/base-ui/Avatar/style.mjs +73 -0
  33. package/es/base-ui/Avatar/style.mjs.map +1 -0
  34. package/es/base-ui/Avatar/type.d.mts +128 -0
  35. package/es/base-ui/Avatar/utils.mjs +27 -0
  36. package/es/base-ui/Avatar/utils.mjs.map +1 -0
  37. package/es/base-ui/Input/style.d.mts +1 -1
  38. package/es/base-ui/Tag/Tag.d.mts +6 -0
  39. package/es/base-ui/Tag/Tag.mjs +85 -0
  40. package/es/base-ui/Tag/Tag.mjs.map +1 -0
  41. package/es/base-ui/Tag/index.d.mts +4 -0
  42. package/es/base-ui/Tag/style.mjs +112 -0
  43. package/es/base-ui/Tag/style.mjs.map +1 -0
  44. package/es/base-ui/Tag/type.d.mts +29 -0
  45. package/es/base-ui/Tag/utils.d.mts +8 -0
  46. package/es/base-ui/Tag/utils.mjs +41 -0
  47. package/es/base-ui/Tag/utils.mjs.map +1 -0
  48. package/es/base-ui/Text/Text.d.mts +6 -0
  49. package/es/base-ui/Text/Text.mjs +85 -0
  50. package/es/base-ui/Text/Text.mjs.map +1 -0
  51. package/es/base-ui/Text/index.d.mts +4 -0
  52. package/es/base-ui/Text/style.d.mts +39 -0
  53. package/es/base-ui/Text/style.mjs +120 -0
  54. package/es/base-ui/Text/style.mjs.map +1 -0
  55. package/es/base-ui/Text/type.d.mts +43 -0
  56. package/es/base-ui/index.d.mts +25 -10
  57. package/es/base-ui/index.mjs +21 -13
  58. package/es/utils/safeReadableColor.mjs +1 -1
  59. package/es/utils/safeReadableColor.mjs.map +1 -1
  60. package/package.json +1 -1
@@ -0,0 +1,41 @@
1
+ import { cssVar } from "antd-style";
2
+ import { camelCase } from "es-toolkit/compat";
3
+ //#region src/base-ui/Tag/utils.ts
4
+ const presetColors = [
5
+ "red",
6
+ "volcano",
7
+ "orange",
8
+ "gold",
9
+ "yellow",
10
+ "lime",
11
+ "green",
12
+ "cyan",
13
+ "blue",
14
+ "geekblue",
15
+ "purple",
16
+ "magenta",
17
+ "gray"
18
+ ];
19
+ const presetSystemColors = /* @__PURE__ */ new Set([
20
+ "error",
21
+ "warning",
22
+ "success",
23
+ "info",
24
+ "processing"
25
+ ]);
26
+ const toKebabCase = (value) => value.replaceAll(/([a-z])([A-Z])/g, "$1-$2").replaceAll(/([a-z])(\d)/g, "$1-$2").replaceAll(/(\d)([A-Z])/g, "$1-$2").replaceAll(/([A-Z]+)([A-Z][a-z])/g, "$1-$2").toLowerCase();
27
+ const getCssVar = (tokenKey) => {
28
+ return cssVar[tokenKey] || `var(--ant-${toKebabCase(tokenKey)})`;
29
+ };
30
+ const colorsPreset = (type, ...keys) => getCssVar(camelCase([type, ...keys].join("-")));
31
+ const colorsPresetSystem = (type, ...keys) => {
32
+ return getCssVar(camelCase([
33
+ "color",
34
+ type === "processing" ? "info" : type,
35
+ ...keys
36
+ ].join("-")));
37
+ };
38
+ //#endregion
39
+ export { colorsPreset, colorsPresetSystem, presetColors, presetSystemColors };
40
+
41
+ //# sourceMappingURL=utils.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.mjs","names":[],"sources":["../../../src/base-ui/Tag/utils.ts"],"sourcesContent":["import { cssVar } from 'antd-style';\nimport { camelCase } from 'es-toolkit/compat';\n\nexport const presetColors = [\n 'red',\n 'volcano',\n 'orange',\n 'gold',\n 'yellow',\n 'lime',\n 'green',\n 'cyan',\n 'blue',\n 'geekblue',\n 'purple',\n 'magenta',\n 'gray',\n];\n\nexport const presetSystemColors = new Set(['error', 'warning', 'success', 'info', 'processing']);\n\nconst toKebabCase = (value: string) =>\n value\n .replaceAll(/([a-z])([A-Z])/g, '$1-$2')\n .replaceAll(/([a-z])(\\d)/g, '$1-$2')\n .replaceAll(/(\\d)([A-Z])/g, '$1-$2')\n .replaceAll(/([A-Z]+)([A-Z][a-z])/g, '$1-$2')\n .toLowerCase();\n\nconst getCssVar = (tokenKey: string) => {\n const mapped = (cssVar as Record<string, string>)[tokenKey];\n return mapped || `var(--ant-${toKebabCase(tokenKey)})`;\n};\n\nexport const colorsPreset = (type: string, ...keys: string[]) =>\n getCssVar(camelCase([type, ...keys].join('-')));\n\nexport const colorsPresetSystem = (type: string, ...keys: string[]) => {\n const t = type === 'processing' ? 'info' : type;\n return getCssVar(camelCase(['color', t, ...keys].join('-')));\n};\n"],"mappings":";;;AAGA,MAAa,eAAe;CAC1B;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF;AAEA,MAAa,qCAAqB,IAAI,IAAI;CAAC;CAAS;CAAW;CAAW;CAAQ;AAAY,CAAC;AAE/F,MAAM,eAAe,UACnB,MACG,WAAW,mBAAmB,OAAO,CAAC,CACtC,WAAW,gBAAgB,OAAO,CAAC,CACnC,WAAW,gBAAgB,OAAO,CAAC,CACnC,WAAW,yBAAyB,OAAO,CAAC,CAC5C,YAAY;AAEjB,MAAM,aAAa,aAAqB;CAEtC,OADgB,OAAkC,aACjC,aAAa,YAAY,QAAQ,EAAE;AACtD;AAEA,MAAa,gBAAgB,MAAc,GAAG,SAC5C,UAAU,UAAU,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC;AAEhD,MAAa,sBAAsB,MAAc,GAAG,SAAmB;CAErE,OAAO,UAAU,UAAU;EAAC;EADlB,SAAS,eAAe,SAAS;EACH,GAAG;CAAI,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC;AAC7D"}
@@ -0,0 +1,6 @@
1
+ import { TextProps } from "./type.mjs";
2
+ //#region src/base-ui/Text/Text.d.ts
3
+ declare const Text: import("react").NamedExoticComponent<TextProps>;
4
+ //#endregion
5
+ export { Text as default };
6
+ //# sourceMappingURL=Text.d.mts.map
@@ -0,0 +1,85 @@
1
+ "use client";
2
+ import { useTextOverflow } from "../../hooks/useTextOverflow.mjs";
3
+ import { Tooltip } from "../Tooltip/Tooltip.mjs";
4
+ import { variants } from "./style.mjs";
5
+ import { memo, useRef } from "react";
6
+ import { jsx } from "react/jsx-runtime";
7
+ import { cx } from "antd-style";
8
+ //#region src/base-ui/Text/Text.tsx
9
+ const Text = memo(({ align, as: Container = "div", children, className, classNames, code, color, delete: deleteStyle, disabled, ellipsis, fontSize, italic, lineClamp, lineHeight, mark, noWrap, ref, strong, style, styles: customStyles, textDecoration, textTransform, type, underline, weight, whiteSpace, wordBreak, ...rest }) => {
10
+ const innerRef = useRef(null);
11
+ const isOverflow = useTextOverflow(innerRef, ellipsis, children);
12
+ const isMultiEllipsis = typeof ellipsis === "object" && !!ellipsis.rows && ellipsis.rows > 1;
13
+ const tooltipWhenOverflow = typeof ellipsis === "object" && ellipsis.tooltipWhenOverflow;
14
+ const setNodeRef = (node) => {
15
+ innerRef.current = node;
16
+ if (typeof ref === "function") ref(node);
17
+ else if (ref) ref.current = node;
18
+ };
19
+ const textStyle = {
20
+ ...color && { color },
21
+ ...weight && { fontWeight: weight },
22
+ ...lineHeight && { lineHeight },
23
+ ...textTransform && { textTransform },
24
+ ...textDecoration && { textDecoration },
25
+ ...wordBreak && { wordBreak },
26
+ ...typeof ellipsis === "object" && ellipsis.rows && { WebkitLineClamp: ellipsis.rows },
27
+ ...!ellipsis && !!lineClamp && {
28
+ WebkitBoxOrient: "vertical",
29
+ WebkitLineClamp: lineClamp,
30
+ display: "-webkit-box",
31
+ overflow: "hidden",
32
+ textOverflow: "ellipsis"
33
+ },
34
+ ...fontSize && { fontSize },
35
+ ...align && { textAlign: align },
36
+ ...!isMultiEllipsis && noWrap && { whiteSpace: "nowrap" },
37
+ ...whiteSpace && { whiteSpace },
38
+ ...style,
39
+ ...customStyles?.root
40
+ };
41
+ const content = /* @__PURE__ */ jsx(Container, {
42
+ ...rest,
43
+ ref: setNodeRef,
44
+ style: textStyle,
45
+ className: cx(variants({
46
+ as: [
47
+ "h1",
48
+ "h2",
49
+ "h3",
50
+ "h4",
51
+ "h5",
52
+ "p"
53
+ ].includes(Container) ? Container : void 0,
54
+ code,
55
+ delete: deleteStyle,
56
+ disabled,
57
+ ellipsis: ellipsis ? typeof ellipsis === "object" && ellipsis.rows ? "multi" : true : void 0,
58
+ italic,
59
+ mark,
60
+ strong,
61
+ type,
62
+ underline
63
+ }), className, classNames?.root),
64
+ children
65
+ });
66
+ if (ellipsis && typeof ellipsis === "object" && (ellipsis.tooltip || ellipsis.tooltipWhenOverflow)) {
67
+ if (tooltipWhenOverflow && !isOverflow) return content;
68
+ const title = typeof ellipsis.tooltip === "string" ? ellipsis.tooltip : children;
69
+ if (ellipsis.tooltip && typeof ellipsis.tooltip === "object") return /* @__PURE__ */ jsx(Tooltip, {
70
+ ...ellipsis.tooltip,
71
+ title: ellipsis.tooltip?.title || title,
72
+ children: content
73
+ });
74
+ return /* @__PURE__ */ jsx(Tooltip, {
75
+ title,
76
+ children: content
77
+ });
78
+ }
79
+ return content;
80
+ });
81
+ Text.displayName = "Text";
82
+ //#endregion
83
+ export { Text as default };
84
+
85
+ //# sourceMappingURL=Text.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Text.mjs","names":[],"sources":["../../../src/base-ui/Text/Text.tsx"],"sourcesContent":["'use client';\n\nimport { cx } from 'antd-style';\nimport { type CSSProperties, memo, type RefObject, useRef } from 'react';\n\nimport Tooltip from '@/base-ui/Tooltip';\nimport { useTextOverflow } from '@/hooks/useTextOverflow';\n\nimport { variants } from './style';\nimport { type TextProps } from './type';\n\nconst Text = memo<TextProps>(\n ({\n align,\n as: Container = 'div',\n children,\n className,\n classNames,\n code,\n color,\n delete: deleteStyle,\n disabled,\n ellipsis,\n fontSize,\n italic,\n lineClamp,\n lineHeight,\n mark,\n noWrap,\n ref,\n strong,\n style,\n styles: customStyles,\n textDecoration,\n textTransform,\n type,\n underline,\n weight,\n whiteSpace,\n wordBreak,\n ...rest\n }) => {\n const innerRef = useRef<HTMLElement>(null);\n const isOverflow = useTextOverflow(innerRef, ellipsis, children);\n\n const isMultiEllipsis = typeof ellipsis === 'object' && !!ellipsis.rows && ellipsis.rows > 1;\n const tooltipWhenOverflow = typeof ellipsis === 'object' && ellipsis.tooltipWhenOverflow;\n\n const setNodeRef = (node: HTMLElement | null) => {\n innerRef.current = node;\n if (typeof ref === 'function') ref(node as HTMLDivElement);\n else if (ref) (ref as RefObject<HTMLDivElement | null>).current = node as HTMLDivElement;\n };\n\n const textStyle: CSSProperties = {\n ...(color && { color }),\n ...(weight && { fontWeight: weight }),\n ...(lineHeight && { lineHeight }),\n ...(textTransform && { textTransform }),\n ...(textDecoration && { textDecoration }),\n ...(wordBreak && { wordBreak }),\n ...(typeof ellipsis === 'object' &&\n ellipsis.rows && {\n WebkitLineClamp: ellipsis.rows,\n }),\n ...(!ellipsis &&\n !!lineClamp && {\n WebkitBoxOrient: 'vertical',\n WebkitLineClamp: lineClamp,\n display: '-webkit-box',\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n }),\n ...(fontSize && { fontSize }),\n ...(align && { textAlign: align }),\n ...(!isMultiEllipsis && noWrap && { whiteSpace: 'nowrap' as const }),\n ...(whiteSpace && { whiteSpace }),\n ...style,\n ...customStyles?.root,\n };\n\n const content = (\n <Container\n {...rest}\n ref={setNodeRef}\n style={textStyle}\n className={cx(\n variants({\n as: ['h1', 'h2', 'h3', 'h4', 'h5', 'p'].includes(Container as string)\n ? (Container as 'h1')\n : undefined,\n code,\n delete: deleteStyle,\n disabled,\n ellipsis: ellipsis\n ? typeof ellipsis === 'object' && ellipsis.rows\n ? 'multi'\n : true\n : undefined,\n italic,\n mark,\n strong,\n type,\n underline,\n }),\n className,\n classNames?.root,\n )}\n >\n {children}\n </Container>\n );\n\n if (\n ellipsis &&\n typeof ellipsis === 'object' &&\n (ellipsis.tooltip || ellipsis.tooltipWhenOverflow)\n ) {\n if (tooltipWhenOverflow && !isOverflow) return content;\n\n const title = typeof ellipsis.tooltip === 'string' ? ellipsis.tooltip : children;\n if (ellipsis.tooltip && typeof ellipsis.tooltip === 'object')\n return (\n <Tooltip {...ellipsis.tooltip} title={ellipsis.tooltip?.title || title}>\n {content}\n </Tooltip>\n );\n return <Tooltip title={title}>{content}</Tooltip>;\n }\n\n return content;\n },\n);\n\nText.displayName = 'Text';\n\nexport default Text;\n"],"mappings":";;;;;;;;AAWA,MAAM,OAAO,MACV,EACC,OACA,IAAI,YAAY,OAChB,UACA,WACA,YACA,MACA,OACA,QAAQ,aACR,UACA,UACA,UACA,QACA,WACA,YACA,MACA,QACA,KACA,QACA,OACA,QAAQ,cACR,gBACA,eACA,MACA,WACA,QACA,YACA,WACA,GAAG,WACC;CACJ,MAAM,WAAW,OAAoB,IAAI;CACzC,MAAM,aAAa,gBAAgB,UAAU,UAAU,QAAQ;CAE/D,MAAM,kBAAkB,OAAO,aAAa,YAAY,CAAC,CAAC,SAAS,QAAQ,SAAS,OAAO;CAC3F,MAAM,sBAAsB,OAAO,aAAa,YAAY,SAAS;CAErE,MAAM,cAAc,SAA6B;EAC/C,SAAS,UAAU;EACnB,IAAI,OAAO,QAAQ,YAAY,IAAI,IAAsB;OACpD,IAAI,KAAK,IAA0C,UAAU;CACpE;CAEA,MAAM,YAA2B;EAC/B,GAAI,SAAS,EAAE,MAAM;EACrB,GAAI,UAAU,EAAE,YAAY,OAAO;EACnC,GAAI,cAAc,EAAE,WAAW;EAC/B,GAAI,iBAAiB,EAAE,cAAc;EACrC,GAAI,kBAAkB,EAAE,eAAe;EACvC,GAAI,aAAa,EAAE,UAAU;EAC7B,GAAI,OAAO,aAAa,YACtB,SAAS,QAAQ,EACf,iBAAiB,SAAS,KAC5B;EACF,GAAI,CAAC,YACH,CAAC,CAAC,aAAa;GACb,iBAAiB;GACjB,iBAAiB;GACjB,SAAS;GACT,UAAU;GACV,cAAc;EAChB;EACF,GAAI,YAAY,EAAE,SAAS;EAC3B,GAAI,SAAS,EAAE,WAAW,MAAM;EAChC,GAAI,CAAC,mBAAmB,UAAU,EAAE,YAAY,SAAkB;EAClE,GAAI,cAAc,EAAE,WAAW;EAC/B,GAAG;EACH,GAAG,cAAc;CACnB;CAEA,MAAM,UACJ,oBAAC,WAAD;EACE,GAAI;EACJ,KAAK;EACL,OAAO;EACP,WAAW,GACT,SAAS;GACP,IAAI;IAAC;IAAM;IAAM;IAAM;IAAM;IAAM;GAAG,CAAC,CAAC,SAAS,SAAmB,IAC/D,YACD,KAAA;GACJ;GACA,QAAQ;GACR;GACA,UAAU,WACN,OAAO,aAAa,YAAY,SAAS,OACvC,UACA,OACF,KAAA;GACJ;GACA;GACA;GACA;GACA;EACF,CAAC,GACD,WACA,YAAY,IACd;EAEC;CACQ,CAAA;CAGb,IACE,YACA,OAAO,aAAa,aACnB,SAAS,WAAW,SAAS,sBAC9B;EACA,IAAI,uBAAuB,CAAC,YAAY,OAAO;EAE/C,MAAM,QAAQ,OAAO,SAAS,YAAY,WAAW,SAAS,UAAU;EACxE,IAAI,SAAS,WAAW,OAAO,SAAS,YAAY,UAClD,OACE,oBAAC,SAAD;GAAS,GAAI,SAAS;GAAS,OAAO,SAAS,SAAS,SAAS;GAC9D,UAAA;EACM,CAAA;EAEb,OAAO,oBAAC,SAAD;GAAgB;GAAQ,UAAA;EAAiB,CAAA;CAClD;CAEA,OAAO;AACT,CACF;AAEA,KAAK,cAAc"}
@@ -0,0 +1,4 @@
1
+ import { styles, variants } from "./style.mjs";
2
+ import { TextClassNames, TextProps, TextStyles } from "./type.mjs";
3
+ import Text from "./Text.mjs";
4
+ export { type TextClassNames, type TextProps, type TextStyles, Text as default, styles as textStyles, variants as textVariants };
@@ -0,0 +1,39 @@
1
+ //#region src/base-ui/Text/style.d.ts
2
+ declare const styles: {
3
+ code: string;
4
+ danger: string;
5
+ delete: string;
6
+ disabled: string;
7
+ ellipsis: string;
8
+ ellipsisMulti: string;
9
+ h1: string;
10
+ h2: string;
11
+ h3: string;
12
+ h4: string;
13
+ h5: string;
14
+ info: string;
15
+ italic: string;
16
+ mark: string;
17
+ p: string;
18
+ secondary: string;
19
+ strong: string;
20
+ success: string;
21
+ text: string;
22
+ underline: string;
23
+ warning: string;
24
+ };
25
+ declare const variants: (props?: ({
26
+ as?: "h1" | "h2" | "h3" | "h4" | "h5" | "p" | null | undefined;
27
+ code?: boolean | null | undefined;
28
+ delete?: boolean | null | undefined;
29
+ disabled?: boolean | null | undefined;
30
+ ellipsis?: boolean | "multi" | null | undefined;
31
+ italic?: boolean | null | undefined;
32
+ mark?: boolean | null | undefined;
33
+ strong?: boolean | null | undefined;
34
+ type?: "danger" | "warning" | "success" | "info" | "secondary" | null | undefined;
35
+ underline?: boolean | null | undefined;
36
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
37
+ //#endregion
38
+ export { styles, variants };
39
+ //# sourceMappingURL=style.d.mts.map
@@ -0,0 +1,120 @@
1
+ import { createStaticStyles } from "antd-style";
2
+ import { cva } from "class-variance-authority";
3
+ //#region src/base-ui/Text/style.ts
4
+ const styles = createStaticStyles(({ css, cssVar }) => ({
5
+ code: css`
6
+ font-family: ${cssVar.fontFamilyCode};
7
+ `,
8
+ danger: css`
9
+ color: ${cssVar.colorError};
10
+ `,
11
+ delete: css`
12
+ text-decoration: line-through;
13
+ `,
14
+ disabled: css`
15
+ cursor: not-allowed;
16
+ color: ${cssVar.colorTextDisabled};
17
+ `,
18
+ ellipsis: css`
19
+ overflow: hidden;
20
+ text-overflow: ellipsis;
21
+ white-space: nowrap;
22
+ `,
23
+ ellipsisMulti: css`
24
+ overflow: hidden;
25
+ display: -webkit-box;
26
+ -webkit-box-orient: vertical;
27
+ text-overflow: ellipsis;
28
+ `,
29
+ h1: css`
30
+ font-size: calc(${cssVar.fontSize} * 2.5);
31
+ font-weight: bold;
32
+ line-height: 1.25;
33
+ `,
34
+ h2: css`
35
+ font-size: calc(${cssVar.fontSize} * 2);
36
+ font-weight: bold;
37
+ line-height: 1.25;
38
+ `,
39
+ h3: css`
40
+ font-size: calc(${cssVar.fontSize} * 1.5);
41
+ font-weight: bold;
42
+ line-height: 1.25;
43
+ `,
44
+ h4: css`
45
+ font-size: calc(${cssVar.fontSize} * 1.25);
46
+ font-weight: bold;
47
+ line-height: 1.25;
48
+ `,
49
+ h5: css`
50
+ font-size: ${cssVar.fontSize};
51
+ font-weight: bold;
52
+ line-height: 1.25;
53
+ `,
54
+ info: css`
55
+ color: ${cssVar.colorInfo};
56
+ `,
57
+ italic: css`
58
+ font-style: italic;
59
+ `,
60
+ mark: css`
61
+ color: #000;
62
+ background-color: ${cssVar.yellow};
63
+ `,
64
+ p: css`
65
+ margin-block: 0;
66
+ `,
67
+ secondary: css`
68
+ color: ${cssVar.colorTextDescription};
69
+ `,
70
+ strong: css`
71
+ font-weight: bold;
72
+ `,
73
+ success: css`
74
+ color: ${cssVar.colorSuccess};
75
+ `,
76
+ text: css`
77
+ color: ${cssVar.colorText};
78
+ `,
79
+ underline: css`
80
+ text-decoration: underline;
81
+ `,
82
+ warning: css`
83
+ color: ${cssVar.colorWarning};
84
+ `
85
+ }));
86
+ const variants = cva(styles.text, {
87
+ defaultVariants: {},
88
+ variants: {
89
+ as: {
90
+ h1: styles.h1,
91
+ h2: styles.h2,
92
+ h3: styles.h3,
93
+ h4: styles.h4,
94
+ h5: styles.h5,
95
+ p: styles.p
96
+ },
97
+ code: { true: styles.code },
98
+ delete: { true: styles.delete },
99
+ disabled: { true: styles.disabled },
100
+ ellipsis: {
101
+ multi: styles.ellipsisMulti,
102
+ true: styles.ellipsis
103
+ },
104
+ italic: { true: styles.italic },
105
+ mark: { true: styles.mark },
106
+ strong: { true: styles.strong },
107
+ type: {
108
+ danger: styles.danger,
109
+ info: styles.info,
110
+ secondary: styles.secondary,
111
+ success: styles.success,
112
+ warning: styles.warning
113
+ },
114
+ underline: { true: styles.underline }
115
+ }
116
+ });
117
+ //#endregion
118
+ export { styles, variants };
119
+
120
+ //# sourceMappingURL=style.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"style.mjs","names":[],"sources":["../../../src/base-ui/Text/style.ts"],"sourcesContent":["import { createStaticStyles } from 'antd-style';\nimport { cva } from 'class-variance-authority';\n\nexport const styles = createStaticStyles(({ css, cssVar }) => ({\n code: css`\n font-family: ${cssVar.fontFamilyCode};\n `,\n danger: css`\n color: ${cssVar.colorError};\n `,\n delete: css`\n text-decoration: line-through;\n `,\n disabled: css`\n cursor: not-allowed;\n color: ${cssVar.colorTextDisabled};\n `,\n ellipsis: css`\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n `,\n ellipsisMulti: css`\n overflow: hidden;\n display: -webkit-box;\n -webkit-box-orient: vertical;\n text-overflow: ellipsis;\n `,\n h1: css`\n font-size: calc(${cssVar.fontSize} * 2.5);\n font-weight: bold;\n line-height: 1.25;\n `,\n\n h2: css`\n font-size: calc(${cssVar.fontSize} * 2);\n font-weight: bold;\n line-height: 1.25;\n `,\n\n h3: css`\n font-size: calc(${cssVar.fontSize} * 1.5);\n font-weight: bold;\n line-height: 1.25;\n `,\n\n h4: css`\n font-size: calc(${cssVar.fontSize} * 1.25);\n font-weight: bold;\n line-height: 1.25;\n `,\n\n h5: css`\n font-size: ${cssVar.fontSize};\n font-weight: bold;\n line-height: 1.25;\n `,\n info: css`\n color: ${cssVar.colorInfo};\n `,\n\n italic: css`\n font-style: italic;\n `,\n\n mark: css`\n color: #000;\n background-color: ${cssVar.yellow};\n `,\n\n p: css`\n margin-block: 0;\n `,\n\n secondary: css`\n color: ${cssVar.colorTextDescription};\n `,\n\n strong: css`\n font-weight: bold;\n `,\n success: css`\n color: ${cssVar.colorSuccess};\n `,\n text: css`\n color: ${cssVar.colorText};\n `,\n underline: css`\n text-decoration: underline;\n `,\n warning: css`\n color: ${cssVar.colorWarning};\n `,\n}));\n\nexport const variants = cva(styles.text, {\n defaultVariants: {},\n variants: {\n as: {\n h1: styles.h1,\n h2: styles.h2,\n h3: styles.h3,\n h4: styles.h4,\n h5: styles.h5,\n p: styles.p,\n },\n code: {\n true: styles.code,\n },\n delete: {\n true: styles.delete,\n },\n disabled: {\n true: styles.disabled,\n },\n ellipsis: {\n multi: styles.ellipsisMulti,\n true: styles.ellipsis,\n },\n italic: {\n true: styles.italic,\n },\n mark: {\n true: styles.mark,\n },\n strong: {\n true: styles.strong,\n },\n type: {\n danger: styles.danger,\n info: styles.info,\n secondary: styles.secondary,\n success: styles.success,\n warning: styles.warning,\n },\n underline: {\n true: styles.underline,\n },\n },\n});\n"],"mappings":";;;AAGA,MAAa,SAAS,oBAAoB,EAAE,KAAK,cAAc;CAC7D,MAAM,GAAG;mBACQ,OAAO,eAAe;;CAEvC,QAAQ,GAAG;aACA,OAAO,WAAW;;CAE7B,QAAQ,GAAG;;;CAGX,UAAU,GAAG;;aAEF,OAAO,kBAAkB;;CAEpC,UAAU,GAAG;;;;;CAKb,eAAe,GAAG;;;;;;CAMlB,IAAI,GAAG;sBACa,OAAO,SAAS;;;;CAKpC,IAAI,GAAG;sBACa,OAAO,SAAS;;;;CAKpC,IAAI,GAAG;sBACa,OAAO,SAAS;;;;CAKpC,IAAI,GAAG;sBACa,OAAO,SAAS;;;;CAKpC,IAAI,GAAG;iBACQ,OAAO,SAAS;;;;CAI/B,MAAM,GAAG;aACE,OAAO,UAAU;;CAG5B,QAAQ,GAAG;;;CAIX,MAAM,GAAG;;wBAEa,OAAO,OAAO;;CAGpC,GAAG,GAAG;;;CAIN,WAAW,GAAG;aACH,OAAO,qBAAqB;;CAGvC,QAAQ,GAAG;;;CAGX,SAAS,GAAG;aACD,OAAO,aAAa;;CAE/B,MAAM,GAAG;aACE,OAAO,UAAU;;CAE5B,WAAW,GAAG;;;CAGd,SAAS,GAAG;aACD,OAAO,aAAa;;AAEjC,EAAE;AAEF,MAAa,WAAW,IAAI,OAAO,MAAM;CACvC,iBAAiB,CAAC;CAClB,UAAU;EACR,IAAI;GACF,IAAI,OAAO;GACX,IAAI,OAAO;GACX,IAAI,OAAO;GACX,IAAI,OAAO;GACX,IAAI,OAAO;GACX,GAAG,OAAO;EACZ;EACA,MAAM,EACJ,MAAM,OAAO,KACf;EACA,QAAQ,EACN,MAAM,OAAO,OACf;EACA,UAAU,EACR,MAAM,OAAO,SACf;EACA,UAAU;GACR,OAAO,OAAO;GACd,MAAM,OAAO;EACf;EACA,QAAQ,EACN,MAAM,OAAO,OACf;EACA,MAAM,EACJ,MAAM,OAAO,KACf;EACA,QAAQ,EACN,MAAM,OAAO,OACf;EACA,MAAM;GACJ,QAAQ,OAAO;GACf,MAAM,OAAO;GACb,WAAW,OAAO;GAClB,SAAS,OAAO;GAChB,SAAS,OAAO;EAClB;EACA,WAAW,EACT,MAAM,OAAO,UACf;CACF;AACF,CAAC"}
@@ -0,0 +1,43 @@
1
+ import { TooltipProps } from "../Tooltip/type.mjs";
2
+ import "../Tooltip/index.mjs";
3
+ import { CSSProperties, ElementType, HTMLAttributes, Ref } from "react";
4
+ //#region src/base-ui/Text/type.d.ts
5
+ interface TextClassNames {
6
+ root?: string;
7
+ }
8
+ interface TextStyles {
9
+ root?: CSSProperties;
10
+ }
11
+ interface TextProps extends HTMLAttributes<HTMLDivElement> {
12
+ align?: 'left' | 'center' | 'right';
13
+ as?: ElementType;
14
+ classNames?: TextClassNames;
15
+ code?: boolean;
16
+ color?: string;
17
+ delete?: boolean;
18
+ disabled?: boolean;
19
+ ellipsis?: boolean | {
20
+ rows?: number;
21
+ tooltip?: boolean | string | Omit<TooltipProps, 'children'>;
22
+ tooltipWhenOverflow?: boolean;
23
+ };
24
+ fontSize?: number | string;
25
+ italic?: boolean;
26
+ lineClamp?: number;
27
+ lineHeight?: CSSProperties['lineHeight'];
28
+ mark?: boolean;
29
+ noWrap?: boolean;
30
+ ref?: Ref<HTMLDivElement>;
31
+ strong?: boolean;
32
+ styles?: TextStyles;
33
+ textDecoration?: CSSProperties['textDecoration'];
34
+ textTransform?: CSSProperties['textTransform'];
35
+ type?: 'secondary' | 'success' | 'warning' | 'danger' | 'info';
36
+ underline?: boolean;
37
+ weight?: 'bold' | 'bolder' | number;
38
+ whiteSpace?: CSSProperties['whiteSpace'];
39
+ wordBreak?: CSSProperties['wordBreak'];
40
+ }
41
+ //#endregion
42
+ export { TextClassNames, TextProps, TextStyles };
43
+ //# sourceMappingURL=type.d.mts.map
@@ -30,31 +30,38 @@ import "./ScrollArea/index.mjs";
30
30
  import { ToastAPI, ToastInstance, ToastOptions, ToastPosition, ToastPromiseOptions, ToastProps, ToastType } from "./Toast/type.mjs";
31
31
  import { ToastHost, ToastHostProps, toast, useToast } from "./Toast/imperative.mjs";
32
32
  import "./Toast/index.mjs";
33
+ import { ActionIconClassNames, ActionIconProps, ActionIconSize, ActionIconStyles } from "./ActionIcon/type.mjs";
34
+ import ActionIcon from "./ActionIcon/ActionIcon.mjs";
35
+ import { styles } from "./ActionIcon/style.mjs";
36
+ import "./ActionIcon/index.mjs";
33
37
  import { AlertClassNames, AlertCloseConfig, AlertProps, AlertRef, AlertStyles, AlertType, AlertVariant } from "./Alert/type.mjs";
34
38
  import Alert from "./Alert/Alert.mjs";
35
- import { styles } from "./Alert/style.mjs";
39
+ import { styles as styles$1 } from "./Alert/style.mjs";
36
40
  import "./Alert/index.mjs";
37
41
  import { InputClassNames, InputNumberProps, InputOTPProps, InputPasswordProps, InputProps, InputSize, InputStyles, InputVariant, TextAreaAutoSize, TextAreaProps } from "./Input/type.mjs";
38
42
  import Input from "./Input/Input.mjs";
39
43
  import InputNumber from "./Input/InputNumber.mjs";
40
44
  import InputOTP from "./Input/InputOTP.mjs";
41
45
  import InputPassword from "./Input/InputPassword.mjs";
42
- import { rootVariants, styles as styles$4 } from "./Input/style.mjs";
46
+ import { rootVariants, styles as styles$5 } from "./Input/style.mjs";
43
47
  import TextArea from "./Input/TextArea.mjs";
44
48
  import "./Input/index.mjs";
45
49
  import { AutoCompleteOption, AutoCompleteProps } from "./AutoComplete/type.mjs";
46
50
  import AutoComplete from "./AutoComplete/AutoComplete.mjs";
47
- import { styles as styles$1 } from "./AutoComplete/style.mjs";
51
+ import { styles as styles$2 } from "./AutoComplete/style.mjs";
48
52
  import "./AutoComplete/index.mjs";
53
+ import { AvatarClassNames, AvatarGroupItemType, AvatarGroupProps, AvatarProps, AvatarStyles } from "./Avatar/type.mjs";
54
+ import AvatarGroup from "./Avatar/AvatarGroup/index.mjs";
55
+ import Avatar from "./Avatar/index.mjs";
49
56
  import { ButtonIconPosition, ButtonProps, ButtonShape, ButtonSize, ButtonType } from "./Button/type.mjs";
50
57
  import Button from "./Button/Button.mjs";
51
58
  import _default, { SplitButtonMenuProps, SplitButtonProps } from "./Button/SplitButton.mjs";
52
- import { styles as styles$2 } from "./Button/style.mjs";
59
+ import { styles as styles$3 } from "./Button/style.mjs";
53
60
  import "./Button/index.mjs";
54
61
  import { CheckboxGroupOption, CheckboxGroupProps, CheckboxProps, CheckboxShape } from "./Checkbox/type.mjs";
55
62
  import Checkbox from "./Checkbox/Checkbox.mjs";
56
63
  import CheckboxGroup from "./Checkbox/CheckboxGroup.mjs";
57
- import { styles as styles$3 } from "./Checkbox/style.mjs";
64
+ import { styles as styles$4 } from "./Checkbox/style.mjs";
58
65
  import "./Checkbox/index.mjs";
59
66
  import { ControlSize, controlHeight } from "./controlSize.mjs";
60
67
  import { DrawerPlacement, DrawerProps, DrawerPush, DrawerSemanticNames, DrawerSemanticStyles } from "./Drawer/type.mjs";
@@ -88,7 +95,7 @@ import { Form } from "./Form/index.mjs";
88
95
  import { RadioGroupOption, RadioGroupProps, RadioProps } from "./Radio/type.mjs";
89
96
  import Radio from "./Radio/Radio.mjs";
90
97
  import RadioGroup from "./Radio/RadioGroup.mjs";
91
- import { styles as styles$5 } from "./Radio/style.mjs";
98
+ import { styles as styles$6 } from "./Radio/style.mjs";
92
99
  import "./Radio/index.mjs";
93
100
  import { SegmentedClassNames, SegmentedOption, SegmentedOptions, SegmentedOrientation, SegmentedProps, SegmentedSize, SegmentedStyles, SegmentedVariant } from "./Segmented/type.mjs";
94
101
  import { SegmentedIndicator, SegmentedIndicatorProps, SegmentedItem, SegmentedItemIcon, SegmentedItemLabel, SegmentedItemProps, SegmentedRoot, SegmentedRootProps } from "./Segmented/atoms.mjs";
@@ -101,16 +108,24 @@ import "./Select/index.mjs";
101
108
  import { SliderProps, SliderWithInputProps } from "./Slider/type.mjs";
102
109
  import Slider from "./Slider/Slider.mjs";
103
110
  import SliderWithInput from "./Slider/SliderWithInput.mjs";
104
- import { styles as styles$6 } from "./Slider/style.mjs";
111
+ import { styles as styles$7 } from "./Slider/style.mjs";
105
112
  import "./Slider/index.mjs";
106
113
  import { SwitchChangeEventHandler, SwitchClassNames, SwitchClickEventHandler, SwitchContextType, SwitchIconPosition, SwitchIconProps, SwitchProps, SwitchRootProps, SwitchSize, SwitchStyles, SwitchThumbProps } from "./Switch/type.mjs";
107
- import { styles as styles$7 } from "./Switch/style.mjs";
114
+ import { styles as styles$8 } from "./Switch/style.mjs";
108
115
  import { SwitchIcon, SwitchRoot, SwitchThumb, useSwitchContext } from "./Switch/atoms.mjs";
109
116
  import Switch from "./Switch/Switch.mjs";
110
117
  import "./Switch/index.mjs";
111
118
  import { TabsClassNames, TabsIndicatorProps, TabsItem, TabsListProps, TabsOrientation, TabsPanelProps, TabsProps, TabsRootProps, TabsSize, TabsStyles, TabsTabProps, TabsVariant } from "./Tabs/type.mjs";
112
- import { styles as styles$8 } from "./Tabs/style.mjs";
119
+ import { styles as styles$9 } from "./Tabs/style.mjs";
113
120
  import { TabsIndicator, TabsList, TabsPanel, TabsRoot, TabsTab, useTabsContext } from "./Tabs/atoms.mjs";
114
121
  import Tabs from "./Tabs/Tabs.mjs";
115
122
  import "./Tabs/index.mjs";
116
- export { Alert, type AlertClassNames, type AlertCloseConfig, type AlertProps, type AlertRef, type AlertStyles, type AlertType, type AlertVariant, AutoComplete, type AutoCompleteOption, type AutoCompleteProps, type BaseModalProps, Button, type ButtonIconPosition, type ButtonProps, type ButtonShape, type ButtonSize, type ButtonType, Checkbox, CheckboxGroup, type CheckboxGroupOption, type CheckboxGroupProps, type CheckboxProps, type CheckboxShape, type ContextMenuCheckboxItem, ContextMenuHost, type ContextMenuInterceptor, type ContextMenuItem, ContextMenuTrigger, type ControlSize, Drawer, DrawerBackdrop, type DrawerBackdropProps, DrawerClose, type DrawerCloseProps, DrawerContent, type DrawerContentProps, DrawerDescription, type DrawerDescriptionProps, DrawerFooter, type DrawerFooterProps, DrawerHeader, type DrawerHeaderProps, type DrawerPlacement, DrawerPopup, type DrawerPopupProps, DrawerPortal, type DrawerPortalProps, type DrawerProps, type DrawerPush, DrawerRoot, type DrawerRootProps, type DrawerSemanticNames, type DrawerSemanticStyles, DrawerTitle, type DrawerTitleProps, DrawerTrigger, type DrawerTriggerProps, type DropdownItem, DropdownMenu, type DropdownMenuCheckboxItem, DropdownMenuCheckboxItemIndicator, DropdownMenuCheckboxItemPrimitive, type DropdownMenuCheckboxItemProps, DropdownMenuFooter, type DropdownMenuFooterProps, DropdownMenuGroup, DropdownMenuGroupLabel, type DropdownMenuGroupLabelProps, DropdownMenuHeader, type DropdownMenuHeaderProps, DropdownMenuItem, DropdownMenuItemContent, type DropdownMenuItemContentProps, DropdownMenuItemDesc, type DropdownMenuItemDescProps, DropdownMenuItemExtra, type DropdownMenuItemExtraProps, DropdownMenuItemIcon, type DropdownMenuItemIconProps, DropdownMenuItemLabel, DropdownMenuItemLabelGroup, type DropdownMenuItemLabelGroupProps, type DropdownMenuItemLabelProps, type DropdownMenuItemProps, type DropdownMenuPlacement, DropdownMenuPopup, type DropdownMenuPopupProps, DropdownMenuPortal, type DropdownMenuPortalProps, DropdownMenuPositioner, type DropdownMenuPositionerProps, type DropdownMenuProps, DropdownMenuRoot, DropdownMenuScrollViewport, type DropdownMenuScrollViewportProps, DropdownMenuSeparator, type DropdownMenuSeparatorProps, DropdownMenuSubmenuArrow, type DropdownMenuSubmenuArrowProps, DropdownMenuSubmenuRoot, DropdownMenuSubmenuTrigger, type DropdownMenuSubmenuTriggerProps, DropdownMenuSwitchItem, type DropdownMenuSwitchItemProps, type DropdownMenuSwitchItem$1 as DropdownMenuSwitchItemType, DropdownMenuTrigger, type DropdownMenuTriggerProps, FloatingPanel, type FloatingPanelOffset, type FloatingPanelPlacement, type FloatingPanelProps, FloatingSheet, type FloatingSheetProps, Form, type FormContextValue, FormDivider, type FormDividerProps, FormField, type FormFieldProps, FormFlatGroup, type FormFlatGroupProps, FormFooter, type FormFooterProps, FormGroup, type FormGroupItemType, type FormGroupProps, type FormLayout, type FormProps, FormSubmitFooter, type FormSubmitFooterProps, FormTitle, type FormTitleProps, type FormValues, type FormVariant, type IconSpaceMode, type ImperativeModalProps, Input, type InputClassNames, InputNumber, type InputNumberProps, InputOTP, type InputOTPProps, InputPassword, type InputPasswordProps, type InputProps, type InputSize, type InputStyles, type InputVariant, type ItemsType, Modal, ModalBackdrop, type ModalBackdropProps, ModalClose, type ModalCloseProps, type ModalComponentProps, type ModalConfirmConfig, ModalContent, type ModalContentProps, ModalContext, type ModalContextValue, ModalDescription, type ModalDescriptionProps, ModalFooter, type ModalFooterProps, ModalHeader, type ModalHeaderProps, ModalHost, type ModalHostProps, type ModalInstance, ModalPopup, type ModalPopupProps, ModalPortal, type ModalPortalProps, ModalRoot, type ModalRootProps, type ModalSystem, ModalTitle, type ModalTitleProps, ModalTrigger, type ModalTriggerProps, ModalViewport, type ModalViewportProps, Popover, PopoverArrow, type PopoverArrowAtomProps, PopoverArrowIcon, PopoverBackdrop, type PopoverBackdropProps, type PopoverContextValue, PopoverGroup, type PopoverGroupHandle, type PopoverGroupItem, type PopoverPlacement, PopoverPopup, type PopoverPopupAtomProps, type PopoverPopupProps, PopoverPortal, type PopoverPortalAtomProps, type PopoverPortalProps, PopoverPositioner, type PopoverPositionerAtomProps, type PopoverPositionerProps, type PopoverProps, PopoverProvider, PopoverRoot, type PopoverTrigger, type PopoverTriggerComponentProps, PopoverTriggerElement, type PopoverTriggerElementProps, PopoverViewport, type PopoverViewportAtomProps, Radio, RadioGroup, type RadioGroupOption, type RadioGroupProps, type RadioProps, ScrollArea, ScrollAreaContent, type ScrollAreaContentProps, ScrollAreaCorner, type ScrollAreaCornerProps, type ScrollAreaProps, ScrollAreaRoot, type ScrollAreaRootProps, ScrollAreaScrollbar, type ScrollAreaScrollbarProps, ScrollAreaThumb, type ScrollAreaThumbProps, ScrollAreaViewport, type ScrollAreaViewportProps, Segmented, type SegmentedClassNames, SegmentedIndicator, type SegmentedIndicatorProps, SegmentedItem, SegmentedItemIcon, SegmentedItemLabel, type SegmentedItemProps, type SegmentedOption, type SegmentedOptions, type SegmentedOrientation, type SegmentedProps, SegmentedRoot, type SegmentedRootProps, type SegmentedSize, type SegmentedStyles, type SegmentedVariant, Select, SelectArrow, type SelectArrowProps, SelectBackdrop, type SelectBehaviorVariant, type SelectClassNames, SelectGroup, SelectGroupLabel, type SelectGroupLabelProps, type SelectGroupProps, SelectIcon, type SelectIconProps, type SelectIndicatorVariant, SelectItem, SelectItemIndicator, type SelectItemIndicatorProps, type SelectItemProps, SelectItemText, type SelectItemTextProps, SelectList, type SelectListProps, type SelectOption, type SelectOptionGroup, type SelectOptions, SelectPopup, type SelectPopupProps, SelectPortal, type SelectPortalProps, SelectPositioner, type SelectPositionerProps, type SelectProps, SelectRoot, type SelectRootChangeEventDetails, SelectScrollDownArrow, type SelectScrollDownArrowProps, SelectScrollUpArrow, type SelectScrollUpArrowProps, SelectSeparator, type SelectSize, SelectTrigger, type SelectTriggerProps, SelectValue, type SelectValueProps, type SelectVariant, Slider, type SliderProps, SliderWithInput, type SliderWithInputProps, _default as SplitButton, type SplitButtonMenuProps, type SplitButtonProps, Switch, type SwitchChangeEventHandler, type SwitchClassNames, type SwitchClickEventHandler, type SwitchContextType, SwitchIcon, type SwitchIconPosition, type SwitchIconProps, type SwitchProps, SwitchRoot, type SwitchRootProps, type SwitchSize, type SwitchStyles, SwitchThumb, type SwitchThumbProps, Tabs, type TabsClassNames, TabsIndicator, type TabsIndicatorProps, type TabsItem, TabsList, type TabsListProps, type TabsOrientation, TabsPanel, type TabsPanelProps, type TabsProps, TabsRoot, type TabsRootProps, type TabsSize, type TabsStyles, TabsTab, type TabsTabProps, type TabsVariant, TextArea, type TextAreaAutoSize, type TextAreaProps, type ToastAPI, ToastHost, type ToastHostProps, type ToastInstance, type ToastOptions, type ToastPosition, type ToastPromiseOptions, type ToastProps, type ToastType, Tooltip, TooltipGroup, type TooltipGroupProps, type TooltipPlacement, type TooltipPopupComponentProps, type TooltipPortalProps, type TooltipPositionerProps, type TooltipProps, type TooltipTriggerComponentProps, styles as alertStyles, styles$1 as autoCompleteStyles, backdropTransition, styles$2 as buttonStyles, styles$3 as checkboxStyles, closeContextMenu, confirmModal, controlHeight, createModal, createModalSystem, drawerBackdropTransition, getDrawerMotionConfig, styles$4 as inputStyles, rootVariants as inputVariants, modalMotionConfig, parseTrigger, styles$5 as radioStyles, renderDropdownMenuItems, setContextMenuInterceptor, showContextMenu, styles$6 as sliderStyles, styles$7 as switchStyles, styles$8 as tabsStyles, toast, updateContextMenuItems, useDrawerActions, useDrawerOpen, useFormContext, useModalActions, useModalContext, useModalOpen, usePopoverContext, usePopoverGroupHandle, usePopoverPortalContainer, useSwitchContext, useTabsContext, useToast };
123
+ import { TagClassNames, TagProps, TagShape, TagSize, TagStyles, TagVariant } from "./Tag/type.mjs";
124
+ import Tag from "./Tag/Tag.mjs";
125
+ import { colorsPreset, colorsPresetSystem, presetColors, presetSystemColors } from "./Tag/utils.mjs";
126
+ import "./Tag/index.mjs";
127
+ import { styles as styles$10, variants } from "./Text/style.mjs";
128
+ import { TextClassNames, TextProps, TextStyles } from "./Text/type.mjs";
129
+ import Text from "./Text/Text.mjs";
130
+ import "./Text/index.mjs";
131
+ export { ActionIcon, type ActionIconClassNames, type ActionIconProps, type ActionIconSize, type ActionIconStyles, Alert, type AlertClassNames, type AlertCloseConfig, type AlertProps, type AlertRef, type AlertStyles, type AlertType, type AlertVariant, AutoComplete, type AutoCompleteOption, type AutoCompleteProps, Avatar, type AvatarClassNames, AvatarGroup, type AvatarGroupItemType, type AvatarGroupProps, type AvatarProps, type AvatarStyles, type BaseModalProps, Button, type ButtonIconPosition, type ButtonProps, type ButtonShape, type ButtonSize, type ButtonType, Checkbox, CheckboxGroup, type CheckboxGroupOption, type CheckboxGroupProps, type CheckboxProps, type CheckboxShape, type ContextMenuCheckboxItem, ContextMenuHost, type ContextMenuInterceptor, type ContextMenuItem, ContextMenuTrigger, type ControlSize, Drawer, DrawerBackdrop, type DrawerBackdropProps, DrawerClose, type DrawerCloseProps, DrawerContent, type DrawerContentProps, DrawerDescription, type DrawerDescriptionProps, DrawerFooter, type DrawerFooterProps, DrawerHeader, type DrawerHeaderProps, type DrawerPlacement, DrawerPopup, type DrawerPopupProps, DrawerPortal, type DrawerPortalProps, type DrawerProps, type DrawerPush, DrawerRoot, type DrawerRootProps, type DrawerSemanticNames, type DrawerSemanticStyles, DrawerTitle, type DrawerTitleProps, DrawerTrigger, type DrawerTriggerProps, type DropdownItem, DropdownMenu, type DropdownMenuCheckboxItem, DropdownMenuCheckboxItemIndicator, DropdownMenuCheckboxItemPrimitive, type DropdownMenuCheckboxItemProps, DropdownMenuFooter, type DropdownMenuFooterProps, DropdownMenuGroup, DropdownMenuGroupLabel, type DropdownMenuGroupLabelProps, DropdownMenuHeader, type DropdownMenuHeaderProps, DropdownMenuItem, DropdownMenuItemContent, type DropdownMenuItemContentProps, DropdownMenuItemDesc, type DropdownMenuItemDescProps, DropdownMenuItemExtra, type DropdownMenuItemExtraProps, DropdownMenuItemIcon, type DropdownMenuItemIconProps, DropdownMenuItemLabel, DropdownMenuItemLabelGroup, type DropdownMenuItemLabelGroupProps, type DropdownMenuItemLabelProps, type DropdownMenuItemProps, type DropdownMenuPlacement, DropdownMenuPopup, type DropdownMenuPopupProps, DropdownMenuPortal, type DropdownMenuPortalProps, DropdownMenuPositioner, type DropdownMenuPositionerProps, type DropdownMenuProps, DropdownMenuRoot, DropdownMenuScrollViewport, type DropdownMenuScrollViewportProps, DropdownMenuSeparator, type DropdownMenuSeparatorProps, DropdownMenuSubmenuArrow, type DropdownMenuSubmenuArrowProps, DropdownMenuSubmenuRoot, DropdownMenuSubmenuTrigger, type DropdownMenuSubmenuTriggerProps, DropdownMenuSwitchItem, type DropdownMenuSwitchItemProps, type DropdownMenuSwitchItem$1 as DropdownMenuSwitchItemType, DropdownMenuTrigger, type DropdownMenuTriggerProps, FloatingPanel, type FloatingPanelOffset, type FloatingPanelPlacement, type FloatingPanelProps, FloatingSheet, type FloatingSheetProps, Form, type FormContextValue, FormDivider, type FormDividerProps, FormField, type FormFieldProps, FormFlatGroup, type FormFlatGroupProps, FormFooter, type FormFooterProps, FormGroup, type FormGroupItemType, type FormGroupProps, type FormLayout, type FormProps, FormSubmitFooter, type FormSubmitFooterProps, FormTitle, type FormTitleProps, type FormValues, type FormVariant, type IconSpaceMode, type ImperativeModalProps, Input, type InputClassNames, InputNumber, type InputNumberProps, InputOTP, type InputOTPProps, InputPassword, type InputPasswordProps, type InputProps, type InputSize, type InputStyles, type InputVariant, type ItemsType, Modal, ModalBackdrop, type ModalBackdropProps, ModalClose, type ModalCloseProps, type ModalComponentProps, type ModalConfirmConfig, ModalContent, type ModalContentProps, ModalContext, type ModalContextValue, ModalDescription, type ModalDescriptionProps, ModalFooter, type ModalFooterProps, ModalHeader, type ModalHeaderProps, ModalHost, type ModalHostProps, type ModalInstance, ModalPopup, type ModalPopupProps, ModalPortal, type ModalPortalProps, ModalRoot, type ModalRootProps, type ModalSystem, ModalTitle, type ModalTitleProps, ModalTrigger, type ModalTriggerProps, ModalViewport, type ModalViewportProps, Popover, PopoverArrow, type PopoverArrowAtomProps, PopoverArrowIcon, PopoverBackdrop, type PopoverBackdropProps, type PopoverContextValue, PopoverGroup, type PopoverGroupHandle, type PopoverGroupItem, type PopoverPlacement, PopoverPopup, type PopoverPopupAtomProps, type PopoverPopupProps, PopoverPortal, type PopoverPortalAtomProps, type PopoverPortalProps, PopoverPositioner, type PopoverPositionerAtomProps, type PopoverPositionerProps, type PopoverProps, PopoverProvider, PopoverRoot, type PopoverTrigger, type PopoverTriggerComponentProps, PopoverTriggerElement, type PopoverTriggerElementProps, PopoverViewport, type PopoverViewportAtomProps, Radio, RadioGroup, type RadioGroupOption, type RadioGroupProps, type RadioProps, ScrollArea, ScrollAreaContent, type ScrollAreaContentProps, ScrollAreaCorner, type ScrollAreaCornerProps, type ScrollAreaProps, ScrollAreaRoot, type ScrollAreaRootProps, ScrollAreaScrollbar, type ScrollAreaScrollbarProps, ScrollAreaThumb, type ScrollAreaThumbProps, ScrollAreaViewport, type ScrollAreaViewportProps, Segmented, type SegmentedClassNames, SegmentedIndicator, type SegmentedIndicatorProps, SegmentedItem, SegmentedItemIcon, SegmentedItemLabel, type SegmentedItemProps, type SegmentedOption, type SegmentedOptions, type SegmentedOrientation, type SegmentedProps, SegmentedRoot, type SegmentedRootProps, type SegmentedSize, type SegmentedStyles, type SegmentedVariant, Select, SelectArrow, type SelectArrowProps, SelectBackdrop, type SelectBehaviorVariant, type SelectClassNames, SelectGroup, SelectGroupLabel, type SelectGroupLabelProps, type SelectGroupProps, SelectIcon, type SelectIconProps, type SelectIndicatorVariant, SelectItem, SelectItemIndicator, type SelectItemIndicatorProps, type SelectItemProps, SelectItemText, type SelectItemTextProps, SelectList, type SelectListProps, type SelectOption, type SelectOptionGroup, type SelectOptions, SelectPopup, type SelectPopupProps, SelectPortal, type SelectPortalProps, SelectPositioner, type SelectPositionerProps, type SelectProps, SelectRoot, type SelectRootChangeEventDetails, SelectScrollDownArrow, type SelectScrollDownArrowProps, SelectScrollUpArrow, type SelectScrollUpArrowProps, SelectSeparator, type SelectSize, SelectTrigger, type SelectTriggerProps, SelectValue, type SelectValueProps, type SelectVariant, Slider, type SliderProps, SliderWithInput, type SliderWithInputProps, _default as SplitButton, type SplitButtonMenuProps, type SplitButtonProps, Switch, type SwitchChangeEventHandler, type SwitchClassNames, type SwitchClickEventHandler, type SwitchContextType, SwitchIcon, type SwitchIconPosition, type SwitchIconProps, type SwitchProps, SwitchRoot, type SwitchRootProps, type SwitchSize, type SwitchStyles, SwitchThumb, type SwitchThumbProps, Tabs, type TabsClassNames, TabsIndicator, type TabsIndicatorProps, type TabsItem, TabsList, type TabsListProps, type TabsOrientation, TabsPanel, type TabsPanelProps, type TabsProps, TabsRoot, type TabsRootProps, type TabsSize, type TabsStyles, TabsTab, type TabsTabProps, type TabsVariant, Tag, type TagClassNames, type TagProps, type TagShape, type TagSize, type TagStyles, type TagVariant, Text, TextArea, type TextAreaAutoSize, type TextAreaProps, type TextClassNames, type TextProps, type TextStyles, type ToastAPI, ToastHost, type ToastHostProps, type ToastInstance, type ToastOptions, type ToastPosition, type ToastPromiseOptions, type ToastProps, type ToastType, Tooltip, TooltipGroup, type TooltipGroupProps, type TooltipPlacement, type TooltipPopupComponentProps, type TooltipPortalProps, type TooltipPositionerProps, type TooltipProps, type TooltipTriggerComponentProps, styles as actionIconStyles, styles$1 as alertStyles, styles$2 as autoCompleteStyles, backdropTransition, styles$3 as buttonStyles, styles$4 as checkboxStyles, closeContextMenu, colorsPreset, colorsPresetSystem, confirmModal, controlHeight, createModal, createModalSystem, drawerBackdropTransition, getDrawerMotionConfig, styles$5 as inputStyles, rootVariants as inputVariants, modalMotionConfig, parseTrigger, presetColors, presetSystemColors, styles$6 as radioStyles, renderDropdownMenuItems, setContextMenuInterceptor, showContextMenu, styles$7 as sliderStyles, styles$8 as switchStyles, styles$9 as tabsStyles, styles$10 as textStyles, variants as textVariants, toast, updateContextMenuItems, useDrawerActions, useDrawerOpen, useFormContext, useModalActions, useModalContext, useModalOpen, usePopoverContext, usePopoverGroupHandle, usePopoverPortalContainer, useSwitchContext, useTabsContext, useToast };
@@ -1,6 +1,6 @@
1
1
  import { Tooltip } from "./Tooltip/Tooltip.mjs";
2
2
  import TooltipGroup from "./Tooltip/TooltipGroup.mjs";
3
- import { styles as styles$7 } from "./Switch/style.mjs";
3
+ import { styles as styles$8 } from "./Switch/style.mjs";
4
4
  import { SwitchIcon, SwitchRoot, SwitchThumb, useSwitchContext } from "./Switch/atoms.mjs";
5
5
  import Switch from "./Switch/Switch.mjs";
6
6
  import { DropdownMenuCheckboxItemIndicator, DropdownMenuCheckboxItemPrimitive, DropdownMenuFooter, DropdownMenuGroup, DropdownMenuGroupLabel, DropdownMenuHeader, DropdownMenuItem, DropdownMenuItemContent, DropdownMenuItemDesc, DropdownMenuItemExtra, DropdownMenuItemIcon, DropdownMenuItemLabel, DropdownMenuItemLabelGroup, DropdownMenuPopup, DropdownMenuPortal, DropdownMenuPositioner, DropdownMenuRoot, DropdownMenuScrollViewport, DropdownMenuSeparator, DropdownMenuSubmenuArrow, DropdownMenuSubmenuRoot, DropdownMenuSubmenuTrigger, DropdownMenuSwitchItem, DropdownMenuTrigger } from "./DropdownMenu/atoms.mjs";
@@ -20,21 +20,25 @@ import PopoverGroup from "./Popover/PopoverGroup.mjs";
20
20
  import { ToastHost, toast, useToast } from "./Toast/imperative.mjs";
21
21
  import { ScrollAreaContent, ScrollAreaCorner, ScrollAreaRoot, ScrollAreaScrollbar, ScrollAreaThumb, ScrollAreaViewport } from "./ScrollArea/atoms.mjs";
22
22
  import { ScrollArea } from "./ScrollArea/ScrollArea.mjs";
23
- import { styles } from "./Alert/style.mjs";
24
- import Alert from "./Alert/Alert.mjs";
25
23
  import { controlHeight } from "./controlSize.mjs";
26
- import { rootVariants, styles as styles$4 } from "./Input/style.mjs";
24
+ import { styles as styles$3 } from "./Button/style.mjs";
25
+ import Button from "./Button/Button.mjs";
26
+ import SplitButton from "./Button/SplitButton.mjs";
27
+ import { styles } from "./ActionIcon/style.mjs";
28
+ import ActionIcon from "./ActionIcon/ActionIcon.mjs";
29
+ import { styles as styles$1 } from "./Alert/style.mjs";
30
+ import Alert from "./Alert/Alert.mjs";
31
+ import { rootVariants, styles as styles$5 } from "./Input/style.mjs";
27
32
  import Input from "./Input/Input.mjs";
28
33
  import InputNumber from "./Input/InputNumber.mjs";
29
34
  import InputOTP from "./Input/InputOTP.mjs";
30
35
  import InputPassword from "./Input/InputPassword.mjs";
31
36
  import TextArea from "./Input/TextArea.mjs";
32
- import { styles as styles$1 } from "./AutoComplete/style.mjs";
37
+ import { styles as styles$2 } from "./AutoComplete/style.mjs";
33
38
  import AutoComplete from "./AutoComplete/AutoComplete.mjs";
34
- import { styles as styles$2 } from "./Button/style.mjs";
35
- import Button from "./Button/Button.mjs";
36
- import SplitButton from "./Button/SplitButton.mjs";
37
- import { styles as styles$3 } from "./Checkbox/style.mjs";
39
+ import AvatarGroup from "./Avatar/AvatarGroup/index.mjs";
40
+ import Avatar from "./Avatar/index.mjs";
41
+ import { styles as styles$4 } from "./Checkbox/style.mjs";
38
42
  import Checkbox from "./Checkbox/Checkbox.mjs";
39
43
  import CheckboxGroup from "./Checkbox/CheckboxGroup.mjs";
40
44
  import { drawerBackdropTransition, getDrawerMotionConfig } from "./Drawer/constants.mjs";
@@ -56,17 +60,21 @@ import FormFooter from "./Form/components/FormFooter.mjs";
56
60
  import FormGroup from "./Form/components/FormGroup.mjs";
57
61
  import FormSubmitFooter from "./Form/components/FormSubmitFooter.mjs";
58
62
  import { Form } from "./Form/index.mjs";
59
- import { styles as styles$5 } from "./Radio/style.mjs";
63
+ import { styles as styles$6 } from "./Radio/style.mjs";
60
64
  import Radio from "./Radio/Radio.mjs";
61
65
  import RadioGroup from "./Radio/RadioGroup.mjs";
62
66
  import { SegmentedIndicator, SegmentedItem, SegmentedItemIcon, SegmentedItemLabel, SegmentedRoot } from "./Segmented/atoms.mjs";
63
67
  import Segmented from "./Segmented/Segmented.mjs";
64
68
  import { SelectArrow, SelectBackdrop, SelectGroup, SelectGroupLabel, SelectIcon, SelectItem, SelectItemIndicator, SelectItemText, SelectList, SelectPopup, SelectPortal, SelectPositioner, SelectRoot, SelectScrollDownArrow, SelectScrollUpArrow, SelectSeparator, SelectTrigger, SelectValue } from "./Select/atoms.mjs";
65
69
  import Select from "./Select/Select.mjs";
66
- import { styles as styles$6 } from "./Slider/style.mjs";
70
+ import { styles as styles$7 } from "./Slider/style.mjs";
67
71
  import Slider from "./Slider/Slider.mjs";
68
72
  import SliderWithInput from "./Slider/SliderWithInput.mjs";
69
- import { styles as styles$8 } from "./Tabs/style.mjs";
73
+ import { styles as styles$9 } from "./Tabs/style.mjs";
70
74
  import { TabsIndicator, TabsList, TabsPanel, TabsRoot, TabsTab, useTabsContext } from "./Tabs/atoms.mjs";
71
75
  import Tabs from "./Tabs/Tabs.mjs";
72
- export { Alert, AutoComplete, Button, Checkbox, CheckboxGroup, ContextMenuHost, ContextMenuTrigger, Drawer, DrawerBackdrop, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerPopup, DrawerPortal, DrawerRoot, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItemIndicator, DropdownMenuCheckboxItemPrimitive, DropdownMenuFooter, DropdownMenuGroup, DropdownMenuGroupLabel, DropdownMenuHeader, DropdownMenuItem, DropdownMenuItemContent, DropdownMenuItemDesc, DropdownMenuItemExtra, DropdownMenuItemIcon, DropdownMenuItemLabel, DropdownMenuItemLabelGroup, DropdownMenuPopup, DropdownMenuPortal, DropdownMenuPositioner, DropdownMenuRoot, DropdownMenuScrollViewport, DropdownMenuSeparator, DropdownMenuSubmenuArrow, DropdownMenuSubmenuRoot, DropdownMenuSubmenuTrigger, DropdownMenuSwitchItem, DropdownMenuTrigger, FloatingPanel, FloatingSheet, Form, FormDivider, FormField, FormFlatGroup, FormFooter, FormGroup, FormSubmitFooter, FormTitle, Input, InputNumber, InputOTP, InputPassword, Modal, ModalBackdrop, ModalClose, ModalContent, ModalContext, ModalDescription, ModalFooter, ModalHeader, ModalHost, ModalPopup, ModalPortal, ModalRoot, ModalTitle, ModalTrigger, ModalViewport, Popover, PopoverArrow, PopoverArrowIcon, PopoverBackdrop, PopoverGroup, PopoverPopup, PopoverPortal, PopoverPositioner, PopoverProvider, PopoverRoot, PopoverTriggerElement, PopoverViewport, Radio, RadioGroup, ScrollArea, ScrollAreaContent, ScrollAreaCorner, ScrollAreaRoot, ScrollAreaScrollbar, ScrollAreaThumb, ScrollAreaViewport, Segmented, SegmentedIndicator, SegmentedItem, SegmentedItemIcon, SegmentedItemLabel, SegmentedRoot, Select, SelectArrow, SelectBackdrop, SelectGroup, SelectGroupLabel, SelectIcon, SelectItem, SelectItemIndicator, SelectItemText, SelectList, SelectPopup, SelectPortal, SelectPositioner, SelectRoot, SelectScrollDownArrow, SelectScrollUpArrow, SelectSeparator, SelectTrigger, SelectValue, Slider, SliderWithInput, SplitButton, Switch, SwitchIcon, SwitchRoot, SwitchThumb, Tabs, TabsIndicator, TabsList, TabsPanel, TabsRoot, TabsTab, TextArea, ToastHost, Tooltip, TooltipGroup, styles as alertStyles, styles$1 as autoCompleteStyles, backdropTransition, styles$2 as buttonStyles, styles$3 as checkboxStyles, closeContextMenu, confirmModal, controlHeight, createModal, createModalSystem, drawerBackdropTransition, getDrawerMotionConfig, styles$4 as inputStyles, rootVariants as inputVariants, modalMotionConfig, parseTrigger, styles$5 as radioStyles, renderDropdownMenuItems, setContextMenuInterceptor, showContextMenu, styles$6 as sliderStyles, styles$7 as switchStyles, styles$8 as tabsStyles, toast, updateContextMenuItems, useDrawerActions, useDrawerOpen, useFormContext, useModalActions, useModalContext, useModalOpen, usePopoverContext, usePopoverGroupHandle, usePopoverPortalContainer, useSwitchContext, useTabsContext, useToast };
76
+ import { colorsPreset, colorsPresetSystem, presetColors, presetSystemColors } from "./Tag/utils.mjs";
77
+ import Tag from "./Tag/Tag.mjs";
78
+ import { styles as styles$10, variants } from "./Text/style.mjs";
79
+ import Text from "./Text/Text.mjs";
80
+ export { ActionIcon, Alert, AutoComplete, Avatar, AvatarGroup, Button, Checkbox, CheckboxGroup, ContextMenuHost, ContextMenuTrigger, Drawer, DrawerBackdrop, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerPopup, DrawerPortal, DrawerRoot, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItemIndicator, DropdownMenuCheckboxItemPrimitive, DropdownMenuFooter, DropdownMenuGroup, DropdownMenuGroupLabel, DropdownMenuHeader, DropdownMenuItem, DropdownMenuItemContent, DropdownMenuItemDesc, DropdownMenuItemExtra, DropdownMenuItemIcon, DropdownMenuItemLabel, DropdownMenuItemLabelGroup, DropdownMenuPopup, DropdownMenuPortal, DropdownMenuPositioner, DropdownMenuRoot, DropdownMenuScrollViewport, DropdownMenuSeparator, DropdownMenuSubmenuArrow, DropdownMenuSubmenuRoot, DropdownMenuSubmenuTrigger, DropdownMenuSwitchItem, DropdownMenuTrigger, FloatingPanel, FloatingSheet, Form, FormDivider, FormField, FormFlatGroup, FormFooter, FormGroup, FormSubmitFooter, FormTitle, Input, InputNumber, InputOTP, InputPassword, Modal, ModalBackdrop, ModalClose, ModalContent, ModalContext, ModalDescription, ModalFooter, ModalHeader, ModalHost, ModalPopup, ModalPortal, ModalRoot, ModalTitle, ModalTrigger, ModalViewport, Popover, PopoverArrow, PopoverArrowIcon, PopoverBackdrop, PopoverGroup, PopoverPopup, PopoverPortal, PopoverPositioner, PopoverProvider, PopoverRoot, PopoverTriggerElement, PopoverViewport, Radio, RadioGroup, ScrollArea, ScrollAreaContent, ScrollAreaCorner, ScrollAreaRoot, ScrollAreaScrollbar, ScrollAreaThumb, ScrollAreaViewport, Segmented, SegmentedIndicator, SegmentedItem, SegmentedItemIcon, SegmentedItemLabel, SegmentedRoot, Select, SelectArrow, SelectBackdrop, SelectGroup, SelectGroupLabel, SelectIcon, SelectItem, SelectItemIndicator, SelectItemText, SelectList, SelectPopup, SelectPortal, SelectPositioner, SelectRoot, SelectScrollDownArrow, SelectScrollUpArrow, SelectSeparator, SelectTrigger, SelectValue, Slider, SliderWithInput, SplitButton, Switch, SwitchIcon, SwitchRoot, SwitchThumb, Tabs, TabsIndicator, TabsList, TabsPanel, TabsRoot, TabsTab, Tag, Text, TextArea, ToastHost, Tooltip, TooltipGroup, styles as actionIconStyles, styles$1 as alertStyles, styles$2 as autoCompleteStyles, backdropTransition, styles$3 as buttonStyles, styles$4 as checkboxStyles, closeContextMenu, colorsPreset, colorsPresetSystem, confirmModal, controlHeight, createModal, createModalSystem, drawerBackdropTransition, getDrawerMotionConfig, styles$5 as inputStyles, rootVariants as inputVariants, modalMotionConfig, parseTrigger, presetColors, presetSystemColors, styles$6 as radioStyles, renderDropdownMenuItems, setContextMenuInterceptor, showContextMenu, styles$7 as sliderStyles, styles$8 as switchStyles, styles$9 as tabsStyles, styles$10 as textStyles, variants as textVariants, toast, updateContextMenuItems, useDrawerActions, useDrawerOpen, useFormContext, useModalActions, useModalContext, useModalOpen, usePopoverContext, usePopoverGroupHandle, usePopoverPortalContainer, useSwitchContext, useTabsContext, useToast };
@@ -1,5 +1,5 @@
1
1
  //#region src/utils/safeReadableColor.ts
2
- const safeReadableColor = (bgColor) => `contrast-color(${bgColor})`;
2
+ const safeReadableColor = (bgColor) => `oklch(from ${bgColor} clamp(0, (l - 0.62) * -1000, 1) 0 h / 1)`;
3
3
  //#endregion
4
4
  export { safeReadableColor };
5
5
 
@@ -1 +1 @@
1
- {"version":3,"file":"safeReadableColor.mjs","names":[],"sources":["../../src/utils/safeReadableColor.ts"],"sourcesContent":["export const safeReadableColor = (bgColor: string): string => `contrast-color(${bgColor})`;\n"],"mappings":";AAAA,MAAa,qBAAqB,YAA4B,kBAAkB,QAAQ"}
1
+ {"version":3,"file":"safeReadableColor.mjs","names":[],"sources":["../../src/utils/safeReadableColor.ts"],"sourcesContent":["export const safeReadableColor = (bgColor: string): string =>\n `oklch(from ${bgColor} clamp(0, (l - 0.62) * -1000, 1) 0 h / 1)`;\n"],"mappings":";AAAA,MAAa,qBAAqB,YAChC,cAAc,QAAQ"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/ui",
3
- "version": "5.32.7",
3
+ "version": "5.33.0",
4
4
  "description": "Lobe UI is an open-source UI component library for building AIGC web apps",
5
5
  "keywords": [
6
6
  "lobehub",