@rango-dev/ui 0.1.14-next.0 → 0.1.14-next.2
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/components/ColorPicker/ColorPicker.d.ts +5 -5
- package/dist/components/Settings/Settings.d.ts +1 -0
- package/dist/helper/index.d.ts +3 -0
- package/dist/index.d.ts +1 -0
- package/dist/ui.cjs.development.js +199 -114
- package/dist/ui.cjs.development.js.map +1 -1
- package/dist/ui.cjs.production.min.js +1 -1
- package/dist/ui.cjs.production.min.js.map +1 -1
- package/dist/ui.esm.js +199 -115
- package/dist/ui.esm.js.map +1 -1
- package/package.json +3 -2
- package/src/components/Alert/Alert.tsx +2 -2
- package/src/components/BestRoute/BestRoute.tsx +4 -3
- package/src/components/Button/Button.tsx +42 -42
- package/src/components/Chip/Chip.tsx +1 -1
- package/src/components/ColorPicker/ColorPicker.stories.tsx +9 -2
- package/src/components/ColorPicker/ColorPicker.tsx +34 -10
- package/src/components/Icon/common.ts +2 -2
- package/src/components/LiquiditySourceList/LiquiditySourceList.tsx +2 -2
- package/src/components/Radio/Radio.tsx +2 -2
- package/src/components/SelectableWalletList/SelectableWalletList.tsx +5 -5
- package/src/components/Settings/Settings.tsx +20 -16
- package/src/components/Skeleton/Skeleton.tsx +1 -1
- package/src/components/Spinner/Spinner.tsx +1 -1
- package/src/components/StepDetail/StepDetail.tsx +4 -4
- package/src/components/SwapContainer/SwapContainer.tsx +3 -3
- package/src/components/SwapDetail/SwapDetail.tsx +1 -1
- package/src/components/SwapDetail/Token.tsx +2 -2
- package/src/components/Switch/Switch.tsx +2 -2
- package/src/components/TextField/TextField.tsx +3 -3
- package/src/components/TokenList/TokenItem.tsx +1 -1
- package/src/components/Tooltip/Tooltip.tsx +2 -2
- package/src/containers/ConfirmSwap/ConfirmSwap.tsx +4 -4
- package/src/containers/History/SwapsGroup.tsx +1 -1
- package/src/containers/SwapHistory/SwapHistory.tsx +5 -5
- package/src/helper/index.ts +75 -0
- package/src/index.ts +1 -0
- package/src/theme.ts +23 -17
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
import { ColorResult } from 'react-color';
|
|
1
|
+
/// <reference types="react" />
|
|
3
2
|
export interface PropTypes {
|
|
4
|
-
color
|
|
3
|
+
color?: string;
|
|
5
4
|
place: 'top' | 'bottom' | 'left' | 'right';
|
|
6
|
-
onChangeColor: (color
|
|
5
|
+
onChangeColor: (color?: string) => void;
|
|
7
6
|
label?: string;
|
|
7
|
+
placeholder?: string;
|
|
8
8
|
}
|
|
9
|
-
export declare function ColorPicker({ color, onChangeColor, label, place }: PropTypes): JSX.Element;
|
|
9
|
+
export declare function ColorPicker({ color, onChangeColor, label, place, placeholder, }: PropTypes): JSX.Element;
|
package/dist/helper/index.d.ts
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
1
|
export declare function containsText(text: string, searchText: string): boolean;
|
|
2
2
|
export declare function getConciseAddress(address: string | null, maxChars?: number, ellipsisLength?: number): string | null;
|
|
3
3
|
export declare function limitDecimalPlaces(numberString: string, maxDecimalPlaces?: number): string;
|
|
4
|
+
export declare const generateRangeColors: (name: string, mode: 'light' | 'dark', color?: string | undefined) => {
|
|
5
|
+
[x: string]: string | undefined;
|
|
6
|
+
};
|
package/dist/index.d.ts
CHANGED