@metropolle/design-system 1.2026.0-1.4.1905 → 1.2026.0-1.7.15
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
CHANGED
|
@@ -162,6 +162,31 @@
|
|
|
162
162
|
background: var(--mds-color-background-secondary);
|
|
163
163
|
}
|
|
164
164
|
|
|
165
|
+
/* Subtle variant - minimal border, muted colors, perfect for navigation buttons */
|
|
166
|
+
.mds-button--subtle {
|
|
167
|
+
background: transparent;
|
|
168
|
+
border: 1px solid var(--mds-liquid-border-subtle, rgba(255, 255, 255, 0.12));
|
|
169
|
+
color: var(--mds-color-text-secondary, rgba(255, 255, 255, 0.7));
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.mds-button--subtle:hover:not(:disabled) {
|
|
173
|
+
background: var(--mds-liquid-bg-button, rgba(255, 255, 255, 0.08));
|
|
174
|
+
border-color: var(--mds-liquid-border-bright, rgba(255, 255, 255, 0.2));
|
|
175
|
+
color: var(--mds-color-text-primary);
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
/* Light theme adjustments for subtle */
|
|
179
|
+
html[data-theme="light"] .mds-button--subtle {
|
|
180
|
+
border-color: var(--mds-liquid-border-subtle, rgba(0, 0, 0, 0.12));
|
|
181
|
+
color: var(--mds-color-text-secondary, rgba(0, 0, 0, 0.6));
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
html[data-theme="light"] .mds-button--subtle:hover:not(:disabled) {
|
|
185
|
+
background: var(--mds-liquid-bg-button, rgba(0, 0, 0, 0.05));
|
|
186
|
+
border-color: var(--mds-liquid-border-bright, rgba(0, 0, 0, 0.2));
|
|
187
|
+
color: var(--mds-color-text-primary);
|
|
188
|
+
}
|
|
189
|
+
|
|
165
190
|
.mds-button--glass {
|
|
166
191
|
background: var(--mds-color-background-glass-light);
|
|
167
192
|
color: var(--mds-color-text-primary);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { ButtonHTMLAttributes } from 'react';
|
|
2
2
|
export interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
3
3
|
/** Variante visual do botão */
|
|
4
|
-
variant?: 'primary' | 'secondary' | 'outline' | 'ghost' | 'glass' | 'danger';
|
|
4
|
+
variant?: 'primary' | 'secondary' | 'outline' | 'ghost' | 'subtle' | 'glass' | 'danger';
|
|
5
5
|
/** Tamanho do botão */
|
|
6
6
|
size?: 'sm' | 'md' | 'lg';
|
|
7
7
|
/** Estado de loading */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../../../src/components/react/Button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAc,oBAAoB,EAAE,MAAM,OAAO,CAAC;AAGhE,MAAM,WAAW,WAAY,SAAQ,oBAAoB,CAAC,iBAAiB,CAAC;IAC1E,+BAA+B;IAC/B,OAAO,CAAC,EAAE,SAAS,GAAG,WAAW,GAAG,SAAS,GAAG,OAAO,GAAG,OAAO,GAAG,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../../../src/components/react/Button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAc,oBAAoB,EAAE,MAAM,OAAO,CAAC;AAGhE,MAAM,WAAW,WAAY,SAAQ,oBAAoB,CAAC,iBAAiB,CAAC;IAC1E,+BAA+B;IAC/B,OAAO,CAAC,EAAE,SAAS,GAAG,WAAW,GAAG,SAAS,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,QAAQ,CAAC;IACxF,uBAAuB;IACvB,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAC1B,wBAAwB;IACxB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,gCAAgC;IAChC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,+BAA+B;IAC/B,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC5B,4CAA4C;IAC5C,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,6BAA6B;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,wBAAwB;IACxB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED;;;;;GAKG;AACH,eAAO,MAAM,MAAM,uFA4DjB,CAAC"}
|