blockforce-design-system 2.0.4 → 2.0.5

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 (33) hide show
  1. package/MIGRATION.md +33 -32
  2. package/lib/ai/components.json +46 -5
  3. package/lib/ai/tokens.md +1 -1
  4. package/lib/commonjs/components/charts/chart-legend/chart-legend.comp.js +1 -1
  5. package/lib/commonjs/components/charts/chart-legend/chart-legend.comp.js.map +1 -1
  6. package/lib/commonjs/components/charts/chart-legend/chart-legend.styles.js +22 -15
  7. package/lib/commonjs/components/charts/chart-legend/chart-legend.styles.js.map +1 -1
  8. package/lib/commonjs/components/icons/icon-box/icon-box.comp.js +1 -1
  9. package/lib/commonjs/components/icons/icon-box/icon-box.comp.js.map +1 -1
  10. package/lib/commonjs/components/icons/icon-box/icon-box.styles.js +7 -4
  11. package/lib/commonjs/components/icons/icon-box/icon-box.styles.js.map +1 -1
  12. package/lib/commonjs/components/layout/card/card.styles.js +3 -52
  13. package/lib/commonjs/components/layout/card/card.styles.js.map +1 -1
  14. package/lib/commonjs/index.js +1 -1
  15. package/lib/commonjs/theme/gradient-border.js +51 -0
  16. package/lib/commonjs/theme/gradient-border.js.map +1 -0
  17. package/lib/index.d.ts +57 -4
  18. package/lib/module/components/charts/chart-legend/chart-legend.comp.js +1 -1
  19. package/lib/module/components/charts/chart-legend/chart-legend.comp.js.map +1 -1
  20. package/lib/module/components/charts/chart-legend/chart-legend.styles.js +21 -14
  21. package/lib/module/components/charts/chart-legend/chart-legend.styles.js.map +1 -1
  22. package/lib/module/components/icons/icon-box/icon-box.comp.js +1 -1
  23. package/lib/module/components/icons/icon-box/icon-box.comp.js.map +1 -1
  24. package/lib/module/components/icons/icon-box/icon-box.styles.js +7 -4
  25. package/lib/module/components/icons/icon-box/icon-box.styles.js.map +1 -1
  26. package/lib/module/components/layout/card/card.styles.js +3 -52
  27. package/lib/module/components/layout/card/card.styles.js.map +1 -1
  28. package/lib/module/index.js +1 -1
  29. package/lib/module/theme/gradient-border.js +51 -0
  30. package/lib/module/theme/gradient-border.js.map +1 -0
  31. package/llms-full.txt +19 -1
  32. package/llms.txt +1 -1
  33. package/package.json +1 -1
package/MIGRATION.md CHANGED
@@ -57,38 +57,38 @@ Em cada par, o nome antigo e o novo apontam para o mesmo componente. Um teste co
57
57
 
58
58
  ### 3.2 Novos
59
59
 
60
- | Componente | Para que serve |
61
- | -------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- |
62
- | `IconButton` | Botão só com ícone. O `label` é obrigatório e vira o nome acessível. |
63
- | `RadioGroup` | Uma escolha entre poucas opções visíveis. |
64
- | `SearchInput` | Busca com lupa, `debounce` e botão de limpar. |
65
- | `DatePicker`, `DateRangePicker` | Uma data, ou um período com atalhos. O valor é `YYYY-MM-DD`. |
66
- | `Tag` | Etiqueta curta de status ou categoria. Tem `loading`, ícones e gradiente. |
67
- | `Toast` + `ToastProvider` + `useToast()` | Aviso rápido: `toast.success/error/warning/info(msg, { duration?, closable? })`. |
68
- | `Alert` | Aviso fixo na página. |
69
- | `EmptyState` | Área vazia, carregando ou com erro (`state`). |
70
- | `ProgressBar` | Quanto de uma tarefa já foi feito. |
71
- | `Skeleton` | Forma do conteúdo enquanto carrega. |
72
- | `ConfirmDialog` + `ConfirmDialogProvider` + `useConfirm()` | Confirmação antes de uma ação importante, com motivo opcional. |
73
- | `ActionMenu` | Menu de ações de um item. |
74
- | `Breadcrumb` | Caminho de navegação. |
75
- | `Stepper` | Passos de um fluxo longo. |
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. |
79
- | `Card` | Superfície de um bloco (`elevated`, `outlined` ou `subtle`), com borda em gradiente opcional, que pode ser animada. |
80
- | `StatCard` | Indicador de dashboard. |
81
- | `TitleCard` | Cabeçalho de card. |
82
- | `Divider` | Linha que separa blocos. |
83
- | `Calendar` | Mês com eventos por dia. |
84
- | `Matrix` | Grade de linhas × colunas: riscos, materialidade, status. |
85
- | `InfoItem` | Par rótulo e valor. |
86
- | `TintedSection` | Seção com fundo tingido na cor do tema. |
87
- | `TreeNode` (`.Title`, `.Caption`) | Nó da árvore de rastreabilidade. Com `onClick`, exige `aria-label`. |
88
- | `CanvasPanel`, `CanvasButton`, `DirectionToggle`, `FullscreenToggle` | Barra de ferramentas do canvas da árvore. |
89
- | `SidePanel` + `SelectableItem` | Lista lateral recolhível, com busca e item selecionado. |
90
- | `ChartLegend` | Legenda de gráfico. |
91
- | `IconBox` | Ícone dentro de uma caixinha. |
60
+ | Componente | Para que serve |
61
+ | -------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- |
62
+ | `IconButton` | Botão só com ícone. O `label` é obrigatório e vira o nome acessível. |
63
+ | `RadioGroup` | Uma escolha entre poucas opções visíveis. |
64
+ | `SearchInput` | Busca com lupa, `debounce` e botão de limpar. |
65
+ | `DatePicker`, `DateRangePicker` | Uma data, ou um período com atalhos. O valor é `YYYY-MM-DD`. |
66
+ | `Tag` | Etiqueta curta de status ou categoria. Tem `loading`, ícones e gradiente. |
67
+ | `Toast` + `ToastProvider` + `useToast()` | Aviso rápido: `toast.success/error/warning/info(msg, { duration?, closable? })`. |
68
+ | `Alert` | Aviso fixo na página. |
69
+ | `EmptyState` | Área vazia, carregando ou com erro (`state`). |
70
+ | `ProgressBar` | Quanto de uma tarefa já foi feito. |
71
+ | `Skeleton` | Forma do conteúdo enquanto carrega. |
72
+ | `ConfirmDialog` + `ConfirmDialogProvider` + `useConfirm()` | Confirmação antes de uma ação importante, com motivo opcional. |
73
+ | `ActionMenu` | Menu de ações de um item. |
74
+ | `Breadcrumb` | Caminho de navegação. |
75
+ | `Stepper` | Passos de um fluxo longo. |
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. |
79
+ | `Card` | Superfície de um bloco (`elevated`, `outlined` ou `subtle`), com borda em gradiente opcional, que pode ser animada. |
80
+ | `StatCard` | Indicador de dashboard. |
81
+ | `TitleCard` | Cabeçalho de card. |
82
+ | `Divider` | Linha que separa blocos. |
83
+ | `Calendar` | Mês com eventos por dia. |
84
+ | `Matrix` | Grade de linhas × colunas: riscos, materialidade, status. |
85
+ | `InfoItem` | Par rótulo e valor. |
86
+ | `TintedSection` | Seção com fundo tingido na cor do tema. |
87
+ | `TreeNode` (`.Title`, `.Caption`) | Nó da árvore de rastreabilidade. Com `onClick`, exige `aria-label`. |
88
+ | `CanvasPanel`, `CanvasButton`, `DirectionToggle`, `FullscreenToggle` | Barra de ferramentas do canvas da árvore. |
89
+ | `SidePanel` + `SelectableItem` | Lista lateral recolhível, com busca e item selecionado. |
90
+ | `ChartLegend` | Legenda de gráfico. `variant="square"` é a das roscas das dashboards: quadradinho e "Nome: valor". |
91
+ | `IconBox` | Ícone dentro de uma caixinha. `shape="circle"` e `gradientBorder` (fixa ou `"animated"`) para o ícone de agente de IA. |
92
92
 
93
93
  **Hooks novos:**
94
94
 
@@ -331,6 +331,7 @@ O `legacyTheme` mantém todos os valores da v1.
331
331
  | `getContrastRatio`, `getReadableTextColor`, `mixColors` | Contraste e mistura de cores. |
332
332
  | `createClientTheme` | Monta o tema de cliente. Só aceita hex `#RGB` ou `#RRGGBB`. |
333
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. |
334
+ | `gradientBorder({ animated, width, radius, theme })` | Borda no gradiente da marca, fixa ou girando, a mesma do `Card` e do `IconBox`. |
334
335
 
335
336
  **Corrigidos:**
336
337
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "blockforce-design-system",
3
- "version": "2.0.3",
3
+ "version": "2.0.4",
4
4
  "storybook": "https://designsystem.blockforce.ai",
5
5
  "components": [
6
6
  {
@@ -4308,9 +4308,10 @@
4308
4308
  {
4309
4309
  "name": "ChartLegend",
4310
4310
  "group": "Gráficos",
4311
- "description": "Legenda de gráfico: bolinha na cor da série, nome e valor opcional.\nUse ao lado ou abaixo de qualquer gráfico; o DoughnutChart já monta a dele com a prop `legend`.",
4311
+ "description": "Legenda de gráfico: bolinha na cor da série, nome e valor opcional.\nUse ao lado ou abaixo de qualquer gráfico; o DoughnutChart já monta a dele com a prop `legend`.\n`variant=\"square\"` é a legenda das roscas das dashboards: quadradinho e \"Nome: valor\".",
4312
4312
  "examples": [
4313
- "<ChartLegend items={[{ label: 'Aprovados', color: 'success', value: '60%' }]} />"
4313
+ "<ChartLegend items={[{ label: 'Aprovados', color: 'success', value: '60%' }]} />",
4314
+ "<ChartLegend variant=\"square\" direction=\"column\" items={[{ label: 'Pendentes', color: 'chart.purple', value: 850 }]} />"
4314
4315
  ],
4315
4316
  "aliases": [],
4316
4317
  "docs": "https://designsystem.blockforce.ai/?path=/docs/gráficos-chartlegend--docs",
@@ -4334,6 +4335,18 @@
4334
4335
  "default": "row",
4335
4336
  "description": "`row`: itens lado a lado, quebrando linha. `column`: um por linha, com o valor alinhado à direita.",
4336
4337
  "deprecated": null
4338
+ },
4339
+ {
4340
+ "name": "variant",
4341
+ "type": "ChartLegendVariant",
4342
+ "values": [
4343
+ "square",
4344
+ "dot"
4345
+ ],
4346
+ "required": false,
4347
+ "default": "dot",
4348
+ "description": "Visual da legenda.\n- `dot`: bolinha, nome e valor em destaque (à direita no `column`).\n- `square`: quadradinho e \"Nome: valor\" na mesma linha, em texto pequeno. É o das roscas das\n dashboards da plataforma (cards por status).",
4349
+ "deprecated": null
4337
4350
  }
4338
4351
  ]
4339
4352
  },
@@ -4693,9 +4706,10 @@
4693
4706
  {
4694
4707
  "name": "IconBox",
4695
4708
  "group": "Imagens e ícones",
4696
- "description": "Ícone dentro de uma caixinha com borda e sombra leve. É o ícone dos títulos de card e dos números\ndas dashboards. Sem `color`, o ícone vem no gradiente da marca.\nUse para identificar um bloco; não use como botão (use IconButton).",
4709
+ "description": "Ícone dentro de uma caixinha com borda e sombra leve. É o ícone dos títulos de card e dos números\ndas dashboards. Sem `color`, o ícone vem no gradiente da marca.\n`shape=\"circle\"` com `gradientBorder=\"animated\"` é o ícone de um agente de IA ao lado do nome dele.\nUse para identificar um bloco; não use como botão (use IconButton).",
4697
4710
  "examples": [
4698
- "<IconBox icon=\"file_list3\" />"
4711
+ "<IconBox icon=\"file_list3\" />",
4712
+ "<IconBox icon=\"robot2\" shape=\"circle\" gradientBorder=\"animated\" />"
4699
4713
  ],
4700
4714
  "aliases": [],
4701
4715
  "docs": "https://designsystem.blockforce.ai/?path=/docs/imagens-e-ícones-iconbox--docs",
@@ -4718,6 +4732,26 @@
4718
4732
  "description": "Cor do ícone (token do tema). Sem ela, o ícone usa o gradiente da marca.",
4719
4733
  "deprecated": null
4720
4734
  },
4735
+ {
4736
+ "name": "gradientBorder",
4737
+ "type": "boolean | \"animated\"",
4738
+ "required": false,
4739
+ "default": null,
4740
+ "description": "Borda no gradiente da marca, como no Card.\n- `true`: borda fixa (1px), para destacar.\n- `'animated'`: borda (2px) com as cores da marca girando devagar, para algo vivo ou em\n andamento (um agente trabalhando). Use um por tela; quem pediu menos movimento no sistema vê\n a borda parada.",
4741
+ "deprecated": null
4742
+ },
4743
+ {
4744
+ "name": "shape",
4745
+ "type": "IconBoxShape",
4746
+ "values": [
4747
+ "circle",
4748
+ "square"
4749
+ ],
4750
+ "required": false,
4751
+ "default": "square",
4752
+ "description": "Formato da caixa. `square` é o dos títulos de card e números; `circle` é para quem age\n(agente de IA, assistente), ao lado de um nome.",
4753
+ "deprecated": null
4754
+ },
4721
4755
  {
4722
4756
  "name": "size",
4723
4757
  "type": "number",
@@ -6455,6 +6489,13 @@
6455
6489
  "description": "Tema padrão Blockforce. Montado a partir dos tokens; para mudar um valor, edite `tokens/*.tokens.json`.",
6456
6490
  "examples": []
6457
6491
  },
6492
+ {
6493
+ "name": "gradientBorder",
6494
+ "description": "Borda no gradiente da marca (45°, roxo → teal), fixa ou girando. Fundo branco por dentro.\nÉ a borda do `Card` com `gradientBorder` e do `IconBox` com `gradientBorder`.\nA animada gira só uma camada com `transform`, sem repintar o conteúdo.",
6495
+ "examples": [
6496
+ "const Box = styled.div`\n ${({ theme }) => gradientBorder({ animated: true, width: 2, radius: theme.radius.full, theme })}\n`"
6497
+ ]
6498
+ },
6458
6499
  {
6459
6500
  "name": "breakpointValues",
6460
6501
  "description": "Larguras de tela em pixels, como número.",
package/lib/ai/tokens.md CHANGED
@@ -1,4 +1,4 @@
1
- # Tokens do Blockforce Design System 2.0.3
1
+ # Tokens do Blockforce Design System 2.0.4
2
2
 
3
3
  Gerado de `src/theme` e `tokens/*.tokens.json`. Use sempre o token, nunca o valor solto.
4
4
 
@@ -1,2 +1,2 @@
1
- "use strict";var e=require("react/jsx-runtime"),r=require("./chart-legend.styles.js");exports.ChartLegend=({items:i,direction:t="row"})=>e.jsx(r.List,{$direction:t,"data-testid":"chart-legend",children:i.map((i=>e.jsxs(r.Item,{$direction:t,children:[e.jsx(r.Dot,{$color:i.color,"aria-hidden":"true"}),e.jsx(r.Label,{title:i.label,children:i.label}),void 0!==i.value&&e.jsx(r.Value,{$direction:t,children:i.value})]},i.label)))});
1
+ "use strict";var e=require("react/jsx-runtime"),r=require("./chart-legend.styles.js");exports.ChartLegend=({items:a,direction:l="row",variant:i="dot"})=>e.jsx(r.List,{$direction:l,$variant:i,"data-testid":"chart-legend",children:a.map((a=>e.jsxs(r.Item,{$variant:i,children:[e.jsx(r.Marker,{$color:a.color,$variant:i,"aria-hidden":"true"}),"square"===i?e.jsxs(r.Label,{title:a.label,children:[a.label,void 0!==a.value&&e.jsxs(e.Fragment,{children:[": ",a.value]})]}):e.jsxs(e.Fragment,{children:[e.jsx(r.Label,{title:a.label,children:a.label}),void 0!==a.value&&e.jsx(r.Value,{$direction:l,children:a.value})]})]},a.label)))});
2
2
  //# sourceMappingURL=chart-legend.comp.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"chart-legend.comp.js","sources":["../../../../../src/components/charts/chart-legend/chart-legend.comp.tsx"],"sourcesContent":["import { ChartLegendProps } from './chart-legend.types'\n\nimport * as Styles from './chart-legend.styles'\n\n/**\n * Legenda de gráfico: bolinha na cor da série, nome e valor opcional.\n * Use ao lado ou abaixo de qualquer gráfico; o DoughnutChart já monta a dele com a prop `legend`.\n * @example <ChartLegend items={[{ label: 'Aprovados', color: 'success', value: '60%' }]} />\n */\nexport const ChartLegend = ({ items, direction = 'row' }: ChartLegendProps) => (\n <Styles.List $direction={direction} data-testid=\"chart-legend\">\n {items.map((item) => (\n <Styles.Item key={item.label} $direction={direction}>\n <Styles.Dot $color={item.color} aria-hidden=\"true\" />\n <Styles.Label title={item.label}>{item.label}</Styles.Label>\n {item.value !== undefined && (\n <Styles.Value $direction={direction}>{item.value}</Styles.Value>\n )}\n </Styles.Item>\n ))}\n </Styles.List>\n)\n"],"names":["ChartLegend","items","direction","_jsx","Styles","$direction","children","map","item","_jsxs","$color","color","jsx","title","label","undefined","value"],"mappings":"0GAS2BA,EAAGC,QAAOC,YAAY,SAC/CC,EAAAA,IAACC,EAAAA,KAAW,CAAAC,WAAaH,EAAS,cAAc,eAC7CI,SAAAL,EAAMM,KAAKC,GACVC,EAAAA,KAACL,EAAAA,iBAAyCF,EAASI,SAAA,CACjDH,MAACC,MAAU,CAAAM,OAASF,EAAKG,MAAmB,cAAA,SAC5CR,EAAAS,IAACR,SAAaS,MAAOL,EAAKM,eAAQN,EAAKM,aACvBC,IAAfP,EAAKQ,OACJb,EAAAA,IAACC,EAAAA,MAAyB,CAAAC,WAAAH,EAAYI,SAAAE,EAAKQ,UAJ7BR,EAAKM"}
1
+ {"version":3,"file":"chart-legend.comp.js","sources":["../../../../../src/components/charts/chart-legend/chart-legend.comp.tsx"],"sourcesContent":["import { ChartLegendProps } from './chart-legend.types'\n\nimport * as Styles from './chart-legend.styles'\n\n/**\n * Legenda de gráfico: bolinha na cor da série, nome e valor opcional.\n * Use ao lado ou abaixo de qualquer gráfico; o DoughnutChart já monta a dele com a prop `legend`.\n * `variant=\"square\"` é a legenda das roscas das dashboards: quadradinho e \"Nome: valor\".\n * @example <ChartLegend items={[{ label: 'Aprovados', color: 'success', value: '60%' }]} />\n * @example <ChartLegend variant=\"square\" direction=\"column\" items={[{ label: 'Pendentes', color: 'chart.purple', value: 850 }]} />\n */\nexport const ChartLegend = ({\n items,\n direction = 'row',\n variant = 'dot',\n}: ChartLegendProps) => (\n <Styles.List\n $direction={direction}\n $variant={variant}\n data-testid=\"chart-legend\"\n >\n {items.map((item) => (\n <Styles.Item key={item.label} $variant={variant}>\n <Styles.Marker\n $color={item.color}\n $variant={variant}\n aria-hidden=\"true\"\n />\n {variant === 'square' ? (\n <Styles.Label title={item.label}>\n {item.label}\n {item.value !== undefined && <>: {item.value}</>}\n </Styles.Label>\n ) : (\n <>\n <Styles.Label title={item.label}>{item.label}</Styles.Label>\n {item.value !== undefined && (\n <Styles.Value $direction={direction}>{item.value}</Styles.Value>\n )}\n </>\n )}\n </Styles.Item>\n ))}\n </Styles.List>\n)\n"],"names":["ChartLegend","items","direction","variant","_jsx","Styles","$direction","$variant","children","map","item","_jsxs","jsx","color","title","label","undefined","value","jsxs","_Fragment"],"mappings":"0GAW2BA,EACzBC,QACAC,YAAY,MACZC,UAAU,SAEVC,EAAAA,IAACC,EAAAA,KACa,CAAAC,WAAAJ,EACFK,SAAAJ,gBACE,eAAcK,SAEzBP,EAAMQ,KAAKC,GACVC,EAAAA,KAACN,EAAAA,KAAuC,CAAAE,SAAAJ,YACtCC,EAACQ,IAAAP,iBACSK,EAAKG,MAAKN,SACRJ,EAAO,cACL,SAED,WAAZA,EACCQ,EAAAA,KAACN,EAAAA,MAAY,CAACS,MAAOJ,EAAKK,MAAKP,SAAA,CAC5BE,EAAKK,WACUC,IAAfN,EAAKO,OAAuBN,kCAAKD,EAAKO,YAGzCN,EAAAO,KAAAC,WAAA,CAAAX,SAAA,CACEJ,EAACQ,IAAAP,QAAY,CAACS,MAAOJ,EAAKK,MAAQP,SAAAE,EAAKK,aACvBC,IAAfN,EAAKO,OACJb,EAAAA,IAACC,EAAAA,MAAyB,CAAAC,WAAAJ,EAAYM,SAAAE,EAAKO,aAfjCP,EAAKK"}
@@ -1,40 +1,47 @@
1
- "use strict";var e=require("styled-components"),t=require("../../../theme/theme.util.js");const o=e.styled.ul`
1
+ "use strict";var e=require("styled-components"),t=require("../../../theme/theme.util.js");const s=e.styled.ul`
2
2
  display: flex;
3
3
  margin: 0;
4
4
  padding: 0;
5
5
  list-style: none;
6
6
  font-family: ${({theme:e})=>e.typography.fontFamily};
7
7
 
8
- ${({$direction:t,theme:o})=>"row"===t?e.css`
8
+ ${({$direction:t,$variant:s,theme:i})=>"row"===t?e.css`
9
9
  flex-wrap: wrap;
10
- gap: ${o.spacing.xs} ${o.spacing.md};
10
+ gap: ${i.spacing.xs} ${i.spacing.md};
11
11
  `:e.css`
12
12
  flex-direction: column;
13
- gap: ${o.spacing.sm};
13
+ gap: ${"square"===s?i.spacing.xs:i.spacing.sm};
14
14
  `}
15
- `,s=e.styled.li`
15
+ `,i=e.styled.li`
16
16
  display: flex;
17
17
  align-items: center;
18
18
  gap: ${({theme:e})=>e.spacing.sm};
19
19
  min-width: 0;
20
- font-size: ${({theme:e})=>e.typography.textSize.bodySm};
21
- color: ${({theme:e})=>e.colors.grey_2};
22
- `,i=e.styled.span`
20
+ font-size: ${({$variant:e,theme:t})=>"square"===e?t.typography.textSize.caption:t.typography.textSize.bodySm};
21
+ color: ${({$variant:e,theme:t})=>"square"===e?t.colors.grey_1:t.colors.grey_2};
22
+ `,r=e.styled.span`
23
23
  flex: none;
24
- width: 10px;
25
- height: 10px;
26
- border-radius: 50%;
27
- background: ${({$color:e,theme:o})=>t.getThemeColor(e,o)};
28
- `,l=e.styled.span`
24
+ background: ${({$color:e,theme:s})=>t.getThemeColor(e,s)};
25
+
26
+ ${({$variant:t,theme:s})=>"square"===t?e.css`
27
+ width: ${s.spacing.md};
28
+ height: ${s.spacing.md};
29
+ border-radius: ${s.radius.sm};
30
+ `:e.css`
31
+ width: 10px;
32
+ height: 10px;
33
+ border-radius: 50%;
34
+ `}
35
+ `,a=e.styled.span`
29
36
  min-width: 0;
30
37
  overflow: hidden;
31
38
  text-overflow: ellipsis;
32
39
  white-space: nowrap;
33
- `,n=e.styled.span`
40
+ `,o=e.styled.span`
34
41
  flex: none;
35
42
  margin-left: ${({$direction:e})=>"column"===e?"auto":"0"};
36
43
  padding-left: ${({theme:e})=>e.spacing.sm};
37
44
  font-weight: ${({theme:e})=>e.typography.fontWeight.semibold};
38
45
  color: ${({theme:e})=>e.colors.grey_1};
39
- `;exports.Dot=i,exports.Item=s,exports.Label=l,exports.List=o,exports.Value=n;
46
+ `;exports.Item=i,exports.Label=a,exports.List=s,exports.Marker=r,exports.Value=o;
40
47
  //# sourceMappingURL=chart-legend.styles.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"chart-legend.styles.js","sources":["../../../../../src/components/charts/chart-legend/chart-legend.styles.tsx"],"sourcesContent":["import { css, styled } from 'styled-components'\n\nimport { getThemeColor } from '../../../theme'\n\nexport const List = styled.ul<{ $direction: 'row' | 'column' }>`\n display: flex;\n margin: 0;\n padding: 0;\n list-style: none;\n font-family: ${({ theme }) => theme.typography.fontFamily};\n\n ${({ $direction, theme }) =>\n $direction === 'row'\n ? css`\n flex-wrap: wrap;\n gap: ${theme.spacing.xs} ${theme.spacing.md};\n `\n : css`\n flex-direction: column;\n gap: ${theme.spacing.sm};\n `}\n`\n\nexport const Item = styled.li<{ $direction: 'row' | 'column' }>`\n display: flex;\n align-items: center;\n gap: ${({ theme }) => theme.spacing.sm};\n min-width: 0;\n font-size: ${({ theme }) => theme.typography.textSize.bodySm};\n color: ${({ theme }) => theme.colors.grey_2};\n`\n\nexport const Dot = styled.span<{ $color: string }>`\n flex: none;\n width: 10px;\n height: 10px;\n border-radius: 50%;\n background: ${({ $color, theme }) => getThemeColor($color, theme)};\n`\n\nexport const Label = styled.span`\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n`\n\nexport const Value = styled.span<{ $direction: 'row' | 'column' }>`\n flex: none;\n margin-left: ${({ $direction }) => ($direction === 'column' ? 'auto' : '0')};\n padding-left: ${({ theme }) => theme.spacing.sm};\n font-weight: ${({ theme }) => theme.typography.fontWeight.semibold};\n color: ${({ theme }) => theme.colors.grey_1};\n`\n"],"names":["List","styled","ul","theme","typography","fontFamily","$direction","css","spacing","xs","md","sm","Item","li","textSize","bodySm","colors","grey_2","Dot","span","$color","getThemeColor","Label","Value","fontWeight","semibold","grey_1"],"mappings":"0FAIaA,MAAAA,EAAOC,EAAMA,OAACC,EAAoC;;;;;iBAK9C,EAAGC,WAAYA,EAAMC,WAAWC;;IAE7C,EAAGC,aAAYH,WACA,QAAfG,EACIC,KAAG;;iBAEMJ,EAAMK,QAAQC,MAAMN,EAAMK,QAAQE;UAE3CH,EAAAA,GAAG;;iBAEMJ,EAAMK,QAAQG;;EAIlBC,EAAOX,EAAMA,OAACY,EAAoC;;;SAGtD,EAAGV,WAAYA,EAAMK,QAAQG;;eAEvB,EAAGR,WAAYA,EAAMC,WAAWU,SAASC;WAC7C,EAAGZ,WAAYA,EAAMa,OAAOC;EAG1BC,EAAMjB,EAAMA,OAACkB,IAAwB;;;;;gBAKlC,EAAGC,SAAQjB,WAAYkB,EAAaA,cAACD,EAAQjB;EAGhDmB,EAAQrB,EAAMA,OAACkB,IAAI;;;;;EAOnBI,EAAQtB,EAAMA,OAACkB,IAAsC;;iBAEjD,EAAGb,gBAAiC,WAAfA,EAA0B,OAAS;kBACvD,EAAGH,WAAYA,EAAMK,QAAQG;iBAC9B,EAAGR,WAAYA,EAAMC,WAAWoB,WAAWC;WACjD,EAAGtB,WAAYA,EAAMa,OAAOU;"}
1
+ {"version":3,"file":"chart-legend.styles.js","sources":["../../../../../src/components/charts/chart-legend/chart-legend.styles.tsx"],"sourcesContent":["import { css, styled } from 'styled-components'\n\nimport { getThemeColor } from '../../../theme'\n\nimport { ChartLegendVariant } from './chart-legend.types'\n\nexport const List = styled.ul<{\n $direction: 'row' | 'column'\n $variant: ChartLegendVariant\n}>`\n display: flex;\n margin: 0;\n padding: 0;\n list-style: none;\n font-family: ${({ theme }) => theme.typography.fontFamily};\n\n ${({ $direction, $variant, theme }) =>\n $direction === 'row'\n ? css`\n flex-wrap: wrap;\n gap: ${theme.spacing.xs} ${theme.spacing.md};\n `\n : css`\n flex-direction: column;\n gap: ${$variant === 'square' ? theme.spacing.xs : theme.spacing.sm};\n `}\n`\n\nexport const Item = styled.li<{ $variant: ChartLegendVariant }>`\n display: flex;\n align-items: center;\n gap: ${({ theme }) => theme.spacing.sm};\n min-width: 0;\n font-size: ${({ $variant, theme }) =>\n $variant === 'square'\n ? theme.typography.textSize.caption\n : theme.typography.textSize.bodySm};\n color: ${({ $variant, theme }) =>\n $variant === 'square' ? theme.colors.grey_1 : theme.colors.grey_2};\n`\n\nexport const Marker = styled.span<{\n $color: string\n $variant: ChartLegendVariant\n}>`\n flex: none;\n background: ${({ $color, theme }) => getThemeColor($color, theme)};\n\n ${({ $variant, theme }) =>\n $variant === 'square'\n ? css`\n width: ${theme.spacing.md};\n height: ${theme.spacing.md};\n border-radius: ${theme.radius.sm};\n `\n : css`\n width: 10px;\n height: 10px;\n border-radius: 50%;\n `}\n`\n\nexport const Label = styled.span`\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n`\n\nexport const Value = styled.span<{ $direction: 'row' | 'column' }>`\n flex: none;\n margin-left: ${({ $direction }) => ($direction === 'column' ? 'auto' : '0')};\n padding-left: ${({ theme }) => theme.spacing.sm};\n font-weight: ${({ theme }) => theme.typography.fontWeight.semibold};\n color: ${({ theme }) => theme.colors.grey_1};\n`\n"],"names":["List","styled","ul","theme","typography","fontFamily","$direction","$variant","css","spacing","xs","md","sm","Item","li","textSize","caption","bodySm","colors","grey_1","grey_2","Marker","span","$color","getThemeColor","radius","Label","Value","fontWeight","semibold"],"mappings":"0FAMaA,MAAAA,EAAOC,EAAMA,OAACC,EAGzB;;;;;iBAKe,EAAGC,WAAYA,EAAMC,WAAWC;;IAE7C,EAAGC,aAAYC,WAAUJ,WACV,QAAfG,EACIE,KAAG;;iBAEML,EAAMM,QAAQC,MAAMP,EAAMM,QAAQE;UAE3CH,EAAAA,GAAG;;iBAEmB,WAAbD,EAAwBJ,EAAMM,QAAQC,GAAKP,EAAMM,QAAQG;;EAI7DC,EAAOZ,EAAMA,OAACa,EAAoC;;;SAGtD,EAAGX,WAAYA,EAAMM,QAAQG;;eAEvB,EAAGL,WAAUJ,WACX,WAAbI,EACIJ,EAAMC,WAAWW,SAASC,QAC1Bb,EAAMC,WAAWW,SAASE;WACvB,EAAGV,WAAUJ,WACP,WAAbI,EAAwBJ,EAAMe,OAAOC,OAAShB,EAAMe,OAAOE;EAGlDC,EAASpB,EAAMA,OAACqB,IAG3B;;gBAEc,EAAGC,SAAQpB,WAAYqB,EAAaA,cAACD,EAAQpB;;IAEzD,EAAGI,WAAUJ,WACA,WAAbI,EACIC,KAAG;mBACQL,EAAMM,QAAQE;oBACbR,EAAMM,QAAQE;2BACPR,EAAMsB,OAAOb;UAEhCJ,EAAAA,GAAG;;;;;EAOEkB,EAAQzB,EAAMA,OAACqB,IAAI;;;;;EAOnBK,EAAQ1B,EAAMA,OAACqB,IAAsC;;iBAEjD,EAAGhB,gBAAiC,WAAfA,EAA0B,OAAS;kBACvD,EAAGH,WAAYA,EAAMM,QAAQG;iBAC9B,EAAGT,WAAYA,EAAMC,WAAWwB,WAAWC;WACjD,EAAG1B,WAAYA,EAAMe,OAAOC;"}
@@ -1,2 +1,2 @@
1
- "use strict";var e=require("react/jsx-runtime"),o=require("./icon-box.styles.js"),r=require("../icon/icon.comp.js");exports.IconBox=({icon:i,color:s,size:c=24})=>e.jsx(o.Wrapper,{"data-testid":"icon-box",children:s?e.jsx(r.Icon,{name:i,size:c,color:s}):e.jsx(r.Icon,{name:i,size:c,gradient:!0})});
1
+ "use strict";var e=require("react/jsx-runtime"),r=require("./icon-box.styles.js"),o=require("../icon/icon.comp.js");exports.IconBox=({icon:i,color:s,size:n=24,shape:c="square",gradientBorder:a})=>e.jsx(r.Wrapper,{"data-testid":"icon-box",$shape:c,$gradientBorder:a,children:s?e.jsx(o.Icon,{name:i,size:n,color:s}):e.jsx(o.Icon,{name:i,size:n,gradient:!0})});
2
2
  //# sourceMappingURL=icon-box.comp.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"icon-box.comp.js","sources":["../../../../../src/components/icons/icon-box/icon-box.comp.tsx"],"sourcesContent":["import { Icon } from '../icon'\n\nimport { IconBoxProps } from './icon-box.types'\n\nimport * as Styles from './icon-box.styles'\n\n/**\n * Ícone dentro de uma caixinha com borda e sombra leve. É o ícone dos títulos de card e dos números\n * das dashboards. Sem `color`, o ícone vem no gradiente da marca.\n * Use para identificar um bloco; não use como botão (use IconButton).\n * @example <IconBox icon=\"file_list3\" />\n */\nexport const IconBox = ({ icon, color, size = 24 }: IconBoxProps) => (\n <Styles.Wrapper data-testid=\"icon-box\">\n {color ? (\n <Icon name={icon} size={size} color={color} />\n ) : (\n <Icon name={icon} size={size} gradient />\n )}\n </Styles.Wrapper>\n)\n"],"names":["IconBox","icon","color","size","_jsx","Styles","children","Icon","name","jsx","gradient"],"mappings":"oIAYuBA,EAAGC,OAAMC,QAAOC,OAAO,MAC5CC,EAAAA,IAACC,EAAAA,QAA2B,CAAA,cAAA,WACzBC,SAAAJ,EACCE,MAACG,OAAI,CAACC,KAAMP,EAAME,KAAMA,EAAMD,MAAOA,IAErCE,EAACK,IAAAF,OAAK,CAAAC,KAAMP,EAAME,KAAMA,EAAMO,UAAQ"}
1
+ {"version":3,"file":"icon-box.comp.js","sources":["../../../../../src/components/icons/icon-box/icon-box.comp.tsx"],"sourcesContent":["import { Icon } from '../icon'\n\nimport { IconBoxProps } from './icon-box.types'\n\nimport * as Styles from './icon-box.styles'\n\n/**\n * Ícone dentro de uma caixinha com borda e sombra leve. É o ícone dos títulos de card e dos números\n * das dashboards. Sem `color`, o ícone vem no gradiente da marca.\n * `shape=\"circle\"` com `gradientBorder=\"animated\"` é o ícone de um agente de IA ao lado do nome dele.\n * Use para identificar um bloco; não use como botão (use IconButton).\n * @example <IconBox icon=\"file_list3\" />\n * @example <IconBox icon=\"robot2\" shape=\"circle\" gradientBorder=\"animated\" />\n */\nexport const IconBox = ({\n icon,\n color,\n size = 24,\n shape = 'square',\n gradientBorder,\n}: IconBoxProps) => (\n <Styles.Wrapper\n data-testid=\"icon-box\"\n $shape={shape}\n $gradientBorder={gradientBorder}\n >\n {color ? (\n <Icon name={icon} size={size} color={color} />\n ) : (\n <Icon name={icon} size={size} gradient />\n )}\n </Styles.Wrapper>\n)\n"],"names":["IconBox","icon","color","size","shape","gradientBorder","_jsx","Styles","$gradientBorder","children","Icon","name","gradient"],"mappings":"oIAcuBA,EACrBC,OACAC,QACAC,OAAO,GACPC,QAAQ,SACRC,oBAEAC,EAAAA,IAACC,EAAAA,QACa,CAAA,cAAA,kBACJH,EAAKI,gBACIH,EAAcI,SAE9BP,EACCI,MAACI,OAAI,CAACC,KAAMV,EAAME,KAAMA,EAAMD,MAAOA,IAErCI,MAACI,OAAI,CAACC,KAAMV,EAAME,KAAMA,EAAMS,UAAQ"}
@@ -1,10 +1,13 @@
1
- "use strict";var e=require("styled-components"),t=require("../../layout/box/box.comp.js"),r=require("../../../theme/theme.util.js");const o=e.styled(t.Box)`
1
+ "use strict";var e=require("styled-components"),r=require("../../../theme/gradient-border.js"),t=require("../../layout/box/box.comp.js"),i=require("../../../theme/theme.util.js");const d=e.styled(t.Box)`
2
2
  flex: none;
3
3
  align-items: center;
4
4
  justify-content: center;
5
5
  padding: 10px;
6
- border: 1px solid ${({theme:e})=>r.getThemeColor("grey_5",e)};
7
- border-radius: ${({theme:e})=>e.radius.lg};
6
+ border-radius: ${({$shape:e,theme:r})=>"circle"===e?r.radius.full:r.radius.lg};
8
7
  box-shadow: ${({theme:e})=>e.box_shadow.input};
9
- `;exports.Wrapper=o;
8
+
9
+ ${({$gradientBorder:t,$shape:d,theme:s})=>t?r.gradientBorder({animated:"animated"===t,width:"animated"===t?2:1,radius:"circle"===d?s.radius.full:s.radius.lg,theme:s}):e.css`
10
+ border: 1px solid ${i.getThemeColor("grey_5",s)};
11
+ `}
12
+ `;exports.Wrapper=d;
10
13
  //# sourceMappingURL=icon-box.styles.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"icon-box.styles.js","sources":["../../../../../src/components/icons/icon-box/icon-box.styles.tsx"],"sourcesContent":["import { styled } from 'styled-components'\n\nimport { getThemeColor } from '../../../theme'\nimport { Box } from '../../layout/box'\n\nexport const Wrapper = styled(Box)`\n flex: none;\n align-items: center;\n justify-content: center;\n padding: 10px;\n border: 1px solid ${({ theme }) => getThemeColor('grey_5', theme)};\n border-radius: ${({ theme }) => theme.radius.lg};\n box-shadow: ${({ theme }) => theme.box_shadow.input};\n`\n"],"names":["Wrapper","styled","Box","theme","getThemeColor","radius","lg","box_shadow","input"],"mappings":"0IAKaA,EAAUC,EAAAA,OAAOC,EAAAA,IAAI;;;;;sBAKZ,EAAGC,WAAYC,EAAaA,cAAC,SAAUD;mBAC1C,EAAGA,WAAYA,EAAME,OAAOC;gBAC/B,EAAGH,WAAYA,EAAMI,WAAWC;"}
1
+ {"version":3,"file":"icon-box.styles.js","sources":["../../../../../src/components/icons/icon-box/icon-box.styles.tsx"],"sourcesContent":["import { css, styled } from 'styled-components'\n\nimport { getThemeColor } from '../../../theme'\nimport { gradientBorder } from '../../../theme/gradient-border'\nimport { Box } from '../../layout/box'\n\nimport { IconBoxShape } from './icon-box.types'\n\nexport const Wrapper = styled(Box)<{\n $shape: IconBoxShape\n $gradientBorder?: boolean | 'animated'\n}>`\n flex: none;\n align-items: center;\n justify-content: center;\n padding: 10px;\n border-radius: ${({ $shape, theme }) =>\n $shape === 'circle' ? theme.radius.full : theme.radius.lg};\n box-shadow: ${({ theme }) => theme.box_shadow.input};\n\n ${({ $gradientBorder, $shape, theme }) =>\n $gradientBorder\n ? gradientBorder({\n animated: $gradientBorder === 'animated',\n width: $gradientBorder === 'animated' ? 2 : 1,\n radius: $shape === 'circle' ? theme.radius.full : theme.radius.lg,\n theme,\n })\n : css`\n border: 1px solid ${getThemeColor('grey_5', theme)};\n `}\n`\n"],"names":["Wrapper","styled","Box","$shape","theme","radius","full","lg","box_shadow","input","$gradientBorder","gradientBorder","animated","width","css","getThemeColor"],"mappings":"yLAQaA,EAAUC,EAAAA,OAAOC,EAAAA,IAG5B;;;;;mBAKiB,EAAGC,SAAQC,WACf,WAAXD,EAAsBC,EAAMC,OAAOC,KAAOF,EAAMC,OAAOE;gBAC3C,EAAGH,WAAYA,EAAMI,WAAWC;;IAE5C,EAAGC,kBAAiBP,SAAQC,WAC5BM,EACIC,EAAAA,eAAe,CACbC,SAA8B,aAApBF,EACVG,MAA2B,aAApBH,EAAiC,EAAI,EAC5CL,OAAmB,WAAXF,EAAsBC,EAAMC,OAAOC,KAAOF,EAAMC,OAAOE,GAC/DH,UAEFU,EAAAA,GAAG;8BACmBC,EAAaA,cAAC,SAAUX;;"}
@@ -1,53 +1,4 @@
1
- "use strict";var o=require("styled-components"),r=require("../box/box.comp.js");const e=o.keyframes`
2
- to {
3
- transform: translate(-50%, -50%) rotate(360deg);
4
- }
5
- `,t=o.styled(r.Box)`
6
- ${({$animated:r,$width:t,$radius:a,theme:n})=>r?o.css`
7
- position: relative;
8
- isolation: isolate;
9
- overflow: hidden;
10
- border: none;
11
- background: transparent;
12
-
13
- &::before {
14
- content: '';
15
- position: absolute;
16
- top: 50%;
17
- left: 50%;
18
- z-index: -2;
19
- width: max(250%, 1200px);
20
- aspect-ratio: 1;
21
- background: conic-gradient(
22
- ${n.colors.primary},
23
- ${n.colors.secondary},
24
- ${n.colors.primary}
25
- );
26
- transform: translate(-50%, -50%);
27
- animation: ${e} 4s linear infinite;
28
- will-change: transform;
29
- }
30
-
31
- &::after {
32
- content: '';
33
- position: absolute;
34
- inset: ${t}px;
35
- z-index: -1;
36
- border-radius: max(0px, calc(${a} - ${t}px));
37
- background: ${n.colors.white};
38
- }
39
-
40
- @media (prefers-reduced-motion: reduce) {
41
- &::before {
42
- animation: none;
43
- }
44
- }
45
- `:o.css`
46
- border: ${t}px solid transparent;
47
- background:
48
- linear-gradient(${n.colors.white}, ${n.colors.white})
49
- padding-box,
50
- ${n.colors.brand.gradient} border-box;
51
- `}
52
- `;exports.GradientCard=t;
1
+ "use strict";var e=require("styled-components"),r=require("../../../theme/gradient-border.js"),t=require("../box/box.comp.js");const d=e.styled(t.Box)`
2
+ ${({$animated:e,$width:t,$radius:d,theme:i})=>r.gradientBorder({animated:e,width:t,radius:d,theme:i})}
3
+ `;exports.GradientCard=d;
53
4
  //# sourceMappingURL=card.styles.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"card.styles.js","sources":["../../../../../src/components/layout/card/card.styles.tsx"],"sourcesContent":["import { css, keyframes, styled } from 'styled-components'\n\nimport { Box } from '../box'\n\nconst spin = keyframes`\n to {\n transform: translate(-50%, -50%) rotate(360deg);\n }\n`\n\nexport const GradientCard = styled(Box)<{\n $animated: boolean\n $width: number\n $radius: string\n}>`\n ${({ $animated, $width, $radius, theme }) =>\n $animated\n ? css`\n position: relative;\n isolation: isolate;\n overflow: hidden;\n border: none;\n background: transparent;\n\n &::before {\n content: '';\n position: absolute;\n top: 50%;\n left: 50%;\n z-index: -2;\n width: max(250%, 1200px);\n aspect-ratio: 1;\n background: conic-gradient(\n ${theme.colors.primary},\n ${theme.colors.secondary},\n ${theme.colors.primary}\n );\n transform: translate(-50%, -50%);\n animation: ${spin} 4s linear infinite;\n will-change: transform;\n }\n\n &::after {\n content: '';\n position: absolute;\n inset: ${$width}px;\n z-index: -1;\n border-radius: max(0px, calc(${$radius} - ${$width}px));\n background: ${theme.colors.white};\n }\n\n @media (prefers-reduced-motion: reduce) {\n &::before {\n animation: none;\n }\n }\n `\n : css`\n border: ${$width}px solid transparent;\n background:\n linear-gradient(${theme.colors.white}, ${theme.colors.white})\n padding-box,\n ${theme.colors.brand.gradient} border-box;\n `}\n`\n"],"names":["spin","keyframes","GradientCard","styled","Box","$animated","$width","$radius","theme","css","colors","primary","secondary","white","brand","gradient"],"mappings":"gFAIA,MAAMA,EAAOC,EAAAA,SAAS;;;;EAMTC,EAAeC,EAAAA,OAAOC,EAAAA,IAIjC;IACE,EAAGC,YAAWC,SAAQC,UAASC,WAC/BH,EACII,EAAAA,GAAG;;;;;;;;;;;;;;;;gBAgBKD,EAAME,OAAOC;gBACbH,EAAME,OAAOE;gBACbJ,EAAME,OAAOC;;;yBAGJX;;;;;;;qBAOJM;;2CAEsBC,OAAaD;0BAC9BE,EAAME,OAAOG;;;;;;;;UAS/BJ,EAAAA,GAAG;oBACSH;;8BAEUE,EAAME,OAAOG,UAAUL,EAAME,OAAOG;;cAEpDL,EAAME,OAAOI,MAAMC;;"}
1
+ {"version":3,"file":"card.styles.js","sources":["../../../../../src/components/layout/card/card.styles.tsx"],"sourcesContent":["import { styled } from 'styled-components'\n\nimport { gradientBorder } from '../../../theme/gradient-border'\nimport { Box } from '../box'\n\nexport const GradientCard = styled(Box)<{\n $animated: boolean\n $width: number\n $radius: string\n}>`\n ${({ $animated, $width, $radius, theme }) =>\n gradientBorder({\n animated: $animated,\n width: $width,\n radius: $radius,\n theme,\n })}\n`\n"],"names":["GradientCard","styled","Box","$animated","$width","$radius","theme","gradientBorder","animated","width","radius"],"mappings":"qIAKaA,EAAeC,EAAAA,OAAOC,EAAAA,IAIjC;IACE,EAAGC,YAAWC,SAAQC,UAASC,WAC/BC,iBAAe,CACbC,SAAUL,EACVM,MAAOL,EACPM,OAAQL,EACRC;"}
@@ -1,2 +1,2 @@
1
- "use strict";var e=require("./components/buttons/button/button.comp.js"),o=require("./components/buttons/icon-button/icon-button.comp.js"),t=require("./components/charts/doughnut-chart/doughnut-chart.comp.js"),r=require("./components/charts/bar-chart/bar-chart.comp.js"),s=require("./components/charts/line-chart/line-chart.comp.js"),i=require("./components/charts/treemap-chart/treemap-chart.comp.js"),a=require("./components/charts/chart-legend/chart-legend.comp.js"),n=require("./components/data-display/calendar/calendar.comp.js"),p=require("./components/data-display/info-item/info-item.comp.js"),c=require("./components/data-display/matrix/matrix.comp.js"),m=require("./components/data-display/tinted-section/tinted-section.comp.js"),l=require("./components/data-display/tree-node/tree-node.comp.js"),u=require("./components/data-display/canvas-controls/canvas-controls.comp.js"),x=require("./components/data-display/side-panel/side-panel.comp.js"),d=require("./components/feedback/spinner/spinner.comp.js"),g=require("./components/feedback/tooltip/tooltip.comp.js"),h=require("./components/feedback/skeleton/skeleton.comp.js"),T=require("./components/feedback/tag/tag.comp.js"),C=require("./components/feedback/toast/toast.comp.js"),j=require("./components/feedback/toast/toast.provider.js"),q=require("./components/feedback/empty-state/empty-state.comp.js"),v=require("./components/feedback/alert/alert.comp.js"),b=require("./components/feedback/progress-bar/progress-bar.comp.js"),f=require("./components/feedback/confirm-dialog/confirm-dialog.comp.js"),k=require("./components/feedback/confirm-dialog/confirm-dialog.provider.js"),S=require("./components/forms/autocomplete/autocomplete.comp.js"),I=require("./components/forms/checkbox/checkbox.comp.js"),y=require("./components/forms/date/month-picker/month-picker.comp.js"),D=require("./components/forms/date/date-picker/date.utils.js"),P=require("./components/forms/date/date-picker/date-picker.comp.js"),w=require("./components/forms/date/date-picker/date-range-picker.comp.js"),B=require("./components/forms/file/drag-n-drop/drag-n-drop.comp.js"),L=require("./components/forms/file/file-preview/file-preview.comp.js"),R=require("./components/forms/file/file-image-preview/file-image-preview.comp.js"),A=require("./components/forms/file/file-preview-list/file-preview-list.comp.js"),O=require("./components/forms/file/file-image-preview-list/file-image-preview-list.comp.js"),E=require("./components/forms/input/input.comp.js"),N=require("./components/forms/select/select.comp.js"),F=require("./components/forms/switch/switch.comp.js"),_=require("./components/forms/textarea/textarea.comp.js"),M=require("./components/forms/search-input/search-input.comp.js"),H=require("./components/forms/radio-group/radio-group.comp.js"),U=require("./components/icons/icon/icon.comp.js"),V=require("./components/icons/icon/icon.utils.js"),z=require("./components/icons/icon-box/icon-box.comp.js"),G=require("./components/images/image/image.comp.js"),K=require("./components/images/avatar/avatar.comp.js"),Q=require("./components/layout/accordion/accordion.comp.js"),X=require("./components/layout/box/box.comp.js"),J=require("./components/layout/modal/modal.comp.js"),W=require("./components/layout/timeline/timeline.comp.js"),Y=require("./components/layout/treeview/treeview.comp.js"),Z=require("./components/layout/popover/popover.comp.js"),$=require("./components/layout/table/table.comp.js"),ee=require("./components/layout/slider/slider.comp.js"),oe=require("./components/layout/drawer/drawer.comp.js"),te=require("./components/layout/card/card.comp.js"),re=require("./components/layout/title-card/title-card.comp.js"),se=require("./components/layout/stat-card/stat-card.comp.js"),ie=require("./components/layout/divider/divider.comp.js"),ae=require("./components/navigation/pagination/pagination.comp.js"),ne=require("./components/navigation/tabs/tabs.comp.js"),pe=require("./components/navigation/text-link/text-link.comp.js"),ce=require("./components/navigation/table-pagination/table-pagination.comp.js"),me=require("./components/navigation/breadcrumb/breadcrumb.comp.js"),le=require("./components/navigation/action-menu/action-menu.comp.js"),ue=require("./components/navigation/stepper/stepper.comp.js"),xe=require("./components/navigation/view-toggle/view-toggle.comp.js"),de=require("./components/navigation/navigation-card/navigation-card.comp.js"),ge=require("./components/navigation/navigation-card/navigation-cards.comp.js"),he=require("./components/navigation/navigation-sections/navigation-sections.comp.js"),Te=require("./components/typography/text/text.comp.js"),Ce=require("./hooks/use-breakpoint.js"),je=require("./theme/generated/tokens.js"),qe=require("./theme/create-theme.js"),ve=require("./theme/chart-colors.js"),be=require("./theme/client-theme.js"),fe=require("./theme/default-theme.js"),ke=require("./theme/global-styles.js"),Se=require("./theme/media.js"),Ie=require("./theme/scrollbar.js"),ye=require("./theme/theme-provider.js"),De=require("./theme/theme.util.js");exports.Button=e.Button,exports.IconButton=o.IconButton,exports.DoughnutChart=t.DoughnutChart,exports.BarChart=r.BarChart,exports.LineChart=s.LineChart,exports.TreemapChart=i.TreemapChart,exports.ChartLegend=a.ChartLegend,exports.Calendar=n.Calendar,exports.InfoItem=p.InfoItem,exports.Matrix=c.Matrix,exports.getBand=c.getBand,exports.TintedSection=m.TintedSection,exports.TreeNode=l.TreeNode,exports.CanvasButton=u.CanvasButton,exports.CanvasPanel=u.CanvasPanel,exports.DirectionToggle=u.DirectionToggle,exports.FullscreenToggle=u.FullscreenToggle,exports.SelectableItem=x.SelectableItem,exports.SidePanel=x.SidePanel,exports.Spinner=d.Spinner,exports.Tooltip=g.Tooltip,exports.Skeleton=h.Skeleton,exports.Tag=T.Tag,exports.Toast=C.Toast,exports.ToastStackStyles=C.ToastStackStyles,exports.ToastProvider=j.ToastProvider,exports.useToast=j.useToast,exports.EmptyState=q.EmptyState,exports.Alert=v.Alert,exports.ProgressBar=b.ProgressBar,exports.ConfirmDialog=f.ConfirmDialog,exports.ConfirmDialogProvider=k.ConfirmDialogProvider,exports.useConfirm=k.useConfirm,exports.Autocomplete=S.Autocomplete,exports.CustomAutocomplete=S.CustomAutocomplete,exports.CheckBox=I.CheckBox,exports.Checkbox=I.Checkbox,exports.CustomCheckBox=I.CustomCheckBox,exports.MonthPicker=y.MonthPicker,exports.formatDateKey=D.formatDateKey,exports.parseDateText=D.parseDateText,exports.DEFAULT_DATE_LABELS=P.DEFAULT_DATE_LABELS,exports.DatePicker=P.DatePicker,exports.initialDay=P.initialDay,exports.DateRangePicker=w.DateRangePicker,exports.DragNDrop=B.DragNDrop,exports.FileDropzone=B.FileDropzone,exports.FilePreview=L.FilePreview,exports.FileImagePreview=R.FileImagePreview,exports.FilePreviewList=A.FilePreviewList,exports.FileImagePreviewList=O.FileImagePreviewList,exports.CustomInput=E.CustomInput,exports.Input=E.Input,exports.Select=N.Select,exports.CustomSwitch=F.CustomSwitch,exports.Switch=F.Switch,exports.CustomTextArea=_.CustomTextArea,exports.TextArea=_.TextArea,exports.SearchInput=M.SearchInput,exports.RadioGroup=H.RadioGroup,exports.Icon=U.Icon,exports.LUCIDE_PREFIX=V.LUCIDE_PREFIX,exports.allIconsOptions=V.allIconsOptions,exports.customIconsOptions=V.customIconsOptions,exports.isLucideName=V.isLucideName,exports.parseIconNameToLucide=V.parseIconNameToLucide,exports.parseIconNameToRemixIcon=V.parseIconNameToRemixIcon,exports.IconBox=z.IconBox,exports.Image=G.Image,exports.Avatar=K.Avatar,exports.Accordion=Q.Accordion,exports.Box=X.Box,exports.CustomBox=X.CustomBox,exports.Modal=J.Modal,exports.Timeline=W.Timeline,exports.TreeView=Y.TreeView,exports.Treeview=Y.Treeview,exports.Popover=Z.Popover,exports.Table=$.Table,exports.Carousel=ee.Carousel,exports.Slider=ee.Slider,exports.Drawer=oe.Drawer,exports.Card=te.Card,exports.TitleCard=re.TitleCard,exports.StatCard=se.StatCard,exports.Divider=ie.Divider,exports.Pagination=ae.Pagination,exports.Tabs=ne.Tabs,exports.TextLink=pe.TextLink,exports.TablePagination=ce.TablePagination,exports.Breadcrumb=me.Breadcrumb,exports.ActionMenu=le.ActionMenu,exports.Stepper=ue.Stepper,exports.ViewToggle=xe.ViewToggle,exports.NavigationCard=de.NavigationCard,exports.NavigationCards=ge.NavigationCards,exports.NavigationSections=he.NavigationSections,exports.Text=Te.Text,exports.useBreakpoint=Ce.useBreakpoint,exports.useIsMobile=Ce.useIsMobile,exports.useIsTablet=Ce.useIsTablet,exports.useMediaQuery=Ce.useMediaQuery,exports.tokens=je.tokens,exports.createTheme=qe.createTheme,exports.CHART_COLOR_ORDER=ve.CHART_COLOR_ORDER,exports.CHART_OTHER_COLOR=ve.CHART_OTHER_COLOR,exports.getChartColors=ve.getChartColors,exports.SUPPORTED_CLIENT_FONTS=be.SUPPORTED_CLIENT_FONTS,exports.createClientTheme=be.createClientTheme,exports.getClientThemeIssues=be.getClientThemeIssues,exports.defaultTheme=fe.defaultTheme,exports.legacyTheme=fe.legacyTheme,exports.GlobalStyle=ke.GlobalStyle,exports.breakpointValues=Se.breakpointValues,exports.media=Se.media,exports.thinScrollbar=Ie.thinScrollbar,exports.thinScrollbarOnHover=Ie.thinScrollbarOnHover,exports.ThemeProvider=ye.ThemeProvider,exports.adjustColorBrightness=De.adjustColorBrightness,exports.getContrastRatio=De.getContrastRatio,exports.getLuminance=De.getLuminance,exports.getReadableTextColor=De.getReadableTextColor,exports.getThemeColor=De.getThemeColor,exports.getThemeContrastColor=De.getThemeContrastColor,exports.getThemeSize=De.getThemeSize,exports.getThemeSpacing=De.getThemeSpacing,exports.mixColors=De.mixColors;
1
+ "use strict";var e=require("./components/buttons/button/button.comp.js"),o=require("./components/buttons/icon-button/icon-button.comp.js"),t=require("./components/charts/doughnut-chart/doughnut-chart.comp.js"),r=require("./components/charts/bar-chart/bar-chart.comp.js"),s=require("./components/charts/line-chart/line-chart.comp.js"),i=require("./components/charts/treemap-chart/treemap-chart.comp.js"),a=require("./components/charts/chart-legend/chart-legend.comp.js"),n=require("./components/data-display/calendar/calendar.comp.js"),p=require("./components/data-display/info-item/info-item.comp.js"),c=require("./components/data-display/matrix/matrix.comp.js"),m=require("./components/data-display/tinted-section/tinted-section.comp.js"),l=require("./components/data-display/tree-node/tree-node.comp.js"),u=require("./components/data-display/canvas-controls/canvas-controls.comp.js"),x=require("./components/data-display/side-panel/side-panel.comp.js"),d=require("./components/feedback/spinner/spinner.comp.js"),g=require("./components/feedback/tooltip/tooltip.comp.js"),h=require("./components/feedback/skeleton/skeleton.comp.js"),T=require("./components/feedback/tag/tag.comp.js"),j=require("./components/feedback/toast/toast.comp.js"),C=require("./components/feedback/toast/toast.provider.js"),q=require("./components/feedback/empty-state/empty-state.comp.js"),v=require("./components/feedback/alert/alert.comp.js"),b=require("./components/feedback/progress-bar/progress-bar.comp.js"),f=require("./components/feedback/confirm-dialog/confirm-dialog.comp.js"),k=require("./components/feedback/confirm-dialog/confirm-dialog.provider.js"),S=require("./components/forms/autocomplete/autocomplete.comp.js"),I=require("./components/forms/checkbox/checkbox.comp.js"),y=require("./components/forms/date/month-picker/month-picker.comp.js"),D=require("./components/forms/date/date-picker/date.utils.js"),P=require("./components/forms/date/date-picker/date-picker.comp.js"),w=require("./components/forms/date/date-picker/date-range-picker.comp.js"),B=require("./components/forms/file/drag-n-drop/drag-n-drop.comp.js"),L=require("./components/forms/file/file-preview/file-preview.comp.js"),R=require("./components/forms/file/file-image-preview/file-image-preview.comp.js"),A=require("./components/forms/file/file-preview-list/file-preview-list.comp.js"),O=require("./components/forms/file/file-image-preview-list/file-image-preview-list.comp.js"),E=require("./components/forms/input/input.comp.js"),N=require("./components/forms/select/select.comp.js"),F=require("./components/forms/switch/switch.comp.js"),_=require("./components/forms/textarea/textarea.comp.js"),M=require("./components/forms/search-input/search-input.comp.js"),H=require("./components/forms/radio-group/radio-group.comp.js"),U=require("./components/icons/icon/icon.comp.js"),V=require("./components/icons/icon/icon.utils.js"),z=require("./components/icons/icon-box/icon-box.comp.js"),G=require("./components/images/image/image.comp.js"),K=require("./components/images/avatar/avatar.comp.js"),Q=require("./components/layout/accordion/accordion.comp.js"),X=require("./components/layout/box/box.comp.js"),J=require("./components/layout/modal/modal.comp.js"),W=require("./components/layout/timeline/timeline.comp.js"),Y=require("./components/layout/treeview/treeview.comp.js"),Z=require("./components/layout/popover/popover.comp.js"),$=require("./components/layout/table/table.comp.js"),ee=require("./components/layout/slider/slider.comp.js"),oe=require("./components/layout/drawer/drawer.comp.js"),te=require("./components/layout/card/card.comp.js"),re=require("./components/layout/title-card/title-card.comp.js"),se=require("./components/layout/stat-card/stat-card.comp.js"),ie=require("./components/layout/divider/divider.comp.js"),ae=require("./components/navigation/pagination/pagination.comp.js"),ne=require("./components/navigation/tabs/tabs.comp.js"),pe=require("./components/navigation/text-link/text-link.comp.js"),ce=require("./components/navigation/table-pagination/table-pagination.comp.js"),me=require("./components/navigation/breadcrumb/breadcrumb.comp.js"),le=require("./components/navigation/action-menu/action-menu.comp.js"),ue=require("./components/navigation/stepper/stepper.comp.js"),xe=require("./components/navigation/view-toggle/view-toggle.comp.js"),de=require("./components/navigation/navigation-card/navigation-card.comp.js"),ge=require("./components/navigation/navigation-card/navigation-cards.comp.js"),he=require("./components/navigation/navigation-sections/navigation-sections.comp.js"),Te=require("./components/typography/text/text.comp.js"),je=require("./hooks/use-breakpoint.js"),Ce=require("./theme/generated/tokens.js"),qe=require("./theme/create-theme.js"),ve=require("./theme/chart-colors.js"),be=require("./theme/client-theme.js"),fe=require("./theme/default-theme.js"),ke=require("./theme/global-styles.js"),Se=require("./theme/gradient-border.js"),Ie=require("./theme/media.js"),ye=require("./theme/scrollbar.js"),De=require("./theme/theme-provider.js"),Pe=require("./theme/theme.util.js");exports.Button=e.Button,exports.IconButton=o.IconButton,exports.DoughnutChart=t.DoughnutChart,exports.BarChart=r.BarChart,exports.LineChart=s.LineChart,exports.TreemapChart=i.TreemapChart,exports.ChartLegend=a.ChartLegend,exports.Calendar=n.Calendar,exports.InfoItem=p.InfoItem,exports.Matrix=c.Matrix,exports.getBand=c.getBand,exports.TintedSection=m.TintedSection,exports.TreeNode=l.TreeNode,exports.CanvasButton=u.CanvasButton,exports.CanvasPanel=u.CanvasPanel,exports.DirectionToggle=u.DirectionToggle,exports.FullscreenToggle=u.FullscreenToggle,exports.SelectableItem=x.SelectableItem,exports.SidePanel=x.SidePanel,exports.Spinner=d.Spinner,exports.Tooltip=g.Tooltip,exports.Skeleton=h.Skeleton,exports.Tag=T.Tag,exports.Toast=j.Toast,exports.ToastStackStyles=j.ToastStackStyles,exports.ToastProvider=C.ToastProvider,exports.useToast=C.useToast,exports.EmptyState=q.EmptyState,exports.Alert=v.Alert,exports.ProgressBar=b.ProgressBar,exports.ConfirmDialog=f.ConfirmDialog,exports.ConfirmDialogProvider=k.ConfirmDialogProvider,exports.useConfirm=k.useConfirm,exports.Autocomplete=S.Autocomplete,exports.CustomAutocomplete=S.CustomAutocomplete,exports.CheckBox=I.CheckBox,exports.Checkbox=I.Checkbox,exports.CustomCheckBox=I.CustomCheckBox,exports.MonthPicker=y.MonthPicker,exports.formatDateKey=D.formatDateKey,exports.parseDateText=D.parseDateText,exports.DEFAULT_DATE_LABELS=P.DEFAULT_DATE_LABELS,exports.DatePicker=P.DatePicker,exports.initialDay=P.initialDay,exports.DateRangePicker=w.DateRangePicker,exports.DragNDrop=B.DragNDrop,exports.FileDropzone=B.FileDropzone,exports.FilePreview=L.FilePreview,exports.FileImagePreview=R.FileImagePreview,exports.FilePreviewList=A.FilePreviewList,exports.FileImagePreviewList=O.FileImagePreviewList,exports.CustomInput=E.CustomInput,exports.Input=E.Input,exports.Select=N.Select,exports.CustomSwitch=F.CustomSwitch,exports.Switch=F.Switch,exports.CustomTextArea=_.CustomTextArea,exports.TextArea=_.TextArea,exports.SearchInput=M.SearchInput,exports.RadioGroup=H.RadioGroup,exports.Icon=U.Icon,exports.LUCIDE_PREFIX=V.LUCIDE_PREFIX,exports.allIconsOptions=V.allIconsOptions,exports.customIconsOptions=V.customIconsOptions,exports.isLucideName=V.isLucideName,exports.parseIconNameToLucide=V.parseIconNameToLucide,exports.parseIconNameToRemixIcon=V.parseIconNameToRemixIcon,exports.IconBox=z.IconBox,exports.Image=G.Image,exports.Avatar=K.Avatar,exports.Accordion=Q.Accordion,exports.Box=X.Box,exports.CustomBox=X.CustomBox,exports.Modal=J.Modal,exports.Timeline=W.Timeline,exports.TreeView=Y.TreeView,exports.Treeview=Y.Treeview,exports.Popover=Z.Popover,exports.Table=$.Table,exports.Carousel=ee.Carousel,exports.Slider=ee.Slider,exports.Drawer=oe.Drawer,exports.Card=te.Card,exports.TitleCard=re.TitleCard,exports.StatCard=se.StatCard,exports.Divider=ie.Divider,exports.Pagination=ae.Pagination,exports.Tabs=ne.Tabs,exports.TextLink=pe.TextLink,exports.TablePagination=ce.TablePagination,exports.Breadcrumb=me.Breadcrumb,exports.ActionMenu=le.ActionMenu,exports.Stepper=ue.Stepper,exports.ViewToggle=xe.ViewToggle,exports.NavigationCard=de.NavigationCard,exports.NavigationCards=ge.NavigationCards,exports.NavigationSections=he.NavigationSections,exports.Text=Te.Text,exports.useBreakpoint=je.useBreakpoint,exports.useIsMobile=je.useIsMobile,exports.useIsTablet=je.useIsTablet,exports.useMediaQuery=je.useMediaQuery,exports.tokens=Ce.tokens,exports.createTheme=qe.createTheme,exports.CHART_COLOR_ORDER=ve.CHART_COLOR_ORDER,exports.CHART_OTHER_COLOR=ve.CHART_OTHER_COLOR,exports.getChartColors=ve.getChartColors,exports.SUPPORTED_CLIENT_FONTS=be.SUPPORTED_CLIENT_FONTS,exports.createClientTheme=be.createClientTheme,exports.getClientThemeIssues=be.getClientThemeIssues,exports.defaultTheme=fe.defaultTheme,exports.legacyTheme=fe.legacyTheme,exports.GlobalStyle=ke.GlobalStyle,exports.gradientBorder=Se.gradientBorder,exports.breakpointValues=Ie.breakpointValues,exports.media=Ie.media,exports.thinScrollbar=ye.thinScrollbar,exports.thinScrollbarOnHover=ye.thinScrollbarOnHover,exports.ThemeProvider=De.ThemeProvider,exports.adjustColorBrightness=Pe.adjustColorBrightness,exports.getContrastRatio=Pe.getContrastRatio,exports.getLuminance=Pe.getLuminance,exports.getReadableTextColor=Pe.getReadableTextColor,exports.getThemeColor=Pe.getThemeColor,exports.getThemeContrastColor=Pe.getThemeContrastColor,exports.getThemeSize=Pe.getThemeSize,exports.getThemeSpacing=Pe.getThemeSpacing,exports.mixColors=Pe.mixColors;
2
2
  //# sourceMappingURL=index.js.map
@@ -0,0 +1,51 @@
1
+ "use strict";var r=require("styled-components");const e=r.keyframes`
2
+ to {
3
+ transform: translate(-50%, -50%) rotate(360deg);
4
+ }
5
+ `;exports.gradientBorder=({animated:o,width:t,radius:n,theme:a})=>{const i=a;return o?r.css`
6
+ position: relative;
7
+ isolation: isolate;
8
+ overflow: hidden;
9
+ border: none;
10
+ background: transparent;
11
+
12
+ &::before {
13
+ content: '';
14
+ position: absolute;
15
+ top: 50%;
16
+ left: 50%;
17
+ z-index: -2;
18
+ width: max(250%, 1200px);
19
+ aspect-ratio: 1;
20
+ background: conic-gradient(
21
+ ${i.colors.primary},
22
+ ${i.colors.secondary},
23
+ ${i.colors.primary}
24
+ );
25
+ transform: translate(-50%, -50%);
26
+ animation: ${e} 4s linear infinite;
27
+ will-change: transform;
28
+ }
29
+
30
+ &::after {
31
+ content: '';
32
+ position: absolute;
33
+ inset: ${t}px;
34
+ z-index: -1;
35
+ border-radius: max(0px, calc(${n} - ${t}px));
36
+ background: ${i.colors.white};
37
+ }
38
+
39
+ @media (prefers-reduced-motion: reduce) {
40
+ &::before {
41
+ animation: none;
42
+ }
43
+ }
44
+ `:r.css`
45
+ border: ${t}px solid transparent;
46
+ background:
47
+ linear-gradient(${i.colors.white}, ${i.colors.white})
48
+ padding-box,
49
+ ${i.colors.brand.gradient} border-box;
50
+ `};
51
+ //# sourceMappingURL=gradient-border.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gradient-border.js","sources":["../../../src/theme/gradient-border.ts"],"sourcesContent":["import { css, DefaultTheme, keyframes } from 'styled-components'\n\nimport type { ThemeProps } from './theme.types'\n\nconst spin = keyframes`\n to {\n transform: translate(-50%, -50%) rotate(360deg);\n }\n`\n\n/** Opções da borda no gradiente da marca. */\nexport interface GradientBorderOptions {\n /** Gira as cores da marca devagar. Quem pediu menos movimento no sistema vê a borda parada. */\n animated?: boolean\n /** Grossura da borda em px. */\n width: number\n /** Raio externo da peça (ex. `'12px'`, `'9999px'`), para arredondar o fundo de dentro. */\n radius: string\n /** Tema do styled-components (o `theme` das props do styled). */\n theme: DefaultTheme | ThemeProps\n}\n\n/**\n * Borda no gradiente da marca (45°, roxo → teal), fixa ou girando. Fundo branco por dentro.\n * É a borda do `Card` com `gradientBorder` e do `IconBox` com `gradientBorder`.\n * A animada gira só uma camada com `transform`, sem repintar o conteúdo.\n * @example\n * const Box = styled.div`\n * ${({ theme }) => gradientBorder({ animated: true, width: 2, radius: theme.radius.full, theme })}\n * `\n */\nexport const gradientBorder = ({\n animated,\n width,\n radius,\n theme: styledTheme,\n}: GradientBorderOptions) => {\n const theme = styledTheme as ThemeProps\n return animated\n ? css`\n position: relative;\n isolation: isolate;\n overflow: hidden;\n border: none;\n background: transparent;\n\n &::before {\n content: '';\n position: absolute;\n top: 50%;\n left: 50%;\n z-index: -2;\n width: max(250%, 1200px);\n aspect-ratio: 1;\n background: conic-gradient(\n ${theme.colors.primary},\n ${theme.colors.secondary},\n ${theme.colors.primary}\n );\n transform: translate(-50%, -50%);\n animation: ${spin} 4s linear infinite;\n will-change: transform;\n }\n\n &::after {\n content: '';\n position: absolute;\n inset: ${width}px;\n z-index: -1;\n border-radius: max(0px, calc(${radius} - ${width}px));\n background: ${theme.colors.white};\n }\n\n @media (prefers-reduced-motion: reduce) {\n &::before {\n animation: none;\n }\n }\n `\n : css`\n border: ${width}px solid transparent;\n background:\n linear-gradient(${theme.colors.white}, ${theme.colors.white})\n padding-box,\n ${theme.colors.brand.gradient} border-box;\n `\n}\n"],"names":["spin","keyframes","gradientBorder","animated","width","radius","theme","styledTheme","css","colors","primary","secondary","white","brand","gradient"],"mappings":"gDAIA,MAAMA,EAAOC,EAAAA,SAAS;;;;yBA2BQC,EAC5BC,WACAC,QACAC,SACAC,MAAOC,MAEP,MAAMD,EAAQC,EACd,OAAOJ,EACHK,EAAAA,GAAG;;;;;;;;;;;;;;;;cAgBKF,EAAMG,OAAOC;cACbJ,EAAMG,OAAOE;cACbL,EAAMG,OAAOC;;;uBAGJV;;;;;;;mBAOJI;;yCAEsBC,OAAYD;wBAC7BE,EAAMG,OAAOG;;;;;;;;QAS/BJ,EAAAA,GAAG;kBACSJ;;4BAEUE,EAAMG,OAAOG,UAAUN,EAAMG,OAAOG;;YAEpDN,EAAMG,OAAOI,MAAMC;OACxB"}
package/lib/index.d.ts CHANGED
@@ -5,6 +5,7 @@ import * as LuIcons from 'react-icons/lu';
5
5
  import * as RiIcons from 'react-icons/ri';
6
6
  import { Placement } from '@popperjs/core';
7
7
  import * as styled_components from 'styled-components';
8
+ import { DefaultTheme } from 'styled-components';
8
9
 
9
10
  /**
10
11
  * Tema completo do design system.
@@ -362,6 +363,28 @@ declare const legacyTheme: ThemeProps;
362
363
 
363
364
  declare const GlobalStyle: react.NamedExoticComponent<styled_components.ExecutionProps & object>;
364
365
 
366
+ /** Opções da borda no gradiente da marca. */
367
+ interface GradientBorderOptions {
368
+ /** Gira as cores da marca devagar. Quem pediu menos movimento no sistema vê a borda parada. */
369
+ animated?: boolean;
370
+ /** Grossura da borda em px. */
371
+ width: number;
372
+ /** Raio externo da peça (ex. `'12px'`, `'9999px'`), para arredondar o fundo de dentro. */
373
+ radius: string;
374
+ /** Tema do styled-components (o `theme` das props do styled). */
375
+ theme: DefaultTheme | ThemeProps;
376
+ }
377
+ /**
378
+ * Borda no gradiente da marca (45°, roxo → teal), fixa ou girando. Fundo branco por dentro.
379
+ * É a borda do `Card` com `gradientBorder` e do `IconBox` com `gradientBorder`.
380
+ * A animada gira só uma camada com `transform`, sem repintar o conteúdo.
381
+ * @example
382
+ * const Box = styled.div`
383
+ * ${({ theme }) => gradientBorder({ animated: true, width: 2, radius: theme.radius.full, theme })}
384
+ * `
385
+ */
386
+ declare const gradientBorder: ({ animated, width, radius, theme: styledTheme, }: GradientBorderOptions) => styled_components.RuleSet<object>;
387
+
365
388
  declare const tokens: {
366
389
  readonly color: {
367
390
  readonly purple: {
@@ -1025,25 +1048,37 @@ declare const TreemapChart: ({ width, height, data, valueFormatter, }: TreemapCh
1025
1048
  interface ChartLegendItem {
1026
1049
  /** Nome da série ou categoria. */
1027
1050
  label: string;
1028
- /** Cor da bolinha, igual à do gráfico: token do tema ou valor CSS. */
1051
+ /** Cor da marca (bolinha ou quadradinho), igual à do gráfico: token do tema ou valor CSS. */
1029
1052
  color: ThemeColors | string;
1030
1053
  /** Valor ao lado do nome (ex. "42%", "1.240 kg"). */
1031
1054
  value?: ReactNode;
1032
1055
  }
1056
+ /** Visual da legenda. */
1057
+ type ChartLegendVariant = 'dot' | 'square';
1033
1058
  /** Props for the ChartLegend component */
1034
1059
  interface ChartLegendProps {
1035
1060
  /** Itens da legenda, na ordem do gráfico. */
1036
1061
  items: ChartLegendItem[];
1037
1062
  /** `row`: itens lado a lado, quebrando linha. `column`: um por linha, com o valor alinhado à direita. @default 'row' */
1038
1063
  direction?: 'row' | 'column';
1064
+ /**
1065
+ * Visual da legenda.
1066
+ * - `dot`: bolinha, nome e valor em destaque (à direita no `column`).
1067
+ * - `square`: quadradinho e "Nome: valor" na mesma linha, em texto pequeno. É o das roscas das
1068
+ * dashboards da plataforma (cards por status).
1069
+ * @default 'dot'
1070
+ */
1071
+ variant?: ChartLegendVariant;
1039
1072
  }
1040
1073
 
1041
1074
  /**
1042
1075
  * Legenda de gráfico: bolinha na cor da série, nome e valor opcional.
1043
1076
  * Use ao lado ou abaixo de qualquer gráfico; o DoughnutChart já monta a dele com a prop `legend`.
1077
+ * `variant="square"` é a legenda das roscas das dashboards: quadradinho e "Nome: valor".
1044
1078
  * @example <ChartLegend items={[{ label: 'Aprovados', color: 'success', value: '60%' }]} />
1079
+ * @example <ChartLegend variant="square" direction="column" items={[{ label: 'Pendentes', color: 'chart.purple', value: 850 }]} />
1045
1080
  */
1046
- declare const ChartLegend: ({ items, direction }: ChartLegendProps) => react_jsx_runtime.JSX.Element;
1081
+ declare const ChartLegend: ({ items, direction, variant, }: ChartLegendProps) => react_jsx_runtime.JSX.Element;
1047
1082
 
1048
1083
  /** Um evento marcado num dia do calendário. */
1049
1084
  interface CalendarEvent {
@@ -1975,6 +2010,8 @@ declare const parseIconNameToLucide: (name: string) => LuIconName;
1975
2010
  declare const customIconsOptions: readonly ["rocket", "graph", "receipt"];
1976
2011
  declare const allIconsOptions: string[];
1977
2012
 
2013
+ /** Formato da caixa do IconBox. */
2014
+ type IconBoxShape = 'square' | 'circle';
1978
2015
  /** Props for the IconBox component */
1979
2016
  interface IconBoxProps {
1980
2017
  /** Ícone mostrado dentro da caixa. */
@@ -1988,15 +2025,31 @@ interface IconBoxProps {
1988
2025
  * @default 24
1989
2026
  */
1990
2027
  size?: number;
2028
+ /**
2029
+ * Formato da caixa. `square` é o dos títulos de card e números; `circle` é para quem age
2030
+ * (agente de IA, assistente), ao lado de um nome.
2031
+ * @default 'square'
2032
+ */
2033
+ shape?: IconBoxShape;
2034
+ /**
2035
+ * Borda no gradiente da marca, como no Card.
2036
+ * - `true`: borda fixa (1px), para destacar.
2037
+ * - `'animated'`: borda (2px) com as cores da marca girando devagar, para algo vivo ou em
2038
+ * andamento (um agente trabalhando). Use um por tela; quem pediu menos movimento no sistema vê
2039
+ * a borda parada.
2040
+ */
2041
+ gradientBorder?: boolean | 'animated';
1991
2042
  }
1992
2043
 
1993
2044
  /**
1994
2045
  * Ícone dentro de uma caixinha com borda e sombra leve. É o ícone dos títulos de card e dos números
1995
2046
  * das dashboards. Sem `color`, o ícone vem no gradiente da marca.
2047
+ * `shape="circle"` com `gradientBorder="animated"` é o ícone de um agente de IA ao lado do nome dele.
1996
2048
  * Use para identificar um bloco; não use como botão (use IconButton).
1997
2049
  * @example <IconBox icon="file_list3" />
2050
+ * @example <IconBox icon="robot2" shape="circle" gradientBorder="animated" />
1998
2051
  */
1999
- declare const IconBox: ({ icon, color, size }: IconBoxProps) => react_jsx_runtime.JSX.Element;
2052
+ declare const IconBox: ({ icon, color, size, shape, gradientBorder, }: IconBoxProps) => react_jsx_runtime.JSX.Element;
2000
2053
 
2001
2054
  /**
2002
2055
  * Validation state for form fields.
@@ -3746,4 +3799,4 @@ declare const useIsTablet: (options?: ScreenHookOptions) => boolean;
3746
3799
  */
3747
3800
  declare const useBreakpoint: ({ ssr }?: ScreenHookOptions) => Breakpoint | "base";
3748
3801
 
3749
- export { Accordion, type AccordionProps, ActionMenu, type ActionMenuItem, type ActionMenuProps, Alert, type AlertProps, type AlertStatus, Autocomplete, type AutocompleteOption, type AutocompleteProps, Avatar, type AvatarProps, BarChart, type BarChartData, type BarChartProps, Box, type BoxProps, Breadcrumb, type BreadcrumbItem, type BreadcrumbProps, type Breakpoint, Button, type ButtonProps, type ButtonSize, type ButtonVariant, CHART_COLOR_ORDER, CHART_OTHER_COLOR, type CSSCursor, Calendar, type CalendarEvent, type CalendarLabels, type CalendarLegendItem, type CalendarProps, CanvasButton, type CanvasButtonProps, CanvasPanel, type CanvasPanelProps, Card, type CardProps, type CardVariant, Carousel, type CarouselProps, type CellAlign, type ChartColorName, ChartLegend, type ChartLegendItem, type ChartLegendProps, CheckBox, type CheckBoxProps, Checkbox, type CheckboxAlign, type CheckboxProps, type ClientFont, type ClientThemeIssue, type ClientThemeOptions, ConfirmDialog, type ConfirmDialogProps, ConfirmDialogProvider, type ConfirmDialogReason, type ConfirmOptions, CustomAutocomplete, CustomBox, CustomCheckBox, type CustomIconName, type CustomIconProps, CustomInput, CustomSwitch, CustomTextArea, DEFAULT_DATE_LABELS, DatePicker, type DatePickerLabels, type DatePickerProps, type DateRange, DateRangePicker, type DateRangePickerProps, type DateRangePreset, type DeepPartial, DirectionToggle, type DirectionToggleProps, Divider, type DividerProps, DoughnutChart, type DoughnutChartProps, DragNDrop, type DragNDropProps, Drawer, type DrawerAnchor, type DrawerProps, EmptyState, type EmptyStateProps, type ExternalIconName, FileDropzone, type FileDropzoneProps, FileImagePreview, FileImagePreviewList, type FileImagePreviewListProps, type FileImagePreviewProps, FilePreview, FilePreviewList, type FilePreviewListProps, type FilePreviewProps, FullscreenToggle, type FullscreenToggleProps, GlobalStyle, Icon, IconBox, type IconBoxProps, IconButton, type IconButtonProps, type IconButtonSize, type IconButtonVariant, type IconProps, type IconsName, Image, type ImageProps, InfoItem, type InfoItemProps, Input, type InputProps, LUCIDE_PREFIX, type LegacyButtonSize, LineChart, type LineChartData, type LineChartProps, type LineChartSeries, type LuIconName, type LucideIconName, Matrix, type MatrixAxisItem, type MatrixBand, type MatrixCell, type MatrixCellStyle, type MatrixItem, type MatrixKey, type MatrixLegendItem, type MatrixProps, Modal, type ModalProps, MonthPicker, type MonthPickerProps, NavigationCard, type NavigationCardProps, NavigationCards, type NavigationCardsItem, type NavigationCardsProps, type NavigationSection, type NavigationSectionItem, NavigationSections, type NavigationSectionsProps, Pagination, type PaginationProps, type PartsProps, Popover, type PopoverPosition, type PopoverProps, ProgressBar, type ProgressBarProps, RadioGroup, type RadioGroupProps, type RadioOption, type RiIconName, SUPPORTED_CLIENT_FONTS, type ScreenHookOptions, SearchInput, type SearchInputProps, Select, type SelectOption, type SelectProps, SelectableItem, type SelectableItemProps, SidePanel, type SidePanelProps, type SizeType, Skeleton, type SkeletonProps, Slider, type SliderProps, type SpacingName, Spinner, type SpinnerProps, StatCard, type StatCardProps, type StepState, Stepper, type StepperLabels, type StepperProps, type StepperStep, Switch, type SwitchProps, type TabItem, Table, type TableData, type TableHeader, TablePagination, type TablePaginationProps, type TableProps, Tabs, type TabsProps, type TabsVariant, Tag, type TagProps, Text, TextArea, type TextAreaProps, type TextElementTags, TextLink, type TextLinkProps, type TextProps, type Theme, type ThemeColorPath, type ThemeColors, type ThemeProps, CustomThemeProvider as ThemeProvider, Timeline, type TimelineProps, TintedSection, type TintedSectionProps, TitleCard, type TitleCardProps, Toast, type ToastApi, type ToastConfig, type ToastOptions, type ToastPosition, type ToastProps, ToastProvider, type ToastProviderProps, ToastStackStyles, type ToastType, type Tokens, Tooltip, type TooltipProps, type TreeDirection, TreeNode, type TreeNodeBaseProps, type TreeNodeCaptionProps, type TreeNodeProps, type TreeNodeTitleProps, TreeView, type TreeViewProps, TreemapChart, type TreemapChartData, type TreemapChartProps, Treeview, type TreeviewProps, ViewToggle, type ViewToggleOption, type ViewToggleProps, adjustColorBrightness, allIconsOptions, breakpointValues, createClientTheme, createTheme, customIconsOptions, defaultTheme, formatDateKey, getBand, getChartColors, getClientThemeIssues, getContrastRatio, getLuminance, getReadableTextColor, getThemeColor, getThemeContrastColor, getThemeSize, getThemeSpacing, initialDay, isLucideName, legacyTheme, media, mixColors, parseDateText, parseIconNameToLucide, parseIconNameToRemixIcon, thinScrollbar, thinScrollbarOnHover, tokens, useBreakpoint, useConfirm, useIsMobile, useIsTablet, useMediaQuery, useToast };
3802
+ export { Accordion, type AccordionProps, ActionMenu, type ActionMenuItem, type ActionMenuProps, Alert, type AlertProps, type AlertStatus, Autocomplete, type AutocompleteOption, type AutocompleteProps, Avatar, type AvatarProps, BarChart, type BarChartData, type BarChartProps, Box, type BoxProps, Breadcrumb, type BreadcrumbItem, type BreadcrumbProps, type Breakpoint, Button, type ButtonProps, type ButtonSize, type ButtonVariant, CHART_COLOR_ORDER, CHART_OTHER_COLOR, type CSSCursor, Calendar, type CalendarEvent, type CalendarLabels, type CalendarLegendItem, type CalendarProps, CanvasButton, type CanvasButtonProps, CanvasPanel, type CanvasPanelProps, Card, type CardProps, type CardVariant, Carousel, type CarouselProps, type CellAlign, type ChartColorName, ChartLegend, type ChartLegendItem, type ChartLegendProps, type ChartLegendVariant, CheckBox, type CheckBoxProps, Checkbox, type CheckboxAlign, type CheckboxProps, type ClientFont, type ClientThemeIssue, type ClientThemeOptions, ConfirmDialog, type ConfirmDialogProps, ConfirmDialogProvider, type ConfirmDialogReason, type ConfirmOptions, CustomAutocomplete, CustomBox, CustomCheckBox, type CustomIconName, type CustomIconProps, CustomInput, CustomSwitch, CustomTextArea, DEFAULT_DATE_LABELS, DatePicker, type DatePickerLabels, type DatePickerProps, type DateRange, DateRangePicker, type DateRangePickerProps, type DateRangePreset, type DeepPartial, DirectionToggle, type DirectionToggleProps, Divider, type DividerProps, DoughnutChart, type DoughnutChartProps, DragNDrop, type DragNDropProps, Drawer, type DrawerAnchor, type DrawerProps, EmptyState, type EmptyStateProps, type ExternalIconName, FileDropzone, type FileDropzoneProps, FileImagePreview, FileImagePreviewList, type FileImagePreviewListProps, type FileImagePreviewProps, FilePreview, FilePreviewList, type FilePreviewListProps, type FilePreviewProps, FullscreenToggle, type FullscreenToggleProps, GlobalStyle, type GradientBorderOptions, Icon, IconBox, type IconBoxProps, type IconBoxShape, IconButton, type IconButtonProps, type IconButtonSize, type IconButtonVariant, type IconProps, type IconsName, Image, type ImageProps, InfoItem, type InfoItemProps, Input, type InputProps, LUCIDE_PREFIX, type LegacyButtonSize, LineChart, type LineChartData, type LineChartProps, type LineChartSeries, type LuIconName, type LucideIconName, Matrix, type MatrixAxisItem, type MatrixBand, type MatrixCell, type MatrixCellStyle, type MatrixItem, type MatrixKey, type MatrixLegendItem, type MatrixProps, Modal, type ModalProps, MonthPicker, type MonthPickerProps, NavigationCard, type NavigationCardProps, NavigationCards, type NavigationCardsItem, type NavigationCardsProps, type NavigationSection, type NavigationSectionItem, NavigationSections, type NavigationSectionsProps, Pagination, type PaginationProps, type PartsProps, Popover, type PopoverPosition, type PopoverProps, ProgressBar, type ProgressBarProps, RadioGroup, type RadioGroupProps, type RadioOption, type RiIconName, SUPPORTED_CLIENT_FONTS, type ScreenHookOptions, SearchInput, type SearchInputProps, Select, type SelectOption, type SelectProps, SelectableItem, type SelectableItemProps, SidePanel, type SidePanelProps, type SizeType, Skeleton, type SkeletonProps, Slider, type SliderProps, type SpacingName, Spinner, type SpinnerProps, StatCard, type StatCardProps, type StepState, Stepper, type StepperLabels, type StepperProps, type StepperStep, Switch, type SwitchProps, type TabItem, Table, type TableData, type TableHeader, TablePagination, type TablePaginationProps, type TableProps, Tabs, type TabsProps, type TabsVariant, Tag, type TagProps, Text, TextArea, type TextAreaProps, type TextElementTags, TextLink, type TextLinkProps, type TextProps, type Theme, type ThemeColorPath, type ThemeColors, type ThemeProps, CustomThemeProvider as ThemeProvider, Timeline, type TimelineProps, TintedSection, type TintedSectionProps, TitleCard, type TitleCardProps, Toast, type ToastApi, type ToastConfig, type ToastOptions, type ToastPosition, type ToastProps, ToastProvider, type ToastProviderProps, ToastStackStyles, type ToastType, type Tokens, Tooltip, type TooltipProps, type TreeDirection, TreeNode, type TreeNodeBaseProps, type TreeNodeCaptionProps, type TreeNodeProps, type TreeNodeTitleProps, TreeView, type TreeViewProps, TreemapChart, type TreemapChartData, type TreemapChartProps, Treeview, type TreeviewProps, ViewToggle, type ViewToggleOption, type ViewToggleProps, adjustColorBrightness, allIconsOptions, breakpointValues, createClientTheme, createTheme, customIconsOptions, defaultTheme, formatDateKey, getBand, getChartColors, getClientThemeIssues, getContrastRatio, getLuminance, getReadableTextColor, getThemeColor, getThemeContrastColor, getThemeSize, getThemeSpacing, gradientBorder, initialDay, isLucideName, legacyTheme, media, mixColors, parseDateText, parseIconNameToLucide, parseIconNameToRemixIcon, thinScrollbar, thinScrollbarOnHover, tokens, useBreakpoint, useConfirm, useIsMobile, useIsTablet, useMediaQuery, useToast };
@@ -1,2 +1,2 @@
1
- import{jsx as e,jsxs as r}from"react/jsx-runtime";import{List as i,Item as t,Dot as l,Label as o,Value as d}from"./chart-legend.styles.js";const c=({items:c,direction:a="row"})=>e(i,{$direction:a,"data-testid":"chart-legend",children:c.map((i=>r(t,{$direction:a,children:[e(l,{$color:i.color,"aria-hidden":"true"}),e(o,{title:i.label,children:i.label}),void 0!==i.value&&e(d,{$direction:a,children:i.value})]},i.label)))});export{c as ChartLegend};
1
+ import{jsx as e,jsxs as r,Fragment as i}from"react/jsx-runtime";import{List as l,Item as a,Marker as t,Label as d,Value as n}from"./chart-legend.styles.js";const o=({items:o,direction:c="row",variant:h="dot"})=>e(l,{$direction:c,$variant:h,"data-testid":"chart-legend",children:o.map((l=>r(a,{$variant:h,children:[e(t,{$color:l.color,$variant:h,"aria-hidden":"true"}),"square"===h?r(d,{title:l.label,children:[l.label,void 0!==l.value&&r(i,{children:[": ",l.value]})]}):r(i,{children:[e(d,{title:l.label,children:l.label}),void 0!==l.value&&e(n,{$direction:c,children:l.value})]})]},l.label)))});export{o as ChartLegend};
2
2
  //# sourceMappingURL=chart-legend.comp.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"chart-legend.comp.js","sources":["../../../../../src/components/charts/chart-legend/chart-legend.comp.tsx"],"sourcesContent":["import { ChartLegendProps } from './chart-legend.types'\n\nimport * as Styles from './chart-legend.styles'\n\n/**\n * Legenda de gráfico: bolinha na cor da série, nome e valor opcional.\n * Use ao lado ou abaixo de qualquer gráfico; o DoughnutChart já monta a dele com a prop `legend`.\n * @example <ChartLegend items={[{ label: 'Aprovados', color: 'success', value: '60%' }]} />\n */\nexport const ChartLegend = ({ items, direction = 'row' }: ChartLegendProps) => (\n <Styles.List $direction={direction} data-testid=\"chart-legend\">\n {items.map((item) => (\n <Styles.Item key={item.label} $direction={direction}>\n <Styles.Dot $color={item.color} aria-hidden=\"true\" />\n <Styles.Label title={item.label}>{item.label}</Styles.Label>\n {item.value !== undefined && (\n <Styles.Value $direction={direction}>{item.value}</Styles.Value>\n )}\n </Styles.Item>\n ))}\n </Styles.List>\n)\n"],"names":["ChartLegend","items","direction","_jsx","Styles","$direction","children","map","item","_jsxs","$color","color","title","label","undefined","value"],"mappings":"2IASO,MAAMA,EAAcA,EAAGC,QAAOC,YAAY,SAC/CC,EAACC,EAAW,CAAAC,WAAaH,EAAS,cAAc,eAC7CI,SAAAL,EAAMM,KAAKC,GACVC,EAACL,cAAyCF,EAASI,SAAA,CACjDH,EAACC,EAAU,CAAAM,OAASF,EAAKG,MAAmB,cAAA,SAC5CR,EAACC,GAAaQ,MAAOJ,EAAKK,eAAQL,EAAKK,aACvBC,IAAfN,EAAKO,OACJZ,EAACC,EAAyB,CAAAC,WAAAH,EAAYI,SAAAE,EAAKO,UAJ7BP,EAAKK"}
1
+ {"version":3,"file":"chart-legend.comp.js","sources":["../../../../../src/components/charts/chart-legend/chart-legend.comp.tsx"],"sourcesContent":["import { ChartLegendProps } from './chart-legend.types'\n\nimport * as Styles from './chart-legend.styles'\n\n/**\n * Legenda de gráfico: bolinha na cor da série, nome e valor opcional.\n * Use ao lado ou abaixo de qualquer gráfico; o DoughnutChart já monta a dele com a prop `legend`.\n * `variant=\"square\"` é a legenda das roscas das dashboards: quadradinho e \"Nome: valor\".\n * @example <ChartLegend items={[{ label: 'Aprovados', color: 'success', value: '60%' }]} />\n * @example <ChartLegend variant=\"square\" direction=\"column\" items={[{ label: 'Pendentes', color: 'chart.purple', value: 850 }]} />\n */\nexport const ChartLegend = ({\n items,\n direction = 'row',\n variant = 'dot',\n}: ChartLegendProps) => (\n <Styles.List\n $direction={direction}\n $variant={variant}\n data-testid=\"chart-legend\"\n >\n {items.map((item) => (\n <Styles.Item key={item.label} $variant={variant}>\n <Styles.Marker\n $color={item.color}\n $variant={variant}\n aria-hidden=\"true\"\n />\n {variant === 'square' ? (\n <Styles.Label title={item.label}>\n {item.label}\n {item.value !== undefined && <>: {item.value}</>}\n </Styles.Label>\n ) : (\n <>\n <Styles.Label title={item.label}>{item.label}</Styles.Label>\n {item.value !== undefined && (\n <Styles.Value $direction={direction}>{item.value}</Styles.Value>\n )}\n </>\n )}\n </Styles.Item>\n ))}\n </Styles.List>\n)\n"],"names":["ChartLegend","items","direction","variant","_jsx","Styles","$direction","$variant","children","map","item","_jsxs","color","title","label","undefined","value","_Fragment"],"mappings":"4JAWO,MAAMA,EAAcA,EACzBC,QACAC,YAAY,MACZC,UAAU,SAEVC,EAACC,EACa,CAAAC,WAAAJ,EACFK,SAAAJ,gBACE,eAAcK,SAEzBP,EAAMQ,KAAKC,GACVC,EAACN,EAAuC,CAAAE,SAAAJ,YACtCC,EAACC,UACSK,EAAKE,MAAKL,SACRJ,EAAO,cACL,SAED,WAAZA,EACCQ,EAACN,EAAY,CAACQ,MAAOH,EAAKI,MAAKN,SAAA,CAC5BE,EAAKI,WACUC,IAAfL,EAAKM,OAAuBL,oBAAKD,EAAKM,YAGzCL,EAAAM,EAAA,CAAAT,SAAA,CACEJ,EAACC,EAAY,CAACQ,MAAOH,EAAKI,MAAQN,SAAAE,EAAKI,aACvBC,IAAfL,EAAKM,OACJZ,EAACC,EAAyB,CAAAC,WAAAJ,EAAYM,SAAAE,EAAKM,aAfjCN,EAAKI"}
@@ -1,40 +1,47 @@
1
- import{styled as e,css as t}from"styled-components";import{getThemeColor as o}from"../../../theme/theme.util.js";const i=e.ul`
1
+ import{styled as e,css as t}from"styled-components";import{getThemeColor as i}from"../../../theme/theme.util.js";const o=e.ul`
2
2
  display: flex;
3
3
  margin: 0;
4
4
  padding: 0;
5
5
  list-style: none;
6
6
  font-family: ${({theme:e})=>e.typography.fontFamily};
7
7
 
8
- ${({$direction:e,theme:o})=>"row"===e?t`
8
+ ${({$direction:e,$variant:i,theme:o})=>"row"===e?t`
9
9
  flex-wrap: wrap;
10
10
  gap: ${o.spacing.xs} ${o.spacing.md};
11
11
  `:t`
12
12
  flex-direction: column;
13
- gap: ${o.spacing.sm};
13
+ gap: ${"square"===i?o.spacing.xs:o.spacing.sm};
14
14
  `}
15
- `,n=e.li`
15
+ `,a=e.li`
16
16
  display: flex;
17
17
  align-items: center;
18
18
  gap: ${({theme:e})=>e.spacing.sm};
19
19
  min-width: 0;
20
- font-size: ${({theme:e})=>e.typography.textSize.bodySm};
21
- color: ${({theme:e})=>e.colors.grey_2};
22
- `,p=e.span`
20
+ font-size: ${({$variant:e,theme:t})=>"square"===e?t.typography.textSize.caption:t.typography.textSize.bodySm};
21
+ color: ${({$variant:e,theme:t})=>"square"===e?t.colors.grey_1:t.colors.grey_2};
22
+ `,n=e.span`
23
23
  flex: none;
24
- width: 10px;
25
- height: 10px;
26
- border-radius: 50%;
27
- background: ${({$color:e,theme:t})=>o(e,t)};
28
- `,l=e.span`
24
+ background: ${({$color:e,theme:t})=>i(e,t)};
25
+
26
+ ${({$variant:e,theme:i})=>"square"===e?t`
27
+ width: ${i.spacing.md};
28
+ height: ${i.spacing.md};
29
+ border-radius: ${i.radius.sm};
30
+ `:t`
31
+ width: 10px;
32
+ height: 10px;
33
+ border-radius: 50%;
34
+ `}
35
+ `,r=e.span`
29
36
  min-width: 0;
30
37
  overflow: hidden;
31
38
  text-overflow: ellipsis;
32
39
  white-space: nowrap;
33
- `,m=e.span`
40
+ `,s=e.span`
34
41
  flex: none;
35
42
  margin-left: ${({$direction:e})=>"column"===e?"auto":"0"};
36
43
  padding-left: ${({theme:e})=>e.spacing.sm};
37
44
  font-weight: ${({theme:e})=>e.typography.fontWeight.semibold};
38
45
  color: ${({theme:e})=>e.colors.grey_1};
39
- `;export{p as Dot,n as Item,l as Label,i as List,m as Value};
46
+ `;export{a as Item,r as Label,o as List,n as Marker,s as Value};
40
47
  //# sourceMappingURL=chart-legend.styles.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"chart-legend.styles.js","sources":["../../../../../src/components/charts/chart-legend/chart-legend.styles.tsx"],"sourcesContent":["import { css, styled } from 'styled-components'\n\nimport { getThemeColor } from '../../../theme'\n\nexport const List = styled.ul<{ $direction: 'row' | 'column' }>`\n display: flex;\n margin: 0;\n padding: 0;\n list-style: none;\n font-family: ${({ theme }) => theme.typography.fontFamily};\n\n ${({ $direction, theme }) =>\n $direction === 'row'\n ? css`\n flex-wrap: wrap;\n gap: ${theme.spacing.xs} ${theme.spacing.md};\n `\n : css`\n flex-direction: column;\n gap: ${theme.spacing.sm};\n `}\n`\n\nexport const Item = styled.li<{ $direction: 'row' | 'column' }>`\n display: flex;\n align-items: center;\n gap: ${({ theme }) => theme.spacing.sm};\n min-width: 0;\n font-size: ${({ theme }) => theme.typography.textSize.bodySm};\n color: ${({ theme }) => theme.colors.grey_2};\n`\n\nexport const Dot = styled.span<{ $color: string }>`\n flex: none;\n width: 10px;\n height: 10px;\n border-radius: 50%;\n background: ${({ $color, theme }) => getThemeColor($color, theme)};\n`\n\nexport const Label = styled.span`\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n`\n\nexport const Value = styled.span<{ $direction: 'row' | 'column' }>`\n flex: none;\n margin-left: ${({ $direction }) => ($direction === 'column' ? 'auto' : '0')};\n padding-left: ${({ theme }) => theme.spacing.sm};\n font-weight: ${({ theme }) => theme.typography.fontWeight.semibold};\n color: ${({ theme }) => theme.colors.grey_1};\n`\n"],"names":["List","styled","ul","theme","typography","fontFamily","$direction","css","spacing","xs","md","sm","Item","li","textSize","bodySm","colors","grey_2","Dot","span","$color","getThemeColor","Label","Value","fontWeight","semibold","grey_1"],"mappings":"iHAIaA,MAAAA,EAAOC,EAAOC,EAAoC;;;;;iBAK9C,EAAGC,WAAYA,EAAMC,WAAWC;;IAE7C,EAAGC,aAAYH,WACA,QAAfG,EACIC,CAAG;;iBAEMJ,EAAMK,QAAQC,MAAMN,EAAMK,QAAQE;UAE3CH,CAAG;;iBAEMJ,EAAMK,QAAQG;;EAIlBC,EAAOX,EAAOY,EAAoC;;;SAGtD,EAAGV,WAAYA,EAAMK,QAAQG;;eAEvB,EAAGR,WAAYA,EAAMC,WAAWU,SAASC;WAC7C,EAAGZ,WAAYA,EAAMa,OAAOC;EAG1BC,EAAMjB,EAAOkB,IAAwB;;;;;gBAKlC,EAAGC,SAAQjB,WAAYkB,EAAcD,EAAQjB;EAGhDmB,EAAQrB,EAAOkB,IAAI;;;;;EAOnBI,EAAQtB,EAAOkB,IAAsC;;iBAEjD,EAAGb,gBAAiC,WAAfA,EAA0B,OAAS;kBACvD,EAAGH,WAAYA,EAAMK,QAAQG;iBAC9B,EAAGR,WAAYA,EAAMC,WAAWoB,WAAWC;WACjD,EAAGtB,WAAYA,EAAMa,OAAOU;"}
1
+ {"version":3,"file":"chart-legend.styles.js","sources":["../../../../../src/components/charts/chart-legend/chart-legend.styles.tsx"],"sourcesContent":["import { css, styled } from 'styled-components'\n\nimport { getThemeColor } from '../../../theme'\n\nimport { ChartLegendVariant } from './chart-legend.types'\n\nexport const List = styled.ul<{\n $direction: 'row' | 'column'\n $variant: ChartLegendVariant\n}>`\n display: flex;\n margin: 0;\n padding: 0;\n list-style: none;\n font-family: ${({ theme }) => theme.typography.fontFamily};\n\n ${({ $direction, $variant, theme }) =>\n $direction === 'row'\n ? css`\n flex-wrap: wrap;\n gap: ${theme.spacing.xs} ${theme.spacing.md};\n `\n : css`\n flex-direction: column;\n gap: ${$variant === 'square' ? theme.spacing.xs : theme.spacing.sm};\n `}\n`\n\nexport const Item = styled.li<{ $variant: ChartLegendVariant }>`\n display: flex;\n align-items: center;\n gap: ${({ theme }) => theme.spacing.sm};\n min-width: 0;\n font-size: ${({ $variant, theme }) =>\n $variant === 'square'\n ? theme.typography.textSize.caption\n : theme.typography.textSize.bodySm};\n color: ${({ $variant, theme }) =>\n $variant === 'square' ? theme.colors.grey_1 : theme.colors.grey_2};\n`\n\nexport const Marker = styled.span<{\n $color: string\n $variant: ChartLegendVariant\n}>`\n flex: none;\n background: ${({ $color, theme }) => getThemeColor($color, theme)};\n\n ${({ $variant, theme }) =>\n $variant === 'square'\n ? css`\n width: ${theme.spacing.md};\n height: ${theme.spacing.md};\n border-radius: ${theme.radius.sm};\n `\n : css`\n width: 10px;\n height: 10px;\n border-radius: 50%;\n `}\n`\n\nexport const Label = styled.span`\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n`\n\nexport const Value = styled.span<{ $direction: 'row' | 'column' }>`\n flex: none;\n margin-left: ${({ $direction }) => ($direction === 'column' ? 'auto' : '0')};\n padding-left: ${({ theme }) => theme.spacing.sm};\n font-weight: ${({ theme }) => theme.typography.fontWeight.semibold};\n color: ${({ theme }) => theme.colors.grey_1};\n`\n"],"names":["List","styled","ul","theme","typography","fontFamily","$direction","$variant","css","spacing","xs","md","sm","Item","li","textSize","caption","bodySm","colors","grey_1","grey_2","Marker","span","$color","getThemeColor","radius","Label","Value","fontWeight","semibold"],"mappings":"iHAMaA,MAAAA,EAAOC,EAAOC,EAGzB;;;;;iBAKe,EAAGC,WAAYA,EAAMC,WAAWC;;IAE7C,EAAGC,aAAYC,WAAUJ,WACV,QAAfG,EACIE,CAAG;;iBAEML,EAAMM,QAAQC,MAAMP,EAAMM,QAAQE;UAE3CH,CAAG;;iBAEmB,WAAbD,EAAwBJ,EAAMM,QAAQC,GAAKP,EAAMM,QAAQG;;EAI7DC,EAAOZ,EAAOa,EAAoC;;;SAGtD,EAAGX,WAAYA,EAAMM,QAAQG;;eAEvB,EAAGL,WAAUJ,WACX,WAAbI,EACIJ,EAAMC,WAAWW,SAASC,QAC1Bb,EAAMC,WAAWW,SAASE;WACvB,EAAGV,WAAUJ,WACP,WAAbI,EAAwBJ,EAAMe,OAAOC,OAAShB,EAAMe,OAAOE;EAGlDC,EAASpB,EAAOqB,IAG3B;;gBAEc,EAAGC,SAAQpB,WAAYqB,EAAcD,EAAQpB;;IAEzD,EAAGI,WAAUJ,WACA,WAAbI,EACIC,CAAG;mBACQL,EAAMM,QAAQE;oBACbR,EAAMM,QAAQE;2BACPR,EAAMsB,OAAOb;UAEhCJ,CAAG;;;;;EAOEkB,EAAQzB,EAAOqB,IAAI;;;;;EAOnBK,EAAQ1B,EAAOqB,IAAsC;;iBAEjD,EAAGhB,gBAAiC,WAAfA,EAA0B,OAAS;kBACvD,EAAGH,WAAYA,EAAMM,QAAQG;iBAC9B,EAAGT,WAAYA,EAAMC,WAAWwB,WAAWC;WACjD,EAAG1B,WAAYA,EAAMe,OAAOC;"}
@@ -1,2 +1,2 @@
1
- import{jsx as o}from"react/jsx-runtime";import{Wrapper as i}from"./icon-box.styles.js";import{Icon as r}from"../icon/icon.comp.js";const e=({icon:e,color:t,size:c=24})=>o(i,{"data-testid":"icon-box",children:o(r,t?{name:e,size:c,color:t}:{name:e,size:c,gradient:!0})});export{e as IconBox};
1
+ import{jsx as o}from"react/jsx-runtime";import{Wrapper as r}from"./icon-box.styles.js";import{Icon as e}from"../icon/icon.comp.js";const i=({icon:i,color:t,size:n=24,shape:s="square",gradientBorder:a})=>o(r,{"data-testid":"icon-box",$shape:s,$gradientBorder:a,children:o(e,t?{name:i,size:n,color:t}:{name:i,size:n,gradient:!0})});export{i as IconBox};
2
2
  //# sourceMappingURL=icon-box.comp.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"icon-box.comp.js","sources":["../../../../../src/components/icons/icon-box/icon-box.comp.tsx"],"sourcesContent":["import { Icon } from '../icon'\n\nimport { IconBoxProps } from './icon-box.types'\n\nimport * as Styles from './icon-box.styles'\n\n/**\n * Ícone dentro de uma caixinha com borda e sombra leve. É o ícone dos títulos de card e dos números\n * das dashboards. Sem `color`, o ícone vem no gradiente da marca.\n * Use para identificar um bloco; não use como botão (use IconButton).\n * @example <IconBox icon=\"file_list3\" />\n */\nexport const IconBox = ({ icon, color, size = 24 }: IconBoxProps) => (\n <Styles.Wrapper data-testid=\"icon-box\">\n {color ? (\n <Icon name={icon} size={size} color={color} />\n ) : (\n <Icon name={icon} size={size} gradient />\n )}\n </Styles.Wrapper>\n)\n"],"names":["IconBox","icon","color","size","_jsx","Styles","children","Icon","name","gradient"],"mappings":"mIAYO,MAAMA,EAAUA,EAAGC,OAAMC,QAAOC,OAAO,MAC5CC,EAACC,EAA2B,CAAA,cAAA,WACzBC,SACCF,EAACG,EADFL,EACM,CAACM,KAAMP,EAAME,KAAMA,EAAMD,MAAOA,GAE/B,CAAAM,KAAMP,EAAME,KAAMA,EAAMM,UAAQ"}
1
+ {"version":3,"file":"icon-box.comp.js","sources":["../../../../../src/components/icons/icon-box/icon-box.comp.tsx"],"sourcesContent":["import { Icon } from '../icon'\n\nimport { IconBoxProps } from './icon-box.types'\n\nimport * as Styles from './icon-box.styles'\n\n/**\n * Ícone dentro de uma caixinha com borda e sombra leve. É o ícone dos títulos de card e dos números\n * das dashboards. Sem `color`, o ícone vem no gradiente da marca.\n * `shape=\"circle\"` com `gradientBorder=\"animated\"` é o ícone de um agente de IA ao lado do nome dele.\n * Use para identificar um bloco; não use como botão (use IconButton).\n * @example <IconBox icon=\"file_list3\" />\n * @example <IconBox icon=\"robot2\" shape=\"circle\" gradientBorder=\"animated\" />\n */\nexport const IconBox = ({\n icon,\n color,\n size = 24,\n shape = 'square',\n gradientBorder,\n}: IconBoxProps) => (\n <Styles.Wrapper\n data-testid=\"icon-box\"\n $shape={shape}\n $gradientBorder={gradientBorder}\n >\n {color ? (\n <Icon name={icon} size={size} color={color} />\n ) : (\n <Icon name={icon} size={size} gradient />\n )}\n </Styles.Wrapper>\n)\n"],"names":["IconBox","icon","color","size","shape","gradientBorder","_jsx","Styles","$gradientBorder","children","Icon","name","gradient"],"mappings":"mIAcO,MAAMA,EAAUA,EACrBC,OACAC,QACAC,OAAO,GACPC,QAAQ,SACRC,oBAEAC,EAACC,EACa,CAAA,cAAA,kBACJH,EAAKI,gBACIH,EAAcI,SAG7BH,EAACI,EADFR,EACM,CAACS,KAAMV,EAAME,KAAMA,EAAMD,MAAOA,GAEhC,CAACS,KAAMV,EAAME,KAAMA,EAAMS,UAAQ"}
@@ -1,10 +1,13 @@
1
- import{styled as e}from"styled-components";import{Box as o}from"../../layout/box/box.comp.js";import{getThemeColor as t}from"../../../theme/theme.util.js";const r=e(o)`
1
+ import{styled as e,css as r}from"styled-components";import{gradientBorder as t}from"../../../theme/gradient-border.js";import{Box as o}from"../../layout/box/box.comp.js";import{getThemeColor as i}from"../../../theme/theme.util.js";const d=e(o)`
2
2
  flex: none;
3
3
  align-items: center;
4
4
  justify-content: center;
5
5
  padding: 10px;
6
- border: 1px solid ${({theme:e})=>t("grey_5",e)};
7
- border-radius: ${({theme:e})=>e.radius.lg};
6
+ border-radius: ${({$shape:e,theme:r})=>"circle"===e?r.radius.full:r.radius.lg};
8
7
  box-shadow: ${({theme:e})=>e.box_shadow.input};
9
- `;export{r as Wrapper};
8
+
9
+ ${({$gradientBorder:e,$shape:o,theme:d})=>e?t({animated:"animated"===e,width:"animated"===e?2:1,radius:"circle"===o?d.radius.full:d.radius.lg,theme:d}):r`
10
+ border: 1px solid ${i("grey_5",d)};
11
+ `}
12
+ `;export{d as Wrapper};
10
13
  //# sourceMappingURL=icon-box.styles.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"icon-box.styles.js","sources":["../../../../../src/components/icons/icon-box/icon-box.styles.tsx"],"sourcesContent":["import { styled } from 'styled-components'\n\nimport { getThemeColor } from '../../../theme'\nimport { Box } from '../../layout/box'\n\nexport const Wrapper = styled(Box)`\n flex: none;\n align-items: center;\n justify-content: center;\n padding: 10px;\n border: 1px solid ${({ theme }) => getThemeColor('grey_5', theme)};\n border-radius: ${({ theme }) => theme.radius.lg};\n box-shadow: ${({ theme }) => theme.box_shadow.input};\n`\n"],"names":["Wrapper","styled","Box","theme","getThemeColor","radius","lg","box_shadow","input"],"mappings":"iKAKaA,EAAUC,EAAOC,EAAI;;;;;sBAKZ,EAAGC,WAAYC,EAAc,SAAUD;mBAC1C,EAAGA,WAAYA,EAAME,OAAOC;gBAC/B,EAAGH,WAAYA,EAAMI,WAAWC;"}
1
+ {"version":3,"file":"icon-box.styles.js","sources":["../../../../../src/components/icons/icon-box/icon-box.styles.tsx"],"sourcesContent":["import { css, styled } from 'styled-components'\n\nimport { getThemeColor } from '../../../theme'\nimport { gradientBorder } from '../../../theme/gradient-border'\nimport { Box } from '../../layout/box'\n\nimport { IconBoxShape } from './icon-box.types'\n\nexport const Wrapper = styled(Box)<{\n $shape: IconBoxShape\n $gradientBorder?: boolean | 'animated'\n}>`\n flex: none;\n align-items: center;\n justify-content: center;\n padding: 10px;\n border-radius: ${({ $shape, theme }) =>\n $shape === 'circle' ? theme.radius.full : theme.radius.lg};\n box-shadow: ${({ theme }) => theme.box_shadow.input};\n\n ${({ $gradientBorder, $shape, theme }) =>\n $gradientBorder\n ? gradientBorder({\n animated: $gradientBorder === 'animated',\n width: $gradientBorder === 'animated' ? 2 : 1,\n radius: $shape === 'circle' ? theme.radius.full : theme.radius.lg,\n theme,\n })\n : css`\n border: 1px solid ${getThemeColor('grey_5', theme)};\n `}\n`\n"],"names":["Wrapper","styled","Box","$shape","theme","radius","full","lg","box_shadow","input","$gradientBorder","gradientBorder","animated","width","css","getThemeColor"],"mappings":"6OAQaA,EAAUC,EAAOC,EAG5B;;;;;mBAKiB,EAAGC,SAAQC,WACf,WAAXD,EAAsBC,EAAMC,OAAOC,KAAOF,EAAMC,OAAOE;gBAC3C,EAAGH,WAAYA,EAAMI,WAAWC;;IAE5C,EAAGC,kBAAiBP,SAAQC,WAC5BM,EACIC,EAAe,CACbC,SAA8B,aAApBF,EACVG,MAA2B,aAApBH,EAAiC,EAAI,EAC5CL,OAAmB,WAAXF,EAAsBC,EAAMC,OAAOC,KAAOF,EAAMC,OAAOE,GAC/DH,UAEFU,CAAG;8BACmBC,EAAc,SAAUX;;"}
@@ -1,53 +1,4 @@
1
- import{keyframes as o,styled as r,css as e}from"styled-components";import{Box as t}from"../box/box.comp.js";const n=o`
2
- to {
3
- transform: translate(-50%, -50%) rotate(360deg);
4
- }
5
- `,a=r(t)`
6
- ${({$animated:o,$width:r,$radius:t,theme:a})=>o?e`
7
- position: relative;
8
- isolation: isolate;
9
- overflow: hidden;
10
- border: none;
11
- background: transparent;
12
-
13
- &::before {
14
- content: '';
15
- position: absolute;
16
- top: 50%;
17
- left: 50%;
18
- z-index: -2;
19
- width: max(250%, 1200px);
20
- aspect-ratio: 1;
21
- background: conic-gradient(
22
- ${a.colors.primary},
23
- ${a.colors.secondary},
24
- ${a.colors.primary}
25
- );
26
- transform: translate(-50%, -50%);
27
- animation: ${n} 4s linear infinite;
28
- will-change: transform;
29
- }
30
-
31
- &::after {
32
- content: '';
33
- position: absolute;
34
- inset: ${r}px;
35
- z-index: -1;
36
- border-radius: max(0px, calc(${t} - ${r}px));
37
- background: ${a.colors.white};
38
- }
39
-
40
- @media (prefers-reduced-motion: reduce) {
41
- &::before {
42
- animation: none;
43
- }
44
- }
45
- `:e`
46
- border: ${r}px solid transparent;
47
- background:
48
- linear-gradient(${a.colors.white}, ${a.colors.white})
49
- padding-box,
50
- ${a.colors.brand.gradient} border-box;
51
- `}
52
- `;export{a as GradientCard};
1
+ import{styled as t}from"styled-components";import{gradientBorder as o}from"../../../theme/gradient-border.js";import{Box as e}from"../box/box.comp.js";const m=t(e)`
2
+ ${({$animated:t,$width:e,$radius:m,theme:r})=>o({animated:t,width:e,radius:m,theme:r})}
3
+ `;export{m as GradientCard};
53
4
  //# sourceMappingURL=card.styles.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"card.styles.js","sources":["../../../../../src/components/layout/card/card.styles.tsx"],"sourcesContent":["import { css, keyframes, styled } from 'styled-components'\n\nimport { Box } from '../box'\n\nconst spin = keyframes`\n to {\n transform: translate(-50%, -50%) rotate(360deg);\n }\n`\n\nexport const GradientCard = styled(Box)<{\n $animated: boolean\n $width: number\n $radius: string\n}>`\n ${({ $animated, $width, $radius, theme }) =>\n $animated\n ? css`\n position: relative;\n isolation: isolate;\n overflow: hidden;\n border: none;\n background: transparent;\n\n &::before {\n content: '';\n position: absolute;\n top: 50%;\n left: 50%;\n z-index: -2;\n width: max(250%, 1200px);\n aspect-ratio: 1;\n background: conic-gradient(\n ${theme.colors.primary},\n ${theme.colors.secondary},\n ${theme.colors.primary}\n );\n transform: translate(-50%, -50%);\n animation: ${spin} 4s linear infinite;\n will-change: transform;\n }\n\n &::after {\n content: '';\n position: absolute;\n inset: ${$width}px;\n z-index: -1;\n border-radius: max(0px, calc(${$radius} - ${$width}px));\n background: ${theme.colors.white};\n }\n\n @media (prefers-reduced-motion: reduce) {\n &::before {\n animation: none;\n }\n }\n `\n : css`\n border: ${$width}px solid transparent;\n background:\n linear-gradient(${theme.colors.white}, ${theme.colors.white})\n padding-box,\n ${theme.colors.brand.gradient} border-box;\n `}\n`\n"],"names":["spin","keyframes","GradientCard","styled","Box","$animated","$width","$radius","theme","css","colors","primary","secondary","white","brand","gradient"],"mappings":"4GAIA,MAAMA,EAAOC,CAAS;;;;EAMTC,EAAeC,EAAOC,EAIjC;IACE,EAAGC,YAAWC,SAAQC,UAASC,WAC/BH,EACII,CAAG;;;;;;;;;;;;;;;;gBAgBKD,EAAME,OAAOC;gBACbH,EAAME,OAAOE;gBACbJ,EAAME,OAAOC;;;yBAGJX;;;;;;;qBAOJM;;2CAEsBC,OAAaD;0BAC9BE,EAAME,OAAOG;;;;;;;;UAS/BJ,CAAG;oBACSH;;8BAEUE,EAAME,OAAOG,UAAUL,EAAME,OAAOG;;cAEpDL,EAAME,OAAOI,MAAMC;;"}
1
+ {"version":3,"file":"card.styles.js","sources":["../../../../../src/components/layout/card/card.styles.tsx"],"sourcesContent":["import { styled } from 'styled-components'\n\nimport { gradientBorder } from '../../../theme/gradient-border'\nimport { Box } from '../box'\n\nexport const GradientCard = styled(Box)<{\n $animated: boolean\n $width: number\n $radius: string\n}>`\n ${({ $animated, $width, $radius, theme }) =>\n gradientBorder({\n animated: $animated,\n width: $width,\n radius: $radius,\n theme,\n })}\n`\n"],"names":["GradientCard","styled","Box","$animated","$width","$radius","theme","gradientBorder","animated","width","radius"],"mappings":"6JAKaA,EAAeC,EAAOC,EAIjC;IACE,EAAGC,YAAWC,SAAQC,UAASC,WAC/BC,EAAe,CACbC,SAAUL,EACVM,MAAOL,EACPM,OAAQL,EACRC;"}
@@ -1,2 +1,2 @@
1
- export{Button}from"./components/buttons/button/button.comp.js";export{IconButton}from"./components/buttons/icon-button/icon-button.comp.js";export{DoughnutChart}from"./components/charts/doughnut-chart/doughnut-chart.comp.js";export{BarChart}from"./components/charts/bar-chart/bar-chart.comp.js";export{LineChart}from"./components/charts/line-chart/line-chart.comp.js";export{TreemapChart}from"./components/charts/treemap-chart/treemap-chart.comp.js";export{ChartLegend}from"./components/charts/chart-legend/chart-legend.comp.js";export{Calendar}from"./components/data-display/calendar/calendar.comp.js";export{InfoItem}from"./components/data-display/info-item/info-item.comp.js";export{Matrix,getBand}from"./components/data-display/matrix/matrix.comp.js";export{TintedSection}from"./components/data-display/tinted-section/tinted-section.comp.js";export{TreeNode}from"./components/data-display/tree-node/tree-node.comp.js";export{CanvasButton,CanvasPanel,DirectionToggle,FullscreenToggle}from"./components/data-display/canvas-controls/canvas-controls.comp.js";export{SelectableItem,SidePanel}from"./components/data-display/side-panel/side-panel.comp.js";export{Spinner}from"./components/feedback/spinner/spinner.comp.js";export{Tooltip}from"./components/feedback/tooltip/tooltip.comp.js";export{Skeleton}from"./components/feedback/skeleton/skeleton.comp.js";export{Tag}from"./components/feedback/tag/tag.comp.js";export{Toast,ToastStackStyles}from"./components/feedback/toast/toast.comp.js";export{ToastProvider,useToast}from"./components/feedback/toast/toast.provider.js";export{EmptyState}from"./components/feedback/empty-state/empty-state.comp.js";export{Alert}from"./components/feedback/alert/alert.comp.js";export{ProgressBar}from"./components/feedback/progress-bar/progress-bar.comp.js";export{ConfirmDialog}from"./components/feedback/confirm-dialog/confirm-dialog.comp.js";export{ConfirmDialogProvider,useConfirm}from"./components/feedback/confirm-dialog/confirm-dialog.provider.js";export{Autocomplete,CustomAutocomplete}from"./components/forms/autocomplete/autocomplete.comp.js";export{CheckBox,Checkbox,CustomCheckBox}from"./components/forms/checkbox/checkbox.comp.js";export{MonthPicker}from"./components/forms/date/month-picker/month-picker.comp.js";export{formatDateKey,parseDateText}from"./components/forms/date/date-picker/date.utils.js";export{DEFAULT_DATE_LABELS,DatePicker,initialDay}from"./components/forms/date/date-picker/date-picker.comp.js";export{DateRangePicker}from"./components/forms/date/date-picker/date-range-picker.comp.js";export{DragNDrop,FileDropzone}from"./components/forms/file/drag-n-drop/drag-n-drop.comp.js";export{FilePreview}from"./components/forms/file/file-preview/file-preview.comp.js";export{FileImagePreview}from"./components/forms/file/file-image-preview/file-image-preview.comp.js";export{FilePreviewList}from"./components/forms/file/file-preview-list/file-preview-list.comp.js";export{FileImagePreviewList}from"./components/forms/file/file-image-preview-list/file-image-preview-list.comp.js";export{CustomInput,Input}from"./components/forms/input/input.comp.js";export{Select}from"./components/forms/select/select.comp.js";export{CustomSwitch,Switch}from"./components/forms/switch/switch.comp.js";export{CustomTextArea,TextArea}from"./components/forms/textarea/textarea.comp.js";export{SearchInput}from"./components/forms/search-input/search-input.comp.js";export{RadioGroup}from"./components/forms/radio-group/radio-group.comp.js";export{Icon}from"./components/icons/icon/icon.comp.js";export{LUCIDE_PREFIX,allIconsOptions,customIconsOptions,isLucideName,parseIconNameToLucide,parseIconNameToRemixIcon}from"./components/icons/icon/icon.utils.js";export{IconBox}from"./components/icons/icon-box/icon-box.comp.js";export{Image}from"./components/images/image/image.comp.js";export{Avatar}from"./components/images/avatar/avatar.comp.js";export{Accordion}from"./components/layout/accordion/accordion.comp.js";export{Box,CustomBox}from"./components/layout/box/box.comp.js";export{Modal}from"./components/layout/modal/modal.comp.js";export{Timeline}from"./components/layout/timeline/timeline.comp.js";export{TreeView,Treeview}from"./components/layout/treeview/treeview.comp.js";export{Popover}from"./components/layout/popover/popover.comp.js";export{Table}from"./components/layout/table/table.comp.js";export{Carousel,Slider}from"./components/layout/slider/slider.comp.js";export{Drawer}from"./components/layout/drawer/drawer.comp.js";export{Card}from"./components/layout/card/card.comp.js";export{TitleCard}from"./components/layout/title-card/title-card.comp.js";export{StatCard}from"./components/layout/stat-card/stat-card.comp.js";export{Divider}from"./components/layout/divider/divider.comp.js";export{Pagination}from"./components/navigation/pagination/pagination.comp.js";export{Tabs}from"./components/navigation/tabs/tabs.comp.js";export{TextLink}from"./components/navigation/text-link/text-link.comp.js";export{TablePagination}from"./components/navigation/table-pagination/table-pagination.comp.js";export{Breadcrumb}from"./components/navigation/breadcrumb/breadcrumb.comp.js";export{ActionMenu}from"./components/navigation/action-menu/action-menu.comp.js";export{Stepper}from"./components/navigation/stepper/stepper.comp.js";export{ViewToggle}from"./components/navigation/view-toggle/view-toggle.comp.js";export{NavigationCard}from"./components/navigation/navigation-card/navigation-card.comp.js";export{NavigationCards}from"./components/navigation/navigation-card/navigation-cards.comp.js";export{NavigationSections}from"./components/navigation/navigation-sections/navigation-sections.comp.js";export{Text}from"./components/typography/text/text.comp.js";export{useBreakpoint,useIsMobile,useIsTablet,useMediaQuery}from"./hooks/use-breakpoint.js";export{tokens}from"./theme/generated/tokens.js";export{createTheme}from"./theme/create-theme.js";export{CHART_COLOR_ORDER,CHART_OTHER_COLOR,getChartColors}from"./theme/chart-colors.js";export{SUPPORTED_CLIENT_FONTS,createClientTheme,getClientThemeIssues}from"./theme/client-theme.js";export{defaultTheme,legacyTheme}from"./theme/default-theme.js";export{GlobalStyle}from"./theme/global-styles.js";export{breakpointValues,media}from"./theme/media.js";export{thinScrollbar,thinScrollbarOnHover}from"./theme/scrollbar.js";export{ThemeProvider}from"./theme/theme-provider.js";export{adjustColorBrightness,getContrastRatio,getLuminance,getReadableTextColor,getThemeColor,getThemeContrastColor,getThemeSize,getThemeSpacing,mixColors}from"./theme/theme.util.js";
1
+ export{Button}from"./components/buttons/button/button.comp.js";export{IconButton}from"./components/buttons/icon-button/icon-button.comp.js";export{DoughnutChart}from"./components/charts/doughnut-chart/doughnut-chart.comp.js";export{BarChart}from"./components/charts/bar-chart/bar-chart.comp.js";export{LineChart}from"./components/charts/line-chart/line-chart.comp.js";export{TreemapChart}from"./components/charts/treemap-chart/treemap-chart.comp.js";export{ChartLegend}from"./components/charts/chart-legend/chart-legend.comp.js";export{Calendar}from"./components/data-display/calendar/calendar.comp.js";export{InfoItem}from"./components/data-display/info-item/info-item.comp.js";export{Matrix,getBand}from"./components/data-display/matrix/matrix.comp.js";export{TintedSection}from"./components/data-display/tinted-section/tinted-section.comp.js";export{TreeNode}from"./components/data-display/tree-node/tree-node.comp.js";export{CanvasButton,CanvasPanel,DirectionToggle,FullscreenToggle}from"./components/data-display/canvas-controls/canvas-controls.comp.js";export{SelectableItem,SidePanel}from"./components/data-display/side-panel/side-panel.comp.js";export{Spinner}from"./components/feedback/spinner/spinner.comp.js";export{Tooltip}from"./components/feedback/tooltip/tooltip.comp.js";export{Skeleton}from"./components/feedback/skeleton/skeleton.comp.js";export{Tag}from"./components/feedback/tag/tag.comp.js";export{Toast,ToastStackStyles}from"./components/feedback/toast/toast.comp.js";export{ToastProvider,useToast}from"./components/feedback/toast/toast.provider.js";export{EmptyState}from"./components/feedback/empty-state/empty-state.comp.js";export{Alert}from"./components/feedback/alert/alert.comp.js";export{ProgressBar}from"./components/feedback/progress-bar/progress-bar.comp.js";export{ConfirmDialog}from"./components/feedback/confirm-dialog/confirm-dialog.comp.js";export{ConfirmDialogProvider,useConfirm}from"./components/feedback/confirm-dialog/confirm-dialog.provider.js";export{Autocomplete,CustomAutocomplete}from"./components/forms/autocomplete/autocomplete.comp.js";export{CheckBox,Checkbox,CustomCheckBox}from"./components/forms/checkbox/checkbox.comp.js";export{MonthPicker}from"./components/forms/date/month-picker/month-picker.comp.js";export{formatDateKey,parseDateText}from"./components/forms/date/date-picker/date.utils.js";export{DEFAULT_DATE_LABELS,DatePicker,initialDay}from"./components/forms/date/date-picker/date-picker.comp.js";export{DateRangePicker}from"./components/forms/date/date-picker/date-range-picker.comp.js";export{DragNDrop,FileDropzone}from"./components/forms/file/drag-n-drop/drag-n-drop.comp.js";export{FilePreview}from"./components/forms/file/file-preview/file-preview.comp.js";export{FileImagePreview}from"./components/forms/file/file-image-preview/file-image-preview.comp.js";export{FilePreviewList}from"./components/forms/file/file-preview-list/file-preview-list.comp.js";export{FileImagePreviewList}from"./components/forms/file/file-image-preview-list/file-image-preview-list.comp.js";export{CustomInput,Input}from"./components/forms/input/input.comp.js";export{Select}from"./components/forms/select/select.comp.js";export{CustomSwitch,Switch}from"./components/forms/switch/switch.comp.js";export{CustomTextArea,TextArea}from"./components/forms/textarea/textarea.comp.js";export{SearchInput}from"./components/forms/search-input/search-input.comp.js";export{RadioGroup}from"./components/forms/radio-group/radio-group.comp.js";export{Icon}from"./components/icons/icon/icon.comp.js";export{LUCIDE_PREFIX,allIconsOptions,customIconsOptions,isLucideName,parseIconNameToLucide,parseIconNameToRemixIcon}from"./components/icons/icon/icon.utils.js";export{IconBox}from"./components/icons/icon-box/icon-box.comp.js";export{Image}from"./components/images/image/image.comp.js";export{Avatar}from"./components/images/avatar/avatar.comp.js";export{Accordion}from"./components/layout/accordion/accordion.comp.js";export{Box,CustomBox}from"./components/layout/box/box.comp.js";export{Modal}from"./components/layout/modal/modal.comp.js";export{Timeline}from"./components/layout/timeline/timeline.comp.js";export{TreeView,Treeview}from"./components/layout/treeview/treeview.comp.js";export{Popover}from"./components/layout/popover/popover.comp.js";export{Table}from"./components/layout/table/table.comp.js";export{Carousel,Slider}from"./components/layout/slider/slider.comp.js";export{Drawer}from"./components/layout/drawer/drawer.comp.js";export{Card}from"./components/layout/card/card.comp.js";export{TitleCard}from"./components/layout/title-card/title-card.comp.js";export{StatCard}from"./components/layout/stat-card/stat-card.comp.js";export{Divider}from"./components/layout/divider/divider.comp.js";export{Pagination}from"./components/navigation/pagination/pagination.comp.js";export{Tabs}from"./components/navigation/tabs/tabs.comp.js";export{TextLink}from"./components/navigation/text-link/text-link.comp.js";export{TablePagination}from"./components/navigation/table-pagination/table-pagination.comp.js";export{Breadcrumb}from"./components/navigation/breadcrumb/breadcrumb.comp.js";export{ActionMenu}from"./components/navigation/action-menu/action-menu.comp.js";export{Stepper}from"./components/navigation/stepper/stepper.comp.js";export{ViewToggle}from"./components/navigation/view-toggle/view-toggle.comp.js";export{NavigationCard}from"./components/navigation/navigation-card/navigation-card.comp.js";export{NavigationCards}from"./components/navigation/navigation-card/navigation-cards.comp.js";export{NavigationSections}from"./components/navigation/navigation-sections/navigation-sections.comp.js";export{Text}from"./components/typography/text/text.comp.js";export{useBreakpoint,useIsMobile,useIsTablet,useMediaQuery}from"./hooks/use-breakpoint.js";export{tokens}from"./theme/generated/tokens.js";export{createTheme}from"./theme/create-theme.js";export{CHART_COLOR_ORDER,CHART_OTHER_COLOR,getChartColors}from"./theme/chart-colors.js";export{SUPPORTED_CLIENT_FONTS,createClientTheme,getClientThemeIssues}from"./theme/client-theme.js";export{defaultTheme,legacyTheme}from"./theme/default-theme.js";export{GlobalStyle}from"./theme/global-styles.js";export{gradientBorder}from"./theme/gradient-border.js";export{breakpointValues,media}from"./theme/media.js";export{thinScrollbar,thinScrollbarOnHover}from"./theme/scrollbar.js";export{ThemeProvider}from"./theme/theme-provider.js";export{adjustColorBrightness,getContrastRatio,getLuminance,getReadableTextColor,getThemeColor,getThemeContrastColor,getThemeSize,getThemeSpacing,mixColors}from"./theme/theme.util.js";
2
2
  //# sourceMappingURL=index.js.map
@@ -0,0 +1,51 @@
1
+ import{keyframes as o,css as r}from"styled-components";const e=o`
2
+ to {
3
+ transform: translate(-50%, -50%) rotate(360deg);
4
+ }
5
+ `,t=({animated:o,width:t,radius:n,theme:a})=>{const i=a;return o?r`
6
+ position: relative;
7
+ isolation: isolate;
8
+ overflow: hidden;
9
+ border: none;
10
+ background: transparent;
11
+
12
+ &::before {
13
+ content: '';
14
+ position: absolute;
15
+ top: 50%;
16
+ left: 50%;
17
+ z-index: -2;
18
+ width: max(250%, 1200px);
19
+ aspect-ratio: 1;
20
+ background: conic-gradient(
21
+ ${i.colors.primary},
22
+ ${i.colors.secondary},
23
+ ${i.colors.primary}
24
+ );
25
+ transform: translate(-50%, -50%);
26
+ animation: ${e} 4s linear infinite;
27
+ will-change: transform;
28
+ }
29
+
30
+ &::after {
31
+ content: '';
32
+ position: absolute;
33
+ inset: ${t}px;
34
+ z-index: -1;
35
+ border-radius: max(0px, calc(${n} - ${t}px));
36
+ background: ${i.colors.white};
37
+ }
38
+
39
+ @media (prefers-reduced-motion: reduce) {
40
+ &::before {
41
+ animation: none;
42
+ }
43
+ }
44
+ `:r`
45
+ border: ${t}px solid transparent;
46
+ background:
47
+ linear-gradient(${i.colors.white}, ${i.colors.white})
48
+ padding-box,
49
+ ${i.colors.brand.gradient} border-box;
50
+ `};export{t as gradientBorder};
51
+ //# sourceMappingURL=gradient-border.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gradient-border.js","sources":["../../../src/theme/gradient-border.ts"],"sourcesContent":["import { css, DefaultTheme, keyframes } from 'styled-components'\n\nimport type { ThemeProps } from './theme.types'\n\nconst spin = keyframes`\n to {\n transform: translate(-50%, -50%) rotate(360deg);\n }\n`\n\n/** Opções da borda no gradiente da marca. */\nexport interface GradientBorderOptions {\n /** Gira as cores da marca devagar. Quem pediu menos movimento no sistema vê a borda parada. */\n animated?: boolean\n /** Grossura da borda em px. */\n width: number\n /** Raio externo da peça (ex. `'12px'`, `'9999px'`), para arredondar o fundo de dentro. */\n radius: string\n /** Tema do styled-components (o `theme` das props do styled). */\n theme: DefaultTheme | ThemeProps\n}\n\n/**\n * Borda no gradiente da marca (45°, roxo → teal), fixa ou girando. Fundo branco por dentro.\n * É a borda do `Card` com `gradientBorder` e do `IconBox` com `gradientBorder`.\n * A animada gira só uma camada com `transform`, sem repintar o conteúdo.\n * @example\n * const Box = styled.div`\n * ${({ theme }) => gradientBorder({ animated: true, width: 2, radius: theme.radius.full, theme })}\n * `\n */\nexport const gradientBorder = ({\n animated,\n width,\n radius,\n theme: styledTheme,\n}: GradientBorderOptions) => {\n const theme = styledTheme as ThemeProps\n return animated\n ? css`\n position: relative;\n isolation: isolate;\n overflow: hidden;\n border: none;\n background: transparent;\n\n &::before {\n content: '';\n position: absolute;\n top: 50%;\n left: 50%;\n z-index: -2;\n width: max(250%, 1200px);\n aspect-ratio: 1;\n background: conic-gradient(\n ${theme.colors.primary},\n ${theme.colors.secondary},\n ${theme.colors.primary}\n );\n transform: translate(-50%, -50%);\n animation: ${spin} 4s linear infinite;\n will-change: transform;\n }\n\n &::after {\n content: '';\n position: absolute;\n inset: ${width}px;\n z-index: -1;\n border-radius: max(0px, calc(${radius} - ${width}px));\n background: ${theme.colors.white};\n }\n\n @media (prefers-reduced-motion: reduce) {\n &::before {\n animation: none;\n }\n }\n `\n : css`\n border: ${width}px solid transparent;\n background:\n linear-gradient(${theme.colors.white}, ${theme.colors.white})\n padding-box,\n ${theme.colors.brand.gradient} border-box;\n `\n}\n"],"names":["spin","keyframes","gradientBorder","animated","width","radius","theme","styledTheme","css","colors","primary","secondary","white","brand","gradient"],"mappings":"uDAIA,MAAMA,EAAOC,CAAS;;;;EA2BTC,EAAiBA,EAC5BC,WACAC,QACAC,SACAC,MAAOC,MAEP,MAAMD,EAAQC,EACd,OAAOJ,EACHK,CAAG;;;;;;;;;;;;;;;;cAgBKF,EAAMG,OAAOC;cACbJ,EAAMG,OAAOE;cACbL,EAAMG,OAAOC;;;uBAGJV;;;;;;;mBAOJI;;yCAEsBC,OAAYD;wBAC7BE,EAAMG,OAAOG;;;;;;;;QAS/BJ,CAAG;kBACSJ;;4BAEUE,EAAMG,OAAOG,UAAUN,EAAMG,OAAOG;;YAEpDN,EAAMG,OAAOI,MAAMC;OACxB"}
package/llms-full.txt CHANGED
@@ -1,4 +1,4 @@
1
- # Blockforce Design System 2.0.3 (completo)
1
+ # Blockforce Design System 2.0.4 (completo)
2
2
 
3
3
  > Pacote `blockforce-design-system`. Storybook: https://designsystem.blockforce.ai
4
4
 
@@ -1331,6 +1331,7 @@ Props:
1331
1331
 
1332
1332
  Legenda de gráfico: bolinha na cor da série, nome e valor opcional.
1333
1333
  Use ao lado ou abaixo de qualquer gráfico; o DoughnutChart já monta a dele com a prop `legend`.
1334
+ `variant="square"` é a legenda das roscas das dashboards: quadradinho e "Nome: valor".
1334
1335
 
1335
1336
 
1336
1337
  Exemplo:
@@ -1339,12 +1340,19 @@ Exemplo:
1339
1340
  <ChartLegend items={[{ label: 'Aprovados', color: 'success', value: '60%' }]} />
1340
1341
  ```
1341
1342
 
1343
+ Exemplo:
1344
+
1345
+ ```tsx
1346
+ <ChartLegend variant="square" direction="column" items={[{ label: 'Pendentes', color: 'chart.purple', value: 850 }]} />
1347
+ ```
1348
+
1342
1349
  Documentação: https://designsystem.blockforce.ai/?path=/docs/gráficos-chartlegend--docs
1343
1350
 
1344
1351
  Props:
1345
1352
 
1346
1353
  - `items` (`ChartLegendItem[]`, obrigatória): Itens da legenda, na ordem do gráfico.
1347
1354
  - `direction` (`row` | `column`, padrão `row`): `row`: itens lado a lado, quebrando linha. `column`: um por linha, com o valor alinhado à direita.
1355
+ - `variant` (`square` | `dot`, padrão `dot`): Visual da legenda. - `dot`: bolinha, nome e valor em destaque (à direita no `column`). - `square`: quadradinho e "Nome: valor" na mesma linha, em texto pequeno. É o das roscas das dashboards da plataforma (cards por status).
1348
1356
 
1349
1357
  ### DoughnutChart (Gráficos)
1350
1358
 
@@ -1474,6 +1482,7 @@ Props:
1474
1482
 
1475
1483
  Ícone dentro de uma caixinha com borda e sombra leve. É o ícone dos títulos de card e dos números
1476
1484
  das dashboards. Sem `color`, o ícone vem no gradiente da marca.
1485
+ `shape="circle"` com `gradientBorder="animated"` é o ícone de um agente de IA ao lado do nome dele.
1477
1486
  Use para identificar um bloco; não use como botão (use IconButton).
1478
1487
 
1479
1488
 
@@ -1483,12 +1492,20 @@ Exemplo:
1483
1492
  <IconBox icon="file_list3" />
1484
1493
  ```
1485
1494
 
1495
+ Exemplo:
1496
+
1497
+ ```tsx
1498
+ <IconBox icon="robot2" shape="circle" gradientBorder="animated" />
1499
+ ```
1500
+
1486
1501
  Documentação: https://designsystem.blockforce.ai/?path=/docs/imagens-e-ícones-iconbox--docs
1487
1502
 
1488
1503
  Props:
1489
1504
 
1490
1505
  - `icon` (`IconsName`, valores em lib/ai/icons.txt, obrigatória): Ícone mostrado dentro da caixa.
1491
1506
  - `color` (`ThemeColors`, valores em lib/ai/tokens.md (theme.colors)): Cor do ícone (token do tema). Sem ela, o ícone usa o gradiente da marca.
1507
+ - `gradientBorder` (`boolean | "animated"`): Borda no gradiente da marca, como no Card. - `true`: borda fixa (1px), para destacar. - `'animated'`: borda (2px) com as cores da marca girando devagar, para algo vivo ou em andamento (um agente trabalhando). Use um por tela; quem pediu menos movimento no sistema vê a borda parada.
1508
+ - `shape` (`circle` | `square`, padrão `square`): Formato da caixa. `square` é o dos títulos de card e números; `circle` é para quem age (agente de IA, assistente), ao lado de um nome.
1492
1509
  - `size` (`number`, padrão `24`): Tamanho do ícone em px. A caixa acompanha (ícone + 10px de cada lado).
1493
1510
 
1494
1511
  ### Image (Imagens e ícones)
@@ -2036,6 +2053,7 @@ Props:
2036
2053
  - `getClientThemeIssues`: Confere a marca do cliente sem montar o tema. - As cores precisam estar em hex com `#` (`#1D428A` ou `#14A`), sem transparência. - `primary` precisa de contraste 4.5:1 com texto branco (é fundo de botão). - `accent` precisa de contraste 3:1 com o fundo do card (é detalhe gráfico). - `fontFamily` precisa estar na lista suportada.
2037
2054
  - `createClientTheme`: Monta o tema com a marca de um cliente sobre a base Blockforce. Estrutura, espaços, estados e acessibilidade continuam os da Blockforce; só cor principal, cor de destaque e fonte mudam. Valor com problema (ver `getClientThemeIssues`) é ignorado e o padrão Blockforce fica no lugar. O gradiente só usa as cores do cliente quando as duas passam; com uma só, fica o gradiente Blockforce, para não misturar as marcas. A paleta de gráfico (`colors.chart`) não muda. Sem opções, devolve o tema Blockforce.
2038
2055
  - `defaultTheme`: Tema padrão Blockforce. Montado a partir dos tokens; para mudar um valor, edite `tokens/*.tokens.json`.
2056
+ - `gradientBorder`: Borda no gradiente da marca (45°, roxo → teal), fixa ou girando. Fundo branco por dentro. É a borda do `Card` com `gradientBorder` e do `IconBox` com `gradientBorder`. A animada gira só uma camada com `transform`, sem repintar o conteúdo.
2039
2057
  - `breakpointValues`: Larguras de tela em pixels, como número.
2040
2058
  - `media`: Media queries prontas para usar dentro de styled-components. A largura do breakpoint pertence ao lado de baixo: `down('md')` inclui 768px, `up('md')` começa em 769px.
2041
2059
  - `thinScrollbar`: Barra de rolagem fina, a mesma em toda área que rola (regra de ouro 12): 4px, polegar `grey_4` (`grey_3` no hover), trilho transparente e raio `full`. Use dentro do styled de qualquer contêiner com `overflow: auto`, em vez de escrever `::-webkit-scrollbar`.
package/llms.txt CHANGED
@@ -1,4 +1,4 @@
1
- # Blockforce Design System 2.0.3
1
+ # Blockforce Design System 2.0.4
2
2
 
3
3
  > Componentes React (styled-components) e tokens visuais da Blockforce. Pacote `blockforce-design-system`. Storybook com exemplos e props: https://designsystem.blockforce.ai
4
4
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "blockforce-design-system",
3
- "version": "2.0.4",
3
+ "version": "2.0.5",
4
4
  "description": "Design system da Blockforce: componentes React, tema e tokens da marca.",
5
5
  "repository": {
6
6
  "type": "git",