@elliemae/ds-app-picker 3.13.1-rc.1 → 3.13.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.
@@ -0,0 +1,3 @@
1
+ import type { DSAppPickerImplType } from './types/AppPickerTypes';
2
+ declare const AppPickerImpl: DSAppPickerImplType;
3
+ export default AppPickerImpl;
@@ -0,0 +1,5 @@
1
+ import type { DSAppPickerType } from './types/AppPickerTypes';
2
+ declare const DSAppPicker: DSAppPickerType;
3
+ declare const AppPickerWithSchema: import("@elliemae/ds-utilities/dist/types/props-helpers/propTypes/types").DocumentedReactComponent<import("./types/AppPickerTypes").AppPickerPropsType>;
4
+ export { DSAppPicker, AppPickerWithSchema };
5
+ export default DSAppPicker;
@@ -0,0 +1,6 @@
1
+ import type React from 'react';
2
+ import type { ActionRef } from '../types/AppPickerTypes';
3
+ export declare const useKeepTrackButtons: (wrapperRef: React.RefObject<HTMLDivElement>, wasOpenedByKeyboardRef: React.MutableRefObject<boolean>, actionRef?: ActionRef, triggerIsInternal?: boolean) => {
4
+ allFocusableButtons: React.MutableRefObject<HTMLButtonElement[]>;
5
+ selectedButton: React.MutableRefObject<number | null>;
6
+ };
@@ -0,0 +1,2 @@
1
+ export * from './DSAppPicker';
2
+ export { default } from './DSAppPicker';
@@ -0,0 +1,2 @@
1
+ import type { WeakValidationMap } from 'react';
2
+ export declare const propTypes: WeakValidationMap<unknown>;
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ export declare const StyledWrapper: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid/dist/types/react-desc-prop-types").DSGridT.Props & import("react").RefAttributes<HTMLDivElement>>, import("@elliemae/ds-system").Theme, {
3
+ isOverflow: boolean;
4
+ }, never>;
5
+ export declare const StyledListItem: import("styled-components").StyledComponent<keyof JSX.IntrinsicElements, import("@elliemae/ds-system").Theme, Record<string, unknown> & object, never>;
6
+ export declare const StyledListItemFullRow: import("styled-components").StyledComponent<keyof JSX.IntrinsicElements, import("@elliemae/ds-system").Theme, Record<string, unknown> & object, never>;
7
+ export declare const StyledTitle: import("styled-components").StyledComponent<"h3", import("@elliemae/ds-system").Theme, object, never>;
8
+ export declare const StyledSeparator: import("styled-components").StyledComponent<"hr", import("@elliemae/ds-system").Theme, object, never>;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,49 @@
1
+ import type { SvgIconType } from '@elliemae/ds-icons';
2
+ import type React from 'react';
3
+ export interface AppItemType {
4
+ label: string;
5
+ icon: React.ComponentType<{
6
+ className: string;
7
+ size: string;
8
+ }>;
9
+ onClick?: (e: React.MouseEvent, item: AppItemType) => void | null;
10
+ disabled?: boolean;
11
+ id?: string;
12
+ selected?: boolean;
13
+ }
14
+ export type ActionRef = React.MutableRefObject<{
15
+ focusToIndex?: (index: number) => void;
16
+ focusSelectedOrFirstAvailable?: () => void;
17
+ focusWrapper: () => void;
18
+ }>;
19
+ export interface AppPickerPropsType {
20
+ apps: AppItemType[];
21
+ customApps: AppItemType[];
22
+ sectionTitle: string;
23
+ customSectionTitle: string;
24
+ icon: SvgIconType;
25
+ onKeyDown?: (e: React.KeyboardEvent) => void;
26
+ actionRef?: ActionRef;
27
+ onClick?: (e: React.MouseEvent) => void;
28
+ onClickOutside?: (e: React.MouseEvent) => void;
29
+ renderTrigger?: React.ComponentType<unknown>;
30
+ isOpen?: boolean;
31
+ onClose?: () => void;
32
+ triggerRef?: React.RefObject<HTMLButtonElement>;
33
+ }
34
+ export interface AppPickerImplProps {
35
+ apps: AppItemType[];
36
+ customApps: AppItemType[];
37
+ sectionTitle: string;
38
+ customSectionTitle: string;
39
+ close?: () => void;
40
+ onKeyDown?: (e: React.KeyboardEvent) => void;
41
+ wrapperRef: React.RefObject<HTMLDivElement>;
42
+ triggerRef: React.RefObject<HTMLElement>;
43
+ actionRef?: ActionRef;
44
+ isOverflow: boolean;
45
+ triggerIsInternal: boolean;
46
+ wasOpenedByKeyboardRef: React.MutableRefObject<boolean>;
47
+ }
48
+ export type DSAppPickerImplType = React.ComponentType<AppPickerImplProps>;
49
+ export type DSAppPickerType = React.ComponentType<AppPickerPropsType>;
@@ -0,0 +1,14 @@
1
+ import type React from 'react';
2
+ export declare const keys: {
3
+ LEFT: string;
4
+ UP: string;
5
+ RIGHT: string;
6
+ DOWN: string;
7
+ ENTER: string;
8
+ SPACE: string;
9
+ TAB: string;
10
+ ESC: string;
11
+ HOME: string;
12
+ END: string;
13
+ };
14
+ export declare const focusSelectedOrFirstAvailable: (wrapperRef: React.RefObject<HTMLDivElement>, allFocusableButtonsRef: React.MutableRefObject<HTMLButtonElement[]>, selectedButtonRef: React.MutableRefObject<number | null>) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/ds-app-picker",
3
- "version": "3.13.1-rc.1",
3
+ "version": "3.13.1",
4
4
  "license": "MIT",
5
5
  "description": "ICE MT - Dimsum - App Picker",
6
6
  "files": [
@@ -59,13 +59,13 @@
59
59
  "indent": 4
60
60
  },
61
61
  "dependencies": {
62
- "@elliemae/ds-button": "3.13.1-rc.1",
63
- "@elliemae/ds-chip": "3.13.1-rc.1",
64
- "@elliemae/ds-grid": "3.13.1-rc.1",
65
- "@elliemae/ds-icons": "3.13.1-rc.1",
66
- "@elliemae/ds-popover": "3.13.1-rc.1",
67
- "@elliemae/ds-system": "3.13.1-rc.1",
68
- "@elliemae/ds-utilities": "3.13.1-rc.1"
62
+ "@elliemae/ds-button": "3.13.1",
63
+ "@elliemae/ds-chip": "3.13.1",
64
+ "@elliemae/ds-grid": "3.13.1",
65
+ "@elliemae/ds-icons": "3.13.1",
66
+ "@elliemae/ds-popover": "3.13.1",
67
+ "@elliemae/ds-system": "3.13.1",
68
+ "@elliemae/ds-utilities": "3.13.1"
69
69
  },
70
70
  "devDependencies": {
71
71
  "@testing-library/jest-dom": "~5.16.4",