pmg-ui-kit 0.0.43 → 0.0.45
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/icons/MinusIcon.d.ts +8 -0
- package/dist/icons/MinusIcon.js +2 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/ui/atoms/Input.js +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
export const MinusIcon = ({ onClick, width = 24, height = 24, color = "currentColor" }) => (_jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: width, height: height, viewBox: "0 0 24 24", fill: "none", stroke: color, strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", onClick: onClick, className: "icon icon-tabler icons-tabler-outline icon-tabler-minus", children: [_jsx("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }), _jsx("path", { d: "M5 12l14 0" })] }));
|
package/dist/index.d.ts
CHANGED
|
@@ -53,6 +53,7 @@ export * from './icons/InfoIcon';
|
|
|
53
53
|
export * from './icons/InformationCircleIcon';
|
|
54
54
|
export * from './icons/InformationTriangleIcon';
|
|
55
55
|
export * from './icons/LanguageIcon';
|
|
56
|
+
export * from './icons/MinusIcon';
|
|
56
57
|
export * from './icons/NotAllowIcon';
|
|
57
58
|
export * from './icons/PercentageIcon';
|
|
58
59
|
export * from './icons/PlusIcon';
|
package/dist/index.js
CHANGED
|
@@ -53,6 +53,7 @@ export * from './icons/InfoIcon';
|
|
|
53
53
|
export * from './icons/InformationCircleIcon';
|
|
54
54
|
export * from './icons/InformationTriangleIcon';
|
|
55
55
|
export * from './icons/LanguageIcon';
|
|
56
|
+
export * from './icons/MinusIcon';
|
|
56
57
|
export * from './icons/NotAllowIcon';
|
|
57
58
|
export * from './icons/PercentageIcon';
|
|
58
59
|
export * from './icons/PlusIcon';
|
package/dist/ui/atoms/Input.js
CHANGED
|
@@ -4,7 +4,7 @@ import { Text } from "./Text";
|
|
|
4
4
|
export const Input = ({ type = "text", id = "", placeholder = "", required = false, value, handleOnChange, className, disabled = false, rightSpanIcon, bottomHint, onClick, onFocus, onBlur, onValidationChange, wrapperClassNames, pattern, name, hideNumberArrows = true, removeWhitespacesOnChange = false, }) => {
|
|
5
5
|
const disabledClasses = "disabled:bg-slate-50 disabled:text-slate-500 disabled:border-slate-200 disabled:shadow-none";
|
|
6
6
|
const hideNumberArrowsClasses = "[appearance:textfield] [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none";
|
|
7
|
-
return (_jsxs("div", { className: classNames("flex flex-col", wrapperClassNames), children: [_jsxs("div", { className: "flex flex-row", children: [_jsx("input", { pattern: pattern ? pattern?.source : undefined, type: type, step: type === "number" ? "0.01" : undefined, id: id, onClick: onClick, onFocus: onFocus, onBlur: onBlur, value: value
|
|
7
|
+
return (_jsxs("div", { className: classNames("flex flex-col", wrapperClassNames), children: [_jsxs("div", { className: "flex flex-row", children: [_jsx("input", { pattern: pattern ? pattern?.source : undefined, type: type, step: type === "number" ? "0.01" : undefined, id: id, onClick: onClick, onFocus: onFocus, onBlur: onBlur, value: value ?? "", onChange: (event) => {
|
|
8
8
|
const isValid = pattern ? pattern.test(event.target.value) : true;
|
|
9
9
|
const newValue = removeWhitespacesOnChange
|
|
10
10
|
? event.target.value.replace(/\s/g, "")
|