@nextelco/common-ui 1.7.62 → 1.7.64
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/dist/bundle.js +1 -1
- package/dist/types/components/atoms/Input/Input.d.ts +12 -0
- package/dist/types/components/molecules/Search/Search.d.ts +7 -0
- package/dist/types/components/organisms/Selector/Selector.d.ts +19 -2
- package/dist/types/styles/themes/ButtonThemes.d.ts +3 -0
- package/dist/types/types/Fetcher.d.ts +3 -0
- package/package.json +1 -1
@@ -0,0 +1,12 @@
|
|
1
|
+
import React, { ChangeEvent } from 'react';
|
2
|
+
import './Input.scss';
|
3
|
+
type Props = {
|
4
|
+
placeholder?: string;
|
5
|
+
onChange: (e: ChangeEvent<HTMLInputElement>) => void;
|
6
|
+
onBlur?: (e: ChangeEvent<HTMLInputElement>) => void;
|
7
|
+
type?: 'number' | 'text';
|
8
|
+
value?: string | number | null;
|
9
|
+
disabled?: boolean;
|
10
|
+
};
|
11
|
+
declare const Input: ({ placeholder, onChange, onBlur, type, value, disabled, }: Props) => React.JSX.Element;
|
12
|
+
export default Input;
|
@@ -1,4 +1,21 @@
|
|
1
1
|
import React from 'react';
|
2
|
-
|
3
|
-
|
2
|
+
import { IconProp } from '@fortawesome/fontawesome-svg-core';
|
3
|
+
import { Fetcher } from '../../../types/Fetcher';
|
4
|
+
import './Selector.scss';
|
5
|
+
type SelectableElement = {
|
6
|
+
id: string;
|
7
|
+
name: string;
|
8
|
+
code?: string;
|
9
|
+
};
|
10
|
+
type SelectorProps<T extends SelectableElement> = {
|
11
|
+
title: string;
|
12
|
+
onClose: () => void;
|
13
|
+
onConfirm: (selected: T[]) => void;
|
14
|
+
initiallySelected: T[];
|
15
|
+
blocked?: string[];
|
16
|
+
single?: boolean;
|
17
|
+
icon: IconProp;
|
18
|
+
fetcher: Fetcher;
|
19
|
+
};
|
20
|
+
declare const Selector: <T extends SelectableElement>({ title, icon, onClose, onConfirm, initiallySelected, blocked, fetcher, single, }: SelectorProps<T>) => React.JSX.Element;
|
4
21
|
export default Selector;
|
@@ -1,3 +1,6 @@
|
|
1
|
+
import { IconTextTheme } from '../../exports/types';
|
1
2
|
import { ActionButtonTheme, IconButtonTheme } from '../../types/themes/ButtonThemes';
|
2
3
|
export declare const ActionButtonThemeStyled: ActionButtonTheme;
|
3
4
|
export declare const IconButtonThemeStyled: IconButtonTheme;
|
5
|
+
export declare const IconTextDarkThemeStyled: IconTextTheme;
|
6
|
+
export declare const IconTextLightThemeStyled: IconTextTheme;
|