ads-nuxt 0.4.0 → 0.4.2

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.
Files changed (80) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +574 -575
  3. package/app/app.config.ts +25 -25
  4. package/app/assets/ads/checkbox-check.svg +5 -5
  5. package/app/assets/ads/checkbox-minus.svg +5 -5
  6. package/app/assets/brand/farmarcas.svg +6 -6
  7. package/app/assets/brand/radar-symbol.svg +9 -9
  8. package/app/assets/brand/radar.svg +9 -9
  9. package/app/assets/css/ads-colors.css +257 -257
  10. package/app/assets/css/component-tokens.css +6 -2
  11. package/app/assets/css/main.css +585 -585
  12. package/app/components/AdsBadge.vue +47 -47
  13. package/app/components/AdsBroadcast.vue +24 -24
  14. package/app/components/AdsButton.vue +547 -547
  15. package/app/components/AdsButtonGroup.vue +39 -39
  16. package/app/components/AdsButtonMenu.vue +48 -48
  17. package/app/components/AdsCard.vue +188 -188
  18. package/app/components/AdsCardHint.vue +56 -22
  19. package/app/components/AdsCardPeriod.vue +43 -43
  20. package/app/components/AdsCardVariation.vue +31 -31
  21. package/app/components/AdsCharttip.vue +79 -79
  22. package/app/components/AdsDatePicker.vue +509 -509
  23. package/app/components/AdsDropdownMenu.vue +30 -30
  24. package/app/components/AdsEmptyState.vue +61 -61
  25. package/app/components/AdsFeatureCard.vue +292 -210
  26. package/app/components/AdsFileCard.vue +98 -98
  27. package/app/components/AdsFooter.vue +25 -25
  28. package/app/components/AdsHeavyAccountCell.vue +59 -59
  29. package/app/components/AdsHeavyHeaderCell.vue +70 -70
  30. package/app/components/AdsHeavyTable.vue +135 -139
  31. package/app/components/AdsInput.vue +148 -148
  32. package/app/components/AdsLoading.vue +217 -217
  33. package/app/components/AdsMenuBar.vue +110 -110
  34. package/app/components/AdsMetricCard.vue +226 -216
  35. package/app/components/AdsModal.vue +160 -160
  36. package/app/components/AdsMonthPicker.vue +80 -80
  37. package/app/components/AdsNavbarApp.vue +67 -67
  38. package/app/components/AdsNavbarDesk.vue +67 -67
  39. package/app/components/AdsNotabilityPill.vue +24 -24
  40. package/app/components/AdsNumberInput.vue +173 -173
  41. package/app/components/AdsPanelCard.vue +99 -99
  42. package/app/components/AdsPill.vue +144 -144
  43. package/app/components/AdsProductTag.vue +80 -80
  44. package/app/components/AdsSearchInput.vue +122 -122
  45. package/app/components/AdsSegmentedTabs.vue +62 -62
  46. package/app/components/AdsSelect.vue +283 -283
  47. package/app/components/AdsSelectItem.vue +128 -128
  48. package/app/components/AdsSelectPanel.vue +221 -221
  49. package/app/components/AdsSideMenu.vue +101 -101
  50. package/app/components/AdsSmalltip.vue +44 -44
  51. package/app/components/AdsStepper.vue +222 -222
  52. package/app/components/AdsTable.vue +172 -176
  53. package/app/components/AdsTableHeaderCell.vue +80 -80
  54. package/app/components/AdsTableSkeleton.vue +113 -113
  55. package/app/components/AdsTableToolbar.vue +44 -44
  56. package/app/components/AdsTabs.vue +51 -51
  57. package/app/components/AdsTextarea.vue +116 -116
  58. package/app/components/AdsToast.vue +184 -184
  59. package/app/components/AdsTooltip.vue +73 -73
  60. package/app/components/OverlayLoading.vue +2 -17
  61. package/app/components/ProgressBarLoading.vue +235 -235
  62. package/app/composables/useOverlayLoading.ts +88 -88
  63. package/app/constants/ads-color-swatches.ts +240 -240
  64. package/app/locale/pt-br.ts +6 -6
  65. package/app/plugins/ads-toast.client.ts +24 -24
  66. package/app/theme/ads-theme.ts +374 -374
  67. package/app/theme/ads-tokens.ts +391 -391
  68. package/app/theme/component-tokens.json +6 -2
  69. package/app/theme/component-tokens.ts +6 -2
  70. package/app/types/overlay-loading.types.ts +32 -35
  71. package/app/utils/ads-filter-select.ts +191 -191
  72. package/app/utils/ads-table.ts +416 -398
  73. package/app/utils/calendar-date.ts +163 -163
  74. package/app/utils/category-role.ts +45 -45
  75. package/app/utils/money.ts +77 -77
  76. package/app/utils/notability.ts +8 -8
  77. package/app/utils/parser.ts +134 -134
  78. package/app/utils/percentage.ts +54 -54
  79. package/nuxt.config.ts +31 -31
  80. package/package.json +57 -56
@@ -1,391 +1,391 @@
1
- /**
2
- * Tokens extraídos da página ※ Tokens do Figma ADS — Tokens
3
- * (file HdKW6k5bVFtUJkhZLafCpb, node 132:65).
4
- * Hex e pixels vêm do texto ao lado de cada amostra, não de cor inventada.
5
- */
6
-
7
- export const adsSpacing = {
8
- quark: 4,
9
- nano: 8,
10
- xxxs: 12,
11
- xxs: 16,
12
- xs: 24,
13
- sm: 32,
14
- rg: 40,
15
- md: 48,
16
- lg: 56,
17
- xl: 64,
18
- xxl: 80,
19
- xxxl: 120,
20
- huge: 160,
21
- giant: 200,
22
- } as const;
23
-
24
- /** Escala azul do Radar Pricing. Não inclui RP-1..RP-11, que são cores de outros produtos. */
25
- export const adsRadarPricing = {
26
- 25: "#e4f2ff",
27
- 50: "#c7e4ff",
28
- 100: "#89c9ff",
29
- 200: "#50b3ff",
30
- 400: "#0091ff",
31
- 500: "#006ff7",
32
- 600: "#074ac6",
33
- 800: "#00389e",
34
- } as const;
35
-
36
- export const adsRadarBase = {
37
- 100: "#3f4457",
38
- 200: "#2e3342",
39
- 500: "#212631",
40
- 600: "#1b2029",
41
- 900: "#161b22",
42
- } as const;
43
-
44
- export const adsNeutralLight = {
45
- 0: "#ffffff",
46
- 10: "#fafbfc",
47
- 20: "#f0f3f6",
48
- 30: "#e5e8eb",
49
- 40: "#d3d8dd",
50
- 50: "#c1c7d0",
51
- } as const;
52
-
53
- export const adsNeutralMid = {
54
- 60: "#b3bac5",
55
- 70: "#a5adba",
56
- 80: "#97a0af",
57
- 90: "#8993a4",
58
- 100: "#7a869a",
59
- 200: "#6b778c",
60
- 300: "#5e6c84",
61
- 400: "#505f79",
62
- } as const;
63
-
64
- export const adsNeutralDark = {
65
- 500: "#42526e",
66
- 600: "#344563",
67
- 700: "#253858",
68
- 800: "#172b4d",
69
- 900: "#061938",
70
- } as const;
71
-
72
- export const adsSuccess = {
73
- 100: "#c3ffe6",
74
- 200: "#7fffcb",
75
- 300: "#32feaa",
76
- 400: "#06eb8f",
77
- 500: "#15c57e",
78
- 600: "#1c9f6a",
79
- 700: "#157850",
80
- 800: "#0e5a3b",
81
- } as const;
82
-
83
- /** Grupo Warning do Figma: matiz vermelho/rosa. */
84
- export const adsWarningRed = {
85
- 100: "#ffbdcd",
86
- 200: "#ff87a4",
87
- 300: "#ff507a",
88
- 400: "#ef164a",
89
- 500: "#dc0034",
90
- 600: "#c0012e",
91
- 700: "#9e062a",
92
- 800: "#840221",
93
- } as const;
94
-
95
- /** Grupo Attention do Figma: âmbar. */
96
- export const adsAttention = {
97
- 100: "#ffe7b9",
98
- 200: "#ffdc82",
99
- 300: "#ffca43",
100
- 400: "#ffb905",
101
- 500: "#e9a700",
102
- 600: "#ce9300",
103
- 700: "#ad7b00",
104
- /** Atualizado em 05/11/2026: #8f6600 → #7a5600 (contraste 5,50:1 sobre attention-100). */
105
- 800: "#7a5600",
106
- } as const;
107
-
108
- /** Escala que era Gráfico C2. Cor principal Innovation. */
109
- export const adsInnovation = {
110
- /** Primitiva nova: charts/data 2/50 = #F3F0FF (também surface/ai). */
111
- 50: "#f3f0ff",
112
- 100: "#cabaff",
113
- 200: "#b19aff",
114
- 300: "#9e80ff",
115
- 400: "#825cff",
116
- 500: "#7349ff",
117
- 600: "#613dda",
118
- 700: "#4c30a8",
119
- 800: "#3c287c",
120
- } as const;
121
-
122
- /** Grupo Opportunity do Figma: ciano. */
123
- export const adsOpportunity = {
124
- 100: "#c4f5ff",
125
- 200: "#79e9ff",
126
- 300: "#49d8f4",
127
- 400: "#04c8ef",
128
- 500: "#05b4d8",
129
- 600: "#01a0bf",
130
- 700: "#007a93",
131
- 800: "#006478",
132
- } as const;
133
-
134
- export const adsVoid = {
135
- 100: "#cfdef3",
136
- 200: "#b4c5df",
137
- 300: "#91a2bb",
138
- 400: "#738298",
139
- 500: "#556171",
140
- 600: "#3c434e",
141
- 700: "#282c34",
142
- 800: "#0e1013",
143
- } as const;
144
-
145
- export const adsChart = {
146
- c1: {
147
- 100: "#f8b4ff",
148
- 200: "#f58eff",
149
- 300: "#ee60fb",
150
- 400: "#e837f9",
151
- 500: "#cc1fdd",
152
- 600: "#b121be",
153
- 700: "#951fa0",
154
- 800: "#76197e",
155
- },
156
- c2: adsInnovation,
157
- c3: {
158
- 100: "#ffb0b0",
159
- 200: "#ff8e8e",
160
- 300: "#ff7272",
161
- 400: "#f76565",
162
- 500: "#e46161",
163
- 600: "#cc5252",
164
- 700: "#b54444",
165
- 800: "#983a3a",
166
- },
167
- c4: {
168
- 100: "#b6ffca",
169
- 200: "#86e7a2",
170
- 300: "#4bd973",
171
- 400: "#1ac44a",
172
- 500: "#24ab4a",
173
- 600: "#1c8f3d",
174
- 700: "#167130",
175
- 800: "#115825",
176
- },
177
- c5: {
178
- 100: "#a2baff",
179
- 200: "#8ca5ee",
180
- 300: "#768dd0",
181
- 400: "#677bb6",
182
- 500: "#546596",
183
- 600: "#445279",
184
- 700: "#374261",
185
- 800: "#252c41",
186
- },
187
- } as const;
188
-
189
- /** RP-1..RP-11: cor de cada produto Radar, não a escala do Pricing. */
190
- export const adsProductBrands = {
191
- 1: "#ef7d18",
192
- 2: "#07509f",
193
- 3: "#009159",
194
- 4: "#5a2d87",
195
- 5: "#ff5410",
196
- 6: "#050505",
197
- 7: "#c2113b",
198
- 8: "#8c6bfa",
199
- 9: "#0091ff",
200
- 10: "#8b89c9",
201
- 11: "#007a93",
202
- } as const;
203
-
204
- export const adsFontFamily = "Inter";
205
-
206
- /** $font-size-* da seção Font. 40, 48 e 64 ficam só nos estilos compostos. */
207
- export const adsFontSize = {
208
- minimal: 10,
209
- xxxs: 12,
210
- xxs: 14,
211
- xs: 16,
212
- sm: 18,
213
- rg: 20,
214
- md: 24,
215
- lg: 32,
216
- } as const;
217
-
218
- export const adsFontWeight = {
219
- light: 300,
220
- regular: 400,
221
- medium: 500,
222
- bold: 700,
223
- extrabold: 800,
224
- } as const;
225
-
226
- /**
227
- * Peso por papel nas páginas do layout dashboard.
228
- * Só usa pesos publicados. Semibold (600) não existe no ADS.
229
- */
230
- export const adsDashboardFontWeight = {
231
- pageTitle: adsFontWeight.bold,
232
- sectionTitle: adsFontWeight.bold,
233
- cardTitle: adsFontWeight.medium,
234
- label: adsFontWeight.medium,
235
- body: adsFontWeight.regular,
236
- subtle: adsFontWeight.light,
237
- } as const;
238
-
239
- /** $line-height-default, SM, md e lg. */
240
- export const adsLineHeight = {
241
- default: "100%",
242
- sm: "120%",
243
- md: "140%",
244
- lg: "160%",
245
- } as const;
246
-
247
- /**
248
- * Estilos de texto publicados (Inter/{papel} {size}/{size} {peso}).
249
- * A altura de linha no nome é igual ao tamanho, então usam line-height default.
250
- * 40, 48 e 64 não têm $font-size na seção Font.
251
- */
252
- export const adsTypography = {
253
- label: [10, 12],
254
- body: [14, 16],
255
- subtitle: [18, 20],
256
- title: [24],
257
- largeTitle: [32],
258
- xLargeTitle: [40],
259
- xxLargeTitle: [48],
260
- display: [64],
261
- } as const;
262
-
263
- /** $border-radius-*. Pill está escrito como ≥ 500px. */
264
- export const adsBorderRadius = {
265
- none: "0px",
266
- xsm: "4px",
267
- sm: "8px",
268
- md: "12px",
269
- lg: "16px",
270
- pill: "500px",
271
- xlg: "24px",
272
- circular: "50%",
273
- } as const;
274
-
275
- export const adsBorderWidth = {
276
- none: "0px",
277
- hairline: "1px",
278
- slim: "1.5px",
279
- thin: "2px",
280
- thick: "4px",
281
- heavy: "8px",
282
- } as const;
283
-
284
- /** $shadow-level-*. B é o blur. Cor #000 nas opacidades escritas. */
285
- export const adsShadow = {
286
- none: "none",
287
- level1: "0 2px 8px rgb(0 0 0 / 16%)",
288
- level2: "0 4px 24px rgb(0 0 0 / 16%)",
289
- level3: "0 8px 32px rgb(0 0 0 / 16%)",
290
- level4: "0 12px 48px rgb(0 0 0 / 24%)",
291
- } as const;
292
-
293
- export const adsOpacity = {
294
- intense: "75%",
295
- medium: "50%",
296
- light: "25%",
297
- } as const;
298
-
299
- /** $blur-level-default: backdrop blur 4px sobre preto a 50%. */
300
- export const adsBlur = {
301
- default: "4px",
302
- color: "#000000",
303
- opacity: "50%",
304
- } as const;
305
-
306
- /**
307
- * Camada semântica (Default.tokens.json).
308
- * Cada valor aponta para um primitivo já publicado, com o mesmo hex do arquivo.
309
- */
310
- export const adsSemantic = {
311
- surface: {
312
- main: adsNeutralLight[10],
313
- card: adsNeutralLight[0],
314
- brand: adsRadarPricing[500],
315
- /** Novo em 05/11/2026: charts/data 2/50 = innovation/50 (#f3f0ff). */
316
- ai: adsInnovation[50],
317
- },
318
- text: {
319
- primary: adsNeutralDark[900],
320
- secondary: adsNeutralMid[400],
321
- /** Alias de neutrals/mid/300 (#5e6c84). Uso: placeholder e texto terciário. */
322
- tertiary: adsNeutralMid[300],
323
- brand: adsRadarPricing[500],
324
- /** Novo em 05/11/2026: color/radar/600 (#074ac6). */
325
- brandStrong: adsRadarPricing[600],
326
- disabled: adsRadarPricing[100],
327
- contrast: adsNeutralLight[0],
328
- /** Novo em 05/11/2026: charts/data 2/600 = innovation/600 (#613dda). */
329
- ai: adsInnovation[600],
330
- },
331
- border: {
332
- subtle: adsNeutralLight[50],
333
- focused: adsNeutralMid[200],
334
- icon: adsNeutralDark[500],
335
- iconSupport: adsNeutralMid[100],
336
- /** Novo em 05/11/2026: color/neutrals/mid/100 (#7a869a). */
337
- input: adsNeutralMid[100],
338
- },
339
- button: {
340
- primary: {
341
- default: adsRadarPricing[500],
342
- hover: adsRadarPricing[600],
343
- pressed: adsRadarPricing[800],
344
- disabled: adsRadarPricing[100],
345
- },
346
- secondary: {
347
- default: adsRadarPricing[25],
348
- hover: adsRadarPricing[50],
349
- pressed: adsRadarPricing[100],
350
- disabled: adsNeutralLight[40],
351
- },
352
- },
353
- status: {
354
- success: { 800: adsSuccess[800], 500: adsSuccess[500], 100: adsSuccess[100] },
355
- warning: { 800: adsWarningRed[800], 500: adsWarningRed[500], 100: adsWarningRed[100] },
356
- attention: { 800: adsAttention[800], 500: adsAttention[500], 100: adsAttention[100] },
357
- new: { 800: adsOpportunity[800], 500: adsOpportunity[500], 100: adsOpportunity[100] },
358
- innovation: { 800: adsInnovation[800], 500: adsInnovation[500], 100: adsInnovation[100] },
359
- void: { 800: adsVoid[800], 500: adsVoid[500], 100: adsVoid[100] },
360
- },
361
- chart: {
362
- data1: { 800: adsChart.c1[800], 400: adsChart.c1[400], 100: adsChart.c1[100] },
363
- data2: { 50: adsChart.c2[50], 800: adsChart.c2[800], 500: adsChart.c2[500], 100: adsChart.c2[100] },
364
- data3: { 800: adsChart.c3[800], 400: adsChart.c3[400], 100: adsChart.c3[100] },
365
- data4: { 800: adsChart.c4[800], 500: adsChart.c4[500], 100: adsChart.c4[100] },
366
- data5: { 800: adsChart.c5[800], 400: adsChart.c5[400], 100: adsChart.c5[100] },
367
- },
368
- } as const;
369
-
370
- export const adsColorTokenValues = () => {
371
- const values = new Set<string>();
372
- const collect = (scale: Record<string, string>) => {
373
- for (const hex of Object.values(scale)) values.add(hex);
374
- };
375
-
376
- collect(adsRadarPricing);
377
- collect(adsRadarBase);
378
- collect(adsNeutralLight);
379
- collect(adsNeutralMid);
380
- collect(adsNeutralDark);
381
- collect(adsSuccess);
382
- collect(adsWarningRed);
383
- collect(adsAttention);
384
- collect(adsOpportunity);
385
- collect(adsInnovation);
386
- collect(adsVoid);
387
- collect(adsProductBrands);
388
- for (const scale of Object.values(adsChart)) collect(scale);
389
-
390
- return values;
391
- };
1
+ /**
2
+ * Tokens extraídos da página ※ Tokens do Figma ADS — Tokens
3
+ * (file HdKW6k5bVFtUJkhZLafCpb, node 132:65).
4
+ * Hex e pixels vêm do texto ao lado de cada amostra, não de cor inventada.
5
+ */
6
+
7
+ export const adsSpacing = {
8
+ quark: 4,
9
+ nano: 8,
10
+ xxxs: 12,
11
+ xxs: 16,
12
+ xs: 24,
13
+ sm: 32,
14
+ rg: 40,
15
+ md: 48,
16
+ lg: 56,
17
+ xl: 64,
18
+ xxl: 80,
19
+ xxxl: 120,
20
+ huge: 160,
21
+ giant: 200,
22
+ } as const;
23
+
24
+ /** Escala azul do Radar Pricing. Não inclui RP-1..RP-11, que são cores de outros produtos. */
25
+ export const adsRadarPricing = {
26
+ 25: "#e4f2ff",
27
+ 50: "#c7e4ff",
28
+ 100: "#89c9ff",
29
+ 200: "#50b3ff",
30
+ 400: "#0091ff",
31
+ 500: "#006ff7",
32
+ 600: "#074ac6",
33
+ 800: "#00389e",
34
+ } as const;
35
+
36
+ export const adsRadarBase = {
37
+ 100: "#3f4457",
38
+ 200: "#2e3342",
39
+ 500: "#212631",
40
+ 600: "#1b2029",
41
+ 900: "#161b22",
42
+ } as const;
43
+
44
+ export const adsNeutralLight = {
45
+ 0: "#ffffff",
46
+ 10: "#fafbfc",
47
+ 20: "#f0f3f6",
48
+ 30: "#e5e8eb",
49
+ 40: "#d3d8dd",
50
+ 50: "#c1c7d0",
51
+ } as const;
52
+
53
+ export const adsNeutralMid = {
54
+ 60: "#b3bac5",
55
+ 70: "#a5adba",
56
+ 80: "#97a0af",
57
+ 90: "#8993a4",
58
+ 100: "#7a869a",
59
+ 200: "#6b778c",
60
+ 300: "#5e6c84",
61
+ 400: "#505f79",
62
+ } as const;
63
+
64
+ export const adsNeutralDark = {
65
+ 500: "#42526e",
66
+ 600: "#344563",
67
+ 700: "#253858",
68
+ 800: "#172b4d",
69
+ 900: "#061938",
70
+ } as const;
71
+
72
+ export const adsSuccess = {
73
+ 100: "#c3ffe6",
74
+ 200: "#7fffcb",
75
+ 300: "#32feaa",
76
+ 400: "#06eb8f",
77
+ 500: "#15c57e",
78
+ 600: "#1c9f6a",
79
+ 700: "#157850",
80
+ 800: "#0e5a3b",
81
+ } as const;
82
+
83
+ /** Grupo Warning do Figma: matiz vermelho/rosa. */
84
+ export const adsWarningRed = {
85
+ 100: "#ffbdcd",
86
+ 200: "#ff87a4",
87
+ 300: "#ff507a",
88
+ 400: "#ef164a",
89
+ 500: "#dc0034",
90
+ 600: "#c0012e",
91
+ 700: "#9e062a",
92
+ 800: "#840221",
93
+ } as const;
94
+
95
+ /** Grupo Attention do Figma: âmbar. */
96
+ export const adsAttention = {
97
+ 100: "#ffe7b9",
98
+ 200: "#ffdc82",
99
+ 300: "#ffca43",
100
+ 400: "#ffb905",
101
+ 500: "#e9a700",
102
+ 600: "#ce9300",
103
+ 700: "#ad7b00",
104
+ /** Atualizado em 05/11/2026: #8f6600 → #7a5600 (contraste 5,50:1 sobre attention-100). */
105
+ 800: "#7a5600",
106
+ } as const;
107
+
108
+ /** Escala que era Gráfico C2. Cor principal Innovation. */
109
+ export const adsInnovation = {
110
+ /** Primitiva nova: charts/data 2/50 = #F3F0FF (também surface/ai). */
111
+ 50: "#f3f0ff",
112
+ 100: "#cabaff",
113
+ 200: "#b19aff",
114
+ 300: "#9e80ff",
115
+ 400: "#825cff",
116
+ 500: "#7349ff",
117
+ 600: "#613dda",
118
+ 700: "#4c30a8",
119
+ 800: "#3c287c",
120
+ } as const;
121
+
122
+ /** Grupo Opportunity do Figma: ciano. */
123
+ export const adsOpportunity = {
124
+ 100: "#c4f5ff",
125
+ 200: "#79e9ff",
126
+ 300: "#49d8f4",
127
+ 400: "#04c8ef",
128
+ 500: "#05b4d8",
129
+ 600: "#01a0bf",
130
+ 700: "#007a93",
131
+ 800: "#006478",
132
+ } as const;
133
+
134
+ export const adsVoid = {
135
+ 100: "#cfdef3",
136
+ 200: "#b4c5df",
137
+ 300: "#91a2bb",
138
+ 400: "#738298",
139
+ 500: "#556171",
140
+ 600: "#3c434e",
141
+ 700: "#282c34",
142
+ 800: "#0e1013",
143
+ } as const;
144
+
145
+ export const adsChart = {
146
+ c1: {
147
+ 100: "#f8b4ff",
148
+ 200: "#f58eff",
149
+ 300: "#ee60fb",
150
+ 400: "#e837f9",
151
+ 500: "#cc1fdd",
152
+ 600: "#b121be",
153
+ 700: "#951fa0",
154
+ 800: "#76197e",
155
+ },
156
+ c2: adsInnovation,
157
+ c3: {
158
+ 100: "#ffb0b0",
159
+ 200: "#ff8e8e",
160
+ 300: "#ff7272",
161
+ 400: "#f76565",
162
+ 500: "#e46161",
163
+ 600: "#cc5252",
164
+ 700: "#b54444",
165
+ 800: "#983a3a",
166
+ },
167
+ c4: {
168
+ 100: "#b6ffca",
169
+ 200: "#86e7a2",
170
+ 300: "#4bd973",
171
+ 400: "#1ac44a",
172
+ 500: "#24ab4a",
173
+ 600: "#1c8f3d",
174
+ 700: "#167130",
175
+ 800: "#115825",
176
+ },
177
+ c5: {
178
+ 100: "#a2baff",
179
+ 200: "#8ca5ee",
180
+ 300: "#768dd0",
181
+ 400: "#677bb6",
182
+ 500: "#546596",
183
+ 600: "#445279",
184
+ 700: "#374261",
185
+ 800: "#252c41",
186
+ },
187
+ } as const;
188
+
189
+ /** RP-1..RP-11: cor de cada produto Radar, não a escala do Pricing. */
190
+ export const adsProductBrands = {
191
+ 1: "#ef7d18",
192
+ 2: "#07509f",
193
+ 3: "#009159",
194
+ 4: "#5a2d87",
195
+ 5: "#ff5410",
196
+ 6: "#050505",
197
+ 7: "#c2113b",
198
+ 8: "#8c6bfa",
199
+ 9: "#0091ff",
200
+ 10: "#8b89c9",
201
+ 11: "#007a93",
202
+ } as const;
203
+
204
+ export const adsFontFamily = "Inter";
205
+
206
+ /** $font-size-* da seção Font. 40, 48 e 64 ficam só nos estilos compostos. */
207
+ export const adsFontSize = {
208
+ minimal: 10,
209
+ xxxs: 12,
210
+ xxs: 14,
211
+ xs: 16,
212
+ sm: 18,
213
+ rg: 20,
214
+ md: 24,
215
+ lg: 32,
216
+ } as const;
217
+
218
+ export const adsFontWeight = {
219
+ light: 300,
220
+ regular: 400,
221
+ medium: 500,
222
+ bold: 700,
223
+ extrabold: 800,
224
+ } as const;
225
+
226
+ /**
227
+ * Peso por papel nas páginas do layout dashboard.
228
+ * Só usa pesos publicados. Semibold (600) não existe no ADS.
229
+ */
230
+ export const adsDashboardFontWeight = {
231
+ pageTitle: adsFontWeight.bold,
232
+ sectionTitle: adsFontWeight.bold,
233
+ cardTitle: adsFontWeight.medium,
234
+ label: adsFontWeight.medium,
235
+ body: adsFontWeight.regular,
236
+ subtle: adsFontWeight.light,
237
+ } as const;
238
+
239
+ /** $line-height-default, SM, md e lg. */
240
+ export const adsLineHeight = {
241
+ default: "100%",
242
+ sm: "120%",
243
+ md: "140%",
244
+ lg: "160%",
245
+ } as const;
246
+
247
+ /**
248
+ * Estilos de texto publicados (Inter/{papel} {size}/{size} {peso}).
249
+ * A altura de linha no nome é igual ao tamanho, então usam line-height default.
250
+ * 40, 48 e 64 não têm $font-size na seção Font.
251
+ */
252
+ export const adsTypography = {
253
+ label: [10, 12],
254
+ body: [14, 16],
255
+ subtitle: [18, 20],
256
+ title: [24],
257
+ largeTitle: [32],
258
+ xLargeTitle: [40],
259
+ xxLargeTitle: [48],
260
+ display: [64],
261
+ } as const;
262
+
263
+ /** $border-radius-*. Pill está escrito como ≥ 500px. */
264
+ export const adsBorderRadius = {
265
+ none: "0px",
266
+ xsm: "4px",
267
+ sm: "8px",
268
+ md: "12px",
269
+ lg: "16px",
270
+ pill: "500px",
271
+ xlg: "24px",
272
+ circular: "50%",
273
+ } as const;
274
+
275
+ export const adsBorderWidth = {
276
+ none: "0px",
277
+ hairline: "1px",
278
+ slim: "1.5px",
279
+ thin: "2px",
280
+ thick: "4px",
281
+ heavy: "8px",
282
+ } as const;
283
+
284
+ /** $shadow-level-*. B é o blur. Cor #000 nas opacidades escritas. */
285
+ export const adsShadow = {
286
+ none: "none",
287
+ level1: "0 2px 8px rgb(0 0 0 / 16%)",
288
+ level2: "0 4px 24px rgb(0 0 0 / 16%)",
289
+ level3: "0 8px 32px rgb(0 0 0 / 16%)",
290
+ level4: "0 12px 48px rgb(0 0 0 / 24%)",
291
+ } as const;
292
+
293
+ export const adsOpacity = {
294
+ intense: "75%",
295
+ medium: "50%",
296
+ light: "25%",
297
+ } as const;
298
+
299
+ /** $blur-level-default: backdrop blur 4px sobre preto a 50%. */
300
+ export const adsBlur = {
301
+ default: "4px",
302
+ color: "#000000",
303
+ opacity: "50%",
304
+ } as const;
305
+
306
+ /**
307
+ * Camada semântica (Default.tokens.json).
308
+ * Cada valor aponta para um primitivo já publicado, com o mesmo hex do arquivo.
309
+ */
310
+ export const adsSemantic = {
311
+ surface: {
312
+ main: adsNeutralLight[10],
313
+ card: adsNeutralLight[0],
314
+ brand: adsRadarPricing[500],
315
+ /** Novo em 05/11/2026: charts/data 2/50 = innovation/50 (#f3f0ff). */
316
+ ai: adsInnovation[50],
317
+ },
318
+ text: {
319
+ primary: adsNeutralDark[900],
320
+ secondary: adsNeutralMid[400],
321
+ /** Alias de neutrals/mid/300 (#5e6c84). Uso: placeholder e texto terciário. */
322
+ tertiary: adsNeutralMid[300],
323
+ brand: adsRadarPricing[500],
324
+ /** Novo em 05/11/2026: color/radar/600 (#074ac6). */
325
+ brandStrong: adsRadarPricing[600],
326
+ disabled: adsRadarPricing[100],
327
+ contrast: adsNeutralLight[0],
328
+ /** Novo em 05/11/2026: charts/data 2/600 = innovation/600 (#613dda). */
329
+ ai: adsInnovation[600],
330
+ },
331
+ border: {
332
+ subtle: adsNeutralLight[50],
333
+ focused: adsNeutralMid[200],
334
+ icon: adsNeutralDark[500],
335
+ iconSupport: adsNeutralMid[100],
336
+ /** Novo em 05/11/2026: color/neutrals/mid/100 (#7a869a). */
337
+ input: adsNeutralMid[100],
338
+ },
339
+ button: {
340
+ primary: {
341
+ default: adsRadarPricing[500],
342
+ hover: adsRadarPricing[600],
343
+ pressed: adsRadarPricing[800],
344
+ disabled: adsRadarPricing[100],
345
+ },
346
+ secondary: {
347
+ default: adsRadarPricing[25],
348
+ hover: adsRadarPricing[50],
349
+ pressed: adsRadarPricing[100],
350
+ disabled: adsNeutralLight[40],
351
+ },
352
+ },
353
+ status: {
354
+ success: { 800: adsSuccess[800], 500: adsSuccess[500], 100: adsSuccess[100] },
355
+ warning: { 800: adsWarningRed[800], 500: adsWarningRed[500], 100: adsWarningRed[100] },
356
+ attention: { 800: adsAttention[800], 500: adsAttention[500], 100: adsAttention[100] },
357
+ new: { 800: adsOpportunity[800], 500: adsOpportunity[500], 100: adsOpportunity[100] },
358
+ innovation: { 800: adsInnovation[800], 500: adsInnovation[500], 100: adsInnovation[100] },
359
+ void: { 800: adsVoid[800], 500: adsVoid[500], 100: adsVoid[100] },
360
+ },
361
+ chart: {
362
+ data1: { 800: adsChart.c1[800], 400: adsChart.c1[400], 100: adsChart.c1[100] },
363
+ data2: { 50: adsChart.c2[50], 800: adsChart.c2[800], 500: adsChart.c2[500], 100: adsChart.c2[100] },
364
+ data3: { 800: adsChart.c3[800], 400: adsChart.c3[400], 100: adsChart.c3[100] },
365
+ data4: { 800: adsChart.c4[800], 500: adsChart.c4[500], 100: adsChart.c4[100] },
366
+ data5: { 800: adsChart.c5[800], 400: adsChart.c5[400], 100: adsChart.c5[100] },
367
+ },
368
+ } as const;
369
+
370
+ export const adsColorTokenValues = () => {
371
+ const values = new Set<string>();
372
+ const collect = (scale: Record<string, string>) => {
373
+ for (const hex of Object.values(scale)) values.add(hex);
374
+ };
375
+
376
+ collect(adsRadarPricing);
377
+ collect(adsRadarBase);
378
+ collect(adsNeutralLight);
379
+ collect(adsNeutralMid);
380
+ collect(adsNeutralDark);
381
+ collect(adsSuccess);
382
+ collect(adsWarningRed);
383
+ collect(adsAttention);
384
+ collect(adsOpportunity);
385
+ collect(adsInnovation);
386
+ collect(adsVoid);
387
+ collect(adsProductBrands);
388
+ for (const scale of Object.values(adsChart)) collect(scale);
389
+
390
+ return values;
391
+ };