@zendeskgarden/react-accordions 8.47.1 → 8.48.2

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.
@@ -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,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 ILabel {
9
- /** Replaces the stepper number with an icon */
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
- /** Determines if the label is displayed */
11
+ /** Hides the label text */
12
12
  isHidden?: boolean;
13
13
  }
14
- export declare const Label: React.ForwardRefExoticComponent<ILabel & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
15
- export {};
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 { RefAttributes, HTMLAttributes, PropsWithoutRef, ForwardRefExoticComponent } from 'react';
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 IStaticTimelineExport<T, P> extends ForwardRefExoticComponent<PropsWithoutRef<P> & RefAttributes<T>> {
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 HTMLAttributes<HTMLOListElement>
16
+ * @extends OlHTMLAttributes<HTMLOListElement>
22
17
  */
23
- export declare const Timeline: IStaticTimelineExport<HTMLOListElement, ITimelineProps>;
24
- export {};
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, HTMLAttributes } from 'react';
8
- export interface IItem extends HTMLAttributes<HTMLLIElement> {
9
- /** Defines the icon rendered in place of the dot */
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 SVG icon placed on a non-white background */
11
+ /** Provides surface color for an icon placed on a non-white background */
12
12
  surfaceColor?: string;
13
13
  }
14
- export declare const Item: React.ForwardRefExoticComponent<IItem & React.RefAttributes<HTMLLIElement>>;
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>>;
@@ -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.47.1",
3
+ "version": "8.48.2",
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.6.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.47.1",
39
+ "@zendeskgarden/react-theming": "^8.48.2",
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": "62420ca54dbb5b3b90cd05bf455cd4ba91b4965e"
53
+ "gitHead": "c514c351b0973fe1f9853853c536d4fac10f4ce4"
54
54
  }