@xjur-ui/react 4.0.3 → 4.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (142) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/components/accordion/accordion-tab-header.js +1 -1
  3. package/dist/components/accordion/accordion-trigger.js +1 -1
  4. package/dist/components/accordion/index.js +1 -1
  5. package/dist/components/breadcrumb/breadcrumb-ellipsis.js +1 -1
  6. package/dist/components/breadcrumb/breadcrumb-separator.js +1 -1
  7. package/dist/components/breadcrumb/index.js +1 -1
  8. package/dist/components/carousel/carousel-action.js +1 -1
  9. package/dist/components/carousel/index.js +1 -1
  10. package/dist/components/chip/chip-close.js +1 -1
  11. package/dist/components/chip/chip-icon.js +1 -1
  12. package/dist/components/chip/index.js +1 -1
  13. package/dist/components/controls/calendar.js +1 -1
  14. package/dist/components/controls/checkbox.js +1 -1
  15. package/dist/components/controls/date-picker/date-picker-icon.js +1 -1
  16. package/dist/components/controls/date-picker/index.js +1 -1
  17. package/dist/components/controls/input/index.js +1 -1
  18. package/dist/components/controls/input/input-icon.js +1 -1
  19. package/dist/components/controls/input/input-numeric-stepper.js +1 -1
  20. package/dist/components/controls/rating.js +1 -1
  21. package/dist/components/controls/search-selector.js +1 -1
  22. package/dist/components/controls/select/index.d.ts +1 -0
  23. package/dist/components/controls/select/index.js +1 -1
  24. package/dist/components/controls/select/select-icon.js +1 -1
  25. package/dist/components/controls/select/select-option.d.ts +2 -1
  26. package/dist/components/controls/select/select-option.js +1 -1
  27. package/dist/components/controls/text-area/index.js +1 -1
  28. package/dist/components/controls/text-area/text-area-caption.js +1 -1
  29. package/dist/components/controls/text-area/text-area-content.js +1 -1
  30. package/dist/components/controls/text-area/text-area-editor.js +1 -1
  31. package/dist/components/controls/text-area/text-area-fullscreen-button.js +1 -1
  32. package/dist/components/controls/text-area/text-area-heading-button.js +1 -1
  33. package/dist/components/controls/text-area/text-area-root.js +1 -1
  34. package/dist/components/controls/text-area/text-area-toggle-button.js +1 -1
  35. package/dist/components/controls/text-area/text-area-toolbar.js +1 -1
  36. package/dist/components/custom/andamento-timeline/andamento-timeline.js +1 -1
  37. package/dist/components/custom/andamento-timeline/index.js +1 -1
  38. package/dist/components/custom/centro-custo/centro-custo-add-button.js +1 -1
  39. package/dist/components/custom/centro-custo/centro-custo-body.js +1 -1
  40. package/dist/components/custom/centro-custo/centro-custo-close-button.js +1 -1
  41. package/dist/components/custom/centro-custo/centro-custo-content.js +1 -1
  42. package/dist/components/custom/centro-custo/centro-custo-footer.js +1 -1
  43. package/dist/components/custom/centro-custo/centro-custo-header.js +1 -1
  44. package/dist/components/custom/centro-custo/centro-custo-trigger.js +1 -1
  45. package/dist/components/custom/centro-custo/centro-custo.js +1 -1
  46. package/dist/components/custom/centro-custo/index.js +1 -1
  47. package/dist/components/custom/empresa/empresa-add-button.js +1 -1
  48. package/dist/components/custom/empresa/empresa-body.js +1 -1
  49. package/dist/components/custom/empresa/empresa-close-button.js +1 -1
  50. package/dist/components/custom/empresa/empresa-content.js +1 -1
  51. package/dist/components/custom/empresa/empresa-footer.js +1 -1
  52. package/dist/components/custom/empresa/empresa-header.js +1 -1
  53. package/dist/components/custom/empresa/empresa-table.js +1 -1
  54. package/dist/components/custom/empresa/empresa-trigger.js +1 -1
  55. package/dist/components/custom/empresa/empresa.js +1 -1
  56. package/dist/components/custom/empresa/index.js +1 -1
  57. package/dist/components/custom/lista-nivelada/hierarchical-navigation.js +1 -1
  58. package/dist/components/custom/lista-nivelada/index.js +1 -1
  59. package/dist/components/custom/lista-nivelada/lista-nivelada-body.js +1 -1
  60. package/dist/components/custom/lista-nivelada/lista-nivelada-close-button.js +1 -1
  61. package/dist/components/custom/lista-nivelada/lista-nivelada-content.js +1 -1
  62. package/dist/components/custom/lista-nivelada/lista-nivelada-footer.js +1 -1
  63. package/dist/components/custom/lista-nivelada/lista-nivelada-header.js +1 -1
  64. package/dist/components/custom/lista-nivelada/lista-nivelada-trigger.js +1 -1
  65. package/dist/components/custom/lista-nivelada/lista-nivelada.js +1 -1
  66. package/dist/components/custom/lista-nivelada/navigation-button.js +1 -1
  67. package/dist/components/custom/lista-nivelada/navigation-grid.js +1 -1
  68. package/dist/components/custom/lista-nivelada/radio-selection.js +1 -1
  69. package/dist/components/custom/pessoa/index.js +1 -1
  70. package/dist/components/custom/pessoa/pessoa-add-button.js +1 -1
  71. package/dist/components/custom/pessoa/pessoa-body.js +1 -1
  72. package/dist/components/custom/pessoa/pessoa-close-button.js +1 -1
  73. package/dist/components/custom/pessoa/pessoa-content.js +1 -1
  74. package/dist/components/custom/pessoa/pessoa-footer.js +1 -1
  75. package/dist/components/custom/pessoa/pessoa-header.js +1 -1
  76. package/dist/components/custom/pessoa/pessoa-trigger.js +1 -1
  77. package/dist/components/custom/pessoa/pessoa.js +1 -1
  78. package/dist/components/dialog/delete-dialog.js +1 -1
  79. package/dist/components/dialog/dialog-content.js +1 -1
  80. package/dist/components/dialog/index.js +1 -1
  81. package/dist/components/full-calendar/calendar-add-event.js +1 -1
  82. package/dist/components/full-calendar/calendar-cell.js +1 -1
  83. package/dist/components/full-calendar/calendar-day-view.js +1 -1
  84. package/dist/components/full-calendar/calendar-month-view.js +1 -1
  85. package/dist/components/full-calendar/calendar-navigator.js +1 -1
  86. package/dist/components/full-calendar/calendar-toggle-view.js +1 -1
  87. package/dist/components/full-calendar/calendar-view-renderer.js +1 -1
  88. package/dist/components/full-calendar/calendar-week-view.js +1 -1
  89. package/dist/components/full-calendar/index.js +1 -1
  90. package/dist/components/icon/components/agenda.d.ts +1 -0
  91. package/dist/components/icon/components/agenda.js +1 -0
  92. package/dist/components/icon/components/compliance.d.ts +1 -0
  93. package/dist/components/icon/components/compliance.js +1 -0
  94. package/dist/components/icon/components/consultivo.d.ts +1 -0
  95. package/dist/components/icon/components/consultivo.js +1 -0
  96. package/dist/components/icon/components/contencioso.d.ts +1 -0
  97. package/dist/components/icon/components/contencioso.js +1 -0
  98. package/dist/components/icon/components/contrato.d.ts +1 -0
  99. package/dist/components/icon/components/contrato.js +1 -0
  100. package/dist/components/icon/components/custom-icon.d.ts +4 -0
  101. package/dist/components/icon/components/custom-icon.js +1 -0
  102. package/dist/components/icon/components/email-reset-senha-icon.d.ts +1 -0
  103. package/dist/components/icon/components/email-reset-senha-icon.js +1 -0
  104. package/dist/components/icon/components/ged.d.ts +1 -0
  105. package/dist/components/icon/components/ged.js +1 -0
  106. package/dist/components/icon/components/imobiliario.d.ts +1 -0
  107. package/dist/components/icon/components/imobiliario.js +1 -0
  108. package/dist/components/icon/components/marcas-e-patentes.d.ts +1 -0
  109. package/dist/components/icon/components/marcas-e-patentes.js +1 -0
  110. package/dist/components/icon/components/procuracao.d.ts +1 -0
  111. package/dist/components/icon/components/procuracao.js +1 -0
  112. package/dist/components/icon/components/regulatorio.d.ts +1 -0
  113. package/dist/components/icon/components/regulatorio.js +1 -0
  114. package/dist/components/icon/components/xpay.d.ts +1 -0
  115. package/dist/components/icon/components/xpay.js +1 -0
  116. package/dist/components/icon/components/xsigner.d.ts +1 -0
  117. package/dist/components/icon/components/xsigner.js +1 -0
  118. package/dist/components/icon/index.d.ts +1 -1
  119. package/dist/components/icon/index.js +1 -1
  120. package/dist/components/message/index.js +1 -1
  121. package/dist/components/message/message-close.js +1 -1
  122. package/dist/components/message/message-icon.js +1 -1
  123. package/dist/components/selection-bar/index.js +1 -1
  124. package/dist/components/selection-bar/selection-bar-close.js +1 -1
  125. package/dist/components/sheet/index.js +1 -1
  126. package/dist/components/sheet/sheet-close.js +1 -1
  127. package/dist/components/table/index.js +1 -1
  128. package/dist/components/table/table-row.js +1 -1
  129. package/dist/components/table/table-sort.js +1 -1
  130. package/dist/components/tag/index.js +1 -1
  131. package/dist/components/tag/tag-close.js +1 -1
  132. package/dist/components/tag/tag-icon.js +1 -1
  133. package/dist/components/timeline-card/index.js +1 -1
  134. package/dist/components/timeline-card/timeline-card.js +1 -1
  135. package/dist/components/toast/index.js +1 -1
  136. package/dist/components/toast/toast-component.js +1 -1
  137. package/dist/components/toast/toast.js +1 -1
  138. package/dist/components/upload/index.js +1 -1
  139. package/dist/components/upload/upload-icon.js +1 -1
  140. package/dist/resources/icons.d.ts +2 -1
  141. package/dist/resources/icons.js +1 -1
  142. package/package.json +1 -1
@@ -1 +1 @@
1
- import{useCurrentEditor as se}from"@tiptap/react";import{cx as P}from"@xjur-ui/util";import{jsx as z}from"react/jsx-runtime";function f({className:e,filled:t=!1,name:r,...a}){return z("span",{...a,className:P("material-symbols-outlined","text-size-body-lg select-none",e),style:{fontVariationSettings:`'FILL' ${t?1:0}, 'wght' 600, 'GRAD' 0, 'opsz' 20`,...a.style},children:r})}import{Slot as D}from"@radix-ui/react-slot";import{cva as M,cx as R}from"@xjur-ui/util";import{jsx as k}from"react/jsx-runtime";var L=M(["outline-none inline-flex items-center justify-center rounded-circle gap-small cursor-pointer disabled:opacity-38 disabled:pointer-events-none transition-colors"],{variants:{size:{md:"py-small_1x-alt px-medium text-size-body-md",sm:"py-small-1x px-small text-size-label-sm",icon_md:"p-small text-size-body-md h-large-4x w-large-4x",icon_sm:"p-small-1x text-size-label-sm h-large-2x w-large-2x"},variant:{primary:"",secondary:"",tertiary:"",destructive:"",outlined:"bg-layer-2-idle border border-border-layer-2 hover:bg-layer-2-hover active:bg-layer-2-pressed"},appearance:{solid:"",ghost:"bg-transparent"}},compoundVariants:[{variant:"primary",appearance:"solid",class:"bg-primary-idle text-neutral-label hover:bg-primary-hover active:bg-primary-pressed"},{variant:"primary",appearance:"ghost",class:"text-primary-idle hover:bg-primary-alt-idle active:bg-primary-alt-pressed"},{variant:"secondary",appearance:"solid",class:"bg-layer-1-hover text-neutral-dark hover:bg-layer-1-pressed active:bg-layer-1-active"},{variant:"secondary",appearance:"ghost",class:"hover:bg-layer-1-hover active:bg-layer-1-pressed"},{variant:"tertiary",appearance:"solid",class:"bg-layer-2-hover text-neutral-dark hover:bg-layer-2-pressed active:bg-layer-2-active"},{variant:"tertiary",appearance:"ghost",class:"hover:bg-layer-2-hover active:bg-layer-2-pressed"},{variant:"destructive",appearance:"solid",class:"bg-danger-idle text-neutral-label hover:bg-danger-hover active:bg-danger-pressed"},{variant:"destructive",appearance:"ghost",class:"text-danger-label-idle hover:bg-danger-alt-idle active:bg-danger-alt-pressed"}],defaultVariants:{size:"md",variant:"primary",appearance:"solid"}});function v({asChild:e,className:t,variant:r="primary",size:a="md",appearance:i="solid",...o}){return k(e?D:"button",{className:R(L({variant:r,appearance:i,size:a}),t),...o})}import{jsx as V}from"react/jsx-runtime";function y({appearance:e="ghost",variant:t="secondary",onMouseDown:r,onPointerDown:a,...i}){return V(v,{appearance:e,size:"icon_md",tabIndex:-1,type:"button",variant:t,onMouseDown:o=>{o.preventDefault(),r?.(o)},onPointerDown:o=>{o.preventDefault(),a?.(o)},...i})}import{Heading as Yo}from"@tiptap/extension-heading";import{useEditor as Qo,EditorContext as Uo}from"@tiptap/react";import{StarterKit as Zo}from"@tiptap/starter-kit";import{cx as er}from"@xjur-ui/util";import{createContext as ae,useContext as ie,useMemo as or,useState as rr}from"react";import{useState as ko,useCallback as Vo}from"react";import{useCurrentEditor as So,useEditorState as Eo}from"@tiptap/react";import*as l from"@radix-ui/react-tooltip";import{jsx as x}from"react/jsx-runtime";function I({delayDuration:e=0,...t}){return x(l.Provider,{"data-slot":"tooltip-provider",delayDuration:e,...t})}function p({...e}){return x(I,{children:x(l.Root,{"data-slot":"tooltip",...e})})}import*as b from"@radix-ui/react-tooltip";import{jsx as S}from"react/jsx-runtime";function m({...e}){return S(b.Trigger,{"data-slot":"tooltip-trigger",...e})}import*as d from"@radix-ui/react-tooltip";import{cx as E}from"@xjur-ui/util";import{jsx as h}from"react/jsx-runtime";function c({className:e,sideOffset:t=1,variant:r="simple",children:a,...i}){return h(d.Portal,{children:h(d.Content,{className:E("text-size-body-sm z-99999 text-balance","data-[variant=simple]:bg-alt-2 data-[variant=simple]:text-neutral-label data-[variant=simple]:rounded-small-1x data-[variant=simple]:px-small data-[variant=simple]:py-small-1x","data-[variant=rich]:bg-layer-2-idle data-[variant=rich]:text-neutral-dark data-[variant=rich]:rounded-small data-[variant=rich]:border-border-layer-2 data-[variant=rich]:p-large data-[variant=rich]:border","animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin)",e),"data-slot":"tooltip-content","data-variant":r,sideOffset:t,...i,children:a})})}import"react";import*as N from"@radix-ui/react-dropdown-menu";import{jsx as Ee}from"react/jsx-runtime";import*as H from"@radix-ui/react-dropdown-menu";import{jsx as Ae}from"react/jsx-runtime";import*as C from"@radix-ui/react-dropdown-menu";import{cx as Wt}from"@xjur-ui/util";import{Slot as $e}from"@radix-ui/react-slot";import{cx as We}from"@xjur-ui/util";import{useVirtualizer as Ye}from"@tanstack/react-virtual";import{useRef as Qe}from"react";import{createContext as A}from"react";var g=A({virtualizer:null,enabled:!1});import{jsx as Ze}from"react/jsx-runtime";import{Slot as tt}from"@radix-ui/react-slot";import{cx as rt}from"@xjur-ui/util";import{jsx as it}from"react/jsx-runtime";import{cx as ft}from"@xjur-ui/util";import{Slot as B}from"@radix-ui/react-slot";import{cva as F}from"@xjur-ui/util";import{memo as _,useState as O}from"react";import{jsx as u,jsxs as G}from"react/jsx-runtime";var q=F("",{variants:{variant:{body:"",label:"",title:"",headline:""},size:{"sm-2x":"","sm-1x":"",sm:"",md:"",lg:""},weight:{thin:"font-thin",extraLight:"font-extralight",light:"font-light",normal:"font-normal",medium:"font-medium",semibold:"font-semibold",bold:"font-bold",extraBold:"font-extrabold",black:"font-black"}},compoundVariants:[{variant:"body",size:"sm-1x",class:"text-size-body-sm-1x"},{variant:"body",size:"sm",class:"text-size-body-sm"},{variant:"body",size:"md",class:"text-size-body-md"},{variant:"body",size:"lg",class:"text-size-body-lg"},{variant:"label",size:"sm-2x",class:"text-size-label-sm-2x"},{variant:"label",size:"sm-1x",class:"text-size-label-sm-1x"},{variant:"label",size:"sm",class:"text-size-label-sm"},{variant:"label",size:"md",class:"text-size-label-md"},{variant:"label",size:"lg",class:"text-size-label-lg"},{variant:"title",size:"sm",class:"text-size-title-sm"},{variant:"title",size:"md",class:"text-size-title-md"},{variant:"title",size:"lg",class:"text-size-title-lg"},{variant:"headline",size:"sm",class:"text-size-headline-sm"},{variant:"headline",size:"md",class:"text-size-headline-md"},{variant:"headline",size:"lg",class:"text-size-headline-lg"}],defaultVariants:{variant:"body",size:"md",weight:"normal"}}),s=_(({variant:e,size:t,weight:r,asChild:a,className:i,children:o,...n})=>u(a?B:"span",{className:q({variant:e,size:t,weight:r,className:i}),...n,children:o}));s.displayName="Typography";var $=_(({children:e,...t})=>{let[r,a]=O(!1);return G(p,{children:[u(m,{asChild:!0,children:u(s,{onMouseEnter:({currentTarget:o})=>{let n=o.scrollWidth>o.clientWidth;a(n),n?o.style.cursor="pointer":o.style.cursor="text"},...t,children:e})}),r&&u(c,{children:e})]})});$.displayName="TruncatedTypography";import{jsx as gt}from"react/jsx-runtime";import{Slot as ht}from"@radix-ui/react-slot";import{cx as Ct}from"@xjur-ui/util";import{useContext as Tt}from"react";import{jsx as Dt}from"react/jsx-runtime";import{Slot as Lt}from"@radix-ui/react-slot";import{cx as Vt,cva as W}from"@xjur-ui/util";import{jsx as Et}from"react/jsx-runtime";var It=W(["py-medium px-small flex items-center gap-small rounded-small-1x","bg-layer-2-idle text-neutral-dark","hover:bg-layer-2-hover transition-colors duration-100 ease-out","active:bg-layer-2-pressed"],{variants:{size:{md:"h-large-4x",lg:"h-large-7x"},isActive:{true:"bg-primary-alt-active text-primary-label-active hover:bg-primary-alt-hover active:bg-primary-alt-pressed"}},defaultVariants:{size:"md",isActive:!1}});import{jsx as Jt}from"react/jsx-runtime";import{jsx as Zt}from"react/jsx-runtime";import{jsx as oo}from"react/jsx-runtime";import{cx as uo}from"@xjur-ui/util";import"react";import*as X from"@radix-ui/react-separator";import{cx as no}from"@xjur-ui/util";import{jsx as lo}from"react/jsx-runtime";import{jsx as yo}from"react/jsx-runtime";import{jsx as qo,jsxs as $o}from"react/jsx-runtime";import{jsx as nr}from"react/jsx-runtime";var ne=ae({isFullScreen:!1,setIsFullScreen:()=>{},state:"normal"});function w(){let e=ie(ne);if(!e)throw new Error("useTextAreaRootContext must be used within a TextAreaRoot");return e}import{jsx as T}from"react/jsx-runtime";function cr(){let{setIsFullScreen:e}=w(),{editor:t}=se();return T(y,{onClick:()=>{e(r=>!r),t?.commands.focus("end")},children:T(f,{name:"expand_content"})})}export{cr as TextAreaFullScreenButton};
1
+ import{useCurrentEditor as Xt}from"@tiptap/react";import{cx as mt}from"@xjur-ui/util";var W=["agenda","contencioso","contrato","consultivo","xsigner","procuracao","xpay","imobiliario","marcasepatentes","ged","regulatorio","compliance"];import{jsx as a,jsxs as at}from"react/jsx-runtime";function _(){return at("svg",{fill:"none",height:"22",viewBox:"0 0 22 22",width:"22",xmlns:"http://www.w3.org/2000/svg",children:[a("path",{d:"M6.58375 12.5205H5.25168C4.7443 12.5205 4.33301 12.1092 4.33301 11.6018V10.2697C4.33301 9.76236 4.7443 9.35107 5.25168 9.35107H6.58375C7.09113 9.35107 7.50242 9.76236 7.50242 10.2697V11.6018C7.50246 12.1092 7.09113 12.5205 6.58375 12.5205Z",fill:"#E87D30"}),a("path",{d:"M11.4196 12.5205H10.0876C9.58023 12.5205 9.16895 12.1092 9.16895 11.6018V10.2697C9.16895 9.76236 9.58023 9.35107 10.0876 9.35107H11.4197C11.9271 9.35107 12.3384 9.76236 12.3384 10.2697V11.6018C12.3384 12.1092 11.927 12.5205 11.4196 12.5205Z",fill:"#E87D30"}),a("path",{d:"M16.2566 12.5205H14.9245C14.4171 12.5205 14.0059 12.1092 14.0059 11.6018V10.2697C14.0059 9.76236 14.4171 9.35107 14.9245 9.35107H16.2566C16.764 9.35107 17.1753 9.76236 17.1753 10.2697V11.6018C17.1753 12.1092 16.7639 12.5205 16.2566 12.5205Z",fill:"#E87D30"}),a("path",{d:"M6.58375 17.3564H5.25168C4.7443 17.3564 4.33301 16.9451 4.33301 16.4378V15.1057C4.33301 14.5983 4.7443 14.187 5.25168 14.187H6.58375C7.09113 14.187 7.50242 14.5983 7.50242 15.1057V16.4378C7.50246 16.9451 7.09113 17.3564 6.58375 17.3564Z",fill:"#E87D30"}),a("path",{d:"M16.2566 17.3564H14.9245C14.4171 17.3564 14.0059 16.9451 14.0059 16.4378V15.1057C14.0059 14.5983 14.4171 14.187 14.9245 14.187H16.2566C16.764 14.187 17.1753 14.5983 17.1753 15.1057V16.4378C17.1753 16.9451 16.7639 17.3564 16.2566 17.3564Z",fill:"#E87D30"}),a("path",{d:"M11.4196 17.3564H10.0876C9.58023 17.3564 9.16895 16.9451 9.16895 16.4378V15.1057C9.16895 14.5983 9.58023 14.187 10.0876 14.187H11.4197C11.9271 14.187 12.3384 14.5983 12.3384 15.1057V16.4378C12.3384 16.9451 11.927 17.3564 11.4196 17.3564Z",fill:"#E87D30"}),a("path",{d:"M5.47641 4.66531C4.87727 4.66531 4.3916 4.17965 4.3916 3.58051V2.58188C4.3916 1.98277 4.87727 1.49707 5.47641 1.49707C6.07551 1.49707 6.56121 1.98273 6.56121 2.58188V3.58051C6.56117 4.17965 6.07551 4.66531 5.47641 4.66531Z",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:"1.2"}),a("path",{d:"M16.5243 4.66531C15.9252 4.66531 15.4395 4.17965 15.4395 3.58051V2.58188C15.4395 1.98277 15.9251 1.49707 16.5243 1.49707C17.1234 1.49707 17.6091 1.98273 17.6091 2.58188V3.58051C17.609 4.17965 17.1234 4.66531 16.5243 4.66531Z",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:"1.2"}),a("path",{d:"M15.3309 2.96387H6.74414",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:"1.2"}),a("path",{d:"M4.1143 2.96387H2.98582C2.12641 2.96387 1.42969 3.66059 1.42969 4.52004V6.73563H20.5703V4.52004C20.5703 3.66059 19.8736 2.96391 19.0142 2.96391H17.9235",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:"1.2"}),a("path",{d:"M20.5703 6.26904V18.9471C20.5703 19.8065 19.8736 20.5032 19.0142 20.5032H2.98582C2.12641 20.5032 1.42969 19.8065 1.42969 18.9471V6.26904",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:"1.2"}),a("path",{d:"M1.58301 6.73584H20.5014",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:"1.2"})]})}import{jsx as l,jsxs as O}from"react/jsx-runtime";function P(){return O("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[O("g",{clipPath:"url(#clip0_19548_42822)",children:[l("path",{d:"M2.34375 16.0938V11.5625",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),l("path",{d:"M2.34375 8.4375V3.90625",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),l("path",{d:"M17.6562 3.90625H8.4375C7.57457 3.90625 6.875 3.20668 6.875 2.34375C6.875 1.48082 7.57457 0.78125 8.4375 0.78125H17.6562C18.5192 0.78125 19.2188 1.48082 19.2188 2.34375C19.2188 3.20668 18.5192 3.90625 17.6562 3.90625Z",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),l("path",{d:"M17.6562 11.5625H8.4375C7.57457 11.5625 6.875 10.8629 6.875 10C6.875 9.13707 7.57457 8.4375 8.4375 8.4375H17.6562C18.5192 8.4375 19.2188 9.13707 19.2188 10C19.2188 10.8629 18.5192 11.5625 17.6562 11.5625Z",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),l("path",{d:"M17.6562 19.2188H8.4375C7.57457 19.2188 6.875 18.5192 6.875 17.6562C6.875 16.7933 7.57457 16.0938 8.4375 16.0938H17.6562C18.5192 16.0938 19.2188 16.7933 19.2188 17.6562C19.2188 18.5192 18.5192 19.2188 17.6562 19.2188Z",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),l("path",{d:"M2.34375 3.90625C3.20669 3.90625 3.90625 3.20669 3.90625 2.34375C3.90625 1.48081 3.20669 0.78125 2.34375 0.78125C1.48081 0.78125 0.78125 1.48081 0.78125 2.34375C0.78125 3.20669 1.48081 3.90625 2.34375 3.90625Z",stroke:"#E53C4D",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),l("path",{d:"M2.34375 11.5625C3.20669 11.5625 3.90625 10.8629 3.90625 10C3.90625 9.13706 3.20669 8.4375 2.34375 8.4375C1.48081 8.4375 0.78125 9.13706 0.78125 10C0.78125 10.8629 1.48081 11.5625 2.34375 11.5625Z",stroke:"#DF9F20",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),l("path",{d:"M2.34375 19.2188C3.20669 19.2188 3.90625 18.5192 3.90625 17.6562C3.90625 16.7933 3.20669 16.0938 2.34375 16.0938C1.48081 16.0938 0.78125 16.7933 0.78125 17.6562C0.78125 18.5192 1.48081 19.2188 2.34375 19.2188Z",stroke:"#169C55",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"})]}),l("defs",{children:l("clipPath",{id:"clip0_19548_42822",children:l("rect",{fill:"white",height:"20",width:"20"})})})]})}import{jsx as k,jsxs as st}from"react/jsx-runtime";function T(){return st("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[k("path",{d:"M13.6137 17.9167V19.5703H0.429688V4.04336L4.00367 0.429688H13.6137V2.91667",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),k("path",{d:"M14.1667 12.5L19.2212 17.5367C19.6866 18.0021 19.6866 18.756 19.2212 19.2214C18.9885 19.454 18.6837 19.5704 18.3789 19.5704C18.0741 19.5704 17.7693 19.454 17.5366 19.2214L12.5 14.1667",fill:"#9944E4"}),k("path",{d:"M0.429688 4.04336H4.00367V0.429688",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),k("path",{d:"M10 5.08301C12.746 5.08322 14.9961 7.31131 14.9961 10.04C14.9959 12.7686 12.7458 14.9959 10 14.9961C7.26268 14.9961 5.04318 12.7773 5.04297 10.04C5.04297 7.30256 7.26252 5.08301 10 5.08301Z",stroke:"#9944E4",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:"2"})]})}import{jsx as i,jsxs as G}from"react/jsx-runtime";function V(){return G("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[G("g",{clipPath:"url(#clip0_19548_42667)",children:[i("path",{d:"M5.85656 10.9769C5.85656 12.4754 4.64172 13.6903 3.14312 13.6903C1.64453 13.6903 0.429688 12.4754 0.429688 10.9769M5.85656 10.9769L3.14312 4.49072L0.429688 10.9769M5.85656 10.9769H0.429688",stroke:"#377BD4",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"22.9256"}),i("path",{d:"M2.91699 13.7501C1.25033 13.7501 0.555881 11.8056 0.416992 10.8334C2.22255 10.6945 5.83366 10.5834 5.83366 11.2501C5.83366 12.0834 5.00033 13.7501 2.91699 13.7501Z",fill:"#377BD4"}),i("path",{d:"M16.667 13.7501C15.0003 13.7501 14.3059 11.8056 14.167 10.8334C15.9725 10.6945 19.5837 10.5834 19.5837 11.2501C19.5837 12.0834 18.7503 13.7501 16.667 13.7501Z",fill:"#377BD4"}),i("path",{d:"M14.1436 10.9769C14.1436 12.4754 15.3584 13.6903 16.857 13.6903C18.3556 13.6903 19.5704 12.4754 19.5704 10.9769M14.1436 10.9769L16.857 4.49072L19.5704 10.9769M14.1436 10.9769H19.5704",stroke:"#377BD4",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"22.9256"}),i("path",{d:"M9.02344 13.5156V1.40625C9.02344 0.869141 9.46289 0.429688 10 0.429688C10.5371 0.429688 10.9766 0.869141 10.9766 1.40625V13.5156",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"22.9256"}),i("path",{d:"M8.70012 2.38281H7.07113L5.15879 4.29512H1.12746L0.429688 3.59734",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"22.9256"}),i("path",{clipRule:"evenodd",d:"M5.3125 19.5703H14.6875V18.0078L13.9062 17.2266H6.09371L5.3125 18.0078V19.5703Z",fillRule:"evenodd",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"22.9256"}),i("path",{d:"M12.8947 17.0313V14.4922L12.1134 13.7109H7.88672L7.10547 14.4922V17.0313",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"22.9256"}),i("path",{d:"M9.21875 3.43164H10.7812",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"22.9256"}),i("path",{d:"M11.2998 2.38281H12.9288L14.8411 4.29512H18.8725L19.5702 3.59734",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"22.9256"})]}),i("defs",{children:i("clipPath",{id:"clip0_19548_42667",children:i("rect",{fill:"white",height:"20",width:"20"})})})]})}import{jsx as c,jsxs as lt}from"react/jsx-runtime";function z(){return lt("svg",{fill:"none",height:"20",viewBox:"0 0 16 20",width:"16",xmlns:"http://www.w3.org/2000/svg",children:[c("path",{d:"M12.7851 2.98193C12.7851 2.98193 13.4231 2.98193 14.0612 2.98193C14.7659 2.98193 15.3372 3.5533 15.3372 4.25799C15.3372 7.34791 15.3372 15.2045 15.3372 18.2944C15.3372 18.9991 14.7659 19.5705 14.0612 19.5705C11.7324 19.5705 6.81965 19.5705 4.49086 19.5705C4.15238 19.5705 3.82797 19.4362 3.58871 19.1966C3.34914 18.9574 3.21484 18.6329 3.21484 18.2945C3.21484 17.6565 3.21484 17.0184 3.21484 17.0184",fill:"#EA5081"}),c("path",{d:"M12.7851 2.98193C12.7851 2.98193 13.4231 2.98193 14.0612 2.98193C14.7659 2.98193 15.3372 3.5533 15.3372 4.25799C15.3372 7.34791 15.3372 15.2045 15.3372 18.2944C15.3372 18.9991 14.7659 19.5705 14.0612 19.5705C11.7324 19.5705 6.81965 19.5705 4.49086 19.5705C4.15238 19.5705 3.82797 19.4362 3.58871 19.1966C3.34914 18.9574 3.21484 18.6329 3.21484 18.2945C3.21484 17.6565 3.21484 17.0184 3.21484 17.0184",stroke:"#EA5081",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),c("path",{d:"M0.663086 4.25781L4.49121 0.429688C4.49121 0.429688 9.18352 0.429688 11.5095 0.429688C12.2141 0.429688 12.7855 1.00105 12.7855 1.70574C12.7855 4.79566 12.7855 12.6523 12.7855 15.7422C12.7855 16.4469 12.2142 17.0182 11.5095 17.0182C9.18067 17.0182 4.26793 17.0182 1.93914 17.0182C1.23445 17.0182 0.663086 16.4469 0.663086 15.7422C0.663086 12.5103 0.663086 4.25781 0.663086 4.25781Z",fill:"white",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),c("path",{d:"M0.663086 4.89586C0.663086 4.89586 2.53313 4.89586 3.8532 4.89586C4.55789 4.89586 5.12926 4.32449 5.12926 3.6198C5.12926 2.29973 5.12926 0.429688 5.12926 0.429688",stroke:"#3D3D47",strokeMiterlimit:"10"}),c("path",{d:"M3.85352 8.08594H9.5957",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),c("path",{d:"M3.85352 10.6382H9.5957",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),c("path",{d:"M3.85352 13.1899H7.04363",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"})]})}import{jsx as f,jsxs as X}from"react/jsx-runtime";function H(){return X("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[X("g",{clipPath:"url(#clip0_19548_42803)",children:[f("path",{d:"M19.5703 4.8957V15.1043C19.5703 13.9613 19.1344 12.8184 18.2621 11.9461C16.518 10.202 13.6902 10.202 11.9461 11.9461C10.5742 13.318 10.2812 15.3602 11.068 17.0184H1.70586C1.36719 17.0184 1.04258 16.8836 0.803516 16.6445C0.564453 16.4055 0.429688 16.0805 0.429688 15.7422V1.70586C0.429688 1.36719 0.564062 1.04258 0.803516 0.803516C1.04258 0.564062 1.36719 0.429688 1.70586 0.429688H8.08594L11.2762 3.61992H18.2941C18.9988 3.61992 19.5703 4.19102 19.5703 4.8957Z",fill:"#F7BC0F"}),f("path",{d:"M15.1047 19.5702C17.5712 19.5702 19.5707 17.5707 19.5707 15.1042C19.5707 12.6377 17.5712 10.6382 15.1047 10.6382C12.6382 10.6382 10.6387 12.6377 10.6387 15.1042C10.6387 17.5707 12.6382 19.5702 15.1047 19.5702Z",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round"}),f("path",{d:"M13.5098 15.1043L14.7859 16.3801L16.7 13.8281",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round"})]}),f("defs",{children:f("clipPath",{id:"clip0_19548_42803",children:f("rect",{fill:"white",height:"20",width:"20"})})})]})}import{jsx as u,jsxs as q}from"react/jsx-runtime";function I(){return q("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[q("g",{clipPath:"url(#clip0_19548_42782)",children:[u("path",{d:"M0.429688 11.5007L10.1218 0.511719L19.5703 11.3059",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),u("path",{d:"M17.3304 8.78764V19.4883H2.89551V8.66553",stroke:"#3D3D47",strokeLinejoin:"round",strokeMiterlimit:"10"}),u("path",{d:"M6.93305 12.366L9.96977 16.1929L13.0492 12.3751C13.4256 11.7457 13.6244 11.026 13.6244 10.2927C13.6244 8.28998 12.0009 6.6665 9.99824 6.6665C7.99555 6.6665 6.37207 8.28998 6.37207 10.2927V10.3077C6.37207 11.0316 6.56574 11.7422 6.93305 12.366Z",fill:"#EB3B3B",stroke:"#EB3B3B",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"22.9256"}),u("path",{d:"M9.97016 11.6454C10.6769 11.6454 11.2499 11.0724 11.2499 10.3657C11.2499 9.65889 10.6769 9.08594 9.97016 9.08594C9.26338 9.08594 8.69043 9.65889 8.69043 10.3657C8.69043 11.0724 9.26338 11.6454 9.97016 11.6454Z",fill:"white",stroke:"white",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"})]}),u("defs",{children:u("clipPath",{id:"clip0_19548_42782",children:u("rect",{fill:"white",height:"20",width:"20"})})})]})}import{jsx as x,jsxs as pt}from"react/jsx-runtime";function R(){return pt("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[x("path",{d:"M4.60834 12L2 17.7972L4.86637 17.5931L6.55798 20L9.5 14",fill:"#3CA4E5"}),x("path",{d:"M10 14L12.7909 20L14.7241 17.2923L18 17.5218L15 11.5",fill:"#3CA4E5"}),x("path",{d:"M9.5 14C13.0899 14 16 11.0899 16 7.5C16 3.91015 13.0899 1 9.5 1C5.91015 1 3 3.91015 3 7.5C3 11.0899 5.91015 14 9.5 14Z",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),x("path",{d:"M9.5 11C11.433 11 13 9.433 13 7.5C13 5.567 11.433 4 9.5 4C7.567 4 6 5.567 6 7.5C6 9.433 7.567 11 9.5 11Z",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"})]})}import{jsx as m,jsxs as $}from"react/jsx-runtime";function B(){return $("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[$("g",{clipPath:"url(#clip0_19548_42757)",children:[m("path",{d:"M11.6672 0.429688H3.44824V6.25L16.5006 13",fill:"#649EFE"}),m("path",{d:"M11.667 0.416504L16.5524 4.9022V13.4998",fill:"#4787F2"}),m("path",{d:"M16.667 4.99984H11.667V0.416504",fill:"#B5D1FF"}),m("path",{d:"M16.5528 19.5699H3.44816C2.7902 19.5699 2.25684 19.0366 2.25684 18.3786L2.25684 7.89006C2.25684 7.23209 2.7902 6.69873 3.44816 6.69873H6.56918C6.86094 6.69873 7.14258 6.8058 7.36066 6.99963L17.3442 14.1785C17.5986 14.4046 17.7441 14.7286 17.7441 15.0689V18.3786C17.7441 19.0366 17.2107 19.5699 16.5528 19.5699Z",fill:"white",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),m("path",{d:"M8.21363 14.7256H4.63965V17.1877H8.21363V14.7256Z",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"})]}),m("defs",{children:m("clipPath",{id:"clip0_19548_42757",children:m("rect",{fill:"white",height:"20",width:"20"})})})]})}import{jsx as h,jsxs as K}from"react/jsx-runtime";function E(){return K("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[K("g",{clipPath:"url(#clip0_19548_42810)",children:[h("path",{d:"M14.5393 4.17742C13.2871 3.19988 11.7117 2.61719 10 2.61719C5.92258 2.61719 2.61719 5.92258 2.61719 10C2.61719 14.0774 5.92258 17.3828 10 17.3828C14.0774 17.3828 17.3828 14.0774 17.3828 10C17.3828 8.8416 17.1157 7.74566 16.6402 6.77",stroke:"#3D3D47",strokeLinejoin:"round",strokeMiterlimit:"10"}),h("path",{d:"M16.0952 2.62152C14.4398 1.25246 12.316 0.429688 10 0.429688C4.71445 0.429688 0.429688 4.71445 0.429688 10C0.429688 15.2855 4.71445 19.5703 10 19.5703C15.2855 19.5703 19.5703 15.2855 19.5703 10C19.5703 8.23215 19.0904 6.57668 18.2546 5.15562",stroke:"#3D3D47",strokeLinejoin:"round",strokeMiterlimit:"10"}),h("path",{d:"M16.8242 0.891113C17.217 0.570748 17.796 0.593369 18.1621 0.959473L20.5088 3.30615C20.8993 3.69668 20.8993 4.32969 20.5088 4.72021L10.6074 14.6216C10.4199 14.8091 10.1656 14.9145 9.90039 14.9146C9.63517 14.9146 9.3809 14.8091 9.19336 14.6216L4.29297 9.72217C3.90245 9.33165 3.90245 8.69765 4.29297 8.30713L6.63965 5.96045L6.71289 5.89404C6.8908 5.74831 7.11469 5.6675 7.34668 5.66748C7.61178 5.66748 7.8662 5.77307 8.05371 5.96045L9.90039 7.80713L16.748 0.959473L16.8242 0.891113Z",fill:"#3FCDBC",stroke:"white",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:"2"})]}),h("defs",{children:h("clipPath",{id:"clip0_19548_42810",children:h("rect",{fill:"white",height:"20",width:"20"})})})]})}import{jsx as p,jsxs as Y}from"react/jsx-runtime";function Z(){return Y("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[Y("g",{clipPath:"url(#clip0_21377_57335)",children:[p("path",{d:"M0.429688 5.64217V3.30264C0.429688 2.68541 0.930156 2.18506 1.54754 2.18506H18.4525C19.0698 2.18506 19.5703 2.68541 19.5703 3.30264V5.64217",fill:"#4DA971"}),p("path",{d:"M0.429688 5.64217V3.30264C0.429688 2.68541 0.930156 2.18506 1.54754 2.18506H18.4525C19.0698 2.18506 19.5703 2.68541 19.5703 3.30264V5.64217",stroke:"#4DA971",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),p("path",{d:"M18.4526 17.8147H1.54738C0.930117 17.8147 0.429688 17.3142 0.429688 16.697V5.88112C0.429688 5.26382 0.930117 4.76343 1.54738 4.76343H18.4526C19.0699 4.76343 19.5703 5.26386 19.5703 5.88112V16.6969C19.5703 17.3142 19.0699 17.8147 18.4526 17.8147Z",fill:"white",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),p("path",{d:"M17.5117 14.2162V8.36195C16.6652 8.36195 15.979 7.67437 15.979 6.82617H4.02098C4.02098 7.67434 3.33477 8.36195 2.48828 8.36195V14.2162C3.33477 14.2162 4.02098 14.9037 4.02098 15.752H15.979C15.979 14.9037 16.6652 14.2162 17.5117 14.2162Z",fill:"white",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),p("path",{d:"M9.99953 13.2399C11.0747 13.2399 11.9463 12.3665 11.9463 11.2891C11.9463 10.2118 11.0747 9.33838 9.99953 9.33838C8.92434 9.33838 8.05273 10.2118 8.05273 11.2891C8.05273 12.3665 8.92434 13.2399 9.99953 13.2399Z",fill:"white",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),p("ellipse",{cx:"14.4277",cy:"11.2891",fill:"#3D3D47",rx:"0.429688",ry:"0.429687"}),p("ellipse",{cx:"5.57227",cy:"11.2891",fill:"#3D3D47",rx:"0.429688",ry:"0.429687"})]}),p("defs",{children:p("clipPath",{id:"clip0_21377_57335",children:p("rect",{fill:"white",height:"20",width:"20"})})})]})}import{jsx as g,jsxs as dt}from"react/jsx-runtime";function A(){return dt("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[g("path",{d:"M14.2862 6.43053L18.3624 3.85093C19.172 1.9095 19.564 0.436523 19.564 0.436523C19.564 0.436523 13.8492 1.38946 9.38516 5.85347L6.32865 8.90994C5.59048 9.64811 5.04572 10.5569 4.74258 11.5559L3.12988 16.8706L8.44457 15.2579C9.44353 14.9547 10.3523 14.41 11.0905 13.6718L14.147 10.6153C15.3515 9.41085 16.3467 7.90827 17.1411 6.43049L14.2862 6.43053Z",fill:"#A9B3BA"}),g("path",{d:"M11.8957 8.104L0.436523 19.5632",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),g("path",{d:"M10 13.333H12.5",stroke:"white",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),g("path",{d:"M8.33301 5.83301L8.33301 8.33301",stroke:"white",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),g("path",{d:"M5.58902 17.5465H2.4541V14.4116",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"})]})}import{jsx as s}from"react/jsx-runtime";function J({name:t}){switch(t){case"agenda":return s(_,{});case"contencioso":return s(V,{});case"contrato":return s(z,{});case"consultivo":return s(T,{});case"xsigner":return s(A,{});case"procuracao":return s(B,{});case"xpay":return s(Z,{});case"imobiliario":return s(I,{});case"marcasepatentes":return s(R,{});case"ged":return s(H,{});case"regulatorio":return s(E,{});case"compliance":return s(P,{});default:return null}}import{jsx as Q}from"react/jsx-runtime";function S({className:t,filled:e=!1,name:o,...n}){return W.includes(o)?Q(J,{name:o}):Q("span",{...n,className:mt("material-symbols-outlined","text-size-body-lg select-none",t),style:{fontVariationSettings:`'FILL' ${e?1:0}, 'wght' 600, 'GRAD' 0, 'opsz' 20`,...n.style},children:o})}import{Slot as ct}from"@radix-ui/react-slot";import{cva as ut,cx as ft}from"@xjur-ui/util";import{jsx as Ct}from"react/jsx-runtime";var ht=ut(["outline-none inline-flex items-center justify-center rounded-circle gap-small cursor-pointer disabled:opacity-38 disabled:pointer-events-none transition-colors"],{variants:{size:{md:"py-small_1x-alt px-medium text-size-body-md",sm:"py-small-1x px-small text-size-label-sm",icon_md:"p-small text-size-body-md h-large-4x w-large-4x",icon_sm:"p-small-1x text-size-label-sm h-large-2x w-large-2x"},variant:{primary:"",secondary:"",tertiary:"",destructive:"",outlined:"bg-layer-2-idle border border-border-layer-2 hover:bg-layer-2-hover active:bg-layer-2-pressed"},appearance:{solid:"",ghost:"bg-transparent"}},compoundVariants:[{variant:"primary",appearance:"solid",class:"bg-primary-idle text-neutral-label hover:bg-primary-hover active:bg-primary-pressed"},{variant:"primary",appearance:"ghost",class:"text-primary-idle hover:bg-primary-alt-idle active:bg-primary-alt-pressed"},{variant:"secondary",appearance:"solid",class:"bg-layer-1-hover text-neutral-dark hover:bg-layer-1-pressed active:bg-layer-1-active"},{variant:"secondary",appearance:"ghost",class:"hover:bg-layer-1-hover active:bg-layer-1-pressed"},{variant:"tertiary",appearance:"solid",class:"bg-layer-2-hover text-neutral-dark hover:bg-layer-2-pressed active:bg-layer-2-active"},{variant:"tertiary",appearance:"ghost",class:"hover:bg-layer-2-hover active:bg-layer-2-pressed"},{variant:"destructive",appearance:"solid",class:"bg-danger-idle text-neutral-label hover:bg-danger-hover active:bg-danger-pressed"},{variant:"destructive",appearance:"ghost",class:"text-danger-label-idle hover:bg-danger-alt-idle active:bg-danger-alt-pressed"}],defaultVariants:{size:"md",variant:"primary",appearance:"solid"}});function N({asChild:t,className:e,variant:o="primary",size:n="md",appearance:d="solid",...r}){return Ct(t?ct:"button",{className:ft(ht({variant:o,appearance:d,size:n}),e),...r})}import{jsx as gt}from"react/jsx-runtime";function U({appearance:t="ghost",variant:e="secondary",onMouseDown:o,onPointerDown:n,...d}){return gt(N,{appearance:t,size:"icon_md",tabIndex:-1,type:"button",variant:e,onMouseDown:r=>{r.preventDefault(),o?.(r)},onPointerDown:r=>{r.preventDefault(),n?.(r)},...d})}import{Heading as v1}from"@tiptap/extension-heading";import{useEditor as x1,EditorContext as w1}from"@tiptap/react";import{StarterKit as L1}from"@tiptap/starter-kit";import{cx as b1}from"@xjur-ui/util";import{createContext as Wt,useContext as Ot,useMemo as _1,useState as P1}from"react";import{useState as o1,useCallback as r1}from"react";import{useCurrentEditor as n1,useEditorState as a1}from"@tiptap/react";import*as w from"@radix-ui/react-tooltip";import{jsx as j}from"react/jsx-runtime";function vt({delayDuration:t=0,...e}){return j(w.Provider,{"data-slot":"tooltip-provider",delayDuration:t,...e})}function y({...t}){return j(vt,{children:j(w.Root,{"data-slot":"tooltip",...t})})}import*as tt from"@radix-ui/react-tooltip";import{jsx as kt}from"react/jsx-runtime";function L({...t}){return kt(tt.Trigger,{"data-slot":"tooltip-trigger",...t})}import*as M from"@radix-ui/react-tooltip";import{cx as xt}from"@xjur-ui/util";import{jsx as et}from"react/jsx-runtime";function b({className:t,sideOffset:e=1,variant:o="simple",children:n,...d}){return et(M.Portal,{children:et(M.Content,{className:xt("text-size-body-sm z-99999 text-balance","data-[variant=simple]:bg-alt-2 data-[variant=simple]:text-neutral-label data-[variant=simple]:rounded-small-1x data-[variant=simple]:px-small data-[variant=simple]:py-small-1x","data-[variant=rich]:bg-layer-2-idle data-[variant=rich]:text-neutral-dark data-[variant=rich]:rounded-small data-[variant=rich]:border-border-layer-2 data-[variant=rich]:p-large data-[variant=rich]:border","animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin)",t),"data-slot":"tooltip-content","data-variant":o,sideOffset:e,...d,children:n})})}import"react";import*as wt from"@radix-ui/react-dropdown-menu";import{jsx as ao}from"react/jsx-runtime";import*as yt from"@radix-ui/react-dropdown-menu";import{jsx as po}from"react/jsx-runtime";import*as rt from"@radix-ui/react-dropdown-menu";import{cx as gr}from"@xjur-ui/util";import{Slot as ho}from"@radix-ui/react-slot";import{cx as go}from"@xjur-ui/util";import{useVirtualizer as ko}from"@tanstack/react-virtual";import{useRef as wo}from"react";import{createContext as Lt}from"react";var F=Lt({virtualizer:null,enabled:!1});import{jsx as Mo}from"react/jsx-runtime";import{Slot as _o}from"@radix-ui/react-slot";import{cx as To}from"@xjur-ui/util";import{jsx as zo}from"react/jsx-runtime";import{cx as No}from"@xjur-ui/util";import{Slot as Mt}from"@radix-ui/react-slot";import{cva as bt}from"@xjur-ui/util";import{memo as ot,useState as Dt}from"react";import{jsx as D,jsxs as Tt}from"react/jsx-runtime";var _t=bt("",{variants:{variant:{body:"",label:"",title:"",headline:""},size:{"sm-2x":"","sm-1x":"",sm:"",md:"",lg:""},weight:{thin:"font-thin",extraLight:"font-extralight",light:"font-light",normal:"font-normal",medium:"font-medium",semibold:"font-semibold",bold:"font-bold",extraBold:"font-extrabold",black:"font-black"}},compoundVariants:[{variant:"body",size:"sm-1x",class:"text-size-body-sm-1x"},{variant:"body",size:"sm",class:"text-size-body-sm"},{variant:"body",size:"md",class:"text-size-body-md"},{variant:"body",size:"lg",class:"text-size-body-lg"},{variant:"label",size:"sm-2x",class:"text-size-label-sm-2x"},{variant:"label",size:"sm-1x",class:"text-size-label-sm-1x"},{variant:"label",size:"sm",class:"text-size-label-sm"},{variant:"label",size:"md",class:"text-size-label-md"},{variant:"label",size:"lg",class:"text-size-label-lg"},{variant:"title",size:"sm",class:"text-size-title-sm"},{variant:"title",size:"md",class:"text-size-title-md"},{variant:"title",size:"lg",class:"text-size-title-lg"},{variant:"headline",size:"sm",class:"text-size-headline-sm"},{variant:"headline",size:"md",class:"text-size-headline-md"},{variant:"headline",size:"lg",class:"text-size-headline-lg"}],defaultVariants:{variant:"body",size:"md",weight:"normal"}}),v=ot(({variant:t,size:e,weight:o,asChild:n,className:d,children:r,...C})=>D(n?Mt:"span",{className:_t({variant:t,size:e,weight:o,className:d}),...C,children:r}));v.displayName="Typography";var Pt=ot(({children:t,...e})=>{let[o,n]=Dt(!1);return Tt(y,{children:[D(L,{asChild:!0,children:D(v,{onMouseEnter:({currentTarget:r})=>{let C=r.scrollWidth>r.clientWidth;n(C),C?r.style.cursor="pointer":r.style.cursor="text"},...e,children:t})}),o&&D(b,{children:t})]})});Pt.displayName="TruncatedTypography";import{jsx as Wo}from"react/jsx-runtime";import{Slot as Xo}from"@radix-ui/react-slot";import{cx as $o}from"@xjur-ui/util";import{useContext as Yo}from"react";import{jsx as Uo}from"react/jsx-runtime";import{Slot as or}from"@radix-ui/react-slot";import{cx as ir,cva as Vt}from"@xjur-ui/util";import{jsx as sr}from"react/jsx-runtime";var nr=Vt(["py-medium px-small flex items-center gap-small rounded-small-1x","bg-layer-2-idle text-neutral-dark","hover:bg-layer-2-hover transition-colors duration-100 ease-out","active:bg-layer-2-pressed"],{variants:{size:{md:"h-large-4x",lg:"h-large-7x"},isActive:{true:"bg-primary-alt-active text-primary-label-active hover:bg-primary-alt-hover active:bg-primary-alt-pressed"}},defaultVariants:{size:"md",isActive:!1}});import{jsx as xr}from"react/jsx-runtime";import{jsx as Mr}from"react/jsx-runtime";import{jsx as Pr}from"react/jsx-runtime";import{cx as Ar}from"@xjur-ui/util";import"react";import*as Et from"@radix-ui/react-separator";import{cx as Hr}from"@xjur-ui/util";import{jsx as Rr}from"react/jsx-runtime";import{jsx as Wr}from"react/jsx-runtime";import{jsx as u1,jsxs as f1}from"react/jsx-runtime";import{jsx as z1}from"react/jsx-runtime";var Gt=Wt({isFullScreen:!1,setIsFullScreen:()=>{},state:"normal"});function it(){let t=Ot(Gt);if(!t)throw new Error("useTextAreaRootContext must be used within a TextAreaRoot");return t}import{jsx as nt}from"react/jsx-runtime";function Z1(){let{setIsFullScreen:t}=it(),{editor:e}=Xt();return nt(U,{onClick:()=>{t(o=>!o),e?.commands.focus("end")},children:nt(S,{name:"expand_content"})})}export{Z1 as TextAreaFullScreenButton};
@@ -1 +1 @@
1
- import{useState as Me,useCallback as W}from"react";import{useCurrentEditor as Re,useEditorState as Le}from"@tiptap/react";import*as y from"@radix-ui/react-tooltip";import{jsx as w}from"react/jsx-runtime";function Y({delayDuration:e=0,...o}){return w(y.Provider,{"data-slot":"tooltip-provider",delayDuration:e,...o})}function u({...e}){return w(Y,{children:w(y.Root,{"data-slot":"tooltip",...e})})}import*as I from"@radix-ui/react-tooltip";import{jsx as J}from"react/jsx-runtime";function f({...e}){return J(I.Trigger,{"data-slot":"tooltip-trigger",...e})}import*as x from"@radix-ui/react-tooltip";import{cx as K}from"@xjur-ui/util";import{jsx as E}from"react/jsx-runtime";function v({className:e,sideOffset:o=1,variant:a="simple",children:r,...i}){return E(x.Portal,{children:E(x.Content,{className:K("text-size-body-sm z-99999 text-balance","data-[variant=simple]:bg-alt-2 data-[variant=simple]:text-neutral-label data-[variant=simple]:rounded-small-1x data-[variant=simple]:px-small data-[variant=simple]:py-small-1x","data-[variant=rich]:bg-layer-2-idle data-[variant=rich]:text-neutral-dark data-[variant=rich]:rounded-small data-[variant=rich]:border-border-layer-2 data-[variant=rich]:p-large data-[variant=rich]:border","animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin)",e),"data-slot":"tooltip-content","data-variant":a,sideOffset:o,...i,children:r})})}import{Slot as Q}from"@radix-ui/react-slot";import{cva as U,cx as X}from"@xjur-ui/util";import{jsx as j}from"react/jsx-runtime";var Z=U(["outline-none inline-flex items-center justify-center rounded-circle gap-small cursor-pointer disabled:opacity-38 disabled:pointer-events-none transition-colors"],{variants:{size:{md:"py-small_1x-alt px-medium text-size-body-md",sm:"py-small-1x px-small text-size-label-sm",icon_md:"p-small text-size-body-md h-large-4x w-large-4x",icon_sm:"p-small-1x text-size-label-sm h-large-2x w-large-2x"},variant:{primary:"",secondary:"",tertiary:"",destructive:"",outlined:"bg-layer-2-idle border border-border-layer-2 hover:bg-layer-2-hover active:bg-layer-2-pressed"},appearance:{solid:"",ghost:"bg-transparent"}},compoundVariants:[{variant:"primary",appearance:"solid",class:"bg-primary-idle text-neutral-label hover:bg-primary-hover active:bg-primary-pressed"},{variant:"primary",appearance:"ghost",class:"text-primary-idle hover:bg-primary-alt-idle active:bg-primary-alt-pressed"},{variant:"secondary",appearance:"solid",class:"bg-layer-1-hover text-neutral-dark hover:bg-layer-1-pressed active:bg-layer-1-active"},{variant:"secondary",appearance:"ghost",class:"hover:bg-layer-1-hover active:bg-layer-1-pressed"},{variant:"tertiary",appearance:"solid",class:"bg-layer-2-hover text-neutral-dark hover:bg-layer-2-pressed active:bg-layer-2-active"},{variant:"tertiary",appearance:"ghost",class:"hover:bg-layer-2-hover active:bg-layer-2-pressed"},{variant:"destructive",appearance:"solid",class:"bg-danger-idle text-neutral-label hover:bg-danger-hover active:bg-danger-pressed"},{variant:"destructive",appearance:"ghost",class:"text-danger-label-idle hover:bg-danger-alt-idle active:bg-danger-alt-pressed"}],defaultVariants:{size:"md",variant:"primary",appearance:"solid"}});function H({asChild:e,className:o,variant:a="primary",size:r="md",appearance:i="solid",...t}){return j(e?Q:"button",{className:X(Z({variant:a,appearance:i,size:r}),o),...t})}import"react";import*as S from"@radix-ui/react-dropdown-menu";import{jsx as ee}from"react/jsx-runtime";function C({...e}){return ee(S.Root,{"data-slot":"dropdown-menu",...e})}import*as B from"@radix-ui/react-dropdown-menu";import{jsx as te}from"react/jsx-runtime";function T({...e}){return te(B.Trigger,{"data-slot":"dropdown-menu-trigger",...e})}import*as h from"@radix-ui/react-dropdown-menu";import{cx as we}from"@xjur-ui/util";import{Slot as re}from"@radix-ui/react-slot";import{cx as ae}from"@xjur-ui/util";import{useVirtualizer as ie}from"@tanstack/react-virtual";import{useRef as ne}from"react";import{createContext as oe}from"react";var g=oe({virtualizer:null,enabled:!1});import{jsx as A}from"react/jsx-runtime";function P({className:e,asChild:o,children:a,virtualized:r=!1,itemCount:i=0,estimateSize:t=()=>48,overscan:l=5,...d}){let c=o?re:"div",p=ne(null),n=ie({count:i,getScrollElement:()=>p.current,estimateSize:t,overscan:l,enabled:r});return A(g.Provider,{value:{virtualizer:n,enabled:r},children:A(c,{...d,className:ae(e,"rounded-small scrollbar-thin bg-layer-2-idle border-border-layer-2 shadow-elevation-3 z-1000 max-h-[400px] list-none overflow-x-hidden overflow-y-auto border"),ref:p,children:a})})}import{Slot as lt}from"@radix-ui/react-slot";import{cx as pt}from"@xjur-ui/util";import{jsx as dt}from"react/jsx-runtime";import{cx as ht}from"@xjur-ui/util";import{Slot as le}from"@radix-ui/react-slot";import{cva as se}from"@xjur-ui/util";import{memo as O,useState as pe}from"react";import{jsx as b,jsxs as ce}from"react/jsx-runtime";var me=se("",{variants:{variant:{body:"",label:"",title:"",headline:""},size:{"sm-2x":"","sm-1x":"",sm:"",md:"",lg:""},weight:{thin:"font-thin",extraLight:"font-extralight",light:"font-light",normal:"font-normal",medium:"font-medium",semibold:"font-semibold",bold:"font-bold",extraBold:"font-extrabold",black:"font-black"}},compoundVariants:[{variant:"body",size:"sm-1x",class:"text-size-body-sm-1x"},{variant:"body",size:"sm",class:"text-size-body-sm"},{variant:"body",size:"md",class:"text-size-body-md"},{variant:"body",size:"lg",class:"text-size-body-lg"},{variant:"label",size:"sm-2x",class:"text-size-label-sm-2x"},{variant:"label",size:"sm-1x",class:"text-size-label-sm-1x"},{variant:"label",size:"sm",class:"text-size-label-sm"},{variant:"label",size:"md",class:"text-size-label-md"},{variant:"label",size:"lg",class:"text-size-label-lg"},{variant:"title",size:"sm",class:"text-size-title-sm"},{variant:"title",size:"md",class:"text-size-title-md"},{variant:"title",size:"lg",class:"text-size-title-lg"},{variant:"headline",size:"sm",class:"text-size-headline-sm"},{variant:"headline",size:"md",class:"text-size-headline-md"},{variant:"headline",size:"lg",class:"text-size-headline-lg"}],defaultVariants:{variant:"body",size:"md",weight:"normal"}}),m=O(({variant:e,size:o,weight:a,asChild:r,className:i,children:t,...l})=>b(r?le:"span",{className:me({variant:e,size:o,weight:a,className:i}),...l,children:t}));m.displayName="Typography";var de=O(({children:e,...o})=>{let[a,r]=pe(!1);return ce(u,{children:[b(f,{asChild:!0,children:b(m,{onMouseEnter:({currentTarget:t})=>{let l=t.scrollWidth>t.clientWidth;r(l),l?t.style.cursor="pointer":t.style.cursor="text"},...o,children:e})}),a&&b(v,{children:e})]})});de.displayName="TruncatedTypography";import{jsx as Ct}from"react/jsx-runtime";import{Slot as ue}from"@radix-ui/react-slot";import{cx as q}from"@xjur-ui/util";import{useContext as fe}from"react";import{jsx as z}from"react/jsx-runtime";function D({className:e,asChild:o,children:a,renderItem:r,...i}){let t=o?ue:"ul",{virtualizer:l,enabled:d}=fe(g);if(d&&l&&r){let c=l.getVirtualItems();return z(t,{...i,className:q("p-small relative flex flex-col",e),style:{height:`${l.getTotalSize()}px`},children:c.map(p=>z("div",{className:"absolute top-0 left-0 w-full","data-index":p.index,ref:l.measureElement,style:{transform:`translateY(${p.start}px)`},children:r(p.index)},p.key))})}return z(t,{...i,className:q("gap-small-1x p-small flex flex-col",e),children:a})}import{Slot as ve}from"@radix-ui/react-slot";import{cx as ge,cva as ye}from"@xjur-ui/util";import{jsx as be}from"react/jsx-runtime";var xe=ye(["py-medium px-small flex items-center gap-small rounded-small-1x","bg-layer-2-idle text-neutral-dark","hover:bg-layer-2-hover transition-colors duration-100 ease-out","active:bg-layer-2-pressed"],{variants:{size:{md:"h-large-4x",lg:"h-large-7x"},isActive:{true:"bg-primary-alt-active text-primary-label-active hover:bg-primary-alt-hover active:bg-primary-alt-pressed"}},defaultVariants:{size:"md",isActive:!1}});function M({className:e,size:o,isActive:a,asChild:r,...i}){return be(r?ve:"li",{...i,className:ge(xe({size:o,isActive:a}),e)})}import{jsx as R}from"react/jsx-runtime";function L({className:e,sideOffset:o=4,align:a="start",side:r="bottom",children:i,...t}){return R(h.Portal,{children:R(h.Content,{align:a,className:we("group z-1000 max-h-[var(--radix-popover-content-available-height)] max-w-[240px] min-w-[var(--radix-popover-trigger-width)]",e),"data-slot":"dropdown-menu-content",side:r,sideOffset:o,...t,children:R(P,{children:i})})})}import{jsx as Ce}from"react/jsx-runtime";function k({...e}){return Ce(D,{...e})}import{jsx as Xt}from"react/jsx-runtime";import{cx as Pe}from"@xjur-ui/util";import"react";import*as Te from"@radix-ui/react-separator";import{cx as to}from"@xjur-ui/util";import{jsx as ro}from"react/jsx-runtime";import{jsx as $}from"react/jsx-runtime";function V({className:e,...o}){return $(M,{className:Pe(e,"cursor-pointer"),...o})}function N({...e}){return $(m,{...e})}import{cx as ze}from"@xjur-ui/util";import{jsx as De}from"react/jsx-runtime";function G({className:e,filled:o=!1,name:a,...r}){return De("span",{...r,className:ze("material-symbols-outlined","text-size-body-lg select-none",e),style:{fontVariationSettings:`'FILL' ${o?1:0}, 'wght' 600, 'GRAD' 0, 'opsz' 20`,...r.style},children:a})}import{jsx as s,jsxs as F}from"react/jsx-runtime";var _={1:"text-size-body-sm-1x",2:"text-size-body-md",3:"text-size-title-lg",4:"text-size-headline-sm"};function Ho({appearance:e="ghost",variant:o="secondary",...a}){let[r,i]=Me(!1),{editor:t}=Re(),l=Le({editor:t,selector:n=>n.editor?.isActive("heading")??!1}),d=W(n=>{if(!t)throw new Error("Editor not found");return t.isActive("heading",{level:n})},[t]),c=W(n=>{if(!t)throw new Error("Editor not found");i(!1),setTimeout(()=>{t.chain().focus().toggleHeading({level:n}).run()},0)},[t]),p=[{level:1,label:"Pequeno",className:_[1]},{level:2,label:"Normal",className:_[2]},{level:3,label:"Grande",className:_[3]},{level:4,label:"Enorme",className:_[4]}];return F(C,{open:r,onOpenChange:n=>i(n),children:[s(T,{asChild:!0,children:s(H,{appearance:l?"solid":e,size:"icon_md",tabIndex:-1,type:"button",variant:o,...a,children:F(u,{children:[s(f,{asChild:!0,children:s(G,{className:"text-icon-neutral-3",name:"format_size"})}),s(v,{children:s(m,{size:"sm",children:"Tamanho"})})]})})}),s(L,{children:s(k,{children:p.map(n=>s(V,{isActive:d(n.level),onPointerDown:()=>c(n.level),children:s(N,{className:n.className,children:n.label})},n.level))})})]})}export{Ho as HeadingButton,_ as headingClasses};
1
+ import{useState as ue,useCallback as bt}from"react";import{useCurrentEditor as he,useEditorState as fe}from"@tiptap/react";import*as P from"@radix-ui/react-tooltip";import{jsx as B}from"react/jsx-runtime";function _t({delayDuration:t=0,...o}){return B(P.Provider,{"data-slot":"tooltip-provider",delayDuration:t,...o})}function L({...t}){return B(_t,{children:B(P.Root,{"data-slot":"tooltip",...t})})}import*as nt from"@radix-ui/react-tooltip";import{jsx as Pt}from"react/jsx-runtime";function M({...t}){return Pt(nt.Trigger,{"data-slot":"tooltip-trigger",...t})}import*as T from"@radix-ui/react-tooltip";import{cx as Tt}from"@xjur-ui/util";import{jsx as at}from"react/jsx-runtime";function b({className:t,sideOffset:o=1,variant:i="simple",children:r,...n}){return at(T.Portal,{children:at(T.Content,{className:Tt("text-size-body-sm z-99999 text-balance","data-[variant=simple]:bg-alt-2 data-[variant=simple]:text-neutral-label data-[variant=simple]:rounded-small-1x data-[variant=simple]:px-small data-[variant=simple]:py-small-1x","data-[variant=rich]:bg-layer-2-idle data-[variant=rich]:text-neutral-dark data-[variant=rich]:rounded-small data-[variant=rich]:border-border-layer-2 data-[variant=rich]:p-large data-[variant=rich]:border","animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin)",t),"data-slot":"tooltip-content","data-variant":i,sideOffset:o,...n,children:r})})}import{Slot as Vt}from"@radix-ui/react-slot";import{cva as zt,cx as Ht}from"@xjur-ui/util";import{jsx as Rt}from"react/jsx-runtime";var It=zt(["outline-none inline-flex items-center justify-center rounded-circle gap-small cursor-pointer disabled:opacity-38 disabled:pointer-events-none transition-colors"],{variants:{size:{md:"py-small_1x-alt px-medium text-size-body-md",sm:"py-small-1x px-small text-size-label-sm",icon_md:"p-small text-size-body-md h-large-4x w-large-4x",icon_sm:"p-small-1x text-size-label-sm h-large-2x w-large-2x"},variant:{primary:"",secondary:"",tertiary:"",destructive:"",outlined:"bg-layer-2-idle border border-border-layer-2 hover:bg-layer-2-hover active:bg-layer-2-pressed"},appearance:{solid:"",ghost:"bg-transparent"}},compoundVariants:[{variant:"primary",appearance:"solid",class:"bg-primary-idle text-neutral-label hover:bg-primary-hover active:bg-primary-pressed"},{variant:"primary",appearance:"ghost",class:"text-primary-idle hover:bg-primary-alt-idle active:bg-primary-alt-pressed"},{variant:"secondary",appearance:"solid",class:"bg-layer-1-hover text-neutral-dark hover:bg-layer-1-pressed active:bg-layer-1-active"},{variant:"secondary",appearance:"ghost",class:"hover:bg-layer-1-hover active:bg-layer-1-pressed"},{variant:"tertiary",appearance:"solid",class:"bg-layer-2-hover text-neutral-dark hover:bg-layer-2-pressed active:bg-layer-2-active"},{variant:"tertiary",appearance:"ghost",class:"hover:bg-layer-2-hover active:bg-layer-2-pressed"},{variant:"destructive",appearance:"solid",class:"bg-danger-idle text-neutral-label hover:bg-danger-hover active:bg-danger-pressed"},{variant:"destructive",appearance:"ghost",class:"text-danger-label-idle hover:bg-danger-alt-idle active:bg-danger-alt-pressed"}],defaultVariants:{size:"md",variant:"primary",appearance:"solid"}});function st({asChild:t,className:o,variant:i="primary",size:r="md",appearance:n="solid",...e}){return Rt(t?Vt:"button",{className:Ht(It({variant:i,appearance:n,size:r}),o),...e})}import"react";import*as lt from"@radix-ui/react-dropdown-menu";import{jsx as Bt}from"react/jsx-runtime";function E({...t}){return Bt(lt.Root,{"data-slot":"dropdown-menu",...t})}import*as pt from"@radix-ui/react-dropdown-menu";import{jsx as Et}from"react/jsx-runtime";function Z({...t}){return Et(pt.Trigger,{"data-slot":"dropdown-menu-trigger",...t})}import*as z from"@radix-ui/react-dropdown-menu";import{cx as re}from"@xjur-ui/util";import{Slot as Nt}from"@radix-ui/react-slot";import{cx as jt}from"@xjur-ui/util";import{useVirtualizer as At}from"@tanstack/react-virtual";import{useRef as St}from"react";import{createContext as Zt}from"react";var D=Zt({virtualizer:null,enabled:!1});import{jsx as dt}from"react/jsx-runtime";function N({className:t,asChild:o,children:i,virtualized:r=!1,itemCount:n=0,estimateSize:e=()=>48,overscan:s=5,...k}){let y=o?Nt:"div",h=St(null),a=At({count:n,getScrollElement:()=>h.current,estimateSize:e,overscan:s,enabled:r});return dt(D.Provider,{value:{virtualizer:a,enabled:r},children:dt(y,{...k,className:jt(t,"rounded-small scrollbar-thin bg-layer-2-idle border-border-layer-2 shadow-elevation-3 z-1000 max-h-[400px] list-none overflow-x-hidden overflow-y-auto border"),ref:h,children:i})})}import{Slot as Xe}from"@radix-ui/react-slot";import{cx as $e}from"@xjur-ui/util";import{jsx as Je}from"react/jsx-runtime";import{cx as no}from"@xjur-ui/util";import{Slot as Ft}from"@radix-ui/react-slot";import{cva as Wt}from"@xjur-ui/util";import{memo as mt,useState as Ot}from"react";import{jsx as V,jsxs as qt}from"react/jsx-runtime";var Gt=Wt("",{variants:{variant:{body:"",label:"",title:"",headline:""},size:{"sm-2x":"","sm-1x":"",sm:"",md:"",lg:""},weight:{thin:"font-thin",extraLight:"font-extralight",light:"font-light",normal:"font-normal",medium:"font-medium",semibold:"font-semibold",bold:"font-bold",extraBold:"font-extrabold",black:"font-black"}},compoundVariants:[{variant:"body",size:"sm-1x",class:"text-size-body-sm-1x"},{variant:"body",size:"sm",class:"text-size-body-sm"},{variant:"body",size:"md",class:"text-size-body-md"},{variant:"body",size:"lg",class:"text-size-body-lg"},{variant:"label",size:"sm-2x",class:"text-size-label-sm-2x"},{variant:"label",size:"sm-1x",class:"text-size-label-sm-1x"},{variant:"label",size:"sm",class:"text-size-label-sm"},{variant:"label",size:"md",class:"text-size-label-md"},{variant:"label",size:"lg",class:"text-size-label-lg"},{variant:"title",size:"sm",class:"text-size-title-sm"},{variant:"title",size:"md",class:"text-size-title-md"},{variant:"title",size:"lg",class:"text-size-title-lg"},{variant:"headline",size:"sm",class:"text-size-headline-sm"},{variant:"headline",size:"md",class:"text-size-headline-md"},{variant:"headline",size:"lg",class:"text-size-headline-lg"}],defaultVariants:{variant:"body",size:"md",weight:"normal"}}),C=mt(({variant:t,size:o,weight:i,asChild:r,className:n,children:e,...s})=>V(r?Ft:"span",{className:Gt({variant:t,size:o,weight:i,className:n}),...s,children:e}));C.displayName="Typography";var Xt=mt(({children:t,...o})=>{let[i,r]=Ot(!1);return qt(L,{children:[V(M,{asChild:!0,children:V(C,{onMouseEnter:({currentTarget:e})=>{let s=e.scrollWidth>e.clientWidth;r(s),s?e.style.cursor="pointer":e.style.cursor="text"},...o,children:t})}),i&&V(b,{children:t})]})});Xt.displayName="TruncatedTypography";import{jsx as lo}from"react/jsx-runtime";import{Slot as $t}from"@radix-ui/react-slot";import{cx as ct}from"@xjur-ui/util";import{useContext as Yt}from"react";import{jsx as j}from"react/jsx-runtime";function A({className:t,asChild:o,children:i,renderItem:r,...n}){let e=o?$t:"ul",{virtualizer:s,enabled:k}=Yt(D);if(k&&s&&r){let y=s.getVirtualItems();return j(e,{...n,className:ct("p-small relative flex flex-col",t),style:{height:`${s.getTotalSize()}px`},children:y.map(h=>j("div",{className:"absolute top-0 left-0 w-full","data-index":h.index,ref:s.measureElement,style:{transform:`translateY(${h.start}px)`},children:r(h.index)},h.key))})}return j(e,{...n,className:ct("gap-small-1x p-small flex flex-col",t),children:i})}import{Slot as Jt}from"@radix-ui/react-slot";import{cx as Kt,cva as Qt}from"@xjur-ui/util";import{jsx as te}from"react/jsx-runtime";var Ut=Qt(["py-medium px-small flex items-center gap-small rounded-small-1x","bg-layer-2-idle text-neutral-dark","hover:bg-layer-2-hover transition-colors duration-100 ease-out","active:bg-layer-2-pressed"],{variants:{size:{md:"h-large-4x",lg:"h-large-7x"},isActive:{true:"bg-primary-alt-active text-primary-label-active hover:bg-primary-alt-hover active:bg-primary-alt-pressed"}},defaultVariants:{size:"md",isActive:!1}});function S({className:t,size:o,isActive:i,asChild:r,...n}){return te(r?Jt:"li",{...n,className:Kt(Ut({size:o,isActive:i}),t)})}import{jsx as F}from"react/jsx-runtime";function W({className:t,sideOffset:o=4,align:i="start",side:r="bottom",children:n,...e}){return F(z.Portal,{children:F(z.Content,{align:i,className:re("group z-1000 max-h-[var(--radix-popover-content-available-height)] max-w-[240px] min-w-[var(--radix-popover-trigger-width)]",t),"data-slot":"dropdown-menu-content",side:r,sideOffset:o,...e,children:F(N,{children:n})})})}import{jsx as ie}from"react/jsx-runtime";function O({...t}){return ie(A,{...t})}import{jsx as Zo}from"react/jsx-runtime";import{cx as ae}from"@xjur-ui/util";import"react";import*as ne from"@radix-ui/react-separator";import{cx as So}from"@xjur-ui/util";import{jsx as Wo}from"react/jsx-runtime";import{jsx as ut}from"react/jsx-runtime";function G({className:t,...o}){return ut(S,{className:ae(t,"cursor-pointer"),...o})}function X({...t}){return ut(C,{...t})}import{cx as ce}from"@xjur-ui/util";var ht=["agenda","contencioso","contrato","consultivo","xsigner","procuracao","xpay","imobiliario","marcasepatentes","ged","regulatorio","compliance"];import{jsx as p,jsxs as se}from"react/jsx-runtime";function q(){return se("svg",{fill:"none",height:"22",viewBox:"0 0 22 22",width:"22",xmlns:"http://www.w3.org/2000/svg",children:[p("path",{d:"M6.58375 12.5205H5.25168C4.7443 12.5205 4.33301 12.1092 4.33301 11.6018V10.2697C4.33301 9.76236 4.7443 9.35107 5.25168 9.35107H6.58375C7.09113 9.35107 7.50242 9.76236 7.50242 10.2697V11.6018C7.50246 12.1092 7.09113 12.5205 6.58375 12.5205Z",fill:"#E87D30"}),p("path",{d:"M11.4196 12.5205H10.0876C9.58023 12.5205 9.16895 12.1092 9.16895 11.6018V10.2697C9.16895 9.76236 9.58023 9.35107 10.0876 9.35107H11.4197C11.9271 9.35107 12.3384 9.76236 12.3384 10.2697V11.6018C12.3384 12.1092 11.927 12.5205 11.4196 12.5205Z",fill:"#E87D30"}),p("path",{d:"M16.2566 12.5205H14.9245C14.4171 12.5205 14.0059 12.1092 14.0059 11.6018V10.2697C14.0059 9.76236 14.4171 9.35107 14.9245 9.35107H16.2566C16.764 9.35107 17.1753 9.76236 17.1753 10.2697V11.6018C17.1753 12.1092 16.7639 12.5205 16.2566 12.5205Z",fill:"#E87D30"}),p("path",{d:"M6.58375 17.3564H5.25168C4.7443 17.3564 4.33301 16.9451 4.33301 16.4378V15.1057C4.33301 14.5983 4.7443 14.187 5.25168 14.187H6.58375C7.09113 14.187 7.50242 14.5983 7.50242 15.1057V16.4378C7.50246 16.9451 7.09113 17.3564 6.58375 17.3564Z",fill:"#E87D30"}),p("path",{d:"M16.2566 17.3564H14.9245C14.4171 17.3564 14.0059 16.9451 14.0059 16.4378V15.1057C14.0059 14.5983 14.4171 14.187 14.9245 14.187H16.2566C16.764 14.187 17.1753 14.5983 17.1753 15.1057V16.4378C17.1753 16.9451 16.7639 17.3564 16.2566 17.3564Z",fill:"#E87D30"}),p("path",{d:"M11.4196 17.3564H10.0876C9.58023 17.3564 9.16895 16.9451 9.16895 16.4378V15.1057C9.16895 14.5983 9.58023 14.187 10.0876 14.187H11.4197C11.9271 14.187 12.3384 14.5983 12.3384 15.1057V16.4378C12.3384 16.9451 11.927 17.3564 11.4196 17.3564Z",fill:"#E87D30"}),p("path",{d:"M5.47641 4.66531C4.87727 4.66531 4.3916 4.17965 4.3916 3.58051V2.58188C4.3916 1.98277 4.87727 1.49707 5.47641 1.49707C6.07551 1.49707 6.56121 1.98273 6.56121 2.58188V3.58051C6.56117 4.17965 6.07551 4.66531 5.47641 4.66531Z",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:"1.2"}),p("path",{d:"M16.5243 4.66531C15.9252 4.66531 15.4395 4.17965 15.4395 3.58051V2.58188C15.4395 1.98277 15.9251 1.49707 16.5243 1.49707C17.1234 1.49707 17.6091 1.98273 17.6091 2.58188V3.58051C17.609 4.17965 17.1234 4.66531 16.5243 4.66531Z",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:"1.2"}),p("path",{d:"M15.3309 2.96387H6.74414",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:"1.2"}),p("path",{d:"M4.1143 2.96387H2.98582C2.12641 2.96387 1.42969 3.66059 1.42969 4.52004V6.73563H20.5703V4.52004C20.5703 3.66059 19.8736 2.96391 19.0142 2.96391H17.9235",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:"1.2"}),p("path",{d:"M20.5703 6.26904V18.9471C20.5703 19.8065 19.8736 20.5032 19.0142 20.5032H2.98582C2.12641 20.5032 1.42969 19.8065 1.42969 18.9471V6.26904",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:"1.2"}),p("path",{d:"M1.58301 6.73584H20.5014",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:"1.2"})]})}import{jsx as m,jsxs as ft}from"react/jsx-runtime";function $(){return ft("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[ft("g",{clipPath:"url(#clip0_19548_42822)",children:[m("path",{d:"M2.34375 16.0938V11.5625",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),m("path",{d:"M2.34375 8.4375V3.90625",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),m("path",{d:"M17.6562 3.90625H8.4375C7.57457 3.90625 6.875 3.20668 6.875 2.34375C6.875 1.48082 7.57457 0.78125 8.4375 0.78125H17.6562C18.5192 0.78125 19.2188 1.48082 19.2188 2.34375C19.2188 3.20668 18.5192 3.90625 17.6562 3.90625Z",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),m("path",{d:"M17.6562 11.5625H8.4375C7.57457 11.5625 6.875 10.8629 6.875 10C6.875 9.13707 7.57457 8.4375 8.4375 8.4375H17.6562C18.5192 8.4375 19.2188 9.13707 19.2188 10C19.2188 10.8629 18.5192 11.5625 17.6562 11.5625Z",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),m("path",{d:"M17.6562 19.2188H8.4375C7.57457 19.2188 6.875 18.5192 6.875 17.6562C6.875 16.7933 7.57457 16.0938 8.4375 16.0938H17.6562C18.5192 16.0938 19.2188 16.7933 19.2188 17.6562C19.2188 18.5192 18.5192 19.2188 17.6562 19.2188Z",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),m("path",{d:"M2.34375 3.90625C3.20669 3.90625 3.90625 3.20669 3.90625 2.34375C3.90625 1.48081 3.20669 0.78125 2.34375 0.78125C1.48081 0.78125 0.78125 1.48081 0.78125 2.34375C0.78125 3.20669 1.48081 3.90625 2.34375 3.90625Z",stroke:"#E53C4D",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),m("path",{d:"M2.34375 11.5625C3.20669 11.5625 3.90625 10.8629 3.90625 10C3.90625 9.13706 3.20669 8.4375 2.34375 8.4375C1.48081 8.4375 0.78125 9.13706 0.78125 10C0.78125 10.8629 1.48081 11.5625 2.34375 11.5625Z",stroke:"#DF9F20",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),m("path",{d:"M2.34375 19.2188C3.20669 19.2188 3.90625 18.5192 3.90625 17.6562C3.90625 16.7933 3.20669 16.0938 2.34375 16.0938C1.48081 16.0938 0.78125 16.7933 0.78125 17.6562C0.78125 18.5192 1.48081 19.2188 2.34375 19.2188Z",stroke:"#169C55",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"})]}),m("defs",{children:m("clipPath",{id:"clip0_19548_42822",children:m("rect",{fill:"white",height:"20",width:"20"})})})]})}import{jsx as H,jsxs as le}from"react/jsx-runtime";function Y(){return le("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[H("path",{d:"M13.6137 17.9167V19.5703H0.429688V4.04336L4.00367 0.429688H13.6137V2.91667",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),H("path",{d:"M14.1667 12.5L19.2212 17.5367C19.6866 18.0021 19.6866 18.756 19.2212 19.2214C18.9885 19.454 18.6837 19.5704 18.3789 19.5704C18.0741 19.5704 17.7693 19.454 17.5366 19.2214L12.5 14.1667",fill:"#9944E4"}),H("path",{d:"M0.429688 4.04336H4.00367V0.429688",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),H("path",{d:"M10 5.08301C12.746 5.08322 14.9961 7.31131 14.9961 10.04C14.9959 12.7686 12.7458 14.9959 10 14.9961C7.26268 14.9961 5.04318 12.7773 5.04297 10.04C5.04297 7.30256 7.26252 5.08301 10 5.08301Z",stroke:"#9944E4",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:"2"})]})}import{jsx as l,jsxs as Ct}from"react/jsx-runtime";function J(){return Ct("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[Ct("g",{clipPath:"url(#clip0_19548_42667)",children:[l("path",{d:"M5.85656 10.9769C5.85656 12.4754 4.64172 13.6903 3.14312 13.6903C1.64453 13.6903 0.429688 12.4754 0.429688 10.9769M5.85656 10.9769L3.14312 4.49072L0.429688 10.9769M5.85656 10.9769H0.429688",stroke:"#377BD4",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"22.9256"}),l("path",{d:"M2.91699 13.7501C1.25033 13.7501 0.555881 11.8056 0.416992 10.8334C2.22255 10.6945 5.83366 10.5834 5.83366 11.2501C5.83366 12.0834 5.00033 13.7501 2.91699 13.7501Z",fill:"#377BD4"}),l("path",{d:"M16.667 13.7501C15.0003 13.7501 14.3059 11.8056 14.167 10.8334C15.9725 10.6945 19.5837 10.5834 19.5837 11.2501C19.5837 12.0834 18.7503 13.7501 16.667 13.7501Z",fill:"#377BD4"}),l("path",{d:"M14.1436 10.9769C14.1436 12.4754 15.3584 13.6903 16.857 13.6903C18.3556 13.6903 19.5704 12.4754 19.5704 10.9769M14.1436 10.9769L16.857 4.49072L19.5704 10.9769M14.1436 10.9769H19.5704",stroke:"#377BD4",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"22.9256"}),l("path",{d:"M9.02344 13.5156V1.40625C9.02344 0.869141 9.46289 0.429688 10 0.429688C10.5371 0.429688 10.9766 0.869141 10.9766 1.40625V13.5156",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"22.9256"}),l("path",{d:"M8.70012 2.38281H7.07113L5.15879 4.29512H1.12746L0.429688 3.59734",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"22.9256"}),l("path",{clipRule:"evenodd",d:"M5.3125 19.5703H14.6875V18.0078L13.9062 17.2266H6.09371L5.3125 18.0078V19.5703Z",fillRule:"evenodd",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"22.9256"}),l("path",{d:"M12.8947 17.0313V14.4922L12.1134 13.7109H7.88672L7.10547 14.4922V17.0313",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"22.9256"}),l("path",{d:"M9.21875 3.43164H10.7812",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"22.9256"}),l("path",{d:"M11.2998 2.38281H12.9288L14.8411 4.29512H18.8725L19.5702 3.59734",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"22.9256"})]}),l("defs",{children:l("clipPath",{id:"clip0_19548_42667",children:l("rect",{fill:"white",height:"20",width:"20"})})})]})}import{jsx as g,jsxs as pe}from"react/jsx-runtime";function K(){return pe("svg",{fill:"none",height:"20",viewBox:"0 0 16 20",width:"16",xmlns:"http://www.w3.org/2000/svg",children:[g("path",{d:"M12.7851 2.98193C12.7851 2.98193 13.4231 2.98193 14.0612 2.98193C14.7659 2.98193 15.3372 3.5533 15.3372 4.25799C15.3372 7.34791 15.3372 15.2045 15.3372 18.2944C15.3372 18.9991 14.7659 19.5705 14.0612 19.5705C11.7324 19.5705 6.81965 19.5705 4.49086 19.5705C4.15238 19.5705 3.82797 19.4362 3.58871 19.1966C3.34914 18.9574 3.21484 18.6329 3.21484 18.2945C3.21484 17.6565 3.21484 17.0184 3.21484 17.0184",fill:"#EA5081"}),g("path",{d:"M12.7851 2.98193C12.7851 2.98193 13.4231 2.98193 14.0612 2.98193C14.7659 2.98193 15.3372 3.5533 15.3372 4.25799C15.3372 7.34791 15.3372 15.2045 15.3372 18.2944C15.3372 18.9991 14.7659 19.5705 14.0612 19.5705C11.7324 19.5705 6.81965 19.5705 4.49086 19.5705C4.15238 19.5705 3.82797 19.4362 3.58871 19.1966C3.34914 18.9574 3.21484 18.6329 3.21484 18.2945C3.21484 17.6565 3.21484 17.0184 3.21484 17.0184",stroke:"#EA5081",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),g("path",{d:"M0.663086 4.25781L4.49121 0.429688C4.49121 0.429688 9.18352 0.429688 11.5095 0.429688C12.2141 0.429688 12.7855 1.00105 12.7855 1.70574C12.7855 4.79566 12.7855 12.6523 12.7855 15.7422C12.7855 16.4469 12.2142 17.0182 11.5095 17.0182C9.18067 17.0182 4.26793 17.0182 1.93914 17.0182C1.23445 17.0182 0.663086 16.4469 0.663086 15.7422C0.663086 12.5103 0.663086 4.25781 0.663086 4.25781Z",fill:"white",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),g("path",{d:"M0.663086 4.89586C0.663086 4.89586 2.53313 4.89586 3.8532 4.89586C4.55789 4.89586 5.12926 4.32449 5.12926 3.6198C5.12926 2.29973 5.12926 0.429688 5.12926 0.429688",stroke:"#3D3D47",strokeMiterlimit:"10"}),g("path",{d:"M3.85352 8.08594H9.5957",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),g("path",{d:"M3.85352 10.6382H9.5957",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),g("path",{d:"M3.85352 13.1899H7.04363",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"})]})}import{jsx as w,jsxs as gt}from"react/jsx-runtime";function Q(){return gt("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[gt("g",{clipPath:"url(#clip0_19548_42803)",children:[w("path",{d:"M19.5703 4.8957V15.1043C19.5703 13.9613 19.1344 12.8184 18.2621 11.9461C16.518 10.202 13.6902 10.202 11.9461 11.9461C10.5742 13.318 10.2812 15.3602 11.068 17.0184H1.70586C1.36719 17.0184 1.04258 16.8836 0.803516 16.6445C0.564453 16.4055 0.429688 16.0805 0.429688 15.7422V1.70586C0.429688 1.36719 0.564062 1.04258 0.803516 0.803516C1.04258 0.564062 1.36719 0.429688 1.70586 0.429688H8.08594L11.2762 3.61992H18.2941C18.9988 3.61992 19.5703 4.19102 19.5703 4.8957Z",fill:"#F7BC0F"}),w("path",{d:"M15.1047 19.5702C17.5712 19.5702 19.5707 17.5707 19.5707 15.1042C19.5707 12.6377 17.5712 10.6382 15.1047 10.6382C12.6382 10.6382 10.6387 12.6377 10.6387 15.1042C10.6387 17.5707 12.6382 19.5702 15.1047 19.5702Z",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round"}),w("path",{d:"M13.5098 15.1043L14.7859 16.3801L16.7 13.8281",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round"})]}),w("defs",{children:w("clipPath",{id:"clip0_19548_42803",children:w("rect",{fill:"white",height:"20",width:"20"})})})]})}import{jsx as v,jsxs as vt}from"react/jsx-runtime";function U(){return vt("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[vt("g",{clipPath:"url(#clip0_19548_42782)",children:[v("path",{d:"M0.429688 11.5007L10.1218 0.511719L19.5703 11.3059",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),v("path",{d:"M17.3304 8.78764V19.4883H2.89551V8.66553",stroke:"#3D3D47",strokeLinejoin:"round",strokeMiterlimit:"10"}),v("path",{d:"M6.93305 12.366L9.96977 16.1929L13.0492 12.3751C13.4256 11.7457 13.6244 11.026 13.6244 10.2927C13.6244 8.28998 12.0009 6.6665 9.99824 6.6665C7.99555 6.6665 6.37207 8.28998 6.37207 10.2927V10.3077C6.37207 11.0316 6.56574 11.7422 6.93305 12.366Z",fill:"#EB3B3B",stroke:"#EB3B3B",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"22.9256"}),v("path",{d:"M9.97016 11.6454C10.6769 11.6454 11.2499 11.0724 11.2499 10.3657C11.2499 9.65889 10.6769 9.08594 9.97016 9.08594C9.26338 9.08594 8.69043 9.65889 8.69043 10.3657C8.69043 11.0724 9.26338 11.6454 9.97016 11.6454Z",fill:"white",stroke:"white",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"})]}),v("defs",{children:v("clipPath",{id:"clip0_19548_42782",children:v("rect",{fill:"white",height:"20",width:"20"})})})]})}import{jsx as I,jsxs as de}from"react/jsx-runtime";function tt(){return de("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[I("path",{d:"M4.60834 12L2 17.7972L4.86637 17.5931L6.55798 20L9.5 14",fill:"#3CA4E5"}),I("path",{d:"M10 14L12.7909 20L14.7241 17.2923L18 17.5218L15 11.5",fill:"#3CA4E5"}),I("path",{d:"M9.5 14C13.0899 14 16 11.0899 16 7.5C16 3.91015 13.0899 1 9.5 1C5.91015 1 3 3.91015 3 7.5C3 11.0899 5.91015 14 9.5 14Z",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),I("path",{d:"M9.5 11C11.433 11 13 9.433 13 7.5C13 5.567 11.433 4 9.5 4C7.567 4 6 5.567 6 7.5C6 9.433 7.567 11 9.5 11Z",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"})]})}import{jsx as f,jsxs as kt}from"react/jsx-runtime";function et(){return kt("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[kt("g",{clipPath:"url(#clip0_19548_42757)",children:[f("path",{d:"M11.6672 0.429688H3.44824V6.25L16.5006 13",fill:"#649EFE"}),f("path",{d:"M11.667 0.416504L16.5524 4.9022V13.4998",fill:"#4787F2"}),f("path",{d:"M16.667 4.99984H11.667V0.416504",fill:"#B5D1FF"}),f("path",{d:"M16.5528 19.5699H3.44816C2.7902 19.5699 2.25684 19.0366 2.25684 18.3786L2.25684 7.89006C2.25684 7.23209 2.7902 6.69873 3.44816 6.69873H6.56918C6.86094 6.69873 7.14258 6.8058 7.36066 6.99963L17.3442 14.1785C17.5986 14.4046 17.7441 14.7286 17.7441 15.0689V18.3786C17.7441 19.0366 17.2107 19.5699 16.5528 19.5699Z",fill:"white",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),f("path",{d:"M8.21363 14.7256H4.63965V17.1877H8.21363V14.7256Z",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"})]}),f("defs",{children:f("clipPath",{id:"clip0_19548_42757",children:f("rect",{fill:"white",height:"20",width:"20"})})})]})}import{jsx as x,jsxs as wt}from"react/jsx-runtime";function ot(){return wt("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[wt("g",{clipPath:"url(#clip0_19548_42810)",children:[x("path",{d:"M14.5393 4.17742C13.2871 3.19988 11.7117 2.61719 10 2.61719C5.92258 2.61719 2.61719 5.92258 2.61719 10C2.61719 14.0774 5.92258 17.3828 10 17.3828C14.0774 17.3828 17.3828 14.0774 17.3828 10C17.3828 8.8416 17.1157 7.74566 16.6402 6.77",stroke:"#3D3D47",strokeLinejoin:"round",strokeMiterlimit:"10"}),x("path",{d:"M16.0952 2.62152C14.4398 1.25246 12.316 0.429688 10 0.429688C4.71445 0.429688 0.429688 4.71445 0.429688 10C0.429688 15.2855 4.71445 19.5703 10 19.5703C15.2855 19.5703 19.5703 15.2855 19.5703 10C19.5703 8.23215 19.0904 6.57668 18.2546 5.15562",stroke:"#3D3D47",strokeLinejoin:"round",strokeMiterlimit:"10"}),x("path",{d:"M16.8242 0.891113C17.217 0.570748 17.796 0.593369 18.1621 0.959473L20.5088 3.30615C20.8993 3.69668 20.8993 4.32969 20.5088 4.72021L10.6074 14.6216C10.4199 14.8091 10.1656 14.9145 9.90039 14.9146C9.63517 14.9146 9.3809 14.8091 9.19336 14.6216L4.29297 9.72217C3.90245 9.33165 3.90245 8.69765 4.29297 8.30713L6.63965 5.96045L6.71289 5.89404C6.8908 5.74831 7.11469 5.6675 7.34668 5.66748C7.61178 5.66748 7.8662 5.77307 8.05371 5.96045L9.90039 7.80713L16.748 0.959473L16.8242 0.891113Z",fill:"#3FCDBC",stroke:"white",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:"2"})]}),x("defs",{children:x("clipPath",{id:"clip0_19548_42810",children:x("rect",{fill:"white",height:"20",width:"20"})})})]})}import{jsx as c,jsxs as xt}from"react/jsx-runtime";function rt(){return xt("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[xt("g",{clipPath:"url(#clip0_21377_57335)",children:[c("path",{d:"M0.429688 5.64217V3.30264C0.429688 2.68541 0.930156 2.18506 1.54754 2.18506H18.4525C19.0698 2.18506 19.5703 2.68541 19.5703 3.30264V5.64217",fill:"#4DA971"}),c("path",{d:"M0.429688 5.64217V3.30264C0.429688 2.68541 0.930156 2.18506 1.54754 2.18506H18.4525C19.0698 2.18506 19.5703 2.68541 19.5703 3.30264V5.64217",stroke:"#4DA971",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),c("path",{d:"M18.4526 17.8147H1.54738C0.930117 17.8147 0.429688 17.3142 0.429688 16.697V5.88112C0.429688 5.26382 0.930117 4.76343 1.54738 4.76343H18.4526C19.0699 4.76343 19.5703 5.26386 19.5703 5.88112V16.6969C19.5703 17.3142 19.0699 17.8147 18.4526 17.8147Z",fill:"white",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),c("path",{d:"M17.5117 14.2162V8.36195C16.6652 8.36195 15.979 7.67437 15.979 6.82617H4.02098C4.02098 7.67434 3.33477 8.36195 2.48828 8.36195V14.2162C3.33477 14.2162 4.02098 14.9037 4.02098 15.752H15.979C15.979 14.9037 16.6652 14.2162 17.5117 14.2162Z",fill:"white",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),c("path",{d:"M9.99953 13.2399C11.0747 13.2399 11.9463 12.3665 11.9463 11.2891C11.9463 10.2118 11.0747 9.33838 9.99953 9.33838C8.92434 9.33838 8.05273 10.2118 8.05273 11.2891C8.05273 12.3665 8.92434 13.2399 9.99953 13.2399Z",fill:"white",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),c("ellipse",{cx:"14.4277",cy:"11.2891",fill:"#3D3D47",rx:"0.429688",ry:"0.429687"}),c("ellipse",{cx:"5.57227",cy:"11.2891",fill:"#3D3D47",rx:"0.429688",ry:"0.429687"})]}),c("defs",{children:c("clipPath",{id:"clip0_21377_57335",children:c("rect",{fill:"white",height:"20",width:"20"})})})]})}import{jsx as _,jsxs as me}from"react/jsx-runtime";function it(){return me("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[_("path",{d:"M14.2862 6.43053L18.3624 3.85093C19.172 1.9095 19.564 0.436523 19.564 0.436523C19.564 0.436523 13.8492 1.38946 9.38516 5.85347L6.32865 8.90994C5.59048 9.64811 5.04572 10.5569 4.74258 11.5559L3.12988 16.8706L8.44457 15.2579C9.44353 14.9547 10.3523 14.41 11.0905 13.6718L14.147 10.6153C15.3515 9.41085 16.3467 7.90827 17.1411 6.43049L14.2862 6.43053Z",fill:"#A9B3BA"}),_("path",{d:"M11.8957 8.104L0.436523 19.5632",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),_("path",{d:"M10 13.333H12.5",stroke:"white",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),_("path",{d:"M8.33301 5.83301L8.33301 8.33301",stroke:"white",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),_("path",{d:"M5.58902 17.5465H2.4541V14.4116",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"})]})}import{jsx as d}from"react/jsx-runtime";function yt({name:t}){switch(t){case"agenda":return d(q,{});case"contencioso":return d(J,{});case"contrato":return d(K,{});case"consultivo":return d(Y,{});case"xsigner":return d(it,{});case"procuracao":return d(et,{});case"xpay":return d(rt,{});case"imobiliario":return d(U,{});case"marcasepatentes":return d(tt,{});case"ged":return d(Q,{});case"regulatorio":return d(ot,{});case"compliance":return d($,{});default:return null}}import{jsx as Lt}from"react/jsx-runtime";function Mt({className:t,filled:o=!1,name:i,...r}){return ht.includes(i)?Lt(yt,{name:i}):Lt("span",{...r,className:ce("material-symbols-outlined","text-size-body-lg select-none",t),style:{fontVariationSettings:`'FILL' ${o?1:0}, 'wght' 600, 'GRAD' 0, 'opsz' 20`,...r.style},children:i})}import{jsx as u,jsxs as Dt}from"react/jsx-runtime";var R={1:"text-size-body-sm-1x",2:"text-size-body-md",3:"text-size-title-lg",4:"text-size-headline-sm"};function sr({appearance:t="ghost",variant:o="secondary",...i}){let[r,n]=ue(!1),{editor:e}=he(),s=fe({editor:e,selector:a=>a.editor?.isActive("heading")??!1}),k=bt(a=>{if(!e)throw new Error("Editor not found");return e.isActive("heading",{level:a})},[e]),y=bt(a=>{if(!e)throw new Error("Editor not found");n(!1),setTimeout(()=>{e.chain().focus().toggleHeading({level:a}).run()},0)},[e]),h=[{level:1,label:"Pequeno",className:R[1]},{level:2,label:"Normal",className:R[2]},{level:3,label:"Grande",className:R[3]},{level:4,label:"Enorme",className:R[4]}];return Dt(E,{open:r,onOpenChange:a=>n(a),children:[u(Z,{asChild:!0,children:u(st,{appearance:s?"solid":t,size:"icon_md",tabIndex:-1,type:"button",variant:o,...i,children:Dt(L,{children:[u(M,{asChild:!0,children:u(Mt,{className:"text-icon-neutral-3",name:"format_size"})}),u(b,{children:u(C,{size:"sm",children:"Tamanho"})})]})})}),u(W,{children:u(O,{children:h.map(a=>u(G,{isActive:k(a.level),onPointerDown:()=>y(a.level),children:u(X,{className:a.className,children:a.label})},a.level))})})]})}export{sr as HeadingButton,R as headingClasses};
@@ -1 +1 @@
1
- import{Heading as j}from"@tiptap/extension-heading";import{useEditor as ee,EditorContext as te}from"@tiptap/react";import{StarterKit as oe}from"@tiptap/starter-kit";import{cx as re}from"@xjur-ui/util";import{createContext as ae,useContext as ie,useMemo as ne,useState as se}from"react";import{useState as So,useCallback as Eo}from"react";import{useCurrentEditor as Ao,useEditorState as Bo}from"@tiptap/react";import*as l from"@radix-ui/react-tooltip";import{jsx as f}from"react/jsx-runtime";function D({delayDuration:e=0,...t}){return f(l.Provider,{"data-slot":"tooltip-provider",delayDuration:e,...t})}function p({...e}){return f(D,{children:f(l.Root,{"data-slot":"tooltip",...e})})}import*as y from"@radix-ui/react-tooltip";import{jsx as M}from"react/jsx-runtime";function m({...e}){return M(y.Trigger,{"data-slot":"tooltip-trigger",...e})}import*as d from"@radix-ui/react-tooltip";import{cx as R}from"@xjur-ui/util";import{jsx as b}from"react/jsx-runtime";function c({className:e,sideOffset:t=1,variant:o="simple",children:a,...n}){return b(d.Portal,{children:b(d.Content,{className:R("text-size-body-sm z-99999 text-balance","data-[variant=simple]:bg-alt-2 data-[variant=simple]:text-neutral-label data-[variant=simple]:rounded-small-1x data-[variant=simple]:px-small data-[variant=simple]:py-small-1x","data-[variant=rich]:bg-layer-2-idle data-[variant=rich]:text-neutral-dark data-[variant=rich]:rounded-small data-[variant=rich]:border-border-layer-2 data-[variant=rich]:p-large data-[variant=rich]:border","animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin)",e),"data-slot":"tooltip-content","data-variant":o,sideOffset:t,...n,children:a})})}import{Slot as he}from"@radix-ui/react-slot";import{cva as L,cx as we}from"@xjur-ui/util";import{jsx as Pe}from"react/jsx-runtime";var Ce=L(["outline-none inline-flex items-center justify-center rounded-circle gap-small cursor-pointer disabled:opacity-38 disabled:pointer-events-none transition-colors"],{variants:{size:{md:"py-small_1x-alt px-medium text-size-body-md",sm:"py-small-1x px-small text-size-label-sm",icon_md:"p-small text-size-body-md h-large-4x w-large-4x",icon_sm:"p-small-1x text-size-label-sm h-large-2x w-large-2x"},variant:{primary:"",secondary:"",tertiary:"",destructive:"",outlined:"bg-layer-2-idle border border-border-layer-2 hover:bg-layer-2-hover active:bg-layer-2-pressed"},appearance:{solid:"",ghost:"bg-transparent"}},compoundVariants:[{variant:"primary",appearance:"solid",class:"bg-primary-idle text-neutral-label hover:bg-primary-hover active:bg-primary-pressed"},{variant:"primary",appearance:"ghost",class:"text-primary-idle hover:bg-primary-alt-idle active:bg-primary-alt-pressed"},{variant:"secondary",appearance:"solid",class:"bg-layer-1-hover text-neutral-dark hover:bg-layer-1-pressed active:bg-layer-1-active"},{variant:"secondary",appearance:"ghost",class:"hover:bg-layer-1-hover active:bg-layer-1-pressed"},{variant:"tertiary",appearance:"solid",class:"bg-layer-2-hover text-neutral-dark hover:bg-layer-2-pressed active:bg-layer-2-active"},{variant:"tertiary",appearance:"ghost",class:"hover:bg-layer-2-hover active:bg-layer-2-pressed"},{variant:"destructive",appearance:"solid",class:"bg-danger-idle text-neutral-label hover:bg-danger-hover active:bg-danger-pressed"},{variant:"destructive",appearance:"ghost",class:"text-danger-label-idle hover:bg-danger-alt-idle active:bg-danger-alt-pressed"}],defaultVariants:{size:"md",variant:"primary",appearance:"solid"}});import"react";import*as k from"@radix-ui/react-dropdown-menu";import{jsx as Re}from"react/jsx-runtime";import*as V from"@radix-ui/react-dropdown-menu";import{jsx as Ve}from"react/jsx-runtime";import*as _ from"@radix-ui/react-dropdown-menu";import{cx as Bt}from"@xjur-ui/util";import{Slot as He}from"@radix-ui/react-slot";import{cx as Be}from"@xjur-ui/util";import{useVirtualizer as Fe}from"@tanstack/react-virtual";import{useRef as $e}from"react";import{createContext as I}from"react";var v=I({virtualizer:null,enabled:!1});import{jsx as Ke}from"react/jsx-runtime";import{Slot as Qe}from"@radix-ui/react-slot";import{cx as Xe}from"@xjur-ui/util";import{jsx as je}from"react/jsx-runtime";import{cx as lt}from"@xjur-ui/util";import{Slot as N}from"@radix-ui/react-slot";import{cva as S}from"@xjur-ui/util";import{memo as h,useState as E}from"react";import{jsx as u,jsxs as B}from"react/jsx-runtime";var H=S("",{variants:{variant:{body:"",label:"",title:"",headline:""},size:{"sm-2x":"","sm-1x":"",sm:"",md:"",lg:""},weight:{thin:"font-thin",extraLight:"font-extralight",light:"font-light",normal:"font-normal",medium:"font-medium",semibold:"font-semibold",bold:"font-bold",extraBold:"font-extrabold",black:"font-black"}},compoundVariants:[{variant:"body",size:"sm-1x",class:"text-size-body-sm-1x"},{variant:"body",size:"sm",class:"text-size-body-sm"},{variant:"body",size:"md",class:"text-size-body-md"},{variant:"body",size:"lg",class:"text-size-body-lg"},{variant:"label",size:"sm-2x",class:"text-size-label-sm-2x"},{variant:"label",size:"sm-1x",class:"text-size-label-sm-1x"},{variant:"label",size:"sm",class:"text-size-label-sm"},{variant:"label",size:"md",class:"text-size-label-md"},{variant:"label",size:"lg",class:"text-size-label-lg"},{variant:"title",size:"sm",class:"text-size-title-sm"},{variant:"title",size:"md",class:"text-size-title-md"},{variant:"title",size:"lg",class:"text-size-title-lg"},{variant:"headline",size:"sm",class:"text-size-headline-sm"},{variant:"headline",size:"md",class:"text-size-headline-md"},{variant:"headline",size:"lg",class:"text-size-headline-lg"}],defaultVariants:{variant:"body",size:"md",weight:"normal"}}),s=h(({variant:e,size:t,weight:o,asChild:a,className:n,children:r,...i})=>u(a?N:"span",{className:H({variant:e,size:t,weight:o,className:n}),...i,children:r}));s.displayName="Typography";var A=h(({children:e,...t})=>{let[o,a]=E(!1);return B(p,{children:[u(m,{asChild:!0,children:u(s,{onMouseEnter:({currentTarget:r})=>{let i=r.scrollWidth>r.clientWidth;a(i),i?r.style.cursor="pointer":r.style.cursor="text"},...t,children:e})}),o&&u(c,{children:e})]})});A.displayName="TruncatedTypography";import{jsx as dt}from"react/jsx-runtime";import{Slot as ft}from"@radix-ui/react-slot";import{cx as xt}from"@xjur-ui/util";import{useContext as yt}from"react";import{jsx as _t}from"react/jsx-runtime";import{Slot as Tt}from"@radix-ui/react-slot";import{cx as zt,cva as O}from"@xjur-ui/util";import{jsx as Rt}from"react/jsx-runtime";var Dt=O(["py-medium px-small flex items-center gap-small rounded-small-1x","bg-layer-2-idle text-neutral-dark","hover:bg-layer-2-hover transition-colors duration-100 ease-out","active:bg-layer-2-pressed"],{variants:{size:{md:"h-large-4x",lg:"h-large-7x"},isActive:{true:"bg-primary-alt-active text-primary-label-active hover:bg-primary-alt-hover active:bg-primary-alt-pressed"}},defaultVariants:{size:"md",isActive:!1}});import{jsx as qt}from"react/jsx-runtime";import{jsx as Kt}from"react/jsx-runtime";import{jsx as Ut}from"react/jsx-runtime";import{cx as no}from"@xjur-ui/util";import"react";import*as K from"@radix-ui/react-separator";import{cx as eo}from"@xjur-ui/util";import{jsx as oo}from"react/jsx-runtime";import{jsx as co}from"react/jsx-runtime";import{cx as Do}from"@xjur-ui/util";import{jsx as Ro}from"react/jsx-runtime";import{jsx as Ko,jsxs as Yo}from"react/jsx-runtime";var w={1:"text-size-body-sm-1x",2:"text-size-body-md",3:"text-size-title-lg",4:"text-size-headline-sm"};import{jsx as x}from"react/jsx-runtime";var C=ae({isFullScreen:!1,setIsFullScreen:()=>{},state:"normal"});function tr(){let e=ie(C);if(!e)throw new Error("useTextAreaRootContext must be used within a TextAreaRoot");return e}function or({className:e,state:t="normal",editorOptions:o,...a}){let[n,r]=se(!1),i=ee({...o,editable:t!=="disabled",extensions:[oe.configure({bulletList:{HTMLAttributes:{class:"list-disc list-outside pl-large-1x"}},orderedList:{HTMLAttributes:{class:"list-decimal list-outside pl-large-1x"}},heading:!1}),j.configure({levels:[1,2,3,4]}).extend({renderHTML({node:T,HTMLAttributes:P}){let z=T.attrs.level??1;return["h",{...P,class:w[z]},0]}}),...o?.extensions??[]]}),g=ne(()=>({editor:i}),[i]);return x(C.Provider,{value:{isFullScreen:n,setIsFullScreen:r,state:t},children:x(te.Provider,{value:g,children:x("div",{className:re("gap-small flex w-full flex-col",e),"data-slot":"text-area-root",...a})})})}export{or as TextAreaRoot,tr as useTextAreaRootContext};
1
+ import{Heading as U}from"@tiptap/extension-heading";import{useEditor as ee,EditorContext as te}from"@tiptap/react";import{StarterKit as oe}from"@tiptap/starter-kit";import{cx as re}from"@xjur-ui/util";import{createContext as ie,useContext as ne,useMemo as ae,useState as se}from"react";import{useState as ar,useCallback as sr}from"react";import{useCurrentEditor as pr,useEditorState as dr}from"@tiptap/react";import*as l from"@radix-ui/react-tooltip";import{jsx as f}from"react/jsx-runtime";function _({delayDuration:e=0,...t}){return f(l.Provider,{"data-slot":"tooltip-provider",delayDuration:e,...t})}function p({...e}){return f(_,{children:f(l.Root,{"data-slot":"tooltip",...e})})}import*as v from"@radix-ui/react-tooltip";import{jsx as P}from"react/jsx-runtime";function d({...e}){return P(v.Trigger,{"data-slot":"tooltip-trigger",...e})}import*as m from"@radix-ui/react-tooltip";import{cx as T}from"@xjur-ui/util";import{jsx as k}from"react/jsx-runtime";function c({className:e,sideOffset:t=1,variant:o="simple",children:i,...a}){return k(m.Portal,{children:k(m.Content,{className:T("text-size-body-sm z-99999 text-balance","data-[variant=simple]:bg-alt-2 data-[variant=simple]:text-neutral-label data-[variant=simple]:rounded-small-1x data-[variant=simple]:px-small data-[variant=simple]:py-small-1x","data-[variant=rich]:bg-layer-2-idle data-[variant=rich]:text-neutral-dark data-[variant=rich]:rounded-small data-[variant=rich]:border-border-layer-2 data-[variant=rich]:p-large data-[variant=rich]:border","animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin)",e),"data-slot":"tooltip-content","data-variant":o,sideOffset:t,...a,children:i})})}import{Slot as xe}from"@radix-ui/react-slot";import{cva as V,cx as ye}from"@xjur-ui/util";import{jsx as be}from"react/jsx-runtime";var Le=V(["outline-none inline-flex items-center justify-center rounded-circle gap-small cursor-pointer disabled:opacity-38 disabled:pointer-events-none transition-colors"],{variants:{size:{md:"py-small_1x-alt px-medium text-size-body-md",sm:"py-small-1x px-small text-size-label-sm",icon_md:"p-small text-size-body-md h-large-4x w-large-4x",icon_sm:"p-small-1x text-size-label-sm h-large-2x w-large-2x"},variant:{primary:"",secondary:"",tertiary:"",destructive:"",outlined:"bg-layer-2-idle border border-border-layer-2 hover:bg-layer-2-hover active:bg-layer-2-pressed"},appearance:{solid:"",ghost:"bg-transparent"}},compoundVariants:[{variant:"primary",appearance:"solid",class:"bg-primary-idle text-neutral-label hover:bg-primary-hover active:bg-primary-pressed"},{variant:"primary",appearance:"ghost",class:"text-primary-idle hover:bg-primary-alt-idle active:bg-primary-alt-pressed"},{variant:"secondary",appearance:"solid",class:"bg-layer-1-hover text-neutral-dark hover:bg-layer-1-pressed active:bg-layer-1-active"},{variant:"secondary",appearance:"ghost",class:"hover:bg-layer-1-hover active:bg-layer-1-pressed"},{variant:"tertiary",appearance:"solid",class:"bg-layer-2-hover text-neutral-dark hover:bg-layer-2-pressed active:bg-layer-2-active"},{variant:"tertiary",appearance:"ghost",class:"hover:bg-layer-2-hover active:bg-layer-2-pressed"},{variant:"destructive",appearance:"solid",class:"bg-danger-idle text-neutral-label hover:bg-danger-hover active:bg-danger-pressed"},{variant:"destructive",appearance:"ghost",class:"text-danger-label-idle hover:bg-danger-alt-idle active:bg-danger-alt-pressed"}],defaultVariants:{size:"md",variant:"primary",appearance:"solid"}});import"react";import*as H from"@radix-ui/react-dropdown-menu";import{jsx as Te}from"react/jsx-runtime";import*as z from"@radix-ui/react-dropdown-menu";import{jsx as ze}from"react/jsx-runtime";import*as w from"@radix-ui/react-dropdown-menu";import{cx as Nt}from"@xjur-ui/util";import{Slot as Ze}from"@radix-ui/react-slot";import{cx as Ne}from"@xjur-ui/util";import{useVirtualizer as je}from"@tanstack/react-virtual";import{useRef as We}from"react";import{createContext as I}from"react";var h=I({virtualizer:null,enabled:!1});import{jsx as Xe}from"react/jsx-runtime";import{Slot as Ke}from"@radix-ui/react-slot";import{cx as Je}from"@xjur-ui/util";import{jsx as Ue}from"react/jsx-runtime";import{cx as lt}from"@xjur-ui/util";import{Slot as R}from"@radix-ui/react-slot";import{cva as E}from"@xjur-ui/util";import{memo as x,useState as B}from"react";import{jsx as u,jsxs as N}from"react/jsx-runtime";var Z=E("",{variants:{variant:{body:"",label:"",title:"",headline:""},size:{"sm-2x":"","sm-1x":"",sm:"",md:"",lg:""},weight:{thin:"font-thin",extraLight:"font-extralight",light:"font-light",normal:"font-normal",medium:"font-medium",semibold:"font-semibold",bold:"font-bold",extraBold:"font-extrabold",black:"font-black"}},compoundVariants:[{variant:"body",size:"sm-1x",class:"text-size-body-sm-1x"},{variant:"body",size:"sm",class:"text-size-body-sm"},{variant:"body",size:"md",class:"text-size-body-md"},{variant:"body",size:"lg",class:"text-size-body-lg"},{variant:"label",size:"sm-2x",class:"text-size-label-sm-2x"},{variant:"label",size:"sm-1x",class:"text-size-label-sm-1x"},{variant:"label",size:"sm",class:"text-size-label-sm"},{variant:"label",size:"md",class:"text-size-label-md"},{variant:"label",size:"lg",class:"text-size-label-lg"},{variant:"title",size:"sm",class:"text-size-title-sm"},{variant:"title",size:"md",class:"text-size-title-md"},{variant:"title",size:"lg",class:"text-size-title-lg"},{variant:"headline",size:"sm",class:"text-size-headline-sm"},{variant:"headline",size:"md",class:"text-size-headline-md"},{variant:"headline",size:"lg",class:"text-size-headline-lg"}],defaultVariants:{variant:"body",size:"md",weight:"normal"}}),s=x(({variant:e,size:t,weight:o,asChild:i,className:a,children:r,...n})=>u(i?R:"span",{className:Z({variant:e,size:t,weight:o,className:a}),...n,children:r}));s.displayName="Typography";var A=x(({children:e,...t})=>{let[o,i]=B(!1);return N(p,{children:[u(d,{asChild:!0,children:u(s,{onMouseEnter:({currentTarget:r})=>{let n=r.scrollWidth>r.clientWidth;i(n),n?r.style.cursor="pointer":r.style.cursor="text"},...t,children:e})}),o&&u(c,{children:e})]})});A.displayName="TruncatedTypography";import{jsx as mt}from"react/jsx-runtime";import{Slot as ft}from"@radix-ui/react-slot";import{cx as Ct}from"@xjur-ui/util";import{useContext as vt}from"react";import{jsx as wt}from"react/jsx-runtime";import{Slot as Mt}from"@radix-ui/react-slot";import{cx as Dt,cva as S}from"@xjur-ui/util";import{jsx as Tt}from"react/jsx-runtime";var _t=S(["py-medium px-small flex items-center gap-small rounded-small-1x","bg-layer-2-idle text-neutral-dark","hover:bg-layer-2-hover transition-colors duration-100 ease-out","active:bg-layer-2-pressed"],{variants:{size:{md:"h-large-4x",lg:"h-large-7x"},isActive:{true:"bg-primary-alt-active text-primary-label-active hover:bg-primary-alt-hover active:bg-primary-alt-pressed"}},defaultVariants:{size:"md",isActive:!1}});import{jsx as Ft}from"react/jsx-runtime";import{jsx as Xt}from"react/jsx-runtime";import{jsx as Yt}from"react/jsx-runtime";import{cx as ao}from"@xjur-ui/util";import"react";import*as X from"@radix-ui/react-separator";import{cx as eo}from"@xjur-ui/util";import{jsx as oo}from"react/jsx-runtime";import{jsx as co}from"react/jsx-runtime";import{cx as Y1}from"@xjur-ui/util";import{jsx as Do,jsxs as _o}from"react/jsx-runtime";import{jsx as Vo,jsxs as Ho}from"react/jsx-runtime";import{jsx as Ro,jsxs as Eo}from"react/jsx-runtime";import{jsx as Ao,jsxs as No}from"react/jsx-runtime";import{jsx as Fo,jsxs as Wo}from"react/jsx-runtime";import{jsx as Xo,jsxs as qo}from"react/jsx-runtime";import{jsx as Yo,jsxs as Jo}from"react/jsx-runtime";import{jsx as e1,jsxs as t1}from"react/jsx-runtime";import{jsx as i1,jsxs as n1}from"react/jsx-runtime";import{jsx as l1,jsxs as p1}from"react/jsx-runtime";import{jsx as c1,jsxs as u1}from"react/jsx-runtime";import{jsx as C1,jsxs as g1}from"react/jsx-runtime";import{jsx as O1}from"react/jsx-runtime";import{jsx as er}from"react/jsx-runtime";import{jsx as gr,jsxs as vr}from"react/jsx-runtime";var y={1:"text-size-body-sm-1x",2:"text-size-body-md",3:"text-size-title-lg",4:"text-size-headline-sm"};import{jsx as C}from"react/jsx-runtime";var L=ie({isFullScreen:!1,setIsFullScreen:()=>{},state:"normal"});function Dr(){let e=ne(L);if(!e)throw new Error("useTextAreaRootContext must be used within a TextAreaRoot");return e}function _r({className:e,state:t="normal",editorOptions:o,...i}){let[a,r]=se(!1),n=ee({...o,editable:t!=="disabled",extensions:[oe.configure({bulletList:{HTMLAttributes:{class:"list-disc list-outside pl-large-1x"}},orderedList:{HTMLAttributes:{class:"list-decimal list-outside pl-large-1x"}},heading:!1}),U.configure({levels:[1,2,3,4]}).extend({renderHTML({node:M,HTMLAttributes:b}){let D=M.attrs.level??1;return["h",{...b,class:y[D]},0]}}),...o?.extensions??[]]}),g=ae(()=>({editor:n}),[n]);return C(L.Provider,{value:{isFullScreen:a,setIsFullScreen:r,state:t},children:C(te.Provider,{value:g,children:C("div",{className:re("gap-small flex w-full flex-col",e),"data-slot":"text-area-root",...i})})})}export{_r as TextAreaRoot,Dr as useTextAreaRootContext};
@@ -1 +1 @@
1
- import{useMemo as P,useCallback as G}from"react";import{useCurrentEditor as H,useEditorState as Y}from"@tiptap/react";import{useState as C,useEffect as k}from"react";function h(){let[t,o]=C("unknown");return k(()=>{if(typeof window>"u")return;let e=window.navigator.userAgent;/iPad|iPhone|iPod/.test(e)?o("ios"):/Mac/.test(e)?o("macos"):/Win/.test(e)?o("windows"):/Android/.test(e)?o("android"):/Linux/.test(e)?o("linux"):o("unknown")},[]),{os:t,shortcut:["macos","ios"].includes(t)?"\u2318":"Ctrl"}}import{cx as B}from"@xjur-ui/util";import{jsx as L}from"react/jsx-runtime";function v({className:t,filled:o=!1,name:e,...r}){return L("span",{...r,className:B("material-symbols-outlined","text-size-body-lg select-none",t),style:{fontVariationSettings:`'FILL' ${o?1:0}, 'wght' 600, 'GRAD' 0, 'opsz' 20`,...r.style},children:e})}import{Slot as N}from"@radix-ui/react-slot";import{cva as V}from"@xjur-ui/util";import{memo as T,useState as E}from"react";import*as m from"@radix-ui/react-tooltip";import{jsx as y}from"react/jsx-runtime";function I({delayDuration:t=0,...o}){return y(m.Provider,{"data-slot":"tooltip-provider",delayDuration:t,...o})}function s({...t}){return y(I,{children:y(m.Root,{"data-slot":"tooltip",...t})})}import*as _ from"@radix-ui/react-tooltip";import{jsx as M}from"react/jsx-runtime";function l({...t}){return M(_.Trigger,{"data-slot":"tooltip-trigger",...t})}import*as u from"@radix-ui/react-tooltip";import{cx as S}from"@xjur-ui/util";import{jsx as x}from"react/jsx-runtime";function d({className:t,sideOffset:o=1,variant:e="simple",children:r,...i}){return x(u.Portal,{children:x(u.Content,{className:S("text-size-body-sm z-99999 text-balance","data-[variant=simple]:bg-alt-2 data-[variant=simple]:text-neutral-label data-[variant=simple]:rounded-small-1x data-[variant=simple]:px-small data-[variant=simple]:py-small-1x","data-[variant=rich]:bg-layer-2-idle data-[variant=rich]:text-neutral-dark data-[variant=rich]:rounded-small data-[variant=rich]:border-border-layer-2 data-[variant=rich]:p-large data-[variant=rich]:border","animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin)",t),"data-slot":"tooltip-content","data-variant":e,sideOffset:o,...i,children:r})})}import{jsx as g,jsxs as D}from"react/jsx-runtime";var R=V("",{variants:{variant:{body:"",label:"",title:"",headline:""},size:{"sm-2x":"","sm-1x":"",sm:"",md:"",lg:""},weight:{thin:"font-thin",extraLight:"font-extralight",light:"font-light",normal:"font-normal",medium:"font-medium",semibold:"font-semibold",bold:"font-bold",extraBold:"font-extrabold",black:"font-black"}},compoundVariants:[{variant:"body",size:"sm-1x",class:"text-size-body-sm-1x"},{variant:"body",size:"sm",class:"text-size-body-sm"},{variant:"body",size:"md",class:"text-size-body-md"},{variant:"body",size:"lg",class:"text-size-body-lg"},{variant:"label",size:"sm-2x",class:"text-size-label-sm-2x"},{variant:"label",size:"sm-1x",class:"text-size-label-sm-1x"},{variant:"label",size:"sm",class:"text-size-label-sm"},{variant:"label",size:"md",class:"text-size-label-md"},{variant:"label",size:"lg",class:"text-size-label-lg"},{variant:"title",size:"sm",class:"text-size-title-sm"},{variant:"title",size:"md",class:"text-size-title-md"},{variant:"title",size:"lg",class:"text-size-title-lg"},{variant:"headline",size:"sm",class:"text-size-headline-sm"},{variant:"headline",size:"md",class:"text-size-headline-md"},{variant:"headline",size:"lg",class:"text-size-headline-lg"}],defaultVariants:{variant:"body",size:"md",weight:"normal"}}),f=T(({variant:t,size:o,weight:e,asChild:r,className:i,children:a,...n})=>g(r?N:"span",{className:R({variant:t,size:o,weight:e,className:i}),...n,children:a}));f.displayName="Typography";var $=T(({children:t,...o})=>{let[e,r]=E(!1);return D(s,{children:[g(l,{asChild:!0,children:g(f,{onMouseEnter:({currentTarget:a})=>{let n=a.scrollWidth>a.clientWidth;r(n),n?a.style.cursor="pointer":a.style.cursor="text"},...o,children:t})}),e&&g(d,{children:t})]})});$.displayName="TruncatedTypography";import{Slot as O}from"@radix-ui/react-slot";import{cva as A,cx as W}from"@xjur-ui/util";import{jsx as U}from"react/jsx-runtime";var q=A(["outline-none inline-flex items-center justify-center rounded-circle gap-small cursor-pointer disabled:opacity-38 disabled:pointer-events-none transition-colors"],{variants:{size:{md:"py-small_1x-alt px-medium text-size-body-md",sm:"py-small-1x px-small text-size-label-sm",icon_md:"p-small text-size-body-md h-large-4x w-large-4x",icon_sm:"p-small-1x text-size-label-sm h-large-2x w-large-2x"},variant:{primary:"",secondary:"",tertiary:"",destructive:"",outlined:"bg-layer-2-idle border border-border-layer-2 hover:bg-layer-2-hover active:bg-layer-2-pressed"},appearance:{solid:"",ghost:"bg-transparent"}},compoundVariants:[{variant:"primary",appearance:"solid",class:"bg-primary-idle text-neutral-label hover:bg-primary-hover active:bg-primary-pressed"},{variant:"primary",appearance:"ghost",class:"text-primary-idle hover:bg-primary-alt-idle active:bg-primary-alt-pressed"},{variant:"secondary",appearance:"solid",class:"bg-layer-1-hover text-neutral-dark hover:bg-layer-1-pressed active:bg-layer-1-active"},{variant:"secondary",appearance:"ghost",class:"hover:bg-layer-1-hover active:bg-layer-1-pressed"},{variant:"tertiary",appearance:"solid",class:"bg-layer-2-hover text-neutral-dark hover:bg-layer-2-pressed active:bg-layer-2-active"},{variant:"tertiary",appearance:"ghost",class:"hover:bg-layer-2-hover active:bg-layer-2-pressed"},{variant:"destructive",appearance:"solid",class:"bg-danger-idle text-neutral-label hover:bg-danger-hover active:bg-danger-pressed"},{variant:"destructive",appearance:"ghost",class:"text-danger-label-idle hover:bg-danger-alt-idle active:bg-danger-alt-pressed"}],defaultVariants:{size:"md",variant:"primary",appearance:"solid"}});function w({asChild:t,className:o,variant:e="primary",size:r="md",appearance:i="solid",...a}){return U(t?O:"button",{className:W(q({variant:e,appearance:i,size:r}),o),...a})}import{jsx as F}from"react/jsx-runtime";function z({appearance:t="ghost",variant:o="secondary",onMouseDown:e,onPointerDown:r,...i}){return F(w,{appearance:t,size:"icon_md",tabIndex:-1,type:"button",variant:o,onMouseDown:a=>{a.preventDefault(),e?.(a)},onPointerDown:a=>{a.preventDefault(),r?.(a)},...i})}import{jsx as p,jsxs as Z}from"react/jsx-runtime";function Et({name:t,...o}){let{editor:e}=H(),{shortcut:r}=h(),i=Y({editor:e,selector:c=>c.editor?.isActive(t)??!1}),a=P(()=>new Map([["bold","format_bold"],["italic","format_italic"],["underline","format_underlined"],["strike","format_strikethrough"],["bulletList","format_list_bulleted"],["orderedList","format_list_numbered"],["undo","undo"],["redo","redo"]]).get(t),[t]),n=P(()=>new Map([["bold",`Negrito (${r} + B)`],["italic",`It\xE1lico (${r} + I)`],["underline",`Sublinhado (${r} + U)`],["strike",`Tachado (${r} + S)`],["bulletList",`Lista (${r} + Shift + 7)`],["orderedList",`Lista numerada (${r} + Shift + 8)`],["undo",`Desfazer (${r} + Z)`],["redo",`Refazer (${r} + Y)`]]).get(t),[t,r]),b=G(()=>{if(!e)throw new Error("Editor not found");new Map([["bold",()=>e.chain().focus().toggleBold().run()],["italic",()=>e.chain().focus().toggleItalic().run()],["underline",()=>e.chain().focus().toggleUnderline().run()],["strike",()=>e.chain().focus().toggleStrike().run()],["bulletList",()=>e.chain().focus().toggleBulletList().run()],["orderedList",()=>e.chain().focus().toggleOrderedList().run()],["undo",()=>e.chain().focus().undo().run()],["redo",()=>e.chain().focus().redo().run()]]).get(t)?.()},[e,t]);return Z(s,{delayDuration:500,children:[p(l,{asChild:!0,children:p(z,{onClick:b,...i&&{appearance:"solid"},...o,children:a&&p(v,{className:"text-icon-neutral-3",name:a})})}),p(d,{children:n&&p(f,{size:"sm",children:n})})]})}export{Et as ToggleButton};
1
+ import{useMemo as a1,useCallback as V1}from"react";import{useCurrentEditor as H1,useEditorState as z1}from"@tiptap/react";import{useState as s1,useEffect as l1}from"react";function F(){let[t,o]=s1("unknown");return l1(()=>{if(typeof window>"u")return;let e=window.navigator.userAgent;/iPad|iPhone|iPod/.test(e)?o("ios"):/Mac/.test(e)?o("macos"):/Win/.test(e)?o("windows"):/Android/.test(e)?o("android"):/Linux/.test(e)?o("linux"):o("unknown")},[]),{os:t,shortcut:["macos","ios"].includes(t)?"\u2318":"Ctrl"}}import{cx as h1}from"@xjur-ui/util";var $=["agenda","contencioso","contrato","consultivo","xsigner","procuracao","xpay","imobiliario","marcasepatentes","ged","regulatorio","compliance"];import{jsx as a,jsxs as d1}from"react/jsx-runtime";function P(){return d1("svg",{fill:"none",height:"22",viewBox:"0 0 22 22",width:"22",xmlns:"http://www.w3.org/2000/svg",children:[a("path",{d:"M6.58375 12.5205H5.25168C4.7443 12.5205 4.33301 12.1092 4.33301 11.6018V10.2697C4.33301 9.76236 4.7443 9.35107 5.25168 9.35107H6.58375C7.09113 9.35107 7.50242 9.76236 7.50242 10.2697V11.6018C7.50246 12.1092 7.09113 12.5205 6.58375 12.5205Z",fill:"#E87D30"}),a("path",{d:"M11.4196 12.5205H10.0876C9.58023 12.5205 9.16895 12.1092 9.16895 11.6018V10.2697C9.16895 9.76236 9.58023 9.35107 10.0876 9.35107H11.4197C11.9271 9.35107 12.3384 9.76236 12.3384 10.2697V11.6018C12.3384 12.1092 11.927 12.5205 11.4196 12.5205Z",fill:"#E87D30"}),a("path",{d:"M16.2566 12.5205H14.9245C14.4171 12.5205 14.0059 12.1092 14.0059 11.6018V10.2697C14.0059 9.76236 14.4171 9.35107 14.9245 9.35107H16.2566C16.764 9.35107 17.1753 9.76236 17.1753 10.2697V11.6018C17.1753 12.1092 16.7639 12.5205 16.2566 12.5205Z",fill:"#E87D30"}),a("path",{d:"M6.58375 17.3564H5.25168C4.7443 17.3564 4.33301 16.9451 4.33301 16.4378V15.1057C4.33301 14.5983 4.7443 14.187 5.25168 14.187H6.58375C7.09113 14.187 7.50242 14.5983 7.50242 15.1057V16.4378C7.50246 16.9451 7.09113 17.3564 6.58375 17.3564Z",fill:"#E87D30"}),a("path",{d:"M16.2566 17.3564H14.9245C14.4171 17.3564 14.0059 16.9451 14.0059 16.4378V15.1057C14.0059 14.5983 14.4171 14.187 14.9245 14.187H16.2566C16.764 14.187 17.1753 14.5983 17.1753 15.1057V16.4378C17.1753 16.9451 16.7639 17.3564 16.2566 17.3564Z",fill:"#E87D30"}),a("path",{d:"M11.4196 17.3564H10.0876C9.58023 17.3564 9.16895 16.9451 9.16895 16.4378V15.1057C9.16895 14.5983 9.58023 14.187 10.0876 14.187H11.4197C11.9271 14.187 12.3384 14.5983 12.3384 15.1057V16.4378C12.3384 16.9451 11.927 17.3564 11.4196 17.3564Z",fill:"#E87D30"}),a("path",{d:"M5.47641 4.66531C4.87727 4.66531 4.3916 4.17965 4.3916 3.58051V2.58188C4.3916 1.98277 4.87727 1.49707 5.47641 1.49707C6.07551 1.49707 6.56121 1.98273 6.56121 2.58188V3.58051C6.56117 4.17965 6.07551 4.66531 5.47641 4.66531Z",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:"1.2"}),a("path",{d:"M16.5243 4.66531C15.9252 4.66531 15.4395 4.17965 15.4395 3.58051V2.58188C15.4395 1.98277 15.9251 1.49707 16.5243 1.49707C17.1234 1.49707 17.6091 1.98273 17.6091 2.58188V3.58051C17.609 4.17965 17.1234 4.66531 16.5243 4.66531Z",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:"1.2"}),a("path",{d:"M15.3309 2.96387H6.74414",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:"1.2"}),a("path",{d:"M4.1143 2.96387H2.98582C2.12641 2.96387 1.42969 3.66059 1.42969 4.52004V6.73563H20.5703V4.52004C20.5703 3.66059 19.8736 2.96391 19.0142 2.96391H17.9235",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:"1.2"}),a("path",{d:"M20.5703 6.26904V18.9471C20.5703 19.8065 19.8736 20.5032 19.0142 20.5032H2.98582C2.12641 20.5032 1.42969 19.8065 1.42969 18.9471V6.26904",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:"1.2"}),a("path",{d:"M1.58301 6.73584H20.5014",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:"1.2"})]})}import{jsx as d,jsxs as O}from"react/jsx-runtime";function V(){return O("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[O("g",{clipPath:"url(#clip0_19548_42822)",children:[d("path",{d:"M2.34375 16.0938V11.5625",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),d("path",{d:"M2.34375 8.4375V3.90625",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),d("path",{d:"M17.6562 3.90625H8.4375C7.57457 3.90625 6.875 3.20668 6.875 2.34375C6.875 1.48082 7.57457 0.78125 8.4375 0.78125H17.6562C18.5192 0.78125 19.2188 1.48082 19.2188 2.34375C19.2188 3.20668 18.5192 3.90625 17.6562 3.90625Z",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),d("path",{d:"M17.6562 11.5625H8.4375C7.57457 11.5625 6.875 10.8629 6.875 10C6.875 9.13707 7.57457 8.4375 8.4375 8.4375H17.6562C18.5192 8.4375 19.2188 9.13707 19.2188 10C19.2188 10.8629 18.5192 11.5625 17.6562 11.5625Z",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),d("path",{d:"M17.6562 19.2188H8.4375C7.57457 19.2188 6.875 18.5192 6.875 17.6562C6.875 16.7933 7.57457 16.0938 8.4375 16.0938H17.6562C18.5192 16.0938 19.2188 16.7933 19.2188 17.6562C19.2188 18.5192 18.5192 19.2188 17.6562 19.2188Z",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),d("path",{d:"M2.34375 3.90625C3.20669 3.90625 3.90625 3.20669 3.90625 2.34375C3.90625 1.48081 3.20669 0.78125 2.34375 0.78125C1.48081 0.78125 0.78125 1.48081 0.78125 2.34375C0.78125 3.20669 1.48081 3.90625 2.34375 3.90625Z",stroke:"#E53C4D",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),d("path",{d:"M2.34375 11.5625C3.20669 11.5625 3.90625 10.8629 3.90625 10C3.90625 9.13706 3.20669 8.4375 2.34375 8.4375C1.48081 8.4375 0.78125 9.13706 0.78125 10C0.78125 10.8629 1.48081 11.5625 2.34375 11.5625Z",stroke:"#DF9F20",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),d("path",{d:"M2.34375 19.2188C3.20669 19.2188 3.90625 18.5192 3.90625 17.6562C3.90625 16.7933 3.20669 16.0938 2.34375 16.0938C1.48081 16.0938 0.78125 16.7933 0.78125 17.6562C0.78125 18.5192 1.48081 19.2188 2.34375 19.2188Z",stroke:"#169C55",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"})]}),d("defs",{children:d("clipPath",{id:"clip0_19548_42822",children:d("rect",{fill:"white",height:"20",width:"20"})})})]})}import{jsx as _,jsxs as p1}from"react/jsx-runtime";function H(){return p1("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[_("path",{d:"M13.6137 17.9167V19.5703H0.429688V4.04336L4.00367 0.429688H13.6137V2.91667",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),_("path",{d:"M14.1667 12.5L19.2212 17.5367C19.6866 18.0021 19.6866 18.756 19.2212 19.2214C18.9885 19.454 18.6837 19.5704 18.3789 19.5704C18.0741 19.5704 17.7693 19.454 17.5366 19.2214L12.5 14.1667",fill:"#9944E4"}),_("path",{d:"M0.429688 4.04336H4.00367V0.429688",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),_("path",{d:"M10 5.08301C12.746 5.08322 14.9961 7.31131 14.9961 10.04C14.9959 12.7686 12.7458 14.9959 10 14.9961C7.26268 14.9961 5.04318 12.7773 5.04297 10.04C5.04297 7.30256 7.26252 5.08301 10 5.08301Z",stroke:"#9944E4",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:"2"})]})}import{jsx as n,jsxs as X}from"react/jsx-runtime";function z(){return X("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[X("g",{clipPath:"url(#clip0_19548_42667)",children:[n("path",{d:"M5.85656 10.9769C5.85656 12.4754 4.64172 13.6903 3.14312 13.6903C1.64453 13.6903 0.429688 12.4754 0.429688 10.9769M5.85656 10.9769L3.14312 4.49072L0.429688 10.9769M5.85656 10.9769H0.429688",stroke:"#377BD4",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"22.9256"}),n("path",{d:"M2.91699 13.7501C1.25033 13.7501 0.555881 11.8056 0.416992 10.8334C2.22255 10.6945 5.83366 10.5834 5.83366 11.2501C5.83366 12.0834 5.00033 13.7501 2.91699 13.7501Z",fill:"#377BD4"}),n("path",{d:"M16.667 13.7501C15.0003 13.7501 14.3059 11.8056 14.167 10.8334C15.9725 10.6945 19.5837 10.5834 19.5837 11.2501C19.5837 12.0834 18.7503 13.7501 16.667 13.7501Z",fill:"#377BD4"}),n("path",{d:"M14.1436 10.9769C14.1436 12.4754 15.3584 13.6903 16.857 13.6903C18.3556 13.6903 19.5704 12.4754 19.5704 10.9769M14.1436 10.9769L16.857 4.49072L19.5704 10.9769M14.1436 10.9769H19.5704",stroke:"#377BD4",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"22.9256"}),n("path",{d:"M9.02344 13.5156V1.40625C9.02344 0.869141 9.46289 0.429688 10 0.429688C10.5371 0.429688 10.9766 0.869141 10.9766 1.40625V13.5156",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"22.9256"}),n("path",{d:"M8.70012 2.38281H7.07113L5.15879 4.29512H1.12746L0.429688 3.59734",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"22.9256"}),n("path",{clipRule:"evenodd",d:"M5.3125 19.5703H14.6875V18.0078L13.9062 17.2266H6.09371L5.3125 18.0078V19.5703Z",fillRule:"evenodd",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"22.9256"}),n("path",{d:"M12.8947 17.0313V14.4922L12.1134 13.7109H7.88672L7.10547 14.4922V17.0313",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"22.9256"}),n("path",{d:"M9.21875 3.43164H10.7812",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"22.9256"}),n("path",{d:"M11.2998 2.38281H12.9288L14.8411 4.29512H18.8725L19.5702 3.59734",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"22.9256"})]}),n("defs",{children:n("clipPath",{id:"clip0_19548_42667",children:n("rect",{fill:"white",height:"20",width:"20"})})})]})}import{jsx as m,jsxs as c1}from"react/jsx-runtime";function I(){return c1("svg",{fill:"none",height:"20",viewBox:"0 0 16 20",width:"16",xmlns:"http://www.w3.org/2000/svg",children:[m("path",{d:"M12.7851 2.98193C12.7851 2.98193 13.4231 2.98193 14.0612 2.98193C14.7659 2.98193 15.3372 3.5533 15.3372 4.25799C15.3372 7.34791 15.3372 15.2045 15.3372 18.2944C15.3372 18.9991 14.7659 19.5705 14.0612 19.5705C11.7324 19.5705 6.81965 19.5705 4.49086 19.5705C4.15238 19.5705 3.82797 19.4362 3.58871 19.1966C3.34914 18.9574 3.21484 18.6329 3.21484 18.2945C3.21484 17.6565 3.21484 17.0184 3.21484 17.0184",fill:"#EA5081"}),m("path",{d:"M12.7851 2.98193C12.7851 2.98193 13.4231 2.98193 14.0612 2.98193C14.7659 2.98193 15.3372 3.5533 15.3372 4.25799C15.3372 7.34791 15.3372 15.2045 15.3372 18.2944C15.3372 18.9991 14.7659 19.5705 14.0612 19.5705C11.7324 19.5705 6.81965 19.5705 4.49086 19.5705C4.15238 19.5705 3.82797 19.4362 3.58871 19.1966C3.34914 18.9574 3.21484 18.6329 3.21484 18.2945C3.21484 17.6565 3.21484 17.0184 3.21484 17.0184",stroke:"#EA5081",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),m("path",{d:"M0.663086 4.25781L4.49121 0.429688C4.49121 0.429688 9.18352 0.429688 11.5095 0.429688C12.2141 0.429688 12.7855 1.00105 12.7855 1.70574C12.7855 4.79566 12.7855 12.6523 12.7855 15.7422C12.7855 16.4469 12.2142 17.0182 11.5095 17.0182C9.18067 17.0182 4.26793 17.0182 1.93914 17.0182C1.23445 17.0182 0.663086 16.4469 0.663086 15.7422C0.663086 12.5103 0.663086 4.25781 0.663086 4.25781Z",fill:"white",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),m("path",{d:"M0.663086 4.89586C0.663086 4.89586 2.53313 4.89586 3.8532 4.89586C4.55789 4.89586 5.12926 4.32449 5.12926 3.6198C5.12926 2.29973 5.12926 0.429688 5.12926 0.429688",stroke:"#3D3D47",strokeMiterlimit:"10"}),m("path",{d:"M3.85352 8.08594H9.5957",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),m("path",{d:"M3.85352 10.6382H9.5957",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),m("path",{d:"M3.85352 13.1899H7.04363",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"})]})}import{jsx as f,jsxs as G}from"react/jsx-runtime";function B(){return G("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[G("g",{clipPath:"url(#clip0_19548_42803)",children:[f("path",{d:"M19.5703 4.8957V15.1043C19.5703 13.9613 19.1344 12.8184 18.2621 11.9461C16.518 10.202 13.6902 10.202 11.9461 11.9461C10.5742 13.318 10.2812 15.3602 11.068 17.0184H1.70586C1.36719 17.0184 1.04258 16.8836 0.803516 16.6445C0.564453 16.4055 0.429688 16.0805 0.429688 15.7422V1.70586C0.429688 1.36719 0.564062 1.04258 0.803516 0.803516C1.04258 0.564062 1.36719 0.429688 1.70586 0.429688H8.08594L11.2762 3.61992H18.2941C18.9988 3.61992 19.5703 4.19102 19.5703 4.8957Z",fill:"#F7BC0F"}),f("path",{d:"M15.1047 19.5702C17.5712 19.5702 19.5707 17.5707 19.5707 15.1042C19.5707 12.6377 17.5712 10.6382 15.1047 10.6382C12.6382 10.6382 10.6387 12.6377 10.6387 15.1042C10.6387 17.5707 12.6382 19.5702 15.1047 19.5702Z",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round"}),f("path",{d:"M13.5098 15.1043L14.7859 16.3801L16.7 13.8281",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round"})]}),f("defs",{children:f("clipPath",{id:"clip0_19548_42803",children:f("rect",{fill:"white",height:"20",width:"20"})})})]})}import{jsx as h,jsxs as q}from"react/jsx-runtime";function j(){return q("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[q("g",{clipPath:"url(#clip0_19548_42782)",children:[h("path",{d:"M0.429688 11.5007L10.1218 0.511719L19.5703 11.3059",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),h("path",{d:"M17.3304 8.78764V19.4883H2.89551V8.66553",stroke:"#3D3D47",strokeLinejoin:"round",strokeMiterlimit:"10"}),h("path",{d:"M6.93305 12.366L9.96977 16.1929L13.0492 12.3751C13.4256 11.7457 13.6244 11.026 13.6244 10.2927C13.6244 8.28998 12.0009 6.6665 9.99824 6.6665C7.99555 6.6665 6.37207 8.28998 6.37207 10.2927V10.3077C6.37207 11.0316 6.56574 11.7422 6.93305 12.366Z",fill:"#EB3B3B",stroke:"#EB3B3B",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"22.9256"}),h("path",{d:"M9.97016 11.6454C10.6769 11.6454 11.2499 11.0724 11.2499 10.3657C11.2499 9.65889 10.6769 9.08594 9.97016 9.08594C9.26338 9.08594 8.69043 9.65889 8.69043 10.3657C8.69043 11.0724 9.26338 11.6454 9.97016 11.6454Z",fill:"white",stroke:"white",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"})]}),h("defs",{children:h("clipPath",{id:"clip0_19548_42782",children:h("rect",{fill:"white",height:"20",width:"20"})})})]})}import{jsx as M,jsxs as u1}from"react/jsx-runtime";function Z(){return u1("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[M("path",{d:"M4.60834 12L2 17.7972L4.86637 17.5931L6.55798 20L9.5 14",fill:"#3CA4E5"}),M("path",{d:"M10 14L12.7909 20L14.7241 17.2923L18 17.5218L15 11.5",fill:"#3CA4E5"}),M("path",{d:"M9.5 14C13.0899 14 16 11.0899 16 7.5C16 3.91015 13.0899 1 9.5 1C5.91015 1 3 3.91015 3 7.5C3 11.0899 5.91015 14 9.5 14Z",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),M("path",{d:"M9.5 11C11.433 11 13 9.433 13 7.5C13 5.567 11.433 4 9.5 4C7.567 4 6 5.567 6 7.5C6 9.433 7.567 11 9.5 11Z",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"})]})}import{jsx as u,jsxs as U}from"react/jsx-runtime";function E(){return U("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[U("g",{clipPath:"url(#clip0_19548_42757)",children:[u("path",{d:"M11.6672 0.429688H3.44824V6.25L16.5006 13",fill:"#649EFE"}),u("path",{d:"M11.667 0.416504L16.5524 4.9022V13.4998",fill:"#4787F2"}),u("path",{d:"M16.667 4.99984H11.667V0.416504",fill:"#B5D1FF"}),u("path",{d:"M16.5528 19.5699H3.44816C2.7902 19.5699 2.25684 19.0366 2.25684 18.3786L2.25684 7.89006C2.25684 7.23209 2.7902 6.69873 3.44816 6.69873H6.56918C6.86094 6.69873 7.14258 6.8058 7.36066 6.99963L17.3442 14.1785C17.5986 14.4046 17.7441 14.7286 17.7441 15.0689V18.3786C17.7441 19.0366 17.2107 19.5699 16.5528 19.5699Z",fill:"white",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),u("path",{d:"M8.21363 14.7256H4.63965V17.1877H8.21363V14.7256Z",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"})]}),u("defs",{children:u("clipPath",{id:"clip0_19548_42757",children:u("rect",{fill:"white",height:"20",width:"20"})})})]})}import{jsx as g,jsxs as Y}from"react/jsx-runtime";function A(){return Y("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[Y("g",{clipPath:"url(#clip0_19548_42810)",children:[g("path",{d:"M14.5393 4.17742C13.2871 3.19988 11.7117 2.61719 10 2.61719C5.92258 2.61719 2.61719 5.92258 2.61719 10C2.61719 14.0774 5.92258 17.3828 10 17.3828C14.0774 17.3828 17.3828 14.0774 17.3828 10C17.3828 8.8416 17.1157 7.74566 16.6402 6.77",stroke:"#3D3D47",strokeLinejoin:"round",strokeMiterlimit:"10"}),g("path",{d:"M16.0952 2.62152C14.4398 1.25246 12.316 0.429688 10 0.429688C4.71445 0.429688 0.429688 4.71445 0.429688 10C0.429688 15.2855 4.71445 19.5703 10 19.5703C15.2855 19.5703 19.5703 15.2855 19.5703 10C19.5703 8.23215 19.0904 6.57668 18.2546 5.15562",stroke:"#3D3D47",strokeLinejoin:"round",strokeMiterlimit:"10"}),g("path",{d:"M16.8242 0.891113C17.217 0.570748 17.796 0.593369 18.1621 0.959473L20.5088 3.30615C20.8993 3.69668 20.8993 4.32969 20.5088 4.72021L10.6074 14.6216C10.4199 14.8091 10.1656 14.9145 9.90039 14.9146C9.63517 14.9146 9.3809 14.8091 9.19336 14.6216L4.29297 9.72217C3.90245 9.33165 3.90245 8.69765 4.29297 8.30713L6.63965 5.96045L6.71289 5.89404C6.8908 5.74831 7.11469 5.6675 7.34668 5.66748C7.61178 5.66748 7.8662 5.77307 8.05371 5.96045L9.90039 7.80713L16.748 0.959473L16.8242 0.891113Z",fill:"#3FCDBC",stroke:"white",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:"2"})]}),g("defs",{children:g("clipPath",{id:"clip0_19548_42810",children:g("rect",{fill:"white",height:"20",width:"20"})})})]})}import{jsx as p,jsxs as J}from"react/jsx-runtime";function S(){return J("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[J("g",{clipPath:"url(#clip0_21377_57335)",children:[p("path",{d:"M0.429688 5.64217V3.30264C0.429688 2.68541 0.930156 2.18506 1.54754 2.18506H18.4525C19.0698 2.18506 19.5703 2.68541 19.5703 3.30264V5.64217",fill:"#4DA971"}),p("path",{d:"M0.429688 5.64217V3.30264C0.429688 2.68541 0.930156 2.18506 1.54754 2.18506H18.4525C19.0698 2.18506 19.5703 2.68541 19.5703 3.30264V5.64217",stroke:"#4DA971",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),p("path",{d:"M18.4526 17.8147H1.54738C0.930117 17.8147 0.429688 17.3142 0.429688 16.697V5.88112C0.429688 5.26382 0.930117 4.76343 1.54738 4.76343H18.4526C19.0699 4.76343 19.5703 5.26386 19.5703 5.88112V16.6969C19.5703 17.3142 19.0699 17.8147 18.4526 17.8147Z",fill:"white",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),p("path",{d:"M17.5117 14.2162V8.36195C16.6652 8.36195 15.979 7.67437 15.979 6.82617H4.02098C4.02098 7.67434 3.33477 8.36195 2.48828 8.36195V14.2162C3.33477 14.2162 4.02098 14.9037 4.02098 15.752H15.979C15.979 14.9037 16.6652 14.2162 17.5117 14.2162Z",fill:"white",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),p("path",{d:"M9.99953 13.2399C11.0747 13.2399 11.9463 12.3665 11.9463 11.2891C11.9463 10.2118 11.0747 9.33838 9.99953 9.33838C8.92434 9.33838 8.05273 10.2118 8.05273 11.2891C8.05273 12.3665 8.92434 13.2399 9.99953 13.2399Z",fill:"white",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),p("ellipse",{cx:"14.4277",cy:"11.2891",fill:"#3D3D47",rx:"0.429688",ry:"0.429687"}),p("ellipse",{cx:"5.57227",cy:"11.2891",fill:"#3D3D47",rx:"0.429688",ry:"0.429687"})]}),p("defs",{children:p("clipPath",{id:"clip0_21377_57335",children:p("rect",{fill:"white",height:"20",width:"20"})})})]})}import{jsx as k,jsxs as m1}from"react/jsx-runtime";function R(){return m1("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[k("path",{d:"M14.2862 6.43053L18.3624 3.85093C19.172 1.9095 19.564 0.436523 19.564 0.436523C19.564 0.436523 13.8492 1.38946 9.38516 5.85347L6.32865 8.90994C5.59048 9.64811 5.04572 10.5569 4.74258 11.5559L3.12988 16.8706L8.44457 15.2579C9.44353 14.9547 10.3523 14.41 11.0905 13.6718L14.147 10.6153C15.3515 9.41085 16.3467 7.90827 17.1411 6.43049L14.2862 6.43053Z",fill:"#A9B3BA"}),k("path",{d:"M11.8957 8.104L0.436523 19.5632",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),k("path",{d:"M10 13.333H12.5",stroke:"white",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),k("path",{d:"M8.33301 5.83301L8.33301 8.33301",stroke:"white",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"}),k("path",{d:"M5.58902 17.5465H2.4541V14.4116",stroke:"#3D3D47",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10"})]})}import{jsx as s}from"react/jsx-runtime";function K({name:t}){switch(t){case"agenda":return s(P,{});case"contencioso":return s(z,{});case"contrato":return s(I,{});case"consultivo":return s(H,{});case"xsigner":return s(R,{});case"procuracao":return s(E,{});case"xpay":return s(S,{});case"imobiliario":return s(j,{});case"marcasepatentes":return s(Z,{});case"ged":return s(B,{});case"regulatorio":return s(A,{});case"compliance":return s(V,{});default:return null}}import{jsx as Q}from"react/jsx-runtime";function t1({className:t,filled:o=!1,name:e,...r}){return $.includes(e)?Q(K,{name:e}):Q("span",{...r,className:h1("material-symbols-outlined","text-size-body-lg select-none",t),style:{fontVariationSettings:`'FILL' ${o?1:0}, 'wght' 600, 'GRAD' 0, 'opsz' 20`,...r.style},children:e})}import{Slot as C1}from"@radix-ui/react-slot";import{cva as v1}from"@xjur-ui/util";import{memo as r1,useState as L1}from"react";import*as b from"@radix-ui/react-tooltip";import{jsx as N}from"react/jsx-runtime";function f1({delayDuration:t=0,...o}){return N(b.Provider,{"data-slot":"tooltip-provider",delayDuration:t,...o})}function C({...t}){return N(f1,{children:N(b.Root,{"data-slot":"tooltip",...t})})}import*as e1 from"@radix-ui/react-tooltip";import{jsx as g1}from"react/jsx-runtime";function v({...t}){return g1(e1.Trigger,{"data-slot":"tooltip-trigger",...t})}import*as x from"@radix-ui/react-tooltip";import{cx as k1}from"@xjur-ui/util";import{jsx as o1}from"react/jsx-runtime";function L({className:t,sideOffset:o=1,variant:e="simple",children:r,...l}){return o1(x.Portal,{children:o1(x.Content,{className:k1("text-size-body-sm z-99999 text-balance","data-[variant=simple]:bg-alt-2 data-[variant=simple]:text-neutral-label data-[variant=simple]:rounded-small-1x data-[variant=simple]:px-small data-[variant=simple]:py-small-1x","data-[variant=rich]:bg-layer-2-idle data-[variant=rich]:text-neutral-dark data-[variant=rich]:rounded-small data-[variant=rich]:border-border-layer-2 data-[variant=rich]:p-large data-[variant=rich]:border","animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin)",t),"data-slot":"tooltip-content","data-variant":e,sideOffset:o,...l,children:r})})}import{jsx as D,jsxs as _1}from"react/jsx-runtime";var w1=v1("",{variants:{variant:{body:"",label:"",title:"",headline:""},size:{"sm-2x":"","sm-1x":"",sm:"",md:"",lg:""},weight:{thin:"font-thin",extraLight:"font-extralight",light:"font-light",normal:"font-normal",medium:"font-medium",semibold:"font-semibold",bold:"font-bold",extraBold:"font-extrabold",black:"font-black"}},compoundVariants:[{variant:"body",size:"sm-1x",class:"text-size-body-sm-1x"},{variant:"body",size:"sm",class:"text-size-body-sm"},{variant:"body",size:"md",class:"text-size-body-md"},{variant:"body",size:"lg",class:"text-size-body-lg"},{variant:"label",size:"sm-2x",class:"text-size-label-sm-2x"},{variant:"label",size:"sm-1x",class:"text-size-label-sm-1x"},{variant:"label",size:"sm",class:"text-size-label-sm"},{variant:"label",size:"md",class:"text-size-label-md"},{variant:"label",size:"lg",class:"text-size-label-lg"},{variant:"title",size:"sm",class:"text-size-title-sm"},{variant:"title",size:"md",class:"text-size-title-md"},{variant:"title",size:"lg",class:"text-size-title-lg"},{variant:"headline",size:"sm",class:"text-size-headline-sm"},{variant:"headline",size:"md",class:"text-size-headline-md"},{variant:"headline",size:"lg",class:"text-size-headline-lg"}],defaultVariants:{variant:"body",size:"md",weight:"normal"}}),T=r1(({variant:t,size:o,weight:e,asChild:r,className:l,children:i,...c})=>D(r?C1:"span",{className:w1({variant:t,size:o,weight:e,className:l}),...c,children:i}));T.displayName="Typography";var y1=r1(({children:t,...o})=>{let[e,r]=L1(!1);return _1(C,{children:[D(v,{asChild:!0,children:D(T,{onMouseEnter:({currentTarget:i})=>{let c=i.scrollWidth>i.clientWidth;r(c),c?i.style.cursor="pointer":i.style.cursor="text"},...o,children:t})}),e&&D(L,{children:t})]})});y1.displayName="TruncatedTypography";import{Slot as M1}from"@radix-ui/react-slot";import{cva as b1,cx as x1}from"@xjur-ui/util";import{jsx as T1}from"react/jsx-runtime";var D1=b1(["outline-none inline-flex items-center justify-center rounded-circle gap-small cursor-pointer disabled:opacity-38 disabled:pointer-events-none transition-colors"],{variants:{size:{md:"py-small_1x-alt px-medium text-size-body-md",sm:"py-small-1x px-small text-size-label-sm",icon_md:"p-small text-size-body-md h-large-4x w-large-4x",icon_sm:"p-small-1x text-size-label-sm h-large-2x w-large-2x"},variant:{primary:"",secondary:"",tertiary:"",destructive:"",outlined:"bg-layer-2-idle border border-border-layer-2 hover:bg-layer-2-hover active:bg-layer-2-pressed"},appearance:{solid:"",ghost:"bg-transparent"}},compoundVariants:[{variant:"primary",appearance:"solid",class:"bg-primary-idle text-neutral-label hover:bg-primary-hover active:bg-primary-pressed"},{variant:"primary",appearance:"ghost",class:"text-primary-idle hover:bg-primary-alt-idle active:bg-primary-alt-pressed"},{variant:"secondary",appearance:"solid",class:"bg-layer-1-hover text-neutral-dark hover:bg-layer-1-pressed active:bg-layer-1-active"},{variant:"secondary",appearance:"ghost",class:"hover:bg-layer-1-hover active:bg-layer-1-pressed"},{variant:"tertiary",appearance:"solid",class:"bg-layer-2-hover text-neutral-dark hover:bg-layer-2-pressed active:bg-layer-2-active"},{variant:"tertiary",appearance:"ghost",class:"hover:bg-layer-2-hover active:bg-layer-2-pressed"},{variant:"destructive",appearance:"solid",class:"bg-danger-idle text-neutral-label hover:bg-danger-hover active:bg-danger-pressed"},{variant:"destructive",appearance:"ghost",class:"text-danger-label-idle hover:bg-danger-alt-idle active:bg-danger-alt-pressed"}],defaultVariants:{size:"md",variant:"primary",appearance:"solid"}});function i1({asChild:t,className:o,variant:e="primary",size:r="md",appearance:l="solid",...i}){return T1(t?M1:"button",{className:x1(D1({variant:e,appearance:l,size:r}),o),...i})}import{jsx as P1}from"react/jsx-runtime";function n1({appearance:t="ghost",variant:o="secondary",onMouseDown:e,onPointerDown:r,...l}){return P1(i1,{appearance:t,size:"icon_md",tabIndex:-1,type:"button",variant:o,onMouseDown:i=>{i.preventDefault(),e?.(i)},onPointerDown:i=>{i.preventDefault(),r?.(i)},...l})}import{jsx as w,jsxs as I1}from"react/jsx-runtime";function ae({name:t,...o}){let{editor:e}=H1(),{shortcut:r}=F(),l=z1({editor:e,selector:y=>y.editor?.isActive(t)??!1}),i=a1(()=>new Map([["bold","format_bold"],["italic","format_italic"],["underline","format_underlined"],["strike","format_strikethrough"],["bulletList","format_list_bulleted"],["orderedList","format_list_numbered"],["undo","undo"],["redo","redo"]]).get(t),[t]),c=a1(()=>new Map([["bold",`Negrito (${r} + B)`],["italic",`It\xE1lico (${r} + I)`],["underline",`Sublinhado (${r} + U)`],["strike",`Tachado (${r} + S)`],["bulletList",`Lista (${r} + Shift + 7)`],["orderedList",`Lista numerada (${r} + Shift + 8)`],["undo",`Desfazer (${r} + Z)`],["redo",`Refazer (${r} + Y)`]]).get(t),[t,r]),W=V1(()=>{if(!e)throw new Error("Editor not found");new Map([["bold",()=>e.chain().focus().toggleBold().run()],["italic",()=>e.chain().focus().toggleItalic().run()],["underline",()=>e.chain().focus().toggleUnderline().run()],["strike",()=>e.chain().focus().toggleStrike().run()],["bulletList",()=>e.chain().focus().toggleBulletList().run()],["orderedList",()=>e.chain().focus().toggleOrderedList().run()],["undo",()=>e.chain().focus().undo().run()],["redo",()=>e.chain().focus().redo().run()]]).get(t)?.()},[e,t]);return I1(C,{delayDuration:500,children:[w(v,{asChild:!0,children:w(n1,{onClick:W,...l&&{appearance:"solid"},...o,children:i&&w(t1,{className:"text-icon-neutral-3",name:i})})}),w(L,{children:c&&w(T,{size:"sm",children:c})})]})}export{ae as ToggleButton};
@@ -1 +1 @@
1
- import{cx as U}from"@xjur-ui/util";import{Heading as qo}from"@tiptap/extension-heading";import{useEditor as Go,EditorContext as Wo}from"@tiptap/react";import{StarterKit as Yo}from"@tiptap/starter-kit";import{cx as Qo}from"@xjur-ui/util";import{createContext as Y,useContext as J,useMemo as Xo,useState as Zo}from"react";import{useState as zo,useCallback as Do}from"react";import{useCurrentEditor as Ro,useEditorState as Lo}from"@tiptap/react";import*as l from"@radix-ui/react-tooltip";import{jsx as f}from"react/jsx-runtime";function _({delayDuration:e=0,...t}){return f(l.Provider,{"data-slot":"tooltip-provider",delayDuration:e,...t})}function p({...e}){return f(_,{children:f(l.Root,{"data-slot":"tooltip",...e})})}import*as x from"@radix-ui/react-tooltip";import{jsx as w}from"react/jsx-runtime";function m({...e}){return w(x.Trigger,{"data-slot":"tooltip-trigger",...e})}import*as d from"@radix-ui/react-tooltip";import{cx as C}from"@xjur-ui/util";import{jsx as g}from"react/jsx-runtime";function c({className:e,sideOffset:t=1,variant:o="simple",children:a,...n}){return g(d.Portal,{children:g(d.Content,{className:C("text-size-body-sm z-99999 text-balance","data-[variant=simple]:bg-alt-2 data-[variant=simple]:text-neutral-label data-[variant=simple]:rounded-small-1x data-[variant=simple]:px-small data-[variant=simple]:py-small-1x","data-[variant=rich]:bg-layer-2-idle data-[variant=rich]:text-neutral-dark data-[variant=rich]:rounded-small data-[variant=rich]:border-border-layer-2 data-[variant=rich]:p-large data-[variant=rich]:border","animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin)",e),"data-slot":"tooltip-content","data-variant":o,sideOffset:t,...n,children:a})})}import{Slot as de}from"@radix-ui/react-slot";import{cva as T,cx as ue}from"@xjur-ui/util";import{jsx as xe}from"react/jsx-runtime";var fe=T(["outline-none inline-flex items-center justify-center rounded-circle gap-small cursor-pointer disabled:opacity-38 disabled:pointer-events-none transition-colors"],{variants:{size:{md:"py-small_1x-alt px-medium text-size-body-md",sm:"py-small-1x px-small text-size-label-sm",icon_md:"p-small text-size-body-md h-large-4x w-large-4x",icon_sm:"p-small-1x text-size-label-sm h-large-2x w-large-2x"},variant:{primary:"",secondary:"",tertiary:"",destructive:"",outlined:"bg-layer-2-idle border border-border-layer-2 hover:bg-layer-2-hover active:bg-layer-2-pressed"},appearance:{solid:"",ghost:"bg-transparent"}},compoundVariants:[{variant:"primary",appearance:"solid",class:"bg-primary-idle text-neutral-label hover:bg-primary-hover active:bg-primary-pressed"},{variant:"primary",appearance:"ghost",class:"text-primary-idle hover:bg-primary-alt-idle active:bg-primary-alt-pressed"},{variant:"secondary",appearance:"solid",class:"bg-layer-1-hover text-neutral-dark hover:bg-layer-1-pressed active:bg-layer-1-active"},{variant:"secondary",appearance:"ghost",class:"hover:bg-layer-1-hover active:bg-layer-1-pressed"},{variant:"tertiary",appearance:"solid",class:"bg-layer-2-hover text-neutral-dark hover:bg-layer-2-pressed active:bg-layer-2-active"},{variant:"tertiary",appearance:"ghost",class:"hover:bg-layer-2-hover active:bg-layer-2-pressed"},{variant:"destructive",appearance:"solid",class:"bg-danger-idle text-neutral-label hover:bg-danger-hover active:bg-danger-pressed"},{variant:"destructive",appearance:"ghost",class:"text-danger-label-idle hover:bg-danger-alt-idle active:bg-danger-alt-pressed"}],defaultVariants:{size:"md",variant:"primary",appearance:"solid"}});import"react";import*as P from"@radix-ui/react-dropdown-menu";import{jsx as he}from"react/jsx-runtime";import*as z from"@radix-ui/react-dropdown-menu";import{jsx as Ce}from"react/jsx-runtime";import*as b from"@radix-ui/react-dropdown-menu";import{cx as Lt}from"@xjur-ui/util";import{Slot as Me}from"@radix-ui/react-slot";import{cx as Le}from"@xjur-ui/util";import{useVirtualizer as Ve}from"@tanstack/react-virtual";import{useRef as Ie}from"react";import{createContext as D}from"react";var v=D({virtualizer:null,enabled:!1});import{jsx as He}from"react/jsx-runtime";import{Slot as Oe}from"@radix-ui/react-slot";import{cx as qe}from"@xjur-ui/util";import{jsx as Ge}from"react/jsx-runtime";import{cx as je}from"@xjur-ui/util";import{Slot as M}from"@radix-ui/react-slot";import{cva as R}from"@xjur-ui/util";import{memo as y,useState as L}from"react";import{jsx as u,jsxs as N}from"react/jsx-runtime";var k=R("",{variants:{variant:{body:"",label:"",title:"",headline:""},size:{"sm-2x":"","sm-1x":"",sm:"",md:"",lg:""},weight:{thin:"font-thin",extraLight:"font-extralight",light:"font-light",normal:"font-normal",medium:"font-medium",semibold:"font-semibold",bold:"font-bold",extraBold:"font-extrabold",black:"font-black"}},compoundVariants:[{variant:"body",size:"sm-1x",class:"text-size-body-sm-1x"},{variant:"body",size:"sm",class:"text-size-body-sm"},{variant:"body",size:"md",class:"text-size-body-md"},{variant:"body",size:"lg",class:"text-size-body-lg"},{variant:"label",size:"sm-2x",class:"text-size-label-sm-2x"},{variant:"label",size:"sm-1x",class:"text-size-label-sm-1x"},{variant:"label",size:"sm",class:"text-size-label-sm"},{variant:"label",size:"md",class:"text-size-label-md"},{variant:"label",size:"lg",class:"text-size-label-lg"},{variant:"title",size:"sm",class:"text-size-title-sm"},{variant:"title",size:"md",class:"text-size-title-md"},{variant:"title",size:"lg",class:"text-size-title-lg"},{variant:"headline",size:"sm",class:"text-size-headline-sm"},{variant:"headline",size:"md",class:"text-size-headline-md"},{variant:"headline",size:"lg",class:"text-size-headline-lg"}],defaultVariants:{variant:"body",size:"md",weight:"normal"}}),i=y(({variant:e,size:t,weight:o,asChild:a,className:n,children:r,...s})=>u(a?M:"span",{className:k({variant:e,size:t,weight:o,className:n}),...s,children:r}));i.displayName="Typography";var V=y(({children:e,...t})=>{let[o,a]=L(!1);return N(p,{children:[u(m,{asChild:!0,children:u(i,{onMouseEnter:({currentTarget:r})=>{let s=r.scrollWidth>r.clientWidth;a(s),s?r.style.cursor="pointer":r.style.cursor="text"},...t,children:e})}),o&&u(c,{children:e})]})});V.displayName="TruncatedTypography";import{jsx as ot}from"react/jsx-runtime";import{Slot as it}from"@radix-ui/react-slot";import{cx as st}from"@xjur-ui/util";import{useContext as pt}from"react";import{jsx as ct}from"react/jsx-runtime";import{Slot as vt}from"@radix-ui/react-slot";import{cx as gt,cva as I}from"@xjur-ui/util";import{jsx as ht}from"react/jsx-runtime";var yt=I(["py-medium px-small flex items-center gap-small rounded-small-1x","bg-layer-2-idle text-neutral-dark","hover:bg-layer-2-hover transition-colors duration-100 ease-out","active:bg-layer-2-pressed"],{variants:{size:{md:"h-large-4x",lg:"h-large-7x"},isActive:{true:"bg-primary-alt-active text-primary-label-active hover:bg-primary-alt-hover active:bg-primary-alt-pressed"}},defaultVariants:{size:"md",isActive:!1}});import{jsx as Nt}from"react/jsx-runtime";import{jsx as Ht}from"react/jsx-runtime";import{jsx as Ft}from"react/jsx-runtime";import{cx as Xt}from"@xjur-ui/util";import"react";import*as O from"@radix-ui/react-separator";import{cx as Wt}from"@xjur-ui/util";import{jsx as Yt}from"react/jsx-runtime";import{jsx as oo}from"react/jsx-runtime";import{cx as yo}from"@xjur-ui/util";import{jsx as ho}from"react/jsx-runtime";import{jsx as Ho,jsxs as Ao}from"react/jsx-runtime";import{jsx as tr}from"react/jsx-runtime";var Q=Y({isFullScreen:!1,setIsFullScreen:()=>{},state:"normal"});function h(){let e=J(Q);if(!e)throw new Error("useTextAreaRootContext must be used within a TextAreaRoot");return e}import{jsx as X}from"react/jsx-runtime";function ir({className:e,...t}){let{state:o}=h();return o==="disabled"?null:X("div",{className:U("h-large-4x gap-small-1x h-large-6px scrollbar-hide flex flex-nowrap items-center overflow-x-auto overflow-y-hidden",e),"data-slot":"text-area-toolbar",...t})}export{ir as TextAreaToolbar};
1
+ import{cx as Y}from"@xjur-ui/util";import{Heading as ur}from"@tiptap/extension-heading";import{useEditor as hr,EditorContext as Cr}from"@tiptap/react";import{StarterKit as vr}from"@tiptap/starter-kit";import{cx as xr}from"@xjur-ui/util";import{createContext as q,useContext as $,useMemo as yr,useState as Lr}from"react";import{useState as J1,useCallback as Q1}from"react";import{useCurrentEditor as er,useEditorState as tr}from"@tiptap/react";import*as l from"@radix-ui/react-tooltip";import{jsx as f}from"react/jsx-runtime";function w({delayDuration:e=0,...t}){return f(l.Provider,{"data-slot":"tooltip-provider",delayDuration:e,...t})}function p({...e}){return f(w,{children:f(l.Root,{"data-slot":"tooltip",...e})})}import*as C from"@radix-ui/react-tooltip";import{jsx as y}from"react/jsx-runtime";function d({...e}){return y(C.Trigger,{"data-slot":"tooltip-trigger",...e})}import*as m from"@radix-ui/react-tooltip";import{cx as L}from"@xjur-ui/util";import{jsx as g}from"react/jsx-runtime";function c({className:e,sideOffset:t=1,variant:o="simple",children:i,...a}){return g(m.Portal,{children:g(m.Content,{className:L("text-size-body-sm z-99999 text-balance","data-[variant=simple]:bg-alt-2 data-[variant=simple]:text-neutral-label data-[variant=simple]:rounded-small-1x data-[variant=simple]:px-small data-[variant=simple]:py-small-1x","data-[variant=rich]:bg-layer-2-idle data-[variant=rich]:text-neutral-dark data-[variant=rich]:rounded-small data-[variant=rich]:border-border-layer-2 data-[variant=rich]:p-large data-[variant=rich]:border","animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin)",e),"data-slot":"tooltip-content","data-variant":o,sideOffset:t,...a,children:i})})}import{Slot as me}from"@radix-ui/react-slot";import{cva as M,cx as ue}from"@xjur-ui/util";import{jsx as Ce}from"react/jsx-runtime";var fe=M(["outline-none inline-flex items-center justify-center rounded-circle gap-small cursor-pointer disabled:opacity-38 disabled:pointer-events-none transition-colors"],{variants:{size:{md:"py-small_1x-alt px-medium text-size-body-md",sm:"py-small-1x px-small text-size-label-sm",icon_md:"p-small text-size-body-md h-large-4x w-large-4x",icon_sm:"p-small-1x text-size-label-sm h-large-2x w-large-2x"},variant:{primary:"",secondary:"",tertiary:"",destructive:"",outlined:"bg-layer-2-idle border border-border-layer-2 hover:bg-layer-2-hover active:bg-layer-2-pressed"},appearance:{solid:"",ghost:"bg-transparent"}},compoundVariants:[{variant:"primary",appearance:"solid",class:"bg-primary-idle text-neutral-label hover:bg-primary-hover active:bg-primary-pressed"},{variant:"primary",appearance:"ghost",class:"text-primary-idle hover:bg-primary-alt-idle active:bg-primary-alt-pressed"},{variant:"secondary",appearance:"solid",class:"bg-layer-1-hover text-neutral-dark hover:bg-layer-1-pressed active:bg-layer-1-active"},{variant:"secondary",appearance:"ghost",class:"hover:bg-layer-1-hover active:bg-layer-1-pressed"},{variant:"tertiary",appearance:"solid",class:"bg-layer-2-hover text-neutral-dark hover:bg-layer-2-pressed active:bg-layer-2-active"},{variant:"tertiary",appearance:"ghost",class:"hover:bg-layer-2-hover active:bg-layer-2-pressed"},{variant:"destructive",appearance:"solid",class:"bg-danger-idle text-neutral-label hover:bg-danger-hover active:bg-danger-pressed"},{variant:"destructive",appearance:"ghost",class:"text-danger-label-idle hover:bg-danger-alt-idle active:bg-danger-alt-pressed"}],defaultVariants:{size:"md",variant:"primary",appearance:"solid"}});import"react";import*as b from"@radix-ui/react-dropdown-menu";import{jsx as xe}from"react/jsx-runtime";import*as D from"@radix-ui/react-dropdown-menu";import{jsx as Le}from"react/jsx-runtime";import*as k from"@radix-ui/react-dropdown-menu";import{cx as Vt}from"@xjur-ui/util";import{Slot as Pe}from"@radix-ui/react-slot";import{cx as Ve}from"@xjur-ui/util";import{useVirtualizer as ze}from"@tanstack/react-virtual";import{useRef as Re}from"react";import{createContext as _}from"react";var h=_({virtualizer:null,enabled:!1});import{jsx as Ze}from"react/jsx-runtime";import{Slot as Se}from"@radix-ui/react-slot";import{cx as Fe}from"@xjur-ui/util";import{jsx as Oe}from"react/jsx-runtime";import{cx as Ue}from"@xjur-ui/util";import{Slot as P}from"@radix-ui/react-slot";import{cva as T}from"@xjur-ui/util";import{memo as v,useState as V}from"react";import{jsx as u,jsxs as I}from"react/jsx-runtime";var H=T("",{variants:{variant:{body:"",label:"",title:"",headline:""},size:{"sm-2x":"","sm-1x":"",sm:"",md:"",lg:""},weight:{thin:"font-thin",extraLight:"font-extralight",light:"font-light",normal:"font-normal",medium:"font-medium",semibold:"font-semibold",bold:"font-bold",extraBold:"font-extrabold",black:"font-black"}},compoundVariants:[{variant:"body",size:"sm-1x",class:"text-size-body-sm-1x"},{variant:"body",size:"sm",class:"text-size-body-sm"},{variant:"body",size:"md",class:"text-size-body-md"},{variant:"body",size:"lg",class:"text-size-body-lg"},{variant:"label",size:"sm-2x",class:"text-size-label-sm-2x"},{variant:"label",size:"sm-1x",class:"text-size-label-sm-1x"},{variant:"label",size:"sm",class:"text-size-label-sm"},{variant:"label",size:"md",class:"text-size-label-md"},{variant:"label",size:"lg",class:"text-size-label-lg"},{variant:"title",size:"sm",class:"text-size-title-sm"},{variant:"title",size:"md",class:"text-size-title-md"},{variant:"title",size:"lg",class:"text-size-title-lg"},{variant:"headline",size:"sm",class:"text-size-headline-sm"},{variant:"headline",size:"md",class:"text-size-headline-md"},{variant:"headline",size:"lg",class:"text-size-headline-lg"}],defaultVariants:{variant:"body",size:"md",weight:"normal"}}),n=v(({variant:e,size:t,weight:o,asChild:i,className:a,children:r,...s})=>u(i?P:"span",{className:H({variant:e,size:t,weight:o,className:a}),...s,children:r}));n.displayName="Typography";var z=v(({children:e,...t})=>{let[o,i]=V(!1);return I(p,{children:[u(d,{asChild:!0,children:u(n,{onMouseEnter:({currentTarget:r})=>{let s=r.scrollWidth>r.clientWidth;i(s),s?r.style.cursor="pointer":r.style.cursor="text"},...t,children:e})}),o&&u(c,{children:e})]})});z.displayName="TruncatedTypography";import{jsx as ot}from"react/jsx-runtime";import{Slot as nt}from"@radix-ui/react-slot";import{cx as st}from"@xjur-ui/util";import{useContext as pt}from"react";import{jsx as ct}from"react/jsx-runtime";import{Slot as ht}from"@radix-ui/react-slot";import{cx as gt,cva as R}from"@xjur-ui/util";import{jsx as xt}from"react/jsx-runtime";var vt=R(["py-medium px-small flex items-center gap-small rounded-small-1x","bg-layer-2-idle text-neutral-dark","hover:bg-layer-2-hover transition-colors duration-100 ease-out","active:bg-layer-2-pressed"],{variants:{size:{md:"h-large-4x",lg:"h-large-7x"},isActive:{true:"bg-primary-alt-active text-primary-label-active hover:bg-primary-alt-hover active:bg-primary-alt-pressed"}},defaultVariants:{size:"md",isActive:!1}});import{jsx as It}from"react/jsx-runtime";import{jsx as Zt}from"react/jsx-runtime";import{jsx as jt}from"react/jsx-runtime";import{cx as Jt}from"@xjur-ui/util";import"react";import*as S from"@radix-ui/react-separator";import{cx as Gt}from"@xjur-ui/util";import{jsx as qt}from"react/jsx-runtime";import{jsx as oo}from"react/jsx-runtime";import{cx as j1}from"@xjur-ui/util";import{jsx as go,jsxs as vo}from"react/jsx-runtime";import{jsx as wo,jsxs as yo}from"react/jsx-runtime";import{jsx as bo,jsxs as Do}from"react/jsx-runtime";import{jsx as To,jsxs as Vo}from"react/jsx-runtime";import{jsx as Io,jsxs as Ro}from"react/jsx-runtime";import{jsx as Zo,jsxs as Ao}from"react/jsx-runtime";import{jsx as jo,jsxs as Fo}from"react/jsx-runtime";import{jsx as Go,jsxs as Xo}from"react/jsx-runtime";import{jsx as Ko,jsxs as Yo}from"react/jsx-runtime";import{jsx as Uo,jsxs as e1}from"react/jsx-runtime";import{jsx as r1,jsxs as i1}from"react/jsx-runtime";import{jsx as s1,jsxs as l1}from"react/jsx-runtime";import{jsx as E1}from"react/jsx-runtime";import{jsx as G1}from"react/jsx-runtime";import{jsx as lr,jsxs as pr}from"react/jsx-runtime";import{jsx as Dr}from"react/jsx-runtime";var K=q({isFullScreen:!1,setIsFullScreen:()=>{},state:"normal"});function x(){let e=$(K);if(!e)throw new Error("useTextAreaRootContext must be used within a TextAreaRoot");return e}import{jsx as J}from"react/jsx-runtime";function Vr({className:e,...t}){let{state:o}=x();return o==="disabled"?null:J("div",{className:Y("h-large-4x gap-small-1x h-large-6px scrollbar-hide flex flex-nowrap items-center overflow-x-auto overflow-y-hidden",e),"data-slot":"text-area-toolbar",...t})}export{Vr as TextAreaToolbar};