@nulogy/components 10.3.0 → 10.4.0
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.
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { SpaceProps } from "styled-system";
|
|
3
3
|
import { DefaultNDSThemeType } from "../theme.type";
|
|
4
|
+
import icons from "@nulogy/icons";
|
|
4
5
|
type ComponentSize = "small" | "medium" | "large";
|
|
5
6
|
export type ButtonProps = SpaceProps & React.ComponentPropsWithRef<"button"> & {
|
|
6
7
|
className?: string;
|
|
7
|
-
icon?:
|
|
8
|
+
icon?: keyof typeof icons | "loading";
|
|
8
9
|
iconSide?: "left" | "right";
|
|
9
10
|
size?: ComponentSize;
|
|
10
11
|
fullWidth?: boolean;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
import icons from "@nulogy/icons";
|
|
1
2
|
import React from "react";
|
|
2
3
|
import { SpaceProps } from "styled-system";
|
|
3
4
|
declare const ControlIcon: React.ForwardRefExoticComponent<Omit<Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
4
5
|
ref?: React.Ref<HTMLButtonElement>;
|
|
5
6
|
} & SpaceProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & {
|
|
6
7
|
onClick?: React.MouseEventHandler<HTMLButtonElement>;
|
|
7
|
-
icon:
|
|
8
|
+
icon: keyof typeof icons | "loading";
|
|
8
9
|
toggled?: boolean;
|
|
9
10
|
disabled?: boolean;
|
|
10
11
|
size?: string;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { SpaceProps } from "styled-system";
|
|
3
|
+
import icons from "@nulogy/icons";
|
|
3
4
|
import { ComponentSize } from "../NDSProvider/ComponentSizeContext";
|
|
4
5
|
interface BaseProps {
|
|
5
6
|
size?: ComponentSize;
|
|
6
7
|
color?: string;
|
|
7
8
|
labelHidden?: boolean;
|
|
8
|
-
icon?:
|
|
9
|
+
icon?: keyof typeof icons | "loading";
|
|
9
10
|
iconSize?: string;
|
|
10
11
|
hoverBackgroundColor?: string;
|
|
11
12
|
fontSize?: string;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import React, { ReactElement } from "react";
|
|
2
|
+
import icons from "@nulogy/icons";
|
|
2
3
|
interface FramedIconProps extends React.ComponentPropsWithoutRef<"svg"> {
|
|
3
4
|
iconSize: string;
|
|
4
|
-
icon:
|
|
5
|
+
icon: keyof typeof icons | "loading";
|
|
5
6
|
focusable?: boolean;
|
|
6
7
|
maxWidth?: string;
|
|
7
8
|
tooltip?: string | ReactElement;
|
package/dist/src/Icon/Icon.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { SpaceProps } from "styled-system";
|
|
3
|
+
import icons from "@nulogy/icons";
|
|
3
4
|
interface IconProps extends SpaceProps {
|
|
4
|
-
icon:
|
|
5
|
+
icon: keyof typeof icons | "loading";
|
|
5
6
|
className?: string;
|
|
6
7
|
size?: string;
|
|
7
8
|
title?: string;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { ComponentSize } from "../NDSProvider/ComponentSizeContext";
|
|
3
|
+
import icons from "@nulogy/icons";
|
|
3
4
|
type NativeInputProps = Omit<React.ComponentPropsWithRef<"input">, "size">;
|
|
4
5
|
export interface InputFieldProps extends NativeInputProps {
|
|
5
6
|
htmlSize?: number;
|
|
6
7
|
size?: ComponentSize;
|
|
7
|
-
icon?:
|
|
8
|
+
icon?: keyof typeof icons | "loading";
|
|
8
9
|
error?: boolean;
|
|
9
10
|
labelText?: string;
|
|
10
11
|
requirementText?: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nulogy/components",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.4.0",
|
|
4
4
|
"description": "Component library for the Nulogy Design System - http://nulogy.design",
|
|
5
5
|
"private": false,
|
|
6
6
|
"publishConfig": {
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"@babel/preset-env": "7.3.1",
|
|
65
65
|
"@babel/preset-typescript": "^7.10.4",
|
|
66
66
|
"@nulogy/eslint-config-nulogy": "^1.0.0",
|
|
67
|
-
"@nulogy/icons": "4.
|
|
67
|
+
"@nulogy/icons": "^4.36.0",
|
|
68
68
|
"@rollup/plugin-babel": "^5.0.0",
|
|
69
69
|
"@rollup/plugin-node-resolve": "^7.1.3",
|
|
70
70
|
"@semantic-release/changelog": "^6.0.2",
|