@maxhub/max-ui 0.3.2 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/dist/components/Avatar/helpers.d.ts +13 -0
  2. package/dist/components/Avatar/helpers.d.ts.map +1 -0
  3. package/dist/components/Avatar/index.d.ts +1 -2
  4. package/dist/components/Avatar/index.d.ts.map +1 -1
  5. package/dist/components/Avatar/parts/AvatarCloseButton/AvatarCloseButton.d.ts +1 -0
  6. package/dist/components/Avatar/parts/AvatarCloseButton/AvatarCloseButton.d.ts.map +1 -1
  7. package/dist/components/Avatar/parts/AvatarContainer/AvatarContainer.d.ts +1 -0
  8. package/dist/components/Avatar/parts/AvatarContainer/AvatarContainer.d.ts.map +1 -1
  9. package/dist/components/Avatar/parts/index.d.ts +0 -1
  10. package/dist/components/Avatar/parts/index.d.ts.map +1 -1
  11. package/dist/components/Button/Button.d.ts.map +1 -1
  12. package/dist/components/CellSimple/CellSimple.d.ts.map +1 -1
  13. package/dist/components/IconButton/IconButton.d.ts.map +1 -1
  14. package/dist/components/Input/Input.d.ts +1 -1
  15. package/dist/components/Input/Input.d.ts.map +1 -1
  16. package/dist/components/Input/index.d.ts +1 -1
  17. package/dist/components/Input/index.d.ts.map +1 -1
  18. package/dist/components/MaxUI/MaxUI.d.ts +1 -0
  19. package/dist/components/MaxUI/MaxUI.d.ts.map +1 -1
  20. package/dist/components/Typography/index.d.ts +2 -1
  21. package/dist/components/Typography/index.d.ts.map +1 -1
  22. package/dist/components/Typography/parts/TypographyAction/TypographyAction.d.ts +1 -1
  23. package/dist/components/Typography/parts/TypographyAction/TypographyAction.d.ts.map +1 -1
  24. package/dist/components/Typography/parts/TypographyBody/TypographyBody.d.ts +1 -1
  25. package/dist/components/Typography/parts/TypographyBody/TypographyBody.d.ts.map +1 -1
  26. package/dist/components/Typography/parts/TypographyHeadline/TypographyHeadline.d.ts +1 -1
  27. package/dist/components/Typography/parts/TypographyHeadline/TypographyHeadline.d.ts.map +1 -1
  28. package/dist/components/Typography/parts/TypographyLabel/TypographyLabel.d.ts +1 -1
  29. package/dist/components/Typography/parts/TypographyLabel/TypographyLabel.d.ts.map +1 -1
  30. package/dist/components/Typography/parts/TypographyText/TypographyText.d.ts +10 -0
  31. package/dist/components/Typography/parts/TypographyText/TypographyText.d.ts.map +1 -0
  32. package/dist/components/Typography/parts/TypographyText/index.d.ts +2 -0
  33. package/dist/components/Typography/parts/TypographyText/index.d.ts.map +1 -0
  34. package/dist/components/Typography/parts/TypographyTitle/TypographyTitle.d.ts +1 -1
  35. package/dist/components/Typography/parts/TypographyTitle/TypographyTitle.d.ts.map +1 -1
  36. package/dist/components/Typography/parts/index.d.ts +1 -0
  37. package/dist/components/Typography/parts/index.d.ts.map +1 -1
  38. package/dist/hooks/use-button-like-props.d.ts +2 -1
  39. package/dist/hooks/use-button-like-props.d.ts.map +1 -1
  40. package/dist/index.js +1 -1
  41. package/dist/index.js.map +1 -1
  42. package/dist/internal/ClearableInput/ClearableInput.d.ts.map +1 -1
  43. package/dist/internal/Tappable/Tappable.d.ts.map +1 -1
  44. package/dist/styles.css +1 -1
  45. package/package.json +29 -17
@@ -0,0 +1,13 @@
1
+ type OnlineStatusSize = 'xs' | 's' | 'm' | 'l';
2
+ interface GetAvatarContainerStateOptions {
3
+ size: number;
4
+ onlineStatus: boolean;
5
+ isCircle: boolean;
6
+ }
7
+ export declare const getAvatarContainerState: ({ size, onlineStatus, isCircle }: GetAvatarContainerStateOptions) => {
8
+ normalizedSize: number;
9
+ hasOnlineStatus: boolean;
10
+ onlineStatusSize: OnlineStatusSize;
11
+ };
12
+ export {};
13
+ //# sourceMappingURL=helpers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../src/components/Avatar/helpers.ts"],"names":[],"mappings":"AAAA,KAAK,gBAAgB,GAAG,IAAI,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC;AAY/C,UAAU,8BAA8B;IACtC,IAAI,EAAE,MAAM,CAAA;IACZ,YAAY,EAAE,OAAO,CAAA;IACrB,QAAQ,EAAE,OAAO,CAAA;CAClB;AAED,eAAO,MAAM,uBAAuB,GAAI,kCAIrC,8BAA8B;;;;CAQhC,CAAC"}
@@ -4,9 +4,8 @@ declare const AvatarNamespace: {
4
4
  Overlay: import("react").ForwardRefExoticComponent<Omit<import("./parts").AvatarOverlayProps, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
5
5
  Icon: import("react").ForwardRefExoticComponent<Omit<import("./parts").AvatarIconProps, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
6
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
7
  CloseButton: import("react").ForwardRefExoticComponent<Omit<import("./parts").AvatarCloseButtonProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
9
8
  };
10
9
  export { AvatarNamespace as Avatar };
11
- export type { AvatarCloseButtonProps, AvatarContainerElementKey, AvatarContainerFrom, AvatarContainerProps, AvatarContainerSize, AvatarIconProps, AvatarImageProps, AvatarOnlineDotProps, AvatarOverlayProps, AvatarTextGradient, AvatarTextProps } from './parts';
10
+ export type { AvatarCloseButtonProps, AvatarContainerElementKey, AvatarContainerFrom, AvatarContainerProps, AvatarContainerSize, AvatarIconProps, AvatarImageProps, AvatarOverlayProps, AvatarTextGradient, AvatarTextProps } from './parts';
12
11
  //# sourceMappingURL=index.d.ts.map
@@ -1 +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"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Avatar/index.ts"],"names":[],"mappings":"AASA,QAAA,MAAM,eAAe;;;;;;;CAOnB,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,kBAAkB,EAAE,kBAAkB,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC"}
@@ -1,5 +1,6 @@
1
1
  import { type ComponentProps } from 'react';
2
2
  export interface AvatarCloseButtonProps extends ComponentProps<'button'> {
3
+ 'aria-label'?: string;
3
4
  }
4
5
  export declare const AvatarCloseButton: import("react").ForwardRefExoticComponent<Omit<AvatarCloseButtonProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
5
6
  //# sourceMappingURL=AvatarCloseButton.d.ts.map
@@ -1 +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"}
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;IACtE,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB;AAED,eAAO,MAAM,iBAAiB,mIA0B5B,CAAC"}
@@ -7,6 +7,7 @@ export interface AvatarContainerProps extends ComponentProps<'div'>, AsChildProp
7
7
  size?: AvatarContainerSize;
8
8
  overlay?: ReactNode;
9
9
  form?: AvatarContainerFrom;
10
+ onlineStatus?: boolean;
10
11
  innerClassNames?: InnerClassNamesProp<AvatarContainerElementKey>;
11
12
  rightTopCorner?: ReactNode;
12
13
  rightBottomCorner?: ReactNode;
@@ -1 +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"}
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;AAK/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,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,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,8HAiF1B,CAAC"}
@@ -2,7 +2,6 @@ export { AvatarCloseButton, type AvatarCloseButtonProps } from './AvatarCloseBut
2
2
  export { AvatarContainer, type AvatarContainerElementKey, type AvatarContainerFrom, type AvatarContainerProps, type AvatarContainerSize } from './AvatarContainer';
3
3
  export { AvatarIcon, type AvatarIconProps } from './AvatarIcon';
4
4
  export { AvatarImage, type AvatarImageProps } from './AvatarImage';
5
- export { AvatarOnlineDot, type AvatarOnlineDotProps } from './AvatarOnlineDot';
6
5
  export { AvatarOverlay, type AvatarOverlayProps } from './AvatarOverlay';
7
6
  export { AvatarText, type AvatarTextGradient, type AvatarTextProps } from './AvatarText';
8
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +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"}
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,aAAa,EAAE,KAAK,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACzE,OAAO,EAAE,UAAU,EAAE,KAAK,kBAAkB,EAAE,KAAK,eAAe,EAAE,MAAM,cAAc,CAAC"}
@@ -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;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,wHAuGjB,CAAC"}
1
+ {"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../src/components/Button/Button.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,cAAc,EAAgC,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAK1F,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,wHA8FjB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"CellSimple.d.ts","sourceRoot":"","sources":["../../../src/components/CellSimple/CellSimple.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,WAAW,EAAc,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAK1F,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,mBAAmB,EAAE,KAAK,UAAU,EAAE,MAAM,aAAa,CAAC;AAG1F,MAAM,MAAM,gBAAgB,GAAG,SAAS,GAAG,QAAQ,CAAC;AACpD,MAAM,MAAM,sBAAsB,GAAG,WAAW,GAAG,UAAU,CAAC;AAC9D,MAAM,MAAM,yBAAyB,GACjC,QAAQ,GACR,OAAO,GACP,SAAS,GACT,SAAS,GACT,OAAO,GACP,UAAU,GACV,UAAU,GACV,MAAM,CAAC;AACX,MAAM,MAAM,UAAU,GAAG,SAAS,GAAG,OAAO,GAAG,QAAQ,GAAG,WAAW,CAAA;AAErE,UAAU,kBAAmB,SAAQ,WAAW;IAC9C,MAAM,CAAC,EAAE,gBAAgB,CAAA;IACzB,eAAe,CAAC,EAAE,mBAAmB,CAAC,yBAAyB,CAAC,CAAA;IAChE,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,YAAY,CAAC,EAAE,sBAAsB,CAAA;IACrC,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,MAAM,CAAC,EAAE,SAAS,CAAA;IAClB,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,EAAE,CAAC,EAAE,WAAW,CAAA;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,IAAI,CAAC,EAAE,MAAM,CAAA;CACd;AAED,MAAM,MAAM,eAAe,GAAG,UAAU,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,kBAAkB,CAAC,CAAC;AAEpF,eAAO,MAAM,UAAU,yHA8FrB,CAAC"}
1
+ {"version":3,"file":"CellSimple.d.ts","sourceRoot":"","sources":["../../../src/components/CellSimple/CellSimple.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,WAAW,EAAc,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAK1F,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,mBAAmB,EAAE,KAAK,UAAU,EAAE,MAAM,aAAa,CAAC;AAG1F,MAAM,MAAM,gBAAgB,GAAG,SAAS,GAAG,QAAQ,CAAC;AACpD,MAAM,MAAM,sBAAsB,GAAG,WAAW,GAAG,UAAU,CAAC;AAC9D,MAAM,MAAM,yBAAyB,GACjC,QAAQ,GACR,OAAO,GACP,SAAS,GACT,SAAS,GACT,OAAO,GACP,UAAU,GACV,UAAU,GACV,MAAM,CAAC;AACX,MAAM,MAAM,UAAU,GAAG,SAAS,GAAG,OAAO,GAAG,QAAQ,GAAG,WAAW,CAAA;AAErE,UAAU,kBAAmB,SAAQ,WAAW;IAC9C,MAAM,CAAC,EAAE,gBAAgB,CAAA;IACzB,eAAe,CAAC,EAAE,mBAAmB,CAAC,yBAAyB,CAAC,CAAA;IAChE,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,YAAY,CAAC,EAAE,sBAAsB,CAAA;IACrC,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,MAAM,CAAC,EAAE,SAAS,CAAA;IAClB,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,EAAE,CAAC,EAAE,WAAW,CAAA;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,IAAI,CAAC,EAAE,MAAM,CAAA;CACd;AAED,MAAM,MAAM,eAAe,GAAG,UAAU,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,kBAAkB,CAAC,CAAC;AAEpF,eAAO,MAAM,UAAU,yHA+FrB,CAAC"}
@@ -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;AAK1E,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,mBAAmB,EAAE,MAAM,aAAa,CAAC;AACzE,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,WAAW,CAAC;AAK/C,MAAM,MAAM,cAAc,GAAG,QAAQ,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;AACrE,MAAM,MAAM,iBAAiB,GAAG,aAAa,CAAC;AAC9C,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,OAAO,CAAC,EAAE,iBAAiB,CAAA;IAC3B,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,4HAoErB,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;AAK1E,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,mBAAmB,EAAE,MAAM,aAAa,CAAC;AACzE,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,WAAW,CAAC;AAK/C,MAAM,MAAM,cAAc,GAAG,QAAQ,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;AACrE,MAAM,MAAM,iBAAiB,GAAG,aAAa,CAAC;AAC9C,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,OAAO,CAAC,EAAE,iBAAiB,CAAA;IAC3B,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,4HAqErB,CAAC"}
@@ -2,7 +2,7 @@ import { type ComponentProps, type ReactNode } from 'react';
2
2
  import { type InnerClassNamesProp } from '../../types';
3
3
  export type InputMode = 'default' | 'contrast';
4
4
  export type InputSize = 'large' | 'medium';
5
- export type InputElementKey = 'container' | 'input' | 'clearButton' | 'body' | 'iconBefore' | 'iconAfter' | 'hint';
5
+ export type InputElementKey = 'container' | 'input' | 'clearButton' | 'count' | 'body' | 'iconBefore' | 'iconAfter' | 'hint';
6
6
  export interface InputProps extends Omit<ComponentProps<'input'>, 'size'> {
7
7
  mode?: InputMode;
8
8
  size?: InputSize;
@@ -1 +1 @@
1
- {"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../../../src/components/Input/Input.tsx"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,cAAc,EACP,KAAK,SAAS,EAC3B,MAAM,OAAO,CAAC;AAIf,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAGvD,MAAM,MAAM,SAAS,GAAG,SAAS,GAAG,UAAU,CAAC;AAC/C,MAAM,MAAM,SAAS,GAAG,OAAO,GAAG,QAAQ,CAAC;AAC3C,MAAM,MAAM,eAAe,GAAG,WAAW,GAAG,OAAO,GAAG,aAAa,GAAG,MAAM,GAAG,YAAY,GAAG,WAAW,GAAG,MAAM,CAAC;AAEnH,MAAM,WAAW,UAAW,SAAQ,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IACvE,IAAI,CAAC,EAAE,SAAS,CAAA;IAChB,IAAI,CAAC,EAAE,SAAS,CAAA;IAChB,UAAU,CAAC,EAAE,SAAS,CAAA;IACtB,SAAS,CAAC,EAAE,SAAS,CAAA;IACrB,eAAe,CAAC,EAAE,mBAAmB,CAAC,eAAe,CAAC,CAAA;IACtD,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,CAAC,EAAE,SAAS,CAAA;CACjB;AAED,eAAO,MAAM,KAAK,sHAoDhB,CAAC"}
1
+ {"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../../../src/components/Input/Input.tsx"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,cAAc,EACP,KAAK,SAAS,EAC3B,MAAM,OAAO,CAAC;AAIf,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAGvD,MAAM,MAAM,SAAS,GAAG,SAAS,GAAG,UAAU,CAAC;AAC/C,MAAM,MAAM,SAAS,GAAG,OAAO,GAAG,QAAQ,CAAC;AAC3C,MAAM,MAAM,eAAe,GAAG,WAAW,GAAG,OAAO,GAAG,aAAa,GAAG,OAAO,GAAG,MAAM,GAAG,YAAY,GAAG,WAAW,GAAG,MAAM,CAAC;AAE7H,MAAM,WAAW,UAAW,SAAQ,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IACvE,IAAI,CAAC,EAAE,SAAS,CAAA;IAChB,IAAI,CAAC,EAAE,SAAS,CAAA;IAChB,UAAU,CAAC,EAAE,SAAS,CAAA;IACtB,SAAS,CAAC,EAAE,SAAS,CAAA;IACrB,eAAe,CAAC,EAAE,mBAAmB,CAAC,eAAe,CAAC,CAAA;IACtD,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,CAAC,EAAE,SAAS,CAAA;CACjB;AAED,eAAO,MAAM,KAAK,sHAiEhB,CAAC"}
@@ -1,2 +1,2 @@
1
- export { Input, type InputElementKey, type InputMode, type InputProps } from './Input';
1
+ export { Input, type InputElementKey, type InputMode, type InputProps, type InputSize } from './Input';
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Input/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,KAAK,eAAe,EAAE,KAAK,SAAS,EAAE,KAAK,UAAU,EAAE,MAAM,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Input/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,KAAK,eAAe,EAAE,KAAK,SAAS,EAAE,KAAK,UAAU,EAAE,KAAK,SAAS,EAAE,MAAM,SAAS,CAAC"}
@@ -3,6 +3,7 @@ import { type MaxUIContextInterface } from './MaxUIContext';
3
3
  export interface MaxUIProps extends Partial<MaxUIContextInterface> {
4
4
  children: ComponentProps<'div'>['children'];
5
5
  className?: ComponentProps<'div'>['className'];
6
+ resetBody?: boolean;
6
7
  }
7
8
  export declare const MaxUI: import("react").ForwardRefExoticComponent<MaxUIProps & import("react").RefAttributes<HTMLDivElement>>;
8
9
  //# sourceMappingURL=MaxUI.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"MaxUI.d.ts","sourceRoot":"","sources":["../../../src/components/MaxUI/MaxUI.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,cAAc,EAAuB,MAAM,OAAO,CAAC;AAKjE,OAAO,EAAgB,KAAK,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AAE1E,MAAM,WAAW,UAAW,SAAQ,OAAO,CAAC,qBAAqB,CAAC;IAChE,QAAQ,EAAE,cAAc,CAAC,KAAK,CAAC,CAAC,UAAU,CAAC,CAAA;IAE3C,SAAS,CAAC,EAAE,cAAc,CAAC,KAAK,CAAC,CAAC,WAAW,CAAC,CAAA;CAC/C;AAED,eAAO,MAAM,KAAK,uGAgChB,CAAC"}
1
+ {"version":3,"file":"MaxUI.d.ts","sourceRoot":"","sources":["../../../src/components/MaxUI/MaxUI.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,cAAc,EAAkC,MAAM,OAAO,CAAC;AAK5E,OAAO,EAAgB,KAAK,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AAE1E,MAAM,WAAW,UAAW,SAAQ,OAAO,CAAC,qBAAqB,CAAC;IAChE,QAAQ,EAAE,cAAc,CAAC,KAAK,CAAC,CAAC,UAAU,CAAC,CAAA;IAC3C,SAAS,CAAC,EAAE,cAAc,CAAC,KAAK,CAAC,CAAC,WAAW,CAAC,CAAA;IAC9C,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB;AAED,eAAO,MAAM,KAAK,uGA2ChB,CAAC"}
@@ -4,8 +4,9 @@ declare const TypographyNamespace: {
4
4
  Title: import("react").ForwardRefExoticComponent<Omit<import("./parts").TypographyTitleProps, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
5
5
  Body: import("react").ForwardRefExoticComponent<Omit<import("./parts").TypographyBodyProps, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
6
6
  Label: import("react").ForwardRefExoticComponent<Omit<import("./parts").TypographyLabelProps, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
7
+ Text: import("react").ForwardRefExoticComponent<Omit<import("./parts").TypographyTextProps, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
7
8
  Action: import("react").ForwardRefExoticComponent<Omit<import("./parts").TypographyActionProps, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
8
9
  };
9
10
  export { TypographyNamespace as Typography };
10
- export type { TypographyActionProps, TypographyActionVariant, TypographyBodyProps, TypographyBodyVariant, TypographyDisplayProps, TypographyHeadlineProps, TypographyHeadlineVariant, TypographyLabelProps, TypographyLabelVariant, TypographyTitleProps, TypographyTitleVariant } from './parts';
11
+ export type { TypographyActionProps, TypographyActionVariant, TypographyBodyProps, TypographyBodyVariant, TypographyDisplayProps, TypographyHeadlineProps, TypographyHeadlineVariant, TypographyLabelProps, TypographyLabelVariant, TypographyTextColor, TypographyTextProps, TypographyTextVariant, TypographyTitleProps, TypographyTitleVariant } from './parts';
11
12
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Typography/index.ts"],"names":[],"mappings":"AASA,QAAA,MAAM,mBAAmB;;;;;;;CAOvB,CAAC;AAEH,OAAO,EAAE,mBAAmB,IAAI,UAAU,EAAE,CAAC;AAC7C,YAAY,EAAE,qBAAqB,EAAE,uBAAuB,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,uBAAuB,EAAE,yBAAyB,EAAE,oBAAoB,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Typography/index.ts"],"names":[],"mappings":"AAUA,QAAA,MAAM,mBAAmB;;;;;;;;CAQvB,CAAC;AAEH,OAAO,EAAE,mBAAmB,IAAI,UAAU,EAAE,CAAC;AAC7C,YAAY,EAAE,qBAAqB,EAAE,uBAAuB,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,uBAAuB,EAAE,yBAAyB,EAAE,oBAAoB,EAAE,sBAAsB,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { type ComponentProps } from 'react';
2
2
  import type { AsChildProp } from '../../../../types';
3
- export type TypographyActionVariant = 'large' | 'medium' | 'small' | 'label' | 'custom';
3
+ export type TypographyActionVariant = 'large' | 'medium' | 'small' | 'xsmall' | 'custom';
4
4
  export interface TypographyActionProps extends ComponentProps<'span'>, AsChildProp {
5
5
  variant?: TypographyActionVariant;
6
6
  }
@@ -1 +1 @@
1
- {"version":3,"file":"TypographyAction.d.ts","sourceRoot":"","sources":["../../../../../src/components/Typography/parts/TypographyAction/TypographyAction.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,cAAc,EAAc,MAAM,OAAO,CAAC;AAExD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAGrD,MAAM,MAAM,uBAAuB,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,OAAO,GAAG,QAAQ,CAAC;AAExF,MAAM,WAAW,qBAAsB,SAAQ,cAAc,CAAC,MAAM,CAAC,EAAE,WAAW;IAChF,OAAO,CAAC,EAAE,uBAAuB,CAAA;CAClC;AAED,eAAO,MAAM,gBAAgB,gIAuB3B,CAAC"}
1
+ {"version":3,"file":"TypographyAction.d.ts","sourceRoot":"","sources":["../../../../../src/components/Typography/parts/TypographyAction/TypographyAction.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,cAAc,EAAc,MAAM,OAAO,CAAC;AAExD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAGrD,MAAM,MAAM,uBAAuB,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAEzF,MAAM,WAAW,qBAAsB,SAAQ,cAAc,CAAC,MAAM,CAAC,EAAE,WAAW;IAChF,OAAO,CAAC,EAAE,uBAAuB,CAAA;CAClC;AAED,eAAO,MAAM,gBAAgB,gIAuB3B,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { type ComponentProps } from 'react';
2
2
  import { type AsChildProp } from '../../../../types';
3
- export type TypographyBodyVariant = 'large' | 'medium' | 'small' | 'small-strong' | 'small-caps' | 'custom';
3
+ export type TypographyBodyVariant = 'large' | 'large-strong' | 'medium' | 'medium-strong' | 'small' | 'small-strong' | 'custom';
4
4
  export interface TypographyBodyProps extends ComponentProps<'span'>, AsChildProp {
5
5
  variant?: TypographyBodyVariant;
6
6
  }
@@ -1 +1 @@
1
- {"version":3,"file":"TypographyBody.d.ts","sourceRoot":"","sources":["../../../../../src/components/Typography/parts/TypographyBody/TypographyBody.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,cAAc,EAA+B,MAAM,OAAO,CAAC;AAEzE,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAGrD,MAAM,MAAM,qBAAqB,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,cAAc,GAAG,YAAY,GAAG,QAAQ,CAAC;AAE5G,MAAM,WAAW,mBAAoB,SAAQ,cAAc,CAAC,MAAM,CAAC,EAAE,WAAW;IAC9E,OAAO,CAAC,EAAE,qBAAqB,CAAA;CAChC;AAED,eAAO,MAAM,cAAc,8HAuBzB,CAAC"}
1
+ {"version":3,"file":"TypographyBody.d.ts","sourceRoot":"","sources":["../../../../../src/components/Typography/parts/TypographyBody/TypographyBody.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,cAAc,EAA+B,MAAM,OAAO,CAAC;AAEzE,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAGrD,MAAM,MAAM,qBAAqB,GAAG,OAAO,GAAG,cAAc,GAAG,QAAQ,GAAG,eAAe,GAAG,OAAO,GAAG,cAAc,GAAG,QAAQ,CAAC;AAEhI,MAAM,WAAW,mBAAoB,SAAQ,cAAc,CAAC,MAAM,CAAC,EAAE,WAAW;IAC9E,OAAO,CAAC,EAAE,qBAAqB,CAAA;CAChC;AAED,eAAO,MAAM,cAAc,8HAuBzB,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { type ComponentProps } from 'react';
2
2
  import type { AsChildProp } from '../../../../types';
3
- export type TypographyHeadlineVariant = 'large-strong' | 'medium' | 'medium-strong' | 'small' | 'small-strong' | 'custom';
3
+ export type TypographyHeadlineVariant = 'large-strong' | 'medium' | 'small' | 'custom';
4
4
  export interface TypographyHeadlineProps extends ComponentProps<'span'>, AsChildProp {
5
5
  variant?: TypographyHeadlineVariant;
6
6
  }
@@ -1 +1 @@
1
- {"version":3,"file":"TypographyHeadline.d.ts","sourceRoot":"","sources":["../../../../../src/components/Typography/parts/TypographyHeadline/TypographyHeadline.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,cAAc,EAAc,MAAM,OAAO,CAAC;AAExD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAGrD,MAAM,MAAM,yBAAyB,GAAG,cAAc,GAAG,QAAQ,GAAG,eAAe,GAAG,OAAO,GAAG,cAAc,GAAG,QAAQ,CAAC;AAE1H,MAAM,WAAW,uBAAwB,SAAQ,cAAc,CAAC,MAAM,CAAC,EAAE,WAAW;IAClF,OAAO,CAAC,EAAE,yBAAyB,CAAA;CACpC;AAED,eAAO,MAAM,kBAAkB,kIAuB7B,CAAC"}
1
+ {"version":3,"file":"TypographyHeadline.d.ts","sourceRoot":"","sources":["../../../../../src/components/Typography/parts/TypographyHeadline/TypographyHeadline.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,cAAc,EAAc,MAAM,OAAO,CAAC;AAExD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAGrD,MAAM,MAAM,yBAAyB,GAAG,cAAc,GAAG,QAAQ,GAAG,OAAO,GAAG,QAAQ,CAAC;AAEvF,MAAM,WAAW,uBAAwB,SAAQ,cAAc,CAAC,MAAM,CAAC,EAAE,WAAW;IAClF,OAAO,CAAC,EAAE,yBAAyB,CAAA;CACpC;AAED,eAAO,MAAM,kBAAkB,kIAuB7B,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { type ComponentProps } from 'react';
2
2
  import type { AsChildProp } from '../../../../types';
3
- export type TypographyLabelVariant = 'large' | 'large-strong' | 'large-caps' | 'medium' | 'medium-strong' | 'small-strong' | 'small-caps' | 'custom';
3
+ export type TypographyLabelVariant = 'large' | 'large-strong' | 'medium' | 'medium-strong' | 'small' | 'small-strong' | 'custom';
4
4
  export interface TypographyLabelProps extends ComponentProps<'span'>, AsChildProp {
5
5
  variant?: TypographyLabelVariant;
6
6
  }
@@ -1 +1 @@
1
- {"version":3,"file":"TypographyLabel.d.ts","sourceRoot":"","sources":["../../../../../src/components/Typography/parts/TypographyLabel/TypographyLabel.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,cAAc,EAAc,MAAM,OAAO,CAAC;AAExD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAGrD,MAAM,MAAM,sBAAsB,GAAG,OAAO,GAAG,cAAc,GAAG,YAAY,GAAG,QAAQ,GAAG,eAAe,GAAG,cAAc,GAAG,YAAY,GAAG,QAAQ,CAAC;AAErJ,MAAM,WAAW,oBAAqB,SAAQ,cAAc,CAAC,MAAM,CAAC,EAAE,WAAW;IAC/E,OAAO,CAAC,EAAE,sBAAsB,CAAA;CACjC;AAED,eAAO,MAAM,eAAe,+HAuB1B,CAAC"}
1
+ {"version":3,"file":"TypographyLabel.d.ts","sourceRoot":"","sources":["../../../../../src/components/Typography/parts/TypographyLabel/TypographyLabel.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,cAAc,EAAc,MAAM,OAAO,CAAC;AAExD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAGrD,MAAM,MAAM,sBAAsB,GAAG,OAAO,GAAG,cAAc,GAAG,QAAQ,GAAG,eAAe,GAAG,OAAO,GAAG,cAAc,GAAG,QAAQ,CAAC;AAEjI,MAAM,WAAW,oBAAqB,SAAQ,cAAc,CAAC,MAAM,CAAC,EAAE,WAAW;IAC/E,OAAO,CAAC,EAAE,sBAAsB,CAAA;CACjC;AAED,eAAO,MAAM,eAAe,+HAuB1B,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { type ComponentProps } from 'react';
2
+ import type { AsChildProp } from '../../../../types';
3
+ export type TypographyTextVariant = 'hero' | 'header' | 'subheader' | 'title' | 'body' | 'body-strong' | 'detail' | 'detail-strong' | 'description' | 'description-strong' | 'label' | 'label-strong' | 'tag' | 'tag-strong' | 'note' | 'note-strong' | 'action-large' | 'action-medium' | 'action-small' | 'action-xsmall';
4
+ export type TypographyTextColor = 'primary' | 'secondary' | 'tertiary' | 'inherit';
5
+ export interface TypographyTextProps extends ComponentProps<'span'>, AsChildProp {
6
+ variant?: TypographyTextVariant;
7
+ color?: TypographyTextColor;
8
+ }
9
+ export declare const TypographyText: import("react").ForwardRefExoticComponent<Omit<TypographyTextProps, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
10
+ //# sourceMappingURL=TypographyText.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TypographyText.d.ts","sourceRoot":"","sources":["../../../../../src/components/Typography/parts/TypographyText/TypographyText.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,cAAc,EAAc,MAAM,OAAO,CAAC;AAExD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAGrD,MAAM,MAAM,qBAAqB,GAC7B,MAAM,GACN,QAAQ,GACR,WAAW,GACX,OAAO,GACP,MAAM,GACN,aAAa,GACb,QAAQ,GACR,eAAe,GACf,aAAa,GACb,oBAAoB,GACpB,OAAO,GACP,cAAc,GACd,KAAK,GACL,YAAY,GACZ,MAAM,GACN,aAAa,GACb,cAAc,GACd,eAAe,GACf,cAAc,GACd,eAAe,CAAC;AAEpB,MAAM,MAAM,mBAAmB,GAAG,SAAS,GAAG,WAAW,GAAG,UAAU,GAAG,SAAS,CAAC;AAEnF,MAAM,WAAW,mBAAoB,SAAQ,cAAc,CAAC,MAAM,CAAC,EAAE,WAAW;IAC9E,OAAO,CAAC,EAAE,qBAAqB,CAAA;IAC/B,KAAK,CAAC,EAAE,mBAAmB,CAAA;CAC5B;AAED,eAAO,MAAM,cAAc,8HAyBzB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { TypographyText, type TypographyTextColor, type TypographyTextProps, type TypographyTextVariant } from './TypographyText';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Typography/parts/TypographyText/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,KAAK,mBAAmB,EAAE,KAAK,mBAAmB,EAAE,KAAK,qBAAqB,EAAE,MAAM,kBAAkB,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { type ComponentProps } from 'react';
2
2
  import { type AsChildProp } from '../../../../types';
3
- export type TypographyTitleVariant = 'large-strong' | 'medium-strong' | 'small' | 'small-strong' | 'custom';
3
+ export type TypographyTitleVariant = 'large-strong' | 'medium' | 'medium-strong' | 'small' | 'small-strong' | 'custom';
4
4
  export interface TypographyTitleProps extends ComponentProps<'span'>, AsChildProp {
5
5
  variant?: TypographyTitleVariant;
6
6
  }
@@ -1 +1 @@
1
- {"version":3,"file":"TypographyTitle.d.ts","sourceRoot":"","sources":["../../../../../src/components/Typography/parts/TypographyTitle/TypographyTitle.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,cAAc,EAAc,MAAM,OAAO,CAAC;AAExD,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAGrD,MAAM,MAAM,sBAAsB,GAAG,cAAc,GAAG,eAAe,GAAG,OAAO,GAAG,cAAc,GAAG,QAAQ,CAAC;AAE5G,MAAM,WAAW,oBAAqB,SAAQ,cAAc,CAAC,MAAM,CAAC,EAAE,WAAW;IAC/E,OAAO,CAAC,EAAE,sBAAsB,CAAA;CACjC;AAED,eAAO,MAAM,eAAe,+HAuB1B,CAAC"}
1
+ {"version":3,"file":"TypographyTitle.d.ts","sourceRoot":"","sources":["../../../../../src/components/Typography/parts/TypographyTitle/TypographyTitle.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,cAAc,EAAc,MAAM,OAAO,CAAC;AAExD,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAGrD,MAAM,MAAM,sBAAsB,GAAG,cAAc,GAAG,QAAQ,GAAG,eAAe,GAAG,OAAO,GAAG,cAAc,GAAG,QAAQ,CAAC;AAEvH,MAAM,WAAW,oBAAqB,SAAQ,cAAc,CAAC,MAAM,CAAC,EAAE,WAAW;IAC/E,OAAO,CAAC,EAAE,sBAAsB,CAAA;CACjC;AAED,eAAO,MAAM,eAAe,+HAuB1B,CAAC"}
@@ -3,5 +3,6 @@ export { TypographyBody, type TypographyBodyProps, type TypographyBodyVariant }
3
3
  export { TypographyDisplay, type TypographyDisplayProps } from './TypographyDisplay';
4
4
  export { TypographyHeadline, type TypographyHeadlineProps, type TypographyHeadlineVariant } from './TypographyHeadline';
5
5
  export { TypographyLabel, type TypographyLabelProps, type TypographyLabelVariant } from './TypographyLabel';
6
+ export { TypographyText, type TypographyTextColor, type TypographyTextProps, type TypographyTextVariant } from './TypographyText';
6
7
  export { TypographyTitle, type TypographyTitleProps, type TypographyTitleVariant } from './TypographyTitle';
7
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Typography/parts/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,KAAK,qBAAqB,EAAE,KAAK,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAChH,OAAO,EAAE,cAAc,EAAE,KAAK,mBAAmB,EAAE,KAAK,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AACxG,OAAO,EAAE,iBAAiB,EAAE,KAAK,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AACrF,OAAO,EAAE,kBAAkB,EAAE,KAAK,uBAAuB,EAAE,KAAK,yBAAyB,EAAE,MAAM,sBAAsB,CAAC;AACxH,OAAO,EAAE,eAAe,EAAE,KAAK,oBAAoB,EAAE,KAAK,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAC5G,OAAO,EAAE,eAAe,EAAE,KAAK,oBAAoB,EAAE,KAAK,sBAAsB,EAAE,MAAM,mBAAmB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Typography/parts/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,KAAK,qBAAqB,EAAE,KAAK,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAChH,OAAO,EAAE,cAAc,EAAE,KAAK,mBAAmB,EAAE,KAAK,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AACxG,OAAO,EAAE,iBAAiB,EAAE,KAAK,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AACrF,OAAO,EAAE,kBAAkB,EAAE,KAAK,uBAAuB,EAAE,KAAK,yBAAyB,EAAE,MAAM,sBAAsB,CAAC;AACxH,OAAO,EAAE,eAAe,EAAE,KAAK,oBAAoB,EAAE,KAAK,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAC5G,OAAO,EAAE,cAAc,EAAE,KAAK,mBAAmB,EAAE,KAAK,mBAAmB,EAAE,KAAK,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AAClI,OAAO,EAAE,eAAe,EAAE,KAAK,oBAAoB,EAAE,KAAK,sBAAsB,EAAE,MAAM,mBAAmB,CAAC"}
@@ -1,9 +1,10 @@
1
- import { type ComponentProps, type ElementType, type ReactNode } from 'react';
1
+ import { type ComponentProps, type ElementType, type MouseEventHandler, type ReactNode } from 'react';
2
2
  export interface ButtonLikeProps {
3
3
  asChild?: boolean;
4
4
  children?: ReactNode;
5
5
  disabled?: boolean;
6
6
  loading?: boolean;
7
+ onClick?: MouseEventHandler<any>;
7
8
  rootElement?: ElementType;
8
9
  }
9
10
  export declare const useButtonLikeProps: (props: ButtonLikeProps) => ComponentProps<any>;
@@ -1 +1 @@
1
- {"version":3,"file":"use-button-like-props.d.ts","sourceRoot":"","sources":["../../src/hooks/use-button-like-props.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,cAAc,EAAE,KAAK,WAAW,EAGrC,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAEf,MAAM,WAAW,eAAe;IAC9B,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,WAAW,CAAC,EAAE,WAAW,CAAA;CAC1B;AAID,eAAO,MAAM,kBAAkB,GAAI,OAAO,eAAe,KAAG,cAAc,CAAC,GAAG,CA2C7E,CAAC"}
1
+ {"version":3,"file":"use-button-like-props.d.ts","sourceRoot":"","sources":["../../src/hooks/use-button-like-props.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,cAAc,EAAE,KAAK,WAAW,EAErC,KAAK,iBAAiB,EAEtB,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAEf,MAAM,WAAW,eAAe;IAC9B,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,OAAO,CAAC,EAAE,iBAAiB,CAAC,GAAG,CAAC,CAAA;IAChC,WAAW,CAAC,EAAE,WAAW,CAAA;CAC1B;AAID,eAAO,MAAM,kBAAkB,GAAI,OAAO,eAAe,KAAG,cAAc,CAAC,GAAG,CA0C7E,CAAC"}
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
- import{jsx as e,jsxs as t}from"react/jsx-runtime";import*as a from"react";import{forwardRef as n,createContext as r,useContext as l,Children as i,cloneElement as _,isValidElement as o,useRef as s,useEffect as c,useMemo as p,useState as d,useLayoutEffect 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,N=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 B(){return B=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},B.apply(null,arguments)}var I,S=function(e){return a.createElement("svg",B({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 T(){return T=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},T.apply(null,arguments)}var A,x,w=function(e){return a.createElement("svg",T({xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none"},e),I||(I=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"})))},k=Object.defineProperty,j=(e,t)=>k(e,"name",{value:t,configurable:!0});function H(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function P(...e){return t=>{let a=!1;const n=e.map(e=>{const n=H(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():H(e[t],null)}}}}function D(...e){return a.useCallback(P(...e),e)}j(H,"setRef"),j(P,"composeRefs"),j(D,"useComposedRefs");var $=Object.defineProperty,U=(e,t)=>$(e,"name",{value:t,configurable:!0});function R(e){const t=a.forwardRef((t,n)=>{let{children:r,...l}=t,i=null,_=!1;const o=[];Q(r)&&"function"==typeof ae&&(r=ae(r._payload)),a.Children.forEach(r,e=>{if(V(e)){_=!0;const t=e;let a="child"in t.props?t.props.child:t.props.children;Q(a)&&"function"==typeof ae&&(a=ae(a._payload)),i=X(t,a),o.push(i?.props?.children)}else o.push(e)}),i?i=a.cloneElement(i,void 0,o):!_&&1===a.Children.count(r)&&a.isValidElement(r)&&(i=r);const s=i?q(i):void 0,c=D(n,s);if(!i){if(r||0===r)throw new Error(_?te(e):ee(e));return r}const p=Z(l,i.props??{});return i.type!==a.Fragment&&(p.ref=n?c:s),a.cloneElement(i,p)});return t.displayName=`${e}.Slot`,t}U(R,"createSlot");var Y=R("Slot"),W=Symbol.for("radix.slottable");function F(e){const t=U(e=>"child"in e?e.children(e.child):e.children,"Slottable");return t.displayName=`${e}.Slottable`,t.__radixId=W,t}U(F,"createSlottable");var G=F("Slottable"),X=U((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 Z(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 q(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 V(e){return a.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===W}U(Z,"mergeProps"),U(q,"getElementRef"),U(V,"isSlottable");var J=Symbol.for("react.lazy");function Q(e){return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===J&&"_payload"in e&&K(e._payload)}function K(e){return"object"==typeof e&&null!==e&&"then"in e}U(Q,"isLazyComponent"),U(K,"isPromiseLike");var ee=U(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),te=U(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),ae=a[" use ".trim().toString()],ne="SvgButton__-Jm";const re=n((t,a)=>{const{className:n,asChild:r,...l}=t;return e(r?Y:"button",{ref:a,className:h(ne,n),...l})});re.displayName="SvgButton";const le=r({size:48}),ie=()=>l(le);var _e={};const oe=n((t,a)=>{const{className:n,onClick:r,...l}=t,{size:i}=ie(),_=(e=>e<40?12:e<54?16:e<72?20:24)(i);return e(re,{ref:a,className:h(_e.AvatarCloseButton,n),onClick:e=>{e.preventDefault(),r?.(e)},...l,children:e(E,{width:_,height:_})})});oe.displayName="AvatarCloseButton";const se=e=>"string"==typeof e?e:`${e}px`,ce=e=>{const{options:t,content:a}=e,{asChild:n,children:r}=t;if(!n)return"function"==typeof a?a(r):a;const l=i.only(r);return _(l,{children:"function"==typeof a?a(l.props.children):a})},pe=e=>void 0!==e&&!1!==e&&null!==e&&""!==e,de=()=>!!navigator.userAgent.match(/(iPad|iPhone|iPod)/g),ue=(...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)}},me=()=>{};var he={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 ve=n((a,n)=>{const{className:r,style:l,children:i,overlay:_,rightTopCorner:o,rightBottomCorner:s,innerClassNames:c,size:p=48,asChild:d,form:u="circle",...m}=a,v=d?Y:"div",y=h(he.AvatarContainer,he[`AvatarContainer_form_${u}`],r);return e(le.Provider,{value:{size:p},children:t(v,{ref:n,className:y,style:{"--MaxUi-AvatarContainer_size":`${p}px`,...l},...m,children:[e(G,{children:ce({options:{asChild:a.asChild,children:i},content:a=>t("span",{className:h(he.AvatarContainer__content,c?.content),children:[a,pe(_)&&e("span",{className:h(he.AvatarContainer__overlay,c?.overlay),children:_})]},"subtree-container")})}),pe(s)&&e("span",{className:h(he.AvatarContainer__rightBottomCorner,c?.rightBottomCorner),children:s}),pe(o)&&e("span",{className:h(he.AvatarContainer__rightTopCorner,c?.rightTopCorner),children:o})]})})});ve.displayName="AvatarContainer";var ye="AvatarIcon__ZUI";const ge=n((t,a)=>{const{className:n,...r}=t;return e("span",{ref:a,className:h(ye,n),...r})});ge.displayName="AvatarIcon";const fe=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&&o(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}:{}}},Ce=e=>{const t=s(e);return c(()=>{t.current=e}),p(()=>(...e)=>t.current?.(...e),[])},be=r({platform:"ios",colorScheme:"light"}),Ne=()=>l(be),Be=()=>{const{colorScheme:e}=Ne();return e},Ie=e=>{const{src:t,referrerPolicy:a}=e,[n,r]=d("idle");return u(()=>{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},Se=()=>{const{platform:e}=Ne();return e},Te=(e={})=>{const{listenChanges:t}=e,[a,n]=d(window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),r=e=>{n(()=>e.matches?"dark":"light")};return c(()=>{const e=window.matchMedia("(prefers-color-scheme: dark)");return n(()=>e.matches?"dark":"light"),t?(e.addEventListener("change",r),()=>{e.removeEventListener("change",r)}):me},[t]),a};var Ae={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 xe=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},we=n((t,a)=>{const{className:n,children:r,gradient:l="red",...i}=t,{size:_}=ie(),o=h(Ae.AvatarText,{[Ae[`AvatarText_gradient_${l}`]]:"custom"!==l},n);return e("span",{ref:a,className:o,...i,children:e("span",{className:Ae.AvatarText__in,style:xe(_),children:r})})});we.displayName="AvatarText";var Le="AvatarImage__H7-";const ze=n((t,a)=>{const{className:n,fallback:r,fallbackGradient:l="red",...i}=t,[_,o]=d("idle"),s=Ie({src:i.src??i.srcSet,referrerPolicy:i.referrerPolicy}),c=Ce(e=>{o(e)});return u(()=>{"idle"!==s&&c(s)},[s,c]),"error"===_?e(we,{gradient:l,children:r}):e("img",{ref:a,className:h(Le,n),...i})});ze.displayName="AvatarImage";var Ee={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 Oe=n((t,a)=>{const{className:n,...r}=t,{size:l}=ie(),i=(e=>e<40?"xs":e<54?"s":e<72?"m":"l")(l),_=h(Ee.AvatarOnlineDot,Ee[`AvatarOnlineDot_size_${i}`],n);return l<16||l>80?null:e("span",{ref:a,className:_,...r,children:e("span",{className:Ee.AvatarOnlineDot__dot})})});Oe.displayName="AvatarOnlineDot";var Me="AvatarOverlay__-nV";const ke=n((t,a)=>{const{className:n,onClick:r,...l}=t;return e("span",{ref:a,className:h(Me,n),onClick:e=>{e.preventDefault(),r?.(e)},...l})});ke.displayName="AvatarOverlay";const je=Object.assign({},{Container:ve,Image:ze,Overlay:ke,Icon:ge,Text:we,OnlineDot:Oe,CloseButton:oe});var He="ClearableInput__4PN",Pe="ClearableInput__button__iUo",De="ClearableInput__count__K7Z";const $e=n((a,n)=>{const{className:r,onChange:l,innerClassNames:i,withClearButton:_=!0,disabled:o,count:c,...p}=a,u=s(null),[m,v]=d(!p.value&&!p.defaultValue);return t("span",{className:h(He,r),children:[e("input",{ref:ue(u,n),className:h(i?.input),onChange:e=>{l?.(e),v(!e.target.value)},disabled:o,...p}),!m&&!o&&!!c&&e("div",{className:h(De,i?.count),children:c}),!m&&!o&&_&&e(re,{className:h(Pe,i?.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(N,{})})]})});$e.displayName="ClearableInput";var Ue="Container__yZR",Re="Container_fullWidth__2tY";const Ye=n((t,a)=>{const{className:n,asChild:r,fullWidth:l,...i}=t,_=r?Y:"div",o=h(Ue,{[Re]:l},n);return e(_,{ref:a,className:o,...i})});Ye.displayName="Container";var We="EllipsisText__DEC",Fe="EllipsisText_multiline__y4t",Ge="EllipsisText_singleLine__Arf";const Xe=n((t,a)=>{const{className:n,maxLines:r=1,style:l,asChild:i,..._}=t,o=i?Y:"span",s=h(We,{[Fe]:r>1,[Ge]:1===r},n);return e(o,{ref:a,className:s,style:{"--MaxUi-EllipsisText_linesCount":r,...l},..._})});Xe.displayName="EllipsisText";var Ze="Flex__pih";const qe=n((t,a)=>{const{className:n,display:r="flex",direction:l="row",align:i="flex-start",justify:_="start",asChild:o,wrap:s,style:c,gap:p,gapX:d,gapY:u,...m}=t;return e(o?Y:"div",{ref:a,className:h(Ze,n),style:{flexDirection:l,justifyContent:_,alignItems:i,flexWrap:s,...c,display:r,"--MaxUi-Flex_gapX":se(d??p??0),"--MaxUi-Flex_gapY":se(u??p??0)},...m})});qe.displayName="Flex";var Ve="Grid__lFk";const Je=n((t,a)=>{const{className:n,style:r,display:l="grid",align:i="start",justify:_="start",gap:o,gapX:s,gapY:c,cols:p,rows:d,asChild:u,...m}=t;return e(u?Y:"div",{ref:a,className:h(Ve,n),style:{justifyContent:_,alignItems:i,...r,display:l,"--MaxUi-Grid_gapX":se(s??o??0),"--MaxUi-Grid_gapY":se(c??o??0),"--MaxUi-Grid_cols":p??0,"--MaxUi-Grid_rows":d??0},...m})});Je.displayName="Grid";var Qe={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"};const Ke=n((t,a)=>{const{className:n,mode:r="primary",centeredX:l,centeredY:i,..._}=t,o=h(Qe.Panel,Qe[`Panel_mode_${r}`],{[Qe.Panel_centeredX]:l,[Qe.Panel_centeredY]:i},n);return e("div",{ref:a,className:o,..._})});Ke.displayName="Panel";var et="Ripple__dJ9",tt="Ripple_active__uv5";const at=n((t,a)=>{const{className:n,...r}=t,l=s(null),i=s(null),_=e=>{const t=e.currentTarget.getBoundingClientRect();((e,t)=>{null!==i.current&&(i.current.classList.remove(tt),i.current.style.top=t+"px",i.current.style.left=e+"px",i.current.classList.add(tt))})(e.clientX-(t.left??0),e.clientY-(t.top??0))};return c(()=>{if(i.current)return l.current=i.current.parentElement,null!==l.current&&l.current.addEventListener("pointerdown",_),()=>{null!==l.current&&l.current?.removeEventListener("pointerdown",_)}},[]),e("span",{ref:ue(a,i),role:"presentation","aria-hidden":!0,className:h(et,n),onAnimationEnd:()=>{null!==i.current&&i.current.classList.remove(tt)},...r})});at.displayName="Ripple";var nt="Tappable__O--",rt="Tappable_interactive__4Uv",lt="Tappable_disabled__0z8",it="Tappable_activeMode_ripple__3k-",_t="Tappable_activeMode_highlight__Hs-",ot="Tappable__ripple__Egr";const st=n((a,n)=>{const{className:r,disabled:l,asChild:i,children:_,as:s="div",...c}=a,p=i?Y:s,d=Se(),u=fe({asChild:i,children:_,disabled:l,rootElement:s}),m=(({onClick:e,href:t,children:a,asChild:n,parentChildren:r=a})=>n?!(!n||!o(r))&&("href"in r.props||"onClick"in r.props):!!e||!!t)(a),v="android"===d&&m&&!l,y=h(nt,{[rt]:m,[lt]:l,[_t]:!v,[it]:v},r);return t(p,{ref:n,className:y,...m?u:{},...c,children:[_,v&&e(at,{className:ot})]})});st.displayName="Tappable";var ct={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 pt=({size:t})=>e("div",{className:ct.androidSpinner,style:{width:t,height:t}}),dt=({size:t})=>e("div",{className:ct.iosSpinner,style:{width:t,height:t},children:Array.from({length:8},(t,a)=>e("div",{className:ct.bar},a))}),ut=n((t,a)=>{const{className:n,size:r=20,appearance:l="primary",...i}=t,_=Se(),o=h(ct.Spinner,ct[`Spinner_appearance_${l}`],n);return e("span",{ref:a,role:"status",className:o,...i,children:e("ios"===_?dt:pt,{size:r})})});ut.displayName="Spinner";var mt={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"},ht={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 vt=n((t,a)=>{const{className:n,value:r,rounded:l,variant:i="primary",..._}=t,o=h(ht.Counter,ht[`Counter_variant_${i}`],n),s=p(()=>l?Intl.NumberFormat("en",{notation:"compact"}).format(r):r,[l,r]);return e("span",{ref:a,className:o,..._,children:s})});vt.displayName="Counter";const yt=e=>{switch(e){case"xsmall":return 16;case"small":case"medium":return 20;case"large":return 24}},gt=e=>{switch(e){case"primary":case"destructive":case"overlay":return"contrast-static";case"secondary":return"primary";case"ghost":return"themed";case"primary-contrast":case"secondary-contrast":return"primary-static"}},ft=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"}}},Ct=n((a,n)=>{const{className:r,iconBefore:l,iconAfter:i,indicator:s,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",N=m?Y:b,B=Se(),I=fe({asChild:m,children:c,disabled:u,rootElement:b,loading:d}),S=u||d,T="android"===B,A=h(mt.Button,mt[`Button_variant_${f}`],mt[`Button_size_${g}`],{[mt.Button_loading]:d,[mt.Button_disabled]:u,[mt.Button_stretched]:y,[mt.Button_activeMode_highlight]:!S&&!T,[mt.Button_activeMode_ripple]:!S&&T},r);return t(N,{ref:n,className:A,onClick:e=>{d?e.preventDefault():p?.(e)},...I,...C,children:[pe(l)&&e("span",{className:h(mt.Button__iconBefore,v?.iconBefore),children:l}),d&&e("span",{className:h(mt.Button__spinnerContainer,v?.spinnerContainer),children:e(ut,{className:h(v?.spinner),size:yt(g),appearance:gt(f)})}),e(G,{children:ce({options:{asChild:m,children:c},content:t=>e(Xe,{className:h(mt.Button__content,v?.content),children:t},"subtree-container")})}),pe(s)&&e("span",{className:h(mt.Button__indicator,v?.indicator),children:(x=s,w=f,o(x)&&x.type===vt?_(x,{...ft(w)}):x)}),pe(i)&&e("span",{className:h(mt.Button__iconAfter,v?.iconAfter),children:i}),T&&!S&&e(at,{className:mt.Button__ripple})]});var x,w});Ct.displayName="Button";var bt={CellAction:"CellAction__vzN",CellAction_mode_primary:"CellAction_mode_primary__vZQ",CellAction_disabled:"CellAction_disabled__VZA",CellAction_mode_secondary:"CellAction_mode_secondary__AJk",CellAction_mode_themed:"CellAction_mode_themed__-Gg",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 Nt=n((a,n)=>{const{className:r,before:l,children:i,innerClassNames:_,asChild:o=!1,mode:s="primary",height:c="normal",showChevron:p=!1,...d}=a,u=h(bt.CellAction,bt[`CellAction_mode_${s}`],bt[`CellAction_height_${c}`],{[bt.CellAction_disabled]:d.disabled},r);return t(st,{ref:n,className:u,asChild:o,as:"button",parentChildren:i,...d,children:[pe(l)&&e("span",{className:h(bt.CellAction__before,_?.before),children:l}),e(G,{children:ce({options:{asChild:o,children:i},content:t=>e("span",{className:h(bt.CellAction__content,_?.content),children:t},"subtree-container")})}),p&&e(f,{className:h(bt.CellAction__chevron,_?.chevron)})]})});Nt.displayName="CellAction";var Bt={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 It=n((a,n)=>{const{className:r,titleStyle:l="caps",fullWidth:i=!1,children:_,after:o,innerClassNames:s,...c}=a,p=h(Bt.CellHeader,Bt[`CellHeader_titleStyle_${l}`],{[Bt.CellHeader_fullWidth]:i},r);return t("div",{ref:n,className:p,...c,children:[pe(_)&&e("div",{className:h(Bt.CellHeader__content,s?.content),children:_}),pe(o)&&e("div",{className:h(Bt.CellHeader__after,s?.after),children:o})]})});It.displayName="CellHeader";var St={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 Tt=n((a,n)=>{const{className:r,height:l="normal",before:i,innerClassNames:_,disabled:o,...s}=a,c=h(St.CellInput,St[`CellInput_height_${l}`],{[St.CellInput_disabled]:o},r);return t("label",{className:c,children:[pe(i)&&e(Xe,{className:h(St.CellInput__before,_?.before),maxLines:1,children:i}),e($e,{ref:n,className:h(St.CellInput__body,_?.body),innerClassNames:{input:h(St.CellInput__input,_?.input),clearButton:h(St.CellInput__clearButton,_?.clearButton)},type:"text",disabled:o,...s})]})});Tt.displayName="CellInput";var At={CellList:"CellList__1ou",CellList_filled:"CellList_filled__ikE",CellList__body:"CellList__body__ouS",CellList_mode_island:"CellList_mode_island__aCu"};const xt=n((a,n)=>{const{className:r,header:l,children:i,mode:_="full-width",filled:o="island"===_,...s}=a,c=h(At.CellList,At[`CellList_mode_${_}`],{[At.CellList_filled]:o},r);return t("div",{ref:n,className:c,...s,children:[pe(l)&&e("div",{className:At.CellList__header,children:l}),e("div",{className:At.CellList__body,children:i})]})});xt.displayName="CellList";var wt={CellSimple:"CellSimple__n0z",CellSimple_disabled:"CellSimple_disabled__T-3",CellSimple__title:"CellSimple__title__aYs",CellSimple__overline:"CellSimple__overline__Ncr",CellSimple__link:"CellSimple__link__ie-",CellSimple_subtitle_secondary:"CellSimple_subtitle_secondary__3uL",CellSimple__subtitle:"CellSimple__subtitle__oIF",CellSimple_subtitle_tertiary:"CellSimple_subtitle_tertiary__lz0",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__chevron:"CellSimple__chevron__cSs",CellSimple_separator:"CellSimple_separator__aOX"};const Lt=n((a,n)=>{const{className:r,title:l,subtitle:i,subtitleMode:_="secondary",before:o,after:s,children:c,overline:p,showChevron:d=!1,asChild:u=!1,disabled:m=!1,innerClassNames:v,height:y="normal",as:g="div",separator:C,link:b,...N}=a,B=h(wt.CellSimple,wt[`CellSimple_height_${y}`],wt[`CellSimple_subtitle_${_}`],{[wt.CellSimple_disabled]:m,[wt.CellSimple_separator]:C},r);return t(st,{ref:n,className:B,asChild:u,as:g,parentChildren:c,...N,children:[pe(o)&&e("div",{className:h(wt.CellSimple__before,v?.before),children:o}),e(G,{children:ce({options:{asChild:u,children:c},content:a=>t("div",{className:h(wt.CellSimple__content,v?.content),children:[pe(p)&&e("div",{className:h(wt.CellSimple__overline,v?.overline),children:p}),pe(l)&&e("div",{className:h(wt.CellSimple__title,v?.title),children:l}),pe(i)&&e("div",{className:h(wt.CellSimple__subtitle,v?.subtitle),children:i}),a,b&&e("a",{className:h(wt.CellSimple__link,v?.link),href:b,target:"_blank",rel:"noreferrer",children:b})]},"subtree-container")})}),(pe(s)||d)&&t("div",{className:h(wt.CellSimple__after,v?.after),children:[s,d&&e(f,{className:h(wt.CellSimple__chevron,v?.chevron)})]})]})});Lt.displayName="CellSimple";const zt=e=>{switch(e){case"xsmall":return 16;case"small":case"medium":return 20;case"large":return 24}},Et=e=>{switch(e){case"primary":case"destructive":case"overlay":return"contrast-static";case"secondary":case"ghost":return"primary";case"primary-contrast":case"secondary-contrast":return"primary-static"}};var Ot={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 Mt=n((a,n)=>{const{children:r,className:l,disabled:i,innerClassNames:_,loading:o,asChild:s=!1,size:c="medium",variant:p="primary",...d}=a,u="button",m=s?Y:u,v=Se(),y=fe({asChild:s,children:r,disabled:i,rootElement:u,loading:o}),g=i||o,f="android"===v,C=h(Ot.IconButton,Ot[`IconButton_variant_${p}`],Ot[`IconButton_size_${c}`],{[Ot.IconButton_loading]:o,[Ot.IconButton_disabled]:i,[Ot.IconButton_activeMode_highlight]:!g&&!f,[Ot.IconButton_activeMode_ripple]:!g&&f},l);return t(m,{ref:n,className:C,...y,...d,children:[o&&e("span",{className:h(Ot.IconButton__spinnerContainer,_?.spinnerContainer),children:e(ut,{className:h(_?.spinner),size:zt(c),appearance:Et(p)})}),e(G,{children:ce({options:{asChild:s,children:r},content:t=>e("span",{className:h(Ot.IconButton__content,_?.content),children:t},"subtree-container")})}),f&&!g&&e(at,{className:Ot.IconButton__ripple})]})});Mt.displayName="IconButton";var kt={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 jt=n((a,n)=>{const{className:r,innerClassNames:l,withClearButton:i,iconBefore:_,iconAfter:o,size:s="large",mode:c="primary",hint:p,...d}=a,u=h(kt.Input,kt[`Input_mode_${c}`],kt[`Input_size_${s}`],{[kt.Input_disabled]:d.disabled},r);return t("div",{className:h(l?.container),children:[t("label",{className:u,children:[pe(_)&&e("div",{className:h(kt.Input__iconBefore,l?.iconBefore),children:_}),e($e,{ref:n,className:h(kt.Input__body,l?.body),withClearButton:i,innerClassNames:{input:h(kt.Input__input,l?.input),clearButton:h(kt.Input__clearButton,l?.clearButton)},...d}),pe(o)&&e("div",{className:h(kt.Input__iconAfter,l?.iconAfter),children:o})]}),pe(p)&&e("div",{className:h(kt.Input__hint,l?.hint),children:p})]})});jt.displayName="Input";var Ht={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 Pt=n((t,a)=>{const{children:n,className:r,colorScheme:l,platform:i=(de()?"ios":"android")}=t,_=Te({listenChanges:!l}),o=l??_,s=p(()=>({colorScheme:o,platform:i}),[o,i]),c=h(Ht.MaxUI,Ht[`MaxUI_colorScheme_${o}`],Ht[`MaxUI_platform_${i}`],r);return e(be.Provider,{value:s,children:e("div",{ref:a,className:c,children:n})})});Pt.displayName="MaxUI";var Dt={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 $t=n((a,n)=>{const{className:r,...l}=a,i=Se(),_=h(Dt.Switch,Dt[`Switch_platform_${i}`],r);return t("span",{className:_,children:[e("input",{ref:n,type:"checkbox",role:"switch",className:Dt.Switch__input,...l}),e("span",{className:Dt.Switch__toggle,children:e("span",{className:Dt.Switch__thumb})})]})});$t.displayName="Switch";var Ut={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 Rt=n((t,a)=>{const{className:n,innerClassNames:r,mode:l="primary",...i}=t,_=h(Ut.Textarea,Ut[`Textarea_mode_${l}`],{[Ut.Textarea_disabled]:i.disabled},n);return e("div",{className:_,children:e("textarea",{ref:a,className:h(Ut.Textarea__textarea,r?.textarea),...i})})});Rt.displayName="Textarea";var Yt={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 Wt=n((t,a)=>{const{className:n,variant:r="large",asChild:l,...i}=t,_=l?Y:"span",o=h(Yt.TypographyAction,Yt[`TypographyAction_variant_${r}`],n);return e(_,{ref:a,className:o,...i})});Wt.displayName="TypographyAction";var Ft={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 Gt=n((t,a)=>{const{className:n,variant:r="large-strong",asChild:l,...i}=t,_=l?Y:"span",o=h(Ft.TypographyBody,Ft[`TypographyBody_variant_${r}`],n);return e(_,{ref:a,className:o,...i})});Gt.displayName="TypographyBody";var Xt="TypographyDisplay__6MW";const Zt=n((t,a)=>{const{className:n,asChild:r,...l}=t;return e(r?Y:"span",{ref:a,className:h(Xt,n),...l})});Zt.displayName="TypographyDisplay";var qt={"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 Vt=n((t,a)=>{const{className:n,variant:r="large-strong",asChild:l,...i}=t,_=l?Y:"span",o=h(qt.TypographyHeadline,qt[`TypographyHeadline_variant_${r}`],n);return e(_,{ref:a,className:o,...i})});Vt.displayName="TypographyHeadline";var Jt={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 Qt=n((t,a)=>{const{className:n,variant:r="large",asChild:l,...i}=t,_=l?Y:"span",o=h(Jt.TypographyLabel,Jt[`TypographyLabel_variant_${r}`],n);return e(_,{ref:a,className:o,...i})});Qt.displayName="TypographyLabel";var Kt={"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 ea=n((t,a)=>{const{className:n,variant:r="large-strong",asChild:l,...i}=t,_=l?Y:"span",o=h(Kt.TypographyTitle,Kt[`TypographyTitle_variant_${r}`],n);return e(_,{ref:a,className:o,...i})});ea.displayName="TypographyTitle";const ta=Object.assign({},{Display:Zt,Headline:Vt,Title:ea,Body:Gt,Label:Qt,Action:Wt});export{je as Avatar,Ct as Button,Nt as CellAction,It as CellHeader,Tt as CellInput,xt as CellList,Lt as CellSimple,$e as ClearableInput,Ye as Container,vt as Counter,Xe as EllipsisText,qe as Flex,Je as Grid,f as Icon16Chevron,N as Icon16CloseIos,S as Icon16SearchOutline,w as Icon20CloseAndroid,E as Icon20CloseFilled,M as Icon24CloseAndroid,Mt as IconButton,jt as Input,Pt as MaxUI,be as MaxUIContext,Ke as Panel,at as Ripple,Y as Slot,G as Slottable,ut as Spinner,re as SvgButton,$t as Switch,st as Tappable,Rt as Textarea,ta as Typography,ce as getSubtree,pe as hasReactNode,ue as mergeRefs,Ne as useAppearance,fe as useButtonLikeProps,Ce as useCallbackRef,Be as useColorScheme,Ie as useImageLoadingStatus,Se as usePlatform,Te as useSystemColorScheme};
1
+ import{jsx as e,jsxs as t}from"react/jsx-runtime";import*as a from"react";import{forwardRef as n,createContext as r,useContext as l,Children as i,cloneElement as _,isValidElement as o,useRef as s,useEffect as c,useMemo as p,useState as d,useLayoutEffect 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 y;function v(){return v=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},v.apply(null,arguments)}var g,C=function(e){return a.createElement("svg",v({xmlns:"http://www.w3.org/2000/svg",width:12,height:16,fill:"none"},e),y||(y=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 f(){return f=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},f.apply(null,arguments)}var T,b=function(e){return a.createElement("svg",f({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 x(){return x=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},x.apply(null,arguments)}var N,B=function(e){return a.createElement("svg",x({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none"},e),T||(T=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 I(){return I=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},I.apply(null,arguments)}var S,A,w=function(e){return a.createElement("svg",I({xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none"},e),N||(N=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 z(){return z=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},z.apply(null,arguments)}var L,E=function(e){return a.createElement("svg",z({xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none"},e),S||(S=a.createElement("circle",{cx:10,cy:10,r:10,fill:"currentColor"})),A||(A=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 M(){return M=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},M.apply(null,arguments)}var k=function(e){return a.createElement("svg",M({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},e),L||(L=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"})))},O=Object.defineProperty,j=(e,t)=>O(e,"name",{value:t,configurable:!0});function P(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function H(...e){return t=>{let a=!1;const n=e.map(e=>{const n=P(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():P(e[t],null)}}}}function U(...e){return a.useCallback(H(...e),e)}j(P,"setRef"),j(H,"composeRefs"),j(U,"useComposedRefs");var $=Object.defineProperty,R=(e,t)=>$(e,"name",{value:t,configurable:!0});function Y(e){const t=a.forwardRef((t,n)=>{let{children:r,...l}=t,i=null,_=!1;const o=[];Q(r)&&"function"==typeof ae&&(r=ae(r._payload)),a.Children.forEach(r,e=>{if(q(e)){_=!0;const t=e;let a="child"in t.props?t.props.child:t.props.children;Q(a)&&"function"==typeof ae&&(a=ae(a._payload)),i=G(t,a),o.push(i?.props?.children)}else o.push(e)}),i?i=a.cloneElement(i,void 0,o):!_&&1===a.Children.count(r)&&a.isValidElement(r)&&(i=r);const s=i?V(i):void 0,c=U(n,s);if(!i){if(r||0===r)throw new Error(_?te(e):ee(e));return r}const p=Z(l,i.props??{});return i.type!==a.Fragment&&(p.ref=n?c:s),a.cloneElement(i,p)});return t.displayName=`${e}.Slot`,t}R(Y,"createSlot");var D=Y("Slot"),W=Symbol.for("radix.slottable");function X(e){const t=R(e=>"child"in e?e.children(e.child):e.children,"Slottable");return t.displayName=`${e}.Slottable`,t.__radixId=W,t}R(X,"createSlottable");var F=X("Slottable"),G=R((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 Z(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 V(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 q(e){return a.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===W}R(Z,"mergeProps"),R(V,"getElementRef"),R(q,"isSlottable");var J=Symbol.for("react.lazy");function Q(e){return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===J&&"_payload"in e&&K(e._payload)}function K(e){return"object"==typeof e&&null!==e&&"then"in e}R(Q,"isLazyComponent"),R(K,"isPromiseLike");var ee=R(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),te=R(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),ae=a[" use ".trim().toString()],ne="SvgButton__-Jm";const re=n((t,a)=>{const{className:n,asChild:r,...l}=t;return e(r?D:"button",{ref:a,className:h(ne,n),...l})});re.displayName="SvgButton";const le=r({size:48}),ie=()=>l(le);var _e={};const oe=n((t,a)=>{const{className:n,onClick:r,...l}=t,{size:i}=ie(),_=(e=>e<40?12:e<54?16:e<72?20:24)(i);return e(re,{ref:a,className:h(_e.AvatarCloseButton,n),onClick:e=>{e.preventDefault(),r?.(e)},...l,children:e(E,{width:_,height:_})})});oe.displayName="AvatarCloseButton";const se=e=>"string"==typeof e?e:`${e}px`,ce=e=>{const{options:t,content:a}=e,{asChild:n,children:r}=t;if(!n)return"function"==typeof a?a(r):a;const l=i.only(r);return _(l,{children:"function"==typeof a?a(l.props.children):a})},pe=e=>void 0!==e&&!1!==e&&null!==e&&""!==e,de=()=>!!navigator.userAgent.match(/(iPad|iPhone|iPod)/g),ue=(...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)}},me=()=>{},he=[{maxExclusive:40,size:"xs"},{maxExclusive:52,size:"s"},{maxExclusive:72,size:"m"}];var ye={AvatarContainer:"AvatarContainer__7c-",AvatarContainer_form_circle:"AvatarContainer_form_circle__J44",AvatarContainer__content:"AvatarContainer__content__h8v",AvatarContainer_form_squircle:"AvatarContainer_form_squircle__1i0",AvatarContainer__onlineStatus:"AvatarContainer__onlineStatus__cdV",AvatarContainer_onlineStatus_xs:"AvatarContainer_onlineStatus_xs__sy8",AvatarContainer_onlineStatus_s:"AvatarContainer_onlineStatus_s__YBz",AvatarContainer_onlineStatus_m:"AvatarContainer_onlineStatus_m__IU3",AvatarContainer_onlineStatus_l:"AvatarContainer_onlineStatus_l__X3w",AvatarContainer__overlay:"AvatarContainer__overlay__qul",AvatarContainer__rightBottomCorner:"AvatarContainer__rightBottomCorner__kZG",AvatarContainer__rightTopCorner:"AvatarContainer__rightTopCorner__y4y"};const ve=n((a,n)=>{const{className:r,style:l,children:i,overlay:_,rightTopCorner:o,rightBottomCorner:s,innerClassNames:c,size:p=40,asChild:d,form:u="circle",onlineStatus:m=!1,...y}=a,v=d?D:"div",{normalizedSize:g,hasOnlineStatus:C,onlineStatusSize:f}=(({size:e,onlineStatus:t,isCircle:a})=>{const n=Number.isFinite(e)?Math.min(200,Math.max(16,e)):40;return{normalizedSize:n,hasOnlineStatus:t&&a&&n>=24&&n<=80,onlineStatusSize:(r=n,he.find(({maxExclusive:e})=>r<e)?.size??"l")};var r})({size:p,onlineStatus:m,isCircle:"circle"===u}),T=!m&&g>24&&pe(s),b=h(ye.AvatarContainer,ye[`AvatarContainer_form_${u}`],C&&ye.AvatarContainer_onlineStatus,C&&ye[`AvatarContainer_onlineStatus_${f}`],r);return e(le.Provider,{value:{size:g},children:t(v,{ref:n,className:b,style:{"--MaxUi-AvatarContainer_size":`${g}px`,...l},...y,children:[e(F,{children:ce({options:{asChild:a.asChild,children:i},content:a=>t("span",{className:h(ye.AvatarContainer__content,c?.content),children:[a,pe(_)&&e("span",{className:h(ye.AvatarContainer__overlay,c?.overlay),children:_})]},"subtree-container")})}),C&&e("span",{className:ye.AvatarContainer__onlineStatus,"aria-hidden":"true"}),T&&e("span",{className:h(ye.AvatarContainer__rightBottomCorner,c?.rightBottomCorner),children:s}),pe(o)&&e("span",{className:h(ye.AvatarContainer__rightTopCorner,c?.rightTopCorner),children:o})]})})});ve.displayName="AvatarContainer";var ge="AvatarIcon__ZUI";const Ce=n((t,a)=>{const{className:n,...r}=t;return e("span",{ref:a,className:h(ge,n),...r})});Ce.displayName="AvatarIcon";const fe=e=>{const{asChild:t,children:a,rootElement:n,disabled:r,loading:l,onClick:i}=e,_=Boolean(r||l),s=_?e=>{e.preventDefault()}:i;if(!t&&"button"===n){return{disabled:_,onClick:s,...l?{"aria-busy":!0,"aria-disabled":!0}:{}}}if(t&&o(a)){const{type:e}=a;if("a"===e){return{"aria-disabled":_,onClick:s,...l?{"aria-busy":!0}:{},...r?{tabIndex:-1}:{}}}}return{role:"button",tabIndex:r?-1:0,"aria-disabled":_,onClick:s,...l?{"aria-busy":!0}:{}}},Te=e=>{const t=s(e);return c(()=>{t.current=e}),p(()=>(...e)=>t.current?.(...e),[])},be=r({platform:"ios",colorScheme:"light"}),xe=()=>l(be),Ne=()=>{const{colorScheme:e}=xe();return e},Be=e=>{const{src:t,referrerPolicy:a}=e,[n,r]=d("idle");return u(()=>{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},Ie=()=>{const{platform:e}=xe();return e},Se=(e={})=>{const{listenChanges:t}=e,[a,n]=d(window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),r=e=>{n(()=>e.matches?"dark":"light")};return c(()=>{const e=window.matchMedia("(prefers-color-scheme: dark)");return n(()=>e.matches?"dark":"light"),t?(e.addEventListener("change",r),()=>{e.removeEventListener("change",r)}):me},[t]),a};var Ae={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 we=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},ze=n((t,a)=>{const{className:n,children:r,gradient:l="red",...i}=t,{size:_}=ie(),o=h(Ae.AvatarText,{[Ae[`AvatarText_gradient_${l}`]]:"custom"!==l},n);return e("span",{ref:a,className:o,...i,children:e("span",{className:Ae.AvatarText__in,style:we(_),children:r})})});ze.displayName="AvatarText";var Le="AvatarImage__H7-";const Ee=n((t,a)=>{const{className:n,fallback:r,fallbackGradient:l="red",...i}=t,[_,o]=d("idle"),s=Be({src:i.src??i.srcSet,referrerPolicy:i.referrerPolicy}),c=Te(e=>{o(e)});return u(()=>{"idle"!==s&&c(s)},[s,c]),"error"===_?e(ze,{gradient:l,children:r}):e("img",{ref:a,className:h(Le,n),...i})});Ee.displayName="AvatarImage";var Me="AvatarOverlay__-nV";const ke=n((t,a)=>{const{className:n,onClick:r,...l}=t;return e("span",{ref:a,className:h(Me,n),onClick:e=>{e.preventDefault(),r?.(e)},...l})});ke.displayName="AvatarOverlay";const Oe=Object.assign({},{Container:ve,Image:Ee,Overlay:ke,Icon:Ce,Text:ze,CloseButton:oe});var je="ClearableInput__4PN",Pe="ClearableInput__button__iUo",He="ClearableInput__count__K7Z";const Ue=e=>void 0===e||""===e||Array.isArray(e)&&0===e.length,$e=n((a,n)=>{const{className:r,onChange:l,innerClassNames:i,withClearButton:_=!0,disabled:o,count:c,...p}=a,u=s(null),m=void 0!==p.value,[y,v]=d(()=>Ue(p.defaultValue)),g=m?Ue(p.value):y;return t("span",{className:h(je,r),children:[e("input",{ref:ue(u,n),className:h(i?.input),onChange:e=>{m||v(""===e.currentTarget.value),l?.(e)},disabled:o,...p}),!g&&!o&&!!c&&e("div",{className:h(He,i?.count),children:c}),!g&&!o&&_&&e(re,{type:"button",className:h(Pe,i?.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(b,{})})]})});$e.displayName="ClearableInput";var Re="Container__yZR",Ye="Container_fullWidth__2tY";const De=n((t,a)=>{const{className:n,asChild:r,fullWidth:l,...i}=t,_=r?D:"div",o=h(Re,{[Ye]:l},n);return e(_,{ref:a,className:o,...i})});De.displayName="Container";var We="EllipsisText__DEC",Xe="EllipsisText_multiline__y4t",Fe="EllipsisText_singleLine__Arf";const Ge=n((t,a)=>{const{className:n,maxLines:r=1,style:l,asChild:i,..._}=t,o=i?D:"span",s=h(We,{[Xe]:r>1,[Fe]:1===r},n);return e(o,{ref:a,className:s,style:{"--MaxUi-EllipsisText_linesCount":r,...l},..._})});Ge.displayName="EllipsisText";var Ze="Flex__pih";const Ve=n((t,a)=>{const{className:n,display:r="flex",direction:l="row",align:i="flex-start",justify:_="start",asChild:o,wrap:s,style:c,gap:p,gapX:d,gapY:u,...m}=t;return e(o?D:"div",{ref:a,className:h(Ze,n),style:{flexDirection:l,justifyContent:_,alignItems:i,flexWrap:s,...c,display:r,"--MaxUi-Flex_gapX":se(d??p??0),"--MaxUi-Flex_gapY":se(u??p??0)},...m})});Ve.displayName="Flex";var qe="Grid__lFk";const Je=n((t,a)=>{const{className:n,style:r,display:l="grid",align:i="start",justify:_="start",gap:o,gapX:s,gapY:c,cols:p,rows:d,asChild:u,...m}=t;return e(u?D:"div",{ref:a,className:h(qe,n),style:{justifyContent:_,alignItems:i,...r,display:l,"--MaxUi-Grid_gapX":se(s??o??0),"--MaxUi-Grid_gapY":se(c??o??0),"--MaxUi-Grid_cols":p??0,"--MaxUi-Grid_rows":d??0},...m})});Je.displayName="Grid";var Qe={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"};const Ke=n((t,a)=>{const{className:n,mode:r="primary",centeredX:l,centeredY:i,..._}=t,o=h(Qe.Panel,Qe[`Panel_mode_${r}`],{[Qe.Panel_centeredX]:l,[Qe.Panel_centeredY]:i},n);return e("div",{ref:a,className:o,..._})});Ke.displayName="Panel";var et="Ripple__dJ9",tt="Ripple_active__uv5";const at=n((t,a)=>{const{className:n,...r}=t,l=s(null),i=s(null),_=e=>{const t=e.currentTarget.getBoundingClientRect();((e,t)=>{null!==i.current&&(i.current.classList.remove(tt),i.current.style.top=t+"px",i.current.style.left=e+"px",i.current.classList.add(tt))})(e.clientX-(t.left??0),e.clientY-(t.top??0))};return c(()=>{if(i.current)return l.current=i.current.parentElement,null!==l.current&&l.current.addEventListener("pointerdown",_),()=>{null!==l.current&&l.current?.removeEventListener("pointerdown",_)}},[]),e("span",{ref:ue(a,i),role:"presentation","aria-hidden":!0,className:h(et,n),onAnimationEnd:()=>{null!==i.current&&i.current.classList.remove(tt)},...r})});at.displayName="Ripple";var nt="Tappable__O--",rt="Tappable_interactive__4Uv",lt="Tappable_disabled__0z8",it="Tappable_activeMode_ripple__3k-",_t="Tappable_activeMode_highlight__Hs-",ot="Tappable__ripple__Egr";const st=n((a,n)=>{const{className:r,disabled:l,asChild:i,children:_,onClick:s,parentChildren:c,as:p="div",...d}=a,u=i?D:p,m=Ie(),y=fe({asChild:i,children:_,disabled:l,onClick:s,rootElement:p}),v=(({onClick:e,href:t,children:a,asChild:n,parentChildren:r=a})=>n?!(!n||!o(r))&&("href"in r.props||"onClick"in r.props):!!e||!!t)({onClick:s,href:d.href,children:_,asChild:i,parentChildren:c}),g="android"===m&&v&&!l,C=h(nt,{[rt]:v,[lt]:l,[_t]:!g,[it]:g},r);return t(u,{ref:n,className:C,...v?y:{},...d,children:[_,g&&e(at,{className:ot})]})});st.displayName="Tappable";var ct={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 pt=({size:t})=>e("div",{className:ct.androidSpinner,style:{width:t,height:t}}),dt=({size:t})=>e("div",{className:ct.iosSpinner,style:{width:t,height:t},children:Array.from({length:8},(t,a)=>e("div",{className:ct.bar},a))}),ut=n((t,a)=>{const{className:n,size:r=20,appearance:l="primary",...i}=t,_=Ie(),o=h(ct.Spinner,ct[`Spinner_appearance_${l}`],n);return e("span",{ref:a,role:"status",className:o,...i,children:e("ios"===_?dt:pt,{size:r})})});ut.displayName="Spinner";var mt={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"},ht={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 yt=n((t,a)=>{const{className:n,value:r,rounded:l,variant:i="primary",..._}=t,o=h(ht.Counter,ht[`Counter_variant_${i}`],n),s=p(()=>l?Intl.NumberFormat("en",{notation:"compact"}).format(r):r,[l,r]);return e("span",{ref:a,className:o,..._,children:s})});yt.displayName="Counter";const vt=e=>{switch(e){case"xsmall":return 16;case"small":case"medium":return 20;case"large":return 24}},gt=e=>{switch(e){case"primary":case"destructive":case"overlay":return"contrast-static";case"secondary":return"primary";case"ghost":return"themed";case"primary-contrast":case"secondary-contrast":return"primary-static"}},Ct=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"}}},ft=n((a,n)=>{const{className:r,iconBefore:l,iconAfter:i,indicator:s,children:c,onClick:p,loading:d,disabled:u=!1,asChild:m=!1,innerClassNames:y,stretched:v=!1,size:g="medium",variant:C="primary",...f}=a,T="button",b=m?D:T,x=Ie(),N=fe({asChild:m,children:c,disabled:u,loading:d,onClick:p,rootElement:T}),B=u||d,I="android"===x,S=h(mt.Button,mt[`Button_variant_${C}`],mt[`Button_size_${g}`],{[mt.Button_loading]:d,[mt.Button_disabled]:u,[mt.Button_stretched]:v,[mt.Button_activeMode_highlight]:!B&&!I,[mt.Button_activeMode_ripple]:!B&&I},r);return t(b,{ref:n,className:S,...N,...f,children:[pe(l)&&e("span",{className:h(mt.Button__iconBefore,y?.iconBefore),children:l}),d&&e("span",{className:h(mt.Button__spinnerContainer,y?.spinnerContainer),children:e(ut,{className:h(y?.spinner),size:vt(g),appearance:gt(C)})}),e(F,{children:ce({options:{asChild:m,children:c},content:t=>e(Ge,{className:h(mt.Button__content,y?.content),children:t},"subtree-container")})}),pe(s)&&e("span",{className:h(mt.Button__indicator,y?.indicator),children:(A=s,w=C,o(A)&&A.type===yt?_(A,{...Ct(w)}):A)}),pe(i)&&e("span",{className:h(mt.Button__iconAfter,y?.iconAfter),children:i}),I&&!B&&e(at,{className:mt.Button__ripple})]});var A,w});ft.displayName="Button";var Tt={CellAction:"CellAction__vzN",CellAction_mode_primary:"CellAction_mode_primary__vZQ",CellAction_disabled:"CellAction_disabled__VZA",CellAction_mode_secondary:"CellAction_mode_secondary__AJk",CellAction_mode_themed:"CellAction_mode_themed__-Gg",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 bt=n((a,n)=>{const{className:r,before:l,children:i,innerClassNames:_,asChild:o=!1,mode:s="primary",height:c="normal",showChevron:p=!1,...d}=a,u=h(Tt.CellAction,Tt[`CellAction_mode_${s}`],Tt[`CellAction_height_${c}`],{[Tt.CellAction_disabled]:d.disabled},r);return t(st,{ref:n,className:u,asChild:o,as:"button",parentChildren:i,...d,children:[pe(l)&&e("span",{className:h(Tt.CellAction__before,_?.before),children:l}),e(F,{children:ce({options:{asChild:o,children:i},content:t=>e("span",{className:h(Tt.CellAction__content,_?.content),children:t},"subtree-container")})}),p&&e(C,{className:h(Tt.CellAction__chevron,_?.chevron)})]})});bt.displayName="CellAction";var xt={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 Nt=n((a,n)=>{const{className:r,titleStyle:l="caps",fullWidth:i=!1,children:_,after:o,innerClassNames:s,...c}=a,p=h(xt.CellHeader,xt[`CellHeader_titleStyle_${l}`],{[xt.CellHeader_fullWidth]:i},r);return t("div",{ref:n,className:p,...c,children:[pe(_)&&e("div",{className:h(xt.CellHeader__content,s?.content),children:_}),pe(o)&&e("div",{className:h(xt.CellHeader__after,s?.after),children:o})]})});Nt.displayName="CellHeader";var Bt={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 It=n((a,n)=>{const{className:r,height:l="normal",before:i,innerClassNames:_,disabled:o,...s}=a,c=h(Bt.CellInput,Bt[`CellInput_height_${l}`],{[Bt.CellInput_disabled]:o},r);return t("label",{className:c,children:[pe(i)&&e(Ge,{className:h(Bt.CellInput__before,_?.before),maxLines:1,children:i}),e($e,{ref:n,className:h(Bt.CellInput__body,_?.body),innerClassNames:{input:h(Bt.CellInput__input,_?.input),clearButton:h(Bt.CellInput__clearButton,_?.clearButton)},type:"text",disabled:o,...s})]})});It.displayName="CellInput";var St={CellList:"CellList__1ou",CellList_filled:"CellList_filled__ikE",CellList__body:"CellList__body__ouS",CellList_mode_island:"CellList_mode_island__aCu"};const At=n((a,n)=>{const{className:r,header:l,children:i,mode:_="full-width",filled:o="island"===_,...s}=a,c=h(St.CellList,St[`CellList_mode_${_}`],{[St.CellList_filled]:o},r);return t("div",{ref:n,className:c,...s,children:[pe(l)&&e("div",{className:St.CellList__header,children:l}),e("div",{className:St.CellList__body,children:i})]})});At.displayName="CellList";var wt={CellSimple:"CellSimple__n0z",CellSimple_disabled:"CellSimple_disabled__T-3",CellSimple__title:"CellSimple__title__aYs",CellSimple__overline:"CellSimple__overline__Ncr",CellSimple__link:"CellSimple__link__ie-",CellSimple_subtitle_secondary:"CellSimple_subtitle_secondary__3uL",CellSimple__subtitle:"CellSimple__subtitle__oIF",CellSimple_subtitle_tertiary:"CellSimple_subtitle_tertiary__lz0",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__chevron:"CellSimple__chevron__cSs",CellSimple_separator:"CellSimple_separator__aOX"};const zt=n((a,n)=>{const{className:r,title:l,subtitle:i,subtitleMode:_="secondary",before:o,after:s,children:c,overline:p,showChevron:d=!1,asChild:u=!1,disabled:m=!1,innerClassNames:y,height:v="normal",as:g="div",separator:f,link:T,...b}=a,x=h(wt.CellSimple,wt[`CellSimple_height_${v}`],wt[`CellSimple_subtitle_${_}`],{[wt.CellSimple_disabled]:m,[wt.CellSimple_separator]:f},r);return t(st,{ref:n,className:x,asChild:u,as:g,disabled:m,parentChildren:c,...b,children:[pe(o)&&e("div",{className:h(wt.CellSimple__before,y?.before),children:o}),e(F,{children:ce({options:{asChild:u,children:c},content:a=>t("div",{className:h(wt.CellSimple__content,y?.content),children:[pe(p)&&e("div",{className:h(wt.CellSimple__overline,y?.overline),children:p}),pe(l)&&e("div",{className:h(wt.CellSimple__title,y?.title),children:l}),pe(i)&&e("div",{className:h(wt.CellSimple__subtitle,y?.subtitle),children:i}),a,T&&e("a",{className:h(wt.CellSimple__link,y?.link),href:T,target:"_blank",rel:"noreferrer",children:T})]},"subtree-container")})}),(pe(s)||d)&&t("div",{className:h(wt.CellSimple__after,y?.after),children:[s,d&&e(C,{className:h(wt.CellSimple__chevron,y?.chevron)})]})]})});zt.displayName="CellSimple";const Lt=e=>{switch(e){case"xsmall":return 16;case"small":case"medium":return 20;case"large":return 24}},Et=e=>{switch(e){case"primary":case"destructive":case"overlay":return"contrast-static";case"secondary":case"ghost":return"primary";case"primary-contrast":case"secondary-contrast":return"primary-static"}};var Mt={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 kt=n((a,n)=>{const{children:r,className:l,disabled:i,innerClassNames:_,loading:o,onClick:s,asChild:c=!1,size:p="medium",variant:d="primary",...u}=a,m="button",y=c?D:m,v=Ie(),g=fe({asChild:c,children:r,disabled:i,loading:o,onClick:s,rootElement:m}),C=i||o,f="android"===v,T=h(Mt.IconButton,Mt[`IconButton_variant_${d}`],Mt[`IconButton_size_${p}`],{[Mt.IconButton_loading]:o,[Mt.IconButton_disabled]:i,[Mt.IconButton_activeMode_highlight]:!C&&!f,[Mt.IconButton_activeMode_ripple]:!C&&f},l);return t(y,{ref:n,className:T,...g,...u,children:[o&&e("span",{className:h(Mt.IconButton__spinnerContainer,_?.spinnerContainer),children:e(ut,{className:h(_?.spinner),size:Lt(p),appearance:Et(d)})}),e(F,{children:ce({options:{asChild:c,children:r},content:t=>e("span",{className:h(Mt.IconButton__content,_?.content),children:t},"subtree-container")})}),f&&!C&&e(at,{className:Mt.IconButton__ripple})]})});kt.displayName="IconButton";var Ot={Input:"Input__A3w",Input_disabled:"Input_disabled__mpt",Input__iconBefore:"Input__iconBefore__gxx",Input__iconAfter:"Input__iconAfter__jL1",Input_size_medium:"Input_size_medium__EjC",Input__input:"Input__input__gy5",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__clearButton:"Input__clearButton__nKe",Input__count:"Input__count__zAz",Input__hint:"Input__hint__dE5",Input__hint_disabled:"Input__hint_disabled__E55"};const jt=n((a,n)=>{const{className:r,innerClassNames:l,withClearButton:i,iconBefore:_,iconAfter:o,size:s="large",mode:c="default",count:p,hint:d,...u}=a,m=h(Ot.Input,Ot[`Input_mode_${c}`],Ot[`Input_size_${s}`],{[Ot.Input_disabled]:u.disabled},r);return t("div",{className:h(l?.container),children:[t("label",{className:m,children:[pe(_)&&e("div",{className:h(Ot.Input__iconBefore,l?.iconBefore),children:_}),e($e,{ref:n,className:h(Ot.Input__body,l?.body),withClearButton:i,count:p,innerClassNames:{input:h(Ot.Input__input,l?.input),clearButton:h(Ot.Input__clearButton,l?.clearButton),count:h(Ot.Input__count,l?.count)},...u}),pe(o)&&e("div",{className:h(Ot.Input__iconAfter,l?.iconAfter),children:o})]}),pe(d)&&e("div",{className:h(Ot.Input__hint,{[Ot.Input__hint_disabled]:u.disabled},l?.hint),children:d})]})});jt.displayName="Input";var Pt={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",MaxUI_resetBody:"MaxUI_resetBody__Mwh"};const Ht=n((t,a)=>{const{children:n,className:r,colorScheme:l,platform:i=(de()?"ios":"android"),resetBody:_=!1}=t,o=Se({listenChanges:!l}),s=l??o,d=p(()=>({colorScheme:s,platform:i}),[s,i]);c(()=>{if(_)return document.body.classList.add(Pt.MaxUI_resetBody),()=>{document.body.classList.remove(Pt.MaxUI_resetBody)}},[_]);const u=h(Pt.MaxUI,Pt[`MaxUI_colorScheme_${s}`],Pt[`MaxUI_platform_${i}`],r);return e(be.Provider,{value:d,children:e("div",{ref:a,className:u,children:n})})});Ht.displayName="MaxUI";var Ut={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 $t=n((a,n)=>{const{className:r,...l}=a,i=Ie(),_=h(Ut.Switch,Ut[`Switch_platform_${i}`],r);return t("span",{className:_,children:[e("input",{ref:n,type:"checkbox",role:"switch",className:Ut.Switch__input,...l}),e("span",{className:Ut.Switch__toggle,children:e("span",{className:Ut.Switch__thumb})})]})});$t.displayName="Switch";var Rt={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 Yt=n((t,a)=>{const{className:n,innerClassNames:r,mode:l="primary",...i}=t,_=h(Rt.Textarea,Rt[`Textarea_mode_${l}`],{[Rt.Textarea_disabled]:i.disabled},n);return e("div",{className:_,children:e("textarea",{ref:a,className:h(Rt.Textarea__textarea,r?.textarea),...i})})});Yt.displayName="Textarea";var Dt={TypographyAction_variant_large:"TypographyAction_variant_large__l5j",TypographyAction_variant_medium:"TypographyAction_variant_medium__9H-",TypographyAction_variant_small:"TypographyAction_variant_small__-LL",TypographyAction_variant_xsmall:"TypographyAction_variant_xsmall__dcP"};const Wt=n((t,a)=>{const{className:n,variant:r="large",asChild:l,...i}=t,_=l?D:"span",o=h(Dt.TypographyAction,Dt[`TypographyAction_variant_${r}`],n);return e(_,{ref:a,className:o,...i})});Wt.displayName="TypographyAction";var Xt={TypographyBody_variant_large:"TypographyBody_variant_large__vlS","TypographyBody_variant_large-strong":"TypographyBody_variant_large-strong__V9x",TypographyBody_variant_medium:"TypographyBody_variant_medium__9v3","TypographyBody_variant_medium-strong":"TypographyBody_variant_medium-strong__bCQ",TypographyBody_variant_small:"TypographyBody_variant_small__beJ","TypographyBody_variant_small-strong":"TypographyBody_variant_small-strong__mWy"};const Ft=n((t,a)=>{const{className:n,variant:r="large-strong",asChild:l,...i}=t,_=l?D:"span",o=h(Xt.TypographyBody,Xt[`TypographyBody_variant_${r}`],n);return e(_,{ref:a,className:o,...i})});Ft.displayName="TypographyBody";var Gt="TypographyDisplay__6MW";const Zt=n((t,a)=>{const{className:n,asChild:r,...l}=t;return e(r?D:"span",{ref:a,className:h(Gt,n),...l})});Zt.displayName="TypographyDisplay";var Vt={"TypographyHeadline_variant_large-strong":"TypographyHeadline_variant_large-strong__mwz",TypographyHeadline_variant_medium:"TypographyHeadline_variant_medium__s92",TypographyHeadline_variant_small:"TypographyHeadline_variant_small__8Ei"};const qt=n((t,a)=>{const{className:n,variant:r="large-strong",asChild:l,...i}=t,_=l?D:"span",o=h(Vt.TypographyHeadline,Vt[`TypographyHeadline_variant_${r}`],n);return e(_,{ref:a,className:o,...i})});qt.displayName="TypographyHeadline";var Jt={TypographyLabel_variant_large:"TypographyLabel_variant_large__6vr","TypographyLabel_variant_large-strong":"TypographyLabel_variant_large-strong__uCg",TypographyLabel_variant_medium:"TypographyLabel_variant_medium__Xo5","TypographyLabel_variant_medium-strong":"TypographyLabel_variant_medium-strong__Bk8",TypographyLabel_variant_small:"TypographyLabel_variant_small__dGi","TypographyLabel_variant_small-strong":"TypographyLabel_variant_small-strong__qCw"};const Qt=n((t,a)=>{const{className:n,variant:r="large",asChild:l,...i}=t,_=l?D:"span",o=h(Jt.TypographyLabel,Jt[`TypographyLabel_variant_${r}`],n);return e(_,{ref:a,className:o,...i})});Qt.displayName="TypographyLabel";var Kt={TypographyText_variant_hero:"TypographyText_variant_hero__78f",TypographyText_variant_header:"TypographyText_variant_header__YA-",TypographyText_variant_subheader:"TypographyText_variant_subheader__8tX",TypographyText_variant_title:"TypographyText_variant_title__3HO",TypographyText_variant_body:"TypographyText_variant_body__-U7","TypographyText_variant_body-strong":"TypographyText_variant_body-strong__g4v",TypographyText_variant_detail:"TypographyText_variant_detail__2eL","TypographyText_variant_detail-strong":"TypographyText_variant_detail-strong__-9M",TypographyText_variant_description:"TypographyText_variant_description__FAg","TypographyText_variant_description-strong":"TypographyText_variant_description-strong__GYo",TypographyText_variant_label:"TypographyText_variant_label__s4i","TypographyText_variant_label-strong":"TypographyText_variant_label-strong__hPM",TypographyText_variant_tag:"TypographyText_variant_tag__6CN","TypographyText_variant_tag-strong":"TypographyText_variant_tag-strong__4DW",TypographyText_variant_note:"TypographyText_variant_note__QH-","TypographyText_variant_note-strong":"TypographyText_variant_note-strong__sWX","TypographyText_variant_action-large":"TypographyText_variant_action-large__Pa-","TypographyText_variant_action-medium":"TypographyText_variant_action-medium__Xyt","TypographyText_variant_action-small":"TypographyText_variant_action-small__mna","TypographyText_variant_action-xsmall":"TypographyText_variant_action-xsmall__IX0",TypographyText_color_primary:"TypographyText_color_primary__yhI",TypographyText_color_secondary:"TypographyText_color_secondary__ycW",TypographyText_color_tertiary:"TypographyText_color_tertiary__OTn",TypographyText_color_inherit:"TypographyText_color_inherit__hh5"};const ea=n((t,a)=>{const{className:n,variant:r="body",color:l="inherit",asChild:i,..._}=t,o=i?D:"span",s=h(Kt.TypographyText,Kt[`TypographyText_variant_${r}`],Kt[`TypographyText_color_${l}`],n);return e(o,{ref:a,className:s,..._})});ea.displayName="TypographyText";var ta={"TypographyTitle_variant_large-strong":"TypographyTitle_variant_large-strong__9PL",TypographyTitle_variant_medium:"TypographyTitle_variant_medium__TrJ","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 aa=n((t,a)=>{const{className:n,variant:r="large-strong",asChild:l,...i}=t,_=l?D:"span",o=h(ta.TypographyTitle,ta[`TypographyTitle_variant_${r}`],n);return e(_,{ref:a,className:o,...i})});aa.displayName="TypographyTitle";const na=Object.assign({},{Display:Zt,Headline:qt,Title:aa,Body:Ft,Label:Qt,Text:ea,Action:Wt});export{Oe as Avatar,ft as Button,bt as CellAction,Nt as CellHeader,It as CellInput,At as CellList,zt as CellSimple,$e as ClearableInput,De as Container,yt as Counter,Ge as EllipsisText,Ve as Flex,Je as Grid,C as Icon16Chevron,b as Icon16CloseIos,B as Icon16SearchOutline,w as Icon20CloseAndroid,E as Icon20CloseFilled,k as Icon24CloseAndroid,kt as IconButton,jt as Input,Ht as MaxUI,be as MaxUIContext,Ke as Panel,at as Ripple,D as Slot,F as Slottable,ut as Spinner,re as SvgButton,$t as Switch,st as Tappable,Yt as Textarea,na as Typography,ce as getSubtree,pe as hasReactNode,ue as mergeRefs,xe as useAppearance,fe as useButtonLikeProps,Te as useCallbackRef,Ne as useColorScheme,Be as useImageLoadingStatus,Ie as usePlatform,Se as useSystemColorScheme};
2
2
  //# sourceMappingURL=index.js.map