@lobehub/ui 5.33.3 → 5.34.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/base-ui/Accordion/Accordion.d.mts +7 -0
- package/es/base-ui/Accordion/Accordion.mjs +58 -0
- package/es/base-ui/Accordion/Accordion.mjs.map +1 -0
- package/es/base-ui/Accordion/atoms.d.mts +18 -0
- package/es/base-ui/Accordion/atoms.mjs +96 -0
- package/es/base-ui/Accordion/atoms.mjs.map +1 -0
- package/es/base-ui/Accordion/index.d.mts +5 -0
- package/es/base-ui/Accordion/style.d.mts +28 -0
- package/es/base-ui/Accordion/style.mjs +245 -0
- package/es/base-ui/Accordion/style.mjs.map +1 -0
- package/es/base-ui/Accordion/type.d.mts +79 -0
- package/es/base-ui/ActionIcon/ActionIcon.mjs +1 -0
- package/es/base-ui/ActionIcon/ActionIcon.mjs.map +1 -1
- package/es/base-ui/ActionIcon/style.d.mts +2 -0
- package/es/base-ui/ActionIcon/style.mjs +29 -2
- package/es/base-ui/ActionIcon/style.mjs.map +1 -1
- package/es/base-ui/ToggleGroup/ToggleGroup.d.mts +9 -0
- package/es/base-ui/ToggleGroup/ToggleGroup.mjs +58 -0
- package/es/base-ui/ToggleGroup/ToggleGroup.mjs.map +1 -0
- package/es/base-ui/ToggleGroup/atoms.d.mts +33 -0
- package/es/base-ui/ToggleGroup/atoms.mjs +40 -0
- package/es/base-ui/ToggleGroup/atoms.mjs.map +1 -0
- package/es/base-ui/ToggleGroup/index.d.mts +5 -0
- package/es/base-ui/ToggleGroup/style.d.mts +15 -0
- package/es/base-ui/ToggleGroup/style.mjs +117 -0
- package/es/base-ui/ToggleGroup/style.mjs.map +1 -0
- package/es/base-ui/ToggleGroup/type.d.mts +41 -0
- package/es/base-ui/index.d.mts +22 -12
- package/es/base-ui/index.mjs +18 -12
- package/package.json +1 -1
|
@@ -2,16 +2,39 @@ import { staticStylish } from "../../styles/theme/customStylishStatic.mjs";
|
|
|
2
2
|
import { createStaticStyles } from "antd-style";
|
|
3
3
|
import { cva } from "class-variance-authority";
|
|
4
4
|
//#region src/base-ui/ActionIcon/style.ts
|
|
5
|
-
const styles = createStaticStyles(() => {
|
|
5
|
+
const styles = createStaticStyles(({ css, cssVar }) => {
|
|
6
6
|
return {
|
|
7
7
|
active: staticStylish.active,
|
|
8
|
+
dangerRoot: css`
|
|
9
|
+
&&:hover {
|
|
10
|
+
color: ${cssVar.colorError};
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
&&:active {
|
|
14
|
+
color: ${cssVar.colorErrorActive};
|
|
15
|
+
}
|
|
16
|
+
`,
|
|
8
17
|
glass: staticStylish.blur,
|
|
18
|
+
root: css`
|
|
19
|
+
&& {
|
|
20
|
+
color: ${cssVar.colorTextTertiary};
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
&&:hover {
|
|
24
|
+
color: ${cssVar.colorTextSecondary};
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&&:active {
|
|
28
|
+
color: ${cssVar.colorText};
|
|
29
|
+
}
|
|
30
|
+
`,
|
|
9
31
|
shadow: staticStylish.shadow
|
|
10
32
|
};
|
|
11
33
|
});
|
|
12
|
-
const variants = cva(
|
|
34
|
+
const variants = cva(styles.root, {
|
|
13
35
|
defaultVariants: {
|
|
14
36
|
active: false,
|
|
37
|
+
danger: false,
|
|
15
38
|
glass: false,
|
|
16
39
|
shadow: false
|
|
17
40
|
},
|
|
@@ -20,6 +43,10 @@ const variants = cva(null, {
|
|
|
20
43
|
false: null,
|
|
21
44
|
true: styles.active
|
|
22
45
|
},
|
|
46
|
+
danger: {
|
|
47
|
+
false: null,
|
|
48
|
+
true: styles.dangerRoot
|
|
49
|
+
},
|
|
23
50
|
glass: {
|
|
24
51
|
false: null,
|
|
25
52
|
true: styles.glass
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"style.mjs","names":["lobeStaticStylish"],"sources":["../../../src/base-ui/ActionIcon/style.ts"],"sourcesContent":["import { createStaticStyles } from 'antd-style';\nimport { cva } from 'class-variance-authority';\n\nimport { lobeStaticStylish } from '@/styles';\n\nexport const styles = createStaticStyles(() => {\n return {\n active: lobeStaticStylish.active,\n glass: lobeStaticStylish.blur,\n shadow: lobeStaticStylish.shadow,\n };\n});\n\nexport const variants = cva(
|
|
1
|
+
{"version":3,"file":"style.mjs","names":["lobeStaticStylish"],"sources":["../../../src/base-ui/ActionIcon/style.ts"],"sourcesContent":["import { createStaticStyles } from 'antd-style';\nimport { cva } from 'class-variance-authority';\n\nimport { lobeStaticStylish } from '@/styles';\n\nexport const styles = createStaticStyles(({ css, cssVar }) => {\n return {\n active: lobeStaticStylish.active,\n // && outranks base-ui Button's variant classes regardless of style insertion order\n dangerRoot: css`\n &&:hover {\n color: ${cssVar.colorError};\n }\n\n &&:active {\n color: ${cssVar.colorErrorActive};\n }\n `,\n glass: lobeStaticStylish.blur,\n root: css`\n && {\n color: ${cssVar.colorTextTertiary};\n }\n\n &&:hover {\n color: ${cssVar.colorTextSecondary};\n }\n\n &&:active {\n color: ${cssVar.colorText};\n }\n `,\n shadow: lobeStaticStylish.shadow,\n };\n});\n\nexport const variants = cva(styles.root, {\n defaultVariants: {\n active: false,\n danger: false,\n glass: false,\n shadow: false,\n },\n\n variants: {\n active: {\n false: null,\n true: styles.active,\n },\n danger: {\n false: null,\n true: styles.dangerRoot,\n },\n glass: {\n false: null,\n true: styles.glass,\n },\n shadow: {\n false: null,\n true: styles.shadow,\n },\n },\n});\n"],"mappings":";;;;AAKA,MAAa,SAAS,oBAAoB,EAAE,KAAK,aAAa;CAC5D,OAAO;EACL,QAAQA,cAAkB;EAE1B,YAAY,GAAG;;iBAEF,OAAO,WAAW;;;;iBAIlB,OAAO,iBAAiB;;;EAGrC,OAAOA,cAAkB;EACzB,MAAM,GAAG;;iBAEI,OAAO,kBAAkB;;;;iBAIzB,OAAO,mBAAmB;;;;iBAI1B,OAAO,UAAU;;;EAG9B,QAAQA,cAAkB;CAC5B;AACF,CAAC;AAED,MAAa,WAAW,IAAI,OAAO,MAAM;CACvC,iBAAiB;EACf,QAAQ;EACR,QAAQ;EACR,OAAO;EACP,QAAQ;CACV;CAEA,UAAU;EACR,QAAQ;GACN,OAAO;GACP,MAAM,OAAO;EACf;EACA,QAAQ;GACN,OAAO;GACP,MAAM,OAAO;EACf;EACA,OAAO;GACL,OAAO;GACP,MAAM,OAAO;EACf;EACA,QAAQ;GACN,OAAO;GACP,MAAM,OAAO;EACf;CACF;AACF,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ToggleGroupProps } from "./type.mjs";
|
|
2
|
+
//#region src/base-ui/ToggleGroup/ToggleGroup.d.ts
|
|
3
|
+
declare const ToggleGroup: {
|
|
4
|
+
<Value extends string = string>({ className, classNames, defaultValue, disabled, onChange, options, ref, size, style, styles: customStyles, value, variant }: ToggleGroupProps<Value>): import("react").JSX.Element;
|
|
5
|
+
displayName: string;
|
|
6
|
+
};
|
|
7
|
+
//#endregion
|
|
8
|
+
export { ToggleGroup as default };
|
|
9
|
+
//# sourceMappingURL=ToggleGroup.d.mts.map
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { ToggleGroupItem, ToggleGroupItemIcon, ToggleGroupItemLabel, ToggleGroupRoot } from "./atoms.mjs";
|
|
3
|
+
import { useMemo } from "react";
|
|
4
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
+
import { cx } from "antd-style";
|
|
6
|
+
import useMergeState from "use-merge-value";
|
|
7
|
+
//#region src/base-ui/ToggleGroup/ToggleGroup.tsx
|
|
8
|
+
const normalizeOption = (option) => typeof option === "string" ? { value: option } : option;
|
|
9
|
+
const ToggleGroup = ({ className, classNames, defaultValue, disabled = false, onChange, options, ref, size = "middle", style, styles: customStyles, value, variant = "outlined" }) => {
|
|
10
|
+
const [innerValue, setInnerValue] = useMergeState(defaultValue, {
|
|
11
|
+
defaultValue,
|
|
12
|
+
onChange: (next) => {
|
|
13
|
+
if (next != null) onChange?.(next);
|
|
14
|
+
},
|
|
15
|
+
value
|
|
16
|
+
});
|
|
17
|
+
const normalizedOptions = useMemo(() => (options ?? []).map((o) => normalizeOption(o)), [options]);
|
|
18
|
+
const groupValue = useMemo(() => innerValue != null ? [innerValue] : [], [innerValue]);
|
|
19
|
+
return /* @__PURE__ */ jsx(ToggleGroupRoot, {
|
|
20
|
+
className: cx(classNames?.root, className),
|
|
21
|
+
disabled,
|
|
22
|
+
ref,
|
|
23
|
+
style: {
|
|
24
|
+
...style,
|
|
25
|
+
...customStyles?.root
|
|
26
|
+
},
|
|
27
|
+
value: groupValue,
|
|
28
|
+
variant,
|
|
29
|
+
onValueChange: (next) => {
|
|
30
|
+
const picked = next[0];
|
|
31
|
+
if (picked != null) setInnerValue(picked);
|
|
32
|
+
},
|
|
33
|
+
children: normalizedOptions.map((opt) => /* @__PURE__ */ jsxs(ToggleGroupItem, {
|
|
34
|
+
"aria-label": typeof opt.label === "string" ? opt.label : opt.title,
|
|
35
|
+
className: cx(classNames?.item, opt.className),
|
|
36
|
+
disabled: disabled || opt.disabled,
|
|
37
|
+
size,
|
|
38
|
+
style: customStyles?.item,
|
|
39
|
+
title: opt.title,
|
|
40
|
+
value: opt.value,
|
|
41
|
+
variant,
|
|
42
|
+
children: [opt.icon != null && /* @__PURE__ */ jsx(ToggleGroupItemIcon, {
|
|
43
|
+
className: classNames?.itemIcon,
|
|
44
|
+
style: customStyles?.itemIcon,
|
|
45
|
+
children: opt.icon
|
|
46
|
+
}), opt.label != null && /* @__PURE__ */ jsx(ToggleGroupItemLabel, {
|
|
47
|
+
className: classNames?.itemLabel,
|
|
48
|
+
style: customStyles?.itemLabel,
|
|
49
|
+
children: opt.label
|
|
50
|
+
})]
|
|
51
|
+
}, opt.value))
|
|
52
|
+
});
|
|
53
|
+
};
|
|
54
|
+
ToggleGroup.displayName = "ToggleGroup";
|
|
55
|
+
//#endregion
|
|
56
|
+
export { ToggleGroup as default };
|
|
57
|
+
|
|
58
|
+
//# sourceMappingURL=ToggleGroup.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ToggleGroup.mjs","names":["useControlledState"],"sources":["../../../src/base-ui/ToggleGroup/ToggleGroup.tsx"],"sourcesContent":["'use client';\n\nimport { cx } from 'antd-style';\nimport { useMemo } from 'react';\nimport useControlledState from 'use-merge-value';\n\nimport {\n ToggleGroupItem,\n ToggleGroupItemIcon,\n ToggleGroupItemLabel,\n ToggleGroupRoot,\n} from './atoms';\nimport type { ToggleGroupOption, ToggleGroupProps } from './type';\n\nconst normalizeOption = <Value extends string>(\n option: ToggleGroupOption<Value> | Value,\n): ToggleGroupOption<Value> => (typeof option === 'string' ? { value: option } : option);\n\nconst ToggleGroup = <Value extends string = string>({\n className,\n classNames,\n defaultValue,\n disabled = false,\n onChange,\n options,\n ref,\n size = 'middle',\n style,\n styles: customStyles,\n value,\n variant = 'outlined',\n}: ToggleGroupProps<Value>) => {\n const [innerValue, setInnerValue] = useControlledState<Value | undefined>(defaultValue, {\n defaultValue,\n onChange: (next) => {\n if (next != null) onChange?.(next);\n },\n value,\n });\n\n const normalizedOptions = useMemo(\n () => (options ?? []).map((o) => normalizeOption<Value>(o)),\n [options],\n );\n\n const groupValue = useMemo<Value[]>(() => (innerValue != null ? [innerValue] : []), [innerValue]);\n\n return (\n <ToggleGroupRoot<Value>\n className={cx(classNames?.root, className)}\n disabled={disabled}\n ref={ref}\n style={{ ...style, ...customStyles?.root }}\n value={groupValue}\n variant={variant}\n onValueChange={(next) => {\n const picked = next[0];\n if (picked != null) setInnerValue(picked);\n }}\n >\n {normalizedOptions.map((opt) => (\n <ToggleGroupItem<Value>\n aria-label={typeof opt.label === 'string' ? opt.label : opt.title}\n className={cx(classNames?.item, opt.className)}\n disabled={disabled || opt.disabled}\n key={opt.value}\n size={size}\n style={customStyles?.item}\n title={opt.title}\n value={opt.value}\n variant={variant}\n >\n {opt.icon != null && (\n <ToggleGroupItemIcon className={classNames?.itemIcon} style={customStyles?.itemIcon}>\n {opt.icon}\n </ToggleGroupItemIcon>\n )}\n {opt.label != null && (\n <ToggleGroupItemLabel className={classNames?.itemLabel} style={customStyles?.itemLabel}>\n {opt.label}\n </ToggleGroupItemLabel>\n )}\n </ToggleGroupItem>\n ))}\n </ToggleGroupRoot>\n );\n};\n\nToggleGroup.displayName = 'ToggleGroup';\n\nexport default ToggleGroup;\n"],"mappings":";;;;;;;AAcA,MAAM,mBACJ,WAC8B,OAAO,WAAW,WAAW,EAAE,OAAO,OAAO,IAAI;AAEjF,MAAM,eAA8C,EAClD,WACA,YACA,cACA,WAAW,OACX,UACA,SACA,KACA,OAAO,UACP,OACA,QAAQ,cACR,OACA,UAAU,iBACmB;CAC7B,MAAM,CAAC,YAAY,iBAAiBA,cAAsC,cAAc;EACtF;EACA,WAAW,SAAS;GAClB,IAAI,QAAQ,MAAM,WAAW,IAAI;EACnC;EACA;CACF,CAAC;CAED,MAAM,oBAAoB,eACjB,WAAW,CAAC,EAAA,CAAG,KAAK,MAAM,gBAAuB,CAAC,CAAC,GAC1D,CAAC,OAAO,CACV;CAEA,MAAM,aAAa,cAAwB,cAAc,OAAO,CAAC,UAAU,IAAI,CAAC,GAAI,CAAC,UAAU,CAAC;CAEhG,OACE,oBAAC,iBAAD;EACE,WAAW,GAAG,YAAY,MAAM,SAAS;EAC/B;EACL;EACL,OAAO;GAAE,GAAG;GAAO,GAAG,cAAc;EAAK;EACzC,OAAO;EACE;EACT,gBAAgB,SAAS;GACvB,MAAM,SAAS,KAAK;GACpB,IAAI,UAAU,MAAM,cAAc,MAAM;EAC1C;EAEC,UAAA,kBAAkB,KAAK,QACtB,qBAAC,iBAAD;GACE,cAAY,OAAO,IAAI,UAAU,WAAW,IAAI,QAAQ,IAAI;GAC5D,WAAW,GAAG,YAAY,MAAM,IAAI,SAAS;GAC7C,UAAU,YAAY,IAAI;GAEpB;GACN,OAAO,cAAc;GACrB,OAAO,IAAI;GACX,OAAO,IAAI;GACF;GATX,UAAA,CAWG,IAAI,QAAQ,QACX,oBAAC,qBAAD;IAAqB,WAAW,YAAY;IAAU,OAAO,cAAc;IACxE,UAAA,IAAI;GACc,CAAA,GAEtB,IAAI,SAAS,QACZ,oBAAC,sBAAD;IAAsB,WAAW,YAAY;IAAW,OAAO,cAAc;IAC1E,UAAA,IAAI;GACe,CAAA,CAET;EAjBV,GAAA,IAAI,KAiBM,CAClB;CACc,CAAA;AAErB;AAEA,YAAY,cAAc"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { ToggleGroupSize, ToggleGroupVariant } from "./type.mjs";
|
|
2
|
+
import { styles } from "./style.mjs";
|
|
3
|
+
import { CSSProperties, ComponentProps, FC, ReactNode } from "react";
|
|
4
|
+
import { Toggle } from "@base-ui/react/toggle";
|
|
5
|
+
import { ToggleGroup } from "@base-ui/react/toggle-group";
|
|
6
|
+
//#region src/base-ui/ToggleGroup/atoms.d.ts
|
|
7
|
+
type ToggleGroupRootProps<Value extends string = string> = Omit<ComponentProps<typeof ToggleGroup<Value>>, 'className' | 'render'> & {
|
|
8
|
+
className?: string;
|
|
9
|
+
variant?: ToggleGroupVariant;
|
|
10
|
+
};
|
|
11
|
+
declare const ToggleGroupRoot: {
|
|
12
|
+
<Value extends string = string>({ className, variant, ...rest }: ToggleGroupRootProps<Value>): import("react").JSX.Element;
|
|
13
|
+
displayName: string;
|
|
14
|
+
};
|
|
15
|
+
type ToggleGroupItemProps<Value extends string = string> = Omit<ComponentProps<typeof Toggle<Value>>, 'className' | 'render'> & {
|
|
16
|
+
className?: string;
|
|
17
|
+
size?: ToggleGroupSize;
|
|
18
|
+
variant?: ToggleGroupVariant;
|
|
19
|
+
};
|
|
20
|
+
declare const ToggleGroupItem: {
|
|
21
|
+
<Value extends string = string>({ className, size, variant, ...rest }: ToggleGroupItemProps<Value>): import("react").JSX.Element;
|
|
22
|
+
displayName: string;
|
|
23
|
+
};
|
|
24
|
+
interface SimpleSpanProps {
|
|
25
|
+
children?: ReactNode;
|
|
26
|
+
className?: string;
|
|
27
|
+
style?: CSSProperties;
|
|
28
|
+
}
|
|
29
|
+
declare const ToggleGroupItemIcon: FC<SimpleSpanProps>;
|
|
30
|
+
declare const ToggleGroupItemLabel: FC<SimpleSpanProps>;
|
|
31
|
+
//#endregion
|
|
32
|
+
export { ToggleGroupItem, ToggleGroupItemIcon, ToggleGroupItemLabel, ToggleGroupItemProps, ToggleGroupRoot, ToggleGroupRootProps, styles as toggleGroupStyles };
|
|
33
|
+
//# sourceMappingURL=atoms.d.mts.map
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { itemVariants, rootVariants, styles } from "./style.mjs";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
import { cx } from "antd-style";
|
|
5
|
+
import { Toggle } from "@base-ui/react/toggle";
|
|
6
|
+
import { ToggleGroup } from "@base-ui/react/toggle-group";
|
|
7
|
+
//#region src/base-ui/ToggleGroup/atoms.tsx
|
|
8
|
+
const ToggleGroupRoot = ({ className, variant = "outlined", ...rest }) => {
|
|
9
|
+
return /* @__PURE__ */ jsx(ToggleGroup, {
|
|
10
|
+
className: cx(rootVariants({ variant }), className),
|
|
11
|
+
...rest
|
|
12
|
+
});
|
|
13
|
+
};
|
|
14
|
+
ToggleGroupRoot.displayName = "ToggleGroupRoot";
|
|
15
|
+
const ToggleGroupItem = ({ className, size = "middle", variant = "outlined", ...rest }) => {
|
|
16
|
+
return /* @__PURE__ */ jsx(Toggle, {
|
|
17
|
+
className: cx(itemVariants({
|
|
18
|
+
size,
|
|
19
|
+
variant
|
|
20
|
+
}), className),
|
|
21
|
+
...rest
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
ToggleGroupItem.displayName = "ToggleGroupItem";
|
|
25
|
+
const ToggleGroupItemIcon = ({ children, className, style }) => /* @__PURE__ */ jsx("span", {
|
|
26
|
+
className: cx(styles.itemIcon, className),
|
|
27
|
+
style,
|
|
28
|
+
children
|
|
29
|
+
});
|
|
30
|
+
ToggleGroupItemIcon.displayName = "ToggleGroupItemIcon";
|
|
31
|
+
const ToggleGroupItemLabel = ({ children, className, style }) => /* @__PURE__ */ jsx("span", {
|
|
32
|
+
className: cx("toggle-group-item-label", styles.itemLabel, className),
|
|
33
|
+
style,
|
|
34
|
+
children
|
|
35
|
+
});
|
|
36
|
+
ToggleGroupItemLabel.displayName = "ToggleGroupItemLabel";
|
|
37
|
+
//#endregion
|
|
38
|
+
export { ToggleGroupItem, ToggleGroupItemIcon, ToggleGroupItemLabel, ToggleGroupRoot, styles as toggleGroupStyles };
|
|
39
|
+
|
|
40
|
+
//# sourceMappingURL=atoms.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"atoms.mjs","names":["BaseUIToggleGroup","BaseUIToggle"],"sources":["../../../src/base-ui/ToggleGroup/atoms.tsx"],"sourcesContent":["'use client';\n\nimport { Toggle as BaseUIToggle } from '@base-ui/react/toggle';\nimport { ToggleGroup as BaseUIToggleGroup } from '@base-ui/react/toggle-group';\nimport { cx } from 'antd-style';\nimport { type ComponentProps, type CSSProperties, type FC, type ReactNode } from 'react';\n\nimport { itemVariants, rootVariants, styles } from './style';\nimport type { ToggleGroupSize, ToggleGroupVariant } from './type';\n\nexport type ToggleGroupRootProps<Value extends string = string> = Omit<\n ComponentProps<typeof BaseUIToggleGroup<Value>>,\n 'className' | 'render'\n> & {\n className?: string;\n variant?: ToggleGroupVariant;\n};\n\nexport const ToggleGroupRoot = <Value extends string = string>({\n className,\n variant = 'outlined',\n ...rest\n}: ToggleGroupRootProps<Value>) => {\n return (\n <BaseUIToggleGroup<Value> className={cx(rootVariants({ variant }), className)} {...rest} />\n );\n};\n\nToggleGroupRoot.displayName = 'ToggleGroupRoot';\n\nexport type ToggleGroupItemProps<Value extends string = string> = Omit<\n ComponentProps<typeof BaseUIToggle<Value>>,\n 'className' | 'render'\n> & {\n className?: string;\n size?: ToggleGroupSize;\n variant?: ToggleGroupVariant;\n};\n\nexport const ToggleGroupItem = <Value extends string = string>({\n className,\n size = 'middle',\n variant = 'outlined',\n ...rest\n}: ToggleGroupItemProps<Value>) => {\n return (\n <BaseUIToggle<Value> className={cx(itemVariants({ size, variant }), className)} {...rest} />\n );\n};\n\nToggleGroupItem.displayName = 'ToggleGroupItem';\n\ninterface SimpleSpanProps {\n children?: ReactNode;\n className?: string;\n style?: CSSProperties;\n}\n\nexport const ToggleGroupItemIcon: FC<SimpleSpanProps> = ({ children, className, style }) => (\n <span className={cx(styles.itemIcon, className)} style={style}>\n {children}\n </span>\n);\nToggleGroupItemIcon.displayName = 'ToggleGroupItemIcon';\n\nexport const ToggleGroupItemLabel: FC<SimpleSpanProps> = ({ children, className, style }) => (\n <span className={cx('toggle-group-item-label', styles.itemLabel, className)} style={style}>\n {children}\n </span>\n);\nToggleGroupItemLabel.displayName = 'ToggleGroupItemLabel';\n\nexport { styles as toggleGroupStyles } from './style';\n"],"mappings":";;;;;;;AAkBA,MAAa,mBAAkD,EAC7D,WACA,UAAU,YACV,GAAG,WAC8B;CACjC,OACE,oBAACA,aAAD;EAA0B,WAAW,GAAG,aAAa,EAAE,QAAQ,CAAC,GAAG,SAAS;EAAG,GAAI;CAAO,CAAA;AAE9F;AAEA,gBAAgB,cAAc;AAW9B,MAAa,mBAAkD,EAC7D,WACA,OAAO,UACP,UAAU,YACV,GAAG,WAC8B;CACjC,OACE,oBAACC,QAAD;EAAqB,WAAW,GAAG,aAAa;GAAE;GAAM;EAAQ,CAAC,GAAG,SAAS;EAAG,GAAI;CAAO,CAAA;AAE/F;AAEA,gBAAgB,cAAc;AAQ9B,MAAa,uBAA4C,EAAE,UAAU,WAAW,YAC9E,oBAAC,QAAD;CAAM,WAAW,GAAG,OAAO,UAAU,SAAS;CAAU;CACrD;AACG,CAAA;AAER,oBAAoB,cAAc;AAElC,MAAa,wBAA6C,EAAE,UAAU,WAAW,YAC/E,oBAAC,QAAD;CAAM,WAAW,GAAG,2BAA2B,OAAO,WAAW,SAAS;CAAU;CACjF;AACG,CAAA;AAER,qBAAqB,cAAc"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ToggleGroupClassNames, ToggleGroupOption, ToggleGroupProps, ToggleGroupSize, ToggleGroupStyles, ToggleGroupVariant } from "./type.mjs";
|
|
2
|
+
import { styles } from "./style.mjs";
|
|
3
|
+
import { ToggleGroupItem, ToggleGroupItemIcon, ToggleGroupItemLabel, ToggleGroupItemProps, ToggleGroupRoot, ToggleGroupRootProps } from "./atoms.mjs";
|
|
4
|
+
import ToggleGroup from "./ToggleGroup.mjs";
|
|
5
|
+
export { type ToggleGroupClassNames, ToggleGroupItem, ToggleGroupItemIcon, ToggleGroupItemLabel, type ToggleGroupItemProps, type ToggleGroupOption, type ToggleGroupProps, ToggleGroupRoot, type ToggleGroupRootProps, type ToggleGroupSize, type ToggleGroupStyles, type ToggleGroupVariant, ToggleGroup as default, styles as toggleGroupStyles };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
//#region src/base-ui/ToggleGroup/style.d.ts
|
|
2
|
+
declare const styles: {
|
|
3
|
+
item: string;
|
|
4
|
+
itemIcon: string;
|
|
5
|
+
itemLabel: string;
|
|
6
|
+
itemMiddle: string;
|
|
7
|
+
itemSmall: string;
|
|
8
|
+
itemOutlined: string;
|
|
9
|
+
root: string;
|
|
10
|
+
rootBorderless: string;
|
|
11
|
+
rootOutlined: string;
|
|
12
|
+
};
|
|
13
|
+
//#endregion
|
|
14
|
+
export { styles };
|
|
15
|
+
//# sourceMappingURL=style.d.mts.map
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import { createStaticStyles } from "antd-style";
|
|
2
|
+
import { cva } from "class-variance-authority";
|
|
3
|
+
//#region src/base-ui/ToggleGroup/style.ts
|
|
4
|
+
const styles = createStaticStyles(({ css, cssVar }) => ({
|
|
5
|
+
item: css`
|
|
6
|
+
cursor: pointer;
|
|
7
|
+
user-select: none;
|
|
8
|
+
|
|
9
|
+
display: inline-flex;
|
|
10
|
+
flex-shrink: 0;
|
|
11
|
+
gap: 4px;
|
|
12
|
+
align-items: center;
|
|
13
|
+
justify-content: center;
|
|
14
|
+
|
|
15
|
+
border: 0;
|
|
16
|
+
border-radius: ${cssVar.borderRadius};
|
|
17
|
+
|
|
18
|
+
font: inherit;
|
|
19
|
+
font-size: 12px;
|
|
20
|
+
color: ${cssVar.colorTextTertiary};
|
|
21
|
+
white-space: nowrap;
|
|
22
|
+
|
|
23
|
+
background: transparent;
|
|
24
|
+
outline: none;
|
|
25
|
+
|
|
26
|
+
transition:
|
|
27
|
+
background 120ms ${cssVar.motionEaseOut},
|
|
28
|
+
color 120ms ${cssVar.motionEaseOut};
|
|
29
|
+
|
|
30
|
+
&:hover:not([data-disabled]) {
|
|
31
|
+
color: ${cssVar.colorTextSecondary};
|
|
32
|
+
background: ${cssVar.colorFillSecondary};
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&[data-pressed] {
|
|
36
|
+
color: ${cssVar.colorText};
|
|
37
|
+
background: ${cssVar.colorFillSecondary};
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&[data-pressed]:hover:not([data-disabled]) {
|
|
41
|
+
background: ${cssVar.colorFill};
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
&:focus-visible {
|
|
45
|
+
outline: 2px solid ${cssVar.colorPrimaryBorder};
|
|
46
|
+
outline-offset: -2px;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
&[data-disabled] {
|
|
50
|
+
cursor: not-allowed;
|
|
51
|
+
color: ${cssVar.colorTextDisabled};
|
|
52
|
+
}
|
|
53
|
+
`,
|
|
54
|
+
itemIcon: css`
|
|
55
|
+
display: inline-flex;
|
|
56
|
+
flex-shrink: 0;
|
|
57
|
+
align-items: center;
|
|
58
|
+
`,
|
|
59
|
+
itemLabel: css`
|
|
60
|
+
display: inline-flex;
|
|
61
|
+
align-items: center;
|
|
62
|
+
`,
|
|
63
|
+
itemMiddle: css`
|
|
64
|
+
height: 28px;
|
|
65
|
+
padding-inline: 8px;
|
|
66
|
+
`,
|
|
67
|
+
itemSmall: css`
|
|
68
|
+
height: 24px;
|
|
69
|
+
padding-inline: 6px;
|
|
70
|
+
`,
|
|
71
|
+
itemOutlined: css`
|
|
72
|
+
border-radius: 0;
|
|
73
|
+
|
|
74
|
+
& + & {
|
|
75
|
+
border-inline-start: 1px solid ${cssVar.colorBorderSecondary};
|
|
76
|
+
}
|
|
77
|
+
`,
|
|
78
|
+
root: css`
|
|
79
|
+
display: inline-flex;
|
|
80
|
+
align-items: center;
|
|
81
|
+
`,
|
|
82
|
+
rootBorderless: css`
|
|
83
|
+
gap: 2px;
|
|
84
|
+
`,
|
|
85
|
+
rootOutlined: css`
|
|
86
|
+
overflow: hidden;
|
|
87
|
+
border: 1px solid ${cssVar.colorBorderSecondary};
|
|
88
|
+
border-radius: ${cssVar.borderRadius};
|
|
89
|
+
`
|
|
90
|
+
}));
|
|
91
|
+
const rootVariants = cva(styles.root, {
|
|
92
|
+
defaultVariants: { variant: "outlined" },
|
|
93
|
+
variants: { variant: {
|
|
94
|
+
borderless: styles.rootBorderless,
|
|
95
|
+
outlined: styles.rootOutlined
|
|
96
|
+
} }
|
|
97
|
+
});
|
|
98
|
+
const itemVariants = cva(styles.item, {
|
|
99
|
+
defaultVariants: {
|
|
100
|
+
size: "middle",
|
|
101
|
+
variant: "outlined"
|
|
102
|
+
},
|
|
103
|
+
variants: {
|
|
104
|
+
size: {
|
|
105
|
+
middle: styles.itemMiddle,
|
|
106
|
+
small: styles.itemSmall
|
|
107
|
+
},
|
|
108
|
+
variant: {
|
|
109
|
+
borderless: null,
|
|
110
|
+
outlined: styles.itemOutlined
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
});
|
|
114
|
+
//#endregion
|
|
115
|
+
export { itemVariants, rootVariants, styles };
|
|
116
|
+
|
|
117
|
+
//# sourceMappingURL=style.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"style.mjs","names":[],"sources":["../../../src/base-ui/ToggleGroup/style.ts"],"sourcesContent":["import { createStaticStyles } from 'antd-style';\nimport { cva } from 'class-variance-authority';\n\nexport const styles = createStaticStyles(({ css, cssVar }) => ({\n item: css`\n cursor: pointer;\n user-select: none;\n\n display: inline-flex;\n flex-shrink: 0;\n gap: 4px;\n align-items: center;\n justify-content: center;\n\n border: 0;\n border-radius: ${cssVar.borderRadius};\n\n font: inherit;\n font-size: 12px;\n color: ${cssVar.colorTextTertiary};\n white-space: nowrap;\n\n background: transparent;\n outline: none;\n\n transition:\n background 120ms ${cssVar.motionEaseOut},\n color 120ms ${cssVar.motionEaseOut};\n\n &:hover:not([data-disabled]) {\n color: ${cssVar.colorTextSecondary};\n background: ${cssVar.colorFillSecondary};\n }\n\n &[data-pressed] {\n color: ${cssVar.colorText};\n background: ${cssVar.colorFillSecondary};\n }\n\n &[data-pressed]:hover:not([data-disabled]) {\n background: ${cssVar.colorFill};\n }\n\n &:focus-visible {\n outline: 2px solid ${cssVar.colorPrimaryBorder};\n outline-offset: -2px;\n }\n\n &[data-disabled] {\n cursor: not-allowed;\n color: ${cssVar.colorTextDisabled};\n }\n `,\n itemIcon: css`\n display: inline-flex;\n flex-shrink: 0;\n align-items: center;\n `,\n itemLabel: css`\n display: inline-flex;\n align-items: center;\n `,\n itemMiddle: css`\n height: 28px;\n padding-inline: 8px;\n `,\n itemSmall: css`\n height: 24px;\n padding-inline: 6px;\n `,\n itemOutlined: css`\n border-radius: 0;\n\n & + & {\n border-inline-start: 1px solid ${cssVar.colorBorderSecondary};\n }\n `,\n root: css`\n display: inline-flex;\n align-items: center;\n `,\n rootBorderless: css`\n gap: 2px;\n `,\n rootOutlined: css`\n overflow: hidden;\n border: 1px solid ${cssVar.colorBorderSecondary};\n border-radius: ${cssVar.borderRadius};\n `,\n}));\n\nexport const rootVariants = cva(styles.root, {\n defaultVariants: { variant: 'outlined' },\n variants: {\n variant: {\n borderless: styles.rootBorderless,\n outlined: styles.rootOutlined,\n },\n },\n});\n\nexport const itemVariants = cva(styles.item, {\n defaultVariants: { size: 'middle', variant: 'outlined' },\n variants: {\n size: {\n middle: styles.itemMiddle,\n small: styles.itemSmall,\n },\n variant: {\n borderless: null,\n outlined: styles.itemOutlined,\n },\n },\n});\n"],"mappings":";;;AAGA,MAAa,SAAS,oBAAoB,EAAE,KAAK,cAAc;CAC7D,MAAM,GAAG;;;;;;;;;;;qBAWU,OAAO,aAAa;;;;aAI5B,OAAO,kBAAkB;;;;;;;yBAOb,OAAO,cAAc;oBAC1B,OAAO,cAAc;;;eAG1B,OAAO,mBAAmB;oBACrB,OAAO,mBAAmB;;;;eAI/B,OAAO,UAAU;oBACZ,OAAO,mBAAmB;;;;oBAI1B,OAAO,UAAU;;;;2BAIV,OAAO,mBAAmB;;;;;;eAMtC,OAAO,kBAAkB;;;CAGtC,UAAU,GAAG;;;;;CAKb,WAAW,GAAG;;;;CAId,YAAY,GAAG;;;;CAIf,WAAW,GAAG;;;;CAId,cAAc,GAAG;;;;uCAIoB,OAAO,qBAAqB;;;CAGjE,MAAM,GAAG;;;;CAIT,gBAAgB,GAAG;;;CAGnB,cAAc,GAAG;;wBAEK,OAAO,qBAAqB;qBAC/B,OAAO,aAAa;;AAEzC,EAAE;AAEF,MAAa,eAAe,IAAI,OAAO,MAAM;CAC3C,iBAAiB,EAAE,SAAS,WAAW;CACvC,UAAU,EACR,SAAS;EACP,YAAY,OAAO;EACnB,UAAU,OAAO;CACnB,EACF;AACF,CAAC;AAED,MAAa,eAAe,IAAI,OAAO,MAAM;CAC3C,iBAAiB;EAAE,MAAM;EAAU,SAAS;CAAW;CACvD,UAAU;EACR,MAAM;GACJ,QAAQ,OAAO;GACf,OAAO,OAAO;EAChB;EACA,SAAS;GACP,YAAY;GACZ,UAAU,OAAO;EACnB;CACF;AACF,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { CSSProperties, ReactNode, Ref } from "react";
|
|
2
|
+
//#region src/base-ui/ToggleGroup/type.d.ts
|
|
3
|
+
type ToggleGroupSize = 'middle' | 'small';
|
|
4
|
+
type ToggleGroupVariant = 'borderless' | 'outlined';
|
|
5
|
+
interface ToggleGroupClassNames {
|
|
6
|
+
item?: string;
|
|
7
|
+
itemIcon?: string;
|
|
8
|
+
itemLabel?: string;
|
|
9
|
+
root?: string;
|
|
10
|
+
}
|
|
11
|
+
interface ToggleGroupStyles {
|
|
12
|
+
item?: CSSProperties;
|
|
13
|
+
itemIcon?: CSSProperties;
|
|
14
|
+
itemLabel?: CSSProperties;
|
|
15
|
+
root?: CSSProperties;
|
|
16
|
+
}
|
|
17
|
+
interface ToggleGroupOption<Value extends string = string> {
|
|
18
|
+
className?: string;
|
|
19
|
+
disabled?: boolean;
|
|
20
|
+
icon?: ReactNode;
|
|
21
|
+
label?: ReactNode;
|
|
22
|
+
title?: string;
|
|
23
|
+
value: Value;
|
|
24
|
+
}
|
|
25
|
+
interface ToggleGroupProps<Value extends string = string> {
|
|
26
|
+
className?: string;
|
|
27
|
+
classNames?: ToggleGroupClassNames;
|
|
28
|
+
defaultValue?: Value;
|
|
29
|
+
disabled?: boolean;
|
|
30
|
+
onChange?: (value: Value) => void;
|
|
31
|
+
options?: (ToggleGroupOption<Value> | Value)[];
|
|
32
|
+
ref?: Ref<HTMLDivElement>;
|
|
33
|
+
size?: ToggleGroupSize;
|
|
34
|
+
style?: CSSProperties;
|
|
35
|
+
styles?: ToggleGroupStyles;
|
|
36
|
+
value?: Value;
|
|
37
|
+
variant?: ToggleGroupVariant;
|
|
38
|
+
}
|
|
39
|
+
//#endregion
|
|
40
|
+
export { ToggleGroupClassNames, ToggleGroupOption, ToggleGroupProps, ToggleGroupSize, ToggleGroupStyles, ToggleGroupVariant };
|
|
41
|
+
//# sourceMappingURL=type.d.mts.map
|
package/es/base-ui/index.d.mts
CHANGED
|
@@ -30,25 +30,30 @@ 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 { AccordionClassNames, AccordionHeaderProps, AccordionIndicatorPlacement, AccordionItemProps, AccordionItemType, AccordionPanelProps, AccordionProps, AccordionRootProps, AccordionStyles, AccordionTriggerProps, AccordionVariant } from "./Accordion/type.mjs";
|
|
34
|
+
import Accordion from "./Accordion/Accordion.mjs";
|
|
35
|
+
import { styles } from "./Accordion/style.mjs";
|
|
36
|
+
import { AccordionHeader, AccordionItem, AccordionPanel, AccordionRoot, AccordionTrigger, useAccordionContext } from "./Accordion/atoms.mjs";
|
|
37
|
+
import "./Accordion/index.mjs";
|
|
33
38
|
import { ActionIconClassNames, ActionIconProps, ActionIconSize, ActionIconStyles } from "./ActionIcon/type.mjs";
|
|
34
39
|
import ActionIcon from "./ActionIcon/ActionIcon.mjs";
|
|
35
|
-
import { styles } from "./ActionIcon/style.mjs";
|
|
40
|
+
import { styles as styles$1 } from "./ActionIcon/style.mjs";
|
|
36
41
|
import "./ActionIcon/index.mjs";
|
|
37
42
|
import { AlertClassNames, AlertCloseConfig, AlertProps, AlertRef, AlertStyles, AlertType, AlertVariant } from "./Alert/type.mjs";
|
|
38
43
|
import Alert from "./Alert/Alert.mjs";
|
|
39
|
-
import { styles as styles$
|
|
44
|
+
import { styles as styles$2 } from "./Alert/style.mjs";
|
|
40
45
|
import "./Alert/index.mjs";
|
|
41
46
|
import { InputClassNames, InputNumberProps, InputOTPProps, InputPasswordProps, InputProps, InputSize, InputStyles, InputVariant, TextAreaAutoSize, TextAreaProps } from "./Input/type.mjs";
|
|
42
47
|
import Input from "./Input/Input.mjs";
|
|
43
48
|
import InputNumber from "./Input/InputNumber.mjs";
|
|
44
49
|
import InputOTP from "./Input/InputOTP.mjs";
|
|
45
50
|
import InputPassword from "./Input/InputPassword.mjs";
|
|
46
|
-
import { rootVariants, styles as styles$
|
|
51
|
+
import { rootVariants, styles as styles$6 } from "./Input/style.mjs";
|
|
47
52
|
import TextArea from "./Input/TextArea.mjs";
|
|
48
53
|
import "./Input/index.mjs";
|
|
49
54
|
import { AutoCompleteOption, AutoCompleteProps } from "./AutoComplete/type.mjs";
|
|
50
55
|
import AutoComplete from "./AutoComplete/AutoComplete.mjs";
|
|
51
|
-
import { styles as styles$
|
|
56
|
+
import { styles as styles$3 } from "./AutoComplete/style.mjs";
|
|
52
57
|
import "./AutoComplete/index.mjs";
|
|
53
58
|
import { AvatarClassNames, AvatarGroupItemType, AvatarGroupProps, AvatarProps, AvatarStyles } from "./Avatar/type.mjs";
|
|
54
59
|
import AvatarGroup from "./Avatar/AvatarGroup/index.mjs";
|
|
@@ -56,12 +61,12 @@ import Avatar from "./Avatar/index.mjs";
|
|
|
56
61
|
import { ButtonIconPosition, ButtonProps, ButtonShape, ButtonSize, ButtonType } from "./Button/type.mjs";
|
|
57
62
|
import Button from "./Button/Button.mjs";
|
|
58
63
|
import _default, { SplitButtonMenuProps, SplitButtonProps } from "./Button/SplitButton.mjs";
|
|
59
|
-
import { styles as styles$
|
|
64
|
+
import { styles as styles$4 } from "./Button/style.mjs";
|
|
60
65
|
import "./Button/index.mjs";
|
|
61
66
|
import { CheckboxGroupOption, CheckboxGroupProps, CheckboxProps, CheckboxShape } from "./Checkbox/type.mjs";
|
|
62
67
|
import Checkbox from "./Checkbox/Checkbox.mjs";
|
|
63
68
|
import CheckboxGroup from "./Checkbox/CheckboxGroup.mjs";
|
|
64
|
-
import { styles as styles$
|
|
69
|
+
import { styles as styles$5 } from "./Checkbox/style.mjs";
|
|
65
70
|
import "./Checkbox/index.mjs";
|
|
66
71
|
import { ControlSize, controlHeight } from "./controlSize.mjs";
|
|
67
72
|
import { DrawerPlacement, DrawerProps, DrawerPush, DrawerSemanticNames, DrawerSemanticStyles } from "./Drawer/type.mjs";
|
|
@@ -95,7 +100,7 @@ import { Form } from "./Form/index.mjs";
|
|
|
95
100
|
import { RadioGroupOption, RadioGroupProps, RadioProps } from "./Radio/type.mjs";
|
|
96
101
|
import Radio from "./Radio/Radio.mjs";
|
|
97
102
|
import RadioGroup from "./Radio/RadioGroup.mjs";
|
|
98
|
-
import { styles as styles$
|
|
103
|
+
import { styles as styles$7 } from "./Radio/style.mjs";
|
|
99
104
|
import "./Radio/index.mjs";
|
|
100
105
|
import { SegmentedClassNames, SegmentedOption, SegmentedOptions, SegmentedOrientation, SegmentedProps, SegmentedSize, SegmentedStyles, SegmentedVariant } from "./Segmented/type.mjs";
|
|
101
106
|
import { SegmentedIndicator, SegmentedIndicatorProps, SegmentedItem, SegmentedItemIcon, SegmentedItemLabel, SegmentedItemProps, SegmentedRoot, SegmentedRootProps } from "./Segmented/atoms.mjs";
|
|
@@ -108,15 +113,15 @@ import "./Select/index.mjs";
|
|
|
108
113
|
import { SliderProps, SliderWithInputProps } from "./Slider/type.mjs";
|
|
109
114
|
import Slider from "./Slider/Slider.mjs";
|
|
110
115
|
import SliderWithInput from "./Slider/SliderWithInput.mjs";
|
|
111
|
-
import { styles as styles$
|
|
116
|
+
import { styles as styles$8 } from "./Slider/style.mjs";
|
|
112
117
|
import "./Slider/index.mjs";
|
|
113
118
|
import { SwitchChangeEventHandler, SwitchClassNames, SwitchClickEventHandler, SwitchContextType, SwitchIconPosition, SwitchIconProps, SwitchProps, SwitchRootProps, SwitchSize, SwitchStyles, SwitchThumbProps } from "./Switch/type.mjs";
|
|
114
|
-
import { styles as styles$
|
|
119
|
+
import { styles as styles$9 } from "./Switch/style.mjs";
|
|
115
120
|
import { SwitchIcon, SwitchRoot, SwitchThumb, useSwitchContext } from "./Switch/atoms.mjs";
|
|
116
121
|
import Switch from "./Switch/Switch.mjs";
|
|
117
122
|
import "./Switch/index.mjs";
|
|
118
123
|
import { TabsClassNames, TabsIndicatorProps, TabsItem, TabsListProps, TabsOrientation, TabsPanelProps, TabsProps, TabsRootProps, TabsSize, TabsStyles, TabsTabProps, TabsVariant } from "./Tabs/type.mjs";
|
|
119
|
-
import { styles as styles$
|
|
124
|
+
import { styles as styles$10 } from "./Tabs/style.mjs";
|
|
120
125
|
import { TabsIndicator, TabsList, TabsPanel, TabsRoot, TabsTab, useTabsContext } from "./Tabs/atoms.mjs";
|
|
121
126
|
import Tabs from "./Tabs/Tabs.mjs";
|
|
122
127
|
import "./Tabs/index.mjs";
|
|
@@ -124,8 +129,13 @@ import { TagClassNames, TagProps, TagShape, TagSize, TagStyles, TagVariant } fro
|
|
|
124
129
|
import Tag from "./Tag/Tag.mjs";
|
|
125
130
|
import { colorsPreset, colorsPresetSystem, presetColors, presetSystemColors } from "./Tag/utils.mjs";
|
|
126
131
|
import "./Tag/index.mjs";
|
|
127
|
-
import { styles as styles$
|
|
132
|
+
import { styles as styles$11, variants } from "./Text/style.mjs";
|
|
128
133
|
import { TextClassNames, TextProps, TextStyles } from "./Text/type.mjs";
|
|
129
134
|
import Text from "./Text/Text.mjs";
|
|
130
135
|
import "./Text/index.mjs";
|
|
131
|
-
|
|
136
|
+
import { ToggleGroupClassNames, ToggleGroupOption, ToggleGroupProps, ToggleGroupSize, ToggleGroupStyles, ToggleGroupVariant } from "./ToggleGroup/type.mjs";
|
|
137
|
+
import { styles as styles$12 } from "./ToggleGroup/style.mjs";
|
|
138
|
+
import { ToggleGroupItem, ToggleGroupItemIcon, ToggleGroupItemLabel, ToggleGroupItemProps, ToggleGroupRoot, ToggleGroupRootProps } from "./ToggleGroup/atoms.mjs";
|
|
139
|
+
import ToggleGroup from "./ToggleGroup/ToggleGroup.mjs";
|
|
140
|
+
import "./ToggleGroup/index.mjs";
|
|
141
|
+
export { Accordion, type AccordionClassNames, AccordionHeader, type AccordionHeaderProps, type AccordionIndicatorPlacement, AccordionItem, type AccordionItemProps, type AccordionItemType, AccordionPanel, type AccordionPanelProps, type AccordionProps, AccordionRoot, type AccordionRootProps, type AccordionStyles, AccordionTrigger, type AccordionTriggerProps, type AccordionVariant, 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, ToggleGroup, type ToggleGroupClassNames, ToggleGroupItem, ToggleGroupItemIcon, ToggleGroupItemLabel, type ToggleGroupItemProps, type ToggleGroupOption, type ToggleGroupProps, ToggleGroupRoot, type ToggleGroupRootProps, type ToggleGroupSize, type ToggleGroupStyles, type ToggleGroupVariant, Tooltip, TooltipGroup, type TooltipGroupProps, type TooltipPlacement, type TooltipPopupComponentProps, type TooltipPortalProps, type TooltipPositionerProps, type TooltipProps, type TooltipTriggerComponentProps, styles as accordionStyles, styles$1 as actionIconStyles, styles$2 as alertStyles, styles$3 as autoCompleteStyles, backdropTransition, styles$4 as buttonStyles, styles$5 as checkboxStyles, closeContextMenu, colorsPreset, colorsPresetSystem, confirmModal, controlHeight, createModal, createModalSystem, drawerBackdropTransition, getDrawerMotionConfig, styles$6 as inputStyles, rootVariants as inputVariants, modalMotionConfig, parseTrigger, presetColors, presetSystemColors, styles$7 as radioStyles, renderDropdownMenuItems, setContextMenuInterceptor, showContextMenu, styles$8 as sliderStyles, styles$9 as switchStyles, styles$10 as tabsStyles, styles$11 as textStyles, variants as textVariants, toast, styles$12 as toggleGroupStyles, updateContextMenuItems, useAccordionContext, useDrawerActions, useDrawerOpen, useFormContext, useModalActions, useModalContext, useModalOpen, usePopoverContext, usePopoverGroupHandle, usePopoverPortalContainer, useSwitchContext, useTabsContext, useToast };
|