@agilekit/ui 0.1.0-alpha.17 → 0.1.0-alpha.19
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/lib/index.css +1 -0
- package/lib/index.js +1 -1
- package/lib/src/components/MultiselectGroup/MultiselectGroup.d.ts +13 -0
- package/lib/src/components/MultiselectGroup/MultiselectGroup.test.d.ts +1 -0
- package/lib/src/components/MultiselectGroup/index.d.ts +2 -0
- package/lib/src/components/NumberStepper/NumberStepper.d.ts +5 -0
- package/lib/src/components/NumberStepper/NumberStepper.styles.d.ts +1 -0
- package/lib/src/components/NumberStepper/NumberStepper.types.d.ts +18 -0
- package/lib/src/components/NumberStepper/index.d.ts +2 -0
- package/lib/src/components/NumberStepper/tests/NumberStepper.test.d.ts +1 -0
- package/lib/src/index.d.ts +2 -0
- package/package.json +1 -1
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface MultiselectGroupProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
items: string[];
|
|
4
|
+
selectedItems?: string[];
|
|
5
|
+
consolidated?: boolean;
|
|
6
|
+
collapsed?: boolean;
|
|
7
|
+
onSelectionChange?: (newSelected: string[]) => void;
|
|
8
|
+
isRange?: boolean;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
'data-testid'?: string;
|
|
11
|
+
}
|
|
12
|
+
declare const MultiselectGroup: React.FC<MultiselectGroupProps>;
|
|
13
|
+
export default MultiselectGroup;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { NumberStepperProps } from './NumberStepper.types';
|
|
3
|
+
export type { NumberStepperProps, NumberStepperValue } from './NumberStepper.types';
|
|
4
|
+
declare const NumberStepper: React.FC<NumberStepperProps>;
|
|
5
|
+
export default NumberStepper;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useNumberStepperStyles: (props?: any) => import("@material-ui/styles").ClassNameMap<"input" | "root" | "helperText" | "secondaryLabel" | "inputLabel" | "inputLabelFocused" | "asteriskRequired" | "inputContainer" | "inputContainerFocus" | "inputContainerDisabled" | "inputContainerError" | "inputDisabled" | "sizeMd" | "sizeSm" | "actionButton" | "actionButtonLeft" | "actionButtonRight" | "actionButtonLeftMd" | "actionButtonRightMd" | "actionButtonSm" | "actionButtonDisabled" | "actionIconMd" | "actionIconSm" | "valueSegment" | "valueSegmentMd" | "valueSegmentSm" | "valueSegmentFocus" | "valueSegmentDisabled">;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BasicTextFieldProps } from '../TextField';
|
|
3
|
+
export type NumberStepperValue = number | '';
|
|
4
|
+
export interface NumberStepperProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange' | 'defaultValue' | 'onBlur' | 'onFocus'>, BasicTextFieldProps {
|
|
5
|
+
value?: NumberStepperValue;
|
|
6
|
+
defaultValue?: NumberStepperValue;
|
|
7
|
+
onValueChange?(nextValue: NumberStepperValue): void;
|
|
8
|
+
onChange?(event: React.ChangeEvent<HTMLInputElement>): void;
|
|
9
|
+
min?: number;
|
|
10
|
+
max?: number;
|
|
11
|
+
step?: number;
|
|
12
|
+
size?: 'md' | 'sm';
|
|
13
|
+
decrementDisabled?: boolean;
|
|
14
|
+
incrementDisabled?: boolean;
|
|
15
|
+
name?: string;
|
|
16
|
+
onFocus?: React.FocusEventHandler<HTMLInputElement>;
|
|
17
|
+
onBlur?: React.FocusEventHandler<HTMLInputElement>;
|
|
18
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/lib/src/index.d.ts
CHANGED
|
@@ -29,6 +29,7 @@ export { default as Heading } from './components/Heading/Heading';
|
|
|
29
29
|
export { default as Icon } from './components/Icon/Icon';
|
|
30
30
|
export { default as InputFile } from './components/InputFile/InputFile';
|
|
31
31
|
export { default as InputDuration } from './components/InputDuration';
|
|
32
|
+
export { default as NumberStepper } from './components/NumberStepper';
|
|
32
33
|
export { default as Label } from './components/Label/Label';
|
|
33
34
|
export { default as Labelled } from './components/Labelled/Labelled';
|
|
34
35
|
export { default as Link } from './components/Link/Link';
|
|
@@ -36,6 +37,7 @@ export { default as Loader } from './components/Loader/Loader';
|
|
|
36
37
|
export { default as Modal } from './components/Modal/Modal';
|
|
37
38
|
export { default as MultiTextField } from './components/MultiTextField/MultiTextField';
|
|
38
39
|
export { default as MultiSelect } from './components/MultiSelect/MultiSelect';
|
|
40
|
+
export { default as MultiselectGroup } from './components/MultiselectGroup/MultiselectGroup';
|
|
39
41
|
export { default as Navigation } from './components/Navigation/Navigation';
|
|
40
42
|
export { default as Image } from './components/Image/Image';
|
|
41
43
|
export { default as OutsideClickDetector } from './components/OutsideClickDetector/OutsideClickDetector';
|