@zendeskgarden/react-accordions 8.47.0 → 8.48.1
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 +182 -183
- package/dist/index.esm.js +123 -122
- package/dist/typings/elements/accordion/Accordion.d.ts +8 -10
- package/dist/typings/elements/accordion/components/Header.d.ts +3 -0
- package/dist/typings/elements/accordion/components/Label.d.ts +3 -0
- package/dist/typings/elements/accordion/components/Panel.d.ts +3 -0
- package/dist/typings/elements/accordion/components/Section.d.ts +3 -0
- package/dist/typings/elements/stepper/Stepper.d.ts +7 -9
- package/dist/typings/elements/stepper/components/Content.d.ts +3 -0
- package/dist/typings/elements/stepper/components/Label.d.ts +8 -6
- package/dist/typings/elements/stepper/components/Step.d.ts +3 -0
- package/dist/typings/elements/timeline/Timeline.d.ts +8 -10
- package/dist/typings/elements/timeline/components/Content.d.ts +3 -0
- package/dist/typings/elements/timeline/components/Item.d.ts +12 -5
- package/dist/typings/elements/timeline/components/OppositeContent.d.ts +3 -0
- package/dist/typings/index.d.ts +4 -1
- package/package.json +4 -4
|
@@ -4,12 +4,14 @@
|
|
|
4
4
|
* Use of this source code is governed under the Apache License, Version 2.0
|
|
5
5
|
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
6
|
*/
|
|
7
|
-
import React from 'react';
|
|
8
|
-
interface
|
|
9
|
-
/** Replaces the
|
|
7
|
+
import React, { HTMLAttributes } from 'react';
|
|
8
|
+
export interface IStepperLabelProps extends HTMLAttributes<HTMLDivElement> {
|
|
9
|
+
/** Replaces the label number with an icon */
|
|
10
10
|
icon?: React.ReactNode;
|
|
11
|
-
/**
|
|
11
|
+
/** Hides the label text */
|
|
12
12
|
isHidden?: boolean;
|
|
13
13
|
}
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
/**
|
|
15
|
+
* @extends HTMLAttributes<HTMLDivElement>
|
|
16
|
+
*/
|
|
17
|
+
export declare const Label: React.ForwardRefExoticComponent<IStepperLabelProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -5,4 +5,7 @@
|
|
|
5
5
|
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
6
|
*/
|
|
7
7
|
import React from 'react';
|
|
8
|
+
/**
|
|
9
|
+
* @extends LiHTMLAttributes<HTMLLIElement>
|
|
10
|
+
*/
|
|
8
11
|
export declare const Step: React.ForwardRefExoticComponent<React.LiHTMLAttributes<HTMLLIElement> & React.RefAttributes<HTMLLIElement>>;
|
|
@@ -4,21 +4,19 @@
|
|
|
4
4
|
* Use of this source code is governed under the Apache License, Version 2.0
|
|
5
5
|
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
6
|
*/
|
|
7
|
-
import
|
|
7
|
+
import React, { OlHTMLAttributes } from 'react';
|
|
8
8
|
import { Item } from '../timeline/components/Item';
|
|
9
9
|
import { Content } from '../timeline/components/Content';
|
|
10
10
|
import { OppositeContent } from '../timeline/components/OppositeContent';
|
|
11
|
-
interface
|
|
12
|
-
Item: typeof Item;
|
|
13
|
-
Content: typeof Content;
|
|
14
|
-
OppositeContent: typeof OppositeContent;
|
|
15
|
-
}
|
|
16
|
-
export interface ITimelineProps extends Omit<HTMLAttributes<HTMLOListElement>, 'onChange'> {
|
|
11
|
+
export interface ITimelineProps extends Omit<OlHTMLAttributes<HTMLOListElement>, 'onChange'> {
|
|
17
12
|
/** Applies alternate styling */
|
|
18
13
|
isAlternate?: boolean;
|
|
19
14
|
}
|
|
20
15
|
/**
|
|
21
|
-
* @extends
|
|
16
|
+
* @extends OlHTMLAttributes<HTMLOListElement>
|
|
22
17
|
*/
|
|
23
|
-
export declare const Timeline:
|
|
24
|
-
|
|
18
|
+
export declare const Timeline: React.ForwardRefExoticComponent<ITimelineProps & React.RefAttributes<HTMLOListElement>> & {
|
|
19
|
+
Content: typeof Content;
|
|
20
|
+
Item: typeof Item;
|
|
21
|
+
OppositeContent: typeof OppositeContent;
|
|
22
|
+
};
|
|
@@ -5,4 +5,7 @@
|
|
|
5
5
|
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
6
|
*/
|
|
7
7
|
import React from 'react';
|
|
8
|
+
/**
|
|
9
|
+
* @extends HTMLAttributes<HTMLDivElement>
|
|
10
|
+
*/
|
|
8
11
|
export declare const Content: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -4,11 +4,18 @@
|
|
|
4
4
|
* Use of this source code is governed under the Apache License, Version 2.0
|
|
5
5
|
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
6
|
*/
|
|
7
|
-
import React, { ReactNode,
|
|
8
|
-
export interface
|
|
9
|
-
/**
|
|
7
|
+
import React, { ReactNode, LiHTMLAttributes } from 'react';
|
|
8
|
+
export interface ITimelineItemProps extends LiHTMLAttributes<HTMLLIElement> {
|
|
9
|
+
/** Replaces the dot with an icon */
|
|
10
10
|
icon?: ReactNode;
|
|
11
|
-
/** Provides surface color for an
|
|
11
|
+
/** Provides surface color for an icon placed on a non-white background */
|
|
12
12
|
surfaceColor?: string;
|
|
13
13
|
}
|
|
14
|
-
|
|
14
|
+
/**
|
|
15
|
+
* @deprecated use ITimelineItemProps instead
|
|
16
|
+
*/
|
|
17
|
+
export declare type IItem = ITimelineItemProps;
|
|
18
|
+
/**
|
|
19
|
+
* @extends LiHTMLAttributes<HTMLLIElement>
|
|
20
|
+
*/
|
|
21
|
+
export declare const Item: React.ForwardRefExoticComponent<ITimelineItemProps & React.RefAttributes<HTMLLIElement>>;
|
|
@@ -5,4 +5,7 @@
|
|
|
5
5
|
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
6
|
*/
|
|
7
7
|
import React from 'react';
|
|
8
|
+
/**
|
|
9
|
+
* @extends HTMLAttributes<HTMLDivElement>
|
|
10
|
+
*/
|
|
8
11
|
export declare const OppositeContent: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
package/dist/typings/index.d.ts
CHANGED
|
@@ -5,7 +5,10 @@
|
|
|
5
5
|
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
6
|
*/
|
|
7
7
|
export { Stepper } from './elements/stepper/Stepper';
|
|
8
|
+
export type { IStepperProps } from './elements/stepper/Stepper';
|
|
9
|
+
export type { IStepperLabelProps } from './elements/stepper/components/Label';
|
|
8
10
|
export { Accordion } from './elements/accordion/Accordion';
|
|
11
|
+
export type { IAccordionProps } from './elements/accordion/Accordion';
|
|
9
12
|
export { Timeline } from './elements/timeline/Timeline';
|
|
10
13
|
export type { ITimelineProps } from './elements/timeline/Timeline';
|
|
11
|
-
export type { IItem } from './elements/timeline/components/Item';
|
|
14
|
+
export type { ITimelineItemProps, IItem } from './elements/timeline/components/Item';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zendeskgarden/react-accordions",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.48.1",
|
|
4
4
|
"description": "Components related to accordions in the Garden Design System",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Zendesk Garden <garden@zendesk.com>",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"types": "dist/typings/index.d.ts",
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@zendeskgarden/container-accordion": "^1.0.3",
|
|
25
|
-
"@zendeskgarden/container-utilities": "^0.
|
|
25
|
+
"@zendeskgarden/container-utilities": "^0.7.0",
|
|
26
26
|
"lodash.debounce": "^4.0.8",
|
|
27
27
|
"polished": "^4.0.0",
|
|
28
28
|
"prop-types": "^15.5.7",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@types/lodash.debounce": "4.0.6",
|
|
39
|
-
"@zendeskgarden/react-theming": "^8.
|
|
39
|
+
"@zendeskgarden/react-theming": "^8.48.1",
|
|
40
40
|
"@zendeskgarden/svg-icons": "6.30.2"
|
|
41
41
|
},
|
|
42
42
|
"keywords": [
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
"access": "public"
|
|
51
51
|
},
|
|
52
52
|
"zendeskgarden:src": "src/index.ts",
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "82c621bfbc943904baa6647a2f5e89d3271d7edf"
|
|
54
54
|
}
|