@ultraviolet/ui 1.70.1 → 1.70.2

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.
@@ -4,7 +4,7 @@ const jsxRuntime = require("@emotion/react/jsx-runtime");
4
4
  const _styled = require("@emotion/styled/base");
5
5
  const react = require("@emotion/react");
6
6
  const legacy = require("@ultraviolet/icons/legacy");
7
- const product = require("@ultraviolet/icons/product");
7
+ const ProductIcon = require("@ultraviolet/icons/product");
8
8
  const index = require("../Text/index.cjs");
9
9
  const constants = require("./constants.cjs");
10
10
  const _interopDefaultCompat = (e) => e && typeof e === "object" && "default" in e ? e : { default: e };
@@ -120,7 +120,7 @@ const AvatarV2 = ({
120
120
  "data-testid": dataTestId
121
121
  }) => /* @__PURE__ */ jsxRuntime.jsxs(Container, { "data-shape": shape, "data-size": size, "data-sentiment": sentiment, "data-upload": upload, "data-has-background": !["user", "image"].includes(variant), image, onClick, role: onClick ? "button" : void 0, size, className, "data-testid": dataTestId, children: [
122
122
  upload ? /* @__PURE__ */ jsxRuntime.jsx(UploadContainer, { "data-shape": shape, size, children: /* @__PURE__ */ jsxRuntime.jsx(legacy.Icon, { name: "upload", size: "large", sentiment: "neutral", prominence: "stronger" }) }) : null,
123
- variant === "user" ? /* @__PURE__ */ jsxRuntime.jsx(ProductIconContainer, { "data-shape": shape, "data-size": size, size, children: /* @__PURE__ */ jsxRuntime.jsx(product.UserProductIcon, {}) }) : null,
123
+ variant === "user" ? /* @__PURE__ */ jsxRuntime.jsx(ProductIconContainer, { "data-shape": shape, "data-size": size, size, children: /* @__PURE__ */ jsxRuntime.jsx(ProductIcon.UserProductIcon, {}) }) : null,
124
124
  variant === "icon" ? /* @__PURE__ */ jsxRuntime.jsx(ElementContainer, { "data-shape": shape, children: /* @__PURE__ */ jsxRuntime.jsx(legacy.Icon, { name: icon, sentiment: "neutral", size: constants.ICON_SIZES[size], prominence: sentiment === "primary" ? "stronger" : "strong" }) }) : null,
125
125
  variant === "text" ? /* @__PURE__ */ jsxRuntime.jsx(ElementContainer, { "data-shape": shape, children: /* @__PURE__ */ jsxRuntime.jsx(index.Text, { as: "span", variant: constants.TEXT_VARIANT_BY_SIZE[size], sentiment: "neutral", prominence: sentiment === "primary" ? "stronger" : "strong", children: text }) }) : null,
126
126
  variant === "colors" ? /* @__PURE__ */ jsxRuntime.jsx(StyledColors, { size, colors, shape, style: {
@@ -14,13 +14,13 @@ declare const VARIANTS_COMPONENTS: {
14
14
  filled: {
15
15
  button: import("@emotion/styled").StyledComponent<{
16
16
  theme?: Theme;
17
- as?: import("react").ElementType;
17
+ as?: React.ElementType;
18
18
  } & Required<Pick<FinalProps, "size" | "sentiment" | "disabled" | "iconPosition" | "fullWidth">> & {
19
19
  iconOnly: boolean;
20
20
  }, import("react").DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {}>;
21
21
  link: import("@emotion/styled").StyledComponent<{
22
22
  theme?: Theme;
23
- as?: import("react").ElementType;
23
+ as?: React.ElementType;
24
24
  } & Required<Pick<FinalProps, "size" | "sentiment" | "disabled" | "iconPosition" | "fullWidth">> & {
25
25
  iconOnly: boolean;
26
26
  }, import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, {}>;
@@ -28,13 +28,13 @@ declare const VARIANTS_COMPONENTS: {
28
28
  outlined: {
29
29
  button: import("@emotion/styled").StyledComponent<{
30
30
  theme?: Theme;
31
- as?: import("react").ElementType;
31
+ as?: React.ElementType;
32
32
  } & Required<Pick<FinalProps, "size" | "sentiment" | "disabled" | "iconPosition" | "fullWidth">> & {
33
33
  iconOnly: boolean;
34
34
  }, import("react").DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {}>;
35
35
  link: import("@emotion/styled").StyledComponent<{
36
36
  theme?: Theme;
37
- as?: import("react").ElementType;
37
+ as?: React.ElementType;
38
38
  } & Required<Pick<FinalProps, "size" | "sentiment" | "disabled" | "iconPosition" | "fullWidth">> & {
39
39
  iconOnly: boolean;
40
40
  }, import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, {}>;
@@ -42,13 +42,13 @@ declare const VARIANTS_COMPONENTS: {
42
42
  ghost: {
43
43
  button: import("@emotion/styled").StyledComponent<{
44
44
  theme?: Theme;
45
- as?: import("react").ElementType;
45
+ as?: React.ElementType;
46
46
  } & Required<Pick<FinalProps, "size" | "sentiment" | "disabled" | "iconPosition" | "fullWidth">> & {
47
47
  iconOnly: boolean;
48
48
  }, import("react").DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {}>;
49
49
  link: import("@emotion/styled").StyledComponent<{
50
50
  theme?: Theme;
51
- as?: import("react").ElementType;
51
+ as?: React.ElementType;
52
52
  } & Required<Pick<FinalProps, "size" | "sentiment" | "disabled" | "iconPosition" | "fullWidth">> & {
53
53
  iconOnly: boolean;
54
54
  }, import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, {}>;
@@ -21,7 +21,7 @@ type ExpandableProps = {
21
21
  };
22
22
  export declare const StyledExpandable: import("@emotion/styled").StyledComponent<{
23
23
  theme?: import("@emotion/react").Theme;
24
- as?: import("react").ElementType;
24
+ as?: React.ElementType;
25
25
  } & {
26
26
  animationDuration: number;
27
27
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -2,7 +2,7 @@ import type { ReactNode } from 'react';
2
2
  import type { SENTIMENTS } from '../../theme';
3
3
  export declare const StyledRow: import("@emotion/styled").StyledComponent<{
4
4
  theme?: import("@emotion/react").Theme;
5
- as?: import("react").ElementType;
5
+ as?: React.ElementType;
6
6
  } & {
7
7
  sentiment: (typeof SENTIMENTS)[number];
8
8
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -6,12 +6,12 @@ type DisclosureElement = ((popover: Partial<PopoverStateReturn>) => ReactElement
6
6
  ref?: Ref<HTMLButtonElement>;
7
7
  });
8
8
  declare const arrowPlacementStyles: {
9
- readonly bottom: (theme: Theme) => import("@emotion/react").SerializedStyles;
10
- readonly 'bottom-end': (theme: Theme) => import("@emotion/react").SerializedStyles;
11
- readonly 'bottom-start': (theme: Theme) => import("@emotion/react").SerializedStyles;
12
- readonly top: (theme: Theme) => import("@emotion/react").SerializedStyles;
13
- readonly 'top-end': (theme: Theme) => import("@emotion/react").SerializedStyles;
14
- readonly 'top-start': (theme: Theme) => import("@emotion/react").SerializedStyles;
9
+ readonly bottom: (theme: Theme) => import("@emotion/serialize").SerializedStyles;
10
+ readonly 'bottom-end': (theme: Theme) => import("@emotion/serialize").SerializedStyles;
11
+ readonly 'bottom-start': (theme: Theme) => import("@emotion/serialize").SerializedStyles;
12
+ readonly top: (theme: Theme) => import("@emotion/serialize").SerializedStyles;
13
+ readonly 'top-end': (theme: Theme) => import("@emotion/serialize").SerializedStyles;
14
+ readonly 'top-start': (theme: Theme) => import("@emotion/serialize").SerializedStyles;
15
15
  };
16
16
  type ArrowPlacement = keyof typeof arrowPlacementStyles;
17
17
  export declare const arrowPlacements: ArrowPlacement[];
@@ -7,7 +7,7 @@ type StyledDialogProps = {
7
7
  };
8
8
  export declare const StyledDialog: import("@emotion/styled").StyledComponent<{
9
9
  theme?: import("@emotion/react").Theme;
10
- as?: import("react").ElementType;
10
+ as?: React.ElementType;
11
11
  } & StyledDialogProps, import("react").DetailedHTMLProps<import("react").DialogHTMLAttributes<HTMLDialogElement>, HTMLDialogElement>, {}>;
12
12
  export declare const Dialog: ({ children, placement, onClose, hideOnClickOutside, size, id, ariaLabel, className, "data-testid": dataTestId, preventBodyScroll, hideOnEsc, backdropClassName, dialogCss, backdropCss, }: DialogProps) => import("react").ReactPortal;
13
13
  export {};
@@ -7,5 +7,5 @@ export type PositionsType = {
7
7
  popupInitialPosition: string;
8
8
  popupPosition: string;
9
9
  };
10
- export declare const animation: (positions: PositionsType) => import("@emotion/react").Keyframes;
11
- export declare const exitAnimation: (positions: PositionsType) => import("@emotion/react").Keyframes;
10
+ export declare const animation: (positions: PositionsType) => import("@emotion/serialize").Keyframes;
11
+ export declare const exitAnimation: (positions: PositionsType) => import("@emotion/serialize").Keyframes;
@@ -1,7 +1,7 @@
1
1
  import type { InputHTMLAttributes, ReactNode } from 'react';
2
2
  export declare const RadioStack: import("@emotion/styled").StyledComponent<{
3
3
  theme?: import("@emotion/react").Theme;
4
- as?: import("react").ElementType;
4
+ as?: React.ElementType;
5
5
  } & {
6
6
  gap?: keyof import("../..").UltravioletUITheme["space"] | number;
7
7
  direction?: "row" | "column";
@@ -3,7 +3,7 @@ import type { UltravioletUITheme } from '../../theme';
3
3
  type StyledRowProps = Pick<RowProps, 'gap' | 'templateColumns' | 'alignItems' | 'justifyContent'>;
4
4
  export declare const StyledRow: import("@emotion/styled").StyledComponent<{
5
5
  theme?: import("@emotion/react").Theme;
6
- as?: import("react").ElementType;
6
+ as?: React.ElementType;
7
7
  } & StyledRowProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
8
8
  type RowProps = {
9
9
  className?: string;