@snksergio/design-system 0.19.1 → 0.30.2

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 (248) hide show
  1. package/README.md +39 -12
  2. package/dist-lib/chunks/{app-shell-Cy9be0Zx.mjs → app-shell-78w0pYdP.mjs} +849 -79
  3. package/dist-lib/chunks/app-shell-78w0pYdP.mjs.map +1 -0
  4. package/dist-lib/chunks/{app-shell-CPx9X7zP.cjs → app-shell-Cyh8AUJT.cjs} +947 -176
  5. package/dist-lib/chunks/app-shell-Cyh8AUJT.cjs.map +1 -0
  6. package/dist-lib/chunks/{clientes-showcase-mocks-ayU1SDOA.mjs → clientes-showcase-mocks-CwWGCCmf.mjs} +1 -27
  7. package/dist-lib/chunks/clientes-showcase-mocks-CwWGCCmf.mjs.map +1 -0
  8. package/dist-lib/chunks/{clientes-showcase-mocks-DygUqkkh.cjs → clientes-showcase-mocks-CwhluBTT.cjs} +1 -44
  9. package/dist-lib/chunks/clientes-showcase-mocks-CwhluBTT.cjs.map +1 -0
  10. package/dist-lib/chunks/{input-BWevV7up.cjs → input-BjUSWce3.cjs} +24 -4
  11. package/dist-lib/chunks/input-BjUSWce3.cjs.map +1 -0
  12. package/dist-lib/chunks/{input-C9eKSSEb.mjs → input-DCDU4i4S.mjs} +23 -3
  13. package/dist-lib/chunks/input-DCDU4i4S.mjs.map +1 -0
  14. package/dist-lib/chunks/kpi-delta-C_3V6uG6.cjs +148 -0
  15. package/dist-lib/chunks/kpi-delta-C_3V6uG6.cjs.map +1 -0
  16. package/dist-lib/chunks/kpi-delta-DpYuDY4h.mjs +149 -0
  17. package/dist-lib/chunks/kpi-delta-DpYuDY4h.mjs.map +1 -0
  18. package/dist-lib/chunks/{page-header-CQbTGWQ8.mjs → page-header-B6XJyIMz.mjs} +2 -2
  19. package/dist-lib/chunks/{page-header-CQbTGWQ8.mjs.map → page-header-B6XJyIMz.mjs.map} +1 -1
  20. package/dist-lib/chunks/{page-header-BZ-WrxV2.cjs → page-header-D0rpU0yn.cjs} +4 -4
  21. package/dist-lib/chunks/{page-header-BZ-WrxV2.cjs.map → page-header-D0rpU0yn.cjs.map} +1 -1
  22. package/dist-lib/chunks/{panel-pOXMw6a-.cjs → panel-B_SSIEDs.cjs} +1876 -1067
  23. package/dist-lib/chunks/panel-B_SSIEDs.cjs.map +1 -0
  24. package/dist-lib/chunks/{panel-BCUixETK.mjs → panel-CEkyoGiO.mjs} +1639 -831
  25. package/dist-lib/chunks/panel-CEkyoGiO.mjs.map +1 -0
  26. package/dist-lib/index.cjs +3819 -230
  27. package/dist-lib/index.cjs.map +1 -1
  28. package/dist-lib/index.mjs +3898 -313
  29. package/dist-lib/index.mjs.map +1 -1
  30. package/dist-lib/preview/chat.cjs +41 -42
  31. package/dist-lib/preview/chat.cjs.map +1 -1
  32. package/dist-lib/preview/chat.mjs +2 -3
  33. package/dist-lib/preview/chat.mjs.map +1 -1
  34. package/dist-lib/preview/clientes.cjs +22 -24
  35. package/dist-lib/preview/clientes.cjs.map +1 -1
  36. package/dist-lib/preview/clientes.mjs +5 -7
  37. package/dist-lib/preview/clientes.mjs.map +1 -1
  38. package/dist-lib/preview/dashboard.cjs +232 -28
  39. package/dist-lib/preview/dashboard.cjs.map +1 -1
  40. package/dist-lib/preview/dashboard.mjs +215 -11
  41. package/dist-lib/preview/dashboard.mjs.map +1 -1
  42. package/dist-lib/preview/mocks.cjs +1 -1
  43. package/dist-lib/preview/mocks.mjs +1 -1
  44. package/dist-lib/src/components/index.d.ts +14 -0
  45. package/dist-lib/src/components/index.d.ts.map +1 -1
  46. package/dist-lib/src/components/shadcn/command.d.ts.map +1 -1
  47. package/dist-lib/src/components/shadcn/input.d.ts.map +1 -1
  48. package/dist-lib/src/components/shadcn/tabs.d.ts +11 -6
  49. package/dist-lib/src/components/shadcn/tabs.d.ts.map +1 -1
  50. package/dist-lib/src/components/shadcn/tooltip.d.ts +25 -7
  51. package/dist-lib/src/components/shadcn/tooltip.d.ts.map +1 -1
  52. package/dist-lib/src/components/ui/ChoroplethMap/choropleth-map.d.ts +13 -0
  53. package/dist-lib/src/components/ui/ChoroplethMap/choropleth-map.d.ts.map +1 -0
  54. package/dist-lib/src/components/ui/ChoroplethMap/choropleth-map.styles.d.ts +95 -0
  55. package/dist-lib/src/components/ui/ChoroplethMap/choropleth-map.styles.d.ts.map +1 -0
  56. package/dist-lib/src/components/ui/ChoroplethMap/choropleth-map.types.d.ts +81 -0
  57. package/dist-lib/src/components/ui/ChoroplethMap/choropleth-map.types.d.ts.map +1 -0
  58. package/dist-lib/src/components/ui/ChoroplethMap/index.d.ts +3 -0
  59. package/dist-lib/src/components/ui/ChoroplethMap/index.d.ts.map +1 -0
  60. package/dist-lib/src/components/ui/ColorPicker/color-picker.d.ts +16 -0
  61. package/dist-lib/src/components/ui/ColorPicker/color-picker.d.ts.map +1 -0
  62. package/dist-lib/src/components/ui/ColorPicker/color-picker.presets.d.ts +13 -0
  63. package/dist-lib/src/components/ui/ColorPicker/color-picker.presets.d.ts.map +1 -0
  64. package/dist-lib/src/components/ui/ColorPicker/color-picker.styles.d.ts +135 -0
  65. package/dist-lib/src/components/ui/ColorPicker/color-picker.styles.d.ts.map +1 -0
  66. package/dist-lib/src/components/ui/ColorPicker/color-picker.types.d.ts +35 -0
  67. package/dist-lib/src/components/ui/ColorPicker/color-picker.types.d.ts.map +1 -0
  68. package/dist-lib/src/components/ui/ColorPicker/index.d.ts +6 -0
  69. package/dist-lib/src/components/ui/ColorPicker/index.d.ts.map +1 -0
  70. package/dist-lib/src/components/ui/ConversationListItem/conversation-list-item.d.ts +23 -0
  71. package/dist-lib/src/components/ui/ConversationListItem/conversation-list-item.d.ts.map +1 -0
  72. package/dist-lib/src/components/ui/ConversationListItem/conversation-list-item.styles.d.ts +173 -0
  73. package/dist-lib/src/components/ui/ConversationListItem/conversation-list-item.styles.d.ts.map +1 -0
  74. package/dist-lib/src/components/ui/ConversationListItem/conversation-list-item.types.d.ts +59 -0
  75. package/dist-lib/src/components/ui/ConversationListItem/conversation-list-item.types.d.ts.map +1 -0
  76. package/dist-lib/src/components/ui/ConversationListItem/index.d.ts +5 -0
  77. package/dist-lib/src/components/ui/ConversationListItem/index.d.ts.map +1 -0
  78. package/dist-lib/src/components/ui/DataTable/data-table.d.ts.map +1 -1
  79. package/dist-lib/src/components/ui/DataTable/data-table.types.d.ts +14 -1
  80. package/dist-lib/src/components/ui/DataTable/data-table.types.d.ts.map +1 -1
  81. package/dist-lib/src/components/ui/DataTable/hooks/use-column-auto-width.d.ts +9 -0
  82. package/dist-lib/src/components/ui/DataTable/hooks/use-column-auto-width.d.ts.map +1 -1
  83. package/dist-lib/src/components/ui/DataTable/hooks/use-data-table-controller.d.ts.map +1 -1
  84. package/dist-lib/src/components/ui/DataTable/services/saved-views.types.d.ts +9 -0
  85. package/dist-lib/src/components/ui/DataTable/services/saved-views.types.d.ts.map +1 -1
  86. package/dist-lib/src/components/ui/DataTable/utils/calculate-column-widths.d.ts +16 -0
  87. package/dist-lib/src/components/ui/DataTable/utils/calculate-column-widths.d.ts.map +1 -1
  88. package/dist-lib/src/components/ui/DatePicker/datepicker.d.ts +31 -8
  89. package/dist-lib/src/components/ui/DatePicker/datepicker.d.ts.map +1 -1
  90. package/dist-lib/src/components/ui/DatePicker/index.d.ts +1 -1
  91. package/dist-lib/src/components/ui/DatePicker/index.d.ts.map +1 -1
  92. package/dist-lib/src/components/ui/DateSeparatorChip/date-separator-chip.d.ts +18 -0
  93. package/dist-lib/src/components/ui/DateSeparatorChip/date-separator-chip.d.ts.map +1 -0
  94. package/dist-lib/src/components/ui/DateSeparatorChip/date-separator-chip.styles.d.ts +63 -0
  95. package/dist-lib/src/components/ui/DateSeparatorChip/date-separator-chip.styles.d.ts.map +1 -0
  96. package/dist-lib/src/components/ui/DateSeparatorChip/date-separator-chip.types.d.ts +21 -0
  97. package/dist-lib/src/components/ui/DateSeparatorChip/date-separator-chip.types.d.ts.map +1 -0
  98. package/dist-lib/src/components/ui/DateSeparatorChip/index.d.ts +5 -0
  99. package/dist-lib/src/components/ui/DateSeparatorChip/index.d.ts.map +1 -0
  100. package/dist-lib/src/components/ui/EmptyState/empty-state.d.ts +12 -0
  101. package/dist-lib/src/components/ui/EmptyState/empty-state.d.ts.map +1 -0
  102. package/dist-lib/src/components/ui/EmptyState/empty-state.styles.d.ts +83 -0
  103. package/dist-lib/src/components/ui/EmptyState/empty-state.styles.d.ts.map +1 -0
  104. package/dist-lib/src/components/ui/EmptyState/empty-state.types.d.ts +43 -0
  105. package/dist-lib/src/components/ui/EmptyState/empty-state.types.d.ts.map +1 -0
  106. package/dist-lib/src/components/ui/EmptyState/index.d.ts +5 -0
  107. package/dist-lib/src/components/ui/EmptyState/index.d.ts.map +1 -0
  108. package/dist-lib/src/components/ui/FileUploadField/file-upload-field.d.ts +15 -0
  109. package/dist-lib/src/components/ui/FileUploadField/file-upload-field.d.ts.map +1 -0
  110. package/dist-lib/src/components/ui/FileUploadField/file-upload-field.styles.d.ts +66 -0
  111. package/dist-lib/src/components/ui/FileUploadField/file-upload-field.styles.d.ts.map +1 -0
  112. package/dist-lib/src/components/ui/FileUploadField/file-upload-field.types.d.ts +41 -0
  113. package/dist-lib/src/components/ui/FileUploadField/file-upload-field.types.d.ts.map +1 -0
  114. package/dist-lib/src/components/ui/FileUploadField/index.d.ts +3 -0
  115. package/dist-lib/src/components/ui/FileUploadField/index.d.ts.map +1 -0
  116. package/dist-lib/src/components/ui/Kpi/kpi-delta.d.ts +4 -1
  117. package/dist-lib/src/components/ui/Kpi/kpi-delta.d.ts.map +1 -1
  118. package/dist-lib/src/components/ui/Kpi/kpi.d.ts +1 -1
  119. package/dist-lib/src/components/ui/Kpi/kpi.d.ts.map +1 -1
  120. package/dist-lib/src/components/ui/Kpi/kpi.styles.d.ts +42 -0
  121. package/dist-lib/src/components/ui/Kpi/kpi.styles.d.ts.map +1 -1
  122. package/dist-lib/src/components/ui/Kpi/kpi.types.d.ts +13 -1
  123. package/dist-lib/src/components/ui/Kpi/kpi.types.d.ts.map +1 -1
  124. package/dist-lib/src/components/ui/MarkdownText/index.d.ts +5 -0
  125. package/dist-lib/src/components/ui/MarkdownText/index.d.ts.map +1 -0
  126. package/dist-lib/src/components/ui/MarkdownText/markdown-text.d.ts +14 -0
  127. package/dist-lib/src/components/ui/MarkdownText/markdown-text.d.ts.map +1 -0
  128. package/dist-lib/src/components/ui/MarkdownText/markdown-text.styles.d.ts +72 -0
  129. package/dist-lib/src/components/ui/MarkdownText/markdown-text.styles.d.ts.map +1 -0
  130. package/dist-lib/src/components/ui/MarkdownText/markdown-text.types.d.ts +26 -0
  131. package/dist-lib/src/components/ui/MarkdownText/markdown-text.types.d.ts.map +1 -0
  132. package/dist-lib/src/components/ui/MenuSidebar/sidebar-section.d.ts.map +1 -1
  133. package/dist-lib/src/components/ui/MenuSidebar/sidebar.styles.d.ts +1 -0
  134. package/dist-lib/src/components/ui/MenuSidebar/sidebar.styles.d.ts.map +1 -1
  135. package/dist-lib/src/components/ui/MenuSidebar/sidebar.types.d.ts +7 -1
  136. package/dist-lib/src/components/ui/MenuSidebar/sidebar.types.d.ts.map +1 -1
  137. package/dist-lib/src/components/ui/MessageAck/index.d.ts +5 -0
  138. package/dist-lib/src/components/ui/MessageAck/index.d.ts.map +1 -0
  139. package/dist-lib/src/components/ui/MessageAck/message-ack.d.ts +18 -0
  140. package/dist-lib/src/components/ui/MessageAck/message-ack.d.ts.map +1 -0
  141. package/dist-lib/src/components/ui/MessageAck/message-ack.styles.d.ts +61 -0
  142. package/dist-lib/src/components/ui/MessageAck/message-ack.styles.d.ts.map +1 -0
  143. package/dist-lib/src/components/ui/MessageAck/message-ack.types.d.ts +14 -0
  144. package/dist-lib/src/components/ui/MessageAck/message-ack.types.d.ts.map +1 -0
  145. package/dist-lib/src/components/ui/MessageBubble/index.d.ts +5 -0
  146. package/dist-lib/src/components/ui/MessageBubble/index.d.ts.map +1 -0
  147. package/dist-lib/src/components/ui/MessageBubble/message-bubble.d.ts +20 -0
  148. package/dist-lib/src/components/ui/MessageBubble/message-bubble.d.ts.map +1 -0
  149. package/dist-lib/src/components/ui/MessageBubble/message-bubble.styles.d.ts +180 -0
  150. package/dist-lib/src/components/ui/MessageBubble/message-bubble.styles.d.ts.map +1 -0
  151. package/dist-lib/src/components/ui/MessageBubble/message-bubble.types.d.ts +87 -0
  152. package/dist-lib/src/components/ui/MessageBubble/message-bubble.types.d.ts.map +1 -0
  153. package/dist-lib/src/components/ui/MessageComposer/index.d.ts +5 -0
  154. package/dist-lib/src/components/ui/MessageComposer/index.d.ts.map +1 -0
  155. package/dist-lib/src/components/ui/MessageComposer/message-composer.d.ts +18 -0
  156. package/dist-lib/src/components/ui/MessageComposer/message-composer.d.ts.map +1 -0
  157. package/dist-lib/src/components/ui/MessageComposer/message-composer.styles.d.ts +113 -0
  158. package/dist-lib/src/components/ui/MessageComposer/message-composer.styles.d.ts.map +1 -0
  159. package/dist-lib/src/components/ui/MessageComposer/message-composer.types.d.ts +49 -0
  160. package/dist-lib/src/components/ui/MessageComposer/message-composer.types.d.ts.map +1 -0
  161. package/dist-lib/src/components/ui/MessageVariablesPicker/index.d.ts +6 -0
  162. package/dist-lib/src/components/ui/MessageVariablesPicker/index.d.ts.map +1 -0
  163. package/dist-lib/src/components/ui/MessageVariablesPicker/message-variables-picker.d.ts +12 -0
  164. package/dist-lib/src/components/ui/MessageVariablesPicker/message-variables-picker.d.ts.map +1 -0
  165. package/dist-lib/src/components/ui/MessageVariablesPicker/message-variables-picker.styles.d.ts +57 -0
  166. package/dist-lib/src/components/ui/MessageVariablesPicker/message-variables-picker.styles.d.ts.map +1 -0
  167. package/dist-lib/src/components/ui/MessageVariablesPicker/message-variables-picker.types.d.ts +36 -0
  168. package/dist-lib/src/components/ui/MessageVariablesPicker/message-variables-picker.types.d.ts.map +1 -0
  169. package/dist-lib/src/components/ui/Modal/modal.d.ts +3 -1
  170. package/dist-lib/src/components/ui/Modal/modal.d.ts.map +1 -1
  171. package/dist-lib/src/components/ui/Modal/modal.styles.d.ts +7 -1
  172. package/dist-lib/src/components/ui/Modal/modal.styles.d.ts.map +1 -1
  173. package/dist-lib/src/components/ui/MonthYearPicker/index.d.ts +3 -0
  174. package/dist-lib/src/components/ui/MonthYearPicker/index.d.ts.map +1 -0
  175. package/dist-lib/src/components/ui/MonthYearPicker/month-year-picker.d.ts +11 -0
  176. package/dist-lib/src/components/ui/MonthYearPicker/month-year-picker.d.ts.map +1 -0
  177. package/dist-lib/src/components/ui/MonthYearPicker/month-year-picker.styles.d.ts +113 -0
  178. package/dist-lib/src/components/ui/MonthYearPicker/month-year-picker.styles.d.ts.map +1 -0
  179. package/dist-lib/src/components/ui/MonthYearPicker/month-year-picker.types.d.ts +34 -0
  180. package/dist-lib/src/components/ui/MonthYearPicker/month-year-picker.types.d.ts.map +1 -0
  181. package/dist-lib/src/components/ui/SingleMenuSidebar/single-menu-sidebar.styles.d.ts +1 -1
  182. package/dist-lib/src/components/ui/Spinner/index.d.ts +3 -0
  183. package/dist-lib/src/components/ui/Spinner/index.d.ts.map +1 -0
  184. package/dist-lib/src/components/ui/Spinner/spinner.d.ts +11 -0
  185. package/dist-lib/src/components/ui/Spinner/spinner.d.ts.map +1 -0
  186. package/dist-lib/src/components/ui/Spinner/spinner.styles.d.ts +55 -0
  187. package/dist-lib/src/components/ui/Spinner/spinner.styles.d.ts.map +1 -0
  188. package/dist-lib/src/components/ui/Spinner/spinner.types.d.ts +12 -0
  189. package/dist-lib/src/components/ui/Spinner/spinner.types.d.ts.map +1 -0
  190. package/dist-lib/src/components/ui/TableToolbar/parts/table-toolbar-views.d.ts +7 -1
  191. package/dist-lib/src/components/ui/TableToolbar/parts/table-toolbar-views.d.ts.map +1 -1
  192. package/dist-lib/src/components/ui/Toast/toast.d.ts +44 -0
  193. package/dist-lib/src/components/ui/Toast/toast.d.ts.map +1 -0
  194. package/dist-lib/src/hooks/useBrand.d.ts +31 -0
  195. package/dist-lib/src/hooks/useBrand.d.ts.map +1 -0
  196. package/dist-lib/src/preview/pages/ChatV2/components/QueueColumn/queue-column.styles.d.ts +3 -3
  197. package/dist-lib/src/preview/pages/ClientesShowcase/clientes-showcase-mocks.d.ts +1 -1
  198. package/dist-lib/src/preview/pages/ClientesShowcase/clientes-showcase-mocks.d.ts.map +1 -1
  199. package/dist-lib/src/preview/pages/ClientesShowcase/clientes-showcase.types.d.ts +1 -1
  200. package/dist-lib/src/preview/pages/ClientesShowcase/clientes-showcase.types.d.ts.map +1 -1
  201. package/dist-lib/src/preview/pages/ClientesShowcase/components/DetailDrawer/detail-drawer.types.d.ts +1 -1
  202. package/dist-lib/src/preview/pages/ClientesShowcase/components/DetailDrawer/detail-drawer.types.d.ts.map +1 -1
  203. package/dist-lib/src/preview/pages/DashboardShowcase.d.ts.map +1 -1
  204. package/dist-lib/src/preview/pages/_table-data.d.ts +51 -0
  205. package/dist-lib/src/preview/pages/_table-data.d.ts.map +1 -0
  206. package/dist-lib/src/utils/tv.d.ts.map +1 -1
  207. package/dist-lib/theme.css +32 -0
  208. package/dist-lib/tokens/brands/blue/primitives/color-palette.d.ts +266 -0
  209. package/dist-lib/tokens/brands/blue/primitives/color-palette.d.ts.map +1 -0
  210. package/dist-lib/tokens/brands/blue/semantic/color-dark.d.ts +200 -0
  211. package/dist-lib/tokens/brands/blue/semantic/color-dark.d.ts.map +1 -0
  212. package/dist-lib/tokens/brands/blue/semantic/color-light.d.ts +202 -0
  213. package/dist-lib/tokens/brands/blue/semantic/color-light.d.ts.map +1 -0
  214. package/dist-lib/tokens/brands/default/semantic/typography.d.ts +4 -2
  215. package/dist-lib/tokens/brands/default/semantic/typography.d.ts.map +1 -1
  216. package/dist-lib/tokens/brands/green/primitives/color-palette.d.ts +267 -0
  217. package/dist-lib/tokens/brands/green/primitives/color-palette.d.ts.map +1 -0
  218. package/dist-lib/tokens/brands/green/semantic/color-dark.d.ts +200 -0
  219. package/dist-lib/tokens/brands/green/semantic/color-dark.d.ts.map +1 -0
  220. package/dist-lib/tokens/brands/green/semantic/color-light.d.ts +201 -0
  221. package/dist-lib/tokens/brands/green/semantic/color-light.d.ts.map +1 -0
  222. package/dist-lib/tokens/brands/pay/primitives/color-palette.d.ts +146 -0
  223. package/dist-lib/tokens/brands/pay/primitives/color-palette.d.ts.map +1 -0
  224. package/dist-lib/tokens/brands/pay/semantic/color-dark.d.ts +201 -0
  225. package/dist-lib/tokens/brands/pay/semantic/color-dark.d.ts.map +1 -0
  226. package/dist-lib/tokens/brands/pay/semantic/color-light.d.ts +199 -0
  227. package/dist-lib/tokens/brands/pay/semantic/color-light.d.ts.map +1 -0
  228. package/dist-lib/tokens.cjs +35 -0
  229. package/dist-lib/tokens.cjs.map +1 -1
  230. package/dist-lib/tokens.mjs +35 -0
  231. package/dist-lib/tokens.mjs.map +1 -1
  232. package/package.json +21 -7
  233. package/dist-lib/chunks/app-shell-CPx9X7zP.cjs.map +0 -1
  234. package/dist-lib/chunks/app-shell-Cy9be0Zx.mjs.map +0 -1
  235. package/dist-lib/chunks/badge-DBdk74KN.mjs +0 -840
  236. package/dist-lib/chunks/badge-DBdk74KN.mjs.map +0 -1
  237. package/dist-lib/chunks/badge-gU2wtxrn.cjs +0 -856
  238. package/dist-lib/chunks/badge-gU2wtxrn.cjs.map +0 -1
  239. package/dist-lib/chunks/chip-group-2-f_Yo7Y.cjs +0 -763
  240. package/dist-lib/chunks/chip-group-2-f_Yo7Y.cjs.map +0 -1
  241. package/dist-lib/chunks/chip-group-_e-yh1Zq.mjs +0 -747
  242. package/dist-lib/chunks/chip-group-_e-yh1Zq.mjs.map +0 -1
  243. package/dist-lib/chunks/clientes-showcase-mocks-DygUqkkh.cjs.map +0 -1
  244. package/dist-lib/chunks/clientes-showcase-mocks-ayU1SDOA.mjs.map +0 -1
  245. package/dist-lib/chunks/input-BWevV7up.cjs.map +0 -1
  246. package/dist-lib/chunks/input-C9eKSSEb.mjs.map +0 -1
  247. package/dist-lib/chunks/panel-BCUixETK.mjs.map +0 -1
  248. package/dist-lib/chunks/panel-pOXMw6a-.cjs.map +0 -1
@@ -1,14 +1,436 @@
1
- import { jsxs, Fragment, jsx } from "react/jsx-runtime";
1
+ import { jsxs, jsx, Fragment } from "react/jsx-runtime";
2
2
  import * as React from "react";
3
- import { Fragment as Fragment$1, useState, useEffect, forwardRef, useCallback, useRef } from "react";
4
- import { t as tv, c as cn, B as Button, a as ChipGroup, b as ChipGroupItem } from "./chip-group-_e-yh1Zq.mjs";
3
+ import { forwardRef, Fragment as Fragment$1, useState, useEffect, createContext, useContext, useCallback, useRef } from "react";
4
+ import { clsx } from "clsx";
5
+ import { extendTailwindMerge } from "tailwind-merge";
5
6
  import { ChevronRight, X, Search, Bell, CheckCheck, MoreHorizontal, MessageSquare, PenLine, Maximize2, Check, Sun, Moon, PanelLeftOpen, PanelLeftClose, Menu, Plus, ChevronDown, LayoutGrid, SunMoon, Settings, LogOut } from "lucide-react";
7
+ import { tv as tv$1 } from "tailwind-variants";
6
8
  import { Command as Command$1 } from "cmdk";
7
9
  import * as SheetPrimitive from "@radix-ui/react-dialog";
10
+ import * as ToggleGroupPrimitive from "@radix-ui/react-toggle-group";
8
11
  import * as PopoverPrimitive from "@radix-ui/react-popover";
9
12
  import { cva } from "class-variance-authority";
10
13
  import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
11
14
  import * as AvatarPrimitive from "@radix-ui/react-avatar";
15
+ const isDsPad = (v) => /^(pad|sp)-/.test(v);
16
+ const isDsGap = (v) => /^gp-/.test(v);
17
+ const isDsRadius = (v) => /^radius-/.test(v);
18
+ const isDsShadow = (v) => /^sh-/.test(v);
19
+ const isDsForm = (v) => /^form-/.test(v);
20
+ const twMerge = extendTailwindMerge({
21
+ extend: {
22
+ classGroups: {
23
+ "font-size": [
24
+ {
25
+ // Lista 1:1 com tokens/brands/default/semantic/typography.ts.
26
+ // Manter sincronizado com src/utils/tv.ts. Ver L-016.
27
+ text: [
28
+ // Displays (fluid clamp)
29
+ "display-2xl",
30
+ "display-xl",
31
+ "display-lg",
32
+ "display-md",
33
+ // Headings (xs estático, sm-xl fluid clamp)
34
+ "heading-xl",
35
+ "heading-lg",
36
+ "heading-md",
37
+ "heading-sm",
38
+ "heading-xs",
39
+ // Titles (weight 600 default)
40
+ "title-lg",
41
+ "title-md",
42
+ "title-sm",
43
+ // Body (xs/sm = weight 500 interactive; md-2xl = 400 corrido)
44
+ "body-2xl",
45
+ "body-xl",
46
+ "body-lg",
47
+ "body-md",
48
+ "body-sm",
49
+ "body-xs",
50
+ // Captions (weight 400)
51
+ "caption-md",
52
+ "caption-sm",
53
+ "caption-xs",
54
+ // Code (mono regular)
55
+ "code-md",
56
+ "code-sm"
57
+ ]
58
+ }
59
+ ],
60
+ /* ── Padding ──────────────────────────────────────────────────────── */
61
+ p: [{ p: [isDsPad] }],
62
+ px: [{ px: [isDsPad] }],
63
+ py: [{ py: [isDsPad] }],
64
+ pt: [{ pt: [isDsPad] }],
65
+ pr: [{ pr: [isDsPad] }],
66
+ pb: [{ pb: [isDsPad] }],
67
+ pl: [{ pl: [isDsPad] }],
68
+ ps: [{ ps: [isDsPad] }],
69
+ pe: [{ pe: [isDsPad] }],
70
+ /* ── Margin (usa mesmo sp-*) ──────────────────────────────────────── */
71
+ m: [{ m: [isDsPad] }],
72
+ mx: [{ mx: [isDsPad] }],
73
+ my: [{ my: [isDsPad] }],
74
+ mt: [{ mt: [isDsPad] }],
75
+ mr: [{ mr: [isDsPad] }],
76
+ mb: [{ mb: [isDsPad] }],
77
+ ml: [{ ml: [isDsPad] }],
78
+ ms: [{ ms: [isDsPad] }],
79
+ me: [{ me: [isDsPad] }],
80
+ /* ── Inset / position (top/right/bottom/left) ─────────────────────── */
81
+ inset: [{ inset: [isDsPad] }],
82
+ "inset-x": [{ "inset-x": [isDsPad] }],
83
+ "inset-y": [{ "inset-y": [isDsPad] }],
84
+ "top": [{ top: [isDsPad] }],
85
+ "right": [{ right: [isDsPad] }],
86
+ "bottom": [{ bottom: [isDsPad] }],
87
+ "left": [{ left: [isDsPad] }],
88
+ "start": [{ start: [isDsPad] }],
89
+ "end": [{ end: [isDsPad] }],
90
+ /* ── Gap ──────────────────────────────────────────────────────────── */
91
+ gap: [{ gap: [isDsGap] }],
92
+ "gap-x": [{ "gap-x": [isDsGap] }],
93
+ "gap-y": [{ "gap-y": [isDsGap] }],
94
+ /* ── Rounded (todas as cantos) ────────────────────────────────────── */
95
+ rounded: [{ rounded: [isDsRadius] }],
96
+ "rounded-s": [{ "rounded-s": [isDsRadius] }],
97
+ "rounded-e": [{ "rounded-e": [isDsRadius] }],
98
+ "rounded-t": [{ "rounded-t": [isDsRadius] }],
99
+ "rounded-r": [{ "rounded-r": [isDsRadius] }],
100
+ "rounded-b": [{ "rounded-b": [isDsRadius] }],
101
+ "rounded-l": [{ "rounded-l": [isDsRadius] }],
102
+ "rounded-ss": [{ "rounded-ss": [isDsRadius] }],
103
+ "rounded-se": [{ "rounded-se": [isDsRadius] }],
104
+ "rounded-ee": [{ "rounded-ee": [isDsRadius] }],
105
+ "rounded-es": [{ "rounded-es": [isDsRadius] }],
106
+ "rounded-tl": [{ "rounded-tl": [isDsRadius] }],
107
+ "rounded-tr": [{ "rounded-tr": [isDsRadius] }],
108
+ "rounded-br": [{ "rounded-br": [isDsRadius] }],
109
+ "rounded-bl": [{ "rounded-bl": [isDsRadius] }],
110
+ /* ── Shadow ───────────────────────────────────────────────────────── */
111
+ shadow: [{ shadow: [isDsShadow] }],
112
+ /* ── Form sizes (min-h, h, w, size) ───────────────────────────────── */
113
+ "min-h": [{ "min-h": [isDsForm] }],
114
+ h: [{ h: [isDsForm] }],
115
+ w: [{ w: [isDsForm] }],
116
+ size: [{ size: [isDsForm] }]
117
+ }
118
+ }
119
+ });
120
+ function cn(...inputs) {
121
+ return twMerge(clsx(inputs));
122
+ }
123
+ const twMergeConfig = {
124
+ extend: {
125
+ classGroups: {
126
+ "font-size": [
127
+ {
128
+ text: [
129
+ // Displays (fluid clamp)
130
+ "display-2xl",
131
+ "display-xl",
132
+ "display-lg",
133
+ "display-md",
134
+ // Headings (xs estático, sm-xl fluid clamp)
135
+ "heading-xl",
136
+ "heading-lg",
137
+ "heading-md",
138
+ "heading-sm",
139
+ "heading-xs",
140
+ // Titles (weight 600 default)
141
+ "title-lg",
142
+ "title-md",
143
+ "title-sm",
144
+ // Body (xs/sm = weight 500 interactive; md-2xl = 400 corrido)
145
+ "body-2xl",
146
+ "body-xl",
147
+ "body-lg",
148
+ "body-md",
149
+ "body-sm",
150
+ "body-xs",
151
+ // Captions (weight 400)
152
+ "caption-md",
153
+ "caption-sm",
154
+ "caption-xs",
155
+ // Stat (número de métrica/KPI — estático, bold, leading tight)
156
+ "stat-xl",
157
+ "stat-lg",
158
+ "stat-md",
159
+ "stat-sm",
160
+ // Code (mono regular)
161
+ "code-md",
162
+ "code-sm"
163
+ ]
164
+ }
165
+ ]
166
+ }
167
+ }
168
+ };
169
+ const tv = (options, config) => tv$1(options, {
170
+ ...config,
171
+ twMergeConfig
172
+ });
173
+ const buttonVariants = tv({
174
+ base: [
175
+ "inline-flex items-center justify-center",
176
+ "select-none whitespace-nowrap",
177
+ "focus-visible:outline-none",
178
+ "border border-transparent",
179
+ "text-body-sm font-semibold leading-none",
180
+ // 13px / 600 — alinhado com sandbox btn
181
+ "[&_svg]:shrink-0",
182
+ // SVG não diminui; tamanho controlado por size
183
+ "transition-all duration-200 ease-out",
184
+ "cursor-pointer",
185
+ "focus-visible:ring-4"
186
+ ],
187
+ variants: {
188
+ color: {
189
+ primary: "focus-visible:ring-ring-brand",
190
+ secondary: "focus-visible:ring-ring-secondary",
191
+ critical: "focus-visible:ring-ring-danger",
192
+ success: "focus-visible:ring-ring-success",
193
+ warning: "focus-visible:ring-ring-warning"
194
+ },
195
+ variant: {
196
+ filled: "",
197
+ outline: "",
198
+ soft: "",
199
+ ghost: "bg-transparent"
200
+ },
201
+ size: {
202
+ // h28 / pad 10 / gap 6 / radius 8 / icon 12
203
+ "2xs": "min-h-form-xs px-pad-lg gap-gp-sm rounded-radius-md [&_svg]:size-[12px]",
204
+ // h32 / pad 12 / gap 6 / radius 8 / icon 14
205
+ xs: "min-h-form-sm px-pad-xl gap-gp-sm rounded-radius-md [&_svg]:size-[14px]",
206
+ // h36 / pad 12 / gap 6 / radius 10 / icon 14
207
+ sm: "min-h-form-md px-pad-xl gap-gp-sm rounded-radius-lg [&_svg]:size-[14px]",
208
+ // h40 / pad 16 / gap 6 / radius 10 / icon 14 (alinhado com sandbox Exportar)
209
+ md: "min-h-form-lg px-pad-2xl gap-gp-sm rounded-radius-lg [&_svg]:size-[14px]",
210
+ // h44 / pad 16 / gap 8 / radius 10 / icon 16
211
+ lg: "min-h-form-xl px-pad-2xl gap-gp-md rounded-radius-lg [&_svg]:size-[16px]",
212
+ // Icon buttons — width = height (square). Regra: SVG +2px vs versão com label
213
+ // (precisa preencher mais o quadrado sem o texto carregando peso visual).
214
+ "icon-2xs": "size-form-xs rounded-radius-md p-0 [&_svg]:size-[14px]",
215
+ // 28×28 / +2 (12→14)
216
+ "icon-xs": "size-form-sm rounded-radius-md p-0 [&_svg]:size-[16px]",
217
+ // 32×32 / +2 (14→16)
218
+ "icon-sm": "size-form-md rounded-radius-lg p-0 [&_svg]:size-[16px]",
219
+ // 36×36 / +2 (14→16)
220
+ "icon-md": "size-form-lg rounded-radius-lg p-0 [&_svg]:size-[16px]",
221
+ // 40×40 / +2 (14→16)
222
+ "icon-lg": "size-form-xl rounded-radius-lg p-0 [&_svg]:size-[18px]"
223
+ // 44×44 / +2 (16→18)
224
+ },
225
+ fullWidth: {
226
+ true: "w-full flex-1"
227
+ },
228
+ /**
229
+ * Shape do botão:
230
+ * - rounded (default): mantém o radius da `size` (varia por tamanho)
231
+ * - pill: força `rounded-full` (override com `!` pra ganhar do size)
232
+ */
233
+ shape: {
234
+ rounded: "",
235
+ pill: "!rounded-full"
236
+ },
237
+ disabled: {
238
+ true: "pointer-events-none opacity-50"
239
+ }
240
+ },
241
+ compoundVariants: [
242
+ // ── Primary (brand) ─────────────────────────────────────────────
243
+ {
244
+ color: "primary",
245
+ variant: "filled",
246
+ class: "bg-bg-brand text-fg-on-brand hover:bg-bg-brand-hover"
247
+ },
248
+ {
249
+ color: "primary",
250
+ variant: "outline",
251
+ class: "bg-bg-surface border-border-brand text-fg-brand shadow-sh-sm hover:bg-bg-brand-subtle hover:border-transparent hover:shadow-sh-none"
252
+ },
253
+ {
254
+ color: "primary",
255
+ variant: "soft",
256
+ class: "bg-bg-brand-subtle text-fg-brand hover:bg-bg-brand-subtle-hover"
257
+ },
258
+ {
259
+ color: "primary",
260
+ variant: "ghost",
261
+ class: "text-fg-brand hover:bg-bg-brand-subtle"
262
+ },
263
+ // ── Secondary (neutro) ──────────────────────────────────────────
264
+ {
265
+ color: "secondary",
266
+ variant: "filled",
267
+ class: "bg-bg-muted text-fg-muted hover:bg-bg-muted-hover hover:text-fg-default"
268
+ },
269
+ {
270
+ // Outline alinhado com `.btn.tbl-tool-btn` do design-and-table-v2:
271
+ // light = bg-surface + border-subtle + fg-default + shadow-sm (mantém no hover)
272
+ // dark = bg-muted + border-input + fg-muted + sem shadow
273
+ color: "secondary",
274
+ variant: "outline",
275
+ class: [
276
+ "bg-bg-surface border-border-subtle text-fg-default shadow-sh-sm",
277
+ "dark:bg-bg-muted dark:border-border-input dark:text-fg-muted dark:shadow-sh-none",
278
+ "hover:bg-bg-muted-hover hover:text-fg-default",
279
+ "dark:hover:bg-bg-muted-hover dark:hover:text-fg-default"
280
+ ].join(" ")
281
+ },
282
+ {
283
+ color: "secondary",
284
+ variant: "soft",
285
+ class: "bg-bg-muted text-fg-muted hover:bg-bg-muted-hover hover:text-fg-default"
286
+ },
287
+ {
288
+ color: "secondary",
289
+ variant: "ghost",
290
+ class: "text-fg-muted hover:bg-bg-muted hover:text-fg-default"
291
+ },
292
+ // ── Critical (danger) ───────────────────────────────────────────
293
+ {
294
+ color: "critical",
295
+ variant: "filled",
296
+ class: "bg-bg-danger text-fg-on-danger hover:bg-bg-danger-hover"
297
+ },
298
+ {
299
+ color: "critical",
300
+ variant: "outline",
301
+ class: "bg-bg-surface border-border-danger-muted text-fg-danger shadow-sh-sm hover:bg-bg-danger-muted hover:shadow-sh-none"
302
+ },
303
+ {
304
+ color: "critical",
305
+ variant: "soft",
306
+ class: "bg-bg-danger-muted text-fg-danger hover:bg-bg-danger-muted-hover"
307
+ },
308
+ {
309
+ color: "critical",
310
+ variant: "ghost",
311
+ class: "text-fg-danger hover:bg-bg-danger-muted"
312
+ },
313
+ // ── Success ─────────────────────────────────────────────────────
314
+ {
315
+ color: "success",
316
+ variant: "filled",
317
+ class: "bg-bg-success text-fg-on-success hover:bg-bg-success-hover"
318
+ },
319
+ {
320
+ color: "success",
321
+ variant: "outline",
322
+ class: "bg-bg-surface border-border-success-muted text-fg-success shadow-sh-sm hover:bg-bg-success-muted hover:shadow-sh-none"
323
+ },
324
+ {
325
+ color: "success",
326
+ variant: "soft",
327
+ class: "bg-bg-success-muted text-fg-success hover:bg-bg-success-muted-hover"
328
+ },
329
+ {
330
+ color: "success",
331
+ variant: "ghost",
332
+ class: "text-fg-success hover:bg-bg-success-muted"
333
+ },
334
+ // ── Warning ─────────────────────────────────────────────────────
335
+ {
336
+ color: "warning",
337
+ variant: "filled",
338
+ class: "bg-bg-warning text-fg-on-warning hover:bg-bg-warning-hover"
339
+ },
340
+ {
341
+ color: "warning",
342
+ variant: "outline",
343
+ class: "bg-bg-surface border-border-warning-muted text-fg-warning shadow-sh-sm hover:bg-bg-warning-muted hover:shadow-sh-none"
344
+ },
345
+ {
346
+ color: "warning",
347
+ variant: "soft",
348
+ class: "bg-bg-warning-muted text-fg-warning hover:bg-bg-warning-muted-hover"
349
+ },
350
+ {
351
+ color: "warning",
352
+ variant: "ghost",
353
+ class: "text-fg-warning hover:bg-bg-warning-muted"
354
+ },
355
+ // ── Disabled — SEMPRE por último ────────────────────────────────
356
+ { disabled: true, class: "pointer-events-none opacity-50" }
357
+ ],
358
+ defaultVariants: {
359
+ color: "primary",
360
+ variant: "filled",
361
+ size: "md",
362
+ shape: "rounded"
363
+ }
364
+ });
365
+ const Button = forwardRef(
366
+ function Button2({
367
+ color,
368
+ variant,
369
+ size,
370
+ shape,
371
+ fullWidth,
372
+ loading = false,
373
+ disabled = false,
374
+ iconLeft,
375
+ iconRight,
376
+ children,
377
+ className,
378
+ type = "button",
379
+ ...rest
380
+ }, ref) {
381
+ const isDisabled = disabled || loading;
382
+ return /* @__PURE__ */ jsxs(
383
+ "button",
384
+ {
385
+ ref,
386
+ type,
387
+ disabled: isDisabled,
388
+ className: buttonVariants({
389
+ color,
390
+ variant,
391
+ size,
392
+ shape,
393
+ fullWidth,
394
+ disabled: isDisabled,
395
+ className
396
+ }),
397
+ ...rest,
398
+ children: [
399
+ loading && /* @__PURE__ */ jsx(Spinner, {}),
400
+ !loading && iconLeft,
401
+ children,
402
+ !loading && iconRight
403
+ ]
404
+ }
405
+ );
406
+ }
407
+ );
408
+ function Spinner() {
409
+ return /* @__PURE__ */ jsx(
410
+ "svg",
411
+ {
412
+ width: "16",
413
+ height: "16",
414
+ viewBox: "0 0 16 16",
415
+ fill: "none",
416
+ className: "animate-spin",
417
+ children: /* @__PURE__ */ jsx(
418
+ "circle",
419
+ {
420
+ cx: "8",
421
+ cy: "8",
422
+ r: "6",
423
+ stroke: "currentColor",
424
+ strokeWidth: "2",
425
+ strokeLinecap: "round",
426
+ strokeDasharray: "28",
427
+ strokeDashoffset: "8",
428
+ className: "opacity-70"
429
+ }
430
+ )
431
+ }
432
+ );
433
+ }
12
434
  const headerRoot = tv({
13
435
  base: [
14
436
  "flex items-center justify-between gap-gp-lg",
@@ -404,17 +826,21 @@ const Command = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__
404
826
  ));
405
827
  Command.displayName = Command$1.displayName;
406
828
  const CommandDialog = ({ children, ...props }) => {
407
- return /* @__PURE__ */ jsx(Dialog, { ...props, children: /* @__PURE__ */ jsx(
829
+ return /* @__PURE__ */ jsx(Dialog, { ...props, children: /* @__PURE__ */ jsxs(
408
830
  DialogContent,
409
831
  {
410
832
  hideClose: true,
833
+ "aria-describedby": void 0,
411
834
  className: cn(
412
835
  "overflow-hidden p-0 gap-0 sm:max-w-[384px]",
413
836
  "rounded-[12px] border border-border-default",
414
837
  // Outline padrão de elementos flutuantes
415
838
  "outline-float"
416
839
  ),
417
- children: /* @__PURE__ */ jsx(Command, { children })
840
+ children: [
841
+ /* @__PURE__ */ jsx(DialogTitle, { className: "sr-only", children: "Comando" }),
842
+ /* @__PURE__ */ jsx(Command, { children })
843
+ ]
418
844
  }
419
845
  ) });
420
846
  };
@@ -627,6 +1053,321 @@ function CommandGroupBlock({
627
1053
  !isLast && /* @__PURE__ */ jsx(CommandSeparator, {})
628
1054
  ] });
629
1055
  }
1056
+ const chipVariants = tv({
1057
+ base: [
1058
+ "inline-flex items-center justify-center gap-gp-xs shrink-0",
1059
+ "font-semibold whitespace-nowrap select-none",
1060
+ "transition-[background-color,color,border-color,box-shadow] duration-150",
1061
+ "[&_svg]:shrink-0"
1062
+ ],
1063
+ variants: {
1064
+ size: {
1065
+ sm: "h-[24px] px-pad-md text-caption-sm [&_svg]:size-[12px]",
1066
+ md: "h-form-xs px-pad-lg text-body-xs font-normal [&_svg]:size-[12px]",
1067
+ // 28px
1068
+ lg: "h-form-sm px-pad-xl text-body-sm font-normal [&_svg]:size-[14px]",
1069
+ // 32px
1070
+ xl: "h-form-md px-pad-xl text-body-sm font-normal [&_svg]:size-[14px]"
1071
+ // 36px (= Button md)
1072
+ },
1073
+ /**
1074
+ * `pill` = rounded-full (default — chip pílula clássico).
1075
+ * `rounded` = canto arredondado igual ao Button (radius-md em sm/md, radius-lg em lg/xl).
1076
+ */
1077
+ shape: {
1078
+ pill: "rounded-radius-full",
1079
+ rounded: ""
1080
+ // aplica via compoundVariants por size
1081
+ },
1082
+ color: {
1083
+ primary: "",
1084
+ neutral: "",
1085
+ danger: "",
1086
+ warning: "",
1087
+ success: "",
1088
+ info: ""
1089
+ },
1090
+ variant: {
1091
+ solid: "",
1092
+ outline: "border",
1093
+ soft: "",
1094
+ "soft-outline": "border"
1095
+ },
1096
+ interactive: {
1097
+ true: "cursor-pointer outline-none focus-visible:shadow-sh-ring",
1098
+ false: ""
1099
+ },
1100
+ selected: {
1101
+ true: "",
1102
+ false: ""
1103
+ }
1104
+ },
1105
+ compoundVariants: [
1106
+ /* ── Shape rounded × size — radius proporcional ao Button ──── */
1107
+ { shape: "rounded", size: "sm", class: "rounded-radius-md" },
1108
+ { shape: "rounded", size: "md", class: "rounded-radius-md" },
1109
+ { shape: "rounded", size: "lg", class: "rounded-radius-lg" },
1110
+ { shape: "rounded", size: "xl", class: "rounded-radius-lg" },
1111
+ /* ── Solid ──────────────────────────────────────────────────── */
1112
+ { color: "primary", variant: "solid", class: "bg-bg-brand text-fg-on-brand" },
1113
+ { color: "neutral", variant: "solid", class: "bg-bg-muted text-fg-default" },
1114
+ { color: "danger", variant: "solid", class: "bg-bg-danger text-fg-on-danger" },
1115
+ { color: "warning", variant: "solid", class: "bg-bg-warning text-fg-on-warning" },
1116
+ { color: "success", variant: "solid", class: "bg-bg-success text-fg-on-success" },
1117
+ { color: "info", variant: "solid", class: "bg-bg-info text-fg-on-info" },
1118
+ /* ── Outline ────────────────────────────────────────────────── */
1119
+ { color: "primary", variant: "outline", class: "bg-transparent border-border-brand text-fg-brand" },
1120
+ { color: "neutral", variant: "outline", class: "bg-transparent border-border-default text-fg-default" },
1121
+ { color: "danger", variant: "outline", class: "bg-transparent border-border-danger-muted text-fg-danger" },
1122
+ { color: "warning", variant: "outline", class: "bg-transparent border-border-warning-muted text-fg-warning" },
1123
+ { color: "success", variant: "outline", class: "bg-transparent border-border-success-muted text-fg-success" },
1124
+ { color: "info", variant: "outline", class: "bg-transparent border-border-info-muted text-fg-info" },
1125
+ /* ── Soft ───────────────────────────────────────────────────── */
1126
+ { color: "primary", variant: "soft", class: "bg-bg-brand-subtle text-fg-brand" },
1127
+ { color: "neutral", variant: "soft", class: "bg-bg-muted text-fg-muted" },
1128
+ { color: "danger", variant: "soft", class: "bg-bg-danger-muted text-fg-danger" },
1129
+ { color: "warning", variant: "soft", class: "bg-bg-warning-muted text-fg-warning" },
1130
+ { color: "success", variant: "soft", class: "bg-bg-success-muted text-fg-success" },
1131
+ { color: "info", variant: "soft", class: "bg-bg-info-muted text-fg-info" },
1132
+ /* ── Soft + Outline (bg sutil + borda definida) ─────────────── */
1133
+ { color: "primary", variant: "soft-outline", class: "bg-bg-brand-subtle border-border-brand text-fg-brand" },
1134
+ { color: "neutral", variant: "soft-outline", class: "bg-bg-muted border-border-default text-fg-muted" },
1135
+ { color: "danger", variant: "soft-outline", class: "bg-bg-danger-muted border-border-danger-muted text-fg-danger" },
1136
+ { color: "warning", variant: "soft-outline", class: "bg-bg-warning-muted border-border-warning-muted text-fg-warning" },
1137
+ { color: "success", variant: "soft-outline", class: "bg-bg-success-muted border-border-success-muted text-fg-success" },
1138
+ { color: "info", variant: "soft-outline", class: "bg-bg-info-muted border-border-info-muted text-fg-info" },
1139
+ /* ── Hover (somente quando interactive) ────────────────────── */
1140
+ { interactive: true, color: "primary", variant: "solid", class: "hover:bg-bg-brand-hover" },
1141
+ { interactive: true, color: "neutral", variant: "solid", class: "hover:bg-bg-muted-hover" },
1142
+ { interactive: true, color: "danger", variant: "solid", class: "hover:bg-bg-danger-hover" },
1143
+ { interactive: true, color: "warning", variant: "solid", class: "hover:bg-bg-warning-hover" },
1144
+ { interactive: true, color: "success", variant: "solid", class: "hover:bg-bg-success-hover" },
1145
+ { interactive: true, color: "info", variant: "solid", class: "hover:bg-bg-info-hover" },
1146
+ { interactive: true, color: "primary", variant: "outline", class: "hover:bg-bg-brand-subtle" },
1147
+ { interactive: true, color: "neutral", variant: "outline", class: "hover:bg-bg-muted" },
1148
+ { interactive: true, color: "danger", variant: "outline", class: "hover:bg-bg-danger-muted" },
1149
+ { interactive: true, color: "warning", variant: "outline", class: "hover:bg-bg-warning-muted" },
1150
+ { interactive: true, color: "success", variant: "outline", class: "hover:bg-bg-success-muted" },
1151
+ { interactive: true, color: "info", variant: "outline", class: "hover:bg-bg-info-muted" },
1152
+ { interactive: true, color: "primary", variant: "soft", class: "hover:bg-bg-brand-subtle-hover" },
1153
+ { interactive: true, color: "neutral", variant: "soft", class: "hover:bg-bg-muted-hover hover:text-fg-default" },
1154
+ { interactive: true, color: "danger", variant: "soft", class: "hover:bg-bg-danger-muted-hover" },
1155
+ { interactive: true, color: "warning", variant: "soft", class: "hover:bg-bg-warning-muted-hover" },
1156
+ { interactive: true, color: "success", variant: "soft", class: "hover:bg-bg-success-muted-hover" },
1157
+ { interactive: true, color: "info", variant: "soft", class: "hover:bg-bg-info-muted-hover" },
1158
+ { interactive: true, color: "primary", variant: "soft-outline", class: "hover:bg-bg-brand-subtle-hover" },
1159
+ { interactive: true, color: "neutral", variant: "soft-outline", class: "hover:bg-bg-muted-hover hover:text-fg-default" },
1160
+ { interactive: true, color: "danger", variant: "soft-outline", class: "hover:bg-bg-danger-muted-hover" },
1161
+ { interactive: true, color: "warning", variant: "soft-outline", class: "hover:bg-bg-warning-muted-hover" },
1162
+ { interactive: true, color: "success", variant: "soft-outline", class: "hover:bg-bg-success-muted-hover" },
1163
+ { interactive: true, color: "info", variant: "soft-outline", class: "hover:bg-bg-info-muted-hover" },
1164
+ /* ── Selected (ChipGroup) — força "soft" da color como visual ativo ── */
1165
+ { selected: true, color: "primary", class: "bg-bg-brand-subtle text-fg-brand border-transparent" },
1166
+ { selected: true, color: "neutral", class: "bg-bg-accent text-fg-default font-semibold border-transparent shadow-sh-sm" },
1167
+ { selected: true, color: "danger", class: "bg-bg-danger-muted text-fg-danger border-transparent" },
1168
+ { selected: true, color: "warning", class: "bg-bg-warning-muted text-fg-warning border-transparent" },
1169
+ { selected: true, color: "success", class: "bg-bg-success-muted text-fg-success border-transparent" },
1170
+ { selected: true, color: "info", class: "bg-bg-info-muted text-fg-info border-transparent" }
1171
+ ],
1172
+ defaultVariants: {
1173
+ color: "neutral",
1174
+ variant: "soft",
1175
+ size: "md",
1176
+ shape: "pill",
1177
+ interactive: false,
1178
+ selected: false
1179
+ }
1180
+ });
1181
+ const chipCount = tv({
1182
+ base: [
1183
+ "inline-flex items-center justify-center min-w-[16px] h-[16px] px-[4px]",
1184
+ "rounded-radius-full text-caption-xs font-semibold leading-none",
1185
+ "bg-bg-muted text-fg-default"
1186
+ ]
1187
+ });
1188
+ const Chip = forwardRef(function Chip2({
1189
+ children,
1190
+ color,
1191
+ variant,
1192
+ size,
1193
+ shape,
1194
+ selected,
1195
+ onClick,
1196
+ asButton,
1197
+ className,
1198
+ type,
1199
+ ...rest
1200
+ }, ref) {
1201
+ const interactive = Boolean(onClick) || asButton === true;
1202
+ const classes = cn(
1203
+ chipVariants({ color, variant, size, shape, interactive, selected }),
1204
+ className
1205
+ );
1206
+ if (interactive) {
1207
+ return /* @__PURE__ */ jsx(
1208
+ "button",
1209
+ {
1210
+ ref,
1211
+ type: type ?? "button",
1212
+ onClick,
1213
+ className: classes,
1214
+ "aria-pressed": selected,
1215
+ ...rest,
1216
+ children
1217
+ }
1218
+ );
1219
+ }
1220
+ return /* @__PURE__ */ jsx(
1221
+ "span",
1222
+ {
1223
+ ref,
1224
+ className: classes,
1225
+ ...rest,
1226
+ children
1227
+ }
1228
+ );
1229
+ });
1230
+ const SELECTED_CLASSES = {
1231
+ primary: {
1232
+ solid: "data-[state=on]:bg-bg-brand data-[state=on]:text-fg-on-brand data-[state=on]:border-transparent",
1233
+ outline: "data-[state=on]:border-border-brand data-[state=on]:text-fg-brand data-[state=on]:bg-transparent",
1234
+ soft: "data-[state=on]:bg-bg-brand-subtle data-[state=on]:text-fg-brand data-[state=on]:border-transparent",
1235
+ "soft-outline": "data-[state=on]:bg-bg-brand-subtle data-[state=on]:border-border-brand data-[state=on]:text-fg-brand"
1236
+ },
1237
+ neutral: {
1238
+ solid: "data-[state=on]:bg-bg-muted data-[state=on]:text-fg-default data-[state=on]:border-transparent",
1239
+ outline: "data-[state=on]:border-border-default data-[state=on]:text-fg-default data-[state=on]:bg-transparent",
1240
+ soft: "data-[state=on]:bg-bg-accent data-[state=on]:text-fg-default data-[state=on]:border-transparent data-[state=on]:shadow-sh-sm",
1241
+ "soft-outline": "data-[state=on]:bg-bg-muted data-[state=on]:border-border-default data-[state=on]:text-fg-default"
1242
+ },
1243
+ danger: {
1244
+ solid: "data-[state=on]:bg-bg-danger data-[state=on]:text-fg-on-danger data-[state=on]:border-transparent",
1245
+ outline: "data-[state=on]:border-border-danger-muted data-[state=on]:text-fg-danger data-[state=on]:bg-transparent",
1246
+ soft: "data-[state=on]:bg-bg-danger-muted data-[state=on]:text-fg-danger data-[state=on]:border-transparent",
1247
+ "soft-outline": "data-[state=on]:bg-bg-danger-muted data-[state=on]:border-border-danger-muted data-[state=on]:text-fg-danger"
1248
+ },
1249
+ warning: {
1250
+ solid: "data-[state=on]:bg-bg-warning data-[state=on]:text-fg-on-warning data-[state=on]:border-transparent",
1251
+ outline: "data-[state=on]:border-border-warning-muted data-[state=on]:text-fg-warning data-[state=on]:bg-transparent",
1252
+ soft: "data-[state=on]:bg-bg-warning-muted data-[state=on]:text-fg-warning data-[state=on]:border-transparent",
1253
+ "soft-outline": "data-[state=on]:bg-bg-warning-muted data-[state=on]:border-border-warning-muted data-[state=on]:text-fg-warning"
1254
+ },
1255
+ success: {
1256
+ solid: "data-[state=on]:bg-bg-success data-[state=on]:text-fg-on-success data-[state=on]:border-transparent",
1257
+ outline: "data-[state=on]:border-border-success-muted data-[state=on]:text-fg-success data-[state=on]:bg-transparent",
1258
+ soft: "data-[state=on]:bg-bg-success-muted data-[state=on]:text-fg-success data-[state=on]:border-transparent",
1259
+ "soft-outline": "data-[state=on]:bg-bg-success-muted data-[state=on]:border-border-success-muted data-[state=on]:text-fg-success"
1260
+ },
1261
+ info: {
1262
+ solid: "data-[state=on]:bg-bg-info data-[state=on]:text-fg-on-info data-[state=on]:border-transparent",
1263
+ outline: "data-[state=on]:border-border-info-muted data-[state=on]:text-fg-info data-[state=on]:bg-transparent",
1264
+ soft: "data-[state=on]:bg-bg-info-muted data-[state=on]:text-fg-info data-[state=on]:border-transparent",
1265
+ "soft-outline": "data-[state=on]:bg-bg-info-muted data-[state=on]:border-border-info-muted data-[state=on]:text-fg-info"
1266
+ }
1267
+ };
1268
+ const ChipGroup = forwardRef(
1269
+ function ChipGroup2(props, ref) {
1270
+ const {
1271
+ inactiveColor = "neutral",
1272
+ inactiveVariant = "outline",
1273
+ activeColor = "primary",
1274
+ activeVariant = "soft-outline",
1275
+ size = "md",
1276
+ shape = "pill",
1277
+ orientation = "horizontal",
1278
+ ariaLabel,
1279
+ className,
1280
+ children
1281
+ } = props;
1282
+ const contextValue = {
1283
+ inactiveColor,
1284
+ inactiveVariant,
1285
+ activeColor,
1286
+ activeVariant,
1287
+ size,
1288
+ shape
1289
+ };
1290
+ if (props.type === "single") {
1291
+ return /* @__PURE__ */ jsx(ChipGroupContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsx(
1292
+ ToggleGroupPrimitive.Root,
1293
+ {
1294
+ ref,
1295
+ type: "single",
1296
+ value: props.value,
1297
+ defaultValue: props.defaultValue,
1298
+ onValueChange: props.onValueChange,
1299
+ orientation,
1300
+ "aria-label": ariaLabel,
1301
+ className: cn(
1302
+ "inline-flex items-center gap-gp-sm",
1303
+ orientation === "vertical" && "flex-col",
1304
+ className
1305
+ ),
1306
+ children
1307
+ }
1308
+ ) });
1309
+ }
1310
+ return /* @__PURE__ */ jsx(ChipGroupContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsx(
1311
+ ToggleGroupPrimitive.Root,
1312
+ {
1313
+ ref,
1314
+ type: "multiple",
1315
+ value: props.value,
1316
+ defaultValue: props.defaultValue,
1317
+ onValueChange: props.onValueChange,
1318
+ orientation,
1319
+ "aria-label": ariaLabel,
1320
+ className: cn(
1321
+ "inline-flex items-center gap-gp-sm",
1322
+ orientation === "vertical" && "flex-col",
1323
+ className
1324
+ ),
1325
+ children
1326
+ }
1327
+ ) });
1328
+ }
1329
+ );
1330
+ const ChipGroupContext = createContext({
1331
+ inactiveColor: "neutral",
1332
+ inactiveVariant: "outline",
1333
+ activeColor: "primary",
1334
+ activeVariant: "soft-outline",
1335
+ size: "md",
1336
+ shape: "pill"
1337
+ });
1338
+ const ChipGroupItem = forwardRef(
1339
+ function ChipGroupItem2({ className, children, ...rest }, ref) {
1340
+ const {
1341
+ inactiveColor,
1342
+ inactiveVariant,
1343
+ activeColor,
1344
+ activeVariant,
1345
+ size,
1346
+ shape
1347
+ } = useContext(ChipGroupContext);
1348
+ return /* @__PURE__ */ jsx(
1349
+ ToggleGroupPrimitive.Item,
1350
+ {
1351
+ ref,
1352
+ className: cn(
1353
+ // Estado OFF — visual inativo (passa pelo chipVariants normal)
1354
+ chipVariants({
1355
+ color: inactiveColor,
1356
+ variant: inactiveVariant,
1357
+ size,
1358
+ shape,
1359
+ interactive: true
1360
+ }),
1361
+ // Estado ON — override via data-state=on com classes do active*
1362
+ SELECTED_CLASSES[activeColor][activeVariant],
1363
+ className
1364
+ ),
1365
+ ...rest,
1366
+ children
1367
+ }
1368
+ );
1369
+ }
1370
+ );
630
1371
  const Popover = PopoverPrimitive.Root;
631
1372
  const PopoverTrigger = PopoverPrimitive.Trigger;
632
1373
  const PopoverAnchor = PopoverPrimitive.Anchor;
@@ -1581,7 +2322,7 @@ const sidebarRailUser = tv({
1581
2322
  });
1582
2323
  const sidebarRailUserDefault = tv({
1583
2324
  base: [
1584
- "grid place-items-center w-9 h-9 rounded-full",
2325
+ "grid place-items-center size-comp-lg rounded-full",
1585
2326
  // tracking-[0.02em] preserva tracking original (preset usa +0.06em)
1586
2327
  "bg-bg-brand text-fg-on-brand font-bold text-caption-sm uppercase tracking-[0.02em]"
1587
2328
  ]
@@ -1775,6 +2516,15 @@ const sidebarSectionItem = tv({
1775
2516
  const sidebarBookmarkDot = tv({
1776
2517
  base: "flex-none w-[10px] h-[10px] rounded-full"
1777
2518
  });
2519
+ const sidebarBookmarkIcon = tv({
2520
+ base: [
2521
+ // mesmo footprint do dot/avatar → alinhamento consistente; ícone herda a
2522
+ // cor via `color` inline (currentColor), sem caixa de fundo
2523
+ "flex-none grid place-items-center w-icon-lg h-icon-lg",
2524
+ // menor que o ícone de categoria (17px) → menos destaque, perto do peso do dot
2525
+ "[&>svg]:size-icon-xs"
2526
+ ]
2527
+ });
1778
2528
  const sidebarChatAvatar = tv({
1779
2529
  base: [
1780
2530
  "flex-none grid place-items-center w-icon-lg h-icon-lg rounded-full",
@@ -2052,26 +2802,37 @@ function SidebarSection({
2052
2802
  id: `section-${section.id}`,
2053
2803
  className: sidebarSectionList({ collapsed, variant: section.variant }),
2054
2804
  children: [
2055
- section.variant === "bookmark" && section.items.map((item) => /* @__PURE__ */ jsxs(
2056
- SidebarSectionLink,
2057
- {
2058
- href: item.href,
2059
- onClick: item.onClick,
2060
- title: item.name,
2061
- children: [
2062
- /* @__PURE__ */ jsx(
2063
- "span",
2064
- {
2065
- className: sidebarBookmarkDot(),
2066
- style: { backgroundColor: item.color },
2067
- "aria-hidden": "true"
2068
- }
2069
- ),
2070
- /* @__PURE__ */ jsx("span", { className: sidebarItemText(), children: item.name })
2071
- ]
2072
- },
2073
- item.name
2074
- )),
2805
+ section.variant === "bookmark" && section.items.map((item) => {
2806
+ const Icon = item.icon;
2807
+ return /* @__PURE__ */ jsxs(
2808
+ SidebarSectionLink,
2809
+ {
2810
+ href: item.href,
2811
+ onClick: item.onClick,
2812
+ title: item.name,
2813
+ children: [
2814
+ Icon ? /* @__PURE__ */ jsx(
2815
+ "span",
2816
+ {
2817
+ className: sidebarBookmarkIcon(),
2818
+ style: { color: item.color },
2819
+ "aria-hidden": "true",
2820
+ children: /* @__PURE__ */ jsx(Icon, {})
2821
+ }
2822
+ ) : /* @__PURE__ */ jsx(
2823
+ "span",
2824
+ {
2825
+ className: sidebarBookmarkDot(),
2826
+ style: { backgroundColor: item.color },
2827
+ "aria-hidden": "true"
2828
+ }
2829
+ ),
2830
+ /* @__PURE__ */ jsx("span", { className: sidebarItemText(), children: item.name })
2831
+ ]
2832
+ },
2833
+ item.name
2834
+ );
2835
+ }),
2075
2836
  section.variant === "chat" && section.items.map((item) => /* @__PURE__ */ jsxs(
2076
2837
  SidebarSectionLink,
2077
2838
  {
@@ -2448,7 +3209,7 @@ function UserMenu({
2448
3209
  type: "button",
2449
3210
  "aria-label": `Menu do usuário (${user.name})`,
2450
3211
  className: [
2451
- "grid place-items-center w-9 h-9 rounded-full shrink-0",
3212
+ "grid place-items-center size-comp-lg rounded-full shrink-0",
2452
3213
  "bg-bg-brand text-fg-on-brand text-caption-sm font-bold uppercase tracking-[0.02em]",
2453
3214
  "cursor-pointer transition-opacity duration-150",
2454
3215
  "hover:opacity-90",
@@ -2456,7 +3217,7 @@ function UserMenu({
2456
3217
  "data-[state=open]:ring-4 data-[state=open]:ring-ring-secondary"
2457
3218
  ].join(" "),
2458
3219
  style: user.avatarColor ? { background: user.avatarColor } : void 0,
2459
- children: user.avatarSrc ? /* @__PURE__ */ jsxs(Avatar, { className: "size-9", children: [
3220
+ children: user.avatarSrc ? /* @__PURE__ */ jsxs(Avatar, { className: "size-comp-lg", children: [
2460
3221
  /* @__PURE__ */ jsx(AvatarImage, { src: user.avatarSrc, alt: user.name }),
2461
3222
  /* @__PURE__ */ jsx(AvatarFallback, { className: "bg-transparent text-fg-on-brand", children: initials })
2462
3223
  ] }) : /* @__PURE__ */ jsx("span", { "aria-hidden": true, children: initials })
@@ -2474,7 +3235,7 @@ function UserMenu({
2474
3235
  /* @__PURE__ */ jsxs(
2475
3236
  Avatar,
2476
3237
  {
2477
- className: "size-9 shrink-0",
3238
+ className: "size-comp-lg shrink-0",
2478
3239
  style: user.avatarColor ? { background: user.avatarColor } : void 0,
2479
3240
  children: [
2480
3241
  user.avatarSrc && /* @__PURE__ */ jsx(AvatarImage, { src: user.avatarSrc, alt: user.name }),
@@ -2714,59 +3475,68 @@ function AppShell({
2714
3475
  }
2715
3476
  AppShell.displayName = "AppShell";
2716
3477
  export {
2717
- PopoverAnchor as $,
3478
+ SidebarSection as $,
2718
3479
  AppShell as A,
2719
- InputGroupText as B,
2720
- CommandDialog as C,
3480
+ Button as B,
3481
+ Chip as C,
2721
3482
  DropdownMenu as D,
2722
- InputGroupTextarea as E,
2723
- DropdownMenuCheckboxItem as F,
2724
- DropdownMenuRadioGroup as G,
3483
+ DropdownMenuLabel as E,
3484
+ HeaderBreadcrumb as F,
3485
+ HeaderMessages as G,
2725
3486
  Header as H,
2726
- InputGroup as I,
2727
- DropdownMenuRadioItem as J,
2728
- SidebarItem as K,
2729
- SidebarPanel as L,
2730
- MenuSidebar as M,
2731
- SidebarPill as N,
2732
- SidebarRail as O,
2733
- SidebarSection as P,
2734
- SidebarSubgroup as Q,
2735
- inputGroupVariants as R,
2736
- SidebarBrandIcon as S,
2737
- useControllable as T,
2738
- UserMenu as U,
2739
- useMediaQuery as V,
2740
- Popover as W,
2741
- PopoverTrigger as X,
2742
- PopoverContent as Y,
2743
- Command as Z,
2744
- DialogDescription as _,
3487
+ HeaderNotifications as I,
3488
+ HeaderSearch as J,
3489
+ HeaderThemeSwitcher as K,
3490
+ InputGroup as L,
3491
+ InputGroupAddon as M,
3492
+ InputGroupButton as N,
3493
+ InputGroupInput as O,
3494
+ Popover as P,
3495
+ InputGroupText as Q,
3496
+ InputGroupTextarea as R,
3497
+ MenuSidebar as S,
3498
+ DropdownMenuCheckboxItem as T,
3499
+ DropdownMenuRadioGroup as U,
3500
+ DropdownMenuRadioItem as V,
3501
+ SidebarBrandIcon as W,
3502
+ SidebarItem as X,
3503
+ SidebarPanel as Y,
3504
+ SidebarPill as Z,
3505
+ SidebarRail as _,
2745
3506
  Avatar as a,
3507
+ SidebarSubgroup as a0,
3508
+ UserMenu as a1,
3509
+ buttonVariants as a2,
3510
+ chipCount as a3,
3511
+ chipVariants as a4,
3512
+ inputGroupVariants as a5,
3513
+ useControllable as a6,
3514
+ useMediaQuery as a7,
3515
+ Command as a8,
2746
3516
  AvatarFallback as b,
2747
- DropdownMenuTrigger as c,
2748
- DropdownMenuContent as d,
2749
- DropdownMenuItem as e,
2750
- DropdownMenuSeparator as f,
2751
- Dialog as g,
2752
- DialogTrigger as h,
2753
- DialogContent as i,
2754
- DialogTitle as j,
2755
- DialogClose as k,
2756
- CommandInput as l,
2757
- CommandList as m,
2758
- CommandEmpty as n,
2759
- CommandGroup as o,
2760
- CommandItem as p,
2761
- DropdownMenuGroup as q,
2762
- DropdownMenuLabel as r,
2763
- HeaderBreadcrumb as s,
2764
- HeaderMessages as t,
2765
- HeaderNotifications as u,
2766
- HeaderSearch as v,
2767
- HeaderThemeSwitcher as w,
2768
- InputGroupAddon as x,
2769
- InputGroupButton as y,
2770
- InputGroupInput as z
3517
+ cn as c,
3518
+ ChipGroup as d,
3519
+ ChipGroupItem as e,
3520
+ DropdownMenuTrigger as f,
3521
+ DropdownMenuContent as g,
3522
+ DropdownMenuItem as h,
3523
+ DropdownMenuSeparator as i,
3524
+ PopoverTrigger as j,
3525
+ PopoverContent as k,
3526
+ Dialog as l,
3527
+ DialogTrigger as m,
3528
+ DialogContent as n,
3529
+ DialogTitle as o,
3530
+ PopoverAnchor as p,
3531
+ DialogClose as q,
3532
+ DialogDescription as r,
3533
+ CommandDialog as s,
3534
+ tv as t,
3535
+ CommandInput as u,
3536
+ CommandList as v,
3537
+ CommandEmpty as w,
3538
+ CommandGroup as x,
3539
+ CommandItem as y,
3540
+ DropdownMenuGroup as z
2771
3541
  };
2772
- //# sourceMappingURL=app-shell-Cy9be0Zx.mjs.map
3542
+ //# sourceMappingURL=app-shell-78w0pYdP.mjs.map