@appquality/unguess-design-system 2.12.59 → 2.12.61

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.
@@ -14,6 +14,8 @@ export interface ButtonArgs extends IButtonProps {
14
14
  isEndIconRotated?: boolean;
15
15
  /** Applies danger styling */
16
16
  isDanger?: boolean;
17
+ /** Applies bright styling, used for dark interfaces */
18
+ isBright?: boolean;
17
19
  /** Specifies the buton size */
18
20
  size?: "small" | "medium" | "large";
19
21
  /** Stretches the button fill to its container width */
@@ -2,6 +2,8 @@ import { IIconButtonProps } from "@zendeskgarden/react-buttons";
2
2
  export interface IconButtonArgs extends IIconButtonProps {
3
3
  /** Applies neutral button styling */
4
4
  isNeutral?: boolean;
5
+ /** Applies bright styling, used for dark interfaces */
6
+ isBright?: boolean;
5
7
  /** Applies primary button styling */
6
8
  isPrimary?: boolean;
7
9
  /** Applies danger button styling */
@@ -15,5 +17,5 @@ export interface IconButtonArgs extends IIconButtonProps {
15
17
  /** Rotates icon 180 degrees */
16
18
  isRotated?: boolean;
17
19
  /** Specifies icon button size */
18
- size?: 'small' | 'medium' | 'large';
20
+ size?: "small" | "medium" | "large";
19
21
  }
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  export interface CounterMultiselectArgs {
3
3
  options: {
4
- id: number;
4
+ id: number | string;
5
5
  label: string;
6
6
  selected?: boolean;
7
7
  }[];
@@ -0,0 +1,11 @@
1
+ import { IDotsProps } from "@zendeskgarden/react-loaders";
2
+ export interface DotsArgs extends IDotsProps {
3
+ /** Sets the height and width in pixels. Inherits the parent's font size by default. */
4
+ size?: string | number;
5
+ /** Sets the fill color. Inherits the parent's `color` by default. */
6
+ color?: string;
7
+ /** Sets the length of the animation cycle in milliseconds **/
8
+ duration?: number;
9
+ /** Delays displaying the loader to prevent a render flash during normal loading times **/
10
+ delayMS?: number;
11
+ }
@@ -0,0 +1,14 @@
1
+ import { DotsArgs } from './_types';
2
+ /**
3
+ * The Dots loader communicates ongoing activity after a user takes an action.
4
+ * It tells them that something is taking place.
5
+ * <hr>
6
+ * Used for this:
7
+ - To indicate that a single component, like a Button or Search input, is doing something
8
+ Not for this:
9
+ - To communicate a page is loading, use a Skeleton loader or Spinner instead
10
+ - To communicate typing status, use an Inline loader instead
11
+ - To communicate progress, use a Progress loader instead
12
+ */
13
+ declare const Dots: (props: DotsArgs) => JSX.Element;
14
+ export { Dots };
@@ -0,0 +1,5 @@
1
+ import { ComponentMeta, Story } from "@storybook/react";
2
+ import { DotsArgs } from "./_types";
3
+ export declare const Default: Story<DotsArgs>;
4
+ declare const _default: ComponentMeta<(props: DotsArgs) => JSX.Element>;
5
+ export default _default;
@@ -1,4 +1,5 @@
1
- import { ProgressArgs } from './_types';
1
+ /// <reference types="react" />
2
+ import { ProgressArgs } from "./_types";
2
3
  /**
3
4
  * A Progress loader communicates progress when downloading or uploading content.
4
5
  * <hr>
@@ -9,5 +10,5 @@ import { ProgressArgs } from './_types';
9
10
  - When the loading time is unknown, use a Spinner instead
10
11
  - When loading page content, use a Skeleton loader instead
11
12
  */
12
- declare const Progress: (props: ProgressArgs) => JSX.Element;
13
+ declare const Progress: import("react").ForwardRefExoticComponent<ProgressArgs & import("react").RefAttributes<HTMLDivElement>>;
13
14
  export { Progress };
@@ -1,5 +1,6 @@
1
+ /// <reference types="react" />
1
2
  import { ComponentMeta, Story } from "@storybook/react";
2
3
  import { ProgressArgs } from "./_types";
3
4
  export declare const Default: Story<ProgressArgs>;
4
- declare const _default: ComponentMeta<(props: ProgressArgs) => JSX.Element>;
5
+ declare const _default: ComponentMeta<import("react").ForwardRefExoticComponent<ProgressArgs & import("react").RefAttributes<HTMLDivElement>>>;
5
6
  export default _default;
@@ -0,0 +1,7 @@
1
+ import { HTMLAttributes } from "react";
2
+ export interface PlayerArgs extends HTMLAttributes<HTMLVideoElement> {
3
+ }
4
+ export interface WrapperProps {
5
+ isPlaying?: boolean;
6
+ isLoaded?: boolean;
7
+ }
@@ -0,0 +1,9 @@
1
+ import { PlayerArgs } from "./_types";
2
+ /**
3
+ * The Player is a styled media tag with custom controls
4
+ * <hr>
5
+ * Used for this:
6
+ - To display a video
7
+ */
8
+ declare const Player: (props: PlayerArgs) => JSX.Element;
9
+ export { Player };
@@ -0,0 +1,8 @@
1
+ import { ComponentMeta, Story } from "@storybook/react";
2
+ import { PlayerArgs } from "./_types";
3
+ interface PlayerStoryArgs extends PlayerArgs {
4
+ url: string;
5
+ }
6
+ export declare const Basic: Story<PlayerStoryArgs>;
7
+ declare const _default: ComponentMeta<(props: PlayerArgs) => JSX.Element>;
8
+ export default _default;
@@ -0,0 +1,9 @@
1
+ interface VideowithAudio extends HTMLVideoElement {
2
+ mozHasAudio?: boolean;
3
+ webkitAudioDecodedByteCount?: number;
4
+ audioTracks?: any[];
5
+ }
6
+ export declare const AudioButton: (props: {
7
+ videoRef: VideowithAudio | null;
8
+ }) => JSX.Element;
9
+ export {};
@@ -0,0 +1,2 @@
1
+ import { WrapperProps } from "../_types";
2
+ export declare const Container: import("styled-components").StyledComponent<"div", any, WrapperProps, never>;
@@ -0,0 +1,9 @@
1
+ import { WrapperProps } from "../_types";
2
+ export declare const ControlsWrapper: import("styled-components").StyledComponent<"div", any, WrapperProps, never>;
3
+ export declare const ControlsBar: import("styled-components").StyledComponent<"div", any, {}, never>;
4
+ export declare const Controls: (props: {
5
+ videoRef: HTMLVideoElement | null;
6
+ duration: number;
7
+ isPlaying?: boolean | undefined;
8
+ onPlayChange?: ((isPlaying: boolean) => void) | undefined;
9
+ }) => JSX.Element;
@@ -0,0 +1,5 @@
1
+ export declare const ControlsGroupCenter: ({ videoRef, isPlaying, onPlayChange, }: {
2
+ videoRef: HTMLVideoElement | null;
3
+ isPlaying?: boolean | undefined;
4
+ onPlayChange?: ((isPlaying: boolean) => void) | undefined;
5
+ }) => JSX.Element;
@@ -0,0 +1,5 @@
1
+ import { WrapperProps } from "../_types";
2
+ export declare const FloatingContainer: import("styled-components").StyledComponent<"div", any, WrapperProps, never>;
3
+ export declare const FloatingControls: (props: {
4
+ isPlaying?: boolean;
5
+ }) => JSX.Element;
@@ -0,0 +1,10 @@
1
+ interface VideowithFullscreen extends HTMLVideoElement {
2
+ webkitEnterFullscreen?: () => Promise<void>;
3
+ webkitRequestFullscreen?: () => Promise<void>;
4
+ mozRequestFullScreen?: () => Promise<void>;
5
+ msRequestFullscreen?: () => Promise<void>;
6
+ }
7
+ export declare const FullScreenButton: (props: {
8
+ videoRef: VideowithFullscreen | null;
9
+ }) => JSX.Element;
10
+ export {};
@@ -0,0 +1 @@
1
+ export declare const VideoSpinner: () => JSX.Element;
@@ -0,0 +1,4 @@
1
+ export declare const TimeLabel: ({ current, duration, }: {
2
+ current: string;
3
+ duration: string;
4
+ }) => JSX.Element;
@@ -0,0 +1,5 @@
1
+ import { HTMLAttributes } from "react";
2
+ interface TooltipArgs extends HTMLAttributes<HTMLDivElement> {
3
+ }
4
+ export declare const PlayerTooltip: ({ children, ...props }: TooltipArgs) => JSX.Element;
5
+ export {};
@@ -0,0 +1,2 @@
1
+ export declare const formatDuration: (durationInSeconds: number) => string;
2
+ export declare const getNextPlaybackRate: (rate?: number) => 1 | 2 | 1.5 | 0.5;
@@ -0,0 +1 @@
1
+ export declare const Video: import("styled-components").StyledComponent<"video", any, {}, never>;
@@ -28,4 +28,53 @@ export declare const components: {
28
28
  color?: string | undefined;
29
29
  cursor?: string | undefined;
30
30
  };
31
+ "buttons.icon_button": ({ isDanger, isBasic, isPrimary, isHovered, isNeutral, isBright, disabled, }: {
32
+ isBasic: boolean;
33
+ isDanger: boolean;
34
+ isPrimary: boolean;
35
+ isHovered: boolean;
36
+ isNeutral: boolean;
37
+ isBright: boolean;
38
+ disabled: boolean;
39
+ }) => {
40
+ pointerEvents?: string | undefined;
41
+ backgroundColor?: string | undefined;
42
+ color?: string | undefined;
43
+ "&:hover"?: {
44
+ backgroundColor: string;
45
+ color?: undefined;
46
+ } | {
47
+ backgroundColor: string;
48
+ color: string;
49
+ } | undefined;
50
+ "&:active"?: {
51
+ backgroundColor: string;
52
+ color: string;
53
+ } | undefined;
54
+ };
55
+ "buttons.button": ({ isDanger, isPrimary, isHovered, isNeutral, isBright, }: {
56
+ isDanger: boolean;
57
+ isPrimary: boolean;
58
+ isHovered: boolean;
59
+ isNeutral: boolean;
60
+ isBright: boolean;
61
+ }) => {
62
+ backgroundColor: string;
63
+ color: string;
64
+ border: string;
65
+ "&:hover": {
66
+ backgroundColor: string;
67
+ color: string;
68
+ };
69
+ "&:active": {
70
+ backgroundColor: string;
71
+ color: string;
72
+ };
73
+ } | {
74
+ backgroundColor?: undefined;
75
+ color?: undefined;
76
+ border?: undefined;
77
+ "&:hover"?: undefined;
78
+ "&:active"?: undefined;
79
+ };
31
80
  };
@@ -233,6 +233,55 @@ declare const theme: {
233
233
  color?: string | undefined;
234
234
  cursor?: string | undefined;
235
235
  };
236
+ "buttons.icon_button": ({ isDanger, isBasic, isPrimary, isHovered, isNeutral, isBright, disabled, }: {
237
+ isBasic: boolean;
238
+ isDanger: boolean;
239
+ isPrimary: boolean;
240
+ isHovered: boolean;
241
+ isNeutral: boolean;
242
+ isBright: boolean;
243
+ disabled: boolean;
244
+ }) => {
245
+ pointerEvents?: string | undefined;
246
+ backgroundColor?: string | undefined;
247
+ color?: string | undefined;
248
+ "&:hover"?: {
249
+ backgroundColor: string;
250
+ color?: undefined;
251
+ } | {
252
+ backgroundColor: string;
253
+ color: string;
254
+ } | undefined;
255
+ "&:active"?: {
256
+ backgroundColor: string;
257
+ color: string;
258
+ } | undefined;
259
+ };
260
+ "buttons.button": ({ isDanger, isPrimary, isHovered, isNeutral, isBright, }: {
261
+ isDanger: boolean;
262
+ isPrimary: boolean;
263
+ isHovered: boolean;
264
+ isNeutral: boolean;
265
+ isBright: boolean;
266
+ }) => {
267
+ backgroundColor: string;
268
+ color: string;
269
+ border: string;
270
+ "&:hover": {
271
+ backgroundColor: string;
272
+ color: string;
273
+ };
274
+ "&:active": {
275
+ backgroundColor: string;
276
+ color: string;
277
+ };
278
+ } | {
279
+ backgroundColor?: undefined;
280
+ color?: undefined;
281
+ border?: undefined;
282
+ "&:hover"?: undefined;
283
+ "&:active"?: undefined;
284
+ };
236
285
  };
237
286
  shadows: {
238
287
  boxShadow: (theme: import("@zendeskgarden/react-theming").IGardenTheme) => string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appquality/unguess-design-system",
3
- "version": "2.12.59",
3
+ "version": "2.12.61",
4
4
  "dependencies": {
5
5
  "@nivo/bar": "^0.80.0",
6
6
  "@nivo/bullet": "^0.80.0",