@metropolle/design-system 1.0.0-beta.2026.1.25.11.9200926 → 1.0.0-beta.2026.1.25.404.088068c
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/css/components.css +10 -16
- package/dist/react/components/react/VerificationScore/VerificationScore.d.ts.map +1 -1
- package/dist/react/index.esm.js +21 -21
- package/dist/react/index.esm.js.map +1 -1
- package/dist/react/index.js +21 -21
- package/dist/react/index.js.map +1 -1
- package/package.json +1 -1
package/dist/react/index.js
CHANGED
|
@@ -1470,6 +1470,26 @@ const GlassCard = require$$0.forwardRef(({ glassStyle = 'liquid', intensity = 'm
|
|
|
1470
1470
|
});
|
|
1471
1471
|
GlassCard.displayName = 'GlassCard';
|
|
1472
1472
|
|
|
1473
|
+
/**
|
|
1474
|
+
* Button Component
|
|
1475
|
+
*
|
|
1476
|
+
* Componente de botão com variantes baseadas no design system Metropolle.
|
|
1477
|
+
* Inclui suporte a glass morphism e estados de loading.
|
|
1478
|
+
*/
|
|
1479
|
+
const Button = require$$0.forwardRef(({ variant = 'primary', size = 'md', loading = false, leftIcon, rightIcon, fullWidth = false, className, children, disabled, ...props }, ref) => {
|
|
1480
|
+
const isDisabled = disabled || loading;
|
|
1481
|
+
return (jsxRuntimeExports.jsxs("button", { ref: ref, className: cn(
|
|
1482
|
+
// Base classes
|
|
1483
|
+
'mds-button', `mds-button--${variant}`, `mds-button--${size}`,
|
|
1484
|
+
// State classes
|
|
1485
|
+
fullWidth && 'mds-button--full-width', loading && 'mds-button--loading', isDisabled && 'mds-button--disabled', className), disabled: isDisabled, ...props, children: [leftIcon && !loading && (jsxRuntimeExports.jsx("span", { className: "mds-button__icon mds-button__icon--left", children: leftIcon })), loading && (jsxRuntimeExports.jsx("span", { className: "mds-button__icon mds-button__icon--left", children: jsxRuntimeExports.jsx(LoadingSpinner, {}) })), jsxRuntimeExports.jsx("span", { className: "mds-button__content", children: children }), rightIcon && !loading && (jsxRuntimeExports.jsx("span", { className: "mds-button__icon mds-button__icon--right", children: rightIcon }))] }));
|
|
1486
|
+
});
|
|
1487
|
+
Button.displayName = 'Button';
|
|
1488
|
+
/**
|
|
1489
|
+
* Loading Spinner Component
|
|
1490
|
+
*/
|
|
1491
|
+
const LoadingSpinner = () => (jsxRuntimeExports.jsxs("svg", { className: "mds-spinner", width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", children: [jsxRuntimeExports.jsx("circle", { className: "mds-spinner__track", cx: "12", cy: "12", r: "10", stroke: "currentColor", strokeWidth: "2", fill: "none", opacity: "0.25" }), jsxRuntimeExports.jsx("circle", { className: "mds-spinner__path", cx: "12", cy: "12", r: "10", stroke: "currentColor", strokeWidth: "2", fill: "none", strokeDasharray: "40 20", strokeLinecap: "round" })] }));
|
|
1492
|
+
|
|
1473
1493
|
// =============================================================================
|
|
1474
1494
|
// Icons
|
|
1475
1495
|
// =============================================================================
|
|
@@ -1484,7 +1504,7 @@ function VerificationCheckItem({ check, action, variant }) {
|
|
|
1484
1504
|
return (jsxRuntimeExports.jsxs("div", { className: "mds-verification-check-item mds-verification-check-item--compact", children: [jsxRuntimeExports.jsx("span", { className: `mds-verification-check-icon ${check.passed ? 'mds-verification-check-icon--passed' : ''}`, children: check.passed ? '\u2713' : '\u2717' }), jsxRuntimeExports.jsx("span", { className: "mds-verification-check-label", children: check.description })] }));
|
|
1485
1505
|
}
|
|
1486
1506
|
// Card version - with points and optional action
|
|
1487
|
-
return (jsxRuntimeExports.jsxs("div", { className: `mds-verification-check-item ${check.passed ? 'mds-verification-check-item--passed' : ''}`, children: [jsxRuntimeExports.jsx("div", { className: "mds-verification-check-status", children: check.passed ? Icons$1.checkCircle : Icons$1.circle }), jsxRuntimeExports.jsxs("div", { className: "mds-verification-check-content", children: [jsxRuntimeExports.jsx("span", { className: "mds-verification-check-description", children: check.description }), jsxRuntimeExports.jsx("span", { className: "mds-verification-check-points", children: check.passed ? '1 point' : '0 points' })] }), action && !check.passed && (jsxRuntimeExports.jsx(
|
|
1507
|
+
return (jsxRuntimeExports.jsxs("div", { className: `mds-verification-check-item ${check.passed ? 'mds-verification-check-item--passed' : ''}`, children: [jsxRuntimeExports.jsx("div", { className: "mds-verification-check-status", children: check.passed ? Icons$1.checkCircle : Icons$1.circle }), jsxRuntimeExports.jsxs("div", { className: "mds-verification-check-content", children: [jsxRuntimeExports.jsx("span", { className: "mds-verification-check-description", children: check.description }), jsxRuntimeExports.jsx("span", { className: "mds-verification-check-points", children: check.passed ? '1 point' : '0 points' })] }), action && !check.passed && (jsxRuntimeExports.jsx(Button, { variant: "primary", size: "sm", onClick: action.onClick, disabled: action.disabled, children: action.label }))] }));
|
|
1488
1508
|
}
|
|
1489
1509
|
// =============================================================================
|
|
1490
1510
|
// Main Component
|
|
@@ -1695,26 +1715,6 @@ className, children = 'Metropolle', ...props }, ref) => {
|
|
|
1695
1715
|
});
|
|
1696
1716
|
BrandLogo.displayName = 'BrandLogo';
|
|
1697
1717
|
|
|
1698
|
-
/**
|
|
1699
|
-
* Button Component
|
|
1700
|
-
*
|
|
1701
|
-
* Componente de botão com variantes baseadas no design system Metropolle.
|
|
1702
|
-
* Inclui suporte a glass morphism e estados de loading.
|
|
1703
|
-
*/
|
|
1704
|
-
const Button = require$$0.forwardRef(({ variant = 'primary', size = 'md', loading = false, leftIcon, rightIcon, fullWidth = false, className, children, disabled, ...props }, ref) => {
|
|
1705
|
-
const isDisabled = disabled || loading;
|
|
1706
|
-
return (jsxRuntimeExports.jsxs("button", { ref: ref, className: cn(
|
|
1707
|
-
// Base classes
|
|
1708
|
-
'mds-button', `mds-button--${variant}`, `mds-button--${size}`,
|
|
1709
|
-
// State classes
|
|
1710
|
-
fullWidth && 'mds-button--full-width', loading && 'mds-button--loading', isDisabled && 'mds-button--disabled', className), disabled: isDisabled, ...props, children: [leftIcon && !loading && (jsxRuntimeExports.jsx("span", { className: "mds-button__icon mds-button__icon--left", children: leftIcon })), loading && (jsxRuntimeExports.jsx("span", { className: "mds-button__icon mds-button__icon--left", children: jsxRuntimeExports.jsx(LoadingSpinner, {}) })), jsxRuntimeExports.jsx("span", { className: "mds-button__content", children: children }), rightIcon && !loading && (jsxRuntimeExports.jsx("span", { className: "mds-button__icon mds-button__icon--right", children: rightIcon }))] }));
|
|
1711
|
-
});
|
|
1712
|
-
Button.displayName = 'Button';
|
|
1713
|
-
/**
|
|
1714
|
-
* Loading Spinner Component
|
|
1715
|
-
*/
|
|
1716
|
-
const LoadingSpinner = () => (jsxRuntimeExports.jsxs("svg", { className: "mds-spinner", width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", children: [jsxRuntimeExports.jsx("circle", { className: "mds-spinner__track", cx: "12", cy: "12", r: "10", stroke: "currentColor", strokeWidth: "2", fill: "none", opacity: "0.25" }), jsxRuntimeExports.jsx("circle", { className: "mds-spinner__path", cx: "12", cy: "12", r: "10", stroke: "currentColor", strokeWidth: "2", fill: "none", strokeDasharray: "40 20", strokeLinecap: "round" })] }));
|
|
1717
|
-
|
|
1718
1718
|
/**
|
|
1719
1719
|
* Select Component (Design System)
|
|
1720
1720
|
*
|