@elliemae/ds-chip 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,5 @@
1
+ import React from 'react';
2
+ import type { DSChipT } from './react-desc-prop-types';
3
+ declare const DSChip: React.ComponentType<DSChipT.Props>;
4
+ declare const DSChipWithSchema: import("@elliemae/ds-utilities/dist/types/props-helpers/propTypes/types").DocumentedReactComponent<DSChipT.Props>;
5
+ export { DSChip, DSChipWithSchema };
@@ -0,0 +1,12 @@
1
+ /// <reference types="react" />
2
+ import type { DSChipT } from '../react-desc-prop-types';
3
+ export declare const useConfig: (props: DSChipT.Props) => {
4
+ globalAttrs: import("@elliemae/ds-utilities").GlobalAttributesT<Element>;
5
+ xStyledAttrs: import("@elliemae/ds-utilities").XstyledProps;
6
+ selected: boolean;
7
+ innerRef: import("react").RefObject<HTMLButtonElement> | ((_ref: HTMLButtonElement) => void);
8
+ size: import("../sharedTypes").ChipSizesT;
9
+ shape: import("../sharedTypes").ChipShapesT;
10
+ label: string;
11
+ icon: () => JSX.Element;
12
+ };
@@ -0,0 +1,36 @@
1
+ export declare const CHIP_SHAPES: {
2
+ DEFAULT: "default";
3
+ ROUND: "round";
4
+ };
5
+ export declare const CHIP_SIZES: {
6
+ S: "s";
7
+ L: "l";
8
+ };
9
+ export declare const roundShapeLarge = "56px";
10
+ export declare const roundShapeSmall = "40px";
11
+ export declare const basicSizes: {
12
+ s: {
13
+ readonly width: "72px";
14
+ readonly height: "67px";
15
+ };
16
+ l: {
17
+ readonly width: "92px";
18
+ readonly height: "67px";
19
+ };
20
+ };
21
+ export declare const shapeSizes: {
22
+ s: {
23
+ readonly width: "72px";
24
+ readonly height: "77px";
25
+ };
26
+ l: {
27
+ readonly width: "92px";
28
+ readonly height: "85px";
29
+ };
30
+ };
31
+ export declare const ChipSizesValuesArray: ("s" | "l")[];
32
+ export declare const ChipShapesValuesArray: ("default" | "round")[];
33
+ export declare const ChipInteractionStates: string[];
34
+ export declare const ChipSizesValuesString: string;
35
+ export declare const ChipShapesValuesString: string;
36
+ export declare const ChipInteractionStatesValuesString: string;
@@ -0,0 +1,5 @@
1
+ export declare const DSChipDataTestIds: {
2
+ BUTTON: string;
3
+ LABEL: string;
4
+ ROUND_SHAPE: string;
5
+ };
@@ -0,0 +1,2 @@
1
+ export * from './data-test-ids';
2
+ export * from './theming';
@@ -0,0 +1,7 @@
1
+ export declare const DSChipName = "DSChip";
2
+ export declare const DSChipSlots: {
3
+ BUTTON: string;
4
+ LABEL: string;
5
+ ROUND_SHAPE: string;
6
+ CHILDREN_WRAPPER: string;
7
+ };
@@ -0,0 +1,3 @@
1
+ export * from './DSChip';
2
+ export * from './constants';
3
+ export * from './exported_related';
@@ -0,0 +1,24 @@
1
+ import type { WeakValidationMap } from 'react';
2
+ import type React from 'react';
3
+ import type { XstyledProps, GlobalAttributesT } from '@elliemae/ds-utilities';
4
+ import type { ChipSizesT, ChipShapesT } from './sharedTypes';
5
+ export declare const defaultProps: DSChipT.DefaultProps;
6
+ export declare namespace DSChipT {
7
+ interface DefaultProps {
8
+ size: ChipSizesT;
9
+ shape: ChipShapesT;
10
+ }
11
+ interface OptionalProps {
12
+ selected?: boolean;
13
+ innerRef?: React.RefObject<HTMLButtonElement> | ((_ref: HTMLButtonElement) => void);
14
+ }
15
+ interface RequiredProps {
16
+ label: string;
17
+ icon: () => JSX.Element;
18
+ }
19
+ interface InternalProps extends OptionalProps, Partial<DefaultProps>, RequiredProps {
20
+ }
21
+ interface Props extends Omit<GlobalAttributesT<HTMLButtonElement>, keyof InternalProps>, InternalProps, XstyledProps {
22
+ }
23
+ }
24
+ export declare const DSChipPropTypes: WeakValidationMap<unknown>;
@@ -0,0 +1,4 @@
1
+ import type { CHIP_SIZES, CHIP_SHAPES, ChipInteractionStates } from './constants';
2
+ export type ChipSizesT = typeof CHIP_SIZES[keyof typeof CHIP_SIZES];
3
+ export type ChipShapesT = typeof CHIP_SHAPES[keyof typeof CHIP_SHAPES];
4
+ export type ChipInteractionStatesT = typeof ChipInteractionStates[number];
@@ -0,0 +1,18 @@
1
+ import type { ChipShapesT, ChipSizesT } from './sharedTypes';
2
+ export interface StyledChipPropsT {
3
+ buttonSize: ChipSizesT;
4
+ buttonShape: ChipShapesT;
5
+ selected?: boolean;
6
+ }
7
+ export interface StyledRoundShapePropsT {
8
+ size: ChipSizesT;
9
+ disabled?: boolean;
10
+ }
11
+ export declare const StyledChipLabel: import("styled-components").StyledComponent<"div", import("@elliemae/ds-system").Theme, {
12
+ size: ChipSizesT;
13
+ }, never>;
14
+ export declare const StyledSpanWithEllipsis: import("styled-components").StyledComponent<keyof JSX.IntrinsicElements, import("@elliemae/ds-system").Theme, Record<string, unknown> & object, never>;
15
+ export declare const StyledWrapper: import("styled-components").StyledComponent<"div", import("@elliemae/ds-system").Theme, StyledChipPropsT, never>;
16
+ export declare const StyledChip: import("styled-components").StyledComponent<"button", import("@elliemae/ds-system").Theme, Pick<StyledChipPropsT, "selected" | "buttonShape">, never>;
17
+ export declare const StyledRoundShape: import("styled-components").StyledComponent<"div", import("@elliemae/ds-system").Theme, StyledRoundShapePropsT, never>;
18
+ export declare const StyledChildrenWrapper: import("styled-components").StyledComponent<"div", import("@elliemae/ds-system").Theme, object, never>;
@@ -0,0 +1 @@
1
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/ds-chip",
3
- "version": "3.13.1-rc.1",
3
+ "version": "3.13.1",
4
4
  "license": "MIT",
5
5
  "description": "ICE MT - Dimsum - Chip",
6
6
  "files": [
@@ -63,14 +63,14 @@
63
63
  "indent": 4
64
64
  },
65
65
  "dependencies": {
66
- "@elliemae/ds-system": "3.13.1-rc.1",
67
- "@elliemae/ds-utilities": "3.13.1-rc.1"
66
+ "@elliemae/ds-system": "3.13.1",
67
+ "@elliemae/ds-utilities": "3.13.1"
68
68
  },
69
69
  "devDependencies": {
70
70
  "@testing-library/jest-dom": "~5.16.4",
71
71
  "@testing-library/react": "~12.1.3",
72
72
  "styled-components": "~5.3.6",
73
- "@elliemae/ds-icons": "3.13.1-rc.1"
73
+ "@elliemae/ds-icons": "3.13.1"
74
74
  },
75
75
  "peerDependencies": {
76
76
  "react": "^17.0.2",