@maxhub/max-ui 0.1.14 → 0.2.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/dist/components/Button/Button.d.ts +3 -5
- package/dist/components/Button/Button.d.ts.map +1 -1
- package/dist/components/Button/helpers.d.ts +4 -4
- package/dist/components/Button/helpers.d.ts.map +1 -1
- package/dist/components/Button/index.d.ts +1 -1
- package/dist/components/Button/index.d.ts.map +1 -1
- package/dist/components/IconButton/IconButton.d.ts +1 -1
- package/dist/components/IconButton/IconButton.d.ts.map +1 -1
- package/dist/components/IconButton/helpers.d.ts.map +1 -1
- package/dist/compositions/Profile/Profile.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/src/components/Avatar/index.d.ts +12 -0
- package/dist/src/components/Avatar/index.d.ts.map +1 -0
- package/dist/src/components/Avatar/parts/AvatarCloseButton/AvatarCloseButton.d.ts +5 -0
- package/dist/src/components/Avatar/parts/AvatarCloseButton/AvatarCloseButton.d.ts.map +1 -0
- package/dist/src/components/Avatar/parts/AvatarCloseButton/helpers.d.ts +2 -0
- package/dist/src/components/Avatar/parts/AvatarCloseButton/helpers.d.ts.map +1 -0
- package/dist/src/components/Avatar/parts/AvatarCloseButton/index.d.ts +2 -0
- package/dist/src/components/Avatar/parts/AvatarCloseButton/index.d.ts.map +1 -0
- package/dist/src/components/Avatar/parts/AvatarContainer/AvatarContainer.d.ts +15 -0
- package/dist/src/components/Avatar/parts/AvatarContainer/AvatarContainer.d.ts.map +1 -0
- package/dist/src/components/Avatar/parts/AvatarContainer/AvatarContainerContext.d.ts +7 -0
- package/dist/src/components/Avatar/parts/AvatarContainer/AvatarContainerContext.d.ts.map +1 -0
- package/dist/src/components/Avatar/parts/AvatarContainer/index.d.ts +2 -0
- package/dist/src/components/Avatar/parts/AvatarContainer/index.d.ts.map +1 -0
- package/dist/src/components/Avatar/parts/AvatarIcon/AvatarIcon.d.ts +5 -0
- package/dist/src/components/Avatar/parts/AvatarIcon/AvatarIcon.d.ts.map +1 -0
- package/dist/src/components/Avatar/parts/AvatarIcon/index.d.ts +2 -0
- package/dist/src/components/Avatar/parts/AvatarIcon/index.d.ts.map +1 -0
- package/dist/src/components/Avatar/parts/AvatarImage/AvatarImage.d.ts +8 -0
- package/dist/src/components/Avatar/parts/AvatarImage/AvatarImage.d.ts.map +1 -0
- package/dist/src/components/Avatar/parts/AvatarImage/index.d.ts +2 -0
- package/dist/src/components/Avatar/parts/AvatarImage/index.d.ts.map +1 -0
- package/dist/src/components/Avatar/parts/AvatarOnlineDot/AvatarOnlineDot.d.ts +5 -0
- package/dist/src/components/Avatar/parts/AvatarOnlineDot/AvatarOnlineDot.d.ts.map +1 -0
- package/dist/src/components/Avatar/parts/AvatarOnlineDot/helpers.d.ts +2 -0
- package/dist/src/components/Avatar/parts/AvatarOnlineDot/helpers.d.ts.map +1 -0
- package/dist/src/components/Avatar/parts/AvatarOnlineDot/index.d.ts +2 -0
- package/dist/src/components/Avatar/parts/AvatarOnlineDot/index.d.ts.map +1 -0
- package/dist/src/components/Avatar/parts/AvatarOverlay/AvatarOverlay.d.ts +5 -0
- package/dist/src/components/Avatar/parts/AvatarOverlay/AvatarOverlay.d.ts.map +1 -0
- package/dist/src/components/Avatar/parts/AvatarOverlay/index.d.ts +2 -0
- package/dist/src/components/Avatar/parts/AvatarOverlay/index.d.ts.map +1 -0
- package/dist/src/components/Avatar/parts/AvatarText/AvatarText.d.ts +7 -0
- package/dist/src/components/Avatar/parts/AvatarText/AvatarText.d.ts.map +1 -0
- package/dist/src/components/Avatar/parts/AvatarText/helpers.d.ts +5 -0
- package/dist/src/components/Avatar/parts/AvatarText/helpers.d.ts.map +1 -0
- package/dist/src/components/Avatar/parts/AvatarText/index.d.ts +2 -0
- package/dist/src/components/Avatar/parts/AvatarText/index.d.ts.map +1 -0
- package/dist/src/components/Avatar/parts/index.d.ts +8 -0
- package/dist/src/components/Avatar/parts/index.d.ts.map +1 -0
- package/dist/src/components/Button/Button.d.ts +17 -0
- package/dist/src/components/Button/Button.d.ts.map +1 -0
- package/dist/src/components/Button/helpers.d.ts +9 -0
- package/dist/src/components/Button/helpers.d.ts.map +1 -0
- package/dist/src/components/Button/index.d.ts +2 -0
- package/dist/src/components/Button/index.d.ts.map +1 -0
- package/dist/src/components/CellAction/CellAction.d.ts +16 -0
- package/dist/src/components/CellAction/CellAction.d.ts.map +1 -0
- package/dist/src/components/CellAction/index.d.ts +2 -0
- package/dist/src/components/CellAction/index.d.ts.map +1 -0
- package/dist/src/components/CellHeader/CellHeader.d.ts +12 -0
- package/dist/src/components/CellHeader/CellHeader.d.ts.map +1 -0
- package/dist/src/components/CellHeader/index.d.ts +2 -0
- package/dist/src/components/CellHeader/index.d.ts.map +1 -0
- package/dist/src/components/CellInput/CellInput.d.ts +11 -0
- package/dist/src/components/CellInput/CellInput.d.ts.map +1 -0
- package/dist/src/components/CellInput/index.d.ts +2 -0
- package/dist/src/components/CellInput/index.d.ts.map +1 -0
- package/dist/src/components/CellList/CellList.d.ts +9 -0
- package/dist/src/components/CellList/CellList.d.ts.map +1 -0
- package/dist/src/components/CellList/index.d.ts +2 -0
- package/dist/src/components/CellList/index.d.ts.map +1 -0
- package/dist/src/components/CellSimple/CellSimple.d.ts +23 -0
- package/dist/src/components/CellSimple/CellSimple.d.ts.map +1 -0
- package/dist/src/components/CellSimple/index.d.ts +2 -0
- package/dist/src/components/CellSimple/index.d.ts.map +1 -0
- package/dist/src/components/Counter/Counter.d.ts +9 -0
- package/dist/src/components/Counter/Counter.d.ts.map +1 -0
- package/dist/src/components/Counter/index.d.ts +2 -0
- package/dist/src/components/Counter/index.d.ts.map +1 -0
- package/dist/src/components/Dot/Dot.d.ts +10 -0
- package/dist/src/components/Dot/Dot.d.ts.map +1 -0
- package/dist/src/components/Dot/index.d.ts +2 -0
- package/dist/src/components/Dot/index.d.ts.map +1 -0
- package/dist/src/components/IconButton/IconButton.d.ts +15 -0
- package/dist/src/components/IconButton/IconButton.d.ts.map +1 -0
- package/dist/src/components/IconButton/helpers.d.ts +5 -0
- package/dist/src/components/IconButton/helpers.d.ts.map +1 -0
- package/dist/src/components/IconButton/index.d.ts +2 -0
- package/dist/src/components/IconButton/index.d.ts.map +1 -0
- package/dist/src/components/Input/Input.d.ts +17 -0
- package/dist/src/components/Input/Input.d.ts.map +1 -0
- package/dist/src/components/Input/index.d.ts +2 -0
- package/dist/src/components/Input/index.d.ts.map +1 -0
- package/dist/src/components/MaxUI/MaxUI.d.ts +8 -0
- package/dist/src/components/MaxUI/MaxUI.d.ts.map +1 -0
- package/dist/src/components/MaxUI/MaxUIContext.d.ts +8 -0
- package/dist/src/components/MaxUI/MaxUIContext.d.ts.map +1 -0
- package/dist/src/components/MaxUI/index.d.ts +3 -0
- package/dist/src/components/MaxUI/index.d.ts.map +1 -0
- package/dist/src/components/Spinner/Spinner.d.ts +3 -0
- package/dist/src/components/Spinner/Spinner.d.ts.map +1 -0
- package/dist/src/components/Spinner/SpinnerAndroid.d.ts +4 -0
- package/dist/src/components/Spinner/SpinnerAndroid.d.ts.map +1 -0
- package/dist/src/components/Spinner/SpinnerIos.d.ts +4 -0
- package/dist/src/components/Spinner/SpinnerIos.d.ts.map +1 -0
- package/dist/src/components/Spinner/index.d.ts +3 -0
- package/dist/src/components/Spinner/index.d.ts.map +1 -0
- package/dist/src/components/Spinner/types.d.ts +11 -0
- package/dist/src/components/Spinner/types.d.ts.map +1 -0
- package/dist/src/components/Switch/Switch.d.ts +8 -0
- package/dist/src/components/Switch/Switch.d.ts.map +1 -0
- package/dist/src/components/Switch/index.d.ts +2 -0
- package/dist/src/components/Switch/index.d.ts.map +1 -0
- package/dist/src/components/Textarea/Textarea.d.ts +10 -0
- package/dist/src/components/Textarea/Textarea.d.ts.map +1 -0
- package/dist/src/components/Textarea/index.d.ts +2 -0
- package/dist/src/components/Textarea/index.d.ts.map +1 -0
- package/dist/src/components/ToolButton/ToolButton.d.ts +14 -0
- package/dist/src/components/ToolButton/ToolButton.d.ts.map +1 -0
- package/dist/src/components/ToolButton/index.d.ts +2 -0
- package/dist/src/components/ToolButton/index.d.ts.map +1 -0
- package/dist/src/components/Typography/index.d.ts +11 -0
- package/dist/src/components/Typography/index.d.ts.map +1 -0
- package/dist/src/components/Typography/parts/TypographyAction/TypographyAction.d.ts +8 -0
- package/dist/src/components/Typography/parts/TypographyAction/TypographyAction.d.ts.map +1 -0
- package/dist/src/components/Typography/parts/TypographyAction/index.d.ts +2 -0
- package/dist/src/components/Typography/parts/TypographyAction/index.d.ts.map +1 -0
- package/dist/src/components/Typography/parts/TypographyBody/TypographyBody.d.ts +8 -0
- package/dist/src/components/Typography/parts/TypographyBody/TypographyBody.d.ts.map +1 -0
- package/dist/src/components/Typography/parts/TypographyBody/index.d.ts +2 -0
- package/dist/src/components/Typography/parts/TypographyBody/index.d.ts.map +1 -0
- package/dist/src/components/Typography/parts/TypographyDisplay/TypographyDisplay.d.ts +6 -0
- package/dist/src/components/Typography/parts/TypographyDisplay/TypographyDisplay.d.ts.map +1 -0
- package/dist/src/components/Typography/parts/TypographyDisplay/index.d.ts +2 -0
- package/dist/src/components/Typography/parts/TypographyDisplay/index.d.ts.map +1 -0
- package/dist/src/components/Typography/parts/TypographyHeadline/TypographyHeadline.d.ts +8 -0
- package/dist/src/components/Typography/parts/TypographyHeadline/TypographyHeadline.d.ts.map +1 -0
- package/dist/src/components/Typography/parts/TypographyHeadline/index.d.ts +2 -0
- package/dist/src/components/Typography/parts/TypographyHeadline/index.d.ts.map +1 -0
- package/dist/src/components/Typography/parts/TypographyLabel/TypographyLabel.d.ts +8 -0
- package/dist/src/components/Typography/parts/TypographyLabel/TypographyLabel.d.ts.map +1 -0
- package/dist/src/components/Typography/parts/TypographyLabel/index.d.ts +2 -0
- package/dist/src/components/Typography/parts/TypographyLabel/index.d.ts.map +1 -0
- package/dist/src/components/Typography/parts/TypographyTitle/TypographyTitle.d.ts +8 -0
- package/dist/src/components/Typography/parts/TypographyTitle/TypographyTitle.d.ts.map +1 -0
- package/dist/src/components/Typography/parts/TypographyTitle/index.d.ts +2 -0
- package/dist/src/components/Typography/parts/TypographyTitle/index.d.ts.map +1 -0
- package/dist/src/components/Typography/parts/index.d.ts +7 -0
- package/dist/src/components/Typography/parts/index.d.ts.map +1 -0
- package/dist/src/components/index.d.ts +17 -0
- package/dist/src/components/index.d.ts.map +1 -0
- package/dist/src/helpers/dispatch-change-native-event.d.ts +7 -0
- package/dist/src/helpers/dispatch-change-native-event.d.ts.map +1 -0
- package/dist/src/helpers/get-css-size-value.d.ts +2 -0
- package/dist/src/helpers/get-css-size-value.d.ts.map +1 -0
- package/dist/src/helpers/get-subtree.d.ts +19 -0
- package/dist/src/helpers/get-subtree.d.ts.map +1 -0
- package/dist/src/helpers/has-react-node.d.ts +3 -0
- package/dist/src/helpers/has-react-node.d.ts.map +1 -0
- package/dist/src/helpers/index.d.ts +8 -0
- package/dist/src/helpers/index.d.ts.map +1 -0
- package/dist/src/helpers/is-ios.d.ts +2 -0
- package/dist/src/helpers/is-ios.d.ts.map +1 -0
- package/dist/src/helpers/merge-refs.d.ts +3 -0
- package/dist/src/helpers/merge-refs.d.ts.map +1 -0
- package/dist/src/helpers/noop.d.ts +3 -0
- package/dist/src/helpers/noop.d.ts.map +1 -0
- package/dist/src/hooks/index.d.ts +7 -0
- package/dist/src/hooks/index.d.ts.map +1 -0
- package/dist/src/hooks/use-button-like-props.d.ts +10 -0
- package/dist/src/hooks/use-button-like-props.d.ts.map +1 -0
- package/dist/src/hooks/use-callback-ref.d.ts +6 -0
- package/dist/src/hooks/use-callback-ref.d.ts.map +1 -0
- package/dist/src/hooks/use-color-scheme.d.ts +3 -0
- package/dist/src/hooks/use-color-scheme.d.ts.map +1 -0
- package/dist/src/hooks/use-image-loading-status.d.ts +8 -0
- package/dist/src/hooks/use-image-loading-status.d.ts.map +1 -0
- package/dist/src/hooks/use-platform.d.ts +3 -0
- package/dist/src/hooks/use-platform.d.ts.map +1 -0
- package/dist/src/hooks/use-system-color-scheme.d.ts +7 -0
- package/dist/src/hooks/use-system-color-scheme.d.ts.map +1 -0
- package/dist/src/icons/index.d.ts +8 -0
- package/dist/src/icons/index.d.ts.map +1 -0
- package/dist/src/index.d.ts +7 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/internal/ClearableInput/ClearableInput.d.ts +10 -0
- package/dist/src/internal/ClearableInput/ClearableInput.d.ts.map +1 -0
- package/dist/src/internal/ClearableInput/index.d.ts +2 -0
- package/dist/src/internal/ClearableInput/index.d.ts.map +1 -0
- package/dist/src/internal/Container/Container.d.ts +7 -0
- package/dist/src/internal/Container/Container.d.ts.map +1 -0
- package/dist/src/internal/Container/index.d.ts +2 -0
- package/dist/src/internal/Container/index.d.ts.map +1 -0
- package/dist/src/internal/EllipsisText/EllipsisText.d.ts +14 -0
- package/dist/src/internal/EllipsisText/EllipsisText.d.ts.map +1 -0
- package/dist/src/internal/EllipsisText/index.d.ts +2 -0
- package/dist/src/internal/EllipsisText/index.d.ts.map +1 -0
- package/dist/src/internal/Flex/Flex.d.ts +19 -0
- package/dist/src/internal/Flex/Flex.d.ts.map +1 -0
- package/dist/src/internal/Flex/index.d.ts +2 -0
- package/dist/src/internal/Flex/index.d.ts.map +1 -0
- package/dist/src/internal/Grid/Grid.d.ts +17 -0
- package/dist/src/internal/Grid/Grid.d.ts.map +1 -0
- package/dist/src/internal/Grid/index.d.ts +2 -0
- package/dist/src/internal/Grid/index.d.ts.map +1 -0
- package/dist/src/internal/Panel/Panel.d.ts +9 -0
- package/dist/src/internal/Panel/Panel.d.ts.map +1 -0
- package/dist/src/internal/Panel/index.d.ts +2 -0
- package/dist/src/internal/Panel/index.d.ts.map +1 -0
- package/dist/src/internal/Ripple/Ripple.d.ts +5 -0
- package/dist/src/internal/Ripple/Ripple.d.ts.map +1 -0
- package/dist/src/internal/Ripple/index.d.ts +2 -0
- package/dist/src/internal/Ripple/index.d.ts.map +1 -0
- package/dist/src/internal/SvgButton/SvgButton.d.ts +6 -0
- package/dist/src/internal/SvgButton/SvgButton.d.ts.map +1 -0
- package/dist/src/internal/SvgButton/index.d.ts +2 -0
- package/dist/src/internal/SvgButton/index.d.ts.map +1 -0
- package/dist/src/internal/Tappable/Tappable.d.ts +13 -0
- package/dist/src/internal/Tappable/Tappable.d.ts.map +1 -0
- package/dist/src/internal/Tappable/helpers.d.ts +11 -0
- package/dist/src/internal/Tappable/helpers.d.ts.map +1 -0
- package/dist/src/internal/Tappable/index.d.ts +2 -0
- package/dist/src/internal/Tappable/index.d.ts.map +1 -0
- package/dist/src/internal/index.d.ts +10 -0
- package/dist/src/internal/index.d.ts.map +1 -0
- package/dist/src/types.d.ts +11 -0
- package/dist/src/types.d.ts.map +1 -0
- package/dist/styles.css +1 -1
- package/package.json +42 -35
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
import { type ComponentProps, type ReactNode } from 'react';
|
|
2
2
|
import { type AsChildProp, type InnerClassNamesProp } from '../../types';
|
|
3
|
-
export type ButtonSize = 'small' | 'medium' | 'large';
|
|
4
|
-
export type
|
|
5
|
-
export type ButtonAppearance = 'themed' | 'negative' | 'neutral' | 'neutral-themed' | 'contrast-static';
|
|
3
|
+
export type ButtonSize = 'xsmall' | 'small' | 'medium' | 'large';
|
|
4
|
+
export type ButtonVariant = 'primary' | 'secondary' | 'ghost' | 'primary-contrast' | 'secondary-contrast' | 'overlay' | 'destructive';
|
|
6
5
|
export type ButtonInnerElementKey = 'iconBefore' | 'iconAfter' | 'indicator' | 'content' | 'spinnerContainer' | 'spinner';
|
|
7
6
|
export interface ButtonProps extends ComponentProps<'button'>, AsChildProp {
|
|
8
7
|
size?: ButtonSize;
|
|
9
|
-
|
|
10
|
-
appearance?: ButtonAppearance;
|
|
8
|
+
variant?: ButtonVariant;
|
|
11
9
|
stretched?: boolean;
|
|
12
10
|
iconBefore?: ReactNode;
|
|
13
11
|
iconAfter?: ReactNode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../src/components/Button/Button.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,cAAc,EAAwD,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAIlH,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAOzE,MAAM,MAAM,UAAU,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../src/components/Button/Button.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,cAAc,EAAwD,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAIlH,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAOzE,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;AACjE,MAAM,MAAM,aAAa,GAAG,SAAS,GAAG,WAAW,GAAG,OAAO,GAAG,kBAAkB,GAAG,oBAAoB,GAAG,SAAS,GAAG,aAAa,CAAC;AACtI,MAAM,MAAM,qBAAqB,GAAG,YAAY,GAAG,WAAW,GAAG,WAAW,GAAG,SAAS,GAAG,kBAAkB,GAAG,SAAS,CAAC;AAE1H,MAAM,WAAW,WAAY,SAAQ,cAAc,CAAC,QAAQ,CAAC,EAAE,WAAW;IACxE,IAAI,CAAC,EAAE,UAAU,CAAA;IACjB,OAAO,CAAC,EAAE,aAAa,CAAA;IACvB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,UAAU,CAAC,EAAE,SAAS,CAAA;IACtB,SAAS,CAAC,EAAE,SAAS,CAAA;IACrB,SAAS,CAAC,EAAE,SAAS,CAAA;IACrB,eAAe,CAAC,EAAE,mBAAmB,CAAC,qBAAqB,CAAC,CAAA;IAC5D,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,eAAO,MAAM,MAAM,wHAqGjB,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { type ReactNode } from 'react';
|
|
2
2
|
import { type CounterProps } from '../Counter';
|
|
3
3
|
import { type SpinnerAppearance } from '../Spinner';
|
|
4
|
-
import { type
|
|
4
|
+
import { type ButtonSize, type ButtonVariant } from './Button';
|
|
5
5
|
export declare const getButtonSpinnerSize: (buttonSize: ButtonSize) => number;
|
|
6
|
-
export declare const getButtonSpinnerAppearance: (
|
|
7
|
-
export declare const getButtonCounterAppearance: (
|
|
8
|
-
export declare const injectButtonIndicator: (indicatorNode: ReactNode,
|
|
6
|
+
export declare const getButtonSpinnerAppearance: (buttonVariant: ButtonVariant) => SpinnerAppearance;
|
|
7
|
+
export declare const getButtonCounterAppearance: (buttonVariant: ButtonVariant) => Pick<CounterProps, "appearance" | "mode">;
|
|
8
|
+
export declare const injectButtonIndicator: (indicatorNode: ReactNode, buttonVariant: ButtonVariant, disabled?: boolean) => ReactNode;
|
|
9
9
|
//# sourceMappingURL=helpers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../src/components/Button/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmD,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAExF,OAAO,EAAW,KAAK,YAAY,EAAE,MAAM,YAAY,CAAC;AACxD,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,YAAY,CAAC;AACpD,OAAO,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../src/components/Button/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmD,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAExF,OAAO,EAAW,KAAK,YAAY,EAAE,MAAM,YAAY,CAAC;AACxD,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,YAAY,CAAC;AACpD,OAAO,EAAE,KAAK,UAAU,EAAE,KAAK,aAAa,EAAE,MAAM,UAAU,CAAC;AAE/D,eAAO,MAAM,oBAAoB,GAAI,YAAY,UAAU,KAAG,MAM7D,CAAC;AAEF,eAAO,MAAM,0BAA0B,GAAI,eAAe,aAAa,KAAG,iBAczE,CAAC;AAEF,eAAO,MAAM,0BAA0B,GAAI,eAAe,aAAa,KAAG,IAAI,CAAC,YAAY,EAAE,YAAY,GAAG,MAAM,CAiBjH,CAAC;AAEF,eAAO,MAAM,qBAAqB,GAAI,eAAe,SAAS,EAAE,eAAe,aAAa,EAAE,WAAW,OAAO,KAAG,SAgBlH,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { Button, type
|
|
1
|
+
export { Button, type ButtonInnerElementKey, type ButtonProps, type ButtonSize, type ButtonVariant } from './Button';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Button/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Button/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,KAAK,qBAAqB,EAAE,KAAK,WAAW,EAAE,KAAK,UAAU,EAAE,KAAK,aAAa,EAAE,MAAM,UAAU,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type ComponentProps } from 'react';
|
|
2
2
|
import { type AsChildProp, type InnerClassNamesProp } from '../../types';
|
|
3
|
-
export type IconButtonSize = 'small' | 'medium' | 'large';
|
|
3
|
+
export type IconButtonSize = 'xsmall' | 'small' | 'medium' | 'large';
|
|
4
4
|
export type IconButtonMode = 'primary' | 'secondary' | 'tertiary' | 'link';
|
|
5
5
|
export type IconButtonAppearance = 'themed' | 'negative' | 'neutral' | 'neutral-themed' | 'contrast-static';
|
|
6
6
|
export type IconButtonInnerElementKey = 'content' | 'spinnerContainer' | 'spinner';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IconButton.d.ts","sourceRoot":"","sources":["../../../src/components/IconButton/IconButton.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,cAAc,EAAgC,MAAM,OAAO,CAAC;AAI1E,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAMzE,MAAM,MAAM,cAAc,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"IconButton.d.ts","sourceRoot":"","sources":["../../../src/components/IconButton/IconButton.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,cAAc,EAAgC,MAAM,OAAO,CAAC;AAI1E,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAMzE,MAAM,MAAM,cAAc,GAAG,QAAQ,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;AACrE,MAAM,MAAM,cAAc,GAAG,SAAS,GAAG,WAAW,GAAG,UAAU,GAAG,MAAM,CAAC;AAC3E,MAAM,MAAM,oBAAoB,GAAG,QAAQ,GAAG,UAAU,GAAG,SAAS,GAAG,gBAAgB,GAAG,iBAAiB,CAAC;AAC5G,MAAM,MAAM,yBAAyB,GAAG,SAAS,GAAG,kBAAkB,GAAG,SAAS,CAAC;AAEnF,MAAM,WAAW,eAAgB,SAAQ,cAAc,CAAC,QAAQ,CAAC,EAAE,WAAW;IAC5E,IAAI,CAAC,EAAE,cAAc,CAAA;IACrB,IAAI,CAAC,EAAE,cAAc,CAAA;IACrB,UAAU,CAAC,EAAE,oBAAoB,CAAA;IACjC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,eAAe,CAAC,EAAE,mBAAmB,CAAC,yBAAyB,CAAC,CAAA;CACjE;AAED,eAAO,MAAM,UAAU,4HAsErB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../src/components/IconButton/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,YAAY,CAAC;AACpD,OAAO,EAAE,KAAK,oBAAoB,EAAE,KAAK,cAAc,EAAE,KAAK,cAAc,EAAE,MAAM,cAAc,CAAC;AAEnG,eAAO,MAAM,wBAAwB,GAAI,gBAAgB,cAAc,KAAG,
|
|
1
|
+
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../src/components/IconButton/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,YAAY,CAAC;AACpD,OAAO,EAAE,KAAK,oBAAoB,EAAE,KAAK,cAAc,EAAE,KAAK,cAAc,EAAE,MAAM,cAAc,CAAC;AAEnG,eAAO,MAAM,wBAAwB,GAAI,gBAAgB,cAAc,KAAG,MAMzE,CAAC;AAEF,eAAO,MAAM,8BAA8B,GAAI,sBAAsB,oBAAoB,EAAE,gBAAgB,cAAc,KAAG,iBAqB3H,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Profile.d.ts","sourceRoot":"","sources":["../../../src/compositions/Profile/Profile.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAevC,eAAO,MAAM,OAAO;QAAO,SAAS;;
|
|
1
|
+
{"version":3,"file":"Profile.d.ts","sourceRoot":"","sources":["../../../src/compositions/Profile/Profile.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAevC,eAAO,MAAM,OAAO;QAAO,SAAS;;CAqKnC,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e,Fragment as a,jsxs as t}from"react/jsx-runtime";import*as n from"react";import{forwardRef as r,createContext as l,useContext as _,Children as i,cloneElement as o,isValidElement as s,useRef as c,useEffect as p,useMemo as d,useState as u,useLayoutEffect as m}from"react";function h(e){var a,t,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var r=e.length;for(a=0;a<r;a++)e[a]&&(t=h(e[a]))&&(n&&(n+=" "),n+=t)}else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function y(){for(var e,a,t=0,n="",r=arguments.length;t<r;t++)(e=arguments[t])&&(a=h(e))&&(n&&(n+=" "),n+=a);return n}var v;function g(){return g=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var n in t)({}).hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},g.apply(null,arguments)}var C,f=function(e){return n.createElement("svg",g({xmlns:"http://www.w3.org/2000/svg",width:12,height:16,fill:"none"},e),v||(v=n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M2.934 3.434a.8.8 0 0 1 1.132 0l4 4a.8.8 0 0 1 0 1.132l-4 4a.8.8 0 0 1-1.132-1.132L6.37 8 2.934 4.566a.8.8 0 0 1 0-1.132",clipRule:"evenodd"})))};function B(){return B=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var n in t)({}).hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},B.apply(null,arguments)}var N;function b(){return b=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var n in t)({}).hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},b.apply(null,arguments)}var I,T=function(e){return n.createElement("svg",b({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none"},e),N||(N=n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M7.242 2.115c-2.605 0-4.677 2.044-4.677 4.517s2.072 4.517 4.677 4.517 4.677-2.044 4.677-4.517-2.072-4.517-4.677-4.517M1 6.632C1 3.252 3.817.55 7.242.55s6.242 2.701 6.242 6.082a5.97 5.97 0 0 1-1.692 4.165l3 3.247a.783.783 0 1 1-1.15 1.062l-3.074-3.326a6.34 6.34 0 0 1-3.326.935C3.817 12.715 1 10.013 1 6.632",clipRule:"evenodd"})))};function S(){return S=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var n in t)({}).hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},S.apply(null,arguments)}var A,x;function w(){return w=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var n in t)({}).hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},w.apply(null,arguments)}var L=function(e){return n.createElement("svg",w({xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none"},e),A||(A=n.createElement("circle",{cx:10,cy:10,r:10,fill:"currentColor"})),x||(x=n.createElement("path",{fill:"#fff",fillRule:"evenodd",d:"M5.364 5.364a.9.9 0 0 1 1.272 0L10 8.727l3.364-3.363a.9.9 0 0 1 1.272 1.272L11.274 10l3.364 3.364a.9.9 0 1 1-1.273 1.272L10 11.273l-3.364 3.363a.9.9 0 0 1-1.272-1.272L8.727 10 5.364 6.636a.9.9 0 0 1 0-1.272",clipRule:"evenodd"})))};function M(e,a){if("function"==typeof e)return e(a);null!=e&&(e.current=a)}function z(a){const t=E(a),r=n.forwardRef((a,r)=>{const{children:l,..._}=a,i=n.Children.toArray(l),o=i.find(j);if(o){const a=o.props.children,l=i.map(e=>e===o?n.Children.count(a)>1?n.Children.only(null):n.isValidElement(a)?a.props.children:null:e);return e(t,{..._,ref:r,children:n.isValidElement(a)?n.cloneElement(a,void 0,l):null})}return e(t,{..._,ref:r,children:l})});return r.displayName=`${a}.Slot`,r}var D=z("Slot");function E(e){const a=n.forwardRef((e,a)=>{const{children:t,...r}=e;if(n.isValidElement(t)){const e=function(e){let a=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,t=a&&"isReactWarning"in a&&a.isReactWarning;if(t)return e.ref;if(a=Object.getOwnPropertyDescriptor(e,"ref")?.get,t=a&&"isReactWarning"in a&&a.isReactWarning,t)return e.props.ref;return e.props.ref||e.ref}(t),l=function(e,a){const t={...a};for(const n in a){const r=e[n],l=a[n];/^on[A-Z]/.test(n)?r&&l?t[n]=(...e)=>{const a=l(...e);return r(...e),a}:r&&(t[n]=r):"style"===n?t[n]={...r,...l}:"className"===n&&(t[n]=[r,l].filter(Boolean).join(" "))}return{...e,...t}}(r,t.props);return t.type!==n.Fragment&&(l.ref=a?function(...e){return a=>{let t=!1;const n=e.map(e=>{const n=M(e,a);return t||"function"!=typeof n||(t=!0),n});if(t)return()=>{for(let a=0;a<n.length;a++){const t=n[a];"function"==typeof t?t():M(e[a],null)}}}}(a,e):e),n.cloneElement(t,l)}return n.Children.count(t)>1?n.Children.only(null):null});return a.displayName=`${e}.SlotClone`,a}var O=Symbol("radix.slottable");function k(t){const n=({children:t})=>e(a,{children:t});return n.displayName=`${t}.Slottable`,n.__radixId=O,n}var H=k("Slottable");function j(e){return n.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===O}var P="SvgButton__kk9";const $=r((a,t)=>{const{className:n,asChild:r,...l}=a;return e(r?D:"button",{ref:t,className:y(P,n),...l})});$.displayName="SvgButton";const U=l({size:48}),R=()=>_(U);var G={};const W=r((a,t)=>{const{className:n,onClick:r,...l}=a,{size:_}=R(),i=(e=>e<40?12:e<54?16:e<72?20:24)(_);return e($,{ref:t,className:y(G.AvatarCloseButton,n),onClick:e=>{e.preventDefault(),r?.(e)},...l,children:e(L,{width:i,height:i})})});W.displayName="AvatarCloseButton";const Y=e=>"string"==typeof e?e:`${e}px`,X=e=>{const{options:a,content:t}=e,{asChild:n,children:r}=a;if(!n)return"function"==typeof t?t(r):t;const l=i.only(r);return o(l,{children:"function"==typeof t?t(l.props.children):t})},F=e=>void 0!==e&&!1!==e&&null!==e&&""!==e,q=()=>!!navigator.userAgent.match(/(iPad|iPhone|iPod)/g),Z=(...e)=>{const a=e.filter(Boolean);if(a.length<=1){return a[0]??null}return e=>{for(const t of a)"function"==typeof t?t(e):t&&(t.current=e)}},J=()=>{};var Q={AvatarContainer:"AvatarContainer__7c-",AvatarContainer_form_circle:"AvatarContainer_form_circle__J44",AvatarContainer__content:"AvatarContainer__content__h8v",AvatarContainer_form_squircle:"AvatarContainer_form_squircle__1i0",AvatarContainer__overlay:"AvatarContainer__overlay__qul",AvatarContainer__rightBottomCorner:"AvatarContainer__rightBottomCorner__kZG",AvatarContainer__rightTopCorner:"AvatarContainer__rightTopCorner__y4y"};const V=r((a,n)=>{const{className:r,style:l,children:_,overlay:i,rightTopCorner:o,rightBottomCorner:s,innerClassNames:c,size:p=48,asChild:d,form:u="circle",...m}=a,h=d?D:"div",v=y(Q.AvatarContainer,Q[`AvatarContainer_form_${u}`],r);return e(U.Provider,{value:{size:p},children:t(h,{ref:n,className:v,style:{"--MaxUi-AvatarContainer_size":`${p}px`,...l},...m,children:[e(H,{children:X({options:{asChild:a.asChild,children:_},content:a=>t("span",{className:y(Q.AvatarContainer__content,c?.content),children:[a,F(i)&&e("span",{className:y(Q.AvatarContainer__overlay,c?.overlay),children:i})]},"subtree-container")})}),F(s)&&e("span",{className:y(Q.AvatarContainer__rightBottomCorner,c?.rightBottomCorner),children:s}),F(o)&&e("span",{className:y(Q.AvatarContainer__rightTopCorner,c?.rightTopCorner),children:o})]})})});V.displayName="AvatarContainer";var K="AvatarIcon__ZUI";const ee=r((a,t)=>{const{className:n,...r}=a;return e("span",{ref:t,className:y(K,n),...r})});ee.displayName="AvatarIcon";const ae=e=>{const{asChild:a,children:t,rootElement:n,disabled:r,loading:l}=e;if(!a&&"button"===n){return{disabled:r,...l?{"aria-disabled":!0}:{}}}if(a&&s(t)){const{type:e}=t;if("a"===e){return{"aria-disabled":r??l,...r?{onClick:e=>{e.preventDefault()},tabIndex:-1}:{}}}}return{role:"button",tabIndex:r?-1:0,"aria-disabled":r??l,...r?{onClick:void 0}:{}}},te=e=>{const a=c(e);return p(()=>{a.current=e}),d(()=>(...e)=>a.current?.(...e),[])},ne=()=>{const{colorScheme:e}=ya();return e},re=e=>{const{src:a,referrerPolicy:t}=e,[n,r]=u("idle");return m(()=>{if(!a)return void r("error");let e=!0;const n=new window.Image,l=a=>()=>{e&&r(a)};return r("loading"),n.onload=l("loaded"),n.onerror=l("error"),n.src=a,t&&(n.referrerPolicy=t),()=>{e=!1}},[a,t]),n},le=()=>{const{platform:e}=ya();return e},_e=(e={})=>{const{listenChanges:a}=e,[t,n]=u(window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),r=e=>{n(()=>e.matches?"dark":"light")};return p(()=>{const e=window.matchMedia("(prefers-color-scheme: dark)");return n(()=>e.matches?"dark":"light"),a?(e.addEventListener("change",r),()=>{e.removeEventListener("change",r)}):J},[a]),t};var ie={AvatarText:"AvatarText__DIj",AvatarText_gradient_red:"AvatarText_gradient_red__bnV",AvatarText_gradient_orange:"AvatarText_gradient_orange__Ngq",AvatarText_gradient_green:"AvatarText_gradient_green__n7Z",AvatarText_gradient_blue:"AvatarText_gradient_blue__gLu",AvatarText_gradient_purple:"AvatarText_gradient_purple__UsS",AvatarText__in:"AvatarText__in__cDg"};const oe=e=>e<20?{fontSize:6}:e<28?{fontSize:8}:e<32?{fontSize:10}:e<36?{fontSize:11}:e<40?{fontSize:13}:e<48?{fontSize:14}:e<54?{fontSize:17}:e<64?{fontSize:18}:e<72?{fontSize:21}:e<88?{fontSize:26}:{fontSize:30},se=r((a,t)=>{const{className:n,children:r,gradient:l="red",..._}=a,{size:i}=R(),o=y(ie.AvatarText,{[ie[`AvatarText_gradient_${l}`]]:"custom"!==l},n);return e("span",{ref:t,className:o,..._,children:e("span",{className:ie.AvatarText__in,style:oe(i),children:r})})});se.displayName="AvatarText";var ce="AvatarImage__H7-";const pe=r((a,t)=>{const{className:n,fallback:r,fallbackGradient:l="red",..._}=a,[i,o]=u("idle"),s=re({src:_.src??_.srcSet,referrerPolicy:_.referrerPolicy}),c=te(e=>{o(e)});return m(()=>{"idle"!==s&&c(s)},[s,c]),"error"===i?e(se,{gradient:l,children:r}):e("img",{ref:t,className:y(ce,n),..._})});pe.displayName="AvatarImage";var de={AvatarOnlineDot:"AvatarOnlineDot__-GT",AvatarOnlineDot_size_xs:"AvatarOnlineDot_size_xs__2SY",AvatarOnlineDot__dot:"AvatarOnlineDot__dot__8dL",AvatarOnlineDot_size_s:"AvatarOnlineDot_size_s__T1u",AvatarOnlineDot_size_m:"AvatarOnlineDot_size_m__ris",AvatarOnlineDot_size_l:"AvatarOnlineDot_size_l__zo4"};const ue=r((a,t)=>{const{className:n,...r}=a,{size:l}=R(),_=(e=>e<40?"xs":e<54?"s":e<72?"m":"l")(l),i=y(de.AvatarOnlineDot,de[`AvatarOnlineDot_size_${_}`],n);return e("span",{ref:t,className:i,...r,children:e("span",{className:de.AvatarOnlineDot__dot})})});ue.displayName="AvatarOnlineDot";var me="AvatarOverlay__-nV";const he=r((a,t)=>{const{className:n,onClick:r,...l}=a;return e("span",{ref:t,className:y(me,n),onClick:e=>{e.preventDefault(),r?.(e)},...l})});he.displayName="AvatarOverlay";const ye=Object.assign({},{Container:V,Image:pe,Overlay:he,Icon:ee,Text:se,OnlineDot:ue,CloseButton:W});var ve="EllipsisText__vGw",ge="EllipsisText_multiline__1tx",Ce="EllipsisText_singleLine__3CP";const fe=r((a,t)=>{const{className:n,maxLines:r=1,style:l,asChild:_,...i}=a,o=_?D:"span",s=y(ve,{[ge]:r>1,[Ce]:1===r},n);return e(o,{ref:t,className:s,style:{"--MaxUi-EllipsisText_linesCount":r,...l},...i})});fe.displayName="EllipsisText";var Be="Ripple__R4t",Ne="Ripple_active__Rit";const be=r((a,t)=>{const{className:n,...r}=a,l=c(null),_=c(null),i=e=>{const a=e.currentTarget.getBoundingClientRect();((e,a)=>{null!==_.current&&(_.current.classList.remove(Ne),_.current.style.top=a+"px",_.current.style.left=e+"px",_.current.classList.add(Ne))})(e.clientX-(a.left??0),e.clientY-(a.top??0))};return p(()=>{if(_.current)return l.current=_.current.parentElement,null!==l.current&&l.current.addEventListener("pointerdown",i),()=>{null!==l.current&&l.current?.removeEventListener("pointerdown",i)}},[]),e("span",{ref:Z(t,_),role:"presentation","aria-hidden":!0,className:y(Be,n),onAnimationEnd:()=>{null!==_.current&&_.current.classList.remove(Ne)},...r})});be.displayName="Ripple";var Ie={Spinner:"Spinner__piy",rotation:"rotation__CUP",Spinner_appearance_primary:"Spinner_appearance_primary__mxz",Spinner_appearance_themed:"Spinner_appearance_themed__-9S","Spinner_appearance_primary-static":"Spinner_appearance_primary-static__JxW",Spinner_appearance_contrast:"Spinner_appearance_contrast__Mv6","Spinner_appearance_contrast-static":"Spinner_appearance_contrast-static__rM7",Spinner_appearance_negative:"Spinner_appearance_negative__eMf","Spinner_appearance_neutral-themed":"Spinner_appearance_neutral-themed__D8F",Spinner__spinner:"Spinner__spinner__Qdc"};const Te=r((a,n)=>{const{className:r,size:l=20,appearance:_="primary",...i}=a,o=y(Ie.Spinner,Ie[`Spinner_appearance_${_}`],r);return e("span",{ref:n,role:"status",className:o,...i,children:t("svg",{xmlns:"http://www.w3.org/2000/svg",width:l,height:l,viewBox:"0 0 20 20",fill:"none",children:[e("g",{clipPath:"url(#spinner)",children:e("g",{transform:"matrix(8.74228e-10 -0.01 0.01 8.74228e-10 10 10)",children:e("foreignObject",{x:"-1120",y:"-1120",width:"2240",height:"2240",children:e("div",{className:Ie.Spinner__spinner})})})}),e("defs",{children:e("clipPath",{id:"spinner",children:e("path",{d:"M8.74228e-07 10C1.35705e-06 4.47715 4.47715 -1.35705e-06 10 -8.74228e-07C15.5228 -3.91405e-07 20 4.47715 20 10C20 15.5228 15.5228 20 10 20C4.47715 20 3.91405e-07 15.5228 8.74228e-07 10ZM18 10C18 5.58172 14.4183 2 10 2C5.58172 2 2 5.58172 2 10C2 14.4183 5.58172 18 10 18C14.4183 18 18 14.4183 18 10Z"})})})]})})});Te.displayName="Spinner";var Se={Button:"Button__0OJ",Button_loading:"Button_loading__LD-",Button__iconBefore:"Button__iconBefore__BUe",Button__content:"Button__content__vnq",Button__indicator:"Button__indicator__HuA",Button__iconAfter:"Button__iconAfter__VhZ",Button_disabled:"Button_disabled__jkY",Button_stretched:"Button_stretched__mzq",Button_activeMode_ripple:"Button_activeMode_ripple__E5Y",Button_activeMode_highlight:"Button_activeMode_highlight__K3j",Button_size_small:"Button_size_small__LLG",Button_mode_primary:"Button_mode_primary__lfx",Button_mode_secondary:"Button_mode_secondary__u7i",Button_mode_tertiary:"Button_mode_tertiary__1G9",Button_size_medium:"Button_size_medium__fI9",Button_size_large:"Button_size_large__S2-",Button_mode_link:"Button_mode_link__a3e",Button_appearance_themed:"Button_appearance_themed__z2B",Button_appearance_negative:"Button_appearance_negative__-Iy",Button_appearance_neutral:"Button_appearance_neutral__SAu","Button_appearance_neutral-themed":"Button_appearance_neutral-themed__H03","Button_appearance_contrast-static":"Button_appearance_contrast-static__DgE",Button__spinnerContainer:"Button__spinnerContainer__G4I",Button__ripple:"Button__ripple__jw0"},Ae={Counter:"Counter__0Oj",Counter_appearance_themed:"Counter_appearance_themed__anX",Counter_mode_filled:"Counter_mode_filled__9Uy",Counter_disabled:"Counter_disabled__Nhg",Counter_muted:"Counter_muted__3IJ",Counter_mode_inverse:"Counter_mode_inverse__IIJ",Counter_appearance_neutral:"Counter_appearance_neutral__SN9","Counter_appearance_neutral-themed":"Counter_appearance_neutral-themed__yq8","Counter_appearance_neutral-static":"Counter_appearance_neutral-static__UeR",Counter_appearance_negative:"Counter_appearance_negative__JZg"};const xe=r((a,t)=>{const{className:n,value:r,rounded:l,appearance:_="themed",mode:i="filled",disabled:o=!1,muted:s=!1,...c}=a,p=y(Ae.Counter,Ae[`Counter_appearance_${_}`],Ae[`Counter_mode_${i}`],{[Ae.Counter_disabled]:o,[Ae.Counter_muted]:s},n),u=d(()=>l?Intl.NumberFormat("en",{notation:"compact"}).format(r):r,[l,r]);return e("span",{ref:t,className:p,...c,role:"",children:u})});xe.displayName="Counter";const we=(e,a)=>{if("primary"===a)switch(e){case"themed":case"negative":case"neutral-themed":return"contrast-static";case"contrast-static":return"primary-static";case"neutral":return"contrast"}switch(e){case"themed":return"themed";case"negative":return"negative";case"neutral":return"primary";case"neutral-themed":return"neutral-themed";case"contrast-static":return"contrast-static"}},Le=(e,a)=>"negative"===e?{mode:"primary"===a?"inverse":"filled",appearance:"negative"}:"neutral"===e?{mode:"primary"===a?"inverse":"filled",appearance:"neutral"}:"neutral-themed"===e?{mode:"primary"===a?"inverse":"filled",appearance:"neutral-themed"}:"contrast-static"===e?{mode:"primary"===a?"filled":"inverse",appearance:"neutral-static"}:{mode:"primary"===a?"inverse":"filled",appearance:"themed"},Me=(e,a,t,n)=>s(e)&&e.type===xe?o(e,{...Le(a,t),disabled:n}):e,ze=r((a,n)=>{const{className:r,iconBefore:l,iconAfter:_,indicator:i,children:o,onClick:s,loading:c,disabled:p=!1,asChild:d=!1,innerClassNames:u,stretched:m=!1,size:h="medium",mode:v="primary",appearance:g="themed",...C}=a,f="button",B=d?D:f,N=le(),b=ae({asChild:d,children:o,disabled:p,rootElement:f,loading:c}),I=p||c,T="android"===N&&"link"!==v,S=y(Se.Button,Se[`Button_appearance_${g}`],Se[`Button_mode_${v}`],Se[`Button_size_${h}`],{[Se.Button_loading]:c,[Se.Button_disabled]:p,[Se.Button_stretched]:m,[Se.Button_activeMode_highlight]:!I&&!T,[Se.Button_activeMode_ripple]:!I&&T},r);return t(B,{ref:n,className:S,onClick:e=>{c||s?.(e)},...b,...C,children:[F(l)&&e("span",{className:y(Se.Button__iconBefore,u?.iconBefore),children:l}),c&&e("span",{className:y(Se.Button__spinnerContainer,u?.spinnerContainer),children:e(Te,{className:y(u?.spinner),size:(A=h,"small"===A?20:24),appearance:we(g,v)})}),e(H,{children:X({options:{asChild:d,children:o},content:a=>e(fe,{className:y(Se.Button__content,u?.content),children:a},"subtree-container")})}),F(i)&&e("span",{className:y(Se.Button__indicator,u?.indicator),children:Me(i,g,v,p)}),F(_)&&e("span",{className:y(Se.Button__iconAfter,u?.iconAfter),children:_}),T&&!I&&e(be,{className:Se.Button__ripple})]});var A});ze.displayName="Button";var De="Tappable__TDG",Ee="Tappable_interactive__fYU",Oe="Tappable_disabled__DQf",ke="Tappable_activeMode_ripple__YMg",He="Tappable_activeMode_highlight__W7X",je="Tappable__ripple__XiX";const Pe=r((a,n)=>{const{className:r,disabled:l,asChild:_,children:i,parentChildren:o,as:c="div",...p}=a,d=_?D:c,u=le(),m=ae({asChild:_,children:i,disabled:l,rootElement:c}),h=(({onClick:e,href:a,children:t,asChild:n,parentChildren:r=t})=>n?!(!n||!s(r))&&("href"in r.props||"onClick"in r.props):!!e||!!a)(a),v="android"===u&&h&&!l,g=y(De,{[Ee]:h,[Oe]:l,[He]:!v,[ke]:v},r);return t(d,{ref:n,className:g,...h?m:{},...p,children:[i,v&&e(be,{className:je})]})});Pe.displayName="Tappable";var $e={CellAction:"CellAction__vzN",CellAction_mode_primary:"CellAction_mode_primary__vZQ",CellAction_disabled:"CellAction_disabled__VZA",CellAction_mode_destructive:"CellAction_mode_destructive__ovY",CellAction_mode_custom:"CellAction_mode_custom__3T8",CellAction_height_compact:"CellAction_height_compact__ysc",CellAction_height_normal:"CellAction_height_normal__ELj",CellAction__before:"CellAction__before__oZm",CellAction__content:"CellAction__content__Uib",CellAction__chevron:"CellAction__chevron__6SI"};const Ue=r((a,n)=>{const{className:r,before:l,children:_,innerClassNames:i,asChild:o=!1,mode:s="primary",height:c="normal",showChevron:p=!1,...d}=a,u=y($e.CellAction,$e[`CellAction_mode_${s}`],$e[`CellAction_height_${c}`],{[$e.CellAction_disabled]:d.disabled},r);return t(Pe,{ref:n,className:u,asChild:o,as:"button",parentChildren:_,...d,children:[F(l)&&e("span",{className:y($e.CellAction__before,i?.before),children:l}),e(H,{children:X({options:{asChild:o,children:_},content:a=>e("span",{className:y($e.CellAction__content,i?.content),children:a},"subtree-container")})}),p&&e(f,{className:y($e.CellAction__chevron,i?.chevron)})]})});Ue.displayName="CellAction";var Re={CellHeader:"CellHeader__Epf",CellHeader_titleStyle_caps:"CellHeader_titleStyle_caps__nfB",CellHeader__content:"CellHeader__content__El-",CellHeader_titleStyle_normal:"CellHeader_titleStyle_normal__M-p",CellHeader_fullWidth:"CellHeader_fullWidth__h2Y",CellHeader__after:"CellHeader__after__RXN"};const Ge=r((a,n)=>{const{className:r,titleStyle:l="caps",fullWidth:_=!1,children:i,after:o,innerClassNames:s,...c}=a,p=y(Re.CellHeader,Re[`CellHeader_titleStyle_${l}`],{[Re.CellHeader_fullWidth]:_},r);return t("div",{ref:n,className:p,...c,children:[F(i)&&e("div",{className:y(Re.CellHeader__content,s?.content),children:i}),F(o)&&e("div",{className:y(Re.CellHeader__after,s?.after),children:o})]})});Ge.displayName="CellHeader";var We="ClearableInput__FRL",Ye="ClearableInput__button__GlG";const Xe={ios:e(function(e){return n.createElement("svg",B({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none"},e),C||(C=n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16M5.566 4.434a.8.8 0 1 0-1.132 1.132L6.87 8l-2.435 2.434a.8.8 0 0 0 1.132 1.132L8 9.13l2.434 2.435a.8.8 0 0 0 1.132-1.132L9.13 8l2.435-2.434a.8.8 0 0 0-1.132-1.132L8 6.87z",clipRule:"evenodd"})))},{}),android:e(function(e){return n.createElement("svg",S({xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none"},e),I||(I=n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M4.364 4.364a.9.9 0 0 1 1.272 0L10 8.727l4.364-4.363a.9.9 0 0 1 1.272 1.272L11.273 10l4.363 4.364a.9.9 0 0 1-1.272 1.272L10 11.273l-4.364 4.363a.9.9 0 0 1-1.272-1.272L8.727 10 4.364 5.636a.9.9 0 0 1 0-1.272",clipRule:"evenodd"})))},{})},Fe=r((a,n)=>{const{className:r,onChange:l,innerClassNames:_,withClearButton:i=!0,disabled:o,...s}=a,p=c(null),[d,m]=u(!s.value&&!s.defaultValue),h=le();return t("span",{className:y(We,r),children:[e("input",{ref:Z(p,n),className:y(_?.input),onChange:e=>{l?.(e),m(!e.target.value)},disabled:o,...s}),!d&&!o&&i&&e($,{className:y(Ye,_?.clearButton),onClick:()=>{p.current&&(e=>{const{el:a,value:t}=e,n=Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value")?.set;n?.call(a,t);const r=new Event("input",{bubbles:!0});a.dispatchEvent(r)})({el:p.current,value:""})},"aria-label":"Очистить",children:Xe[h]})]})});Fe.displayName="ClearableInput";var qe={CellInput:"CellInput__92-",CellInput_disabled:"CellInput_disabled__fZ7",CellInput__input:"CellInput__input__gQ3",CellInput_height_compact:"CellInput_height_compact__Mv2",CellInput_height_normal:"CellInput_height_normal__ovc",CellInput__before:"CellInput__before__Hkm",CellInput__body:"CellInput__body__Egp",CellInput__clearButton:"CellInput__clearButton__znK"};const Ze=r((a,n)=>{const{className:r,height:l="normal",before:_,innerClassNames:i,disabled:o,...s}=a,c=y(qe.CellInput,qe[`CellInput_height_${l}`],{[qe.CellInput_disabled]:o},r);return t("label",{className:c,children:[F(_)&&e(fe,{className:y(qe.CellInput__before,i?.before),maxLines:1,children:_}),e(Fe,{ref:n,className:y(qe.CellInput__body,i?.body),innerClassNames:{input:y(qe.CellInput__input,i?.input),clearButton:y(qe.CellInput__clearButton,i?.clearButton)},type:"text",disabled:o,...s})]})});Ze.displayName="CellInput";var Je={CellList:"CellList__1ou",CellList_filled:"CellList_filled__ikE",CellList__body:"CellList__body__ouS",CellList_mode_island:"CellList_mode_island__aCu"};const Qe=r((a,n)=>{const{className:r,header:l,children:_,mode:i="full-width",filled:o="island"===i,...s}=a,c=y(Je.CellList,Je[`CellList_mode_${i}`],{[Je.CellList_filled]:o},r);return t("div",{ref:n,className:c,...s,children:[F(l)&&e("div",{className:Je.CellList__header,children:l}),e("div",{className:Je.CellList__body,children:_})]})});Qe.displayName="CellList";var Ve={CellSimple:"CellSimple__n0z",CellSimple_disabled:"CellSimple_disabled__T-3",CellSimple__subtitle:"CellSimple__subtitle__oIF",CellSimple__overline:"CellSimple__overline__Ncr",CellSimple_height_compact:"CellSimple_height_compact__HUQ",CellSimple_height_normal:"CellSimple_height_normal__pxj",CellSimple__before:"CellSimple__before__5Q9",CellSimple__after:"CellSimple__after__2FK",CellSimple__content:"CellSimple__content__SOk",CellSimple__title:"CellSimple__title__aYs",CellSimple__chevron:"CellSimple__chevron__cSs"};const Ke=r((a,n)=>{const{className:r,title:l,subtitle:_,before:i,after:o,children:s,overline:c,showChevron:p=!1,asChild:d=!1,disabled:u=!1,innerClassNames:m,height:h="normal",as:v="div",...g}=a,C=y(Ve.CellSimple,Ve[`CellSimple_height_${h}`],{[Ve.CellSimple_disabled]:u},r);return t(Pe,{ref:n,className:C,asChild:d,as:v,parentChildren:s,...g,children:[F(i)&&e("div",{className:y(Ve.CellSimple__before,m?.before),children:i}),e(H,{children:X({options:{asChild:d,children:s},content:a=>t("div",{className:y(Ve.CellSimple__content,m?.content),children:[F(c)&&e("div",{className:y(Ve.CellSimple__overline,m?.overline),children:c}),F(l)&&e("div",{className:y(Ve.CellSimple__title,m?.title),children:l}),F(_)&&e("div",{className:y(Ve.CellSimple__subtitle,m?.subtitle),children:_}),a]},"subtree-container")})}),(F(o)||p)&&t("div",{className:y(Ve.CellSimple__after,m?.after),children:[o,p&&e(f,{className:y(Ve.CellSimple__chevron,m?.chevron)})]})]})});Ke.displayName="CellSimple";var ea="Container__MSr",aa="Container_fullWidth__Dor";const ta=r((a,t)=>{const{className:n,asChild:r,fullWidth:l,..._}=a,i=r?D:"div",o=y(ea,{[aa]:l},n);return e(i,{ref:t,className:o,..._})});ta.displayName="Container";var na={Dot:"Dot__dio",Dot_appearance_themed:"Dot_appearance_themed__AJa","Dot_appearance_contrast-pinned":"Dot_appearance_contrast-pinned__i8T","Dot_appearance_neutral-fade":"Dot_appearance_neutral-fade__paA","Dot_appearance_accent-red":"Dot_appearance_accent-red__GZs",Dot_appearance_inherit:"Dot_appearance_inherit__xh2"};const ra=r((a,t)=>{const{className:n,appearance:r="inherit",...l}=a,_=y(na.Dot,na[`Dot_appearance_${r}`],n);return e("span",{ref:t,className:_,...l})});ra.displayName="Dot";var la="Flex__8ia";const _a=r((a,t)=>{const{className:n,display:r="flex",direction:l="row",align:_="flex-start",justify:i="start",asChild:o,wrap:s,style:c,gap:p,gapX:d,gapY:u,...m}=a;return e(o?D:"div",{ref:t,className:y(la,n),style:{flexDirection:l,justifyContent:i,alignItems:_,flexWrap:s,...c,display:r,"--MaxUi-Flex_gapX":Y(d??p??0),"--MaxUi-Flex_gapY":Y(u??p??0)},...m})});_a.displayName="Flex";var ia="Grid__tMN";const oa=r((a,t)=>{const{className:n,style:r,display:l="grid",align:_="start",justify:i="start",gap:o,gapX:s,gapY:c,cols:p,rows:d,asChild:u,...m}=a;return e(u?D:"div",{ref:t,className:y(ia,n),style:{justifyContent:i,alignItems:_,...r,display:l,"--MaxUi-Grid_gapX":Y(s??o??0),"--MaxUi-Grid_gapY":Y(c??o??0),"--MaxUi-Grid_cols":p??0,"--MaxUi-Grid_rows":d??0},...m})});oa.displayName="Grid";const sa=(e,a)=>{if("primary"===a)switch(e){case"themed":case"negative":case"neutral-themed":return"contrast-static";case"neutral":return"contrast";case"contrast-static":return"primary-static"}switch(e){case"themed":return"themed";case"negative":return"negative";case"neutral":return"primary";case"neutral-themed":return"neutral-themed";case"contrast-static":return"contrast-static"}};var ca={IconButton:"IconButton__KCr",IconButton_loading:"IconButton_loading__RxW",IconButton__content:"IconButton__content__dCL",IconButton_disabled:"IconButton_disabled__SZj",IconButton_activeMode_ripple:"IconButton_activeMode_ripple__asi",IconButton_activeMode_highlight:"IconButton_activeMode_highlight__h15",IconButton_mode_primary:"IconButton_mode_primary__FqT",IconButton_size_small:"IconButton_size_small__e3f",IconButton_mode_secondary:"IconButton_mode_secondary__d4Q",IconButton_mode_tertiary:"IconButton_mode_tertiary__s90",IconButton_size_medium:"IconButton_size_medium__MQQ",IconButton_size_large:"IconButton_size_large__9oz",IconButton_appearance_themed:"IconButton_appearance_themed__jUC",IconButton_mode_link:"IconButton_mode_link__kNB",IconButton_appearance_negative:"IconButton_appearance_negative__qI2",IconButton_appearance_neutral:"IconButton_appearance_neutral__8iK","IconButton_appearance_neutral-themed":"IconButton_appearance_neutral-themed__xJM","IconButton_appearance_contrast-static":"IconButton_appearance_contrast-static__Fp4",IconButton__spinnerContainer:"IconButton__spinnerContainer__9--",IconButton__ripple:"IconButton__ripple__l8M"};const pa=r((a,n)=>{const{children:r,className:l,disabled:_,innerClassNames:i,loading:o,asChild:s=!1,size:c="medium",mode:p="primary",appearance:d="themed",...u}=a,m="button",h=s?D:m,v=le(),g=ae({asChild:s,children:r,disabled:_,rootElement:m,loading:o}),C=_||o,f="android"===v&&"link"!==p,B=y(ca.IconButton,ca[`IconButton_appearance_${d}`],ca[`IconButton_mode_${p}`],ca[`IconButton_size_${c}`],{[ca.IconButton_loading]:o,[ca.IconButton_disabled]:_,[ca.IconButton_activeMode_highlight]:!C&&!f,[ca.IconButton_activeMode_ripple]:!C&&f},l);return t(h,{ref:n,className:B,...g,...u,children:[o&&e("span",{className:y(ca.IconButton__spinnerContainer,i?.spinnerContainer),children:e(Te,{className:y(i?.spinner),size:(N=c,"small"===N?20:24),appearance:sa(d,p)})}),e(H,{children:X({options:{asChild:s,children:r},content:a=>e("span",{className:y(ca.IconButton__content,i?.content),children:a},"subtree-container")})}),f&&!C&&e(be,{className:ca.IconButton__ripple})]});var N});pa.displayName="IconButton";var da={Input:"Input__A3w",Input_disabled:"Input_disabled__mpt",Input_compact:"Input_compact__gBl",Input_mode_primary:"Input_mode_primary__2Mr",Input_mode_secondary:"Input_mode_secondary__c6D",Input__body:"Input__body__sVJ",Input__iconBefore:"Input__iconBefore__gxx",Input__iconAfter:"Input__iconAfter__jL1",Input__clearButton:"Input__clearButton__nKe",Input__input:"Input__input__gy5"};const ua=r((a,n)=>{const{className:r,iconBefore:l,iconAfter:_,innerClassNames:i,withClearButton:o,compact:s=!1,mode:c="primary",...p}=a,d=y(da.Input,da[`Input_mode_${c}`],{[da.Input_compact]:s,[da.Input_disabled]:p.disabled},r);return t("label",{className:d,children:[F(l)&&e("div",{className:y(da.Input__iconBefore,i?.iconBefore),children:l}),e(Fe,{ref:n,className:y(da.Input__body,i?.body),withClearButton:o,innerClassNames:{input:y(da.Input__input,i?.input),clearButton:y(da.Input__clearButton,i?.clearButton)},...p}),F(_)&&e("div",{className:y(da.Input__iconAfter,i?.iconAfter),children:_})]})});ua.displayName="Input";var ma={MaxUI:"MaxUI__g7Q",MaxUI_platform_ios:"MaxUI_platform_ios__gAV",MaxUI_platform_android:"MaxUI_platform_android__m3U",MaxUI_colorScheme_light:"MaxUI_colorScheme_light__Woo",MaxUI_colorScheme_dark:"MaxUI_colorScheme_dark__jFq"};const ha=l({platform:"ios",colorScheme:"light"}),ya=()=>_(ha),va=r((a,t)=>{const{children:n,className:r,colorScheme:l,platform:_=(q()?"ios":"android")}=a,i=_e({listenChanges:!l}),o=l??i,s=d(()=>({colorScheme:o,platform:_}),[o,_]),c=y(ma.MaxUI,ma[`MaxUI_colorScheme_${o}`],ma[`MaxUI_platform_${_}`],r);return e(ha.Provider,{value:s,children:e("div",{ref:t,className:c,children:n})})});va.displayName="MaxUI";var ga={Panel:"Panel__kpB",Panel_centeredX:"Panel_centeredX__jxE",Panel_centeredY:"Panel_centeredY__fp1",Panel_mode_primary:"Panel_mode_primary__hES",Panel_mode_secondary:"Panel_mode_secondary__yer"};const Ca=r((a,t)=>{const{className:n,mode:r="primary",centeredX:l,centeredY:_,...i}=a,o=y(ga.Panel,ga[`Panel_mode_${r}`],{[ga.Panel_centeredX]:l,[ga.Panel_centeredY]:_},n);return e("div",{ref:t,className:o,...i})});Ca.displayName="Panel";var fa={SearchInput:"SearchInput__cI6",SearchInput__body:"SearchInput__body__WUT",SearchInput__icon:"SearchInput__icon__dsa",SearchInput__clearButton:"SearchInput__clearButton__qsm",SearchInput__input:"SearchInput__input__xoX",SearchInput_platform_ios:"SearchInput_platform_ios__Sn7",SearchInput_platform_android:"SearchInput_platform_android__QG9"};const Ba=r((a,n)=>{const{className:r,placeholder:l="Поиск",innerClassNames:_,...i}=a,o=le(),s=y(fa.SearchInput,fa[`SearchInput_platform_${o}`],r);return t("label",{className:s,children:[e(T,{className:fa.SearchInput__icon}),e(Fe,{ref:n,className:y(fa.SearchInput__body,_?.body),innerClassNames:{input:y(fa.SearchInput__input,_?.input),clearButton:y(fa.SearchInput__clearButton,_?.clearButton)},type:"text",placeholder:l,...i})]})});Ba.displayName="SearchInput";var Na={Switch:"Switch__-vj",Switch__toggle:"Switch__toggle__WU2",Switch__thumb:"Switch__thumb__jlX",Switch__input:"Switch__input__EDr",Switch_platform_ios:"Switch_platform_ios__B-C",Switch_platform_android:"Switch_platform_android__72T"};const ba=r((a,n)=>{const{className:r,...l}=a,_=le(),i=y(Na.Switch,Na[`Switch_platform_${_}`],r);return t("span",{className:i,children:[e("input",{ref:n,type:"checkbox",role:"switch",className:Na.Switch__input,...l}),e("span",{className:Na.Switch__toggle,children:e("span",{className:Na.Switch__thumb})})]})});ba.displayName="Switch";var Ia={Textarea:"Textarea__Sy6",Textarea_disabled:"Textarea_disabled__uY3",Textarea_mode_primary:"Textarea_mode_primary__E7l",Textarea_mode_secondary:"Textarea_mode_secondary__BYw",Textarea__textarea:"Textarea__textarea__Ok-"};const Ta=r((a,t)=>{const{className:n,innerClassNames:r,mode:l="primary",..._}=a,i=y(Ia.Textarea,Ia[`Textarea_mode_${l}`],{[Ia.Textarea_disabled]:_.disabled},n);return e("div",{className:i,children:e("textarea",{ref:t,className:y(Ia.Textarea__textarea,r?.textarea),..._})})});Ta.displayName="Textarea";var Sa={ToolButton:"ToolButton__lde",ToolButton_appearance_default:"ToolButton_appearance_default__gqg",ToolButton_disabled:"ToolButton_disabled__gq5",ToolButton_appearance_secondary:"ToolButton_appearance_secondary__ghs",ToolButton_withLabel:"ToolButton_withLabel__FsL",ToolButton__icon:"ToolButton__icon__ds5",ToolButton__label:"ToolButton__label__GCi"};const Aa=r((a,n)=>{const{className:r,icon:l,children:_,asChild:i,innerClassNames:o,appearance:s="default",disabled:c=!1,...p}=a,d=y(Sa.ToolButton,Sa[`ToolButton_appearance_${s}`],{[Sa.ToolButton_withLabel]:F(_),[Sa.ToolButton_disabled]:c},r);return t(Pe,{ref:n,className:d,as:"button",parentChildren:_,asChild:i,disabled:c,...p,children:[F(l)&&e("span",{className:y(Sa.ToolButton__icon,o?.icon),children:l}),F(_)&&e(H,{children:X({options:{asChild:i,children:_},content:a=>e(fe,{maxLines:1,className:y(Sa.ToolButton__label,o?.label),children:a},"subtree-container")})})]})});Aa.displayName="ToolButton";var xa={TypographyAction_variant_large:"TypographyAction_variant_large__l5j",TypographyAction_variant_medium:"TypographyAction_variant_medium__9H-",TypographyAction_variant_small:"TypographyAction_variant_small__-LL",TypographyAction_variant_label:"TypographyAction_variant_label__vhv"};const wa=r((a,t)=>{const{className:n,variant:r="large",asChild:l,..._}=a,i=l?D:"span",o=y(xa.TypographyAction,xa[`TypographyAction_variant_${r}`],n);return e(i,{ref:t,className:o,..._})});wa.displayName="TypographyAction";var La={TypographyBody_variant_large:"TypographyBody_variant_large__vlS",TypographyBody_variant_medium:"TypographyBody_variant_medium__9v3",TypographyBody_variant_small:"TypographyBody_variant_small__beJ","TypographyBody_variant_small-strong":"TypographyBody_variant_small-strong__mWy","TypographyBody_variant_small-caps":"TypographyBody_variant_small-caps__18r"};const Ma=r((a,t)=>{const{className:n,variant:r="large-strong",asChild:l,..._}=a,i=l?D:"span",o=y(La.TypographyBody,La[`TypographyBody_variant_${r}`],n);return e(i,{ref:t,className:o,..._})});Ma.displayName="TypographyBody";var za="TypographyDisplay__6MW";const Da=r((a,t)=>{const{className:n,asChild:r,...l}=a;return e(r?D:"span",{ref:t,className:y(za,n),...l})});Da.displayName="TypographyDisplay";var Ea={"TypographyHeadline_variant_large-strong":"TypographyHeadline_variant_large-strong__mwz",TypographyHeadline_variant_medium:"TypographyHeadline_variant_medium__s92","TypographyHeadline_variant_medium-strong":"TypographyHeadline_variant_medium-strong__dFT",TypographyHeadline_variant_small:"TypographyHeadline_variant_small__8Ei","TypographyHeadline_variant_small-strong":"TypographyHeadline_variant_small-strong__kUR"};const Oa=r((a,t)=>{const{className:n,variant:r="large-strong",asChild:l,..._}=a,i=l?D:"span",o=y(Ea.TypographyHeadline,Ea[`TypographyHeadline_variant_${r}`],n);return e(i,{ref:t,className:o,..._})});Oa.displayName="TypographyHeadline";var ka={TypographyLabel_variant_large:"TypographyLabel_variant_large__6vr","TypographyLabel_variant_large-strong":"TypographyLabel_variant_large-strong__uCg","TypographyLabel_variant_large-caps":"TypographyLabel_variant_large-caps__b1i",TypographyLabel_variant_medium:"TypographyLabel_variant_medium__Xo5","TypographyLabel_variant_medium-strong":"TypographyLabel_variant_medium-strong__Bk8","TypographyLabel_variant_small-strong":"TypographyLabel_variant_small-strong__qCw","TypographyLabel_variant_small-caps":"TypographyLabel_variant_small-caps__beb"};const Ha=r((a,t)=>{const{className:n,variant:r="large",asChild:l,..._}=a,i=l?D:"span",o=y(ka.TypographyLabel,ka[`TypographyLabel_variant_${r}`],n);return e(i,{ref:t,className:o,..._})});Ha.displayName="TypographyLabel";var ja={"TypographyTitle_variant_large-strong":"TypographyTitle_variant_large-strong__9PL","TypographyTitle_variant_medium-strong":"TypographyTitle_variant_medium-strong__th0",TypographyTitle_variant_small:"TypographyTitle_variant_small__zJR","TypographyTitle_variant_small-strong":"TypographyTitle_variant_small-strong__BrE"};const Pa=r((a,t)=>{const{className:n,variant:r="large-strong",asChild:l,..._}=a,i=l?D:"span",o=y(ja.TypographyTitle,ja[`TypographyTitle_variant_${r}`],n);return e(i,{ref:t,className:o,..._})});Pa.displayName="TypographyTitle";const $a=Object.assign({},{Display:Da,Headline:Oa,Title:Pa,Body:Ma,Label:Ha,Action:wa});export{ye as Avatar,ze as Button,Ue as CellAction,Ge as CellHeader,Ze as CellInput,Qe as CellList,Ke as CellSimple,ta as Container,xe as Counter,ra as Dot,fe as EllipsisText,_a as Flex,oa as Grid,pa as IconButton,ua as Input,va as MaxUI,ha as MaxUIContext,Ca as Panel,be as Ripple,Ba as SearchInput,D as Slot,H as Slottable,Te as Spinner,$ as SvgButton,ba as Switch,Pe as Tappable,Ta as Textarea,Aa as ToolButton,$a as Typography,X as getSubtree,F as hasReactNode,Z as mergeRefs,ya as useAppearance,ae as useButtonLikeProps,te as useCallbackRef,ne as useColorScheme,re as useImageLoadingStatus,le as usePlatform,_e as useSystemColorScheme};
|
|
1
|
+
import{jsx as e,jsxs as t}from"react/jsx-runtime";import*as a from"react";import{Children as n,cloneElement as r,forwardRef as l,useRef as i,useState as o,useEffect as _,isValidElement as s,useMemo as c,useLayoutEffect as p,createContext as d,useContext as u}from"react";function m(e){var t,a,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(a=m(e[t]))&&(n&&(n+=" "),n+=a)}else for(a in e)e[a]&&(n&&(n+=" "),n+=a);return n}function h(){for(var e,t,a=0,n="",r=arguments.length;a<r;a++)(e=arguments[a])&&(t=m(e))&&(n&&(n+=" "),n+=t);return n}var v;function y(){return y=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)({}).hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},y.apply(null,arguments)}var g,f=function(e){return a.createElement("svg",y({xmlns:"http://www.w3.org/2000/svg",width:12,height:16,fill:"none"},e),v||(v=a.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M2.934 3.434a.8.8 0 0 1 1.132 0l4 4a.8.8 0 0 1 0 1.132l-4 4a.8.8 0 0 1-1.132-1.132L6.37 8 2.934 4.566a.8.8 0 0 1 0-1.132",clipRule:"evenodd"})))};function C(){return C=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)({}).hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},C.apply(null,arguments)}var b,B=function(e){return a.createElement("svg",C({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none"},e),g||(g=a.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16M5.566 4.434a.8.8 0 1 0-1.132 1.132L6.87 8l-2.435 2.434a.8.8 0 0 0 1.132 1.132L8 9.13l2.434 2.435a.8.8 0 0 0 1.132-1.132L9.13 8l2.435-2.434a.8.8 0 0 0-1.132-1.132L8 6.87z",clipRule:"evenodd"})))};function N(){return N=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)({}).hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},N.apply(null,arguments)}var T,I=function(e){return a.createElement("svg",N({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none"},e),b||(b=a.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M7.242 2.115c-2.605 0-4.677 2.044-4.677 4.517s2.072 4.517 4.677 4.517 4.677-2.044 4.677-4.517-2.072-4.517-4.677-4.517M1 6.632C1 3.252 3.817.55 7.242.55s6.242 2.701 6.242 6.082a5.97 5.97 0 0 1-1.692 4.165l3 3.247a.783.783 0 1 1-1.15 1.062l-3.074-3.326a6.34 6.34 0 0 1-3.326.935C3.817 12.715 1 10.013 1 6.632",clipRule:"evenodd"})))};function S(){return S=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)({}).hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},S.apply(null,arguments)}var A,x,w=function(e){return a.createElement("svg",S({xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none"},e),T||(T=a.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M4.364 4.364a.9.9 0 0 1 1.272 0L10 8.727l4.364-4.363a.9.9 0 0 1 1.272 1.272L11.273 10l4.363 4.364a.9.9 0 0 1-1.272 1.272L10 11.273l-4.364 4.363a.9.9 0 0 1-1.272-1.272L8.727 10 4.364 5.636a.9.9 0 0 1 0-1.272",clipRule:"evenodd"})))};function L(){return L=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)({}).hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},L.apply(null,arguments)}var z,E=function(e){return a.createElement("svg",L({xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none"},e),A||(A=a.createElement("circle",{cx:10,cy:10,r:10,fill:"currentColor"})),x||(x=a.createElement("path",{fill:"#fff",fillRule:"evenodd",d:"M5.364 5.364a.9.9 0 0 1 1.272 0L10 8.727l3.364-3.363a.9.9 0 0 1 1.272 1.272L11.274 10l3.364 3.364a.9.9 0 1 1-1.273 1.272L10 11.273l-3.364 3.363a.9.9 0 0 1-1.272-1.272L8.727 10 5.364 6.636a.9.9 0 0 1 0-1.272",clipRule:"evenodd"})))};function O(){return O=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)({}).hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},O.apply(null,arguments)}var M=function(e){return a.createElement("svg",O({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},e),z||(z=a.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M6.268 6.268a.915.915 0 0 1 1.294 0L12 10.706l4.438-4.438a.915.915 0 1 1 1.294 1.294L13.294 12l4.438 4.438a.915.915 0 1 1-1.294 1.294L12 13.294l-4.438 4.438a.915.915 0 1 1-1.294-1.294L10.706 12 6.268 7.562a.915.915 0 0 1 0-1.294",clipRule:"evenodd"})))};const j=e=>"string"==typeof e?e:`${e}px`,k=e=>{const{options:t,content:a}=e,{asChild:l,children:i}=t;if(!l)return"function"==typeof a?a(i):a;const o=n.only(i);return r(o,{children:"function"==typeof a?a(o.props.children):a})},H=e=>void 0!==e&&!1!==e&&null!==e&&""!==e,P=()=>!!navigator.userAgent.match(/(iPad|iPhone|iPod)/g),$=(...e)=>{const t=e.filter(Boolean);if(t.length<=1){return t[0]??null}return e=>{for(const a of t)"function"==typeof a?a(e):a&&(a.current=e)}},D=()=>{};var U=Object.defineProperty,R=(e,t)=>U(e,"name",{value:t,configurable:!0});function Y(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function F(...e){return t=>{let a=!1;const n=e.map(e=>{const n=Y(e,t);return a||"function"!=typeof n||(a=!0),n});if(a)return()=>{for(let t=0;t<n.length;t++){const a=n[t];"function"==typeof a?a():Y(e[t],null)}}}}function W(...e){return a.useCallback(F(...e),e)}R(Y,"setRef"),R(F,"composeRefs"),R(W,"useComposedRefs");var G=Object.defineProperty,X=(e,t)=>G(e,"name",{value:t,configurable:!0});function Z(e){const t=a.forwardRef((t,n)=>{let{children:r,...l}=t,i=null,o=!1;const _=[];re(r)&&"function"==typeof _e&&(r=_e(r._payload)),a.Children.forEach(r,e=>{if(ae(e)){o=!0;const t=e;let a="child"in t.props?t.props.child:t.props.children;re(a)&&"function"==typeof _e&&(a=_e(a._payload)),i=K(t,a),_.push(i?.props?.children)}else _.push(e)}),i?i=a.cloneElement(i,void 0,_):!o&&1===a.Children.count(r)&&a.isValidElement(r)&&(i=r);const s=i?te(i):void 0,c=W(n,s);if(!i){if(r||0===r)throw new Error(o?oe(e):ie(e));return r}const p=ee(l,i.props??{});return i.type!==a.Fragment&&(p.ref=n?c:s),a.cloneElement(i,p)});return t.displayName=`${e}.Slot`,t}X(Z,"createSlot");var q=Z("Slot"),V=Symbol.for("radix.slottable");function J(e){const t=X(e=>"child"in e?e.children(e.child):e.children,"Slottable");return t.displayName=`${e}.Slottable`,t.__radixId=V,t}X(J,"createSlottable");var Q=J("Slottable"),K=X((e,t)=>{if("child"in e.props){const t=e.props.child;return a.isValidElement(t)?a.cloneElement(t,void 0,e.props.children(t.props.children)):null}return a.isValidElement(t)?t:null},"getSlottableElementFromSlottable");function ee(e,t){const a={...t};for(const n in t){const r=e[n],l=t[n];/^on[A-Z]/.test(n)?r&&l?a[n]=(...e)=>{const t=l(...e);return r(...e),t}:r&&(a[n]=r):"style"===n?a[n]={...r,...l}:"className"===n&&(a[n]=[r,l].filter(Boolean).join(" "))}return{...e,...a}}function te(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,a=t&&"isReactWarning"in t&&t.isReactWarning;return a?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,a=t&&"isReactWarning"in t&&t.isReactWarning,a?e.props.ref:e.props.ref||e.ref)}function ae(e){return a.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===V}X(ee,"mergeProps"),X(te,"getElementRef"),X(ae,"isSlottable");var ne=Symbol.for("react.lazy");function re(e){return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===ne&&"_payload"in e&&le(e._payload)}function le(e){return"object"==typeof e&&null!==e&&"then"in e}X(re,"isLazyComponent"),X(le,"isPromiseLike");var ie=X(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),oe=X(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),_e=a[" use ".trim().toString()],se="SvgButton__-Jm";const ce=l((t,a)=>{const{className:n,asChild:r,...l}=t;return e(r?q:"button",{ref:a,className:h(se,n),...l})});ce.displayName="SvgButton";var pe="ClearableInput__4PN",de="ClearableInput__button__iUo",ue="ClearableInput__count__K7Z";const me=l((a,n)=>{const{className:r,onChange:l,innerClassNames:_,withClearButton:s=!0,disabled:c,count:p,...d}=a,u=i(null),[m,v]=o(!d.value&&!d.defaultValue);return t("span",{className:h(pe,r),children:[e("input",{ref:$(u,n),className:h(_?.input),onChange:e=>{l?.(e),v(!e.target.value)},disabled:c,...d}),!m&&!c&&!!p&&e("div",{className:h(ue,_?.count),children:p}),!m&&!c&&s&&e(ce,{className:h(de,_?.clearButton),onClick:()=>{u.current&&(e=>{const{el:t,value:a}=e,n=Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value")?.set;n?.call(t,a);const r=new Event("input",{bubbles:!0});t.dispatchEvent(r)})({el:u.current,value:""})},"aria-label":"Очистить",children:e(w,{})})]})});me.displayName="ClearableInput";var he="Container__yZR",ve="Container_fullWidth__2tY";l((t,a)=>{const{className:n,asChild:r,fullWidth:l,...i}=t,o=r?q:"div",_=h(he,{[ve]:l},n);return e(o,{ref:a,className:_,...i})}).displayName="Container";var ye="EllipsisText__DEC",ge="EllipsisText_multiline__y4t",fe="EllipsisText_singleLine__Arf";const Ce=l((t,a)=>{const{className:n,maxLines:r=1,style:l,asChild:i,...o}=t,_=i?q:"span",s=h(ye,{[ge]:r>1,[fe]:1===r},n);return e(_,{ref:a,className:s,style:{"--MaxUi-EllipsisText_linesCount":r,...l},...o})});Ce.displayName="EllipsisText";var be="Flex__pih";l((t,a)=>{const{className:n,display:r="flex",direction:l="row",align:i="flex-start",justify:o="start",asChild:_,wrap:s,style:c,gap:p,gapX:d,gapY:u,...m}=t;return e(_?q:"div",{ref:a,className:h(be,n),style:{flexDirection:l,justifyContent:o,alignItems:i,flexWrap:s,...c,display:r,"--MaxUi-Flex_gapX":j(d??p??0),"--MaxUi-Flex_gapY":j(u??p??0)},...m})}).displayName="Flex";var Be="Grid__lFk";l((t,a)=>{const{className:n,style:r,display:l="grid",align:i="start",justify:o="start",gap:_,gapX:s,gapY:c,cols:p,rows:d,asChild:u,...m}=t;return e(u?q:"div",{ref:a,className:h(Be,n),style:{justifyContent:o,alignItems:i,...r,display:l,"--MaxUi-Grid_gapX":j(s??_??0),"--MaxUi-Grid_gapY":j(c??_??0),"--MaxUi-Grid_cols":p??0,"--MaxUi-Grid_rows":d??0},...m})}).displayName="Grid";var Ne={Panel:"Panel__XH0",Panel_centeredX:"Panel_centeredX__DG7",Panel_centeredY:"Panel_centeredY__f-k",Panel_mode_primary:"Panel_mode_primary__fNs",Panel_mode_secondary:"Panel_mode_secondary__Tez"};l((t,a)=>{const{className:n,mode:r="primary",centeredX:l,centeredY:i,...o}=t,_=h(Ne.Panel,Ne[`Panel_mode_${r}`],{[Ne.Panel_centeredX]:l,[Ne.Panel_centeredY]:i},n);return e("div",{ref:a,className:_,...o})}).displayName="Panel";var Te="Ripple__dJ9",Ie="Ripple_active__uv5";const Se=l((t,a)=>{const{className:n,...r}=t,l=i(null),o=i(null),s=e=>{const t=e.currentTarget.getBoundingClientRect();((e,t)=>{null!==o.current&&(o.current.classList.remove(Ie),o.current.style.top=t+"px",o.current.style.left=e+"px",o.current.classList.add(Ie))})(e.clientX-(t.left??0),e.clientY-(t.top??0))};return _(()=>{if(o.current)return l.current=o.current.parentElement,null!==l.current&&l.current.addEventListener("pointerdown",s),()=>{null!==l.current&&l.current?.removeEventListener("pointerdown",s)}},[]),e("span",{ref:$(a,o),role:"presentation","aria-hidden":!0,className:h(Te,n),onAnimationEnd:()=>{null!==o.current&&o.current.classList.remove(Ie)},...r})});Se.displayName="Ripple";const Ae=e=>{const{asChild:t,children:a,rootElement:n,disabled:r,loading:l}=e;if(!t&&"button"===n){return{disabled:r,...l?{"aria-disabled":!0}:{}}}if(t&&s(a)){const{type:e}=a;if("a"===e){return{"aria-disabled":r??l,...r?{onClick:e=>{e.preventDefault()},tabIndex:-1}:{}}}}return{role:"button",tabIndex:r?-1:0,"aria-disabled":r??l,...r?{onClick:void 0}:{}}},xe=e=>{const t=i(e);return _(()=>{t.current=e}),c(()=>(...e)=>t.current?.(...e),[])},we=()=>{const{colorScheme:e}=Ot();return e},Le=e=>{const{src:t,referrerPolicy:a}=e,[n,r]=o("idle");return p(()=>{if(!t)return void r("error");let e=!0;const n=new window.Image,l=t=>()=>{e&&r(t)};return r("loading"),n.onload=l("loaded"),n.onerror=l("error"),n.src=t,a&&(n.referrerPolicy=a),()=>{e=!1}},[t,a]),n},ze=()=>{const{platform:e}=Ot();return e},Ee=(e={})=>{const{listenChanges:t}=e,[a,n]=o(window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),r=e=>{n(()=>e.matches?"dark":"light")};return _(()=>{const e=window.matchMedia("(prefers-color-scheme: dark)");return n(()=>e.matches?"dark":"light"),t?(e.addEventListener("change",r),()=>{e.removeEventListener("change",r)}):D},[t]),a};var Oe="Tappable__O--",Me="Tappable_interactive__4Uv",je="Tappable_disabled__0z8",ke="Tappable_activeMode_ripple__3k-",He="Tappable_activeMode_highlight__Hs-",Pe="Tappable__ripple__Egr";const $e=l((a,n)=>{const{className:r,disabled:l,asChild:i,children:o,as:_="div",...c}=a,p=i?q:_,d=ze(),u=Ae({asChild:i,children:o,disabled:l,rootElement:_}),m=(({onClick:e,href:t,children:a,asChild:n,parentChildren:r=a})=>n?!(!n||!s(r))&&("href"in r.props||"onClick"in r.props):!!e||!!t)(a),v="android"===d&&m&&!l,y=h(Oe,{[Me]:m,[je]:l,[He]:!v,[ke]:v},r);return t(p,{ref:n,className:y,...m?u:{},...c,children:[o,v&&e(Se,{className:Pe})]})});$e.displayName="Tappable";const De=d({size:48}),Ue=()=>u(De);var Re={};const Ye=l((t,a)=>{const{className:n,onClick:r,...l}=t,{size:i}=Ue(),o=(e=>e<40?12:e<54?16:e<72?20:24)(i);return e(ce,{ref:a,className:h(Re.AvatarCloseButton,n),onClick:e=>{e.preventDefault(),r?.(e)},...l,children:e(E,{width:o,height:o})})});Ye.displayName="AvatarCloseButton";var Fe={AvatarContainer:"AvatarContainer__7c-",AvatarContainer_form_circle:"AvatarContainer_form_circle__J44",AvatarContainer__content:"AvatarContainer__content__h8v",AvatarContainer_form_squircle:"AvatarContainer_form_squircle__1i0",AvatarContainer__overlay:"AvatarContainer__overlay__qul",AvatarContainer__rightBottomCorner:"AvatarContainer__rightBottomCorner__kZG",AvatarContainer__rightTopCorner:"AvatarContainer__rightTopCorner__y4y"};const We=l((a,n)=>{const{className:r,style:l,children:i,overlay:o,rightTopCorner:_,rightBottomCorner:s,innerClassNames:c,size:p=48,asChild:d,form:u="circle",...m}=a,v=d?q:"div",y=h(Fe.AvatarContainer,Fe[`AvatarContainer_form_${u}`],r);return e(De.Provider,{value:{size:p},children:t(v,{ref:n,className:y,style:{"--MaxUi-AvatarContainer_size":`${p}px`,...l},...m,children:[e(Q,{children:k({options:{asChild:a.asChild,children:i},content:a=>t("span",{className:h(Fe.AvatarContainer__content,c?.content),children:[a,H(o)&&e("span",{className:h(Fe.AvatarContainer__overlay,c?.overlay),children:o})]},"subtree-container")})}),H(s)&&e("span",{className:h(Fe.AvatarContainer__rightBottomCorner,c?.rightBottomCorner),children:s}),H(_)&&e("span",{className:h(Fe.AvatarContainer__rightTopCorner,c?.rightTopCorner),children:_})]})})});We.displayName="AvatarContainer";var Ge="AvatarIcon__ZUI";const Xe=l((t,a)=>{const{className:n,...r}=t;return e("span",{ref:a,className:h(Ge,n),...r})});Xe.displayName="AvatarIcon";var Ze={AvatarText:"AvatarText__DIj",AvatarText_gradient_red:"AvatarText_gradient_red__bnV",AvatarText_gradient_orange:"AvatarText_gradient_orange__Ngq",AvatarText_gradient_green:"AvatarText_gradient_green__n7Z",AvatarText_gradient_blue:"AvatarText_gradient_blue__gLu",AvatarText_gradient_purple:"AvatarText_gradient_purple__UsS",AvatarText__in:"AvatarText__in__cDg"};const qe=e=>e<20?{fontSize:6}:e<28?{fontSize:8}:e<32?{fontSize:10}:e<36?{fontSize:11}:e<40?{fontSize:13}:e<48?{fontSize:14}:e<54?{fontSize:17}:e<64?{fontSize:18}:e<72?{fontSize:21}:e<88?{fontSize:26}:{fontSize:30},Ve=l((t,a)=>{const{className:n,children:r,gradient:l="red",...i}=t,{size:o}=Ue(),_=h(Ze.AvatarText,{[Ze[`AvatarText_gradient_${l}`]]:"custom"!==l},n);return e("span",{ref:a,className:_,...i,children:e("span",{className:Ze.AvatarText__in,style:qe(o),children:r})})});Ve.displayName="AvatarText";var Je="AvatarImage__H7-";const Qe=l((t,a)=>{const{className:n,fallback:r,fallbackGradient:l="red",...i}=t,[_,s]=o("idle"),c=Le({src:i.src??i.srcSet,referrerPolicy:i.referrerPolicy}),d=xe(e=>{s(e)});return p(()=>{"idle"!==c&&d(c)},[c,d]),"error"===_?e(Ve,{gradient:l,children:r}):e("img",{ref:a,className:h(Je,n),...i})});Qe.displayName="AvatarImage";var Ke={AvatarOnlineDot:"AvatarOnlineDot__-GT",AvatarOnlineDot_size_xs:"AvatarOnlineDot_size_xs__2SY",AvatarOnlineDot__dot:"AvatarOnlineDot__dot__8dL",AvatarOnlineDot_size_s:"AvatarOnlineDot_size_s__T1u",AvatarOnlineDot_size_m:"AvatarOnlineDot_size_m__ris",AvatarOnlineDot_size_l:"AvatarOnlineDot_size_l__zo4"};const et=l((t,a)=>{const{className:n,...r}=t,{size:l}=Ue(),i=(e=>e<40?"xs":e<54?"s":e<72?"m":"l")(l),o=h(Ke.AvatarOnlineDot,Ke[`AvatarOnlineDot_size_${i}`],n);return l<16||l>80?null:e("span",{ref:a,className:o,...r,children:e("span",{className:Ke.AvatarOnlineDot__dot})})});et.displayName="AvatarOnlineDot";var tt="AvatarOverlay__-nV";const at=l((t,a)=>{const{className:n,onClick:r,...l}=t;return e("span",{ref:a,className:h(tt,n),onClick:e=>{e.preventDefault(),r?.(e)},...l})});at.displayName="AvatarOverlay";const nt=Object.assign({},{Container:We,Image:Qe,Overlay:at,Icon:Xe,Text:Ve,OnlineDot:et,CloseButton:Ye});var rt={Spinner:"Spinner__piy",Spinner_appearance_primary:"Spinner_appearance_primary__mxz",Spinner_appearance_themed:"Spinner_appearance_themed__-9S","Spinner_appearance_primary-static":"Spinner_appearance_primary-static__JxW",Spinner_appearance_contrast:"Spinner_appearance_contrast__Mv6","Spinner_appearance_contrast-static":"Spinner_appearance_contrast-static__rM7",Spinner_appearance_negative:"Spinner_appearance_negative__eMf","Spinner_appearance_neutral-themed":"Spinner_appearance_neutral-themed__D8F",androidSpinner:"androidSpinner__w-L",rotation:"rotation__CUP",iosSpinner:"iosSpinner__3q2",bar:"bar__aHj",fade:"fade__2ZD"};const lt=({size:t})=>e("div",{className:rt.androidSpinner,style:{width:t,height:t}}),it=({size:t})=>e("div",{className:rt.iosSpinner,style:{width:t,height:t},children:Array.from({length:8},(t,a)=>e("div",{className:rt.bar},a))}),ot=l((t,a)=>{const{className:n,size:r=20,appearance:l="primary",...i}=t,o=ze(),_=h(rt.Spinner,rt[`Spinner_appearance_${l}`],n);return e("span",{ref:a,role:"status",className:_,...i,children:e("ios"===o?it:lt,{size:r})})});ot.displayName="Spinner";var _t={Button:"Button__0OJ",Button_loading:"Button_loading__LD-",Button__iconBefore:"Button__iconBefore__BUe",Button__content:"Button__content__vnq",Button__indicator:"Button__indicator__HuA",Button__iconAfter:"Button__iconAfter__VhZ",Button_disabled:"Button_disabled__jkY",Button_stretched:"Button_stretched__mzq",Button_activeMode_ripple:"Button_activeMode_ripple__E5Y",Button_activeMode_highlight:"Button_activeMode_highlight__K3j",Button_size_xsmall:"Button_size_xsmall__QCm",Button_size_small:"Button_size_small__LLG",Button_size_medium:"Button_size_medium__fI9",Button_size_large:"Button_size_large__S2-",Button_variant_primary:"Button_variant_primary__yLL",Button_variant_secondary:"Button_variant_secondary__DR6",Button_variant_ghost:"Button_variant_ghost__EkG","Button_variant_primary-contrast":"Button_variant_primary-contrast__b63","Button_variant_secondary-contrast":"Button_variant_secondary-contrast__cey",Button_variant_overlay:"Button_variant_overlay__keO",Button_variant_destructive:"Button_variant_destructive__2Ug",Button__spinnerContainer:"Button__spinnerContainer__G4I",Button__ripple:"Button__ripple__jw0"},st={Counter:"Counter__0Oj",Counter_variant_primary:"Counter_variant_primary__8Mz","Counter_variant_primary-contrast":"Counter_variant_primary-contrast__yFz",Counter_variant_attention:"Counter_variant_attention__IWH","Counter_variant_attention-contrast":"Counter_variant_attention-contrast__LHu",Counter_variant_promo:"Counter_variant_promo__9kD",Counter_variant_static:"Counter_variant_static__d8Y","Counter_variant_static-contrast":"Counter_variant_static-contrast__bAq",Counter_variant_default:"Counter_variant_default__weZ",Counter_variant_mute:"Counter_variant_mute__2SU",Counter_variant_menu:"Counter_variant_menu__qf0"};const ct=l((t,a)=>{const{className:n,value:r,rounded:l,variant:i="primary",...o}=t,_=h(st.Counter,st[`Counter_variant_${i}`],n),s=c(()=>l?Intl.NumberFormat("en",{notation:"compact"}).format(r):r,[l,r]);return e("span",{ref:a,className:_,...o,role:"",children:s})});ct.displayName="Counter";const pt=e=>{switch(e){case"xsmall":return 16;case"small":return 20;default:return 24}},dt=e=>{switch(e){case"primary":case"destructive":case"secondary-contrast":case"overlay":return"contrast-static";case"secondary":case"ghost":return"themed";case"primary-contrast":return"primary-static"}},ut=e=>{switch(e){case"primary":return{variant:"primary-contrast"};case"secondary":case"ghost":case"primary-contrast":case"secondary-contrast":return{variant:"static"};case"overlay":return{variant:"static-contrast"};case"destructive":return{variant:"attention-contrast"}}},mt=l((a,n)=>{const{className:l,iconBefore:i,iconAfter:o,indicator:_,children:c,onClick:p,loading:d,disabled:u=!1,asChild:m=!1,innerClassNames:v,stretched:y=!1,size:g="medium",variant:f="primary",...C}=a,b="button",B=m?q:b,N=ze(),T=Ae({asChild:m,children:c,disabled:u,rootElement:b,loading:d}),I=u||d,S="android"===N,A=h(_t.Button,_t[`Button_variant_${f}`],_t[`Button_size_${g}`],{[_t.Button_loading]:d,[_t.Button_disabled]:u,[_t.Button_stretched]:y,[_t.Button_activeMode_highlight]:!I&&!S,[_t.Button_activeMode_ripple]:!I&&S},l);return t(B,{ref:n,className:A,onClick:e=>{d||p?.(e)},...T,...C,children:[H(i)&&e("span",{className:h(_t.Button__iconBefore,v?.iconBefore),children:i}),d&&e("span",{className:h(_t.Button__spinnerContainer,v?.spinnerContainer),children:e(ot,{className:h(v?.spinner),size:pt(g),appearance:dt(f)})}),e(Q,{children:k({options:{asChild:m,children:c},content:t=>e(Ce,{className:h(_t.Button__content,v?.content),children:t},"subtree-container")})}),H(_)&&e("span",{className:h(_t.Button__indicator,v?.indicator),children:(x=_,w=f,s(x)&&x.type===ct?r(x,{...ut(w)}):x)}),H(o)&&e("span",{className:h(_t.Button__iconAfter,v?.iconAfter),children:o}),S&&!I&&e(Se,{className:_t.Button__ripple})]});var x,w});mt.displayName="Button";var ht={CellAction:"CellAction__vzN",CellAction_mode_primary:"CellAction_mode_primary__vZQ",CellAction_disabled:"CellAction_disabled__VZA",CellAction_mode_destructive:"CellAction_mode_destructive__ovY",CellAction_mode_custom:"CellAction_mode_custom__3T8",CellAction_height_compact:"CellAction_height_compact__ysc",CellAction_height_normal:"CellAction_height_normal__ELj",CellAction__before:"CellAction__before__oZm",CellAction__content:"CellAction__content__Uib",CellAction__chevron:"CellAction__chevron__6SI"};const vt=l((a,n)=>{const{className:r,before:l,children:i,innerClassNames:o,asChild:_=!1,mode:s="primary",height:c="normal",showChevron:p=!1,...d}=a,u=h(ht.CellAction,ht[`CellAction_mode_${s}`],ht[`CellAction_height_${c}`],{[ht.CellAction_disabled]:d.disabled},r);return t($e,{ref:n,className:u,asChild:_,as:"button",parentChildren:i,...d,children:[H(l)&&e("span",{className:h(ht.CellAction__before,o?.before),children:l}),e(Q,{children:k({options:{asChild:_,children:i},content:t=>e("span",{className:h(ht.CellAction__content,o?.content),children:t},"subtree-container")})}),p&&e(f,{className:h(ht.CellAction__chevron,o?.chevron)})]})});vt.displayName="CellAction";var yt={CellHeader:"CellHeader__Epf",CellHeader_titleStyle_caps:"CellHeader_titleStyle_caps__nfB",CellHeader__content:"CellHeader__content__El-",CellHeader_titleStyle_normal:"CellHeader_titleStyle_normal__M-p",CellHeader_fullWidth:"CellHeader_fullWidth__h2Y",CellHeader__after:"CellHeader__after__RXN"};const gt=l((a,n)=>{const{className:r,titleStyle:l="caps",fullWidth:i=!1,children:o,after:_,innerClassNames:s,...c}=a,p=h(yt.CellHeader,yt[`CellHeader_titleStyle_${l}`],{[yt.CellHeader_fullWidth]:i},r);return t("div",{ref:n,className:p,...c,children:[H(o)&&e("div",{className:h(yt.CellHeader__content,s?.content),children:o}),H(_)&&e("div",{className:h(yt.CellHeader__after,s?.after),children:_})]})});gt.displayName="CellHeader";var ft={CellInput:"CellInput__92-",CellInput_disabled:"CellInput_disabled__fZ7",CellInput__input:"CellInput__input__gQ3",CellInput_height_compact:"CellInput_height_compact__Mv2",CellInput_height_normal:"CellInput_height_normal__ovc",CellInput__before:"CellInput__before__Hkm",CellInput__body:"CellInput__body__Egp",CellInput__clearButton:"CellInput__clearButton__znK"};const Ct=l((a,n)=>{const{className:r,height:l="normal",before:i,innerClassNames:o,disabled:_,...s}=a,c=h(ft.CellInput,ft[`CellInput_height_${l}`],{[ft.CellInput_disabled]:_},r);return t("label",{className:c,children:[H(i)&&e(Ce,{className:h(ft.CellInput__before,o?.before),maxLines:1,children:i}),e(me,{ref:n,className:h(ft.CellInput__body,o?.body),innerClassNames:{input:h(ft.CellInput__input,o?.input),clearButton:h(ft.CellInput__clearButton,o?.clearButton)},type:"text",disabled:_,...s})]})});Ct.displayName="CellInput";var bt={CellList:"CellList__1ou",CellList_filled:"CellList_filled__ikE",CellList__body:"CellList__body__ouS",CellList_mode_island:"CellList_mode_island__aCu"};const Bt=l((a,n)=>{const{className:r,header:l,children:i,mode:o="full-width",filled:_="island"===o,...s}=a,c=h(bt.CellList,bt[`CellList_mode_${o}`],{[bt.CellList_filled]:_},r);return t("div",{ref:n,className:c,...s,children:[H(l)&&e("div",{className:bt.CellList__header,children:l}),e("div",{className:bt.CellList__body,children:i})]})});Bt.displayName="CellList";var Nt={CellSimple:"CellSimple__n0z",CellSimple_disabled:"CellSimple_disabled__T-3",CellSimple__subtitle:"CellSimple__subtitle__oIF",CellSimple__overline:"CellSimple__overline__Ncr",CellSimple_height_compact:"CellSimple_height_compact__HUQ",CellSimple_height_normal:"CellSimple_height_normal__pxj",CellSimple__before:"CellSimple__before__5Q9",CellSimple__after:"CellSimple__after__2FK",CellSimple__content:"CellSimple__content__SOk",CellSimple__title:"CellSimple__title__aYs",CellSimple__chevron:"CellSimple__chevron__cSs",CellSimple_separator:"CellSimple_separator__aOX",CellSimple__link:"CellSimple__link__ie-"};const Tt=l((a,n)=>{const{className:r,title:l,subtitle:i,before:o,after:_,children:s,overline:c,showChevron:p=!1,asChild:d=!1,disabled:u=!1,innerClassNames:m,height:v="normal",as:y="div",separator:g,link:C,...b}=a,B=h(Nt.CellSimple,Nt[`CellSimple_height_${v}`],{[Nt.CellSimple_disabled]:u,[Nt.CellSimple_separator]:g},r);return t($e,{ref:n,className:B,asChild:d,as:y,parentChildren:s,...b,children:[H(o)&&e("div",{className:h(Nt.CellSimple__before,m?.before),children:o}),e(Q,{children:k({options:{asChild:d,children:s},content:a=>t("div",{className:h(Nt.CellSimple__content,m?.content),children:[H(c)&&e("div",{className:h(Nt.CellSimple__overline,m?.overline),children:c}),H(l)&&e("div",{className:h(Nt.CellSimple__title,m?.title),children:l}),H(i)&&e("div",{className:h(Nt.CellSimple__subtitle,m?.subtitle),children:i}),a,C&&e("a",{className:h(Nt.CellSimple__link,m?.link),href:C,target:"_blank",rel:"noreferrer",children:C})]},"subtree-container")})}),(H(_)||p)&&t("div",{className:h(Nt.CellSimple__after,m?.after),children:[_,p&&e(f,{className:h(Nt.CellSimple__chevron,m?.chevron)})]})]})});Tt.displayName="CellSimple";const It=e=>{switch(e){case"xsmall":return 16;case"small":return 20;default:return 24}},St=e=>{switch(e){case"primary":case"destructive":case"secondary-contrast":case"overlay":return"contrast-static";case"secondary":case"ghost":return"themed";case"primary-contrast":return"primary-static"}};var At={IconButton:"IconButton__KCr",IconButton_loading:"IconButton_loading__RxW",IconButton__content:"IconButton__content__dCL",IconButton_disabled:"IconButton_disabled__SZj",IconButton_activeMode_ripple:"IconButton_activeMode_ripple__asi",IconButton_activeMode_highlight:"IconButton_activeMode_highlight__h15",IconButton_size_xsmall:"IconButton_size_xsmall__G5T",IconButton_size_small:"IconButton_size_small__e3f",IconButton_size_medium:"IconButton_size_medium__MQQ",IconButton_size_large:"IconButton_size_large__9oz",IconButton_variant_primary:"IconButton_variant_primary__-4n",IconButton_variant_secondary:"IconButton_variant_secondary__dFi",IconButton_variant_ghost:"IconButton_variant_ghost__jvE","IconButton_variant_primary-contrast":"IconButton_variant_primary-contrast__O-T","IconButton_variant_secondary-contrast":"IconButton_variant_secondary-contrast__uNH",IconButton_variant_overlay:"IconButton_variant_overlay__vJc",IconButton_variant_destructive:"IconButton_variant_destructive__9rk",IconButton__spinnerContainer:"IconButton__spinnerContainer__9--",IconButton__ripple:"IconButton__ripple__l8M"};const xt=l((a,n)=>{const{children:r,className:l,disabled:i,innerClassNames:o,loading:_,asChild:s=!1,size:c="medium",variant:p="primary",...d}=a,u="button",m=s?q:u,v=ze(),y=Ae({asChild:s,children:r,disabled:i,rootElement:u,loading:_}),g=i||_,f="android"===v,C=h(At.IconButton,At[`IconButton_variant_${p}`],At[`IconButton_size_${c}`],{[At.IconButton_loading]:_,[At.IconButton_disabled]:i,[At.IconButton_activeMode_highlight]:!g&&!f,[At.IconButton_activeMode_ripple]:!g&&f},l);return t(m,{ref:n,className:C,...y,...d,children:[_&&e("span",{className:h(At.IconButton__spinnerContainer,o?.spinnerContainer),children:e(ot,{className:h(o?.spinner),size:It(c),appearance:St(p)})}),e(Q,{children:k({options:{asChild:s,children:r},content:t=>e("span",{className:h(At.IconButton__content,o?.content),children:t},"subtree-container")})}),f&&!g&&e(Se,{className:At.IconButton__ripple})]})});xt.displayName="IconButton";var wt={Input:"Input__A3w",Input_disabled:"Input_disabled__mpt",Input_size_medium:"Input_size_medium__EjC",Input_size_large:"Input_size_large__8OF",Input_mode_default:"Input_mode_default__ncX",Input_mode_contrast:"Input_mode_contrast__EIY",Input__body:"Input__body__sVJ",Input__iconBefore:"Input__iconBefore__gxx",Input__iconAfter:"Input__iconAfter__jL1",Input__clearButton:"Input__clearButton__nKe",Input__input:"Input__input__gy5",Input__hint:"Input__hint__dE5"};const Lt=l((a,n)=>{const{className:r,innerClassNames:l,withClearButton:i,iconBefore:o,iconAfter:_,size:s="large",mode:c="primary",hint:p,...d}=a,u=h(wt.Input,wt[`Input_mode_${c}`],wt[`Input_size_${s}`],{[wt.Input_disabled]:d.disabled},r);return t("div",{className:h(l?.container),children:[t("label",{className:u,children:[H(o)&&e("div",{className:h(wt.Input__iconBefore,l?.iconBefore),children:o}),e(me,{ref:n,className:h(wt.Input__body,l?.body),withClearButton:i,innerClassNames:{input:h(wt.Input__input,l?.input),clearButton:h(wt.Input__clearButton,l?.clearButton)},...d}),H(_)&&e("div",{className:h(wt.Input__iconAfter,l?.iconAfter),children:_})]}),H(p)&&e("div",{className:h(wt.Input__hint,l?.hint),children:p})]})});Lt.displayName="Input";var zt={MaxUI:"MaxUI__g7Q",MaxUI_platform_ios:"MaxUI_platform_ios__gAV",MaxUI_platform_android:"MaxUI_platform_android__m3U",MaxUI_colorScheme_light:"MaxUI_colorScheme_light__Woo",MaxUI_colorScheme_dark:"MaxUI_colorScheme_dark__jFq"};const Et=d({platform:"ios",colorScheme:"light"}),Ot=()=>u(Et),Mt=l((t,a)=>{const{children:n,className:r,colorScheme:l,platform:i=(P()?"ios":"android")}=t,o=Ee({listenChanges:!l}),_=l??o,s=c(()=>({colorScheme:_,platform:i}),[_,i]),p=h(zt.MaxUI,zt[`MaxUI_colorScheme_${_}`],zt[`MaxUI_platform_${i}`],r);return e(Et.Provider,{value:s,children:e("div",{ref:a,className:p,children:n})})});Mt.displayName="MaxUI";var jt={Switch:"Switch__-vj",Switch__toggle:"Switch__toggle__WU2",Switch__thumb:"Switch__thumb__jlX",Switch__input:"Switch__input__EDr",Switch_platform_ios:"Switch_platform_ios__B-C",Switch_platform_android:"Switch_platform_android__72T"};const kt=l((a,n)=>{const{className:r,...l}=a,i=ze(),o=h(jt.Switch,jt[`Switch_platform_${i}`],r);return t("span",{className:o,children:[e("input",{ref:n,type:"checkbox",role:"switch",className:jt.Switch__input,...l}),e("span",{className:jt.Switch__toggle,children:e("span",{className:jt.Switch__thumb})})]})});kt.displayName="Switch";var Ht={Textarea:"Textarea__Sy6",Textarea_disabled:"Textarea_disabled__uY3",Textarea_mode_primary:"Textarea_mode_primary__E7l",Textarea_mode_secondary:"Textarea_mode_secondary__BYw",Textarea__textarea:"Textarea__textarea__Ok-"};const Pt=l((t,a)=>{const{className:n,innerClassNames:r,mode:l="primary",...i}=t,o=h(Ht.Textarea,Ht[`Textarea_mode_${l}`],{[Ht.Textarea_disabled]:i.disabled},n);return e("div",{className:o,children:e("textarea",{ref:a,className:h(Ht.Textarea__textarea,r?.textarea),...i})})});Pt.displayName="Textarea";var $t={ToolButton:"ToolButton__lde",ToolButton_appearance_default:"ToolButton_appearance_default__gqg",ToolButton_disabled:"ToolButton_disabled__gq5",ToolButton_appearance_secondary:"ToolButton_appearance_secondary__ghs",ToolButton_withLabel:"ToolButton_withLabel__FsL",ToolButton__icon:"ToolButton__icon__ds5",ToolButton__label:"ToolButton__label__GCi"};const Dt=l((a,n)=>{const{className:r,icon:l,children:i,asChild:o,innerClassNames:_,appearance:s="default",disabled:c=!1,...p}=a,d=h($t.ToolButton,$t[`ToolButton_appearance_${s}`],{[$t.ToolButton_withLabel]:H(i),[$t.ToolButton_disabled]:c},r);return t($e,{ref:n,className:d,as:"button",parentChildren:i,asChild:o,disabled:c,...p,children:[H(l)&&e("span",{className:h($t.ToolButton__icon,_?.icon),children:l}),H(i)&&e(Q,{children:k({options:{asChild:o,children:i},content:t=>e(Ce,{maxLines:1,className:h($t.ToolButton__label,_?.label),children:t},"subtree-container")})})]})});Dt.displayName="ToolButton";var Ut={TypographyAction_variant_large:"TypographyAction_variant_large__l5j",TypographyAction_variant_medium:"TypographyAction_variant_medium__9H-",TypographyAction_variant_small:"TypographyAction_variant_small__-LL",TypographyAction_variant_label:"TypographyAction_variant_label__vhv"};const Rt=l((t,a)=>{const{className:n,variant:r="large",asChild:l,...i}=t,o=l?q:"span",_=h(Ut.TypographyAction,Ut[`TypographyAction_variant_${r}`],n);return e(o,{ref:a,className:_,...i})});Rt.displayName="TypographyAction";var Yt={TypographyBody_variant_large:"TypographyBody_variant_large__vlS",TypographyBody_variant_medium:"TypographyBody_variant_medium__9v3",TypographyBody_variant_small:"TypographyBody_variant_small__beJ","TypographyBody_variant_small-strong":"TypographyBody_variant_small-strong__mWy","TypographyBody_variant_small-caps":"TypographyBody_variant_small-caps__18r"};const Ft=l((t,a)=>{const{className:n,variant:r="large-strong",asChild:l,...i}=t,o=l?q:"span",_=h(Yt.TypographyBody,Yt[`TypographyBody_variant_${r}`],n);return e(o,{ref:a,className:_,...i})});Ft.displayName="TypographyBody";var Wt="TypographyDisplay__6MW";const Gt=l((t,a)=>{const{className:n,asChild:r,...l}=t;return e(r?q:"span",{ref:a,className:h(Wt,n),...l})});Gt.displayName="TypographyDisplay";var Xt={"TypographyHeadline_variant_large-strong":"TypographyHeadline_variant_large-strong__mwz",TypographyHeadline_variant_medium:"TypographyHeadline_variant_medium__s92","TypographyHeadline_variant_medium-strong":"TypographyHeadline_variant_medium-strong__dFT",TypographyHeadline_variant_small:"TypographyHeadline_variant_small__8Ei","TypographyHeadline_variant_small-strong":"TypographyHeadline_variant_small-strong__kUR"};const Zt=l((t,a)=>{const{className:n,variant:r="large-strong",asChild:l,...i}=t,o=l?q:"span",_=h(Xt.TypographyHeadline,Xt[`TypographyHeadline_variant_${r}`],n);return e(o,{ref:a,className:_,...i})});Zt.displayName="TypographyHeadline";var qt={TypographyLabel_variant_large:"TypographyLabel_variant_large__6vr","TypographyLabel_variant_large-strong":"TypographyLabel_variant_large-strong__uCg","TypographyLabel_variant_large-caps":"TypographyLabel_variant_large-caps__b1i",TypographyLabel_variant_medium:"TypographyLabel_variant_medium__Xo5","TypographyLabel_variant_medium-strong":"TypographyLabel_variant_medium-strong__Bk8","TypographyLabel_variant_small-strong":"TypographyLabel_variant_small-strong__qCw","TypographyLabel_variant_small-caps":"TypographyLabel_variant_small-caps__beb"};const Vt=l((t,a)=>{const{className:n,variant:r="large",asChild:l,...i}=t,o=l?q:"span",_=h(qt.TypographyLabel,qt[`TypographyLabel_variant_${r}`],n);return e(o,{ref:a,className:_,...i})});Vt.displayName="TypographyLabel";var Jt={"TypographyTitle_variant_large-strong":"TypographyTitle_variant_large-strong__9PL","TypographyTitle_variant_medium-strong":"TypographyTitle_variant_medium-strong__th0",TypographyTitle_variant_small:"TypographyTitle_variant_small__zJR","TypographyTitle_variant_small-strong":"TypographyTitle_variant_small-strong__BrE"};const Qt=l((t,a)=>{const{className:n,variant:r="large-strong",asChild:l,...i}=t,o=l?q:"span",_=h(Jt.TypographyTitle,Jt[`TypographyTitle_variant_${r}`],n);return e(o,{ref:a,className:_,...i})});Qt.displayName="TypographyTitle";const Kt=Object.assign({},{Display:Gt,Headline:Zt,Title:Qt,Body:Ft,Label:Vt,Action:Rt});export{nt as Avatar,mt as Button,vt as CellAction,gt as CellHeader,Ct as CellInput,Bt as CellList,Tt as CellSimple,ct as Counter,f as Icon16Chevron,B as Icon16CloseIos,I as Icon16SearchOutline,w as Icon20CloseAndroid,E as Icon20CloseFilled,M as Icon24CloseAndroid,xt as IconButton,Lt as Input,Mt as MaxUI,Et as MaxUIContext,q as Slot,Q as Slottable,ot as Spinner,kt as Switch,Pt as Textarea,Dt as ToolButton,Kt as Typography,k as getSubtree,H as hasReactNode,$ as mergeRefs,Ot as useAppearance,Ae as useButtonLikeProps,xe as useCallbackRef,we as useColorScheme,Le as useImageLoadingStatus,ze as usePlatform,Ee as useSystemColorScheme};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
declare const AvatarNamespace: {
|
|
2
|
+
Container: import("react").ForwardRefExoticComponent<Omit<import("./parts").AvatarContainerProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
3
|
+
Image: import("react").ForwardRefExoticComponent<Omit<import("./parts").AvatarImageProps, "ref"> & import("react").RefAttributes<HTMLImageElement>>;
|
|
4
|
+
Overlay: import("react").ForwardRefExoticComponent<Omit<import("./parts").AvatarOverlayProps, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
5
|
+
Icon: import("react").ForwardRefExoticComponent<Omit<import("./parts").AvatarIconProps, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
6
|
+
Text: import("react").ForwardRefExoticComponent<Omit<import("./parts").AvatarTextProps, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
7
|
+
OnlineDot: import("react").ForwardRefExoticComponent<Omit<import("./parts").AvatarOnlineDotProps, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
8
|
+
CloseButton: import("react").ForwardRefExoticComponent<Omit<import("./parts").AvatarCloseButtonProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
9
|
+
};
|
|
10
|
+
export { AvatarNamespace as Avatar };
|
|
11
|
+
export type { AvatarCloseButtonProps, AvatarContainerElementKey, AvatarContainerFrom, AvatarContainerProps, AvatarContainerSize, AvatarIconProps, AvatarImageProps, AvatarOnlineDotProps, AvatarOverlayProps, AvatarTextGradient, AvatarTextProps } from './parts';
|
|
12
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Avatar/index.ts"],"names":[],"mappings":"AAUA,QAAA,MAAM,eAAe;;;;;;;;CAQnB,CAAC;AAEH,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,CAAC;AACrC,YAAY,EAAE,sBAAsB,EAAE,yBAAyB,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,eAAe,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { type ComponentProps } from 'react';
|
|
2
|
+
export interface AvatarCloseButtonProps extends ComponentProps<'button'> {
|
|
3
|
+
}
|
|
4
|
+
export declare const AvatarCloseButton: import("react").ForwardRefExoticComponent<Omit<AvatarCloseButtonProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
5
|
+
//# sourceMappingURL=AvatarCloseButton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AvatarCloseButton.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Avatar/parts/AvatarCloseButton/AvatarCloseButton.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,cAAc,EAAsC,MAAM,OAAO,CAAC;AAQhF,MAAM,WAAW,sBAAuB,SAAQ,cAAc,CAAC,QAAQ,CAAC;CAAG;AAE3E,eAAO,MAAM,iBAAiB,mIA0B5B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Avatar/parts/AvatarCloseButton/helpers.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,GAAI,eAAe,MAAM,KAAG,MAUrD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Avatar/parts/AvatarCloseButton/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,KAAK,sBAAsB,EAAE,MAAM,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type ComponentProps, type ReactNode } from 'react';
|
|
2
|
+
import { type AsChildProp, type InnerClassNamesProp } from '../../../../types';
|
|
3
|
+
export type AvatarContainerElementKey = 'overlay' | 'content' | 'rightBottomCorner' | 'rightTopCorner';
|
|
4
|
+
export type AvatarContainerSize = 16 | 20 | 24 | 28 | 32 | 36 | 40 | 44 | 48 | 54 | 56 | 64 | 72 | 80 | 88 | 96 | number;
|
|
5
|
+
export type AvatarContainerFrom = 'circle' | 'squircle';
|
|
6
|
+
export interface AvatarContainerProps extends ComponentProps<'div'>, AsChildProp {
|
|
7
|
+
size?: AvatarContainerSize;
|
|
8
|
+
overlay?: ReactNode;
|
|
9
|
+
form?: AvatarContainerFrom;
|
|
10
|
+
innerClassNames?: InnerClassNamesProp<AvatarContainerElementKey>;
|
|
11
|
+
rightTopCorner?: ReactNode;
|
|
12
|
+
rightBottomCorner?: ReactNode;
|
|
13
|
+
}
|
|
14
|
+
export declare const AvatarContainer: import("react").ForwardRefExoticComponent<Omit<AvatarContainerProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
15
|
+
//# sourceMappingURL=AvatarContainer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AvatarContainer.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Avatar/parts/AvatarContainer/AvatarContainer.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,cAAc,EAAkC,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAG5F,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAI/E,MAAM,MAAM,yBAAyB,GAAG,SAAS,GAAG,SAAS,GAAG,mBAAmB,GAAG,gBAAgB,CAAC;AACvG,MAAM,MAAM,mBAAmB,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,MAAM,CAAC;AACzH,MAAM,MAAM,mBAAmB,GAAG,QAAQ,GAAG,UAAU,CAAC;AAExD,MAAM,WAAW,oBAAqB,SAAQ,cAAc,CAAC,KAAK,CAAC,EAAE,WAAW;IAC9E,IAAI,CAAC,EAAE,mBAAmB,CAAA;IAC1B,OAAO,CAAC,EAAE,SAAS,CAAA;IACnB,IAAI,CAAC,EAAE,mBAAmB,CAAA;IAC1B,eAAe,CAAC,EAAE,mBAAmB,CAAC,yBAAyB,CAAC,CAAA;IAChE,cAAc,CAAC,EAAE,SAAS,CAAA;IAC1B,iBAAiB,CAAC,EAAE,SAAS,CAAA;CAC9B;AAED,eAAO,MAAM,eAAe,8HAoE1B,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type AvatarContainerSize } from './AvatarContainer';
|
|
2
|
+
export interface AvatarContainerContextInterface {
|
|
3
|
+
size: AvatarContainerSize;
|
|
4
|
+
}
|
|
5
|
+
export declare const AvatarContainerContext: import("react").Context<AvatarContainerContextInterface>;
|
|
6
|
+
export declare const useAvatarContainerContext: () => AvatarContainerContextInterface;
|
|
7
|
+
//# sourceMappingURL=AvatarContainerContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AvatarContainerContext.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Avatar/parts/AvatarContainer/AvatarContainerContext.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAE7D,MAAM,WAAW,+BAA+B;IAC9C,IAAI,EAAE,mBAAmB,CAAA;CAC1B;AAED,eAAO,MAAM,sBAAsB,0DAEjC,CAAC;AAEH,eAAO,MAAM,yBAAyB,QAAO,+BAAqE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Avatar/parts/AvatarContainer/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,KAAK,yBAAyB,EAAE,KAAK,mBAAmB,EAAE,KAAK,oBAAoB,EAAE,KAAK,mBAAmB,EAAE,MAAM,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { type ComponentProps } from 'react';
|
|
2
|
+
export interface AvatarIconProps extends ComponentProps<'span'> {
|
|
3
|
+
}
|
|
4
|
+
export declare const AvatarIcon: import("react").ForwardRefExoticComponent<Omit<AvatarIconProps, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
5
|
+
//# sourceMappingURL=AvatarIcon.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AvatarIcon.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Avatar/parts/AvatarIcon/AvatarIcon.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,cAAc,EAAc,MAAM,OAAO,CAAC;AAIxD,MAAM,WAAW,eAAgB,SAAQ,cAAc,CAAC,MAAM,CAAC;CAAG;AAElE,eAAO,MAAM,UAAU,0HAarB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Avatar/parts/AvatarIcon/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,KAAK,eAAe,EAAE,MAAM,cAAc,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type ComponentProps, type ReactNode } from 'react';
|
|
2
|
+
import { type AvatarTextGradient } from '../AvatarText';
|
|
3
|
+
export interface AvatarImageProps extends ComponentProps<'img'> {
|
|
4
|
+
fallback?: ReactNode;
|
|
5
|
+
fallbackGradient?: AvatarTextGradient;
|
|
6
|
+
}
|
|
7
|
+
export declare const AvatarImage: import("react").ForwardRefExoticComponent<Omit<AvatarImageProps, "ref"> & import("react").RefAttributes<HTMLImageElement>>;
|
|
8
|
+
//# sourceMappingURL=AvatarImage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AvatarImage.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Avatar/parts/AvatarImage/AvatarImage.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,cAAc,EAAc,KAAK,SAAS,EAA6B,MAAM,OAAO,CAAC;AAGnG,OAAO,EAAc,KAAK,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAGpE,MAAM,WAAW,gBAAiB,SAAQ,cAAc,CAAC,KAAK,CAAC;IAC7D,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,gBAAgB,CAAC,EAAE,kBAAkB,CAAA;CACtC;AAED,eAAO,MAAM,WAAW,4HAoCtB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Avatar/parts/AvatarImage/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,KAAK,gBAAgB,EAAE,MAAM,eAAe,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { type ComponentProps } from 'react';
|
|
2
|
+
export interface AvatarOnlineDotProps extends ComponentProps<'span'> {
|
|
3
|
+
}
|
|
4
|
+
export declare const AvatarOnlineDot: import("react").ForwardRefExoticComponent<Omit<AvatarOnlineDotProps, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
5
|
+
//# sourceMappingURL=AvatarOnlineDot.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AvatarOnlineDot.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Avatar/parts/AvatarOnlineDot/AvatarOnlineDot.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,cAAc,EAAc,MAAM,OAAO,CAAC;AAMxD,MAAM,WAAW,oBAAqB,SAAQ,cAAc,CAAC,MAAM,CAAC;CAAG;AAEvE,eAAO,MAAM,eAAe,+HA6B1B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Avatar/parts/AvatarOnlineDot/helpers.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB,GAAI,qBAAqB,MAAM,KAAG,IAAI,GAAG,GAAG,GAAG,GAAG,GAAG,GAUpF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Avatar/parts/AvatarOnlineDot/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,KAAK,oBAAoB,EAAE,MAAM,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { type ComponentProps } from 'react';
|
|
2
|
+
export interface AvatarOverlayProps extends ComponentProps<'span'> {
|
|
3
|
+
}
|
|
4
|
+
export declare const AvatarOverlay: import("react").ForwardRefExoticComponent<Omit<AvatarOverlayProps, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
5
|
+
//# sourceMappingURL=AvatarOverlay.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AvatarOverlay.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Avatar/parts/AvatarOverlay/AvatarOverlay.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,cAAc,EAAsC,MAAM,OAAO,CAAC;AAIhF,MAAM,WAAW,kBAAmB,SAAQ,cAAc,CAAC,MAAM,CAAC;CAAG;AAErE,eAAO,MAAM,aAAa,6HAoBxB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Avatar/parts/AvatarOverlay/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,KAAK,kBAAkB,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type ComponentProps } from 'react';
|
|
2
|
+
export type AvatarTextGradient = 'red' | 'orange' | 'green' | 'blue' | 'purple' | 'custom';
|
|
3
|
+
export interface AvatarTextProps extends ComponentProps<'span'> {
|
|
4
|
+
gradient?: AvatarTextGradient;
|
|
5
|
+
}
|
|
6
|
+
export declare const AvatarText: import("react").ForwardRefExoticComponent<Omit<AvatarTextProps, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
7
|
+
//# sourceMappingURL=AvatarText.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AvatarText.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Avatar/parts/AvatarText/AvatarText.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,cAAc,EAAc,MAAM,OAAO,CAAC;AAMxD,MAAM,MAAM,kBAAkB,GAAG,KAAK,GAAG,QAAQ,GAAG,OAAO,GAAG,MAAM,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAE3F,MAAM,WAAW,eAAgB,SAAQ,cAAc,CAAC,MAAM,CAAC;IAC7D,QAAQ,CAAC,EAAE,kBAAkB,CAAA;CAC9B;AAGD,eAAO,MAAM,UAAU,0HAgCrB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Avatar/parts/AvatarText/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,OAAO,CAAC;AAE3C,KAAK,UAAU,GAAG,IAAI,CAAC,aAAa,EAAE,UAAU,CAAC,CAAC;AAIlD,eAAO,MAAM,aAAa,GAAI,qBAAqB,MAAM,KAAG,UAwB3D,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Avatar/parts/AvatarText/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,KAAK,kBAAkB,EAAE,KAAK,eAAe,EAAE,MAAM,cAAc,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { AvatarCloseButton, type AvatarCloseButtonProps } from './AvatarCloseButton';
|
|
2
|
+
export { AvatarContainer, type AvatarContainerElementKey, type AvatarContainerFrom, type AvatarContainerProps, type AvatarContainerSize } from './AvatarContainer';
|
|
3
|
+
export { AvatarIcon, type AvatarIconProps } from './AvatarIcon';
|
|
4
|
+
export { AvatarImage, type AvatarImageProps } from './AvatarImage';
|
|
5
|
+
export { AvatarOnlineDot, type AvatarOnlineDotProps } from './AvatarOnlineDot';
|
|
6
|
+
export { AvatarOverlay, type AvatarOverlayProps } from './AvatarOverlay';
|
|
7
|
+
export { AvatarText, type AvatarTextGradient, type AvatarTextProps } from './AvatarText';
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Avatar/parts/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,KAAK,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AACrF,OAAO,EAAE,eAAe,EAAE,KAAK,yBAAyB,EAAE,KAAK,mBAAmB,EAAE,KAAK,oBAAoB,EAAE,KAAK,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACnK,OAAO,EAAE,UAAU,EAAE,KAAK,eAAe,EAAE,MAAM,cAAc,CAAC;AAChE,OAAO,EAAE,WAAW,EAAE,KAAK,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACnE,OAAO,EAAE,eAAe,EAAE,KAAK,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAC/E,OAAO,EAAE,aAAa,EAAE,KAAK,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACzE,OAAO,EAAE,UAAU,EAAE,KAAK,kBAAkB,EAAE,KAAK,eAAe,EAAE,MAAM,cAAc,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { type ComponentProps, type ReactNode } from 'react';
|
|
2
|
+
import { type AsChildProp, type InnerClassNamesProp } from '../../types';
|
|
3
|
+
export type ButtonSize = 'xsmall' | 'small' | 'medium' | 'large';
|
|
4
|
+
export type ButtonVariant = 'primary' | 'secondary' | 'ghost' | 'primary-contrast' | 'secondary-contrast' | 'overlay' | 'destructive';
|
|
5
|
+
export type ButtonInnerElementKey = 'iconBefore' | 'iconAfter' | 'indicator' | 'content' | 'spinnerContainer' | 'spinner';
|
|
6
|
+
export interface ButtonProps extends ComponentProps<'button'>, AsChildProp {
|
|
7
|
+
size?: ButtonSize;
|
|
8
|
+
variant?: ButtonVariant;
|
|
9
|
+
stretched?: boolean;
|
|
10
|
+
iconBefore?: ReactNode;
|
|
11
|
+
iconAfter?: ReactNode;
|
|
12
|
+
indicator?: ReactNode;
|
|
13
|
+
innerClassNames?: InnerClassNamesProp<ButtonInnerElementKey>;
|
|
14
|
+
loading?: boolean;
|
|
15
|
+
}
|
|
16
|
+
export declare const Button: import("react").ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
17
|
+
//# sourceMappingURL=Button.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../../src/components/Button/Button.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,cAAc,EAAwD,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAKlH,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAKzE,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;AACjE,MAAM,MAAM,aAAa,GAAG,SAAS,GAAG,WAAW,GAAG,OAAO,GAAG,kBAAkB,GAAG,oBAAoB,GAAG,SAAS,GAAG,aAAa,CAAC;AACtI,MAAM,MAAM,qBAAqB,GAAG,YAAY,GAAG,WAAW,GAAG,WAAW,GAAG,SAAS,GAAG,kBAAkB,GAAG,SAAS,CAAC;AAE1H,MAAM,WAAW,WAAY,SAAQ,cAAc,CAAC,QAAQ,CAAC,EAAE,WAAW;IACxE,IAAI,CAAC,EAAE,UAAU,CAAA;IACjB,OAAO,CAAC,EAAE,aAAa,CAAA;IACvB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,UAAU,CAAC,EAAE,SAAS,CAAA;IACtB,SAAS,CAAC,EAAE,SAAS,CAAA;IACrB,SAAS,CAAC,EAAE,SAAS,CAAA;IACrB,eAAe,CAAC,EAAE,mBAAmB,CAAC,qBAAqB,CAAC,CAAA;IAC5D,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,eAAO,MAAM,MAAM,wHAoGjB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import { type CounterProps } from '../Counter';
|
|
3
|
+
import { type SpinnerAppearance } from '../Spinner';
|
|
4
|
+
import { type ButtonSize, type ButtonVariant } from './Button';
|
|
5
|
+
export declare const getButtonSpinnerSize: (buttonSize: ButtonSize) => number;
|
|
6
|
+
export declare const getButtonSpinnerAppearance: (buttonVariant: ButtonVariant) => SpinnerAppearance;
|
|
7
|
+
export declare const getButtonCounterAppearance: (buttonVariant: ButtonVariant) => Pick<CounterProps, "variant">;
|
|
8
|
+
export declare const injectButtonIndicator: (indicatorNode: ReactNode, buttonVariant: ButtonVariant) => ReactNode;
|
|
9
|
+
//# sourceMappingURL=helpers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../src/components/Button/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmD,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAExF,OAAO,EAAW,KAAK,YAAY,EAAE,MAAM,YAAY,CAAC;AACxD,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,YAAY,CAAC;AACpD,OAAO,EAAE,KAAK,UAAU,EAAE,KAAK,aAAa,EAAE,MAAM,UAAU,CAAC;AAE/D,eAAO,MAAM,oBAAoB,GAAI,YAAY,UAAU,KAAG,MAM7D,CAAC;AAEF,eAAO,MAAM,0BAA0B,GAAI,eAAe,aAAa,KAAG,iBAczE,CAAC;AAEF,eAAO,MAAM,0BAA0B,GAAI,eAAe,aAAa,KAAG,IAAI,CAAC,YAAY,EAAE,SAAS,CAiBrG,CAAC;AAEF,eAAO,MAAM,qBAAqB,GAAI,eAAe,SAAS,EAAE,eAAe,aAAa,KAAG,SAe9F,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Button/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,KAAK,qBAAqB,EAAE,KAAK,WAAW,EAAE,KAAK,UAAU,EAAE,KAAK,aAAa,EAAE,MAAM,UAAU,CAAC"}
|