blockforce-design-system 2.0.2 → 2.0.4

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 (95) hide show
  1. package/MIGRATION.md +23 -19
  2. package/README.md +6 -2
  3. package/lib/ai/components.json +6531 -0
  4. package/lib/ai/icons.txt +5999 -0
  5. package/lib/ai/tokens.md +231 -0
  6. package/lib/commonjs/components/data-display/calendar/calendar.styles.js +14 -13
  7. package/lib/commonjs/components/data-display/calendar/calendar.styles.js.map +1 -1
  8. package/lib/commonjs/components/data-display/matrix/matrix.styles.js +22 -21
  9. package/lib/commonjs/components/data-display/matrix/matrix.styles.js.map +1 -1
  10. package/lib/commonjs/components/data-display/side-panel/side-panel.styles.js +11 -10
  11. package/lib/commonjs/components/data-display/side-panel/side-panel.styles.js.map +1 -1
  12. package/lib/commonjs/components/forms/autocomplete/autocomplete.styles.js +8 -21
  13. package/lib/commonjs/components/forms/autocomplete/autocomplete.styles.js.map +1 -1
  14. package/lib/commonjs/components/forms/file/file-image-preview/file-image-preview.comp.js.map +1 -1
  15. package/lib/commonjs/components/forms/file/file-image-preview-list/file-image-preview-list.comp.js.map +1 -1
  16. package/lib/commonjs/components/forms/file/file-preview-list/file-preview-list.comp.js.map +1 -1
  17. package/lib/commonjs/components/icons/icon/icon.comp.js.map +1 -1
  18. package/lib/commonjs/components/layout/drawer/drawer.styles.js +7 -5
  19. package/lib/commonjs/components/layout/drawer/drawer.styles.js.map +1 -1
  20. package/lib/commonjs/components/layout/modal/modal.styles.js +7 -18
  21. package/lib/commonjs/components/layout/modal/modal.styles.js.map +1 -1
  22. package/lib/commonjs/components/layout/popover/popover.styles.js +3 -2
  23. package/lib/commonjs/components/layout/popover/popover.styles.js.map +1 -1
  24. package/lib/commonjs/components/layout/slider/slider.styles.js +5 -26
  25. package/lib/commonjs/components/layout/slider/slider.styles.js.map +1 -1
  26. package/lib/commonjs/components/layout/table/table.comp.js +1 -1
  27. package/lib/commonjs/components/layout/table/table.comp.js.map +1 -1
  28. package/lib/commonjs/components/layout/table/table.styles.js +18 -17
  29. package/lib/commonjs/components/layout/table/table.styles.js.map +1 -1
  30. package/lib/commonjs/components/layout/table-head/table-head.comp.js +1 -1
  31. package/lib/commonjs/components/layout/table-head/table-head.comp.js.map +1 -1
  32. package/lib/commonjs/components/layout/table-head/table-head.styles.js +1 -1
  33. package/lib/commonjs/components/layout/table-head/table-head.styles.js.map +1 -1
  34. package/lib/commonjs/components/layout/table-row/table-row.comp.js +1 -1
  35. package/lib/commonjs/components/layout/table-row/table-row.comp.js.map +1 -1
  36. package/lib/commonjs/components/navigation/navigation-card/navigation-card.comp.js +2 -0
  37. package/lib/commonjs/components/navigation/navigation-card/navigation-card.comp.js.map +1 -0
  38. package/lib/commonjs/components/navigation/navigation-card/navigation-card.styles.js +47 -0
  39. package/lib/commonjs/components/navigation/navigation-card/navigation-card.styles.js.map +1 -0
  40. package/lib/commonjs/components/navigation/navigation-card/navigation-cards.comp.js +2 -0
  41. package/lib/commonjs/components/navigation/navigation-card/navigation-cards.comp.js.map +1 -0
  42. package/lib/commonjs/components/navigation/navigation-sections/navigation-sections.comp.js +2 -0
  43. package/lib/commonjs/components/navigation/navigation-sections/navigation-sections.comp.js.map +1 -0
  44. package/lib/commonjs/components/navigation/navigation-sections/navigation-sections.styles.js +91 -0
  45. package/lib/commonjs/components/navigation/navigation-sections/navigation-sections.styles.js.map +1 -0
  46. package/lib/commonjs/index.js +1 -1
  47. package/lib/commonjs/theme/scrollbar.js +39 -0
  48. package/lib/commonjs/theme/scrollbar.js.map +1 -0
  49. package/lib/index.d.ts +134 -2
  50. package/lib/module/components/data-display/calendar/calendar.styles.js +17 -16
  51. package/lib/module/components/data-display/calendar/calendar.styles.js.map +1 -1
  52. package/lib/module/components/data-display/matrix/matrix.styles.js +20 -19
  53. package/lib/module/components/data-display/matrix/matrix.styles.js.map +1 -1
  54. package/lib/module/components/data-display/side-panel/side-panel.styles.js +10 -9
  55. package/lib/module/components/data-display/side-panel/side-panel.styles.js.map +1 -1
  56. package/lib/module/components/forms/autocomplete/autocomplete.styles.js +8 -21
  57. package/lib/module/components/forms/autocomplete/autocomplete.styles.js.map +1 -1
  58. package/lib/module/components/forms/file/file-image-preview/file-image-preview.comp.js.map +1 -1
  59. package/lib/module/components/forms/file/file-image-preview-list/file-image-preview-list.comp.js.map +1 -1
  60. package/lib/module/components/forms/file/file-preview-list/file-preview-list.comp.js.map +1 -1
  61. package/lib/module/components/icons/icon/icon.comp.js.map +1 -1
  62. package/lib/module/components/layout/drawer/drawer.styles.js +7 -5
  63. package/lib/module/components/layout/drawer/drawer.styles.js.map +1 -1
  64. package/lib/module/components/layout/modal/modal.styles.js +7 -18
  65. package/lib/module/components/layout/modal/modal.styles.js.map +1 -1
  66. package/lib/module/components/layout/popover/popover.styles.js +2 -1
  67. package/lib/module/components/layout/popover/popover.styles.js.map +1 -1
  68. package/lib/module/components/layout/slider/slider.styles.js +5 -26
  69. package/lib/module/components/layout/slider/slider.styles.js.map +1 -1
  70. package/lib/module/components/layout/table/table.comp.js +1 -1
  71. package/lib/module/components/layout/table/table.comp.js.map +1 -1
  72. package/lib/module/components/layout/table/table.styles.js +9 -8
  73. package/lib/module/components/layout/table/table.styles.js.map +1 -1
  74. package/lib/module/components/layout/table-head/table-head.comp.js +1 -1
  75. package/lib/module/components/layout/table-head/table-head.comp.js.map +1 -1
  76. package/lib/module/components/layout/table-head/table-head.styles.js +1 -1
  77. package/lib/module/components/layout/table-head/table-head.styles.js.map +1 -1
  78. package/lib/module/components/layout/table-row/table-row.comp.js +1 -1
  79. package/lib/module/components/layout/table-row/table-row.comp.js.map +1 -1
  80. package/lib/module/components/navigation/navigation-card/navigation-card.comp.js +2 -0
  81. package/lib/module/components/navigation/navigation-card/navigation-card.comp.js.map +1 -0
  82. package/lib/module/components/navigation/navigation-card/navigation-card.styles.js +47 -0
  83. package/lib/module/components/navigation/navigation-card/navigation-card.styles.js.map +1 -0
  84. package/lib/module/components/navigation/navigation-card/navigation-cards.comp.js +2 -0
  85. package/lib/module/components/navigation/navigation-card/navigation-cards.comp.js.map +1 -0
  86. package/lib/module/components/navigation/navigation-sections/navigation-sections.comp.js +2 -0
  87. package/lib/module/components/navigation/navigation-sections/navigation-sections.comp.js.map +1 -0
  88. package/lib/module/components/navigation/navigation-sections/navigation-sections.styles.js +91 -0
  89. package/lib/module/components/navigation/navigation-sections/navigation-sections.styles.js.map +1 -0
  90. package/lib/module/index.js +1 -1
  91. package/lib/module/theme/scrollbar.js +39 -0
  92. package/lib/module/theme/scrollbar.js.map +1 -0
  93. package/llms-full.txt +2282 -0
  94. package/llms.txt +162 -0
  95. package/package.json +18 -11
@@ -0,0 +1,231 @@
1
+ # Tokens do Blockforce Design System 2.0.3
2
+
3
+ Gerado de `src/theme` e `tokens/*.tokens.json`. Use sempre o token, nunca o valor solto.
4
+
5
+ ## No React (`theme`)
6
+
7
+ | Token | Valor | Descrição |
8
+ |---|---|---|
9
+ | `theme.colors.primary` | `#6633CC` | Roxo da marca Blockforce. |
10
+ | `theme.colors.secondary` | `#00CC99` | Teal da marca Blockforce. |
11
+ | `theme.colors.brand.gradient` | `linear-gradient(45deg, #6633CC 0%, #00CC99 100%)` | Gradiente da marca: o único, sempre no ângulo da logo (45°, roxo embaixo à esquerda, teal em cima à direita). Todo componente com gradiente usa este token; não criar outro ângulo nem outras cores. |
12
+ | `theme.colors.border.focus` | `#6633CC` | Roxo de foco, para foco de marca em peças novas e no tema do cliente. Campos usam a própria cor de borda no foco. |
13
+ | `theme.colors.white` | `#FFFFFF` | Branco. |
14
+ | `theme.colors.interactive` | `#1779B2` | Links e ações textuais. |
15
+ | `theme.colors.state.success` | `#27AE60` | Sucesso, aprovado, concluído. Ícones, bordas e preenchimentos. |
16
+ | `theme.colors.state.warning` | `#F79009` | Alerta, pendente, atenção. Ícones, bordas e preenchimentos. |
17
+ | `theme.colors.state.error` | `#EB5757` | Erro, reprovado, ação destrutiva. |
18
+ | `theme.colors.state.info` | `#2F80ED` | Informação neutra. |
19
+ | `theme.colors.stateSubtle.success` | `#ECFDF3` | Fundo de etiqueta ou aviso de sucesso. |
20
+ | `theme.colors.stateSubtle.warning` | `#FEF3E7` | Fundo de etiqueta ou aviso de alerta. |
21
+ | `theme.colors.stateSubtle.error` | `#FDECEA` | Fundo de etiqueta ou aviso de erro. |
22
+ | `theme.colors.stateSubtle.info` | `#E8F3FA` | Fundo de etiqueta ou aviso de informação. |
23
+ | `theme.colors.stateText.success` | `#067647` | Texto de sucesso sobre fundo claro (contraste AA). |
24
+ | `theme.colors.stateText.warning` | `#DC6803` | Texto de alerta. Contraste 3.5:1 no branco, abaixo do AA para texto pequeno: use em semibold ou maior, sempre junto de ícone. Tom escolhido para não parecer vermelho. |
25
+ | `theme.colors.stateText.error` | `#C0392B` | Texto de erro sobre fundo claro (contraste AA). |
26
+ | `theme.colors.stateText.info` | `#0F5E8C` | Texto de informação sobre fundo claro (contraste AA). |
27
+ | `theme.colors.chart.purple` | `#6633CC` | Roxo da marca. |
28
+ | `theme.colors.chart.lilac` | `#B692F6` | Lilás. |
29
+ | `theme.colors.chart.lightBlue` | `#ABD0FD` | Azul clarinho, pastel. |
30
+ | `theme.colors.chart.blue` | `#36BFFA` | Azul ciano. |
31
+ | `theme.colors.chart.teal` | `#00CC99` | Teal da marca. |
32
+ | `theme.colors.chart.orange` | `#FAC074` | Laranja pastel. |
33
+ | `theme.colors.chart.pink` | `#F670C7` | Rosa. |
34
+ | `theme.colors.chart.grey` | `#D9D9D9` | Cinza, para "outros" ou o que sobra. |
35
+ | `theme.colors.grey_1` | `#333333` | Cinza 1, o mais escuro. Texto principal. |
36
+ | `theme.colors.grey_2` | `#666666` | Cinza 2. Texto de apoio. |
37
+ | `theme.colors.grey_3` | `#7D7D7D` | Cinza 3. Rótulos e textos auxiliares. |
38
+ | `theme.colors.grey_4` | `#D9D9D9` | Cinza 4. Bordas. |
39
+ | `theme.colors.grey_5` | `#F3F3F3` | Cinza 5. Fundo de áreas de apoio. |
40
+ | `theme.colors.grey_6` | `#F8F7FC` | Cinza 6, o mais claro, com um toque do roxo da marca. Fundo de página e destaque leve (hover de linha). |
41
+ | `theme.typography.fontFamily` | `Inter, system-ui, -apple-system, 'Segoe UI', sans-serif` | Fonte da marca. O projeto que consome carrega o Inter (300 a 700). A v1 usava Rubik (legacyTheme). |
42
+ | `theme.typography.monoFamily` | `'JetBrains Mono', ui-monospace, SFMono-Regular, monospace` | Fonte monoespaçada para código e números tabulares. |
43
+ | `theme.typography.fontWeight.light` | `300` | Leve. Uso raro, textos grandes. |
44
+ | `theme.typography.fontWeight.regular` | `400` | Texto corrido. |
45
+ | `theme.typography.fontWeight.medium` | `500` | Rótulos e destaques leves. |
46
+ | `theme.typography.fontWeight.semibold` | `600` | Títulos de seção e cabeçalhos. |
47
+ | `theme.typography.fontWeight.bold` | `700` | Títulos principais e números de destaque. |
48
+ | `theme.typography.lineHeight.tight` | `1.1` | Títulos grandes. |
49
+ | `theme.typography.lineHeight.snug` | `1.3` | Títulos médios. |
50
+ | `theme.typography.lineHeight.normal` | `1.5` | Texto corrido compacto. |
51
+ | `theme.typography.lineHeight.relaxed` | `1.6` | Texto corrido longo. |
52
+ | `theme.typography.textSize.caption` | `12px` | Legendas e textos auxiliares. Menor tamanho permitido. |
53
+ | `theme.typography.textSize.bodySm` | `14px` | Texto corrido compacto (tabelas, formulários). |
54
+ | `theme.typography.textSize.body` | `16px` | Texto corrido padrão. |
55
+ | `theme.typography.textSize.bodyLg` | `18px` | Texto corrido de destaque. |
56
+ | `theme.typography.textSize.h4` | `22px` | Título de card ou bloco. |
57
+ | `theme.typography.textSize.h3` | `28px` | Título de seção. |
58
+ | `theme.typography.textSize.h2` | `40px` | Título de página. |
59
+ | `theme.typography.textSize.h1` | `56px` | Título principal. |
60
+ | `theme.typography.textSize.display` | `72px` | Título de capa e hero. |
61
+ | `theme.spacing.1` | `8px` | 8px, unidade da grade. |
62
+ | `theme.spacing.2` | `16px` | 16px. |
63
+ | `theme.spacing.3` | `24px` | 24px. |
64
+ | `theme.spacing.4` | `32px` | 32px. |
65
+ | `theme.spacing.5` | `40px` | 40px. |
66
+ | `theme.spacing.6` | `56px` | 56px. |
67
+ | `theme.spacing.7` | `72px` | 72px. |
68
+ | `theme.spacing.8` | `80px` | 80px. |
69
+ | `theme.spacing.9` | `96px` | 96px. |
70
+ | `theme.spacing.10` | `120px` | 120px. |
71
+ | `theme.spacing.0.5` | `4px` | 4px. |
72
+ | `theme.spacing.1.5` | `12px` | 12px. |
73
+ | `theme.spacing.xs` | `4px` | 4px. |
74
+ | `theme.spacing.sm` | `8px` | 8px, unidade da grade. |
75
+ | `theme.spacing.md` | `16px` | 16px. |
76
+ | `theme.spacing.lg` | `24px` | 24px. |
77
+ | `theme.spacing.xl` | `32px` | 32px. |
78
+ | `theme.spacing.2xl` | `48px` | 48px. |
79
+ | `theme.radius.none` | `0px` | Sem arredondamento. |
80
+ | `theme.radius.sm` | `4px` | Checkbox, etiquetas pequenas. |
81
+ | `theme.radius.md` | `8px` | Botões e campos. |
82
+ | `theme.radius.lg` | `12px` | Cards. |
83
+ | `theme.radius.xl` | `16px` | Tabelas, painéis e modais. |
84
+ | `theme.radius.2xl` | `24px` | Blocos grandes de destaque. |
85
+ | `theme.radius.full` | `9999px` | Pílula e círculo. |
86
+ | `theme.shadow.xs` | `0px 1px 2px 0px #0000000D` | Campos e botões. |
87
+ | `theme.shadow.sm` | `0px 2px 8px 0px #0000000F` | Cards em repouso. |
88
+ | `theme.shadow.md` | `0px 4px 16px 0px #00000014` | Cards em destaque e hover. |
89
+ | `theme.shadow.lg` | `0px 8px 32px 0px #0000001A` | Modais, menus e dropdowns. |
90
+ | `theme.shadow.xl` | `0px 16px 48px 0px #0000001F` | Elementos flutuantes de destaque. |
91
+ | `theme.shadow.focus` | `0px 0px 0px 4px #6633CC3D` | Anel de foco roxo (24%), para foco de marca em peças novas. Campos e botões usam o anel cinza que acompanha a borda. |
92
+ | `theme.shadow.button` | `0px 2px 8px 0px #0000000F` | |
93
+ | `theme.breakpoints.xs` | `480px` | Celular grande. |
94
+ | `theme.breakpoints.sm` | `640px` | Celular deitado. |
95
+ | `theme.breakpoints.md` | `768px` | Tablet. Abaixo disso é celular. |
96
+ | `theme.breakpoints.lg` | `1024px` | Notebook pequeno. |
97
+ | `theme.breakpoints.xl` | `1280px` | Desktop. |
98
+ | `theme.zIndex.drawer` | `1100` | Painéis laterais (Drawer). |
99
+ | `theme.zIndex.modal` | `1200` | Modais. Ficam acima do Drawer. |
100
+ | `theme.zIndex.dropdown` | `1300` | Select, popover e menus. Abrem soltos na página, então ficam acima do Modal para funcionar dentro dele. |
101
+ | `theme.zIndex.toast` | `1400` | Avisos no canto da tela. |
102
+ | `theme.zIndex.tooltip` | `1500` | Tooltips, sempre por cima. |
103
+ | `theme.motion.duration.fast` | `120ms` | Mudança de estado pequena (hover de cor). |
104
+ | `theme.motion.duration.normal` | `200ms` | Transição padrão. |
105
+ | `theme.motion.duration.slow` | `300ms` | Abertura de painel e revelação de card. |
106
+ | `theme.motion.easing.default` | `cubic-bezier(0.4, 0, 0.2, 1)` | Entra e sai suave (ease-in-out). |
107
+ | `theme.motion.easing.enter` | `cubic-bezier(0, 0, 0.2, 1)` | Elemento entrando (ease-out). |
108
+ | `theme.motion.easing.exit` | `cubic-bezier(0.4, 0, 1, 1)` | Elemento saindo (ease-in). |
109
+
110
+ Chaves da v1 (`colors.custom`, `box_shadow`, `border_radius`, `title_size`, `body_size`, `typography.family`) continuam aceitas como apelido, mas não use em código novo. A troca está no `MIGRATION.md`.
111
+
112
+ ## Fora do React (`lib/tokens/tokens.css`)
113
+
114
+ Para HTML, slides, landing e vídeo: importe `blockforce-design-system/lib/tokens/tokens.css` e use as variáveis.
115
+
116
+ ```css
117
+ --bf-color-purple-500: #6633CC
118
+ --bf-color-teal-500: #00CC99
119
+ --bf-color-navy-900: #1A202B
120
+ --bf-color-white: #FFFFFF
121
+ --bf-color-grey-1: #333333
122
+ --bf-color-grey-2: #666666
123
+ --bf-color-grey-3: #7D7D7D
124
+ --bf-color-grey-4: #D9D9D9
125
+ --bf-color-grey-5: #F3F3F3
126
+ --bf-color-grey-6: #F8F7FC
127
+ --bf-color-green-50: #ECFDF3
128
+ --bf-color-green-500: #27AE60
129
+ --bf-color-green-700: #067647
130
+ --bf-color-orange-50: #FEF3E7
131
+ --bf-color-orange-200: #FAC074
132
+ --bf-color-orange-500: #F79009
133
+ --bf-color-orange-700: #DC6803
134
+ --bf-color-red-50: #FDECEA
135
+ --bf-color-red-500: #EB5757
136
+ --bf-color-red-700: #C0392B
137
+ --bf-color-blue-50: #E8F3FA
138
+ --bf-color-blue-200: #ABD0FD
139
+ --bf-color-blue-500: #2F80ED
140
+ --bf-color-blue-600: #1779B2
141
+ --bf-color-blue-700: #0F5E8C
142
+ --bf-color-lilac-300: #B692F6
143
+ --bf-color-pink-400: #F670C7
144
+ --bf-color-cyan-400: #36BFFA
145
+ --bf-font-family-sans: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif
146
+ --bf-font-family-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace
147
+ --bf-font-weight-light: 300
148
+ --bf-font-weight-regular: 400
149
+ --bf-font-weight-medium: 500
150
+ --bf-font-weight-semibold: 600
151
+ --bf-font-weight-bold: 700
152
+ --bf-font-size-caption: 12px
153
+ --bf-font-size-body-sm: 14px
154
+ --bf-font-size-body: 16px
155
+ --bf-font-size-body-lg: 18px
156
+ --bf-font-size-h4: 22px
157
+ --bf-font-size-h3: 28px
158
+ --bf-font-size-h2: 40px
159
+ --bf-font-size-h1: 56px
160
+ --bf-font-size-display: 72px
161
+ --bf-font-line-height-tight: 1.1
162
+ --bf-font-line-height-snug: 1.3
163
+ --bf-font-line-height-normal: 1.5
164
+ --bf-font-line-height-relaxed: 1.6
165
+ --bf-space-0: 0px
166
+ --bf-space-4: 4px
167
+ --bf-space-8: 8px
168
+ --bf-space-12: 12px
169
+ --bf-space-16: 16px
170
+ --bf-space-24: 24px
171
+ --bf-space-32: 32px
172
+ --bf-space-40: 40px
173
+ --bf-space-48: 48px
174
+ --bf-space-56: 56px
175
+ --bf-space-72: 72px
176
+ --bf-space-80: 80px
177
+ --bf-space-96: 96px
178
+ --bf-space-120: 120px
179
+ --bf-radius-none: 0px
180
+ --bf-radius-sm: 4px
181
+ --bf-radius-md: 8px
182
+ --bf-radius-lg: 12px
183
+ --bf-radius-xl: 16px
184
+ --bf-radius-2xl: 24px
185
+ --bf-radius-full: 9999px
186
+ --bf-shadow-xs: 0px 1px 2px 0px #0000000D
187
+ --bf-shadow-sm: 0px 2px 8px 0px #0000000F
188
+ --bf-shadow-md: 0px 4px 16px 0px #00000014
189
+ --bf-shadow-lg: 0px 8px 32px 0px #0000001A
190
+ --bf-shadow-xl: 0px 16px 48px 0px #0000001F
191
+ --bf-shadow-focus: 0px 0px 0px 4px #6633CC3D
192
+ --bf-breakpoint-xs: 480px
193
+ --bf-breakpoint-sm: 640px
194
+ --bf-breakpoint-md: 768px
195
+ --bf-breakpoint-lg: 1024px
196
+ --bf-breakpoint-xl: 1280px
197
+ --bf-z-index-drawer: 1100
198
+ --bf-z-index-modal: 1200
199
+ --bf-z-index-dropdown: 1300
200
+ --bf-z-index-toast: 1400
201
+ --bf-z-index-tooltip: 1500
202
+ --bf-duration-fast: 120ms
203
+ --bf-duration-normal: 200ms
204
+ --bf-duration-slow: 300ms
205
+ --bf-easing-default: cubic-bezier(0.4, 0, 0.2, 1)
206
+ --bf-easing-enter: cubic-bezier(0, 0, 0.2, 1)
207
+ --bf-easing-exit: cubic-bezier(0.4, 0, 1, 1)
208
+ --bf-brand-gradient: linear-gradient(45deg, #6633CC 0%, #00CC99 100%)
209
+ --bf-border-focus: #6633CC
210
+ --bf-interactive: #1779B2
211
+ --bf-state-success: #27AE60
212
+ --bf-state-warning: #F79009
213
+ --bf-state-error: #EB5757
214
+ --bf-state-info: #2F80ED
215
+ --bf-state-subtle-success: #ECFDF3
216
+ --bf-state-subtle-warning: #FEF3E7
217
+ --bf-state-subtle-error: #FDECEA
218
+ --bf-state-subtle-info: #E8F3FA
219
+ --bf-state-text-success: #067647
220
+ --bf-state-text-warning: #DC6803
221
+ --bf-state-text-error: #C0392B
222
+ --bf-state-text-info: #0F5E8C
223
+ --bf-chart-purple: #6633CC
224
+ --bf-chart-lilac: #B692F6
225
+ --bf-chart-light-blue: #ABD0FD
226
+ --bf-chart-blue: #36BFFA
227
+ --bf-chart-teal: #00CC99
228
+ --bf-chart-orange: #FAC074
229
+ --bf-chart-pink: #F670C7
230
+ --bf-chart-grey: #D9D9D9
231
+ ```
@@ -1,20 +1,20 @@
1
- "use strict";var e=require("styled-components"),t=require("../../../theme/media.js"),o=require("../../../theme/theme.util.js");const i=e.styled.div`
1
+ "use strict";var e=require("styled-components"),t=require("../../../theme/media.js"),o=require("../../../theme/theme.util.js"),r=require("../../../theme/scrollbar.js");const i=e.styled.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  gap: ${({theme:e})=>e.spacing.md};
5
5
  width: 100%;
6
6
  min-width: 280px;
7
7
  font-family: ${({theme:e})=>e.typography.fontFamily};
8
- `,r=e.styled.div`
8
+ `,s=e.styled.div`
9
9
  display: flex;
10
10
  align-items: center;
11
11
  justify-content: space-between;
12
12
  gap: ${({theme:e})=>e.spacing.sm};
13
- `,s=e.styled.span`
13
+ `,a=e.styled.span`
14
14
  font-size: ${({theme:e})=>e.typography.textSize.body};
15
15
  font-weight: ${({theme:e})=>e.typography.fontWeight.medium};
16
16
  color: ${({theme:e})=>e.colors.grey_1};
17
- `,a=e.styled.div`
17
+ `,l=e.styled.div`
18
18
  display: grid;
19
19
  grid-template-columns: repeat(7, minmax(0, 1fr));
20
20
  gap: 4px;
@@ -67,16 +67,16 @@
67
67
  min-height: 36px;
68
68
  padding: 2px;
69
69
  }
70
- `,l=e.styled.span`
70
+ `,d=e.styled.span`
71
71
  font-size: ${({theme:e})=>e.typography.textSize.caption};
72
72
  font-weight: ${({$today:e,theme:t})=>e?t.typography.fontWeight.semibold:t.typography.fontWeight.regular};
73
73
  color: ${({$outside:e,$today:t,theme:o})=>t?o.colors.primary:e?o.colors.grey_3:o.colors.grey_1};
74
- `,d=e.styled.span`
74
+ `,m=e.styled.span`
75
75
  display: flex;
76
76
  flex-wrap: wrap;
77
77
  align-items: center;
78
78
  gap: 2px;
79
- `,m=e.styled.span`
79
+ `,h=e.styled.span`
80
80
  flex: none;
81
81
  width: ${({$size:e})=>e??8}px;
82
82
  height: ${({$size:e})=>e??8}px;
@@ -95,7 +95,7 @@
95
95
  &::after {
96
96
  content: attr(data-count);
97
97
  }
98
- `,h=e.styled.ul`
98
+ `,y=e.styled.ul`
99
99
  display: flex;
100
100
  flex-wrap: wrap;
101
101
  justify-content: center;
@@ -103,28 +103,29 @@
103
103
  margin: 0;
104
104
  padding: 0;
105
105
  list-style: none;
106
- `,y=e.styled.li`
106
+ `,c=e.styled.li`
107
107
  display: flex;
108
108
  align-items: center;
109
109
  gap: ${({theme:e})=>e.spacing.sm};
110
110
  font-size: ${({theme:e})=>e.typography.textSize.bodySm};
111
111
  color: ${({theme:e})=>e.colors.grey_2};
112
- `,c=e.styled.div`
112
+ `,x=e.styled.div`
113
113
  display: flex;
114
114
  flex-direction: column;
115
115
  gap: ${({theme:e})=>e.spacing.sm};
116
116
  max-height: 400px;
117
117
  overflow-y: auto;
118
+ ${r.thinScrollbar}
118
119
  padding: ${({theme:e})=>e.spacing.md};
119
- `,x=e.styled.span`
120
+ `,$=e.styled.span`
120
121
  font-size: ${({theme:e})=>e.typography.textSize.bodySm};
121
122
  font-weight: ${({theme:e})=>e.typography.fontWeight.semibold};
122
123
  color: ${({theme:e})=>e.colors.grey_1};
123
- `,$=e.styled.span`
124
+ `,f=e.styled.span`
124
125
  display: flex;
125
126
  align-items: center;
126
127
  gap: ${({theme:e})=>e.spacing.sm};
127
128
  font-size: ${({theme:e})=>e.typography.textSize.bodySm};
128
129
  color: ${({theme:e})=>e.colors.grey_1};
129
- `;exports.Container=i,exports.Day=n,exports.DayNumber=l,exports.Details=c,exports.DetailsItem=$,exports.DetailsTitle=x,exports.Dot=m,exports.Dots=d,exports.Grid=a,exports.Header=r,exports.Legend=h,exports.LegendItem=y,exports.MonthTitle=s,exports.More=g,exports.Weekday=p;
130
+ `;exports.Container=i,exports.Day=n,exports.DayNumber=d,exports.Details=x,exports.DetailsItem=f,exports.DetailsTitle=$,exports.Dot=h,exports.Dots=m,exports.Grid=l,exports.Header=s,exports.Legend=y,exports.LegendItem=c,exports.MonthTitle=a,exports.More=g,exports.Weekday=p;
130
131
  //# sourceMappingURL=calendar.styles.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"calendar.styles.js","sources":["../../../../../src/components/data-display/calendar/calendar.styles.tsx"],"sourcesContent":["import { css, styled } from 'styled-components'\n\nimport { getThemeColor, media } from '../../../theme'\n\nexport const Container = styled.div`\n display: flex;\n flex-direction: column;\n gap: ${({ theme }) => theme.spacing.md};\n width: 100%;\n min-width: 280px;\n font-family: ${({ theme }) => theme.typography.fontFamily};\n`\n\nexport const Header = styled.div`\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: ${({ theme }) => theme.spacing.sm};\n`\n\nexport const MonthTitle = styled.span`\n font-size: ${({ theme }) => theme.typography.textSize.body};\n font-weight: ${({ theme }) => theme.typography.fontWeight.medium};\n color: ${({ theme }) => theme.colors.grey_1};\n`\n\nexport const Grid = styled.div`\n display: grid;\n grid-template-columns: repeat(7, minmax(0, 1fr));\n gap: 4px;\n\n ${media.down('md')} {\n gap: 2px;\n }\n`\n\nexport const Weekday = styled.abbr`\n padding: 4px;\n text-align: center;\n text-decoration: none;\n text-transform: capitalize;\n font-size: ${({ theme }) => theme.typography.textSize.caption};\n font-weight: ${({ theme }) => theme.typography.fontWeight.medium};\n color: ${({ theme }) => theme.colors.grey_2};\n`\n\nexport const Day = styled.button<{\n $outside: boolean\n $today: boolean\n $clickable: boolean\n}>`\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n gap: 2px;\n min-height: 44px;\n padding: 4px;\n border: 1px solid ${({ theme }) => theme.colors.grey_4};\n border-radius: ${({ theme }) => theme.radius.sm};\n background: ${({ $outside, theme }) =>\n $outside ? theme.colors.grey_5 : theme.colors.white};\n font: inherit;\n text-align: left;\n cursor: ${({ $clickable }) => ($clickable ? 'pointer' : 'default')};\n transition:\n background-color ${({ theme }) => theme.motion.duration.fast} ease,\n border-color ${({ theme }) => theme.motion.duration.fast} ease;\n\n ${({ $today, theme }) =>\n $today &&\n css`\n border-color: ${theme.colors.primary};\n box-shadow: inset 0 0 0 1px ${theme.colors.primary};\n `}\n\n ${({ $clickable, theme }) =>\n $clickable &&\n css`\n &:hover {\n background: ${theme.colors.grey_5};\n }\n `}\n\n &:focus-visible {\n outline: 2px solid ${({ theme }) => theme.colors.border.focus};\n outline-offset: 1px;\n }\n\n ${media.down('md')} {\n min-height: 36px;\n padding: 2px;\n }\n`\n\nexport const DayNumber = styled.span<{ $outside: boolean; $today: boolean }>`\n font-size: ${({ theme }) => theme.typography.textSize.caption};\n font-weight: ${({ $today, theme }) =>\n $today\n ? theme.typography.fontWeight.semibold\n : theme.typography.fontWeight.regular};\n color: ${({ $outside, $today, theme }) =>\n $today\n ? theme.colors.primary\n : $outside\n ? theme.colors.grey_3\n : theme.colors.grey_1};\n`\n\nexport const Dots = styled.span`\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: 2px;\n`\n\nexport const Dot = styled.span<{ $color?: string; $size?: number }>`\n flex: none;\n width: ${({ $size }) => $size ?? 8}px;\n height: ${({ $size }) => $size ?? 8}px;\n border-radius: 50%;\n background: ${({ $color, theme }) =>\n getThemeColor($color ?? 'primary', theme)};\n`\n\nexport const More = styled.span`\n flex: none;\n padding: 0 4px;\n border-radius: ${({ theme }) => theme.radius.full};\n background: ${({ theme }) => theme.colors.grey_2};\n color: ${({ theme }) => theme.colors.white};\n font-size: 10px;\n font-weight: ${({ theme }) => theme.typography.fontWeight.medium};\n line-height: 14px;\n\n &::after {\n content: attr(data-count);\n }\n`\n\nexport const Legend = styled.ul`\n display: flex;\n flex-wrap: wrap;\n justify-content: center;\n gap: ${({ theme }) => `${theme.spacing.xs} ${theme.spacing.lg}`};\n margin: 0;\n padding: 0;\n list-style: none;\n`\n\nexport const LegendItem = styled.li`\n display: flex;\n align-items: center;\n gap: ${({ theme }) => theme.spacing.sm};\n font-size: ${({ theme }) => theme.typography.textSize.bodySm};\n color: ${({ theme }) => theme.colors.grey_2};\n`\n\nexport const Details = styled.div`\n display: flex;\n flex-direction: column;\n gap: ${({ theme }) => theme.spacing.sm};\n max-height: 400px;\n overflow-y: auto;\n padding: ${({ theme }) => theme.spacing.md};\n`\n\nexport const DetailsTitle = styled.span`\n font-size: ${({ theme }) => theme.typography.textSize.bodySm};\n font-weight: ${({ theme }) => theme.typography.fontWeight.semibold};\n color: ${({ theme }) => theme.colors.grey_1};\n`\n\nexport const DetailsItem = styled.span`\n display: flex;\n align-items: center;\n gap: ${({ theme }) => theme.spacing.sm};\n font-size: ${({ theme }) => theme.typography.textSize.bodySm};\n color: ${({ theme }) => theme.colors.grey_1};\n`\n"],"names":["Container","styled","div","theme","spacing","md","typography","fontFamily","Header","sm","MonthTitle","span","textSize","body","fontWeight","medium","colors","grey_1","Grid","media","down","Weekday","abbr","caption","grey_2","Day","button","grey_4","radius","$outside","grey_5","white","$clickable","motion","duration","fast","$today","css","primary","border","focus","DayNumber","semibold","regular","grey_3","Dots","Dot","$size","$color","getThemeColor","More","full","Legend","ul","xs","lg","LegendItem","li","bodySm","Details","DetailsTitle","DetailsItem"],"mappings":"+HAIaA,MAAAA,EAAYC,EAAMA,OAACC,GAAG;;;SAG1B,EAAGC,WAAYA,EAAMC,QAAQC;;;iBAGrB,EAAGF,WAAYA,EAAMG,WAAWC;EAGpCC,EAASP,EAAMA,OAACC,GAAG;;;;SAIvB,EAAGC,WAAYA,EAAMC,QAAQK;EAGzBC,EAAaT,EAAMA,OAACU,IAAI;eACtB,EAAGR,WAAYA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EAAO5C,EAAMA,OAACU,IAAI;;;;;EAOlBmC,EAAM7C,EAAMA,OAACU,IAAyC;;WAExD,EAAGoC,WAAYA,GAAS;YACvB,EAAGA,WAAYA,GAAS;;gBAEpB,EAAGC,SAAQ7C,WACvB8C,gBAAcD,GAAU,UAAW7C;EAG1B+C,EAAOjD,EAAMA,OAACU,IAAI;;;mBAGZ,EAAGR,WAAYA,EAAMyB,OAAOuB;gBAC/B,EAAGhD,WAAYA,EAAMa,OAAOQ;WACjC,EAAGrB,WAAYA,EAAMa,OAAOe;;iBAEtB,EAAG5B,WAAYA,EAAMG,WAAWQ,WAAWC;;;;;;EAQ/CqC,EAASnD,EAAMA,OAACoD,EAAE;;;;SAItB,EAAGlD,cAAeA,EAAMC,QAAQkD,MAAMnD,EAAMC,QAAQmD;;;;EAMhDC,EAAavD,EAAMA,OAACwD,EAAE;;;SAG1B,EAAGtD,WAAYA,EAAMC,QAAQK;eACvB,EAAGN,WAAYA,EAAMG,WAAWM,SAAS8C;WAC7C,EAAGvD,WAAYA,EAAMa,OAAOQ;EAG1BmC,EAAU1D,EAAMA,OAACC,GAAG;;;SAGxB,EAAGC,WAAYA,EAAMC,QAAQK;;;aAGzB,EAAGN,WAAYA,EAAMC,QAAQC;EAG7BuD,EAAe3D,EAAMA,OAACU,IAAI;eACxB,EAAGR,WAAYA,EAAMG,WAAWM,SAAS8C;iBACvC,EAAGvD,WAAYA,EAAMG,WAAWQ,WAAW4B;WACjD,EAAGvC,WAAYA,EAAMa,OAAOC;EAG1B4C,EAAc5D,EAAMA,OAACU,IAAI;;;SAG7B,EAAGR,WAAYA,EAAMC,QAAQK;eACvB,EAAGN,WAAYA,EAAMG,WAAWM,SAAS8C;WAC7C,EAAGvD,WAAYA,EAAMa,OAAOC;"}
1
+ {"version":3,"file":"calendar.styles.js","sources":["../../../../../src/components/data-display/calendar/calendar.styles.tsx"],"sourcesContent":["import { css, styled } from 'styled-components'\n\nimport { getThemeColor, media, thinScrollbar } from '../../../theme'\n\nexport const Container = styled.div`\n display: flex;\n flex-direction: column;\n gap: ${({ theme }) => theme.spacing.md};\n width: 100%;\n min-width: 280px;\n font-family: ${({ theme }) => theme.typography.fontFamily};\n`\n\nexport const Header = styled.div`\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: ${({ theme }) => theme.spacing.sm};\n`\n\nexport const MonthTitle = styled.span`\n font-size: ${({ theme }) => theme.typography.textSize.body};\n font-weight: ${({ theme }) => theme.typography.fontWeight.medium};\n color: ${({ theme }) => theme.colors.grey_1};\n`\n\nexport const Grid = styled.div`\n display: grid;\n grid-template-columns: repeat(7, minmax(0, 1fr));\n gap: 4px;\n\n ${media.down('md')} {\n gap: 2px;\n }\n`\n\nexport const Weekday = styled.abbr`\n padding: 4px;\n text-align: center;\n text-decoration: none;\n text-transform: capitalize;\n font-size: ${({ theme }) => theme.typography.textSize.caption};\n font-weight: ${({ theme }) => theme.typography.fontWeight.medium};\n color: ${({ theme }) => theme.colors.grey_2};\n`\n\nexport const Day = styled.button<{\n $outside: boolean\n $today: boolean\n $clickable: boolean\n}>`\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n gap: 2px;\n min-height: 44px;\n padding: 4px;\n border: 1px solid ${({ theme }) => theme.colors.grey_4};\n border-radius: ${({ theme }) => theme.radius.sm};\n background: ${({ $outside, theme }) =>\n $outside ? theme.colors.grey_5 : theme.colors.white};\n font: inherit;\n text-align: left;\n cursor: ${({ $clickable }) => ($clickable ? 'pointer' : 'default')};\n transition:\n background-color ${({ theme }) => theme.motion.duration.fast} ease,\n border-color ${({ theme }) => theme.motion.duration.fast} ease;\n\n ${({ $today, theme }) =>\n $today &&\n css`\n border-color: ${theme.colors.primary};\n box-shadow: inset 0 0 0 1px ${theme.colors.primary};\n `}\n\n ${({ $clickable, theme }) =>\n $clickable &&\n css`\n &:hover {\n background: ${theme.colors.grey_5};\n }\n `}\n\n &:focus-visible {\n outline: 2px solid ${({ theme }) => theme.colors.border.focus};\n outline-offset: 1px;\n }\n\n ${media.down('md')} {\n min-height: 36px;\n padding: 2px;\n }\n`\n\nexport const DayNumber = styled.span<{ $outside: boolean; $today: boolean }>`\n font-size: ${({ theme }) => theme.typography.textSize.caption};\n font-weight: ${({ $today, theme }) =>\n $today\n ? theme.typography.fontWeight.semibold\n : theme.typography.fontWeight.regular};\n color: ${({ $outside, $today, theme }) =>\n $today\n ? theme.colors.primary\n : $outside\n ? theme.colors.grey_3\n : theme.colors.grey_1};\n`\n\nexport const Dots = styled.span`\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: 2px;\n`\n\nexport const Dot = styled.span<{ $color?: string; $size?: number }>`\n flex: none;\n width: ${({ $size }) => $size ?? 8}px;\n height: ${({ $size }) => $size ?? 8}px;\n border-radius: 50%;\n background: ${({ $color, theme }) =>\n getThemeColor($color ?? 'primary', theme)};\n`\n\nexport const More = styled.span`\n flex: none;\n padding: 0 4px;\n border-radius: ${({ theme }) => theme.radius.full};\n background: ${({ theme }) => theme.colors.grey_2};\n color: ${({ theme }) => theme.colors.white};\n font-size: 10px;\n font-weight: ${({ theme }) => theme.typography.fontWeight.medium};\n line-height: 14px;\n\n &::after {\n content: attr(data-count);\n }\n`\n\nexport const Legend = styled.ul`\n display: flex;\n flex-wrap: wrap;\n justify-content: center;\n gap: ${({ theme }) => `${theme.spacing.xs} ${theme.spacing.lg}`};\n margin: 0;\n padding: 0;\n list-style: none;\n`\n\nexport const LegendItem = styled.li`\n display: flex;\n align-items: center;\n gap: ${({ theme }) => theme.spacing.sm};\n font-size: ${({ theme }) => theme.typography.textSize.bodySm};\n color: ${({ theme }) => theme.colors.grey_2};\n`\n\nexport const Details = styled.div`\n display: flex;\n flex-direction: column;\n gap: ${({ theme }) => theme.spacing.sm};\n max-height: 400px;\n overflow-y: auto;\n ${thinScrollbar}\n padding: ${({ theme }) => theme.spacing.md};\n`\n\nexport const DetailsTitle = styled.span`\n font-size: ${({ theme }) => theme.typography.textSize.bodySm};\n font-weight: ${({ theme }) => theme.typography.fontWeight.semibold};\n color: ${({ theme }) => theme.colors.grey_1};\n`\n\nexport const DetailsItem = styled.span`\n display: flex;\n align-items: center;\n gap: ${({ theme }) => theme.spacing.sm};\n font-size: ${({ theme }) => theme.typography.textSize.bodySm};\n color: ${({ theme }) => theme.colors.grey_1};\n`\n"],"names":["Container","styled","div","theme","spacing","md","typography","fontFamily","Header","sm","MonthTitle","span","textSize","body","fontWeight","medium","colors","grey_1","Grid","media","down","Weekday","abbr","caption","grey_2","Day","button","grey_4","radius","$outside","grey_5","white","$clickable","motion","duration","fast","$today","css","primary","border","focus","DayNumber","semibold","regular","grey_3","Dots","Dot","$size","$color","getThemeColor","More","full","Legend","ul","xs","lg","LegendItem","li","bodySm","Details","thinScrollbar","DetailsTitle","DetailsItem"],"mappings":"wKAIaA,MAAAA,EAAYC,EAAMA,OAACC,GAAG;;;SAG1B,EAAGC,WAAYA,EAAMC,QAAQC;;;iBAGrB,EAAGF,WAAYA,EAAMG,WAAWC;EAGpCC,EAASP,EAAMA,OAACC,GAAG;;;;SAIvB,EAAGC,WAAYA,EAAMC,QAAQK;EAGzBC,EAAaT,EAAMA,OAACU,IAAI;eACtB,EAAGR,WAAYA,EAAMG,WAAWM,SAASC;iBACvC,EAAGV,WAAYA,EAAMG,WAAWQ,WAAWC;WACjD,EAAGZ,WAAYA,EAAMa,OAAOC;EAG1BC,EAAOjB,EAAMA,OAACC,GAAG;;;;;IAK1BiB,EAAKA,MAACC,KAAK;;;EAKFC,EAAUpB,EAAMA,OAACqB,IAAI;;;;;eAKnB,EAAGnB,WAAYA,EAAMG,WAAWM,SAASW;iBACvC,EAAGpB,WAAYA,EAAMG,WAAWQ,WAAWC;WACjD,EAAGZ,WAAYA,EAAMa,OAAOQ;EAG1BC,EAAMxB,EAAMA,OAACyB,MAIxB;;;;;;;sBAOoB,EAAGvB,WAAYA,EAAMa,OAAOW;mBAC/B,EAAGxB,WAAYA,EAAMyB,OAAOnB;gBAC/B,EAAGoB,WAAU1B,WACzB0B,EAA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hDC,EAAavD,EAAMA,OAACwD,EAAE;;;SAG1B,EAAGtD,WAAYA,EAAMC,QAAQK;eACvB,EAAGN,WAAYA,EAAMG,WAAWM,SAAS8C;WAC7C,EAAGvD,WAAYA,EAAMa,OAAOQ;EAG1BmC,EAAU1D,EAAMA,OAACC,GAAG;;;SAGxB,EAAGC,WAAYA,EAAMC,QAAQK;;;IAGlCmD;aACS,EAAGzD,WAAYA,EAAMC,QAAQC;EAG7BwD,EAAe5D,EAAMA,OAACU,IAAI;eACxB,EAAGR,WAAYA,EAAMG,WAAWM,SAAS8C;iBACvC,EAAGvD,WAAYA,EAAMG,WAAWQ,WAAW4B;WACjD,EAAGvC,WAAYA,EAAMa,OAAOC;EAG1B6C,EAAc7D,EAAMA,OAACU,IAAI;;;SAG7B,EAAGR,WAAYA,EAAMC,QAAQK;eACvB,EAAGN,WAAYA,EAAMG,WAAWM,SAAS8C;WAC7C,EAAGvD,WAAYA,EAAMa,OAAOC;"}
@@ -1,16 +1,16 @@
1
- "use strict";var e=require("styled-components"),t=require("../../../theme/theme.util.js");const o=(e,t)=>`color-mix(in srgb, ${t.colors.primary} 10%, ${e})`,r=e.styled.div`
1
+ "use strict";var e=require("styled-components"),t=require("../../../theme/scrollbar.js"),o=require("../../../theme/theme.util.js");const r=(e,t)=>`color-mix(in srgb, ${t.colors.primary} 10%, ${e})`,i=e.styled.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  gap: ${({theme:e})=>e.spacing.md};
5
5
  width: 100%;
6
6
  min-width: 0;
7
7
  font-family: ${({theme:e})=>e.typography.fontFamily};
8
- `,i=e.styled.div`
8
+ `,n=e.styled.div`
9
9
  display: flex;
10
10
  align-items: stretch;
11
11
  gap: ${({theme:e})=>e.spacing.sm};
12
12
  min-width: 0;
13
- `,n=e.styled.span`
13
+ `,s=e.styled.span`
14
14
  flex: none;
15
15
  align-self: center;
16
16
  font-size: ${({theme:e})=>e.typography.textSize.caption};
@@ -24,11 +24,12 @@
24
24
  writing-mode: vertical-rl;
25
25
  transform: rotate(180deg);
26
26
  `}
27
- `,s=e.styled.div`
27
+ `,a=e.styled.div`
28
28
  flex: 1;
29
29
  min-width: 0;
30
30
  overflow-x: auto;
31
- `,a=e.styled.div`
31
+ ${t.thinScrollbar}
32
+ `,l=e.styled.div`
32
33
  display: grid;
33
34
  grid-template-columns: ${({$columns:e})=>e};
34
35
  grid-template-rows: ${({$rows:e})=>e};
@@ -46,7 +47,7 @@
46
47
  width: max-content;
47
48
  margin: 0 auto;
48
49
  `}
49
- `,l=e.styled.div`
50
+ `,p=e.styled.div`
50
51
  display: flex;
51
52
  flex-direction: column;
52
53
  justify-content: center;
@@ -56,7 +57,7 @@
56
57
  padding: 4px 8px;
57
58
  text-align: ${({$row:e,$variant:t})=>e&&"chip"===t?"left":"center"};
58
59
  background: ${({$variant:e,theme:t})=>"fill"===e?t.colors.grey_5:"transparent"};
59
- `,p=e.styled.span`
60
+ `,d=e.styled.span`
60
61
  max-width: 100%;
61
62
  overflow: hidden;
62
63
  text-overflow: ellipsis;
@@ -64,11 +65,11 @@
64
65
  font-size: ${({$variant:e,$row:t,theme:o})=>"chip"===e&&t?o.typography.textSize.bodySm:o.typography.textSize.caption};
65
66
  font-weight: ${({theme:e})=>e.typography.fontWeight.semibold};
66
67
  color: ${({$variant:e,$row:t,theme:o})=>"chip"===e&&t?o.colors.grey_1:o.colors.grey_2};
67
- `,d=e.styled.span`
68
+ `,h=e.styled.span`
68
69
  font-size: 11px;
69
70
  line-height: 1.2;
70
71
  color: ${({theme:e})=>e.colors.grey_2};
71
- `,h=e.styled.div`
72
+ `,c=e.styled.div`
72
73
  position: relative;
73
74
  display: flex;
74
75
  flex-wrap: wrap;
@@ -84,8 +85,8 @@
84
85
  font: inherit;
85
86
  font-size: ${({$variant:e,theme:t})=>"chip"===e?t.typography.textSize.caption:t.typography.textSize.bodySm};
86
87
  font-weight: ${({theme:e})=>e.typography.fontWeight.semibold};
87
- background: ${({$background:e,$variant:r,$highlighted:i,theme:n})=>{const s=e?t.getThemeColor(e,n):"chip"===r?n.colors.grey_5:n.colors.white;return i?o(s,n):s}};
88
- color: ${({$color:e,theme:o})=>e?t.getThemeColor(e,o):o.colors.grey_1};
88
+ background: ${({$background:e,$variant:t,$highlighted:i,theme:n})=>{const s=e?o.getThemeColor(e,n):"chip"===t?n.colors.grey_5:n.colors.white;return i?r(s,n):s}};
89
+ color: ${({$color:e,theme:t})=>e?o.getThemeColor(e,t):t.colors.grey_1};
89
90
  border-radius: ${({$variant:e,theme:t})=>"chip"===e?t.radius.sm:"0"};
90
91
  cursor: ${({$clickable:e})=>e?"pointer":"default"};
91
92
  transition:
@@ -105,7 +106,7 @@
105
106
  outline: 2px solid ${({theme:e})=>e.colors.border.focus};
106
107
  outline-offset: -2px;
107
108
  }
108
- `,c=e.styled.span`
109
+ `,m=e.styled.span`
109
110
  display: inline-flex;
110
111
  align-items: center;
111
112
  justify-content: center;
@@ -117,21 +118,21 @@
117
118
  box-shadow: ${({theme:e})=>e.shadow.xs};
118
119
  font-size: ${({theme:e})=>e.typography.textSize.caption};
119
120
  color: ${({theme:e})=>e.colors.grey_1};
120
- `,m=e.styled.span`
121
+ `,g=e.styled.span`
121
122
  flex: none;
122
123
  width: 14px;
123
124
  height: 14px;
124
125
  border-radius: 50%;
125
126
  border: 2px solid ${({theme:e})=>e.colors.white};
126
- background: ${({$color:e,theme:o})=>t.getThemeColor(e??"primary",o)};
127
- `,g=e.styled.span`
127
+ background: ${({$color:e,theme:t})=>o.getThemeColor(e??"primary",t)};
128
+ `,y=e.styled.span`
128
129
  font-size: 11px;
129
130
  color: ${({theme:e})=>e.colors.grey_2};
130
131
 
131
132
  &::after {
132
133
  content: attr(data-count);
133
134
  }
134
- `,y=e.styled.ul`
135
+ `,$=e.styled.ul`
135
136
  display: flex;
136
137
  flex-wrap: wrap;
137
138
  justify-content: center;
@@ -145,7 +146,7 @@
145
146
  gap: ${({theme:e})=>e.spacing.sm};
146
147
  font-size: ${({theme:e})=>e.typography.textSize.bodySm};
147
148
  color: ${({theme:e})=>e.colors.grey_2};
148
- `,$=e.styled.span`
149
+ `,f=e.styled.span`
149
150
  display: inline-flex;
150
151
  flex: none;
151
152
  align-items: center;
@@ -153,15 +154,15 @@
153
154
  width: 18px;
154
155
  height: 18px;
155
156
  border-radius: ${({theme:e})=>e.radius.sm};
156
- background: ${({$color:e,$highlighted:r,theme:i})=>r?o(i.colors.white,i):t.getThemeColor(e,i)};
157
+ background: ${({$color:e,$highlighted:t,theme:i})=>t?r(i.colors.white,i):o.getThemeColor(e,i)};
157
158
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
158
159
  font-size: 11px;
159
160
  font-weight: ${({theme:e})=>e.typography.fontWeight.bold};
160
- color: ${({$symbolColor:e,theme:o})=>e?t.getThemeColor(e,o):o.colors.grey_1};
161
- `,f=e.styled.div`
161
+ color: ${({$symbolColor:e,theme:t})=>e?o.getThemeColor(e,t):t.colors.grey_1};
162
+ `,u=e.styled.div`
162
163
  padding: ${({theme:e})=>e.spacing.md};
163
164
  font-size: ${({theme:e})=>e.typography.textSize.bodySm};
164
165
  line-height: ${({theme:e})=>e.typography.lineHeight.normal};
165
166
  color: ${({theme:e})=>e.colors.grey_1};
166
- `;exports.AxisTitle=n,exports.Body=i,exports.Cell=h,exports.Count=c,exports.Dot=m,exports.Grid=a,exports.Header=l,exports.HeaderLabel=p,exports.HeaderSublabel=d,exports.Legend=y,exports.LegendDescription=f,exports.LegendItem=x,exports.More=g,exports.Scroll=s,exports.Swatch=$,exports.Wrapper=r;
167
+ `;exports.AxisTitle=s,exports.Body=n,exports.Cell=c,exports.Count=m,exports.Dot=g,exports.Grid=l,exports.Header=p,exports.HeaderLabel=d,exports.HeaderSublabel=h,exports.Legend=$,exports.LegendDescription=u,exports.LegendItem=x,exports.More=y,exports.Scroll=a,exports.Swatch=f,exports.Wrapper=i;
167
168
  //# sourceMappingURL=matrix.styles.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"matrix.styles.js","sources":["../../../../../src/components/data-display/matrix/matrix.styles.tsx"],"sourcesContent":["import { css, styled } from 'styled-components'\n\nimport { getThemeColor } from '../../../theme'\n\ntype Variant = 'fill' | 'chip'\n\n/** Fundo da zona destacada: um véu roxo leve sobre o fundo da célula. */\nconst highlightTint = (base: string, theme: any) =>\n `color-mix(in srgb, ${theme.colors.primary} 10%, ${base})`\n\nexport const Wrapper = styled.div`\n display: flex;\n flex-direction: column;\n gap: ${({ theme }) => theme.spacing.md};\n width: 100%;\n min-width: 0;\n font-family: ${({ theme }) => theme.typography.fontFamily};\n`\n\nexport const Body = styled.div`\n display: flex;\n align-items: stretch;\n gap: ${({ theme }) => theme.spacing.sm};\n min-width: 0;\n`\n\nexport const AxisTitle = styled.span<{ $vertical?: boolean }>`\n flex: none;\n align-self: center;\n font-size: ${({ theme }) => theme.typography.textSize.caption};\n font-weight: ${({ theme }) => theme.typography.fontWeight.semibold};\n letter-spacing: 0.04em;\n text-transform: uppercase;\n text-align: center;\n color: ${({ theme }) => theme.colors.grey_2};\n\n ${({ $vertical }) =>\n $vertical &&\n css`\n writing-mode: vertical-rl;\n transform: rotate(180deg);\n `}\n`\n\nexport const Scroll = styled.div`\n flex: 1;\n min-width: 0;\n overflow-x: auto;\n`\n\nexport const Grid = styled.div<{\n $variant: Variant\n $columns: string\n $rows: string\n}>`\n display: grid;\n grid-template-columns: ${({ $columns }) => $columns};\n grid-template-rows: ${({ $rows }) => $rows};\n min-width: min-content;\n\n ${({ $variant, theme }) =>\n $variant === 'fill'\n ? css`\n gap: 1px;\n border: 1px solid ${theme.colors.grey_4};\n border-radius: ${theme.radius.md};\n background: ${theme.colors.grey_4};\n overflow: hidden;\n `\n : css`\n gap: 4px;\n align-items: center;\n width: max-content;\n margin: 0 auto;\n `}\n`\n\nexport const Header = styled.div<{ $variant: Variant; $row?: boolean }>`\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: ${({ $row, $variant }) =>\n $row && $variant === 'chip' ? 'flex-start' : 'center'};\n gap: 2px;\n min-width: 0;\n padding: 4px 8px;\n text-align: ${({ $row, $variant }) =>\n $row && $variant === 'chip' ? 'left' : 'center'};\n background: ${({ $variant, theme }) =>\n $variant === 'fill' ? theme.colors.grey_5 : 'transparent'};\n`\n\nexport const HeaderLabel = styled.span<{ $variant: Variant; $row?: boolean }>`\n max-width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n font-size: ${({ $variant, $row, theme }) =>\n $variant === 'chip' && $row\n ? theme.typography.textSize.bodySm\n : theme.typography.textSize.caption};\n font-weight: ${({ theme }) => theme.typography.fontWeight.semibold};\n color: ${({ $variant, $row, theme }) =>\n $variant === 'chip' && $row ? theme.colors.grey_1 : theme.colors.grey_2};\n`\n\nexport const HeaderSublabel = styled.span`\n font-size: 11px;\n line-height: 1.2;\n color: ${({ theme }) => theme.colors.grey_2};\n`\n\nexport const Cell = styled.div<{\n $variant: Variant\n $background?: string\n $color?: string\n $highlighted: boolean\n $clickable: boolean\n}>`\n position: relative;\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n justify-content: center;\n align-content: center;\n gap: 4px;\n min-width: 0;\n height: 100%;\n margin: 0;\n padding: 4px;\n border: none;\n font: inherit;\n font-size: ${({ $variant, theme }) =>\n $variant === 'chip'\n ? theme.typography.textSize.caption\n : theme.typography.textSize.bodySm};\n font-weight: ${({ theme }) => theme.typography.fontWeight.semibold};\n background: ${({ $background, $variant, $highlighted, theme }) => {\n const base = $background\n ? getThemeColor($background, theme)\n : $variant === 'chip'\n ? theme.colors.grey_5\n : theme.colors.white\n return $highlighted ? highlightTint(base, theme) : base\n }};\n color: ${({ $color, theme }) =>\n $color ? getThemeColor($color, theme) : theme.colors.grey_1};\n border-radius: ${({ $variant, theme }) =>\n $variant === 'chip' ? theme.radius.sm : '0'};\n cursor: ${({ $clickable }) => ($clickable ? 'pointer' : 'default')};\n transition:\n transform ${({ theme }) => theme.motion.duration.fast} ease,\n box-shadow ${({ theme }) => theme.motion.duration.fast} ease;\n\n ${({ $clickable, theme }) =>\n $clickable &&\n css`\n &:hover {\n z-index: 1;\n transform: scale(1.03);\n box-shadow: ${theme.shadow.md};\n }\n `}\n\n &:focus-visible {\n z-index: 1;\n outline: 2px solid ${({ theme }) => theme.colors.border.focus};\n outline-offset: -2px;\n }\n`\n\nexport const Count = styled.span`\n display: inline-flex;\n align-items: center;\n justify-content: center;\n min-width: 24px;\n height: 24px;\n padding: 0 6px;\n border-radius: ${({ theme }) => theme.radius.full};\n background: ${({ theme }) => theme.colors.white};\n box-shadow: ${({ theme }) => theme.shadow.xs};\n font-size: ${({ theme }) => theme.typography.textSize.caption};\n color: ${({ theme }) => theme.colors.grey_1};\n`\n\nexport const Dot = styled.span<{ $color?: string }>`\n flex: none;\n width: 14px;\n height: 14px;\n border-radius: 50%;\n border: 2px solid ${({ theme }) => theme.colors.white};\n background: ${({ $color, theme }) =>\n getThemeColor($color ?? 'primary', theme)};\n`\n\nexport const More = styled.span`\n font-size: 11px;\n color: ${({ theme }) => theme.colors.grey_2};\n\n &::after {\n content: attr(data-count);\n }\n`\n\nexport const Legend = styled.ul`\n display: flex;\n flex-wrap: wrap;\n justify-content: center;\n gap: ${({ theme }) => `${theme.spacing.xs} ${theme.spacing.lg}`};\n margin: 0;\n padding: 0;\n list-style: none;\n`\n\nexport const LegendItem = styled.li`\n display: flex;\n align-items: center;\n gap: ${({ theme }) => theme.spacing.sm};\n font-size: ${({ theme }) => theme.typography.textSize.bodySm};\n color: ${({ theme }) => theme.colors.grey_2};\n`\n\nexport const Swatch = styled.span<{\n $color: string\n $symbolColor?: string\n $highlighted?: boolean\n}>`\n display: inline-flex;\n flex: none;\n align-items: center;\n justify-content: center;\n width: 18px;\n height: 18px;\n border-radius: ${({ theme }) => theme.radius.sm};\n background: ${({ $color, $highlighted, theme }) =>\n $highlighted\n ? highlightTint(theme.colors.white, theme)\n : getThemeColor($color, theme)};\n box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);\n font-size: 11px;\n font-weight: ${({ theme }) => theme.typography.fontWeight.bold};\n color: ${({ $symbolColor, theme }) =>\n $symbolColor ? getThemeColor($symbolColor, theme) : theme.colors.grey_1};\n`\n\nexport const LegendDescription = styled.div`\n padding: ${({ theme }) => theme.spacing.md};\n font-size: ${({ theme }) => theme.typography.textSize.bodySm};\n line-height: ${({ theme }) => theme.typography.lineHeight.normal};\n color: ${({ theme }) => theme.colors.grey_1};\n`\n"],"names":["highlightTint","base","theme","colors","primary","Wrapper","styled","div","spacing","md","typography","fontFamily","Body","sm","AxisTitle","span","textSize","caption","fontWeight","semibold","grey_2","$vertical","css","Scroll","Grid","$columns","$rows","$variant","grey_4","radius","Header","$row","grey_5","HeaderLabel","bodySm","grey_1","HeaderSublabel","Cell","$background","$highlighted","getThemeColor","white","$color","$clickable","motion","duration","fast","shadow","border","focus","Count","full","xs","Dot","More","Legend","ul","lg","LegendItem","li","Swatch","bold","$symbolColor","LegendDescription","lineHeight","normal"],"mappings":"0FAOA,MAAMA,EAAgBA,CAACC,EAAcC,IACb,sBAAAA,EAAMC,OAAOC,gBAAgBH,KAExCI,EAAUC,EAAMA,OAACC,GAAG;;;SAGxB,EAAGL,WAAYA,EAAMM,QAAQC;;;iBAGrB,EAAGP,WAAYA,EAAMQ,WAAWC;EAGpCC,EAAON,EAAMA,OAACC,GAAG;;;SAGrB,EAAGL,WAAYA,EAAMM,QAAQK;;EAIzBC,EAAYR,EAAMA,OAACS,IAA6B;;;eAG9C,EAAGb,WAAYA,EAAMQ,WAAWM,SAASC;iBACvC,EAAGf,WAAYA,EAAMQ,WAAWQ,WAAWC;;;;WAIjD,EAAGjB,WAAYA,EAAMC,OAAOiB;;IAEnC,EAAGC,eACHA,GACAC,EAAAA,GAAG;;;;EAMMC,EAASjB,EAAMA,OAACC,GAAG;;;;EAMnBiB,EAAOlB,EAAMA,OAACC,GAIzB;;2BAEyB,EAAGkB,cAAeA;wBACrB,EAAGC,WAAYA;;;IAGnC,EAAGC,WAAUz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QxC;;;iBAGb,EAAGA,WAAYA,EAAMQ,WAAWQ,WAAW2C;WACjD,EAAGC,eAAc5D,WACxB4D,EAAetB,EAAAA,cAAcsB,EAAc5D,GAASA,EAAMC,OAAOgC;EAGxD4B,EAAoBzD,EAAMA,OAACC,GAAG;aAC9B,EAAGL,WAAYA,EAAMM,QAAQC;eAC3B,EAAGP,WAAYA,EAAMQ,WAAWM,SAASkB;iBACvC,EAAGhC,WAAYA,EAAMQ,WAAWsD,WAAWC;WACjD,EAAG/D,WAAYA,EAAMC,OAAOgC;"}
1
+ {"version":3,"file":"matrix.styles.js","sources":["../../../../../src/components/data-display/matrix/matrix.styles.tsx"],"sourcesContent":["import { css, styled } from 'styled-components'\n\nimport { getThemeColor, thinScrollbar } from '../../../theme'\n\ntype Variant = 'fill' | 'chip'\n\n/** Fundo da zona destacada: um véu roxo leve sobre o fundo da célula. */\nconst highlightTint = (base: string, theme: any) =>\n `color-mix(in srgb, ${theme.colors.primary} 10%, ${base})`\n\nexport const Wrapper = styled.div`\n display: flex;\n flex-direction: column;\n gap: ${({ theme }) => theme.spacing.md};\n width: 100%;\n min-width: 0;\n font-family: ${({ theme }) => theme.typography.fontFamily};\n`\n\nexport const Body = styled.div`\n display: flex;\n align-items: stretch;\n gap: ${({ theme }) => theme.spacing.sm};\n min-width: 0;\n`\n\nexport const AxisTitle = styled.span<{ $vertical?: boolean }>`\n flex: none;\n align-self: center;\n font-size: ${({ theme }) => theme.typography.textSize.caption};\n font-weight: ${({ theme }) => theme.typography.fontWeight.semibold};\n letter-spacing: 0.04em;\n text-transform: uppercase;\n text-align: center;\n color: ${({ theme }) => theme.colors.grey_2};\n\n ${({ $vertical }) =>\n $vertical &&\n css`\n writing-mode: vertical-rl;\n transform: rotate(180deg);\n `}\n`\n\nexport const Scroll = styled.div`\n flex: 1;\n min-width: 0;\n overflow-x: auto;\n ${thinScrollbar}\n`\n\nexport const Grid = styled.div<{\n $variant: Variant\n $columns: string\n $rows: string\n}>`\n display: grid;\n grid-template-columns: ${({ $columns }) => $columns};\n grid-template-rows: ${({ $rows }) => $rows};\n min-width: min-content;\n\n ${({ $variant, theme }) =>\n $variant === 'fill'\n ? css`\n gap: 1px;\n border: 1px solid ${theme.colors.grey_4};\n border-radius: ${theme.radius.md};\n background: ${theme.colors.grey_4};\n overflow: hidden;\n `\n : css`\n gap: 4px;\n align-items: center;\n width: max-content;\n margin: 0 auto;\n `}\n`\n\nexport const Header = styled.div<{ $variant: Variant; $row?: boolean }>`\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: ${({ $row, $variant }) =>\n $row && $variant === 'chip' ? 'flex-start' : 'center'};\n gap: 2px;\n min-width: 0;\n padding: 4px 8px;\n text-align: ${({ $row, $variant }) =>\n $row && $variant === 'chip' ? 'left' : 'center'};\n background: ${({ $variant, theme }) =>\n $variant === 'fill' ? theme.colors.grey_5 : 'transparent'};\n`\n\nexport const HeaderLabel = styled.span<{ $variant: Variant; $row?: boolean }>`\n max-width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n font-size: ${({ $variant, $row, theme }) =>\n $variant === 'chip' && $row\n ? theme.typography.textSize.bodySm\n : theme.typography.textSize.caption};\n font-weight: ${({ theme }) => theme.typography.fontWeight.semibold};\n color: ${({ $variant, $row, theme }) =>\n $variant === 'chip' && $row ? theme.colors.grey_1 : theme.colors.grey_2};\n`\n\nexport const HeaderSublabel = styled.span`\n font-size: 11px;\n line-height: 1.2;\n color: ${({ theme }) => theme.colors.grey_2};\n`\n\nexport const Cell = styled.div<{\n $variant: Variant\n $background?: string\n $color?: string\n $highlighted: boolean\n $clickable: boolean\n}>`\n position: relative;\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n justify-content: center;\n align-content: center;\n gap: 4px;\n min-width: 0;\n height: 100%;\n margin: 0;\n padding: 4px;\n border: none;\n font: inherit;\n font-size: ${({ $variant, theme }) =>\n $variant === 'chip'\n ? theme.typography.textSize.caption\n : theme.typography.textSize.bodySm};\n font-weight: ${({ theme }) => theme.typography.fontWeight.semibold};\n background: ${({ $background, $variant, $highlighted, theme }) => {\n const base = $background\n ? getThemeColor($background, theme)\n : $variant === 'chip'\n ? theme.colors.grey_5\n : theme.colors.white\n return $highlighted ? highlightTint(base, theme) : base\n }};\n color: ${({ $color, theme }) =>\n $color ? getThemeColor($color, theme) : theme.colors.grey_1};\n border-radius: ${({ $variant, theme }) =>\n $variant === 'chip' ? theme.radius.sm : '0'};\n cursor: ${({ $clickable }) => ($clickable ? 'pointer' : 'default')};\n transition:\n transform ${({ theme }) => theme.motion.duration.fast} ease,\n box-shadow ${({ theme }) => theme.motion.duration.fast} ease;\n\n ${({ $clickable, theme }) =>\n $clickable &&\n css`\n &:hover {\n z-index: 1;\n transform: scale(1.03);\n box-shadow: ${theme.shadow.md};\n }\n `}\n\n &:focus-visible {\n z-index: 1;\n outline: 2px solid ${({ theme }) => theme.colors.border.focus};\n outline-offset: -2px;\n }\n`\n\nexport const Count = styled.span`\n display: inline-flex;\n align-items: center;\n justify-content: center;\n min-width: 24px;\n height: 24px;\n padding: 0 6px;\n border-radius: ${({ theme }) => theme.radius.full};\n background: ${({ theme }) => theme.colors.white};\n box-shadow: ${({ theme }) => theme.shadow.xs};\n font-size: ${({ theme }) => theme.typography.textSize.caption};\n color: ${({ theme }) => theme.colors.grey_1};\n`\n\nexport const Dot = styled.span<{ $color?: string }>`\n flex: none;\n width: 14px;\n height: 14px;\n border-radius: 50%;\n border: 2px solid ${({ theme }) => theme.colors.white};\n background: ${({ $color, theme }) =>\n getThemeColor($color ?? 'primary', theme)};\n`\n\nexport const More = styled.span`\n font-size: 11px;\n color: ${({ theme }) => theme.colors.grey_2};\n\n &::after {\n content: attr(data-count);\n }\n`\n\nexport const Legend = styled.ul`\n display: flex;\n flex-wrap: wrap;\n justify-content: center;\n gap: ${({ theme }) => `${theme.spacing.xs} ${theme.spacing.lg}`};\n margin: 0;\n padding: 0;\n list-style: none;\n`\n\nexport const LegendItem = styled.li`\n display: flex;\n align-items: center;\n gap: ${({ theme }) => theme.spacing.sm};\n font-size: ${({ theme }) => theme.typography.textSize.bodySm};\n color: ${({ theme }) => theme.colors.grey_2};\n`\n\nexport const Swatch = styled.span<{\n $color: string\n $symbolColor?: string\n $highlighted?: boolean\n}>`\n display: inline-flex;\n flex: none;\n align-items: center;\n justify-content: center;\n width: 18px;\n height: 18px;\n border-radius: ${({ theme }) => theme.radius.sm};\n background: ${({ $color, $highlighted, theme }) =>\n $highlighted\n ? highlightTint(theme.colors.white, theme)\n : getThemeColor($color, theme)};\n box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);\n font-size: 11px;\n font-weight: ${({ theme }) => theme.typography.fontWeight.bold};\n color: ${({ $symbolColor, theme }) =>\n $symbolColor ? getThemeColor($symbolColor, theme) : theme.colors.grey_1};\n`\n\nexport const LegendDescription = styled.div`\n padding: ${({ theme }) => theme.spacing.md};\n font-size: ${({ theme }) => theme.typography.textSize.bodySm};\n line-height: ${({ theme }) => theme.typography.lineHeight.normal};\n color: ${({ theme }) => theme.colors.grey_1};\n`\n"],"names":["highlightTint","base","theme","colors","primary","Wrapper","styled","div","spacing","md","typography","fontFamily","Body","sm","AxisTitle","span","textSize","caption","fontWeight","semibold","grey_2","$vertical","css","Scroll","thinScrollbar","Grid","$columns","$rows","$variant","grey_4","radius","Header","$row","grey_5","HeaderLabel","bodySm","grey_1","HeaderSublabel","Cell","$background","$highlighted","getThemeColor","white","$color","$clickable","motion","duration","fast","shadow","border","focus","Count","full","xs","Dot","More","Legend","ul","lg","LegendItem","li","Swatch","bold","$symbolColor","LegendDescription","lineHeight","normal"],"mappings":"mIAOA,MAAMA,EAAgBA,CAACC,EAAcC,IACb,sBAAAA,EAAMC,OAAOC,gBAAgBH,KAExCI,EAAUC,EAAMA,OAACC,GAAG;;;SAGxB,EAAGL,WAAYA,EAAMM,QAAQC;;;iBAGrB,EAAGP,WAAYA,EAAMQ,WAAWC;EAGpCC,EAAON,EAAMA,OAACC,GAAG;;;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cAAeA,EAAMM,QAAQ6C,MAAMnD,EAAMM,QAAQkD;;;;EAMhDC,EAAarD,EAAMA,OAACsD,EAAE;;;SAG1B,EAAG1D,WAAYA,EAAMM,QAAQK;eACvB,EAAGX,WAAYA,EAAMQ,WAAWM,SAASmB;WAC7C,EAAGjC,WAAYA,EAAMC,OAAOiB;EAG1ByC,EAASvD,EAAMA,OAACS,IAI3B;;;;;;;mBAOiB,EAAGb,WAAYA,EAAM4B,OAAOjB;gBAC/B,EAAG8B,SAAQH,eAActC,WACrCsC,EACIxC,EAAcE,EAAMC,OAAOuC,MAAOxC,GAClCuC,EAAaA,cAACE,EAAQzC;;;iBAGb,EAAGA,WAAYA,EAAMQ,WAAWQ,WAAW4C;WACjD,EAAGC,eAAc7D,WACxB6D,EAAetB,EAAAA,cAAcsB,EAAc7D,GAASA,EAAMC,OAAOiC;EAGxD4B,EAAoB1D,EAAMA,OAACC,GAAG;aAC9B,EAAGL,WAAYA,EAAMM,QAAQC;eAC3B,EAAGP,WAAYA,EAAMQ,WAAWM,SAASmB;iBACvC,EAAGjC,WAAYA,EAAMQ,WAAWuD,WAAWC;WACjD,EAAGhE,WAAYA,EAAMC,OAAOiC;"}
@@ -1,4 +1,4 @@
1
- "use strict";var e=require("styled-components");const o=e.styled.aside`
1
+ "use strict";var e=require("styled-components"),o=require("../../../theme/scrollbar.js");const t=e.styled.aside`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  width: ${({$width:e})=>e};
@@ -11,38 +11,39 @@
11
11
  box-shadow: ${({theme:e})=>e.box_shadow.card};
12
12
  font-family: ${({theme:e})=>e.typography.fontFamily};
13
13
  overflow: hidden;
14
- `,t=e.styled.div`
14
+ `,r=e.styled.div`
15
15
  display: flex;
16
16
  flex-direction: column;
17
17
  gap: ${({theme:e})=>e.spacing.sm};
18
18
  padding: ${({theme:e})=>e.spacing.md};
19
19
  padding-bottom: ${({theme:e})=>e.spacing.sm};
20
- `,r=e.styled.div`
20
+ `,i=e.styled.div`
21
21
  display: flex;
22
22
  align-items: flex-start;
23
23
  justify-content: space-between;
24
24
  gap: ${({theme:e})=>e.spacing.sm};
25
- `,i=e.styled.h3`
25
+ `,s=e.styled.h3`
26
26
  margin: 0;
27
27
  font-size: ${({theme:e})=>e.typography.textSize.bodySm};
28
28
  font-weight: ${({theme:e})=>e.typography.fontWeight.semibold};
29
29
  color: ${({theme:e})=>e.colors.grey_1};
30
- `,s=e.styled.p`
30
+ `,d=e.styled.p`
31
31
  margin: 2px 0 0;
32
32
  font-size: ${({theme:e})=>e.typography.textSize.caption};
33
33
  color: ${({theme:e})=>e.colors.grey_2};
34
- `,d=e.styled.div`
34
+ `,n=e.styled.div`
35
35
  display: flex;
36
36
  flex: 1;
37
37
  flex-direction: column;
38
38
  gap: ${({theme:e})=>e.spacing.sm};
39
39
  min-height: 0;
40
40
  overflow-y: auto;
41
+ ${o.thinScrollbar}
41
42
  padding: ${({theme:e})=>e.spacing.sm} ${({theme:e})=>e.spacing.md};
42
- `,n=e.styled.div`
43
+ `,l=e.styled.div`
43
44
  padding: ${({theme:e})=>e.spacing.sm} ${({theme:e})=>e.spacing.md};
44
45
  border-top: 1px solid ${({theme:e})=>e.colors.grey_5};
45
- `,l=e.styled.button`
46
+ `,a=e.styled.button`
46
47
  display: flex;
47
48
  flex: none;
48
49
  align-items: flex-start;
@@ -63,7 +64,7 @@
63
64
  outline: 2px solid ${({theme:e})=>e.colors.border.focus};
64
65
  outline-offset: 2px;
65
66
  }
66
- `,a=e.styled.button`
67
+ `,c=e.styled.button`
67
68
  display: flex;
68
69
  flex-direction: column;
69
70
  gap: 4px;
@@ -106,5 +107,5 @@
106
107
  outline: 2px solid ${({theme:e})=>e.colors.border.focus};
107
108
  outline-offset: 2px;
108
109
  }
109
- `;exports.CollapsedStrip=l,exports.Description=s,exports.Footer=n,exports.Header=t,exports.Item=a,exports.List=d,exports.Panel=o,exports.Title=i,exports.TitleRow=r;
110
+ `;exports.CollapsedStrip=a,exports.Description=d,exports.Footer=l,exports.Header=r,exports.Item=c,exports.List=n,exports.Panel=t,exports.Title=s,exports.TitleRow=i;
110
111
  //# sourceMappingURL=side-panel.styles.js.map