blockforce-design-system 2.0.3 → 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 (85) hide show
  1. package/MIGRATION.md +23 -19
  2. package/lib/ai/components.json +106 -1
  3. package/lib/ai/tokens.md +1 -1
  4. package/lib/commonjs/components/data-display/calendar/calendar.styles.js +14 -13
  5. package/lib/commonjs/components/data-display/calendar/calendar.styles.js.map +1 -1
  6. package/lib/commonjs/components/data-display/matrix/matrix.styles.js +22 -21
  7. package/lib/commonjs/components/data-display/matrix/matrix.styles.js.map +1 -1
  8. package/lib/commonjs/components/data-display/side-panel/side-panel.styles.js +11 -10
  9. package/lib/commonjs/components/data-display/side-panel/side-panel.styles.js.map +1 -1
  10. package/lib/commonjs/components/forms/autocomplete/autocomplete.styles.js +8 -21
  11. package/lib/commonjs/components/forms/autocomplete/autocomplete.styles.js.map +1 -1
  12. package/lib/commonjs/components/layout/drawer/drawer.styles.js +7 -5
  13. package/lib/commonjs/components/layout/drawer/drawer.styles.js.map +1 -1
  14. package/lib/commonjs/components/layout/modal/modal.styles.js +7 -18
  15. package/lib/commonjs/components/layout/modal/modal.styles.js.map +1 -1
  16. package/lib/commonjs/components/layout/popover/popover.styles.js +3 -2
  17. package/lib/commonjs/components/layout/popover/popover.styles.js.map +1 -1
  18. package/lib/commonjs/components/layout/slider/slider.styles.js +5 -26
  19. package/lib/commonjs/components/layout/slider/slider.styles.js.map +1 -1
  20. package/lib/commonjs/components/layout/table/table.comp.js +1 -1
  21. package/lib/commonjs/components/layout/table/table.comp.js.map +1 -1
  22. package/lib/commonjs/components/layout/table/table.styles.js +18 -17
  23. package/lib/commonjs/components/layout/table/table.styles.js.map +1 -1
  24. package/lib/commonjs/components/layout/table-head/table-head.comp.js +1 -1
  25. package/lib/commonjs/components/layout/table-head/table-head.comp.js.map +1 -1
  26. package/lib/commonjs/components/layout/table-head/table-head.styles.js +1 -1
  27. package/lib/commonjs/components/layout/table-head/table-head.styles.js.map +1 -1
  28. package/lib/commonjs/components/layout/table-row/table-row.comp.js +1 -1
  29. package/lib/commonjs/components/layout/table-row/table-row.comp.js.map +1 -1
  30. package/lib/commonjs/components/navigation/navigation-card/navigation-card.comp.js +2 -0
  31. package/lib/commonjs/components/navigation/navigation-card/navigation-card.comp.js.map +1 -0
  32. package/lib/commonjs/components/navigation/navigation-card/navigation-card.styles.js +47 -0
  33. package/lib/commonjs/components/navigation/navigation-card/navigation-card.styles.js.map +1 -0
  34. package/lib/commonjs/components/navigation/navigation-card/navigation-cards.comp.js +2 -0
  35. package/lib/commonjs/components/navigation/navigation-card/navigation-cards.comp.js.map +1 -0
  36. package/lib/commonjs/components/navigation/navigation-sections/navigation-sections.comp.js +2 -0
  37. package/lib/commonjs/components/navigation/navigation-sections/navigation-sections.comp.js.map +1 -0
  38. package/lib/commonjs/components/navigation/navigation-sections/navigation-sections.styles.js +91 -0
  39. package/lib/commonjs/components/navigation/navigation-sections/navigation-sections.styles.js.map +1 -0
  40. package/lib/commonjs/index.js +1 -1
  41. package/lib/commonjs/theme/scrollbar.js +39 -0
  42. package/lib/commonjs/theme/scrollbar.js.map +1 -0
  43. package/lib/index.d.ts +112 -1
  44. package/lib/module/components/data-display/calendar/calendar.styles.js +17 -16
  45. package/lib/module/components/data-display/calendar/calendar.styles.js.map +1 -1
  46. package/lib/module/components/data-display/matrix/matrix.styles.js +20 -19
  47. package/lib/module/components/data-display/matrix/matrix.styles.js.map +1 -1
  48. package/lib/module/components/data-display/side-panel/side-panel.styles.js +10 -9
  49. package/lib/module/components/data-display/side-panel/side-panel.styles.js.map +1 -1
  50. package/lib/module/components/forms/autocomplete/autocomplete.styles.js +8 -21
  51. package/lib/module/components/forms/autocomplete/autocomplete.styles.js.map +1 -1
  52. package/lib/module/components/layout/drawer/drawer.styles.js +7 -5
  53. package/lib/module/components/layout/drawer/drawer.styles.js.map +1 -1
  54. package/lib/module/components/layout/modal/modal.styles.js +7 -18
  55. package/lib/module/components/layout/modal/modal.styles.js.map +1 -1
  56. package/lib/module/components/layout/popover/popover.styles.js +2 -1
  57. package/lib/module/components/layout/popover/popover.styles.js.map +1 -1
  58. package/lib/module/components/layout/slider/slider.styles.js +5 -26
  59. package/lib/module/components/layout/slider/slider.styles.js.map +1 -1
  60. package/lib/module/components/layout/table/table.comp.js +1 -1
  61. package/lib/module/components/layout/table/table.comp.js.map +1 -1
  62. package/lib/module/components/layout/table/table.styles.js +9 -8
  63. package/lib/module/components/layout/table/table.styles.js.map +1 -1
  64. package/lib/module/components/layout/table-head/table-head.comp.js +1 -1
  65. package/lib/module/components/layout/table-head/table-head.comp.js.map +1 -1
  66. package/lib/module/components/layout/table-head/table-head.styles.js +1 -1
  67. package/lib/module/components/layout/table-head/table-head.styles.js.map +1 -1
  68. package/lib/module/components/layout/table-row/table-row.comp.js +1 -1
  69. package/lib/module/components/layout/table-row/table-row.comp.js.map +1 -1
  70. package/lib/module/components/navigation/navigation-card/navigation-card.comp.js +2 -0
  71. package/lib/module/components/navigation/navigation-card/navigation-card.comp.js.map +1 -0
  72. package/lib/module/components/navigation/navigation-card/navigation-card.styles.js +47 -0
  73. package/lib/module/components/navigation/navigation-card/navigation-card.styles.js.map +1 -0
  74. package/lib/module/components/navigation/navigation-card/navigation-cards.comp.js +2 -0
  75. package/lib/module/components/navigation/navigation-card/navigation-cards.comp.js.map +1 -0
  76. package/lib/module/components/navigation/navigation-sections/navigation-sections.comp.js +2 -0
  77. package/lib/module/components/navigation/navigation-sections/navigation-sections.comp.js.map +1 -0
  78. package/lib/module/components/navigation/navigation-sections/navigation-sections.styles.js +91 -0
  79. package/lib/module/components/navigation/navigation-sections/navigation-sections.styles.js.map +1 -0
  80. package/lib/module/index.js +1 -1
  81. package/lib/module/theme/scrollbar.js +39 -0
  82. package/lib/module/theme/scrollbar.js.map +1 -0
  83. package/llms-full.txt +87 -2
  84. package/llms.txt +15 -2
  85. package/package.json +1 -1
package/MIGRATION.md CHANGED
@@ -74,6 +74,8 @@ Em cada par, o nome antigo e o novo apontam para o mesmo componente. Um teste co
74
74
  | `Breadcrumb` | Caminho de navegação. |
75
75
  | `Stepper` | Passos de um fluxo longo. |
76
76
  | `ViewToggle` | Troca de visão do mesmo conteúdo (lista ou árvore, por exemplo). |
77
+ | `NavigationCard`, `NavigationCards` | Atalhos em card no topo de uma dash, para poucos atalhos (até uns cinco). |
78
+ | `NavigationSections` | Painel de atalhos agrupados em seções, para módulos com muitas telas. |
77
79
  | `Card` | Superfície de um bloco (`elevated`, `outlined` ou `subtle`), com borda em gradiente opcional, que pode ser animada. |
78
80
  | `StatCard` | Indicador de dashboard. |
79
81
  | `TitleCard` | Cabeçalho de card. |
@@ -321,13 +323,14 @@ O `legacyTheme` mantém todos os valores da v1.
321
323
 
322
324
  **Novos:**
323
325
 
324
- | Utilitário | O que faz |
325
- | ----------------------------------------------------------------- | ----------------------------------------------------------- |
326
- | `defaultTheme`, `GlobalStyle`, `tokens` | Agora exportados. |
327
- | `media.up/down` | Breakpoints para usar em styled-components. |
328
- | `getChartColors(theme)`, `CHART_COLOR_ORDER`, `CHART_OTHER_COLOR` | Paleta de gráfico: 7 séries, mais o cinza de "outros". |
329
- | `getContrastRatio`, `getReadableTextColor`, `mixColors` | Contraste e mistura de cores. |
330
- | `createClientTheme` | Monta o tema de cliente. Só aceita hex `#RGB` ou `#RRGGBB`. |
326
+ | Utilitário | O que faz |
327
+ | ----------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- |
328
+ | `defaultTheme`, `GlobalStyle`, `tokens` | Agora exportados. |
329
+ | `media.up/down` | Breakpoints para usar em styled-components. |
330
+ | `getChartColors(theme)`, `CHART_COLOR_ORDER`, `CHART_OTHER_COLOR` | Paleta de gráfico: 7 séries, mais o cinza de "outros". |
331
+ | `getContrastRatio`, `getReadableTextColor`, `mixColors` | Contraste e mistura de cores. |
332
+ | `createClientTheme` | Monta o tema de cliente. Só aceita hex `#RGB` ou `#RRGGBB`. |
333
+ | `thinScrollbar`, `thinScrollbarOnHover` | Barra de rolagem fina (4px, `grey_4`) para usar em styled-components, a mesma das peças do DS. A segunda só aparece com o mouse em cima. |
331
334
 
332
335
  **Corrigidos:**
333
336
 
@@ -361,18 +364,19 @@ Use para landing, slides, vídeos e HTML sem React.
361
364
 
362
365
  ### 6.1 O que muda sem mudar código
363
366
 
364
- | Onde | O que acontece | Como lidar |
365
- | ---------------------------------------------------------- | ------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- |
366
- | Button `contained` sem `backgroundColor` | O fundo vai de `secondary` para `primary`. | Passe `backgroundColor="secondary"` onde quiser manter. |
367
- | Button `loading` | Não fica mais `disabled`. | Testes com `toBeDisabled()` precisam olhar `aria-busy`. |
368
- | Fonte do tema padrão | Passa de Rubik para Inter. Sem carregar a Inter, cai na fonte do sistema. | Carregue a Inter no `index.html`, ou use `createTheme` com `typography.fontFamily` em Rubik para manter. |
369
- | Spinner sem `variant` | Vira arco fino. | Use `variant="classic"` para o anel da v1. |
370
- | Campos com `state="success"` ou `"warning"` | A borda não muda de cor. | Use `borderColor`, se precisar. |
371
- | Foco dos campos, Switch, Avatar, MonthPicker, FileDropzone | Visual novo. | Nada. |
372
- | Tabs do DS | Sempre pílula. | Nada. |
373
- | `grey_6` e sombras | Novos valores (4.3). | Nada. |
374
- | Modal (z-index 1200) | Listas próprias com z-index 1000 ficam atrás dele. | Suba essas listas para `theme.zIndex.dropdown` (1300). |
375
- | Estilos do projeto que sobrescrevem estilos internos do DS | Podem ganhar ou perder pela ordem de carregamento dos estilos. | Revise as telas. O DoughnutChart foi um caso real, já corrigido. |
367
+ | Onde | O que acontece | Como lidar |
368
+ | ------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- |
369
+ | Button `contained` sem `backgroundColor` | O fundo vai de `secondary` para `primary`. | Passe `backgroundColor="secondary"` onde quiser manter. |
370
+ | Button `loading` | Não fica mais `disabled`. | Testes com `toBeDisabled()` precisam olhar `aria-busy`. |
371
+ | Fonte do tema padrão | Passa de Rubik para Inter. Sem carregar a Inter, cai na fonte do sistema. | Carregue a Inter no `index.html`, ou use `createTheme` com `typography.fontFamily` em Rubik para manter. |
372
+ | Spinner sem `variant` | Vira arco fino. | Use `variant="classic"` para o anel da v1. |
373
+ | Campos com `state="success"` ou `"warning"` | A borda não muda de cor. | Use `borderColor`, se precisar. |
374
+ | Foco dos campos, Switch, Avatar, MonthPicker, FileDropzone | Visual novo. | Nada. |
375
+ | Tabs do DS | Sempre pílula. | Nada. |
376
+ | `grey_6` e sombras | Novos valores (4.3). | Nada. |
377
+ | Modal (z-index 1200) | Listas próprias com z-index 1000 ficam atrás dele. | Suba essas listas para `theme.zIndex.dropdown` (1300). |
378
+ | Estilos do projeto que sobrescrevem estilos internos do DS | Podem ganhar ou perder pela ordem de carregamento dos estilos. | Revise as telas. O DoughnutChart foi um caso real, já corrigido. |
379
+ | Barra de rolagem de Modal, Autocomplete, Carousel, Drawer, Popover, Table, Calendar, SidePanel e Matrix | Fica fina (4px), com polegar `grey_4` e trilho transparente. No Carousel continua aparecendo só no hover. | Nada. Para a mesma barra nas telas do projeto, use `thinScrollbar`. |
376
380
 
377
381
  ### 6.2 Compatibilidades adicionadas
378
382
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "blockforce-design-system",
3
- "version": "2.0.2",
3
+ "version": "2.0.3",
4
4
  "storybook": "https://designsystem.blockforce.ai",
5
5
  "components": [
6
6
  {
@@ -5446,6 +5446,99 @@
5446
5446
  }
5447
5447
  ]
5448
5448
  },
5449
+ {
5450
+ "name": "NavigationCard",
5451
+ "group": "Navegação",
5452
+ "description": "Atalho para outra tela, em card: ícone no círculo, título e descrição centralizados e a seta\nno canto. Use em linha, com poucos atalhos (até uns cinco), pelo NavigationCards.\nPara muitos atalhos ou atalhos em grupos, use NavigationSections; para link no meio do texto, TextLink.",
5453
+ "examples": [
5454
+ "<NavigationCard icon=\"barcode_box\" title=\"Produtos\" description=\"Total de produtos cadastrados\" onClick={goToProducts} />"
5455
+ ],
5456
+ "aliases": [],
5457
+ "docs": "https://designsystem.blockforce.ai/?path=/docs/navegação-navigationcard--docs",
5458
+ "props": [
5459
+ {
5460
+ "name": "description",
5461
+ "type": "string",
5462
+ "required": true,
5463
+ "default": null,
5464
+ "description": "Uma frase sobre o que a pessoa encontra lá.",
5465
+ "deprecated": null
5466
+ },
5467
+ {
5468
+ "name": "icon",
5469
+ "type": "IconsName",
5470
+ "valuesIn": "lib/ai/icons.txt",
5471
+ "required": true,
5472
+ "default": null,
5473
+ "description": "Ícone do atalho, em gradiente dentro de um círculo.",
5474
+ "deprecated": null
5475
+ },
5476
+ {
5477
+ "name": "title",
5478
+ "type": "string",
5479
+ "required": true,
5480
+ "default": null,
5481
+ "description": "Nome da tela para onde o atalho leva (ex. \"Produtos\").",
5482
+ "deprecated": null
5483
+ },
5484
+ {
5485
+ "name": "data-testid",
5486
+ "type": "string",
5487
+ "required": false,
5488
+ "default": "'navigation-card'",
5489
+ "description": "`data-testid` do card, para testes.",
5490
+ "deprecated": null
5491
+ },
5492
+ {
5493
+ "name": "onClick",
5494
+ "type": "(() => void)",
5495
+ "required": false,
5496
+ "default": null,
5497
+ "description": "Chamado ao clicar ou apertar Enter/Espaço. Sem ele, o card é só ilustração e não recebe foco.",
5498
+ "deprecated": null
5499
+ }
5500
+ ]
5501
+ },
5502
+ {
5503
+ "name": "NavigationCards",
5504
+ "group": "Navegação",
5505
+ "description": "Linha de atalhos em card (NavigationCard) no topo de uma dashboard. Os cards dividem a\nlargura e descem para a linha de baixo quando não cabem (mínimo de 220px cada).\nUse com poucos atalhos (até uns cinco); para muitos ou em grupos, use NavigationSections.",
5506
+ "examples": [
5507
+ "<NavigationCards\n items={[\n { key: 'products', icon: 'barcode_box', title: 'Produtos', description: 'Total de produtos cadastrados' },\n { key: 'orders', icon: 'checkbox_circle', title: 'Pedidos de compra', description: 'Registre e acompanhe pedidos' },\n ]}\n/>"
5508
+ ],
5509
+ "aliases": [],
5510
+ "docs": "https://designsystem.blockforce.ai/?path=/docs/navegação-navigationcards--docs",
5511
+ "props": [
5512
+ {
5513
+ "name": "items",
5514
+ "type": "NavigationCardsItem[]",
5515
+ "required": true,
5516
+ "default": null,
5517
+ "description": "Atalhos, na ordem em que aparecem (até uns cinco).",
5518
+ "deprecated": null
5519
+ }
5520
+ ]
5521
+ },
5522
+ {
5523
+ "name": "NavigationSections",
5524
+ "group": "Navegação",
5525
+ "description": "Painel de atalhos agrupados em seções, para o topo de módulos com muitas telas (Compliance,\nRelatórios). Cada atalho é uma linha com ícone em caixa, título, descrição de até duas\nlinhas e seta. Para poucos atalhos soltos (até uns cinco), use NavigationCards.",
5526
+ "examples": [
5527
+ "<NavigationSections\n sections={[\n {\n key: 'register',\n icon: 'file_list',\n title: 'Cadastro & Configuração',\n items: [{ key: 'providers', icon: 'user_community', title: 'Fornecedores', description: 'Gerencie e monitore seus fornecedores', onClick: goToProviders }],\n },\n ]}\n/>"
5528
+ ],
5529
+ "aliases": [],
5530
+ "docs": "https://designsystem.blockforce.ai/?path=/docs/navegação-navigationsections--docs",
5531
+ "props": [
5532
+ {
5533
+ "name": "sections",
5534
+ "type": "NavigationSection[]",
5535
+ "required": true,
5536
+ "default": null,
5537
+ "description": "Seções, de cima para baixo. Seção sem atalho não aparece.",
5538
+ "deprecated": null
5539
+ }
5540
+ ]
5541
+ },
5449
5542
  {
5450
5543
  "name": "Stepper",
5451
5544
  "group": "Navegação",
@@ -6374,6 +6467,18 @@
6374
6467
  "const Grid = styled.div`\n grid-template-columns: repeat(3, 1fr);\n ${media.down('md')} { grid-template-columns: 1fr; }\n`"
6375
6468
  ]
6376
6469
  },
6470
+ {
6471
+ "name": "thinScrollbar",
6472
+ "description": "Barra de rolagem fina, a mesma em toda área que rola (regra de ouro 12): 4px, polegar\n`grey_4` (`grey_3` no hover), trilho transparente e raio `full`. Use dentro do styled de\nqualquer contêiner com `overflow: auto`, em vez de escrever `::-webkit-scrollbar`.",
6473
+ "examples": [
6474
+ "const List = styled.ul`\n overflow-y: auto;\n ${thinScrollbar}\n`"
6475
+ ]
6476
+ },
6477
+ {
6478
+ "name": "thinScrollbarOnHover",
6479
+ "description": "Barra fina que só aparece com o mouse em cima, para faixas que rolam de lado (ex. Carousel).\nNo celular, sem hover, a rolagem continua pelo toque.",
6480
+ "examples": []
6481
+ },
6377
6482
  {
6378
6483
  "name": "getThemeColor",
6379
6484
  "description": "Resolve um nome de cor do tema para o valor CSS.\nAceita nomes (`primary`, `success`, `grey_3`), caminhos com ponto (`brand.gradient`, `stateSubtle.error`)\ne, se não achar no tema, devolve o valor como veio (ex. `transparent`).",
package/lib/ai/tokens.md CHANGED
@@ -1,4 +1,4 @@
1
- # Tokens do Blockforce Design System 2.0.2
1
+ # Tokens do Blockforce Design System 2.0.3
2
2
 
3
3
  Gerado de `src/theme` e `tokens/*.tokens.json`. Use sempre o token, nunca o valor solto.
4
4
 
@@ -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;;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AYA,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,WA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Q;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;;;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,E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EAAMC,OAAOiB;EAG1BwC,EAAStD,EAAMA,OAACS,IAI3B;;;;;;;mBAOiB,EAAGb,WAAYA,EAAM2B,OAAOhB;gBAC/B,EAAG6B,SAAQH,eAAcrC,WACrCqC,EACIvC,EAAcE,EAAMC,OAAOsC,MAAOvC,GAClCsC,EAAaA,cAACE,EAAQxC;;;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,EAA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AAMC,OAAOuC;gBAClC,EAAGC,SAAQzC,WACvBuC,gBAAcE,GAAU,UAAWzC;EAG1BqD,EAAOjD,EAAMA,OAACS,IAAI;;WAEpB,EAAGb,WAAYA,EAAMC,OAAOiB;;;;;EAO1BoC,EAASlD,EAAMA,OAACmD,EAAE;;;;SAItB,EAAGvD,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