@pingux/astro 2.78.0 → 2.79.0-alpha.0

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.
@@ -133,11 +133,12 @@ declare const _default: {
133
133
  };
134
134
  export default _default;
135
135
  export interface ExampleItemProps {
136
- key?: Key;
137
- name?: string;
136
+ key: Key;
137
+ name: string;
138
138
  textValue?: string;
139
139
  subtext?: string;
140
- id?: string;
140
+ id: string | number;
141
+ hasSeparator?: boolean;
141
142
  }
142
143
  export declare const Default: ({ ...args }: {
143
144
  [x: string]: any;
@@ -1,7 +1,8 @@
1
1
  import React from 'react';
2
2
  import { ListViewState } from '../../types/listView';
3
+ import { ExampleItemProps } from './ListView.stories';
3
4
  interface ListViewContextType<T> {
4
5
  state: ListViewState<T>;
5
6
  }
6
- export declare const ListViewContext: React.Context<ListViewContextType<object>>;
7
+ export declare const ListViewContext: React.Context<ListViewContextType<ExampleItemProps>>;
7
8
  export {};
@@ -420,9 +420,11 @@ var InnerPanel = function InnerPanel(_ref2) {
420
420
  pt: "md"
421
421
  }, "Children render here.")));
422
422
  var items = [{
423
+ key: 'Form 1',
423
424
  id: 1,
424
425
  name: 'Form 1'
425
426
  }, {
427
+ key: 'Form 2',
426
428
  id: 2,
427
429
  name: 'Form 2'
428
430
  }];
@@ -2,8 +2,9 @@ import { Dispatch, Key, ReactNode, SetStateAction } from 'react';
2
2
  import { FocusManager } from 'react-aria';
3
3
  import { TreeProps, TreeState } from 'react-stately';
4
4
  import type { GridNode } from '@react-types/grid';
5
+ import { ExampleItemProps } from '../components/ListView/ListView.stories';
5
6
  export type SelectionOptions = 'expansion' | 'single' | 'multiple' | 'none';
6
- export interface ListViewProps extends Omit<TreeProps<object>, 'selectionMode'> {
7
+ export interface ListViewProps extends Omit<TreeProps<ExampleItemProps>, 'selectionMode'> {
7
8
  selectionStyle?: string;
8
9
  isHoverable?: boolean;
9
10
  loadingState?: string;
@@ -403,9 +403,11 @@ export var InnerPanel = function InnerPanel(_ref2) {
403
403
  pt: "md"
404
404
  }, "Children render here.")));
405
405
  var items = [{
406
+ key: 'Form 1',
406
407
  id: 1,
407
408
  name: 'Form 1'
408
409
  }, {
410
+ key: 'Form 2',
409
411
  id: 2,
410
412
  name: 'Form 2'
411
413
  }];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pingux/astro",
3
- "version": "2.78.0",
3
+ "version": "2.79.0-alpha.0",
4
4
  "description": "React component library for Ping Identity's design system",
5
5
  "repository": {
6
6
  "type": "git",