ads-nuxt 0.1.4 → 0.2.0

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