@ultraviolet/ui 1.53.3 → 1.53.4

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.
@@ -13,7 +13,7 @@ declare const sizes: {
13
13
  readonly small: "\n width: 24px;\n height: 24px;\n font-size: 14px;\n ";
14
14
  };
15
15
  type BulletSize = keyof typeof sizes;
16
- export declare const bulletSizes: ("small" | "medium")[];
16
+ export declare const bulletSizes: ("medium" | "small")[];
17
17
  type ContentProps = XOR<[
18
18
  {
19
19
  icon: ComponentProps<typeof Icon>['name'];
@@ -10,7 +10,7 @@ export declare const SIZE_HEIGHT: {
10
10
  readonly xsmall: 24;
11
11
  };
12
12
  type ButtonSize = keyof typeof SIZE_HEIGHT;
13
- export declare const buttonSizes: ("large" | "small" | "xsmall" | "medium")[];
13
+ export declare const buttonSizes: ("large" | "medium" | "small" | "xsmall")[];
14
14
  declare const VARIANTS_COMPONENTS: {
15
15
  filled: {
16
16
  button: import("@emotion/styled").StyledComponent<{
@@ -23,7 +23,7 @@ export declare const Dialog: (({ ariaLabel, className, children, "data-testid":
23
23
  autoFocus?: boolean | undefined;
24
24
  variant?: "filled" | "outlined" | "ghost" | undefined;
25
25
  role?: import("react").AriaRole | undefined;
26
- size?: "large" | "small" | "xsmall" | "medium" | undefined;
26
+ size?: "large" | "medium" | "small" | "xsmall" | undefined;
27
27
  className?: string | undefined;
28
28
  'data-testid'?: string | undefined;
29
29
  sentiment?: "primary" | "secondary" | "neutral" | "success" | "danger" | "warning" | "info" | undefined;
@@ -33,7 +33,7 @@ export declare const MenuV2: import("react").ForwardRefExoticComponent<{
33
33
  * behavior by setting a portalTarget prop.
34
34
  */
35
35
  portalTarget?: HTMLElement | undefined;
36
- size?: "large" | "small" | "medium" | undefined;
36
+ size?: "large" | "medium" | "small" | undefined;
37
37
  /**
38
38
  * The behavior of the menu when it is opened. If set to `click`, the menu will open when the user clicks on the disclosure.
39
39
  * If set to `hover`, the menu will open when the user hovers over the disclosure.
@@ -4,7 +4,7 @@ import type { InputHTMLAttributes, ReactNode } from 'react';
4
4
  * by typing into input. If the value is out of the min / max range, the input will automatically be the min / max value on blur.
5
5
  */
6
6
  export declare const NumberInputV2: import("react").ForwardRefExoticComponent<{
7
- size?: "large" | "small" | "medium" | undefined;
7
+ size?: "large" | "medium" | "small" | undefined;
8
8
  /**
9
9
  * Text displayed into component at the right of number value.
10
10
  */
@@ -10,7 +10,7 @@ export declare const Popover: import("react").ForwardRefExoticComponent<{
10
10
  title: string;
11
11
  sentiment?: SentimentType | undefined;
12
12
  visible?: boolean | undefined;
13
- size?: "large" | "small" | "medium" | undefined;
13
+ size?: "large" | "medium" | "small" | undefined;
14
14
  onClose?: (() => void) | undefined;
15
15
  className?: string | undefined;
16
16
  'data-testid'?: string | undefined;
@@ -10,7 +10,7 @@ declare const inputSizes: {
10
10
  };
11
11
  };
12
12
  type TextInputSizes = keyof typeof inputSizes;
13
- export declare const textInputSizes: ("small" | "medium")[];
13
+ export declare const textInputSizes: ("medium" | "small")[];
14
14
  type StyledInputProps = {
15
15
  disabled?: boolean;
16
16
  error?: boolean;
@@ -21,7 +21,7 @@ export declare const TextInputV2: import("react").ForwardRefExoticComponent<{
21
21
  onRandomize?: (() => void) | undefined;
22
22
  onChange?: ((newValue: string) => void) | undefined;
23
23
  prefix?: ReactNode;
24
- size?: "large" | "small" | "medium" | undefined;
24
+ size?: "large" | "medium" | "small" | undefined;
25
25
  success?: string | boolean | undefined;
26
26
  suffix?: ReactNode;
27
27
  tooltip?: string | undefined;
@@ -13,6 +13,11 @@ declare const colors: {
13
13
  backgroundStrong: string;
14
14
  backgroundStrongDisabled: string;
15
15
  backgroundStrongHover: string;
16
+ /**
17
+ * Will extend theme with new theme properties
18
+ * @param {UltravioletUITheme} baseTheme the theme you want to extend from, by default it is set to light theme
19
+ * @param {RecursivePartial<UltravioletUITheme>} extendedTheme the properties of a new theme you want to apply from baseTheme
20
+ */
16
21
  border: string;
17
22
  borderDisabled: string;
18
23
  borderHover: string;
@@ -786,6 +791,14 @@ type RecursivePartial<T> = {
786
791
  * @param {RecursivePartial<UltravioletUITheme>} extendedTheme the properties of a new theme you want to apply from baseTheme
787
792
  */
788
793
  declare const extendTheme: (extendedTheme: RecursivePartial<UltravioletUITheme>) => {
794
+ breakpoints: {
795
+ large: string;
796
+ medium: string;
797
+ small: string;
798
+ xlarge: string;
799
+ xsmall: string;
800
+ xxsmall: string;
801
+ };
789
802
  colors: {
790
803
  danger: {
791
804
  background: string;
@@ -794,6 +807,11 @@ declare const extendTheme: (extendedTheme: RecursivePartial<UltravioletUITheme>)
794
807
  backgroundStrong: string;
795
808
  backgroundStrongDisabled: string;
796
809
  backgroundStrongHover: string;
810
+ /**
811
+ * Will extend theme with new theme properties
812
+ * @param {UltravioletUITheme} baseTheme the theme you want to extend from, by default it is set to light theme
813
+ * @param {RecursivePartial<UltravioletUITheme>} extendedTheme the properties of a new theme you want to apply from baseTheme
814
+ */
797
815
  border: string;
798
816
  borderDisabled: string;
799
817
  borderHover: string;
@@ -3,7 +3,7 @@ declare const Breakpoint: import("@emotion/styled").StyledComponent<{
3
3
  theme?: import("@emotion/react").Theme | undefined;
4
4
  as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
5
5
  } & {
6
- down?: "large" | "small" | "xlarge" | "xsmall" | "medium" | undefined;
7
- up?: "large" | "small" | "xlarge" | "xsmall" | "medium" | undefined;
6
+ down?: "large" | "medium" | "small" | "xlarge" | "xsmall" | undefined;
7
+ up?: "large" | "medium" | "small" | "xlarge" | "xsmall" | undefined;
8
8
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
9
9
  export default Breakpoint;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ultraviolet/ui",
3
- "version": "1.53.3",
3
+ "version": "1.53.4",
4
4
  "description": "Ultraviolet UI",
5
5
  "homepage": "https://github.com/scaleway/ultraviolet#readme",
6
6
  "repository": {
@@ -68,8 +68,8 @@
68
68
  "@types/react-dom": "18.3.0",
69
69
  "react": "18.3.1",
70
70
  "react-dom": "18.3.1",
71
- "@ultraviolet/icons": "2.12.9",
72
- "@ultraviolet/themes": "1.10.2",
71
+ "@ultraviolet/icons": "2.12.10",
72
+ "@ultraviolet/themes": "1.11.0",
73
73
  "@utils/test": "0.0.1"
74
74
  },
75
75
  "dependencies": {
@@ -87,8 +87,8 @@
87
87
  "react-toastify": "10.0.5",
88
88
  "react-use-clipboard": "1.0.9",
89
89
  "reakit": "1.3.11",
90
- "@ultraviolet/themes": "1.10.2",
91
- "@ultraviolet/icons": "2.12.9"
90
+ "@ultraviolet/themes": "1.11.0",
91
+ "@ultraviolet/icons": "2.12.10"
92
92
  },
93
93
  "scripts": {
94
94
  "prebuild": "shx rm -rf dist",