@dev-tcloud/tcloud-ui 6.25.0-beta.2 → 6.26.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dev-tcloud/tcloud-ui",
3
- "version": "6.25.0-beta.2",
3
+ "version": "6.26.1",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^19.2.20",
6
6
  "@angular/core": "^19.2.20",
@@ -31,7 +31,6 @@
31
31
 
32
32
  &:focus-visible {
33
33
  outline: 1px solid var(--tc-primary);
34
- border-radius: 3px;
35
34
  }
36
35
 
37
36
  &:disabled {
@@ -0,0 +1,68 @@
1
+ // =============================================================================
2
+ // Dark mode — remapeamento dos tokens --c-*
3
+ // =============================================================================
4
+ // Os temas (classic-standard, classic-prime, ...) definem os --c-* apenas em
5
+ // :root com valores light. Este arquivo remapeia os mesmos tokens para valores
6
+ // dark quando a classe `.tc-dark` está em qualquer ancestral (ex.: a
7
+ // <div id="tcloud-ui-body"> do app, ou diretamente em <body>).
8
+ //
9
+ // Especificidade: `:root .tc-dark` = (0,2,0), vencendo qualquer `:root` (0,1,0)
10
+ // independentemente da ordem de carregamento dos temas. A regra `.tc-dark`
11
+ // cobre o caso raro de a classe estar no próprio <html>.
12
+ //
13
+ // Os componentes continuam usando os mesmos var(--c-*) — nada muda neles.
14
+ // =============================================================================
15
+
16
+ :root .tc-dark,
17
+ .tc-dark {
18
+ // --- Neutros (escala invertida) -------------------------------------------
19
+ --c-neutral-50: #0F1117; // fundo principal da página
20
+ --c-neutral-100: #181B24; // fundo de seções alternadas / superfície elevada
21
+ --c-neutral-200: #22263A; // bordas suaves / separadores
22
+ --c-neutral-300: #363B55; // bordas visíveis / inputs
23
+ --c-neutral-400: #5C6280; // texto desabilitado / placeholder
24
+ --c-neutral-500: #8C91A8; // texto secundário
25
+ --c-neutral-600: #C0C6D8; // texto de apoio
26
+ --c-neutral-700: #DDE1EE; // texto principal
27
+ --c-neutral-800: #ECEEF5; // texto de destaque
28
+ --c-neutral-900: #F5F6FA; // texto com máximo contraste
29
+
30
+ // --- Primária (teal mais luminoso para fundos escuros) --------------------
31
+ --c-primary-300: #0C2E33;
32
+ --c-primary-400: #1F8A99;
33
+ --c-primary-500: #4FC9D6;
34
+ --c-primary-600: #86DEE8;
35
+ --c-primary-700: #BFEFF4;
36
+
37
+ // --- Danger ---------------------------------------------------------------
38
+ --c-danger-300: #3D0A0A;
39
+ --c-danger-400: #C0372E;
40
+ --c-danger-500: #F26F6F;
41
+
42
+ // --- Alert ----------------------------------------------------------------
43
+ --c-alert-300: #3A2000;
44
+ --c-alert-400: #B87500;
45
+ --c-alert-500: #FFCC55;
46
+
47
+ // --- Info -----------------------------------------------------------------
48
+ --c-info-300: #0E2A45;
49
+ --c-info-400: #0B5C9C;
50
+ --c-info-500: #29A8F5;
51
+
52
+ // --- Success --------------------------------------------------------------
53
+ --c-success-300: #0A2B05;
54
+ --c-success-400: #277A20;
55
+ --c-success-500: #6DD462;
56
+ }
57
+
58
+ // Controles nativos de data/hora: faz o navegador renderizar o ícone do
59
+ // calendário, os spinners e o popup nativo em modo escuro.
60
+ .tc-dark {
61
+ input[type='date'],
62
+ input[type='datetime-local'],
63
+ input[type='time'],
64
+ input[type='month'],
65
+ input[type='week'] {
66
+ color-scheme: dark;
67
+ }
68
+ }
@@ -2,3 +2,6 @@
2
2
  @use 'classic-prime';
3
3
  @use 'modern-standard';
4
4
  @use 'modern-prime';
5
+
6
+ // Remapeamento dark dos --c-* (deve vir por último para sobrescrever os :root light)
7
+ @use 'dark';
@@ -33,6 +33,22 @@
33
33
  box-shadow: 0 0 0 3px var(--c-primary-300);
34
34
  }
35
35
 
36
+ // --- Autofill ---------------------------------------------------------------
37
+ // O navegador força um fundo claro no autofill, ignorando background-color.
38
+ // O box-shadow inset (com token) "repinta" o fundo e respeita o dark mode.
39
+ &:-webkit-autofill,
40
+ &:-webkit-autofill:hover {
41
+ -webkit-text-fill-color: var(--c-neutral-700);
42
+ -webkit-box-shadow: 0 0 0 1000px var(--c-neutral-50) inset;
43
+ caret-color: var(--c-neutral-700);
44
+ transition: background-color 9999s ease-in-out 0s;
45
+ }
46
+
47
+ &:-webkit-autofill:focus {
48
+ -webkit-text-fill-color: var(--c-neutral-700);
49
+ -webkit-box-shadow: 0 0 0 3px var(--c-primary-300), 0 0 0 1000px var(--c-neutral-50) inset;
50
+ }
51
+
36
52
  // --- Estado desabilitado ----------------------------------------------------
37
53
  &:disabled,
38
54
  &[disabled] {