pmg-ui-kit 0.0.86 → 0.0.88
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.
|
@@ -2,5 +2,5 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import classNames from "classnames";
|
|
3
3
|
import { Text } from "./Text";
|
|
4
4
|
export const RadioButton = ({ checked = false, handleOnClick, value, label, name, required, useMultiline, disabled = false, labelSize = "base" }) => {
|
|
5
|
-
return (_jsxs("label", { className: classNames("flex", useMultiline ? "items-start" : "items-center"), children: [_jsx("input", { type: "radio", disabled: disabled, required: required, value: value, name: name, checked: checked || false, onChange: () => handleOnClick && handleOnClick(value), className: classNames("w-4 h-4 mb-2 text-blue-600 bg-gray-100 border-gray-300 focus:ring-blue-500 dark:focus:ring-blue-600 dark:ring-offset-gray-800 focus:ring-2 dark:bg-gray-700 dark:border-gray-600", useMultiline ? "mt-2" : "") }), _jsx(Text, { className: classNames("ml-2 mt-1", useMultiline ? "h-auto" : "h-8"), size: labelSize, children: label })] }));
|
|
5
|
+
return (_jsxs("label", { className: classNames("flex", useMultiline ? "items-start" : "items-center"), children: [_jsx("input", { type: "radio", disabled: disabled, required: required, value: value, name: name, checked: checked || false, onChange: () => handleOnClick && handleOnClick(value), className: classNames("w-4 h-4 mb-2 text-blue-600 bg-gray-100 border-gray-300 focus:ring-blue-500 dark:focus:ring-blue-600 dark:ring-offset-gray-800 focus:ring-2 dark:bg-gray-700 dark:border-gray-600", useMultiline ? "mt-2" : "", disabled ? "accent-red-500 border-red-400 opacity-70 disabled:border-red-500 disabled:opacity-50 dark:border-red-500 dark:disabled:border-red-400" : "") }), _jsx(Text, { className: classNames("ml-2 mt-1", useMultiline ? "h-auto" : "h-8"), size: labelSize, children: label })] }));
|
|
6
6
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
type TooltipProps = {
|
|
2
2
|
children?: React.ReactNode;
|
|
3
|
+
className?: string;
|
|
3
4
|
content: React.ReactNode;
|
|
4
5
|
};
|
|
5
|
-
export declare const Tooltip: ({ children, content }: TooltipProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export declare const Tooltip: ({ children, className, content }: TooltipProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
7
|
export {};
|
package/dist/ui/atoms/Tooltip.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
|
|
3
3
|
import { Tooltip as FlowbiteTooltip } from "flowbite-react";
|
|
4
|
-
export const Tooltip = ({ children, content }) => {
|
|
5
|
-
return (_jsx(_Fragment, { children: _jsx(FlowbiteTooltip, { content: content, children: children }) }));
|
|
4
|
+
export const Tooltip = ({ children, className, content }) => {
|
|
5
|
+
return (_jsx(_Fragment, { children: _jsx(FlowbiteTooltip, { className: className, content: content, children: children }) }));
|
|
6
6
|
};
|