@zendeskgarden/react-loaders 8.69.1 → 8.69.3

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/dist/index.cjs.js CHANGED
@@ -95,7 +95,7 @@ StyledDotsCircleThree.defaultProps = {
95
95
  const COMPONENT_ID$5 = 'loaders.loading_placeholder';
96
96
  const StyledLoadingPlaceholder = styled__default.default.div.attrs({
97
97
  'data-garden-id': COMPONENT_ID$5,
98
- 'data-garden-version': '8.69.1',
98
+ 'data-garden-version': '8.69.3',
99
99
  role: 'progressbar'
100
100
  }).withConfig({
101
101
  displayName: "StyledLoadingPlaceholder",
@@ -119,7 +119,7 @@ const sizeToBorderRadius = (size, theme) => sizeToHeight(size, theme) / 2;
119
119
  const PROGRESS_BACKGROUND_COMPONENT_ID = 'loaders.progress_background';
120
120
  const StyledProgressBackground = styled__default.default.div.attrs(props => ({
121
121
  'data-garden-id': PROGRESS_BACKGROUND_COMPONENT_ID,
122
- 'data-garden-version': '8.69.1',
122
+ 'data-garden-version': '8.69.3',
123
123
  borderRadius: props.borderRadius || sizeToBorderRadius(props.size, props.theme)
124
124
  })).withConfig({
125
125
  displayName: "StyledProgress__StyledProgressBackground",
@@ -131,7 +131,7 @@ StyledProgressBackground.defaultProps = {
131
131
  const PROGESS_INDICATOR_COMPONENT_ID = 'loaders.progress_indicator';
132
132
  const StyledProgressIndicator = styled__default.default.div.attrs(props => ({
133
133
  'data-garden-id': PROGESS_INDICATOR_COMPONENT_ID,
134
- 'data-garden-version': '8.69.1',
134
+ 'data-garden-version': '8.69.3',
135
135
  height: props.height || sizeToHeight(props.size, props.theme),
136
136
  borderRadius: props.borderRadius || sizeToBorderRadius(props.size, props.theme)
137
137
  })).withConfig({
@@ -174,7 +174,7 @@ const retrieveSkeletonGradient = _ref3 => {
174
174
  };
175
175
  const StyledSkeleton = styled__default.default.div.attrs({
176
176
  'data-garden-id': COMPONENT_ID$4,
177
- 'data-garden-version': '8.69.1'
177
+ 'data-garden-version': '8.69.3'
178
178
  }).withConfig({
179
179
  displayName: "StyledSkeleton",
180
180
  componentId: "sc-1raozze-0"
@@ -202,7 +202,7 @@ StyledSpinnerCircle.defaultProps = {
202
202
  };
203
203
 
204
204
  const StyledSVG = styled__default.default.svg.attrs(props => ({
205
- 'data-garden-version': '8.69.1',
205
+ 'data-garden-version': '8.69.3',
206
206
  xmlns: 'http://www.w3.org/2000/svg',
207
207
  width: props.width,
208
208
  height: props.height,
@@ -232,7 +232,7 @@ StyledCircle.defaultProps = {
232
232
  };
233
233
  const StyledInline = styled__default.default.svg.attrs(props => ({
234
234
  'data-garden-id': COMPONENT_ID$3,
235
- 'data-garden-version': '8.69.1',
235
+ 'data-garden-version': '8.69.3',
236
236
  viewBox: '0 0 16 4',
237
237
  width: props.size,
238
238
  height: props.size * 0.25
@@ -334,7 +334,7 @@ const Progress = React__default.default.forwardRef((_ref, ref) => {
334
334
  return (
335
335
  React__default.default.createElement(StyledProgressBackground, _extends({
336
336
  "data-garden-id": COMPONENT_ID$1,
337
- "data-garden-version": '8.69.1',
337
+ "data-garden-version": '8.69.3',
338
338
  "aria-valuemax": 100,
339
339
  "aria-valuemin": 0,
340
340
  "aria-valuenow": percentage,
package/dist/index.esm.js CHANGED
@@ -87,7 +87,7 @@ StyledDotsCircleThree.defaultProps = {
87
87
  const COMPONENT_ID$5 = 'loaders.loading_placeholder';
88
88
  const StyledLoadingPlaceholder = styled.div.attrs({
89
89
  'data-garden-id': COMPONENT_ID$5,
90
- 'data-garden-version': '8.69.1',
90
+ 'data-garden-version': '8.69.3',
91
91
  role: 'progressbar'
92
92
  }).withConfig({
93
93
  displayName: "StyledLoadingPlaceholder",
@@ -111,7 +111,7 @@ const sizeToBorderRadius = (size, theme) => sizeToHeight(size, theme) / 2;
111
111
  const PROGRESS_BACKGROUND_COMPONENT_ID = 'loaders.progress_background';
112
112
  const StyledProgressBackground = styled.div.attrs(props => ({
113
113
  'data-garden-id': PROGRESS_BACKGROUND_COMPONENT_ID,
114
- 'data-garden-version': '8.69.1',
114
+ 'data-garden-version': '8.69.3',
115
115
  borderRadius: props.borderRadius || sizeToBorderRadius(props.size, props.theme)
116
116
  })).withConfig({
117
117
  displayName: "StyledProgress__StyledProgressBackground",
@@ -123,7 +123,7 @@ StyledProgressBackground.defaultProps = {
123
123
  const PROGESS_INDICATOR_COMPONENT_ID = 'loaders.progress_indicator';
124
124
  const StyledProgressIndicator = styled.div.attrs(props => ({
125
125
  'data-garden-id': PROGESS_INDICATOR_COMPONENT_ID,
126
- 'data-garden-version': '8.69.1',
126
+ 'data-garden-version': '8.69.3',
127
127
  height: props.height || sizeToHeight(props.size, props.theme),
128
128
  borderRadius: props.borderRadius || sizeToBorderRadius(props.size, props.theme)
129
129
  })).withConfig({
@@ -166,7 +166,7 @@ const retrieveSkeletonGradient = _ref3 => {
166
166
  };
167
167
  const StyledSkeleton = styled.div.attrs({
168
168
  'data-garden-id': COMPONENT_ID$4,
169
- 'data-garden-version': '8.69.1'
169
+ 'data-garden-version': '8.69.3'
170
170
  }).withConfig({
171
171
  displayName: "StyledSkeleton",
172
172
  componentId: "sc-1raozze-0"
@@ -194,7 +194,7 @@ StyledSpinnerCircle.defaultProps = {
194
194
  };
195
195
 
196
196
  const StyledSVG = styled.svg.attrs(props => ({
197
- 'data-garden-version': '8.69.1',
197
+ 'data-garden-version': '8.69.3',
198
198
  xmlns: 'http://www.w3.org/2000/svg',
199
199
  width: props.width,
200
200
  height: props.height,
@@ -224,7 +224,7 @@ StyledCircle.defaultProps = {
224
224
  };
225
225
  const StyledInline = styled.svg.attrs(props => ({
226
226
  'data-garden-id': COMPONENT_ID$3,
227
- 'data-garden-version': '8.69.1',
227
+ 'data-garden-version': '8.69.3',
228
228
  viewBox: '0 0 16 4',
229
229
  width: props.size,
230
230
  height: props.size * 0.25
@@ -326,7 +326,7 @@ const Progress = React.forwardRef((_ref, ref) => {
326
326
  return (
327
327
  React.createElement(StyledProgressBackground, _extends({
328
328
  "data-garden-id": COMPONENT_ID$1,
329
- "data-garden-version": '8.69.1',
329
+ "data-garden-version": '8.69.3',
330
330
  "aria-valuemax": 100,
331
331
  "aria-valuemin": 0,
332
332
  "aria-valuenow": percentage,
@@ -1,12 +1,12 @@
1
- /**
2
- * Copyright Zendesk, Inc.
3
- *
4
- * Use of this source code is governed under the Apache License, Version 2.0
5
- * found at http://www.apache.org/licenses/LICENSE-2.0.
6
- */
7
- import React from 'react';
8
- import { IDotsProps } from '../types';
9
- /**
10
- * @extends SVGAttributes<SVGSVGElement>
11
- */
12
- export declare const Dots: React.ForwardRefExoticComponent<IDotsProps & React.RefAttributes<SVGSVGElement>>;
1
+ /**
2
+ * Copyright Zendesk, Inc.
3
+ *
4
+ * Use of this source code is governed under the Apache License, Version 2.0
5
+ * found at http://www.apache.org/licenses/LICENSE-2.0.
6
+ */
7
+ import React from 'react';
8
+ import { IDotsProps } from '../types';
9
+ /**
10
+ * @extends SVGAttributes<SVGSVGElement>
11
+ */
12
+ export declare const Dots: React.ForwardRefExoticComponent<IDotsProps & React.RefAttributes<SVGSVGElement>>;
@@ -1,16 +1,16 @@
1
- /**
2
- * Copyright Zendesk, Inc.
3
- *
4
- * Use of this source code is governed under the Apache License, Version 2.0
5
- * found at http://www.apache.org/licenses/LICENSE-2.0.
6
- */
7
- import React from 'react';
8
- import { IInlineProps } from '../types';
9
- /**
10
- * 1. role='img' on `svg` is valid WAI-ARIA usage in this context.
11
- * https://dequeuniversity.com/rules/axe/4.2/svg-img-alt
12
- */
13
- /**
14
- * @extends SVGAttributes<SVGSVGElement>
15
- */
16
- export declare const Inline: React.ForwardRefExoticComponent<IInlineProps & React.RefAttributes<SVGSVGElement>>;
1
+ /**
2
+ * Copyright Zendesk, Inc.
3
+ *
4
+ * Use of this source code is governed under the Apache License, Version 2.0
5
+ * found at http://www.apache.org/licenses/LICENSE-2.0.
6
+ */
7
+ import React from 'react';
8
+ import { IInlineProps } from '../types';
9
+ /**
10
+ * 1. role='img' on `svg` is valid WAI-ARIA usage in this context.
11
+ * https://dequeuniversity.com/rules/axe/4.2/svg-img-alt
12
+ */
13
+ /**
14
+ * @extends SVGAttributes<SVGSVGElement>
15
+ */
16
+ export declare const Inline: React.ForwardRefExoticComponent<IInlineProps & React.RefAttributes<SVGSVGElement>>;
@@ -1,17 +1,17 @@
1
- /**
2
- * Copyright Zendesk, Inc.
3
- *
4
- * Use of this source code is governed under the Apache License, Version 2.0
5
- * found at http://www.apache.org/licenses/LICENSE-2.0.
6
- */
7
- import React from 'react';
8
- import { IProgressProps } from '../types';
9
- /**
10
- * 1. Garden progress bar is quite custom, and while using a native
11
- * `progress` element would be ideal, its inclusion of a shadow
12
- * root in Safari prevents straightforward restyling/functional overrides.
13
- */
14
- /**
15
- * @extends HTMLAttributes<HTMLDivElement>
16
- */
17
- export declare const Progress: React.ForwardRefExoticComponent<IProgressProps & React.RefAttributes<HTMLDivElement>>;
1
+ /**
2
+ * Copyright Zendesk, Inc.
3
+ *
4
+ * Use of this source code is governed under the Apache License, Version 2.0
5
+ * found at http://www.apache.org/licenses/LICENSE-2.0.
6
+ */
7
+ import React from 'react';
8
+ import { IProgressProps } from '../types';
9
+ /**
10
+ * 1. Garden progress bar is quite custom, and while using a native
11
+ * `progress` element would be ideal, its inclusion of a shadow
12
+ * root in Safari prevents straightforward restyling/functional overrides.
13
+ */
14
+ /**
15
+ * @extends HTMLAttributes<HTMLDivElement>
16
+ */
17
+ export declare const Progress: React.ForwardRefExoticComponent<IProgressProps & React.RefAttributes<HTMLDivElement>>;
@@ -1,12 +1,12 @@
1
- /**
2
- * Copyright Zendesk, Inc.
3
- *
4
- * Use of this source code is governed under the Apache License, Version 2.0
5
- * found at http://www.apache.org/licenses/LICENSE-2.0.
6
- */
7
- import React from 'react';
8
- import { ISkeletonProps } from '../types';
9
- /**
10
- * @extends HTMLAttributes<HTMLDivElement>
11
- */
12
- export declare const Skeleton: React.ForwardRefExoticComponent<ISkeletonProps & React.RefAttributes<HTMLDivElement>>;
1
+ /**
2
+ * Copyright Zendesk, Inc.
3
+ *
4
+ * Use of this source code is governed under the Apache License, Version 2.0
5
+ * found at http://www.apache.org/licenses/LICENSE-2.0.
6
+ */
7
+ import React from 'react';
8
+ import { ISkeletonProps } from '../types';
9
+ /**
10
+ * @extends HTMLAttributes<HTMLDivElement>
11
+ */
12
+ export declare const Skeleton: React.ForwardRefExoticComponent<ISkeletonProps & React.RefAttributes<HTMLDivElement>>;
@@ -1,12 +1,12 @@
1
- /**
2
- * Copyright Zendesk, Inc.
3
- *
4
- * Use of this source code is governed under the Apache License, Version 2.0
5
- * found at http://www.apache.org/licenses/LICENSE-2.0.
6
- */
7
- import React from 'react';
8
- import { ISpinnerProps } from '../types';
9
- /**
10
- * @extends SVGAttributes<SVGSVGElement>
11
- */
12
- export declare const Spinner: React.ForwardRefExoticComponent<ISpinnerProps & React.RefAttributes<SVGSVGElement>>;
1
+ /**
2
+ * Copyright Zendesk, Inc.
3
+ *
4
+ * Use of this source code is governed under the Apache License, Version 2.0
5
+ * found at http://www.apache.org/licenses/LICENSE-2.0.
6
+ */
7
+ import React from 'react';
8
+ import { ISpinnerProps } from '../types';
9
+ /**
10
+ * @extends SVGAttributes<SVGSVGElement>
11
+ */
12
+ export declare const Spinner: React.ForwardRefExoticComponent<ISpinnerProps & React.RefAttributes<SVGSVGElement>>;
@@ -1,12 +1,12 @@
1
- /**
2
- * Copyright Zendesk, Inc.
3
- *
4
- * Use of this source code is governed under the Apache License, Version 2.0
5
- * found at http://www.apache.org/licenses/LICENSE-2.0.
6
- */
7
- export { Dots } from './elements/Dots';
8
- export { Progress } from './elements/Progress';
9
- export { Skeleton } from './elements/Skeleton';
10
- export { Spinner } from './elements/Spinner';
11
- export { Inline } from './elements/Inline';
12
- export type { IDotsProps, IInlineProps, IProgressProps, ISkeletonProps, ISpinnerProps } from './types';
1
+ /**
2
+ * Copyright Zendesk, Inc.
3
+ *
4
+ * Use of this source code is governed under the Apache License, Version 2.0
5
+ * found at http://www.apache.org/licenses/LICENSE-2.0.
6
+ */
7
+ export { Dots } from './elements/Dots';
8
+ export { Progress } from './elements/Progress';
9
+ export { Skeleton } from './elements/Skeleton';
10
+ export { Spinner } from './elements/Spinner';
11
+ export { Inline } from './elements/Inline';
12
+ export type { IDotsProps, IInlineProps, IProgressProps, ISkeletonProps, ISpinnerProps } from './types';
@@ -1,28 +1,28 @@
1
- /**
2
- * Copyright Zendesk, Inc.
3
- *
4
- * Use of this source code is governed under the Apache License, Version 2.0
5
- * found at http://www.apache.org/licenses/LICENSE-2.0.
6
- */
7
- interface IStyledDotProps {
8
- duration: number;
9
- }
10
- export declare const StyledDotsCircleOne: import("styled-components").StyledComponent<"circle", import("styled-components").DefaultTheme, {
11
- cy: 36;
12
- r: 9;
13
- } & {
14
- cx: 9;
15
- } & IStyledDotProps, "cx" | "cy" | "r">;
16
- export declare const StyledDotsCircleTwo: import("styled-components").StyledComponent<"circle", import("styled-components").DefaultTheme, {
17
- cy: 36;
18
- r: 9;
19
- } & {
20
- cx: 40;
21
- } & IStyledDotProps, "cx" | "cy" | "r">;
22
- export declare const StyledDotsCircleThree: import("styled-components").StyledComponent<"circle", import("styled-components").DefaultTheme, {
23
- cy: 36;
24
- r: 9;
25
- } & {
26
- cx: 71;
27
- } & IStyledDotProps, "cx" | "cy" | "r">;
28
- export {};
1
+ /**
2
+ * Copyright Zendesk, Inc.
3
+ *
4
+ * Use of this source code is governed under the Apache License, Version 2.0
5
+ * found at http://www.apache.org/licenses/LICENSE-2.0.
6
+ */
7
+ interface IStyledDotProps {
8
+ duration: number;
9
+ }
10
+ export declare const StyledDotsCircleOne: import("styled-components").StyledComponent<"circle", import("styled-components").DefaultTheme, {
11
+ cy: 36;
12
+ r: 9;
13
+ } & {
14
+ cx: 9;
15
+ } & IStyledDotProps, "cx" | "cy" | "r">;
16
+ export declare const StyledDotsCircleTwo: import("styled-components").StyledComponent<"circle", import("styled-components").DefaultTheme, {
17
+ cy: 36;
18
+ r: 9;
19
+ } & {
20
+ cx: 40;
21
+ } & IStyledDotProps, "cx" | "cy" | "r">;
22
+ export declare const StyledDotsCircleThree: import("styled-components").StyledComponent<"circle", import("styled-components").DefaultTheme, {
23
+ cy: 36;
24
+ r: 9;
25
+ } & {
26
+ cx: 71;
27
+ } & IStyledDotProps, "cx" | "cy" | "r">;
28
+ export {};
@@ -1,17 +1,17 @@
1
- /**
2
- * Copyright Zendesk, Inc.
3
- *
4
- * Use of this source code is governed under the Apache License, Version 2.0
5
- * found at http://www.apache.org/licenses/LICENSE-2.0.
6
- */
7
- export declare const StyledCircle: import("styled-components").StyledComponent<"circle", import("styled-components").DefaultTheme, {
8
- fill: "currentColor";
9
- cy: 2;
10
- r: 2;
11
- }, "cy" | "fill" | "r">;
12
- interface IStyledInlineProps {
13
- size: number;
14
- color: string;
15
- }
16
- export declare const StyledInline: import("styled-components").StyledComponent<"svg", import("styled-components").DefaultTheme, IStyledInlineProps, never>;
17
- export {};
1
+ /**
2
+ * Copyright Zendesk, Inc.
3
+ *
4
+ * Use of this source code is governed under the Apache License, Version 2.0
5
+ * found at http://www.apache.org/licenses/LICENSE-2.0.
6
+ */
7
+ export declare const StyledCircle: import("styled-components").StyledComponent<"circle", import("styled-components").DefaultTheme, {
8
+ fill: "currentColor";
9
+ cy: 2;
10
+ r: 2;
11
+ }, "cy" | "fill" | "r">;
12
+ interface IStyledInlineProps {
13
+ size: number;
14
+ color: string;
15
+ }
16
+ export declare const StyledInline: import("styled-components").StyledComponent<"svg", import("styled-components").DefaultTheme, IStyledInlineProps, never>;
17
+ export {};
@@ -1,17 +1,17 @@
1
- /**
2
- * Copyright Zendesk, Inc.
3
- *
4
- * Use of this source code is governed under the Apache License, Version 2.0
5
- * found at http://www.apache.org/licenses/LICENSE-2.0.
6
- */
7
- interface IStyledLoadingPlaceholderProps {
8
- fontSize: string | number;
9
- width?: string;
10
- height?: string;
11
- }
12
- export declare const StyledLoadingPlaceholder: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
13
- 'data-garden-id': string;
14
- 'data-garden-version': string;
15
- role: "progressbar";
16
- } & IStyledLoadingPlaceholderProps, "role" | "data-garden-id" | "data-garden-version">;
17
- export {};
1
+ /**
2
+ * Copyright Zendesk, Inc.
3
+ *
4
+ * Use of this source code is governed under the Apache License, Version 2.0
5
+ * found at http://www.apache.org/licenses/LICENSE-2.0.
6
+ */
7
+ interface IStyledLoadingPlaceholderProps {
8
+ fontSize: string | number;
9
+ width?: string;
10
+ height?: string;
11
+ }
12
+ export declare const StyledLoadingPlaceholder: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
13
+ 'data-garden-id': string;
14
+ 'data-garden-version': string;
15
+ role: "progressbar";
16
+ } & IStyledLoadingPlaceholderProps, "role" | "data-garden-id" | "data-garden-version">;
17
+ export {};
@@ -1,22 +1,22 @@
1
- /**
2
- * Copyright Zendesk, Inc.
3
- *
4
- * Use of this source code is governed under the Apache License, Version 2.0
5
- * found at http://www.apache.org/licenses/LICENSE-2.0.
6
- */
7
- import { DefaultTheme } from 'styled-components';
8
- import { Size } from '../types';
9
- interface IStyledProgressBackgroundProps {
10
- size: Size;
11
- borderRadius?: number;
12
- color?: string;
13
- }
14
- export declare const StyledProgressBackground: import("styled-components").StyledComponent<"div", DefaultTheme, IStyledProgressBackgroundProps, never>;
15
- interface IStyledProgressIndicatorProps {
16
- size: Size;
17
- borderRadius?: number;
18
- value: number;
19
- height?: number;
20
- }
21
- export declare const StyledProgressIndicator: import("styled-components").StyledComponent<"div", DefaultTheme, IStyledProgressIndicatorProps, never>;
22
- export {};
1
+ /**
2
+ * Copyright Zendesk, Inc.
3
+ *
4
+ * Use of this source code is governed under the Apache License, Version 2.0
5
+ * found at http://www.apache.org/licenses/LICENSE-2.0.
6
+ */
7
+ import { DefaultTheme } from 'styled-components';
8
+ import { Size } from '../types';
9
+ interface IStyledProgressBackgroundProps {
10
+ size: Size;
11
+ borderRadius?: number;
12
+ color?: string;
13
+ }
14
+ export declare const StyledProgressBackground: import("styled-components").StyledComponent<"div", DefaultTheme, IStyledProgressBackgroundProps, never>;
15
+ interface IStyledProgressIndicatorProps {
16
+ size: Size;
17
+ borderRadius?: number;
18
+ value: number;
19
+ height?: number;
20
+ }
21
+ export declare const StyledProgressIndicator: import("styled-components").StyledComponent<"div", DefaultTheme, IStyledProgressIndicatorProps, never>;
22
+ export {};
@@ -1,17 +1,17 @@
1
- /**
2
- * Copyright Zendesk, Inc.
3
- *
4
- * Use of this source code is governed under the Apache License, Version 2.0
5
- * found at http://www.apache.org/licenses/LICENSE-2.0.
6
- */
7
- interface IStyledSVGProps {
8
- dataGardenId: string;
9
- color?: string;
10
- fontSize?: string | number;
11
- width: number | string;
12
- height: number | string;
13
- containerWidth?: string;
14
- containerHeight?: string;
15
- }
16
- export declare const StyledSVG: import("styled-components").StyledComponent<"svg", import("styled-components").DefaultTheme, IStyledSVGProps, never>;
17
- export {};
1
+ /**
2
+ * Copyright Zendesk, Inc.
3
+ *
4
+ * Use of this source code is governed under the Apache License, Version 2.0
5
+ * found at http://www.apache.org/licenses/LICENSE-2.0.
6
+ */
7
+ interface IStyledSVGProps {
8
+ dataGardenId: string;
9
+ color?: string;
10
+ fontSize?: string | number;
11
+ width: number | string;
12
+ height: number | string;
13
+ containerWidth?: string;
14
+ containerHeight?: string;
15
+ }
16
+ export declare const StyledSVG: import("styled-components").StyledComponent<"svg", import("styled-components").DefaultTheme, IStyledSVGProps, never>;
17
+ export {};
@@ -1,19 +1,19 @@
1
- /**
2
- * Copyright Zendesk, Inc.
3
- *
4
- * Use of this source code is governed under the Apache License, Version 2.0
5
- * found at http://www.apache.org/licenses/LICENSE-2.0.
6
- */
7
- import { DefaultTheme } from 'styled-components';
8
- interface IStyledSkeletonProps {
9
- width?: string;
10
- height?: string;
11
- isLight?: boolean;
12
- customWidth?: string;
13
- customHeight?: string;
14
- }
15
- export declare const StyledSkeleton: import("styled-components").StyledComponent<"div", DefaultTheme, {
16
- 'data-garden-id': string;
17
- 'data-garden-version': string;
18
- } & IStyledSkeletonProps, "data-garden-id" | "data-garden-version">;
19
- export {};
1
+ /**
2
+ * Copyright Zendesk, Inc.
3
+ *
4
+ * Use of this source code is governed under the Apache License, Version 2.0
5
+ * found at http://www.apache.org/licenses/LICENSE-2.0.
6
+ */
7
+ import { DefaultTheme } from 'styled-components';
8
+ interface IStyledSkeletonProps {
9
+ width?: string;
10
+ height?: string;
11
+ isLight?: boolean;
12
+ customWidth?: string;
13
+ customHeight?: string;
14
+ }
15
+ export declare const StyledSkeleton: import("styled-components").StyledComponent<"div", DefaultTheme, {
16
+ 'data-garden-id': string;
17
+ 'data-garden-version': string;
18
+ } & IStyledSkeletonProps, "data-garden-id" | "data-garden-version">;
19
+ export {};
@@ -1,13 +1,13 @@
1
- /**
2
- * Copyright Zendesk, Inc.
3
- *
4
- * Use of this source code is governed under the Apache License, Version 2.0
5
- * found at http://www.apache.org/licenses/LICENSE-2.0.
6
- */
7
- interface IStyledSpinnerCircleProps {
8
- dasharrayValue: number;
9
- strokeWidthValue: number;
10
- transform: string;
11
- }
12
- export declare const StyledSpinnerCircle: import("styled-components").StyledComponent<"circle", import("styled-components").DefaultTheme, IStyledSpinnerCircleProps, never>;
13
- export {};
1
+ /**
2
+ * Copyright Zendesk, Inc.
3
+ *
4
+ * Use of this source code is governed under the Apache License, Version 2.0
5
+ * found at http://www.apache.org/licenses/LICENSE-2.0.
6
+ */
7
+ interface IStyledSpinnerCircleProps {
8
+ dasharrayValue: number;
9
+ strokeWidthValue: number;
10
+ transform: string;
11
+ }
12
+ export declare const StyledSpinnerCircle: import("styled-components").StyledComponent<"circle", import("styled-components").DefaultTheme, IStyledSpinnerCircleProps, never>;
13
+ export {};
@@ -1,13 +1,13 @@
1
- /**
2
- * Copyright Zendesk, Inc.
3
- *
4
- * Use of this source code is governed under the Apache License, Version 2.0
5
- * found at http://www.apache.org/licenses/LICENSE-2.0.
6
- */
7
- export { StyledDotsCircleOne, StyledDotsCircleTwo, StyledDotsCircleThree } from './StyledDots';
8
- export { StyledLoadingPlaceholder } from './StyledLoadingPlaceholder';
9
- export { StyledProgressBackground, StyledProgressIndicator } from './StyledProgress';
10
- export { StyledSkeleton } from './StyledSkeleton';
11
- export { StyledSpinnerCircle } from './StyledSpinnerCircle';
12
- export { StyledSVG } from './StyledSVG';
13
- export { StyledCircle, StyledInline } from './StyledInline';
1
+ /**
2
+ * Copyright Zendesk, Inc.
3
+ *
4
+ * Use of this source code is governed under the Apache License, Version 2.0
5
+ * found at http://www.apache.org/licenses/LICENSE-2.0.
6
+ */
7
+ export { StyledDotsCircleOne, StyledDotsCircleTwo, StyledDotsCircleThree } from './StyledDots';
8
+ export { StyledLoadingPlaceholder } from './StyledLoadingPlaceholder';
9
+ export { StyledProgressBackground, StyledProgressIndicator } from './StyledProgress';
10
+ export { StyledSkeleton } from './StyledSkeleton';
11
+ export { StyledSpinnerCircle } from './StyledSpinnerCircle';
12
+ export { StyledSVG } from './StyledSVG';
13
+ export { StyledCircle, StyledInline } from './StyledInline';
@@ -1,62 +1,62 @@
1
- /**
2
- * Copyright Zendesk, Inc.
3
- *
4
- * Use of this source code is governed under the Apache License, Version 2.0
5
- * found at http://www.apache.org/licenses/LICENSE-2.0.
6
- */
7
- import { HTMLAttributes, SVGAttributes } from 'react';
8
- export declare const SIZE: readonly ["small", "medium", "large"];
9
- export type Size = (typeof SIZE)[number];
10
- export interface IDotsProps extends SVGAttributes<SVGSVGElement> {
11
- /** Sets the height and width in pixels. Inherits the parent's font size by default. */
12
- size?: string | number;
13
- /** Sets the fill color. Inherits the parent's `color` by default. */
14
- color?: string;
15
- /** Sets the length of the animation cycle in milliseconds **/
16
- duration?: number;
17
- /** Delays displaying the loader to prevent a render flash during normal loading times **/
18
- delayMS?: number;
19
- }
20
- export interface IInlineProps extends SVGAttributes<SVGSVGElement> {
21
- /** Sets the width in pixels and scales the loader proportionally */
22
- size?: number;
23
- /** Sets the fill color. Inherits the parent's `color` by default. */
24
- color?: string;
25
- }
26
- export interface IProgressProps extends HTMLAttributes<HTMLDivElement> {
27
- /** Sets the progress as a value between 0 and 100 */
28
- value?: number;
29
- /**
30
- * Sets the foreground bar's fill color.
31
- * Defaults to the `successHue` [theme](/components/theme-object#colors) value.
32
- */
33
- color?: string;
34
- /** Adjusts the height */
35
- size?: Size;
36
- }
37
- export interface ISkeletonProps extends HTMLAttributes<HTMLDivElement> {
38
- /** Sets the width as a percentage of the the parent element's width */
39
- width?: string;
40
- /** Sets the height as a percentage of parent element's height if the height is not already inherited by `line-height` */
41
- height?: string;
42
- /** Inverts the color for use on dark backgrounds */
43
- isLight?: boolean;
44
- }
45
- export interface ISpinnerProps extends SVGAttributes<SVGSVGElement> {
46
- /**
47
- * Sets the height and width in pixels. Inherits the parent's font size by default.
48
- **/
49
- size?: string;
50
- /**
51
- * Sets the length of the animation cycle in milliseconds
52
- **/
53
- duration?: number;
54
- /**
55
- * Sets the fill color. Inherits the parent's `color` by default.
56
- **/
57
- color?: string;
58
- /**
59
- * Delays displaying the loader to prevent a render flash during normal loading times
60
- **/
61
- delayMS?: number;
62
- }
1
+ /**
2
+ * Copyright Zendesk, Inc.
3
+ *
4
+ * Use of this source code is governed under the Apache License, Version 2.0
5
+ * found at http://www.apache.org/licenses/LICENSE-2.0.
6
+ */
7
+ import { HTMLAttributes, SVGAttributes } from 'react';
8
+ export declare const SIZE: readonly ["small", "medium", "large"];
9
+ export type Size = (typeof SIZE)[number];
10
+ export interface IDotsProps extends SVGAttributes<SVGSVGElement> {
11
+ /** Sets the height and width in pixels. Inherits the parent's font size by default. */
12
+ size?: string | number;
13
+ /** Sets the fill color. Inherits the parent's `color` by default. */
14
+ color?: string;
15
+ /** Sets the length of the animation cycle in milliseconds **/
16
+ duration?: number;
17
+ /** Delays displaying the loader to prevent a render flash during normal loading times **/
18
+ delayMS?: number;
19
+ }
20
+ export interface IInlineProps extends SVGAttributes<SVGSVGElement> {
21
+ /** Sets the width in pixels and scales the loader proportionally */
22
+ size?: number;
23
+ /** Sets the fill color. Inherits the parent's `color` by default. */
24
+ color?: string;
25
+ }
26
+ export interface IProgressProps extends HTMLAttributes<HTMLDivElement> {
27
+ /** Sets the progress as a value between 0 and 100 */
28
+ value?: number;
29
+ /**
30
+ * Sets the foreground bar's fill color.
31
+ * Defaults to the `successHue` [theme](/components/theme-object#colors) value.
32
+ */
33
+ color?: string;
34
+ /** Adjusts the height */
35
+ size?: Size;
36
+ }
37
+ export interface ISkeletonProps extends HTMLAttributes<HTMLDivElement> {
38
+ /** Sets the width as a percentage of the the parent element's width */
39
+ width?: string;
40
+ /** Sets the height as a percentage of parent element's height if the height is not already inherited by `line-height` */
41
+ height?: string;
42
+ /** Inverts the color for use on dark backgrounds */
43
+ isLight?: boolean;
44
+ }
45
+ export interface ISpinnerProps extends SVGAttributes<SVGSVGElement> {
46
+ /**
47
+ * Sets the height and width in pixels. Inherits the parent's font size by default.
48
+ **/
49
+ size?: string;
50
+ /**
51
+ * Sets the length of the animation cycle in milliseconds
52
+ **/
53
+ duration?: number;
54
+ /**
55
+ * Sets the fill color. Inherits the parent's `color` by default.
56
+ **/
57
+ color?: string;
58
+ /**
59
+ * Delays displaying the loader to prevent a render flash during normal loading times
60
+ **/
61
+ delayMS?: number;
62
+ }
@@ -1,9 +1,9 @@
1
- /**
2
- * Copyright Zendesk, Inc.
3
- *
4
- * Use of this source code is governed under the Apache License, Version 2.0
5
- * found at http://www.apache.org/licenses/LICENSE-2.0.
6
- */
7
- export declare const dotOneKeyframes: import("styled-components").Keyframes;
8
- export declare const dotTwoKeyframes: import("styled-components").Keyframes;
9
- export declare const dotThreeKeyframes: import("styled-components").Keyframes;
1
+ /**
2
+ * Copyright Zendesk, Inc.
3
+ *
4
+ * Use of this source code is governed under the Apache License, Version 2.0
5
+ * found at http://www.apache.org/licenses/LICENSE-2.0.
6
+ */
7
+ export declare const dotOneKeyframes: import("styled-components").Keyframes;
8
+ export declare const dotTwoKeyframes: import("styled-components").Keyframes;
9
+ export declare const dotThreeKeyframes: import("styled-components").Keyframes;
@@ -1,11 +1,11 @@
1
- /**
2
- * Copyright Zendesk, Inc.
3
- *
4
- * Use of this source code is governed under the Apache License, Version 2.0
5
- * found at http://www.apache.org/licenses/LICENSE-2.0.
6
- */
7
- type AnimationPoints = Record<number, number>;
8
- export declare const STROKE_WIDTH_FRAMES: AnimationPoints;
9
- export declare const ROTATION_FRAMES: AnimationPoints;
10
- export declare const DASHARRAY_FRAMES: AnimationPoints;
11
- export {};
1
+ /**
2
+ * Copyright Zendesk, Inc.
3
+ *
4
+ * Use of this source code is governed under the Apache License, Version 2.0
5
+ * found at http://www.apache.org/licenses/LICENSE-2.0.
6
+ */
7
+ type AnimationPoints = Record<number, number>;
8
+ export declare const STROKE_WIDTH_FRAMES: AnimationPoints;
9
+ export declare const ROTATION_FRAMES: AnimationPoints;
10
+ export declare const DASHARRAY_FRAMES: AnimationPoints;
11
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zendeskgarden/react-loaders",
3
- "version": "8.69.1",
3
+ "version": "8.69.3",
4
4
  "description": "Components relating to loaders in the Garden Design System",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Zendesk Garden <garden@zendesk.com>",
@@ -32,7 +32,7 @@
32
32
  "styled-components": "^4.2.0 || ^5.0.0"
33
33
  },
34
34
  "devDependencies": {
35
- "@zendeskgarden/react-theming": "^8.69.1"
35
+ "@zendeskgarden/react-theming": "^8.69.3"
36
36
  },
37
37
  "keywords": [
38
38
  "components",
@@ -44,5 +44,5 @@
44
44
  "access": "public"
45
45
  },
46
46
  "zendeskgarden:src": "src/index.ts",
47
- "gitHead": "ab010f00c7f957856d49b9507543dbb6e07e3228"
47
+ "gitHead": "c861fbeb70120b66b05d2ce3a26ccf3047659aa0"
48
48
  }