@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.
- package/CHANGELOG.md +33 -0
- package/build/index.d.ts +2 -0
- package/build/index.js +751 -133
- package/build/stories/buttons/button/_types.d.ts +2 -0
- package/build/stories/buttons/icon-button/_types.d.ts +3 -1
- package/build/stories/dropdowns/countermultiselect/_types.d.ts +1 -1
- package/build/stories/loaders/dots/_types.d.ts +11 -0
- package/build/stories/loaders/dots/index.d.ts +14 -0
- package/build/stories/loaders/dots/index.stories.d.ts +5 -0
- package/build/stories/loaders/progress/index.d.ts +3 -2
- package/build/stories/loaders/progress/index.stories.d.ts +2 -1
- package/build/stories/player/_types.d.ts +7 -0
- package/build/stories/player/index.d.ts +9 -0
- package/build/stories/player/index.stories.d.ts +8 -0
- package/build/stories/player/parts/audioButton.d.ts +9 -0
- package/build/stories/player/parts/container.d.ts +2 -0
- package/build/stories/player/parts/controls.d.ts +9 -0
- package/build/stories/player/parts/controlsCenterGroup.d.ts +5 -0
- package/build/stories/player/parts/floatingControls.d.ts +5 -0
- package/build/stories/player/parts/fullScreenButton.d.ts +10 -0
- package/build/stories/player/parts/spinner.d.ts +1 -0
- package/build/stories/player/parts/timeLabel.d.ts +4 -0
- package/build/stories/player/parts/tooltip.d.ts +5 -0
- package/build/stories/player/parts/utils.d.ts +2 -0
- package/build/stories/player/parts/video.d.ts +1 -0
- package/build/stories/theme/components.d.ts +49 -0
- package/build/stories/theme/index.d.ts +49 -0
- package/package.json +1 -1
|
@@ -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?:
|
|
20
|
+
size?: "small" | "medium" | "large";
|
|
19
21
|
}
|
|
@@ -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 };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
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: (
|
|
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<(
|
|
5
|
+
declare const _default: ComponentMeta<import("react").ForwardRefExoticComponent<ProgressArgs & import("react").RefAttributes<HTMLDivElement>>>;
|
|
5
6
|
export default _default;
|
|
@@ -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
|
+
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,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 @@
|
|
|
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;
|