blockforce-design-system 2.0.4 → 2.0.6

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 (49) hide show
  1. package/MIGRATION.md +41 -33
  2. package/lib/ai/components.json +51 -10
  3. package/lib/ai/tokens.md +1 -1
  4. package/lib/commonjs/components/charts/bar-chart/bar-chart.comp.js +1 -1
  5. package/lib/commonjs/components/charts/bar-chart/bar-chart.comp.js.map +1 -1
  6. package/lib/commonjs/components/charts/chart-legend/chart-legend.comp.js +1 -1
  7. package/lib/commonjs/components/charts/chart-legend/chart-legend.comp.js.map +1 -1
  8. package/lib/commonjs/components/charts/chart-legend/chart-legend.styles.js +22 -15
  9. package/lib/commonjs/components/charts/chart-legend/chart-legend.styles.js.map +1 -1
  10. package/lib/commonjs/components/charts/doughnut-chart/doughnut-chart.comp.js +1 -1
  11. package/lib/commonjs/components/charts/doughnut-chart/doughnut-chart.comp.js.map +1 -1
  12. package/lib/commonjs/components/charts/line-chart/line-chart.comp.js +1 -1
  13. package/lib/commonjs/components/charts/line-chart/line-chart.comp.js.map +1 -1
  14. package/lib/commonjs/components/charts/treemap-chart/treemap-chart.comp.js +1 -1
  15. package/lib/commonjs/components/charts/treemap-chart/treemap-chart.comp.js.map +1 -1
  16. package/lib/commonjs/components/icons/icon-box/icon-box.comp.js +1 -1
  17. package/lib/commonjs/components/icons/icon-box/icon-box.comp.js.map +1 -1
  18. package/lib/commonjs/components/icons/icon-box/icon-box.styles.js +7 -4
  19. package/lib/commonjs/components/icons/icon-box/icon-box.styles.js.map +1 -1
  20. package/lib/commonjs/components/layout/card/card.styles.js +3 -52
  21. package/lib/commonjs/components/layout/card/card.styles.js.map +1 -1
  22. package/lib/commonjs/index.js +1 -1
  23. package/lib/commonjs/theme/gradient-border.js +51 -0
  24. package/lib/commonjs/theme/gradient-border.js.map +1 -0
  25. package/lib/index.d.ts +88 -15
  26. package/lib/module/components/charts/bar-chart/bar-chart.comp.js +1 -1
  27. package/lib/module/components/charts/bar-chart/bar-chart.comp.js.map +1 -1
  28. package/lib/module/components/charts/chart-legend/chart-legend.comp.js +1 -1
  29. package/lib/module/components/charts/chart-legend/chart-legend.comp.js.map +1 -1
  30. package/lib/module/components/charts/chart-legend/chart-legend.styles.js +21 -14
  31. package/lib/module/components/charts/chart-legend/chart-legend.styles.js.map +1 -1
  32. package/lib/module/components/charts/doughnut-chart/doughnut-chart.comp.js +1 -1
  33. package/lib/module/components/charts/doughnut-chart/doughnut-chart.comp.js.map +1 -1
  34. package/lib/module/components/charts/line-chart/line-chart.comp.js +1 -1
  35. package/lib/module/components/charts/line-chart/line-chart.comp.js.map +1 -1
  36. package/lib/module/components/charts/treemap-chart/treemap-chart.comp.js +1 -1
  37. package/lib/module/components/charts/treemap-chart/treemap-chart.comp.js.map +1 -1
  38. package/lib/module/components/icons/icon-box/icon-box.comp.js +1 -1
  39. package/lib/module/components/icons/icon-box/icon-box.comp.js.map +1 -1
  40. package/lib/module/components/icons/icon-box/icon-box.styles.js +7 -4
  41. package/lib/module/components/icons/icon-box/icon-box.styles.js.map +1 -1
  42. package/lib/module/components/layout/card/card.styles.js +3 -52
  43. package/lib/module/components/layout/card/card.styles.js.map +1 -1
  44. package/lib/module/index.js +1 -1
  45. package/lib/module/theme/gradient-border.js +51 -0
  46. package/lib/module/theme/gradient-border.js.map +1 -0
  47. package/llms-full.txt +36 -5
  48. package/llms.txt +10 -2
  49. package/package.json +1 -1
@@ -1,2 +1,2 @@
1
- "use strict";var e=require("react/jsx-runtime"),t=require("styled-components"),r=require("./treemap-chart.styles.js"),n=require("../../../node_modules/recharts/es6/component/ResponsiveContainer.js"),a=require("../../../node_modules/recharts/es6/chart/Treemap.js"),o=require("../../../node_modules/recharts/es6/component/Tooltip.js"),i=require("../../typography/text/text.comp.js");const l="#cccccc";function s({x:r=0,y:n=0,width:a=0,height:o=0,name:i,value:s,fill:c,valueFormatter:h}){const m=a>=60&&o>=40,d=a>=60&&o>=60,u=t.useTheme(),x=function(e){const t=e.replace("#","");if(6!==t.length)return!1;const r=parseInt(t.slice(0,2),16),n=parseInt(t.slice(2,4),16),a=parseInt(t.slice(4,6),16);return(.299*r+.587*n+.114*a)/255<.5}(c??l),p=x?u.colors.white:u.colors.grey_1,j=x?"rgba(255,255,255,0.75)":u.colors.grey_2;return e.jsxs("g",{children:[e.jsx("rect",{x:r+1,y:n+1,width:Math.max(0,a-2),height:Math.max(0,o-2),fill:c??l,rx:3,ry:3}),m&&i&&e.jsx("text",{x:r+a/2,y:n+o/2-(d?10:0),textAnchor:"middle",dominantBaseline:"middle",fill:p,fontSize:Math.min(13,Math.max(9,a/10)),fontWeight:600,pointerEvents:"none",children:i.length>Math.floor(a/7)?`${i.slice(0,Math.floor(a/7)-1)}…`:i}),d&&null!=s&&e.jsx("text",{x:r+a/2,y:n+o/2+12,textAnchor:"middle",dominantBaseline:"middle",fill:j,fontSize:Math.min(11,Math.max(9,a/12)),pointerEvents:"none",children:h?h(s):s})]})}const c=({active:t,payload:n,valueFormatter:a})=>{if(!t||!n?.length)return null;const o=n[0].payload;return e.jsxs(r.CustomTooltip,{direction:"column",gap:1,children:[e.jsx(i.Text,{size:"small",fontWeight:500,children:o.name}),e.jsx(i.Text,{size:"small",color:"grey_2",children:a?a(o.value):o.value})]})};exports.TreemapChart=({width:t="100%",height:i=300,data:h,valueFormatter:m})=>{const d=h.map((e=>({name:e.name,value:e.value>0?e.value:.01,fill:e.color??l})));return e.jsx(r.ChartContainer,{"data-testid":"treemap-chart",width:t,height:i,children:e.jsx(n.ResponsiveContainer,{width:"100%",height:"100%",children:e.jsx(a.Treemap,{data:d,dataKey:"value",content:t=>e.jsx(s,{...t,valueFormatter:m}),children:e.jsx(o.Tooltip,{content:t=>e.jsx(c,{...t,valueFormatter:m})})})})})};
1
+ "use strict";var e=require("react/jsx-runtime"),t=require("styled-components"),r=require("./treemap-chart.styles.js"),n=require("../../../node_modules/recharts/es6/component/ResponsiveContainer.js"),a=require("../../../node_modules/recharts/es6/chart/Treemap.js"),o=require("../../../node_modules/recharts/es6/component/Tooltip.js"),l=require("../../../theme/chart-colors.js"),i=require("../../../theme/theme.util.js"),s=require("../../typography/text/text.comp.js");function h({x:r=0,y:n=0,width:a=0,height:o=0,name:l,value:s,fill:h,valueFormatter:c}){const m=a>=60&&o>=40,u=a>=60&&o>=60,d=t.useTheme(),x=function(e){const t=e.replace("#","");if(6!==t.length)return!1;const r=parseInt(t.slice(0,2),16),n=parseInt(t.slice(2,4),16),a=parseInt(t.slice(4,6),16);return(.299*r+.587*n+.114*a)/255<.5}(h??i.getThemeColor("chart.grey",d)),p=x?d.colors.white:d.colors.grey_1,g=x?"rgba(255,255,255,0.75)":d.colors.grey_2;return e.jsxs("g",{children:[e.jsx("rect",{x:r+1,y:n+1,width:Math.max(0,a-2),height:Math.max(0,o-2),fill:h??i.getThemeColor("chart.grey",d),rx:3,ry:3}),m&&l&&e.jsx("text",{x:r+a/2,y:n+o/2-(u?10:0),textAnchor:"middle",dominantBaseline:"middle",fill:p,fontSize:Math.min(13,Math.max(9,a/10)),fontWeight:600,pointerEvents:"none",children:l.length>Math.floor(a/7)?`${l.slice(0,Math.floor(a/7)-1)}…`:l}),u&&null!=s&&e.jsx("text",{x:r+a/2,y:n+o/2+12,textAnchor:"middle",dominantBaseline:"middle",fill:g,fontSize:Math.min(11,Math.max(9,a/12)),pointerEvents:"none",children:c?c(s):s})]})}const c=({active:t,payload:n,valueFormatter:a})=>{if(!t||!n?.length)return null;const o=n[0].payload;return e.jsxs(r.CustomTooltip,{direction:"column",gap:1,children:[e.jsx(s.Text,{size:"small",fontWeight:500,children:o.name}),e.jsx(s.Text,{size:"small",color:"grey_2",children:a?a(o.value):o.value})]})};exports.TreemapChart=({width:s="100%",height:m=300,data:u,valueFormatter:d})=>{const x=t.useTheme(),p=l.CHART_COLOR_ORDER.map((e=>i.getThemeColor(`chart.${e}`,x))),g=u.map(((e,t)=>({name:e.name,value:e.value>0?e.value:.01,fill:i.getThemeColor(e.color??p[t%p.length],x)})));return e.jsx(r.ChartContainer,{"data-testid":"treemap-chart",width:s,height:m,children:e.jsx(n.ResponsiveContainer,{width:"100%",height:"100%",children:e.jsx(a.Treemap,{data:g,dataKey:"value",content:t=>e.jsx(h,{...t,valueFormatter:d}),children:e.jsx(o.Tooltip,{content:t=>e.jsx(c,{...t,valueFormatter:d})})})})})};
2
2
  //# sourceMappingURL=treemap-chart.comp.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"treemap-chart.comp.js","sources":["../../../../../src/components/charts/treemap-chart/treemap-chart.comp.tsx"],"sourcesContent":["import { ResponsiveContainer, Tooltip, Treemap } from 'recharts'\nimport { useTheme } from 'styled-components'\n\nimport { Text } from '../../typography'\n\nimport { TreemapChartProps } from './treemap-chart.types'\n\nimport * as Styles from './treemap-chart.styles'\n\ninterface ContentProps {\n x?: number\n y?: number\n width?: number\n height?: number\n name?: string\n value?: number\n fill?: string\n}\n\nconst DEFAULT_FILL = '#cccccc'\nconst MIN_WIDTH_FOR_TEXT = 60\nconst MIN_HEIGHT_FOR_TEXT = 40\nconst MIN_HEIGHT_FOR_VALUE = 60\n\nfunction CustomContent({\n x = 0,\n y = 0,\n width = 0,\n height = 0,\n name,\n value,\n fill,\n valueFormatter,\n}: ContentProps & { valueFormatter?: (v: number) => string }) {\n const showText = width >= MIN_WIDTH_FOR_TEXT && height >= MIN_HEIGHT_FOR_TEXT\n const showValue =\n width >= MIN_WIDTH_FOR_TEXT && height >= MIN_HEIGHT_FOR_VALUE\n\n const theme = useTheme()\n const isDark = isDarkColor(fill ?? DEFAULT_FILL)\n const textColor = isDark ? theme.colors.white : theme.colors.grey_1\n const subTextColor = isDark ? 'rgba(255,255,255,0.75)' : theme.colors.grey_2\n\n return (\n <g>\n <rect\n x={x + 1}\n y={y + 1}\n width={Math.max(0, width - 2)}\n height={Math.max(0, height - 2)}\n fill={fill ?? DEFAULT_FILL}\n rx={3}\n ry={3}\n />\n {showText && name && (\n <text\n x={x + width / 2}\n y={y + height / 2 - (showValue ? 10 : 0)}\n textAnchor=\"middle\"\n dominantBaseline=\"middle\"\n fill={textColor}\n fontSize={Math.min(13, Math.max(9, width / 10))}\n fontWeight={600}\n pointerEvents=\"none\"\n >\n {name.length > Math.floor(width / 7)\n ? `${name.slice(0, Math.floor(width / 7) - 1)}…`\n : name}\n </text>\n )}\n {showValue && value != null && (\n <text\n x={x + width / 2}\n y={y + height / 2 + 12}\n textAnchor=\"middle\"\n dominantBaseline=\"middle\"\n fill={subTextColor}\n fontSize={Math.min(11, Math.max(9, width / 12))}\n pointerEvents=\"none\"\n >\n {valueFormatter ? valueFormatter(value) : value}\n </text>\n )}\n </g>\n )\n}\n\nfunction isDarkColor(hex: string): boolean {\n const clean = hex.replace('#', '')\n if (clean.length !== 6) return false\n const r = parseInt(clean.slice(0, 2), 16)\n const g = parseInt(clean.slice(2, 4), 16)\n const b = parseInt(clean.slice(4, 6), 16)\n const luminance = (0.299 * r + 0.587 * g + 0.114 * b) / 255\n return luminance < 0.5\n}\n\nconst CustomTooltip = ({\n active,\n payload,\n valueFormatter,\n}: {\n active?: boolean\n payload?: Array<{ payload: { name: string; value: number; fill: string } }>\n valueFormatter?: (v: number) => string\n}) => {\n if (!active || !payload?.length) return null\n const item = payload[0].payload\n return (\n <Styles.CustomTooltip direction=\"column\" gap={1}>\n <Text size=\"small\" fontWeight={500}>\n {item.name}\n </Text>\n <Text size=\"small\" color=\"grey_2\">\n {valueFormatter ? valueFormatter(item.value) : item.value}\n </Text>\n </Styles.CustomTooltip>\n )\n}\n\n/**\n * Retângulos com área proporcional ao valor, para mostrar o peso de muitas categorias de uma vez (ex.: volume por material).\n * Para poucas categorias use BarChart ou DoughnutChart.\n * @example <TreemapChart data={[{ name: 'Algodão', value: 120 }, { name: 'Poliéster', value: 40 }]} />\n */\nexport const TreemapChart = ({\n width = '100%',\n height = 300,\n data,\n valueFormatter,\n}: TreemapChartProps) => {\n const rechartsData = data.map((item) => ({\n name: item.name,\n value: item.value > 0 ? item.value : 0.01,\n fill: item.color ?? DEFAULT_FILL,\n }))\n\n return (\n <Styles.ChartContainer\n data-testid=\"treemap-chart\"\n width={width}\n height={height}\n >\n <ResponsiveContainer width=\"100%\" height=\"100%\">\n {/* eslint-disable-next-line @typescript-eslint/no-explicit-any */}\n <Treemap\n data={rechartsData}\n dataKey=\"value\"\n content={\n ((props: ContentProps) => (\n <CustomContent {...props} valueFormatter={valueFormatter} />\n )) as any\n }\n >\n <Tooltip\n content={\n ((props: any) => (\n <CustomTooltip {...props} valueFormatter={valueFormatter} />\n )) as any\n }\n />\n </Treemap>\n </ResponsiveContainer>\n </Styles.ChartContainer>\n )\n}\n"],"names":["DEFAULT_FILL","CustomContent","x","y","width","height","name","value","fill","valueFormatter","showText","showValue","theme","useTheme","isDark","hex","clean","replace","length","r","parseInt","slice","g","b","isDarkColor","textColor","colors","white","grey_1","subTextColor","grey_2","_jsxs","children","_jsx","jsx","Math","max","rx","ry","textAnchor","dominantBaseline","fontSize","min","fontWeight","pointerEvents","floor","CustomTooltip","active","payload","item","Styles","direction","gap","Text","size","color","TreemapChart","data","rechartsData","map","ResponsiveContainer","Treemap","dataKey","content","props","Tooltip"],"mappings":"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"}
1
+ {"version":3,"file":"treemap-chart.comp.js","sources":["../../../../../src/components/charts/treemap-chart/treemap-chart.comp.tsx"],"sourcesContent":["import { ResponsiveContainer, Tooltip, Treemap } from 'recharts'\nimport { useTheme } from 'styled-components'\n\nimport { CHART_COLOR_ORDER, getThemeColor } from '../../../theme'\nimport { Text } from '../../typography'\n\nimport { TreemapChartProps } from './treemap-chart.types'\n\nimport * as Styles from './treemap-chart.styles'\n\ninterface ContentProps {\n x?: number\n y?: number\n width?: number\n height?: number\n name?: string\n value?: number\n fill?: string\n}\n\nconst MIN_WIDTH_FOR_TEXT = 60\nconst MIN_HEIGHT_FOR_TEXT = 40\nconst MIN_HEIGHT_FOR_VALUE = 60\n\nfunction CustomContent({\n x = 0,\n y = 0,\n width = 0,\n height = 0,\n name,\n value,\n fill,\n valueFormatter,\n}: ContentProps & { valueFormatter?: (v: number) => string }) {\n const showText = width >= MIN_WIDTH_FOR_TEXT && height >= MIN_HEIGHT_FOR_TEXT\n const showValue =\n width >= MIN_WIDTH_FOR_TEXT && height >= MIN_HEIGHT_FOR_VALUE\n\n const theme = useTheme()\n const isDark = isDarkColor(fill ?? getThemeColor('chart.grey', theme))\n const textColor = isDark ? theme.colors.white : theme.colors.grey_1\n const subTextColor = isDark ? 'rgba(255,255,255,0.75)' : theme.colors.grey_2\n\n return (\n <g>\n <rect\n x={x + 1}\n y={y + 1}\n width={Math.max(0, width - 2)}\n height={Math.max(0, height - 2)}\n fill={fill ?? getThemeColor('chart.grey', theme)}\n rx={3}\n ry={3}\n />\n {showText && name && (\n <text\n x={x + width / 2}\n y={y + height / 2 - (showValue ? 10 : 0)}\n textAnchor=\"middle\"\n dominantBaseline=\"middle\"\n fill={textColor}\n fontSize={Math.min(13, Math.max(9, width / 10))}\n fontWeight={600}\n pointerEvents=\"none\"\n >\n {name.length > Math.floor(width / 7)\n ? `${name.slice(0, Math.floor(width / 7) - 1)}…`\n : name}\n </text>\n )}\n {showValue && value != null && (\n <text\n x={x + width / 2}\n y={y + height / 2 + 12}\n textAnchor=\"middle\"\n dominantBaseline=\"middle\"\n fill={subTextColor}\n fontSize={Math.min(11, Math.max(9, width / 12))}\n pointerEvents=\"none\"\n >\n {valueFormatter ? valueFormatter(value) : value}\n </text>\n )}\n </g>\n )\n}\n\nfunction isDarkColor(hex: string): boolean {\n const clean = hex.replace('#', '')\n if (clean.length !== 6) return false\n const r = parseInt(clean.slice(0, 2), 16)\n const g = parseInt(clean.slice(2, 4), 16)\n const b = parseInt(clean.slice(4, 6), 16)\n const luminance = (0.299 * r + 0.587 * g + 0.114 * b) / 255\n return luminance < 0.5\n}\n\nconst CustomTooltip = ({\n active,\n payload,\n valueFormatter,\n}: {\n active?: boolean\n payload?: Array<{ payload: { name: string; value: number; fill: string } }>\n valueFormatter?: (v: number) => string\n}) => {\n if (!active || !payload?.length) return null\n const item = payload[0].payload\n return (\n <Styles.CustomTooltip direction=\"column\" gap={1}>\n <Text size=\"small\" fontWeight={500}>\n {item.name}\n </Text>\n <Text size=\"small\" color=\"grey_2\">\n {valueFormatter ? valueFormatter(item.value) : item.value}\n </Text>\n </Styles.CustomTooltip>\n )\n}\n\n/**\n * Retângulos com área proporcional ao valor, para mostrar o peso de muitas categorias de uma vez (ex.: volume por material).\n * Para poucas categorias use BarChart ou DoughnutChart.\n * Cor de cada bloco pela paleta de gráfico (`color: 'chart.lilac'`); sem cor, segue a ordem de\n * `getChartColors`.\n * @example <TreemapChart data={[{ name: 'Algodão', value: 120 }, { name: 'Poliéster', value: 40 }]} />\n */\nexport const TreemapChart = ({\n width = '100%',\n height = 300,\n data,\n valueFormatter,\n}: TreemapChartProps) => {\n const theme = useTheme()\n const chartColors = CHART_COLOR_ORDER.map((name) =>\n getThemeColor(`chart.${name}`, theme),\n )\n const rechartsData = data.map((item, index) => ({\n name: item.name,\n value: item.value > 0 ? item.value : 0.01,\n fill: getThemeColor(\n item.color ?? chartColors[index % chartColors.length],\n theme,\n ),\n }))\n\n return (\n <Styles.ChartContainer\n data-testid=\"treemap-chart\"\n width={width}\n height={height}\n >\n <ResponsiveContainer width=\"100%\" height=\"100%\">\n {/* eslint-disable-next-line @typescript-eslint/no-explicit-any */}\n <Treemap\n data={rechartsData}\n dataKey=\"value\"\n content={\n ((props: ContentProps) => (\n <CustomContent {...props} valueFormatter={valueFormatter} />\n )) as any\n }\n >\n <Tooltip\n content={\n ((props: any) => (\n <CustomTooltip {...props} valueFormatter={valueFormatter} />\n )) as any\n }\n />\n </Treemap>\n </ResponsiveContainer>\n </Styles.ChartContainer>\n )\n}\n"],"names":["CustomContent","x","y","width","height","name","value","fill","valueFormatter","showText","showValue","theme","useTheme","isDark","hex","clean","replace","length","r","parseInt","slice","g","b","isDarkColor","getThemeColor","textColor","colors","white","grey_1","subTextColor","grey_2","_jsxs","children","_jsx","jsx","Math","max","rx","ry","textAnchor","dominantBaseline","fontSize","min","fontWeight","pointerEvents","floor","CustomTooltip","active","payload","item","Styles","direction","gap","Text","size","color","TreemapChart","data","chartColors","CHART_COLOR_ORDER","map","rechartsData","index","ResponsiveContainer","Treemap","dataKey","content","props","Tooltip"],"mappings":"mdAwBA,SAASA,GAAcC,EACrBA,EAAI,EAACC,EACLA,EAAI,EAACC,MACLA,EAAQ,EAACC,OACTA,EAAS,EAACC,KACVA,EAAIC,MACJA,EAAKC,KACLA,EAAIC,eACJA,IAEA,MAAMC,EAAWN,GAdQ,IAcuBC,GAbtB,GAcpBM,EACJP,GAhBuB,IAgBQC,GAdN,GAgBrBO,EAAQC,EAAAA,WACRC,EAgDR,SAAqBC,GACnB,MAAMC,EAAQD,EAAIE,QAAQ,IAAK,IAC/B,GAAqB,IAAjBD,EAAME,OAAc,OAAO,EAC/B,MAAMC,EAAIC,SAASJ,EAAMK,MAAM,EAAG,GAAI,IAChCC,EAAIF,SAASJ,EAAMK,MAAM,EAAG,GAAI,IAChCE,EAAIH,SAASJ,EAAMK,MAAM,EAAG,GAAI,IAEtC,OADmB,KAAQF,EAAI,KAAQG,EAAI,KAAQC,GAAK,IACrC,EACrB,CAxDiBC,CAAYhB,GAAQiB,EAAaA,cAAC,aAAcb,IACzDc,EAAYZ,EAASF,EAAMe,OAAOC,MAAQhB,EAAMe,OAAOE,OACvDC,EAAehB,EAAS,yBAA2BF,EAAMe,OAAOI,OAEtE,OACEC,EAAAA,KAAA,IAAA,CAAAC,SAAA,CACEC,EACEC,IAAA,OAAA,CAAAjC,EAAGA,EAAI,EACPC,EAAGA,EAAI,EACPC,MAAOgC,KAAKC,IAAI,EAAGjC,EAAQ,GAC3BC,OAAQ+B,KAAKC,IAAI,EAAGhC,EAAS,GAC7BG,KAAMA,GAAQiB,gBAAc,aAAcb,GAC1C0B,GAAI,EACJC,GAAI,IAEL7B,GAAYJ,GACX4B,EAAAA,IACE,OAAA,CAAAhC,EAAGA,EAAIE,EAAQ,EACfD,EAAGA,EAAIE,EAAS,GAAKM,EAAY,GAAK,GACtC6B,WAAW,SACXC,iBAAiB,SACjBjC,KAAMkB,EACNgB,SAAUN,KAAKO,IAAI,GAAIP,KAAKC,IAAI,EAAGjC,EAAQ,KAC3CwC,WAAY,IACZC,cAAc,OAAMZ,SAEnB3B,EAAKY,OAASkB,KAAKU,MAAM1C,EAAQ,GAC3B,GAAAE,EAAKe,MAAM,EAAGe,KAAKU,MAAM1C,EAAQ,GAAK,MACzCE,IAGPK,GAAsB,MAATJ,GACZ2B,EAAAA,IAAA,OAAA,CACEhC,EAAGA,EAAIE,EAAQ,EACfD,EAAGA,EAAIE,EAAS,EAAI,GACpBmC,WAAW,SACXC,iBAAiB,SACjBjC,KAAMsB,EACNY,SAAUN,KAAKO,IAAI,GAAIP,KAAKC,IAAI,EAAGjC,EAAQ,KAC3CyC,cAAc,OAEbZ,SAAAxB,EAAiBA,EAAeF,GAASA,MAKpD,CAYA,MAAMwC,EAAgBA,EACpBC,SACAC,UACAxC,qBAMA,IAAKuC,IAAWC,GAAS/B,OAAQ,OAAO,KACxC,MAAMgC,EAAOD,EAAQ,GAAGA,QACxB,OACEjB,EAAAA,KAACmB,EAAAA,cAAoB,CAACC,UAAU,SAASC,IAAK,EAACpB,SAAA,CAC7CC,EAACC,IAAAmB,OAAK,CAAAC,KAAK,QAAQX,WAAY,IAC5BX,SAAAiB,EAAK5C,OAER4B,EAACC,IAAAmB,OAAK,CAAAC,KAAK,QAAQC,MAAM,SACtBvB,SAAAxB,EAAiBA,EAAeyC,EAAK3C,OAAS2C,EAAK3C,UAEjC,uBAWCkD,EAC1BrD,QAAQ,OACRC,SAAS,IACTqD,OACAjD,qBAEA,MAAMG,EAAQC,EAAAA,WACR8C,EAAcC,EAAAA,kBAAkBC,KAAKvD,GACzCmB,EAAAA,uBAAuBnB,IAAQM,KAE3BkD,EAAeJ,EAAKG,KAAI,CAACX,EAAMa,KAAW,CAC9CzD,KAAM4C,EAAK5C,KACXC,MAAO2C,EAAK3C,MAAQ,EAAI2C,EAAK3C,MAAQ,IACrCC,KAAMiB,EAAAA,cACJyB,EAAKM,OAASG,EAAYI,EAAQJ,EAAYzC,QAC9CN,OAIJ,OACEsB,EAAAA,IAACiB,EAAAA,eAAqB,CAAA,cACR,gBACZ/C,MAAOA,EACPC,OAAQA,EAER4B,SAAAC,EAAAC,IAAC6B,sBAAoB,CAAA5D,MAAM,OAAOC,OAAO,OAEvC4B,SAAAC,EAAAC,IAAC8B,UACC,CAAAP,KAAMI,EACNI,QAAQ,QACRC,QACIC,GACAlC,EAAAC,IAAClC,EAAkB,IAAAmE,EAAO3D,eAAgBA,IAI9CwB,SAAAC,EAAAC,IAACkC,UACC,CAAAF,QACIC,GACAlC,MAACa,EAAa,IAAKqB,EAAO3D,eAAgBA,WAM9B"}
@@ -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: {
@@ -881,8 +904,12 @@ interface DoughnutChartProps {
881
904
  interface PartsProps {
882
905
  /** Numeric value of this segment */
883
906
  value: number;
884
- /** Color of the segment (CSS color value, e.g. '#FF0000' or theme token) */
885
- color: string;
907
+ /**
908
+ * Cor da fatia, da paleta de gráfico: `'chart.blue'` ou `theme.colors.chart.blue`. Vale também
909
+ * quando a fatia é um status (aprovado, pendente): gráfico não usa `state.*`.
910
+ * Sem cor, segue a ordem de `getChartColors`.
911
+ */
912
+ color?: ThemeColors | string;
886
913
  /** Formatted display string shown in tooltip (e.g. '45%') */
887
914
  display?: string;
888
915
  /** Name/label of this segment shown in tooltip */
@@ -894,7 +921,9 @@ interface PartsProps {
894
921
  * `parts` são as fatias; o que faltar para chegar em `totalValue` aparece em cinza.
895
922
  * `legend` mostra a legenda das fatias com nome ao lado (`side`) ou abaixo (`bottom`).
896
923
  * Use com até 5 fatias. Com mais categorias use BarChart.
897
- * @example <DoughnutChart totalValue={100} parts={[{ value: 60, color: '#27AE60', name: 'Aprovados' }]} />
924
+ * As fatias usam a paleta de gráfico (`chart.*`), mesmo quando cada uma é um status: passe o nome
925
+ * (`color: 'chart.blue'`) ou deixe sem cor, que a rosca segue a ordem de `getChartColors`.
926
+ * @example <DoughnutChart totalValue={100} parts={[{ value: 60, color: 'chart.blue', name: 'Aprovados' }]} />
898
927
  */
899
928
  declare const DoughnutChart: ({ size, totalValue, parts, fontSize, showTotalValue, showTooltip, tooltipValueFormatter, disableAnimation, customContent, legend, }: DoughnutChartProps) => react_jsx_runtime.JSX.Element;
900
929
 
@@ -904,8 +933,12 @@ interface BarChartData {
904
933
  name: string;
905
934
  /** Numeric value of the bar */
906
935
  value: number;
907
- /** Custom color for this bar (CSS color value) */
908
- color?: string;
936
+ /**
937
+ * Cor da barra, da paleta de gráfico: `'chart.purple'` ou `theme.colors.chart.purple`. Vale
938
+ * também quando a barra é um status: gráfico não usa `state.*`.
939
+ * @default 'secondary'
940
+ */
941
+ color?: ThemeColors | string;
909
942
  }
910
943
  /** Props for the BarChart component */
911
944
  interface BarChartProps {
@@ -939,6 +972,7 @@ interface BarChartProps {
939
972
  * Gráfico de barras para comparar valores entre categorias (ex.: emissões por fornecedor).
940
973
  * Cada item de `data` é uma barra, com `name` e `value`.
941
974
  * Para evolução no tempo use LineChart; para partes de um total use DoughnutChart.
975
+ * Cor da barra pela paleta de gráfico (`color: 'chart.purple'`), mesmo quando a barra é um status.
942
976
  * @example <BarChart data={[{ name: 'Jan', value: 10 }, { name: 'Fev', value: 14 }]} />
943
977
  */
944
978
  declare const BarChart: ({ width, height, data, showGrid, xAxisLabel, yAxisLabel, yAxisFormatter, barSize, radius, showLabels, labelFormatter, barCategoryGap, }: BarChartProps) => react_jsx_runtime.JSX.Element;
@@ -956,8 +990,12 @@ interface LineChartSeries {
956
990
  dataKey: string;
957
991
  /** Display name for the legend */
958
992
  name: string;
959
- /** Line color (CSS color value, e.g. '#FF0000') */
960
- color: string;
993
+ /**
994
+ * Cor da linha, da paleta de gráfico: `'chart.purple'` ou `theme.colors.chart.purple`. Vale
995
+ * também quando a série é um status (pendente, concluído): gráfico não usa `state.*`.
996
+ * Sem cor, segue a ordem de `getChartColors`.
997
+ */
998
+ color?: ThemeColors | string;
961
999
  /** Stroke width in pixels
962
1000
  * @default 2
963
1001
  */
@@ -989,7 +1027,7 @@ interface LineChartProps {
989
1027
  * Gráfico de linhas para mostrar evolução no tempo, com uma ou mais séries (`series`).
990
1028
  * `showArea` preenche a área abaixo da linha.
991
1029
  * Para comparar categorias sem ordem de tempo use BarChart.
992
- * @example <LineChart data={dados} series={[{ dataKey: 'total', name: 'Total', color: '#6633CC' }]} />
1030
+ * @example <LineChart data={dados} series={[{ dataKey: 'total', name: 'Total', color: 'chart.purple' }]} />
993
1031
  */
994
1032
  declare const LineChart: ({ width, height, data, series, showArea, showGrid, xAxisLabel, yAxisLabel, yAxisFormatter, }: LineChartProps) => react_jsx_runtime.JSX.Element;
995
1033
 
@@ -999,8 +1037,11 @@ interface TreemapChartData {
999
1037
  name: string;
1000
1038
  /** Numeric value that determines block size */
1001
1039
  value: number;
1002
- /** Custom background color for this block (CSS color value) */
1003
- color?: string;
1040
+ /**
1041
+ * Cor do bloco, da paleta de gráfico: `'chart.lilac'` ou `theme.colors.chart.lilac`. Sem cor,
1042
+ * segue a ordem de `getChartColors`.
1043
+ */
1044
+ color?: ThemeColors | string;
1004
1045
  }
1005
1046
  /** Props for the TreemapChart component */
1006
1047
  interface TreemapChartProps {
@@ -1017,6 +1058,8 @@ interface TreemapChartProps {
1017
1058
  /**
1018
1059
  * Retângulos com área proporcional ao valor, para mostrar o peso de muitas categorias de uma vez (ex.: volume por material).
1019
1060
  * Para poucas categorias use BarChart ou DoughnutChart.
1061
+ * Cor de cada bloco pela paleta de gráfico (`color: 'chart.lilac'`); sem cor, segue a ordem de
1062
+ * `getChartColors`.
1020
1063
  * @example <TreemapChart data={[{ name: 'Algodão', value: 120 }, { name: 'Poliéster', value: 40 }]} />
1021
1064
  */
1022
1065
  declare const TreemapChart: ({ width, height, data, valueFormatter, }: TreemapChartProps) => react_jsx_runtime.JSX.Element;
@@ -1025,25 +1068,37 @@ declare const TreemapChart: ({ width, height, data, valueFormatter, }: TreemapCh
1025
1068
  interface ChartLegendItem {
1026
1069
  /** Nome da série ou categoria. */
1027
1070
  label: string;
1028
- /** Cor da bolinha, igual à do gráfico: token do tema ou valor CSS. */
1071
+ /** Cor da marca (bolinha ou quadradinho), igual à do gráfico: token do tema ou valor CSS. */
1029
1072
  color: ThemeColors | string;
1030
1073
  /** Valor ao lado do nome (ex. "42%", "1.240 kg"). */
1031
1074
  value?: ReactNode;
1032
1075
  }
1076
+ /** Visual da legenda. */
1077
+ type ChartLegendVariant = 'dot' | 'square';
1033
1078
  /** Props for the ChartLegend component */
1034
1079
  interface ChartLegendProps {
1035
1080
  /** Itens da legenda, na ordem do gráfico. */
1036
1081
  items: ChartLegendItem[];
1037
1082
  /** `row`: itens lado a lado, quebrando linha. `column`: um por linha, com o valor alinhado à direita. @default 'row' */
1038
1083
  direction?: 'row' | 'column';
1084
+ /**
1085
+ * Visual da legenda.
1086
+ * - `dot`: bolinha, nome e valor em destaque (à direita no `column`).
1087
+ * - `square`: quadradinho e "Nome: valor" na mesma linha, em texto pequeno. É o das roscas das
1088
+ * dashboards da plataforma (cards por status).
1089
+ * @default 'dot'
1090
+ */
1091
+ variant?: ChartLegendVariant;
1039
1092
  }
1040
1093
 
1041
1094
  /**
1042
1095
  * Legenda de gráfico: bolinha na cor da série, nome e valor opcional.
1043
1096
  * Use ao lado ou abaixo de qualquer gráfico; o DoughnutChart já monta a dele com a prop `legend`.
1044
- * @example <ChartLegend items={[{ label: 'Aprovados', color: 'success', value: '60%' }]} />
1097
+ * `variant="square"` é a legenda das roscas das dashboards: quadradinho e "Nome: valor".
1098
+ * @example <ChartLegend items={[{ label: 'Aprovados', color: 'chart.blue', value: '60%' }]} />
1099
+ * @example <ChartLegend variant="square" direction="column" items={[{ label: 'Pendentes', color: 'chart.purple', value: 850 }]} />
1045
1100
  */
1046
- declare const ChartLegend: ({ items, direction }: ChartLegendProps) => react_jsx_runtime.JSX.Element;
1101
+ declare const ChartLegend: ({ items, direction, variant, }: ChartLegendProps) => react_jsx_runtime.JSX.Element;
1047
1102
 
1048
1103
  /** Um evento marcado num dia do calendário. */
1049
1104
  interface CalendarEvent {
@@ -1975,6 +2030,8 @@ declare const parseIconNameToLucide: (name: string) => LuIconName;
1975
2030
  declare const customIconsOptions: readonly ["rocket", "graph", "receipt"];
1976
2031
  declare const allIconsOptions: string[];
1977
2032
 
2033
+ /** Formato da caixa do IconBox. */
2034
+ type IconBoxShape = 'square' | 'circle';
1978
2035
  /** Props for the IconBox component */
1979
2036
  interface IconBoxProps {
1980
2037
  /** Ícone mostrado dentro da caixa. */
@@ -1988,15 +2045,31 @@ interface IconBoxProps {
1988
2045
  * @default 24
1989
2046
  */
1990
2047
  size?: number;
2048
+ /**
2049
+ * Formato da caixa. `square` é o dos títulos de card e números; `circle` é para quem age
2050
+ * (agente de IA, assistente), ao lado de um nome.
2051
+ * @default 'square'
2052
+ */
2053
+ shape?: IconBoxShape;
2054
+ /**
2055
+ * Borda no gradiente da marca, como no Card.
2056
+ * - `true`: borda fixa (1px), para destacar.
2057
+ * - `'animated'`: borda (2px) com as cores da marca girando devagar, para algo vivo ou em
2058
+ * andamento (um agente trabalhando). Use um por tela; quem pediu menos movimento no sistema vê
2059
+ * a borda parada.
2060
+ */
2061
+ gradientBorder?: boolean | 'animated';
1991
2062
  }
1992
2063
 
1993
2064
  /**
1994
2065
  * Ícone dentro de uma caixinha com borda e sombra leve. É o ícone dos títulos de card e dos números
1995
2066
  * das dashboards. Sem `color`, o ícone vem no gradiente da marca.
2067
+ * `shape="circle"` com `gradientBorder="animated"` é o ícone de um agente de IA ao lado do nome dele.
1996
2068
  * Use para identificar um bloco; não use como botão (use IconButton).
1997
2069
  * @example <IconBox icon="file_list3" />
2070
+ * @example <IconBox icon="robot2" shape="circle" gradientBorder="animated" />
1998
2071
  */
1999
- declare const IconBox: ({ icon, color, size }: IconBoxProps) => react_jsx_runtime.JSX.Element;
2072
+ declare const IconBox: ({ icon, color, size, shape, gradientBorder, }: IconBoxProps) => react_jsx_runtime.JSX.Element;
2000
2073
 
2001
2074
  /**
2002
2075
  * Validation state for form fields.
@@ -3746,4 +3819,4 @@ declare const useIsTablet: (options?: ScreenHookOptions) => boolean;
3746
3819
  */
3747
3820
  declare const useBreakpoint: ({ ssr }?: ScreenHookOptions) => Breakpoint | "base";
3748
3821
 
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 };
3822
+ 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 t}from"react/jsx-runtime";import{useTheme as r}from"styled-components";import{ChartContainer as o,CustomTooltip as i}from"./bar-chart.styles.js";import{ResponsiveContainer as a}from"../../../node_modules/recharts/es6/component/ResponsiveContainer.js";import{BarChart as s}from"../../../node_modules/recharts/es6/chart/BarChart.js";import{CartesianGrid as l}from"../../../node_modules/recharts/es6/cartesian/CartesianGrid.js";import{XAxis as n}from"../../../node_modules/recharts/es6/cartesian/XAxis.js";import{YAxis as m}from"../../../node_modules/recharts/es6/cartesian/YAxis.js";import{Tooltip as d}from"../../../node_modules/recharts/es6/component/Tooltip.js";import{Bar as c}from"../../../node_modules/recharts/es6/cartesian/Bar.js";import{Cell as h}from"../../../node_modules/recharts/es6/component/Cell.js";import{LabelList as p}from"../../../node_modules/recharts/es6/component/LabelList.js";import{getThemeColor as f}from"../../../theme/theme.util.js";import{Text as y}from"../../typography/text/text.comp.js";const u=({active:r,payload:o,label:a})=>r&&o&&o.length?t(i,{direction:"column",gap:1,children:[e(y,{size:"small",fontWeight:500,children:a}),o.map(((t,r)=>e(y,{size:"small",color:t.color||t.payload?.color,children:t.value},r)))]}):null,g=({width:i="100%",height:y=300,data:g,showGrid:b=!0,xAxisLabel:_,yAxisLabel:j,yAxisFormatter:x,barSize:z,radius:v,showLabels:C=!1,labelFormatter:k,barCategoryGap:S})=>{const w=r();return e(o,{"data-testid":"bar-chart",width:i,height:y,children:e(a,{width:"100%",height:"100%",children:t(s,{width:"number"==typeof i?i:500,height:y,data:g,margin:{top:C?20:5,right:30,left:20,bottom:5},barCategoryGap:S,children:[b&&e(l,{strokeDasharray:"3 3",stroke:f("grey_4",w),horizontal:!0,vertical:!1}),e(n,{dataKey:"name",stroke:f("grey_3",w),tick:{fill:f("grey_2",w),fontSize:12},label:_?{value:_,position:"insideBottom",offset:-5,style:{fill:f("grey_2",w),fontSize:12}}:void 0}),e(m,{stroke:f("grey_3",w),tick:{fill:f("grey_2",w),fontSize:12},tickFormatter:x,label:j?{value:j,angle:-90,position:"insideLeft",style:{fill:f("grey_2",w),fontSize:12}}:void 0}),e(d,{content:e(u,{})}),t(c,{dataKey:"value",barSize:z,radius:(e=>{if(e)return"number"==typeof e?[e,e,0,0]:e})(v),children:[g.map(((t,r)=>e(h,{fill:t.color||f("secondary",w)},`cell-${r}`))),C&&e(p,{position:"top",formatter:e=>k?k(e):e,style:{fill:f("grey_1",w),fontSize:12}})]})]})})})};export{g as BarChart};
1
+ import{jsx as e,jsxs as t}from"react/jsx-runtime";import{useTheme as r}from"styled-components";import{ChartContainer as o,CustomTooltip as i}from"./bar-chart.styles.js";import{ResponsiveContainer as a}from"../../../node_modules/recharts/es6/component/ResponsiveContainer.js";import{BarChart as s}from"../../../node_modules/recharts/es6/chart/BarChart.js";import{CartesianGrid as l}from"../../../node_modules/recharts/es6/cartesian/CartesianGrid.js";import{XAxis as n}from"../../../node_modules/recharts/es6/cartesian/XAxis.js";import{YAxis as m}from"../../../node_modules/recharts/es6/cartesian/YAxis.js";import{Tooltip as d}from"../../../node_modules/recharts/es6/component/Tooltip.js";import{Bar as c}from"../../../node_modules/recharts/es6/cartesian/Bar.js";import{Cell as h}from"../../../node_modules/recharts/es6/component/Cell.js";import{LabelList as p}from"../../../node_modules/recharts/es6/component/LabelList.js";import{getThemeColor as f}from"../../../theme/theme.util.js";import{Text as y}from"../../typography/text/text.comp.js";const u=({active:r,payload:o,label:a})=>r&&o&&o.length?t(i,{direction:"column",gap:1,children:[e(y,{size:"small",fontWeight:500,children:a}),o.map(((t,r)=>e(y,{size:"small",color:t.color||t.payload?.color,children:t.value},r)))]}):null,g=({width:i="100%",height:y=300,data:g,showGrid:b=!0,xAxisLabel:_,yAxisLabel:j,yAxisFormatter:x,barSize:z,radius:v,showLabels:C=!1,labelFormatter:k,barCategoryGap:S})=>{const w=r();return e(o,{"data-testid":"bar-chart",width:i,height:y,children:e(a,{width:"100%",height:"100%",children:t(s,{width:"number"==typeof i?i:500,height:y,data:g,margin:{top:C?20:5,right:30,left:20,bottom:5},barCategoryGap:S,children:[b&&e(l,{strokeDasharray:"3 3",stroke:f("grey_4",w),horizontal:!0,vertical:!1}),e(n,{dataKey:"name",stroke:f("grey_3",w),tick:{fill:f("grey_2",w),fontSize:12},label:_?{value:_,position:"insideBottom",offset:-5,style:{fill:f("grey_2",w),fontSize:12}}:void 0}),e(m,{stroke:f("grey_3",w),tick:{fill:f("grey_2",w),fontSize:12},tickFormatter:x,label:j?{value:j,angle:-90,position:"insideLeft",style:{fill:f("grey_2",w),fontSize:12}}:void 0}),e(d,{content:e(u,{})}),t(c,{dataKey:"value",barSize:z,radius:(e=>{if(e)return"number"==typeof e?[e,e,0,0]:e})(v),children:[g.map(((t,r)=>e(h,{fill:f(t.color||"secondary",w)},`cell-${r}`))),C&&e(p,{position:"top",formatter:e=>k?k(e):e,style:{fill:f("grey_1",w),fontSize:12}})]})]})})})};export{g as BarChart};
2
2
  //# sourceMappingURL=bar-chart.comp.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"bar-chart.comp.js","sources":["../../../../../src/components/charts/bar-chart/bar-chart.comp.tsx"],"sourcesContent":["import {\n Bar,\n BarChart as BarChartRecharts,\n CartesianGrid,\n Cell,\n LabelList,\n ResponsiveContainer,\n Tooltip,\n XAxis,\n YAxis,\n} from 'recharts'\nimport { useTheme } from 'styled-components'\n\nimport { getThemeColor } from '../../../theme'\nimport { Text } from '../../typography'\n\nimport { BarChartProps } from './bar-chart.types'\n\nimport * as Styles from './bar-chart.styles'\n\nconst CustomTooltip = ({ active, payload, label }: any) => {\n if (!active || !payload || !payload.length) return null\n\n return (\n <Styles.CustomTooltip direction=\"column\" gap={1}>\n <Text size=\"small\" fontWeight={500}>\n {label}\n </Text>\n {payload.map((entry: any, index: number) => (\n <Text\n key={index}\n size=\"small\"\n color={entry.color || entry.payload?.color}\n >\n {entry.value}\n </Text>\n ))}\n </Styles.CustomTooltip>\n )\n}\n\n/**\n * Gráfico de barras para comparar valores entre categorias (ex.: emissões por fornecedor).\n * Cada item de `data` é uma barra, com `name` e `value`.\n * Para evolução no tempo use LineChart; para partes de um total use DoughnutChart.\n * @example <BarChart data={[{ name: 'Jan', value: 10 }, { name: 'Fev', value: 14 }]} />\n */\nexport const BarChart = ({\n width = '100%',\n height = 300,\n data,\n showGrid = true,\n xAxisLabel,\n yAxisLabel,\n yAxisFormatter,\n barSize,\n radius,\n showLabels = false,\n labelFormatter,\n barCategoryGap,\n}: BarChartProps) => {\n const theme = useTheme()\n\n // Converte radius numérico para array [topLeft, topRight, 0, 0] (apenas cantos superiores)\n const getRadiusValue = (\n radiusValue?: number | [number, number, number, number],\n ) => {\n if (!radiusValue) return undefined\n if (typeof radiusValue === 'number') {\n return [radiusValue, radiusValue, 0, 0] as [\n number,\n number,\n number,\n number,\n ]\n }\n return radiusValue\n }\n\n return (\n <Styles.ChartContainer\n data-testid=\"bar-chart\"\n width={width}\n height={height}\n >\n <ResponsiveContainer width=\"100%\" height=\"100%\">\n <BarChartRecharts\n width={typeof width === 'number' ? width : 500}\n height={height}\n data={data}\n margin={{ top: showLabels ? 20 : 5, right: 30, left: 20, bottom: 5 }}\n barCategoryGap={barCategoryGap}\n >\n {showGrid && (\n <CartesianGrid\n strokeDasharray=\"3 3\"\n stroke={getThemeColor('grey_4', theme)}\n horizontal\n vertical={false}\n />\n )}\n <XAxis\n dataKey=\"name\"\n stroke={getThemeColor('grey_3', theme)}\n tick={{ fill: getThemeColor('grey_2', theme), fontSize: 12 }}\n label={\n xAxisLabel\n ? {\n value: xAxisLabel,\n position: 'insideBottom',\n offset: -5,\n style: {\n fill: getThemeColor('grey_2', theme),\n fontSize: 12,\n },\n }\n : undefined\n }\n />\n <YAxis\n stroke={getThemeColor('grey_3', theme)}\n tick={{ fill: getThemeColor('grey_2', theme), fontSize: 12 }}\n tickFormatter={yAxisFormatter}\n label={\n yAxisLabel\n ? {\n value: yAxisLabel,\n angle: -90,\n position: 'insideLeft',\n style: {\n fill: getThemeColor('grey_2', theme),\n fontSize: 12,\n },\n }\n : undefined\n }\n />\n <Tooltip content={<CustomTooltip />} />\n <Bar\n dataKey=\"value\"\n barSize={barSize}\n radius={getRadiusValue(radius)}\n >\n {data.map((entry, index) => (\n <Cell\n key={`cell-${index}`}\n fill={entry.color || getThemeColor('secondary', theme)}\n />\n ))}\n {showLabels && (\n <LabelList\n position=\"top\"\n formatter={(value: number) =>\n labelFormatter ? labelFormatter(value) : value\n }\n // style aqui é a API do recharts para o texto do rótulo, não CSS inline em elemento HTML\n // eslint-disable-next-line no-restricted-syntax\n style={{\n fill: getThemeColor('grey_1', theme),\n fontSize: 12,\n }}\n />\n )}\n </Bar>\n </BarChartRecharts>\n </ResponsiveContainer>\n </Styles.ChartContainer>\n )\n}\n"],"names":["CustomTooltip","active","payload","label","length","_jsxs","Styles","direction","gap","_jsx","Text","size","fontWeight","children","map","entry","index","color","value","BarChart","width","height","data","showGrid","xAxisLabel","yAxisLabel","yAxisFormatter","barSize","radius","showLabels","labelFormatter","barCategoryGap","theme","useTheme","ResponsiveContainer","BarChartRecharts","margin","top","right","left","bottom","CartesianGrid","strokeDasharray","stroke","getThemeColor","horizontal","vertical","XAxis","dataKey","tick","fill","fontSize","position","offset","style","undefined","YAxis","tickFormatter","angle","Tooltip","content","Bar","radiusValue","getRadiusValue","Cell","LabelList","formatter"],"mappings":"khCAoBA,MAAMA,EAAgBA,EAAGC,SAAQC,UAASC,WACnCF,GAAWC,GAAYA,EAAQE,OAGlCC,EAACC,EAAqB,CAAAC,UAAU,SAASC,IAAK,YAC5CC,EAACC,EAAK,CAAAC,KAAK,QAAQC,WAAY,IAAGC,SAC/BV,IAEFD,EAAQY,KAAI,CAACC,EAAYC,IACxBP,EAACC,EAAI,CAEHC,KAAK,QACLM,MAAOF,EAAME,OAASF,EAAMb,SAASe,eAEpCF,EAAMG,OAJFF,QATsC,KA0BxCG,EAAWA,EACtBC,QAAQ,OACRC,SAAS,IACTC,OACAC,YAAW,EACXC,aACAC,aACAC,iBACAC,UACAC,SACAC,cAAa,EACbC,iBACAC,qBAEA,MAAMC,EAAQC,IAkBd,OACExB,EAACH,EACa,CAAA,cAAA,YACZc,MAAOA,EACPC,OAAQA,EAAMR,SAEdJ,EAACyB,EAAoB,CAAAd,MAAM,OAAOC,OAAO,OAAMR,SAC7CR,EAAC8B,EAAgB,CACff,MAAwB,iBAAVA,EAAqBA,EAAQ,IAC3CC,OAAQA,EACRC,KAAMA,EACNc,OAAQ,CAAEC,IAAKR,EAAa,GAAK,EAAGS,MAAO,GAAIC,KAAM,GAAIC,OAAQ,GACjET,eAAgBA,YAEfR,GACCd,EAACgC,EACC,CAAAC,gBAAgB,MAChBC,OAAQC,EAAc,SAAUZ,GAChCa,YAAU,EACVC,UAAU,IAGdrC,EAACsC,EAAK,CACJC,QAAQ,OACRL,OAAQC,EAAc,SAAUZ,GAChCiB,KAAM,CAAEC,KAAMN,EAAc,SAAUZ,GAAQmB,SAAU,IACxDhD,MACEqB,EACI,CACEN,MAAOM,EACP4B,SAAU,eACVC,QAAS,EACTC,MAAO,CACLJ,KAAMN,EAAc,SAAUZ,GAC9BmB,SAAU,UAGdI,IAGR9C,EAAC+C,EACC,CAAAb,OAAQC,EAAc,SAAUZ,GAChCiB,KAAM,CAAEC,KAAMN,EAAc,SAAUZ,GAAQmB,SAAU,IACxDM,cAAe/B,EACfvB,MACEsB,EACI,CACEP,MAAOO,EACPiC,OAAQ,GACRN,SAAU,aACVE,MAAO,CACLJ,KAAMN,EAAc,SAAUZ,GAC9BmB,SAAU,UAGdI,IAGR9C,EAACkD,EAAO,CAACC,QAASnD,EAACT,EAAgB,MACnCK,EAACwD,GACCb,QAAQ,QACRrB,QAASA,EACTC,OA5ERkC,KAEA,GAAKA,EACL,MAA2B,iBAAhBA,EACF,CAACA,EAAaA,EAAa,EAAG,GAOhCA,CAAW,EAiEFC,CAAenC,aAEtBN,EAAKR,KAAI,CAACC,EAAOC,IAChBP,EAACuD,EAAI,CAEHd,KAAMnC,EAAME,OAAS2B,EAAc,YAAaZ,IADnC,QAAAhB,OAIhBa,GACCpB,EAACwD,GACCb,SAAS,MACTc,UAAYhD,GACVY,EAAiBA,EAAeZ,GAASA,EAI3CoC,MAAO,CACLJ,KAAMN,EAAc,SAAUZ,GAC9BmB,SAAU,eAOA"}
1
+ {"version":3,"file":"bar-chart.comp.js","sources":["../../../../../src/components/charts/bar-chart/bar-chart.comp.tsx"],"sourcesContent":["import {\n Bar,\n BarChart as BarChartRecharts,\n CartesianGrid,\n Cell,\n LabelList,\n ResponsiveContainer,\n Tooltip,\n XAxis,\n YAxis,\n} from 'recharts'\nimport { useTheme } from 'styled-components'\n\nimport { getThemeColor } from '../../../theme'\nimport { Text } from '../../typography'\n\nimport { BarChartProps } from './bar-chart.types'\n\nimport * as Styles from './bar-chart.styles'\n\nconst CustomTooltip = ({ active, payload, label }: any) => {\n if (!active || !payload || !payload.length) return null\n\n return (\n <Styles.CustomTooltip direction=\"column\" gap={1}>\n <Text size=\"small\" fontWeight={500}>\n {label}\n </Text>\n {payload.map((entry: any, index: number) => (\n <Text\n key={index}\n size=\"small\"\n color={entry.color || entry.payload?.color}\n >\n {entry.value}\n </Text>\n ))}\n </Styles.CustomTooltip>\n )\n}\n\n/**\n * Gráfico de barras para comparar valores entre categorias (ex.: emissões por fornecedor).\n * Cada item de `data` é uma barra, com `name` e `value`.\n * Para evolução no tempo use LineChart; para partes de um total use DoughnutChart.\n * Cor da barra pela paleta de gráfico (`color: 'chart.purple'`), mesmo quando a barra é um status.\n * @example <BarChart data={[{ name: 'Jan', value: 10 }, { name: 'Fev', value: 14 }]} />\n */\nexport const BarChart = ({\n width = '100%',\n height = 300,\n data,\n showGrid = true,\n xAxisLabel,\n yAxisLabel,\n yAxisFormatter,\n barSize,\n radius,\n showLabels = false,\n labelFormatter,\n barCategoryGap,\n}: BarChartProps) => {\n const theme = useTheme()\n\n // Converte radius numérico para array [topLeft, topRight, 0, 0] (apenas cantos superiores)\n const getRadiusValue = (\n radiusValue?: number | [number, number, number, number],\n ) => {\n if (!radiusValue) return undefined\n if (typeof radiusValue === 'number') {\n return [radiusValue, radiusValue, 0, 0] as [\n number,\n number,\n number,\n number,\n ]\n }\n return radiusValue\n }\n\n return (\n <Styles.ChartContainer\n data-testid=\"bar-chart\"\n width={width}\n height={height}\n >\n <ResponsiveContainer width=\"100%\" height=\"100%\">\n <BarChartRecharts\n width={typeof width === 'number' ? width : 500}\n height={height}\n data={data}\n margin={{ top: showLabels ? 20 : 5, right: 30, left: 20, bottom: 5 }}\n barCategoryGap={barCategoryGap}\n >\n {showGrid && (\n <CartesianGrid\n strokeDasharray=\"3 3\"\n stroke={getThemeColor('grey_4', theme)}\n horizontal\n vertical={false}\n />\n )}\n <XAxis\n dataKey=\"name\"\n stroke={getThemeColor('grey_3', theme)}\n tick={{ fill: getThemeColor('grey_2', theme), fontSize: 12 }}\n label={\n xAxisLabel\n ? {\n value: xAxisLabel,\n position: 'insideBottom',\n offset: -5,\n style: {\n fill: getThemeColor('grey_2', theme),\n fontSize: 12,\n },\n }\n : undefined\n }\n />\n <YAxis\n stroke={getThemeColor('grey_3', theme)}\n tick={{ fill: getThemeColor('grey_2', theme), fontSize: 12 }}\n tickFormatter={yAxisFormatter}\n label={\n yAxisLabel\n ? {\n value: yAxisLabel,\n angle: -90,\n position: 'insideLeft',\n style: {\n fill: getThemeColor('grey_2', theme),\n fontSize: 12,\n },\n }\n : undefined\n }\n />\n <Tooltip content={<CustomTooltip />} />\n <Bar\n dataKey=\"value\"\n barSize={barSize}\n radius={getRadiusValue(radius)}\n >\n {data.map((entry, index) => (\n <Cell\n key={`cell-${index}`}\n fill={getThemeColor(entry.color || 'secondary', theme)}\n />\n ))}\n {showLabels && (\n <LabelList\n position=\"top\"\n formatter={(value: number) =>\n labelFormatter ? labelFormatter(value) : value\n }\n // style aqui é a API do recharts para o texto do rótulo, não CSS inline em elemento HTML\n // eslint-disable-next-line no-restricted-syntax\n style={{\n fill: getThemeColor('grey_1', theme),\n fontSize: 12,\n }}\n />\n )}\n </Bar>\n </BarChartRecharts>\n </ResponsiveContainer>\n </Styles.ChartContainer>\n )\n}\n"],"names":["CustomTooltip","active","payload","label","length","_jsxs","Styles","direction","gap","_jsx","Text","size","fontWeight","children","map","entry","index","color","value","BarChart","width","height","data","showGrid","xAxisLabel","yAxisLabel","yAxisFormatter","barSize","radius","showLabels","labelFormatter","barCategoryGap","theme","useTheme","ResponsiveContainer","BarChartRecharts","margin","top","right","left","bottom","CartesianGrid","strokeDasharray","stroke","getThemeColor","horizontal","vertical","XAxis","dataKey","tick","fill","fontSize","position","offset","style","undefined","YAxis","tickFormatter","angle","Tooltip","content","Bar","radiusValue","getRadiusValue","Cell","LabelList","formatter"],"mappings":"khCAoBA,MAAMA,EAAgBA,EAAGC,SAAQC,UAASC,WACnCF,GAAWC,GAAYA,EAAQE,OAGlCC,EAACC,EAAqB,CAAAC,UAAU,SAASC,IAAK,YAC5CC,EAACC,EAAK,CAAAC,KAAK,QAAQC,WAAY,IAAGC,SAC/BV,IAEFD,EAAQY,KAAI,CAACC,EAAYC,IACxBP,EAACC,EAAI,CAEHC,KAAK,QACLM,MAAOF,EAAME,OAASF,EAAMb,SAASe,eAEpCF,EAAMG,OAJFF,QATsC,KA2BxCG,EAAWA,EACtBC,QAAQ,OACRC,SAAS,IACTC,OACAC,YAAW,EACXC,aACAC,aACAC,iBACAC,UACAC,SACAC,cAAa,EACbC,iBACAC,qBAEA,MAAMC,EAAQC,IAkBd,OACExB,EAACH,EACa,CAAA,cAAA,YACZc,MAAOA,EACPC,OAAQA,EAAMR,SAEdJ,EAACyB,EAAoB,CAAAd,MAAM,OAAOC,OAAO,OAAMR,SAC7CR,EAAC8B,EAAgB,CACff,MAAwB,iBAAVA,EAAqBA,EAAQ,IAC3CC,OAAQA,EACRC,KAAMA,EACNc,OAAQ,CAAEC,IAAKR,EAAa,GAAK,EAAGS,MAAO,GAAIC,KAAM,GAAIC,OAAQ,GACjET,eAAgBA,YAEfR,GACCd,EAACgC,EACC,CAAAC,gBAAgB,MAChBC,OAAQC,EAAc,SAAUZ,GAChCa,YAAU,EACVC,UAAU,IAGdrC,EAACsC,EAAK,CACJC,QAAQ,OACRL,OAAQC,EAAc,SAAUZ,GAChCiB,KAAM,CAAEC,KAAMN,EAAc,SAAUZ,GAAQmB,SAAU,IACxDhD,MACEqB,EACI,CACEN,MAAOM,EACP4B,SAAU,eACVC,QAAS,EACTC,MAAO,CACLJ,KAAMN,EAAc,SAAUZ,GAC9BmB,SAAU,UAGdI,IAGR9C,EAAC+C,EACC,CAAAb,OAAQC,EAAc,SAAUZ,GAChCiB,KAAM,CAAEC,KAAMN,EAAc,SAAUZ,GAAQmB,SAAU,IACxDM,cAAe/B,EACfvB,MACEsB,EACI,CACEP,MAAOO,EACPiC,OAAQ,GACRN,SAAU,aACVE,MAAO,CACLJ,KAAMN,EAAc,SAAUZ,GAC9BmB,SAAU,UAGdI,IAGR9C,EAACkD,EAAO,CAACC,QAASnD,EAACT,EAAgB,MACnCK,EAACwD,GACCb,QAAQ,QACRrB,QAASA,EACTC,OA5ERkC,KAEA,GAAKA,EACL,MAA2B,iBAAhBA,EACF,CAACA,EAAaA,EAAa,EAAG,GAOhCA,CAAW,EAiEFC,CAAenC,aAEtBN,EAAKR,KAAI,CAACC,EAAOC,IAChBP,EAACuD,EAAI,CAEHd,KAAMN,EAAc7B,EAAME,OAAS,YAAae,IADnC,QAAAhB,OAIhBa,GACCpB,EAACwD,GACCb,SAAS,MACTc,UAAYhD,GACVY,EAAiBA,EAAeZ,GAASA,EAI3CoC,MAAO,CACLJ,KAAMN,EAAc,SAAUZ,GAC9BmB,SAAU,eAOA"}