@xjur-ui/react 3.0.9 → 3.1.1

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 (84) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist/components/accordion/accordion-trigger.js +1 -1
  3. package/dist/components/accordion/index.js +1 -1
  4. package/dist/components/breadcrumb/breadcrumb-ellipsis.js +1 -1
  5. package/dist/components/breadcrumb/breadcrumb-separator.js +1 -1
  6. package/dist/components/breadcrumb/index.js +1 -1
  7. package/dist/components/carousel/carousel-action.js +1 -1
  8. package/dist/components/chip/chip-close.js +1 -1
  9. package/dist/components/chip/chip-icon.js +1 -1
  10. package/dist/components/controls/checkbox.js +1 -1
  11. package/dist/components/controls/date-picker/index.js +1 -1
  12. package/dist/components/controls/input/index.js +1 -1
  13. package/dist/components/controls/input/input-numeric-stepper.js +1 -1
  14. package/dist/components/controls/progress/index.js +1 -1
  15. package/dist/components/controls/progress.js +1 -1
  16. package/dist/components/controls/select/select-icon.js +1 -1
  17. package/dist/components/controls/text-area/text-area-fullscreen-button.js +1 -1
  18. package/dist/components/controls/text-area/text-area-root.js +1 -1
  19. package/dist/components/controls/text-area/text-area-toggle-button.js +1 -1
  20. package/dist/components/controls/text-area/text-area-toolbar.js +1 -1
  21. package/dist/components/custom/andamento-timeline/andamento-timeline.js +1 -1
  22. package/dist/components/custom/andamento-timeline/index.js +1 -1
  23. package/dist/components/custom/centro-custo/centro-custo-add-button.js +1 -1
  24. package/dist/components/custom/centro-custo/centro-custo-close-button.js +1 -1
  25. package/dist/components/custom/centro-custo/centro-custo-footer.js +1 -1
  26. package/dist/components/custom/centro-custo/centro-custo-header.js +1 -1
  27. package/dist/components/custom/centro-custo/centro-custo-trigger.js +1 -1
  28. package/dist/components/custom/centro-custo/centro-custo.js +1 -1
  29. package/dist/components/custom/centro-custo/index.js +1 -1
  30. package/dist/components/custom/empresa/empresa-add-button.js +1 -1
  31. package/dist/components/custom/empresa/empresa-body.js +1 -1
  32. package/dist/components/custom/empresa/empresa-close-button.js +1 -1
  33. package/dist/components/custom/empresa/empresa-content.js +1 -1
  34. package/dist/components/custom/empresa/empresa-footer.js +1 -1
  35. package/dist/components/custom/empresa/empresa-table.js +1 -1
  36. package/dist/components/custom/empresa/empresa-trigger.js +1 -1
  37. package/dist/components/custom/empresa/empresa.js +1 -1
  38. package/dist/components/custom/lista-nivelada/hierarchical-navigation.js +1 -1
  39. package/dist/components/custom/lista-nivelada/index.js +1 -1
  40. package/dist/components/custom/lista-nivelada/lista-nivelada-body.js +1 -1
  41. package/dist/components/custom/lista-nivelada/lista-nivelada-content.js +1 -1
  42. package/dist/components/custom/lista-nivelada/lista-nivelada-footer.js +1 -1
  43. package/dist/components/custom/lista-nivelada/lista-nivelada-trigger.js +1 -1
  44. package/dist/components/custom/lista-nivelada/navigation-button.js +1 -1
  45. package/dist/components/custom/lista-nivelada/navigation-grid.js +1 -1
  46. package/dist/components/custom/pessoa/index.js +1 -1
  47. package/dist/components/custom/pessoa/pessoa-add-button.js +1 -1
  48. package/dist/components/custom/pessoa/pessoa-body.js +1 -1
  49. package/dist/components/custom/pessoa/pessoa-close-button.js +1 -1
  50. package/dist/components/custom/pessoa/pessoa-content.js +1 -1
  51. package/dist/components/custom/pessoa/pessoa-footer.js +1 -1
  52. package/dist/components/custom/pessoa/pessoa-header.js +1 -1
  53. package/dist/components/custom/pessoa/pessoa-trigger.js +1 -1
  54. package/dist/components/dialog/dialog-content.js +1 -1
  55. package/dist/components/full-calendar/calendar-add-event.js +1 -1
  56. package/dist/components/full-calendar/calendar-month-view.js +1 -1
  57. package/dist/components/full-calendar/index.js +1 -1
  58. package/dist/components/icon/index.js +1 -1
  59. package/dist/components/sheet/index.js +1 -1
  60. package/dist/components/sheet/sheet-close.js +1 -1
  61. package/dist/components/table/table-row.js +1 -1
  62. package/dist/components/table/table-sort.js +1 -1
  63. package/dist/components/tag/tag-close.js +1 -1
  64. package/dist/components/tag/tag-icon.js +1 -1
  65. package/dist/components/timeline-card/index.js +1 -1
  66. package/dist/components/timeline-card/timeline-card.js +1 -1
  67. package/dist/components/upload/index.d.ts +6 -77
  68. package/dist/components/upload/index.js +1 -1
  69. package/dist/components/upload/upload-content.d.ts +2 -0
  70. package/dist/components/upload/upload-content.js +1 -0
  71. package/dist/components/upload/upload-description.d.ts +3 -0
  72. package/dist/components/upload/upload-description.js +1 -0
  73. package/dist/components/upload/upload-icon.d.ts +3 -0
  74. package/dist/components/upload/upload-icon.js +1 -0
  75. package/dist/components/upload/upload-root.d.ts +9 -0
  76. package/dist/components/upload/upload-root.js +1 -0
  77. package/dist/components/upload/upload-title.d.ts +3 -0
  78. package/dist/components/upload/upload-title.js +1 -0
  79. package/dist/components/upload/upload-trigger.d.ts +9 -0
  80. package/dist/components/upload/upload-trigger.js +1 -0
  81. package/dist/index.css +1 -1
  82. package/dist/resources/icons.d.ts +1 -1
  83. package/dist/resources/icons.js +1 -1
  84. package/package.json +1 -1
@@ -1 +1 @@
1
- import{twMerge as w}from"@xjur-ui/util";import{useCallback as x}from"react";import{Slot as d}from"@radix-ui/react-slot";import{cva as u,cx as m}from"@xjur-ui/util";import{jsx as f}from"react/jsx-runtime";var _=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 i({asChild:e,className:t,variant:a="primary",size:r="md",appearance:s="solid",...o}){return f(e?d:"button",{className:m(_({variant:a,appearance:s,size:r}),t),...o})}import{cx as v}from"@xjur-ui/util";import{jsx as b}from"react/jsx-runtime";function l({className:e,filled:t=!1,name:a,...r}){return b("span",{...r,className:v("material-symbols-outlined","text-size-body-lg select-none",e),style:{fontVariationSettings:`'FILL' ${t?1:0}, 'wght' 600, 'GRAD' 0, 'opsz' 20`,...r.style},children:a})}import{createContext as y,useCallback as E,useContext as g,useState as N,useMemo as D}from"react";import{jsx as q}from"react/jsx-runtime";var h=y({});function c(){let e=g(h);if(!e)throw new Error("usePessoaContext must be used within a PessoaProvider");return{...e,pessoas:e.pessoas,setPessoas:e.setPessoas}}import{jsx as P,jsxs as C}from"react/jsx-runtime";function Q({appearance:e="ghost",onClick:t,className:a,children:r="Adicionar",...s}){let{changeCurrentView:o}=c(),n=x(p=>{o("form"),t?.(p)},[o,t]);return C(i,{appearance:e,className:w("w-fit",a),onClick:n,...s,children:[r,P(l,{name:"add"})]})}export{Q as PessoaAddButton};
1
+ import{twMerge as w}from"@xjur-ui/util";import{useCallback as x}from"react";import{Slot as d}from"@radix-ui/react-slot";import{cva as u,cx as m}from"@xjur-ui/util";import{jsx as b}from"react/jsx-runtime";var _=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 i({asChild:e,className:t,variant:a="primary",size:r="md",appearance:s="solid",...o}){return b(e?d:"button",{className:m(_({variant:a,appearance:s,size:r}),t),...o})}import{cx as f}from"@xjur-ui/util";import{jsx as v}from"react/jsx-runtime";function l({className:e,filled:t=!1,name:a,...r}){return v("span",{...r,className:f("material-symbols-outlined","text-size-body-lg select-none",e),style:{fontVariationSettings:`'FILL' ${t?1:0}, 'wght' 600, 'GRAD' 0, 'opsz' 20`,...r.style},children:a})}import{createContext as y,useCallback as E,useContext as g,useState as N,useMemo as D}from"react";import{jsx as q}from"react/jsx-runtime";var h=y({});function c(){let e=g(h);if(!e)throw new Error("usePessoaContext must be used within a PessoaProvider");return{...e,pessoas:e.pessoas,setPessoas:e.setPessoas}}import{jsx as P,jsxs as C}from"react/jsx-runtime";function Q({appearance:e="ghost",onClick:t,className:a,children:r="Adicionar",...s}){let{changeCurrentView:o}=c(),n=x(p=>{o("form"),t?.(p)},[o,t]);return C(i,{appearance:e,className:w("w-fit",a),onClick:n,...s,children:[r,P(l,{name:"add"})]})}export{Q as PessoaAddButton};
@@ -1 +1 @@
1
- import{twMerge as b}from"@xjur-ui/util";import"react";import*as s from"@radix-ui/react-dialog";import{jsx as S}from"react/jsx-runtime";import*as d from"@radix-ui/react-dialog";import{tv as O}from"@xjur-ui/util";import*as i from"@radix-ui/react-dialog";import{jsx as R}from"react/jsx-runtime";import*as n from"@radix-ui/react-dialog";import{cx as z}from"@xjur-ui/util";import{jsx as N}from"react/jsx-runtime";import{jsx as H,jsxs as L}from"react/jsx-runtime";import*as c from"@radix-ui/react-dialog";import{jsx as G}from"react/jsx-runtime";import{cx as K}from"@xjur-ui/util";import*as m from"@radix-ui/react-dialog";import{jsx as U}from"react/jsx-runtime";import{cx as Y}from"@xjur-ui/util";import{jsx as j}from"react/jsx-runtime";import*as h from"@radix-ui/react-dialog";import{Slot as oe}from"@radix-ui/react-slot";import{cva as f,cx as ae}from"@xjur-ui/util";import{jsx as ne}from"react/jsx-runtime";var se=f(["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{cx as me}from"@xjur-ui/util";import{jsx as he}from"react/jsx-runtime";import{jsx as Pe}from"react/jsx-runtime";import{cx as Ce}from"@xjur-ui/util";import{jsx as Re}from"react/jsx-runtime";import{cx as u}from"@xjur-ui/util";import{jsx as v}from"react/jsx-runtime";function o({className:e,...t}){return v("div",{className:u("px-large-2x h-full",e),...t})}import{createContext as _,useCallback as Ye,useContext as y,useState as Ze,useMemo as je}from"react";import{jsx as tt}from"react/jsx-runtime";var g=_({});function r(){let e=y(g);if(!e)throw new Error("usePessoaContext must be used within a PessoaProvider");return{...e,pessoas:e.pessoas,setPessoas:e.setPessoas}}import{jsx as x}from"react/jsx-runtime";function it({className:e,...t}){let{currentView:a}=r();return x(o,{className:b("gap-large-2x data-[view=form]:!px-none flex flex-col",e),"data-view":a,...t})}export{it as PessoaBody};
1
+ import{twMerge as b}from"@xjur-ui/util";import"react";import*as i from"@radix-ui/react-dialog";import{jsx as S}from"react/jsx-runtime";import*as d from"@radix-ui/react-dialog";import{tv as O}from"@xjur-ui/util";import*as s from"@radix-ui/react-dialog";import{jsx as R}from"react/jsx-runtime";import*as n from"@radix-ui/react-dialog";import{cx as z}from"@xjur-ui/util";import{jsx as N}from"react/jsx-runtime";import{jsx as H,jsxs as L}from"react/jsx-runtime";import*as c from"@radix-ui/react-dialog";import{jsx as G}from"react/jsx-runtime";import{cx as K}from"@xjur-ui/util";import*as m from"@radix-ui/react-dialog";import{jsx as U}from"react/jsx-runtime";import{cx as Y}from"@xjur-ui/util";import{jsx as j}from"react/jsx-runtime";import*as h from"@radix-ui/react-dialog";import{Slot as oe}from"@radix-ui/react-slot";import{cva as f,cx as ae}from"@xjur-ui/util";import{jsx as ne}from"react/jsx-runtime";var ie=f(["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{cx as me}from"@xjur-ui/util";import{jsx as he}from"react/jsx-runtime";import{jsx as Pe}from"react/jsx-runtime";import{cx as Ce}from"@xjur-ui/util";import{jsx as Re}from"react/jsx-runtime";import{cx as u}from"@xjur-ui/util";import{jsx as v}from"react/jsx-runtime";function o({className:e,...t}){return v("div",{className:u("px-large-2x h-full",e),...t})}import{createContext as _,useCallback as Ye,useContext as y,useState as Ze,useMemo as je}from"react";import{jsx as tt}from"react/jsx-runtime";var g=_({});function r(){let e=y(g);if(!e)throw new Error("usePessoaContext must be used within a PessoaProvider");return{...e,pessoas:e.pessoas,setPessoas:e.setPessoas}}import{jsx as x}from"react/jsx-runtime";function st({className:e,...t}){let{currentView:a}=r();return x(o,{className:b("gap-large-2x data-[view=form]:!px-none flex flex-col",e),"data-view":a,...t})}export{st as PessoaBody};
@@ -1 +1 @@
1
- import"react";import*as c from"@radix-ui/react-dialog";import{jsx as B}from"react/jsx-runtime";import*as u from"@radix-ui/react-dialog";import{tv as G}from"@xjur-ui/util";import*as h from"@radix-ui/react-dialog";import{jsx as V}from"react/jsx-runtime";import*as f from"@radix-ui/react-dialog";import{cx as q}from"@xjur-ui/util";import{jsx as L}from"react/jsx-runtime";import{jsx as K,jsxs as M}from"react/jsx-runtime";import*as y from"@radix-ui/react-dialog";import{jsx as W}from"react/jsx-runtime";import{cx as Z}from"@xjur-ui/util";import*as b from"@radix-ui/react-dialog";import{jsx as ee}from"react/jsx-runtime";import{cx as re}from"@xjur-ui/util";import{jsx as ie}from"react/jsx-runtime";import*as l from"@radix-ui/react-dialog";import{Slot as g}from"@radix-ui/react-slot";import{cva as x,cx as P}from"@xjur-ui/util";import{jsx as w}from"react/jsx-runtime";var S=x(["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 r({asChild:e,className:t,variant:a="primary",size:o="md",appearance:d="solid",...m}){return w(e?g:"button",{className:P(S({variant:a,appearance:d,size:o}),t),...m})}import{cx as C}from"@xjur-ui/util";import{jsx as k}from"react/jsx-runtime";function s({className:e,filled:t=!1,name:a,...o}){return k("span",{...o,className:C("material-symbols-outlined","text-size-body-lg select-none",e),style:{fontVariationSettings:`'FILL' ${t?1:0}, 'wght' 600, 'GRAD' 0, 'opsz' 20`,...o.style},children:a})}import{jsx as i}from"react/jsx-runtime";function n({children:e=i(r,{appearance:"ghost",size:"icon_md",variant:"tertiary",children:i(s,{className:"text-icon-neutral-3",name:"close"})}),...t}){return i(l.Close,{"data-slot":"sheet-close",...t,children:e})}import{cx as Pe}from"@xjur-ui/util";import{jsx as we}from"react/jsx-runtime";import{cx as Re}from"@xjur-ui/util";import{jsx as Te}from"react/jsx-runtime";import{jsx as p}from"react/jsx-runtime";function Ye({...e}){return p(n,{...e,asChild:!0,children:p(r,{appearance:"ghost",children:"Cancelar"})})}export{Ye as PessoaCloseButton};
1
+ import"react";import*as c from"@radix-ui/react-dialog";import{jsx as B}from"react/jsx-runtime";import*as u from"@radix-ui/react-dialog";import{tv as G}from"@xjur-ui/util";import*as h from"@radix-ui/react-dialog";import{jsx as V}from"react/jsx-runtime";import*as f from"@radix-ui/react-dialog";import{cx as q}from"@xjur-ui/util";import{jsx as L}from"react/jsx-runtime";import{jsx as K,jsxs as M}from"react/jsx-runtime";import*as y from"@radix-ui/react-dialog";import{jsx as W}from"react/jsx-runtime";import{cx as Z}from"@xjur-ui/util";import*as b from"@radix-ui/react-dialog";import{jsx as ee}from"react/jsx-runtime";import{cx as re}from"@xjur-ui/util";import{jsx as ie}from"react/jsx-runtime";import*as l from"@radix-ui/react-dialog";import{Slot as g}from"@radix-ui/react-slot";import{cva as x,cx as P}from"@xjur-ui/util";import{jsx as w}from"react/jsx-runtime";var S=x(["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 r({asChild:e,className:t,variant:a="primary",size:o="md",appearance:d="solid",...m}){return w(e?g:"button",{className:P(S({variant:a,appearance:d,size:o}),t),...m})}import{cx as C}from"@xjur-ui/util";import{jsx as k}from"react/jsx-runtime";function n({className:e,filled:t=!1,name:a,...o}){return k("span",{...o,className:C("material-symbols-outlined","text-size-body-lg select-none",e),style:{fontVariationSettings:`'FILL' ${t?1:0}, 'wght' 600, 'GRAD' 0, 'opsz' 20`,...o.style},children:a})}import{jsx as i}from"react/jsx-runtime";function s({children:e=i(r,{appearance:"ghost",size:"icon_md",variant:"tertiary",children:i(n,{className:"text-icon-neutral-3",name:"close"})}),...t}){return i(l.Close,{"data-slot":"sheet-close",...t,children:e})}import{cx as Pe}from"@xjur-ui/util";import{jsx as we}from"react/jsx-runtime";import{cx as Re}from"@xjur-ui/util";import{jsx as Te}from"react/jsx-runtime";import{jsx as p}from"react/jsx-runtime";function Ye({...e}){return p(s,{...e,asChild:!0,children:p(r,{appearance:"ghost",children:"Cancelar"})})}export{Ye as PessoaCloseButton};
@@ -1 +1 @@
1
- import{twMerge as R}from"@xjur-ui/util";import"react";import*as h from"@radix-ui/react-dialog";import{jsx as I}from"react/jsx-runtime";import*as c from"@radix-ui/react-dialog";import{tv as g}from"@xjur-ui/util";import*as l from"@radix-ui/react-dialog";import{jsx as u}from"react/jsx-runtime";function s({...e}){return u(l.Portal,{"data-slot":"sheet-portal",...e})}import*as p from"@radix-ui/react-dialog";import{cx as v}from"@xjur-ui/util";import{jsx as _}from"react/jsx-runtime";function i({className:e,...t}){return _(p.Overlay,{className:v("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50",e),"data-slot":"sheet-overlay",...t})}import{jsx as d,jsxs as y}from"react/jsx-runtime";function n({className:e,children:t,side:o="right",overlay:r=!1,...a}){let f=g({base:["border-border-layer-2 bg-layer-2-idle shadow-elevation-2 fixed z-50 flex flex-col gap-medium","data-[state=open]:animate-in data-[state=closed]:animate-out transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500"],variants:{side:{right:"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full border-l sm:max-w-sm",left:"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full border-r sm:max-w-sm",top:"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",bottom:"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t"}},defaultVariants:{side:"right"}});return y(s,{children:[r&&d(i,{}),d(c.Content,{className:f({side:o,className:e}),"data-slot":"sheet-content",...a,children:t})]})}import*as b from"@radix-ui/react-dialog";import{jsx as $}from"react/jsx-runtime";import{cx as Q}from"@xjur-ui/util";import*as x from"@radix-ui/react-dialog";import{jsx as W}from"react/jsx-runtime";import{cx as Z}from"@xjur-ui/util";import{jsx as ee}from"react/jsx-runtime";import*as w from"@radix-ui/react-dialog";import{Slot as re}from"@radix-ui/react-slot";import{cva as P,cx as se}from"@xjur-ui/util";import{jsx as le}from"react/jsx-runtime";var ie=P(["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{cx as fe}from"@xjur-ui/util";import{jsx as ue}from"react/jsx-runtime";import{jsx as we}from"react/jsx-runtime";import{cx as ke}from"@xjur-ui/util";import{jsx as Ve}from"react/jsx-runtime";import{cx as Ie}from"@xjur-ui/util";import{jsx as Fe}from"react/jsx-runtime";import{createContext as S,useCallback as et,useContext as C,useState as tt,useMemo as ot}from"react";import{jsx as at}from"react/jsx-runtime";var k=S({});function m(){let e=C(k);if(!e)throw new Error("usePessoaContext must be used within a PessoaProvider");return{...e,pessoas:e.pessoas,setPessoas:e.setPessoas}}import{jsx as V}from"react/jsx-runtime";function pt({className:e,side:t="right",...o}){let{currentView:r,isFullscreen:a}=m();return V(n,{className:R("min-w-[900px] data-[fullscreen=true]:min-w-full",e),"data-fullscreen":a,"data-view":r,side:t,...o})}export{pt as PessoaContent};
1
+ import{twMerge as R}from"@xjur-ui/util";import"react";import*as h from"@radix-ui/react-dialog";import{jsx as I}from"react/jsx-runtime";import*as c from"@radix-ui/react-dialog";import{tv as g}from"@xjur-ui/util";import*as l from"@radix-ui/react-dialog";import{jsx as u}from"react/jsx-runtime";function i({...e}){return u(l.Portal,{"data-slot":"sheet-portal",...e})}import*as p from"@radix-ui/react-dialog";import{cx as v}from"@xjur-ui/util";import{jsx as _}from"react/jsx-runtime";function s({className:e,...t}){return _(p.Overlay,{className:v("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50",e),"data-slot":"sheet-overlay",...t})}import{jsx as d,jsxs as y}from"react/jsx-runtime";function n({className:e,children:t,side:o="right",overlay:r=!1,...a}){let f=g({base:["border-border-layer-2 bg-layer-2-idle shadow-elevation-2 fixed z-50 flex flex-col gap-medium","data-[state=open]:animate-in data-[state=closed]:animate-out transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500"],variants:{side:{right:"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full border-l sm:max-w-sm",left:"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full border-r sm:max-w-sm",top:"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",bottom:"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t"}},defaultVariants:{side:"right"}});return y(i,{children:[r&&d(s,{}),d(c.Content,{className:f({side:o,className:e}),"data-slot":"sheet-content",...a,children:t})]})}import*as b from"@radix-ui/react-dialog";import{jsx as $}from"react/jsx-runtime";import{cx as Q}from"@xjur-ui/util";import*as x from"@radix-ui/react-dialog";import{jsx as W}from"react/jsx-runtime";import{cx as Z}from"@xjur-ui/util";import{jsx as ee}from"react/jsx-runtime";import*as w from"@radix-ui/react-dialog";import{Slot as re}from"@radix-ui/react-slot";import{cva as P,cx as ie}from"@xjur-ui/util";import{jsx as le}from"react/jsx-runtime";var se=P(["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{cx as fe}from"@xjur-ui/util";import{jsx as ue}from"react/jsx-runtime";import{jsx as we}from"react/jsx-runtime";import{cx as ke}from"@xjur-ui/util";import{jsx as Ve}from"react/jsx-runtime";import{cx as Ie}from"@xjur-ui/util";import{jsx as Fe}from"react/jsx-runtime";import{createContext as S,useCallback as et,useContext as C,useState as tt,useMemo as ot}from"react";import{jsx as at}from"react/jsx-runtime";var k=S({});function m(){let e=C(k);if(!e)throw new Error("usePessoaContext must be used within a PessoaProvider");return{...e,pessoas:e.pessoas,setPessoas:e.setPessoas}}import{jsx as V}from"react/jsx-runtime";function pt({className:e,side:t="right",...o}){let{currentView:r,isFullscreen:a}=m();return V(n,{className:R("min-w-[900px] data-[fullscreen=true]:min-w-full",e),"data-fullscreen":a,"data-view":r,side:t,...o})}export{pt as PessoaContent};
@@ -1 +1 @@
1
- import{twMerge as v}from"@xjur-ui/util";import"react";import*as r from"@radix-ui/react-dialog";import{jsx as b}from"react/jsx-runtime";import*as l from"@radix-ui/react-dialog";import{tv as N}from"@xjur-ui/util";import*as a from"@radix-ui/react-dialog";import{jsx as P}from"react/jsx-runtime";import*as i from"@radix-ui/react-dialog";import{cx as C}from"@xjur-ui/util";import{jsx as R}from"react/jsx-runtime";import{jsx as F,jsxs as O}from"react/jsx-runtime";import*as p from"@radix-ui/react-dialog";import{jsx as L}from"react/jsx-runtime";import{cx as G}from"@xjur-ui/util";import*as d from"@radix-ui/react-dialog";import{jsx as $}from"react/jsx-runtime";import{cx as K}from"@xjur-ui/util";import{jsx as U}from"react/jsx-runtime";import*as c from"@radix-ui/react-dialog";import{Slot as Y}from"@radix-ui/react-slot";import{cva as m,cx as j}from"@xjur-ui/util";import{jsx as oe}from"react/jsx-runtime";var ee=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{cx as ne}from"@xjur-ui/util";import{jsx as pe}from"react/jsx-runtime";import{jsx as ye}from"react/jsx-runtime";import{cx as f}from"@xjur-ui/util";import{jsx as h}from"react/jsx-runtime";function o({className:e,...t}){return h("div",{className:f("py-large px-large-2x border-t-border-layer-2 mt-auto border-t",e),"data-slot":"sheet-footer",...t})}import{cx as Se}from"@xjur-ui/util";import{jsx as Ce}from"react/jsx-runtime";import{jsx as _}from"react/jsx-runtime";function Qe({className:e,...t}){return _(o,{className:v("flex items-center justify-between",e),...t})}export{Qe as PessoaFooter};
1
+ import{twMerge as _}from"@xjur-ui/util";import"react";import*as r from"@radix-ui/react-dialog";import{jsx as b}from"react/jsx-runtime";import*as l from"@radix-ui/react-dialog";import{tv as N}from"@xjur-ui/util";import*as a from"@radix-ui/react-dialog";import{jsx as P}from"react/jsx-runtime";import*as i from"@radix-ui/react-dialog";import{cx as C}from"@xjur-ui/util";import{jsx as R}from"react/jsx-runtime";import{jsx as F,jsxs as O}from"react/jsx-runtime";import*as p from"@radix-ui/react-dialog";import{jsx as L}from"react/jsx-runtime";import{cx as G}from"@xjur-ui/util";import*as d from"@radix-ui/react-dialog";import{jsx as $}from"react/jsx-runtime";import{cx as K}from"@xjur-ui/util";import{jsx as U}from"react/jsx-runtime";import*as c from"@radix-ui/react-dialog";import{Slot as Y}from"@radix-ui/react-slot";import{cva as m,cx as j}from"@xjur-ui/util";import{jsx as oe}from"react/jsx-runtime";var ee=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{cx as ne}from"@xjur-ui/util";import{jsx as pe}from"react/jsx-runtime";import{jsx as ye}from"react/jsx-runtime";import{cx as f}from"@xjur-ui/util";import{jsx as h}from"react/jsx-runtime";function o({className:e,...t}){return h("div",{className:f("py-large px-large-2x border-t-border-layer-2 mt-auto border-t",e),"data-slot":"sheet-footer",...t})}import{cx as Se}from"@xjur-ui/util";import{jsx as Ce}from"react/jsx-runtime";import{jsx as v}from"react/jsx-runtime";function Qe({className:e,...t}){return v(o,{className:_("flex items-center justify-between",e),...t})}export{Qe as PessoaFooter};
@@ -1 +1 @@
1
- import{twMerge as D}from"@xjur-ui/util";import"react";import*as _ from"@radix-ui/react-dialog";import{jsx as E}from"react/jsx-runtime";import*as P from"@radix-ui/react-dialog";import{tv as j}from"@xjur-ui/util";import*as g from"@radix-ui/react-dialog";import{jsx as J}from"react/jsx-runtime";import*as y from"@radix-ui/react-dialog";import{cx as U}from"@xjur-ui/util";import{jsx as X}from"react/jsx-runtime";import{jsx as re,jsxs as ae}from"react/jsx-runtime";import*as S from"@radix-ui/react-dialog";import{jsx as ne}from"react/jsx-runtime";import{cx as w}from"@xjur-ui/util";import*as c from"@radix-ui/react-dialog";import{jsx as C}from"react/jsx-runtime";function n({className:e,...t}){return C(c.Title,{className:w("text-size-title-lg font-normal",e),"data-slot":"sheet-title",...t})}import{cx as k}from"@xjur-ui/util";import{jsx as R}from"react/jsx-runtime";function l({className:e,...t}){return R("div",{className:k("py-large px-large-2x border-b-border-layer-2 border-b",e),"data-slot":"sheet-header",...t})}import*as m from"@radix-ui/react-dialog";import{Slot as V}from"@radix-ui/react-slot";import{cva as T,cx as z}from"@xjur-ui/util";import{jsx as N}from"react/jsx-runtime";var I=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"}});function a({asChild:e,className:t,variant:r="primary",size:o="md",appearance:u="solid",...v}){return N(e?V:"button",{className:z(I({variant:r,appearance:u,size:o}),t),...v})}import{cx as B}from"@xjur-ui/util";import{jsx as F}from"react/jsx-runtime";function s({className:e,filled:t=!1,name:r,...o}){return F("span",{...o,className:B("material-symbols-outlined","text-size-body-lg select-none",e),style:{fontVariationSettings:`'FILL' ${t?1:0}, 'wght' 600, 'GRAD' 0, 'opsz' 20`,...o.style},children:r})}import{jsx as p}from"react/jsx-runtime";function d({children:e=p(a,{appearance:"ghost",size:"icon_md",variant:"tertiary",children:p(s,{className:"text-icon-neutral-3",name:"close"})}),...t}){return p(m.Close,{"data-slot":"sheet-close",...t,children:e})}import{cx as ze}from"@xjur-ui/util";import{jsx as Ne}from"react/jsx-runtime";import{cx as He}from"@xjur-ui/util";import{jsx as Ae}from"react/jsx-runtime";import{createContext as H,useCallback as ot,useContext as O,useState as rt,useMemo as at}from"react";import{jsx as it}from"react/jsx-runtime";var A=H({});function h(){let e=O(A);if(!e)throw new Error("usePessoaContext must be used within a PessoaProvider");return{...e,pessoas:e.pessoas,setPessoas:e.setPessoas}}import{jsx as i,jsxs as f}from"react/jsx-runtime";function ht({title:e,className:t,...r}){let{changeIsFullscreen:o}=h();return f(l,{className:D("flex items-center justify-between",t),...r,children:[i(n,{children:e}),f("div",{className:"gap-small flex items-center",children:[i(a,{appearance:"ghost",size:"icon_md",variant:"tertiary",onClick:()=>o(),children:i(s,{className:"text-icon-neutral-3",name:"expand_content"})}),i(d,{})]})]})}export{ht as PessoaHeader};
1
+ import{twMerge as D}from"@xjur-ui/util";import"react";import*as _ from"@radix-ui/react-dialog";import{jsx as E}from"react/jsx-runtime";import*as P from"@radix-ui/react-dialog";import{tv as j}from"@xjur-ui/util";import*as g from"@radix-ui/react-dialog";import{jsx as J}from"react/jsx-runtime";import*as y from"@radix-ui/react-dialog";import{cx as U}from"@xjur-ui/util";import{jsx as X}from"react/jsx-runtime";import{jsx as re,jsxs as ae}from"react/jsx-runtime";import*as S from"@radix-ui/react-dialog";import{jsx as ne}from"react/jsx-runtime";import{cx as w}from"@xjur-ui/util";import*as c from"@radix-ui/react-dialog";import{jsx as C}from"react/jsx-runtime";function n({className:e,...t}){return C(c.Title,{className:w("text-size-title-lg font-normal",e),"data-slot":"sheet-title",...t})}import{cx as k}from"@xjur-ui/util";import{jsx as R}from"react/jsx-runtime";function l({className:e,...t}){return R("div",{className:k("py-large px-large-2x border-b-border-layer-2 border-b",e),"data-slot":"sheet-header",...t})}import*as m from"@radix-ui/react-dialog";import{Slot as V}from"@radix-ui/react-slot";import{cva as T,cx as z}from"@xjur-ui/util";import{jsx as N}from"react/jsx-runtime";var I=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"}});function a({asChild:e,className:t,variant:r="primary",size:o="md",appearance:u="solid",...v}){return N(e?V:"button",{className:z(I({variant:r,appearance:u,size:o}),t),...v})}import{cx as B}from"@xjur-ui/util";import{jsx as F}from"react/jsx-runtime";function i({className:e,filled:t=!1,name:r,...o}){return F("span",{...o,className:B("material-symbols-outlined","text-size-body-lg select-none",e),style:{fontVariationSettings:`'FILL' ${t?1:0}, 'wght' 600, 'GRAD' 0, 'opsz' 20`,...o.style},children:r})}import{jsx as p}from"react/jsx-runtime";function d({children:e=p(a,{appearance:"ghost",size:"icon_md",variant:"tertiary",children:p(i,{className:"text-icon-neutral-3",name:"close"})}),...t}){return p(m.Close,{"data-slot":"sheet-close",...t,children:e})}import{cx as ze}from"@xjur-ui/util";import{jsx as Ne}from"react/jsx-runtime";import{cx as He}from"@xjur-ui/util";import{jsx as Ae}from"react/jsx-runtime";import{createContext as H,useCallback as ot,useContext as O,useState as rt,useMemo as at}from"react";import{jsx as st}from"react/jsx-runtime";var A=H({});function h(){let e=O(A);if(!e)throw new Error("usePessoaContext must be used within a PessoaProvider");return{...e,pessoas:e.pessoas,setPessoas:e.setPessoas}}import{jsx as s,jsxs as f}from"react/jsx-runtime";function ht({title:e,className:t,...r}){let{changeIsFullscreen:o}=h();return f(l,{className:D("flex items-center justify-between",t),...r,children:[s(n,{children:e}),f("div",{className:"gap-small flex items-center",children:[s(a,{appearance:"ghost",size:"icon_md",variant:"tertiary",onClick:()=>o(),children:s(i,{className:"text-icon-neutral-3",name:"expand_content"})}),s(d,{})]})]})}export{ht as PessoaHeader};
@@ -1 +1 @@
1
- import{Slot as m}from"@radix-ui/react-slot";import{cva as c,cx as h}from"@xjur-ui/util";import{jsx as v}from"react/jsx-runtime";var f=c(["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 a({asChild:e,className:t,variant:o="primary",size:r="md",appearance:p="solid",...d}){return v(e?m:"button",{className:h(f({variant:o,appearance:p,size:r}),t),...d})}import"react";import*as _ from"@radix-ui/react-dialog";import{jsx as F}from"react/jsx-runtime";import*as x from"@radix-ui/react-dialog";import{tv as M}from"@xjur-ui/util";import*as g from"@radix-ui/react-dialog";import{jsx as H}from"react/jsx-runtime";import*as u from"@radix-ui/react-dialog";import{cx as G}from"@xjur-ui/util";import{jsx as E}from"react/jsx-runtime";import{jsx as X,jsxs as Y}from"react/jsx-runtime";import*as s from"@radix-ui/react-dialog";import{jsx as P}from"react/jsx-runtime";function i({...e}){return P(s.Trigger,{"data-slot":"sheet-trigger",...e})}import{cx as oe}from"@xjur-ui/util";import*as S from"@radix-ui/react-dialog";import{jsx as ae}from"react/jsx-runtime";import{cx as se}from"@xjur-ui/util";import{jsx as pe}from"react/jsx-runtime";import*as k from"@radix-ui/react-dialog";import{cx as w}from"@xjur-ui/util";import{jsx as C}from"react/jsx-runtime";function n({className:e,filled:t=!1,name:o,...r}){return C("span",{...r,className:w("material-symbols-outlined","text-size-body-lg select-none",e),style:{fontVariationSettings:`'FILL' ${t?1:0}, 'wght' 600, 'GRAD' 0, 'opsz' 20`,...r.style},children:o})}import{jsx as be}from"react/jsx-runtime";import{cx as Se}from"@xjur-ui/util";import{jsx as Ce}from"react/jsx-runtime";import{cx as Te}from"@xjur-ui/util";import{jsx as Ne}from"react/jsx-runtime";import{jsx as l,jsxs as R}from"react/jsx-runtime";function je({children:e=R(a,{appearance:"ghost",className:"border-border-layer-2 border",variant:"secondary",children:[l(n,{className:"text-icon-neutral-3",name:"add"}),"Adicionar"]}),asChild:t=!0,...o}){return l(i,{asChild:t,...o,children:e})}export{je as PessoaTrigger};
1
+ import{Slot as m}from"@radix-ui/react-slot";import{cva as c,cx as h}from"@xjur-ui/util";import{jsx as v}from"react/jsx-runtime";var f=c(["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 a({asChild:e,className:t,variant:r="primary",size:o="md",appearance:p="solid",...d}){return v(e?m:"button",{className:h(f({variant:r,appearance:p,size:o}),t),...d})}import"react";import*as _ from"@radix-ui/react-dialog";import{jsx as F}from"react/jsx-runtime";import*as x from"@radix-ui/react-dialog";import{tv as M}from"@xjur-ui/util";import*as g from"@radix-ui/react-dialog";import{jsx as H}from"react/jsx-runtime";import*as u from"@radix-ui/react-dialog";import{cx as G}from"@xjur-ui/util";import{jsx as E}from"react/jsx-runtime";import{jsx as X,jsxs as Y}from"react/jsx-runtime";import*as s from"@radix-ui/react-dialog";import{jsx as P}from"react/jsx-runtime";function i({...e}){return P(s.Trigger,{"data-slot":"sheet-trigger",...e})}import{cx as re}from"@xjur-ui/util";import*as S from"@radix-ui/react-dialog";import{jsx as ae}from"react/jsx-runtime";import{cx as se}from"@xjur-ui/util";import{jsx as pe}from"react/jsx-runtime";import*as k from"@radix-ui/react-dialog";import{cx as w}from"@xjur-ui/util";import{jsx as C}from"react/jsx-runtime";function n({className:e,filled:t=!1,name:r,...o}){return C("span",{...o,className:w("material-symbols-outlined","text-size-body-lg select-none",e),style:{fontVariationSettings:`'FILL' ${t?1:0}, 'wght' 600, 'GRAD' 0, 'opsz' 20`,...o.style},children:r})}import{jsx as be}from"react/jsx-runtime";import{cx as Se}from"@xjur-ui/util";import{jsx as Ce}from"react/jsx-runtime";import{cx as Te}from"@xjur-ui/util";import{jsx as Ne}from"react/jsx-runtime";import{jsx as l,jsxs as R}from"react/jsx-runtime";function je({children:e=R(a,{appearance:"ghost",className:"border-border-layer-2 border",variant:"secondary",children:[l(n,{className:"text-icon-neutral-3",name:"add"}),"Adicionar"]}),asChild:t=!0,...r}){return l(i,{asChild:t,...r,children:e})}export{je as PessoaTrigger};
@@ -1 +1 @@
1
- import{cva as C}from"@xjur-ui/util";import*as o from"@radix-ui/react-dialog";import{cx as k}from"@xjur-ui/util";import{cx as g}from"@xjur-ui/util";import{jsx as _}from"react/jsx-runtime";function l({className:e,filled:a=!1,name:r,...t}){return _("span",{...t,className:g("material-symbols-outlined","text-size-body-lg select-none",e),style:{fontVariationSettings:`'FILL' ${a?1:0}, 'wght' 600, 'GRAD' 0, 'opsz' 20`,...t.style},children:r})}import{Slot as y}from"@radix-ui/react-slot";import{cva as v,cx as u}from"@xjur-ui/util";import{jsx as b}from"react/jsx-runtime";var f=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"}});function p({asChild:e,className:a,variant:r="primary",size:t="md",appearance:n="solid",...s}){return b(e?y:"button",{className:u(f({variant:r,appearance:n,size:t}),a),...s})}import*as d from"@radix-ui/react-dialog";import{cva as h,cx as x}from"@xjur-ui/util";import{jsx as P}from"react/jsx-runtime";var w=h(["fixed inset-0 z-50 bg-black/50 backdrop-blur-sm","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0"]);function c({className:e,...a}){return P(d.Overlay,{className:x(w(),e),...a})}import{jsx as i,jsxs as m}from"react/jsx-runtime";var D=C(["fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-large-2x bg-layer-2-idle p-large-2x shadow-elevation-2 duration-200","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95","data-[state=open]:animate-in data-[state=open]:slide-in-from-bottom","data-[state=closed]:animate-out data-[state=closed]:slide-out-to-bottom","duration-300","rounded-small"],{variants:{size:{sm:"max-w-sm",md:"max-w-lg",lg:"max-w-2xl",xl:"max-w-4xl"}},defaultVariants:{size:"md"}});function M({className:e,children:a,size:r,overlay:t=!0,closeButton:n=!0,...s}){return m(o.DialogPortal,{children:[t&&i(c,{}),m(o.Content,{className:k(D({size:r}),e),...s,children:[a,n&&i(o.Close,{asChild:!0,className:"top-large right-large absolute",children:i(p,{appearance:"ghost",size:"icon_md",variant:"tertiary",children:i(l,{className:"text-icon-neutral-3",name:"close"})})})]})]})}export{M as DialogContent};
1
+ import{cva as C}from"@xjur-ui/util";import*as r from"@radix-ui/react-dialog";import{cx as k}from"@xjur-ui/util";import{cx as _}from"@xjur-ui/util";import{jsx as g}from"react/jsx-runtime";function l({className:e,filled:a=!1,name:o,...t}){return g("span",{...t,className:_("material-symbols-outlined","text-size-body-lg select-none",e),style:{fontVariationSettings:`'FILL' ${a?1:0}, 'wght' 600, 'GRAD' 0, 'opsz' 20`,...t.style},children:o})}import{Slot as y}from"@radix-ui/react-slot";import{cva as v,cx as u}from"@xjur-ui/util";import{jsx as b}from"react/jsx-runtime";var f=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"}});function p({asChild:e,className:a,variant:o="primary",size:t="md",appearance:n="solid",...s}){return b(e?y:"button",{className:u(f({variant:o,appearance:n,size:t}),a),...s})}import*as d from"@radix-ui/react-dialog";import{cva as h,cx as x}from"@xjur-ui/util";import{jsx as P}from"react/jsx-runtime";var w=h(["fixed inset-0 z-50 bg-black/50 backdrop-blur-sm","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0"]);function c({className:e,...a}){return P(d.Overlay,{className:x(w(),e),...a})}import{jsx as i,jsxs as m}from"react/jsx-runtime";var D=C(["fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-large-2x bg-layer-2-idle p-large-2x shadow-elevation-2 duration-200","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95","data-[state=open]:animate-in data-[state=open]:slide-in-from-bottom","data-[state=closed]:animate-out data-[state=closed]:slide-out-to-bottom","duration-300","rounded-small"],{variants:{size:{sm:"max-w-sm",md:"max-w-lg",lg:"max-w-2xl",xl:"max-w-4xl"}},defaultVariants:{size:"md"}});function M({className:e,children:a,size:o,overlay:t=!0,closeButton:n=!0,...s}){return m(r.DialogPortal,{children:[t&&i(c,{}),m(r.Content,{className:k(D({size:o}),e),...s,children:[a,n&&i(r.Close,{asChild:!0,className:"top-large right-large absolute",children:i(p,{appearance:"ghost",size:"icon_md",variant:"tertiary",children:i(l,{className:"text-icon-neutral-3",name:"close"})})})]})]})}export{M as DialogContent};
@@ -1 +1 @@
1
- import{Slot as d}from"@radix-ui/react-slot";import{cva as p,cx as c}from"@xjur-ui/util";import{jsx as m}from"react/jsx-runtime";var _=p(["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 o({asChild:e,className:a,variant:t="primary",size:r="md",appearance:s="solid",...l}){return m(e?d:"button",{className:c(_({variant:t,appearance:s,size:r}),a),...l})}import{cx as b}from"@xjur-ui/util";import{jsx as v}from"react/jsx-runtime";function n({className:e,filled:a=!1,name:t,...r}){return v("span",{...r,className:b("material-symbols-outlined","text-size-body-lg select-none",e),style:{fontVariationSettings:`'FILL' ${a?1:0}, 'wght' 600, 'GRAD' 0, 'opsz' 20`,...r.style},children:t})}import{jsx as i}from"react/jsx-runtime";function A({date:e,onAddEvent:a}){return i(o,{size:"icon_sm",variant:"outlined",onClick:()=>a(e),children:i(n,{className:"text-icon-neutral-3",name:"add"})})}export{A as CalendarAddEvent};
1
+ import{Slot as d}from"@radix-ui/react-slot";import{cva as p,cx as c}from"@xjur-ui/util";import{jsx as m}from"react/jsx-runtime";var _=p(["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 o({asChild:e,className:r,variant:t="primary",size:a="md",appearance:s="solid",...l}){return m(e?d:"button",{className:c(_({variant:t,appearance:s,size:a}),r),...l})}import{cx as b}from"@xjur-ui/util";import{jsx as y}from"react/jsx-runtime";function n({className:e,filled:r=!1,name:t,...a}){return y("span",{...a,className:b("material-symbols-outlined","text-size-body-lg select-none",e),style:{fontVariationSettings:`'FILL' ${r?1:0}, 'wght' 600, 'GRAD' 0, 'opsz' 20`,...a.style},children:t})}import{jsx as i}from"react/jsx-runtime";function A({date:e,onAddEvent:r}){return i(o,{size:"icon_sm",variant:"outlined",onClick:()=>r(e),children:i(n,{className:"text-icon-neutral-3",name:"add"})})}export{A as CalendarAddEvent};
@@ -1 +1 @@
1
- import{useCallback as ut,useMemo as ft}from"react";import{cx as he}from"@xjur-ui/util";import{Slot as Pe}from"@radix-ui/react-slot";import{cva as Ie}from"@xjur-ui/util";import{memo as j,useState as Te}from"react";import*as w from"@radix-ui/react-tooltip";import{jsx as S}from"react/jsx-runtime";function De({delayDuration:e=0,...t}){return S(w.Provider,{"data-slot":"tooltip-provider",delayDuration:e,...t})}function R({...e}){return S(De,{children:S(w.Root,{"data-slot":"tooltip",...e})})}import*as X from"@radix-ui/react-tooltip";import{jsx as we}from"react/jsx-runtime";function V({...e}){return we(X.Trigger,{"data-slot":"tooltip-trigger",...e})}import*as _ from"@radix-ui/react-tooltip";import{cx as _e}from"@xjur-ui/util";import{jsx as Z}from"react/jsx-runtime";function N({className:e,sideOffset:t=1,variant:o="simple",children:r,...a}){return Z(_.Portal,{children:Z(_.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":o,sideOffset:t,...a,children:r})})}import{jsx as P,jsxs as Ee}from"react/jsx-runtime";var Me=Ie("",{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=j(({variant:e,size:t,weight:o,asChild:r,className:a,children:n,...i})=>P(r?Pe:"span",{className:Me({variant:e,size:t,weight:o,className:a}),...i,children:n}));v.displayName="Typography";var ze=j(({children:e,...t})=>{let[o,r]=Te(!1);return Ee(R,{children:[P(V,{asChild:!0,children:P(v,{onMouseEnter:({currentTarget:n})=>{let i=n.scrollWidth>n.clientWidth;r(i),i?n.style.cursor="pointer":n.style.cursor="text"},...t,children:e})}),o&&P(N,{children:e})]})});ze.displayName="TruncatedTypography";var ke=Math.pow(10,8)*24*60*60*1e3,Rt=-ke;var Se=3600;var ee=Se*24,Vt=ee*7,Re=ee*365.2425,Ve=Re/12,Nt=Ve*3,L=Symbol.for("constructDateFrom");function p(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&L in e?e[L](t):e instanceof Date?new e.constructor(t):new Date(t)}function m(e,t){return p(t||e,e)}function te(e,t,o){let r=m(e,o?.in);if(isNaN(t))return p(o?.in||e,NaN);if(!t)return r;let a=r.getDate(),n=p(o?.in||e,r.getTime());n.setMonth(r.getMonth()+t+1,0);let i=n.getDate();return a>=i?n:(r.setFullYear(n.getFullYear(),n.getMonth(),a),r)}function oe(e,...t){let o=p.bind(null,e||t.find(r=>typeof r=="object"));return t.map(o)}function F(e,t){let o=m(e,t?.in);return o.setHours(0,0,0,0),o}function re(e){return p(e,Date.now())}function I(e,t,o){let[r,a]=oe(o?.in,e,t);return+F(r)==+F(a)}function O(e,t){let o=m(e,t?.in),r=o.getMonth();return o.setFullYear(o.getFullYear(),r+1,0),o.setHours(23,59,59,999),o}function ae(e,t){let o=m(e,t?.in);return o.setDate(1),o.setHours(0,0,0,0),o}function ne(e){return+m(e)<Date.now()}function ie(e,t){return I(p(t?.in||e,e),re(t?.in||e))}function se(e,t,o){return te(e,-t,o)}function H(e){return Array.from({length:e},(t,o)=>o)}var le=["Domingo","Segunda","Ter\xE7a","Quarta","Quinta","Sexta","S\xE1bado"],yo=Array.from({length:16},(e,t)=>{let o=t+8;return{hour:o,label:`${o.toString().padStart(2,"0")}:00`}});function pe(e){let t=e.getFullYear(),o=e.getMonth(),r=ae(e).getDay(),a=O(se(e,1)).getDate(),n=O(e).getDate(),i=H(r).map(u=>{u+=1;let y=o-1,x=a-r+u,C=new Date(t,y,x);return{dayOfWeekNumber:C.getDay(),date:C,type:"month"}}),s=H(n).map(u=>{let y=u+1,f=new Date(t,o,y);return{dayOfWeekNumber:f.getDay(),date:f,type:"month"}}),d=7,l=r+n,b=d-l%d%d,E=H(b).map(u=>{let y=u+1,f=new Date(t,o+1,y);return{dayOfWeekNumber:f.getDay(),date:f,type:"month"}});return[...i,...s,...E]}function de(e,t){return e.filter(o=>I(o.eventDate,t))}function W(e){return ie(e)}import{createContext as Ne,use as Le,useCallback as bo,useMemo as Co,useState as Do}from"react";import{DndContext as _o,closestCenter as Po,useSensor as Io,useSensors as To,PointerSensor as Mo,KeyboardSensor as zo,MouseSensor as Eo}from"@dnd-kit/core";import{sortableKeyboardCoordinates as So}from"@dnd-kit/sortable";import{jsx as Vo}from"react/jsx-runtime";var Fe=Ne({events:[],calendarView:"month",selectedDate:new Date,activeEventId:null,disableEventCreationInPast:!0,renderEvent:()=>null,setSelectedDate:()=>{},handleChangeView:()=>{},onEventMove:()=>{},onAddEvent:()=>{}});function g(){let e=Le(Fe);if(!e)throw new Error("useFullCalendar must be used within a CalendarRoot");return e}import{Fragment as lt,useMemo as U}from"react";import{useDroppable as pt}from"@dnd-kit/core";import{cx as dt,tv as mt}from"@xjur-ui/util";import{Slot as Oe}from"@radix-ui/react-slot";import{cva as He,cx as We}from"@xjur-ui/util";import{jsx as Ye}from"react/jsx-runtime";var Ae=He(["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 T({asChild:e,className:t,variant:o="primary",size:r="md",appearance:a="solid",...n}){return Ye(e?Oe:"button",{className:We(Ae({variant:o,appearance:a,size:r}),t),...n})}import{cx as Be}from"@xjur-ui/util";import{jsx as $e}from"react/jsx-runtime";function me({className:e,filled:t=!1,name:o,...r}){return $e("span",{...r,className:Be("material-symbols-outlined","text-size-body-lg select-none",e),style:{fontVariationSettings:`'FILL' ${t?1:0}, 'wght' 600, 'GRAD' 0, 'opsz' 20`,...r.style},children:o})}import{Fragment as st}from"react/jsx-runtime";import"react";import*as ce from"@radix-ui/react-dropdown-menu";import{jsx as Ke}from"react/jsx-runtime";function A({...e}){return Ke(ce.Root,{"data-slot":"dropdown-menu",...e})}import*as ue from"@radix-ui/react-dropdown-menu";import{jsx as Qe}from"react/jsx-runtime";function Y({...e}){return Qe(ue.Trigger,{"data-slot":"dropdown-menu-trigger",...e})}import*as M from"@radix-ui/react-dropdown-menu";import{cx as at}from"@xjur-ui/util";import{Slot as Ge}from"@radix-ui/react-slot";import{cx as Ue}from"@xjur-ui/util";import{useVirtualizer as Je}from"@tanstack/react-virtual";import{useRef as Xe}from"react";import{createContext as qe}from"react";var D=qe({virtualizer:null,enabled:!1});import{jsx as fe}from"react/jsx-runtime";function B({className:e,asChild:t,children:o,virtualized:r=!1,itemCount:a=0,estimateSize:n=()=>48,overscan:i=5,...s}){let d=t?Ge:"div",l=Xe(null),b=Je({count:a,getScrollElement:()=>l.current,estimateSize:n,overscan:i,enabled:r});return fe(D.Provider,{value:{virtualizer:b,enabled:r},children:fe(d,{...s,className:Ue(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:l,children:o})})}import{Slot as sr}from"@radix-ui/react-slot";import{cx as pr}from"@xjur-ui/util";import{jsx as mr}from"react/jsx-runtime";import{cx as fr}from"@xjur-ui/util";import{jsx as xr}from"react/jsx-runtime";import{Slot as Ze}from"@radix-ui/react-slot";import{cx as ve}from"@xjur-ui/util";import{useContext as je}from"react";import{jsx as $}from"react/jsx-runtime";function K({className:e,asChild:t,children:o,renderItem:r,...a}){let n=t?Ze:"ul",{virtualizer:i,enabled:s}=je(D);if(s&&i&&r){let d=i.getVirtualItems();return $(n,{...a,className:ve("p-small relative flex flex-col",e),style:{height:`${i.getTotalSize()}px`},children:d.map(l=>$("div",{className:"absolute top-0 left-0 w-full","data-index":l.index,ref:i.measureElement,style:{transform:`translateY(${l.start}px)`},children:r(l.index)},l.key))})}return $(n,{...a,className:ve("gap-small-1x p-small flex flex-col",e),children:o})}import{Slot as Ir}from"@radix-ui/react-slot";import{cx as Mr,cva as et}from"@xjur-ui/util";import{jsx as kr}from"react/jsx-runtime";var zr=et(["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 Q}from"react/jsx-runtime";function q({className:e,sideOffset:t=4,align:o="start",side:r="bottom",children:a,...n}){return Q(M.Portal,{children:Q(M.Content,{align:o,className:at("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:t,...n,children:Q(B,{children:a})})})}import{jsx as nt}from"react/jsx-runtime";function G({...e}){return nt(K,{...e})}import{jsx as Ur}from"react/jsx-runtime";import{cx as na}from"@xjur-ui/util";import"react";import*as it from"@radix-ui/react-separator";import{cx as jr}from"@xjur-ui/util";import{jsx as ta}from"react/jsx-runtime";import{jsx as da}from"react/jsx-runtime";import{jsx as z,jsxs as ye}from"react/jsx-runtime";function xe({events:e}){let{renderEvent:t}=g();return ye(A,{children:[z(Y,{asChild:!0,children:ye(T,{size:"sm",variant:"outlined",children:["Mais ",e.length]})}),z(q,{className:"w-[240px]",children:z(G,{children:e.map(o=>z(st,{children:t?.(o)},o.eventDate.toISOString()))})})]})}import{jsx as c,jsxs as J}from"react/jsx-runtime";var ct=mt({base:"group/calendar-cell p-small flex flex-col gap-small-1x w-full bg-layer-2-idle ",variants:{type:{month:"h-[212px]",week:"min-h-[64px] max-h-[212px]",day:"min-h-[64px] max-h-[212px]"}}});function ge({cell:e,events:t}){let{date:o,type:r}=e,{renderEvent:a,activeEventId:n,onAddEvent:i,disableEventCreationInPast:s}=g(),d=U(()=>t.slice(0,2),[t]),l=t.length>=3,{isOver:b,setNodeRef:E}=pt({id:`calendar-cell-${r}-${o.toISOString()}`,data:{date:o,type:r}}),u=U(()=>{let x=t.find(k=>k.id===n);if(!x)return!1;let C=k=>k.toLocaleDateString("pt-BR",{year:"numeric",month:"2-digit",day:"2-digit"}),be=C(o),Ce=C(x.eventDate);return be===Ce},[n,o,t]),y=ct({type:r}),f=U(()=>s&&ne(o)&&!W(o),[s,o]);return J("div",{className:y,"data-slot":"calendar-cell",ref:E,children:[r==="month"&&c("div",{className:"flex items-center justify-center",children:c("div",{className:dt("size-large-2x rounded-circle bg-layer-2-idle flex items-center justify-center",W(o)&&"bg-primary-idle text-neutral-label"),children:c(v,{size:"sm",variant:"label",weight:"medium",children:e.date.getDate()})})}),J("div",{className:"gap-small-1x flex flex-col",children:[d.map(x=>c(lt,{children:a(x)},x.id)),b&&d.length<2&&!u&&c("div",{className:"border-border-layer-4 rounded-small-2x h-[68px] w-full border border-dashed"})]}),J("div",{className:"mt-auto flex items-center justify-between",children:[l&&c(xe,{events:t.slice(2)}),i&&!f&&c("div",{className:"invisible ml-auto transition-opacity duration-100 ease-in-out group-hover/calendar-cell:visible",children:c(T,{size:"icon_sm",variant:"outlined",onClick:()=>i(o),children:c(me,{className:"text-icon-neutral-3",name:"add"})})})]})]})}import{jsx as h,jsxs as vt}from"react/jsx-runtime";function Ga(){let{selectedDate:e,events:t}=g(),o=ft(()=>pe(e),[e]),r=ut(a=>de(t,a.date),[t]);return vt("div",{className:"rounded-small-1x scrollbar-hide border-border-layer-2 h-full w-full border",children:[h("div",{className:"bg-layer-2-hover h-large-4x rounded-t-small-1x sticky top-0 grid grid-cols-7","data-slot":"month-header",children:le.map(a=>h("div",{className:he("p-small b border-border-layer-2 flex items-center justify-center border-r last:border-r-0"),"data-slot":"month-header-weekday",children:h(v,{size:"sm",variant:"label",weight:"medium",children:a})},a))}),h("div",{className:"grid h-full grid-cols-7 overflow-hidden","data-slot":"month-day-cells",children:o.map((a,n)=>{let i=(n+1)%7===0,s=(n+1)%7===1;return h("div",{className:he("border-border-layer-2 border-t border-r",i&&"pr-small-2x border-r-0",s&&"pl-small-2x"),children:h(ge,{cell:a,events:r(a)})},`${a.date.toISOString()}-${n}`)})})]})}export{Ga as CalendarMonthView};
1
+ import{useCallback as ut,useMemo as ft}from"react";import{cx as he}from"@xjur-ui/util";import{Slot as Pe}from"@radix-ui/react-slot";import{cva as Ie}from"@xjur-ui/util";import{memo as j,useState as Te}from"react";import*as w from"@radix-ui/react-tooltip";import{jsx as S}from"react/jsx-runtime";function De({delayDuration:e=0,...t}){return S(w.Provider,{"data-slot":"tooltip-provider",delayDuration:e,...t})}function R({...e}){return S(De,{children:S(w.Root,{"data-slot":"tooltip",...e})})}import*as X from"@radix-ui/react-tooltip";import{jsx as we}from"react/jsx-runtime";function V({...e}){return we(X.Trigger,{"data-slot":"tooltip-trigger",...e})}import*as _ from"@radix-ui/react-tooltip";import{cx as _e}from"@xjur-ui/util";import{jsx as Z}from"react/jsx-runtime";function N({className:e,sideOffset:t=1,variant:o="simple",children:r,...a}){return Z(_.Portal,{children:Z(_.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":o,sideOffset:t,...a,children:r})})}import{jsx as P,jsxs as Ee}from"react/jsx-runtime";var Me=Ie("",{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"}}),y=j(({variant:e,size:t,weight:o,asChild:r,className:a,children:n,...i})=>P(r?Pe:"span",{className:Me({variant:e,size:t,weight:o,className:a}),...i,children:n}));y.displayName="Typography";var ze=j(({children:e,...t})=>{let[o,r]=Te(!1);return Ee(R,{children:[P(V,{asChild:!0,children:P(y,{onMouseEnter:({currentTarget:n})=>{let i=n.scrollWidth>n.clientWidth;r(i),i?n.style.cursor="pointer":n.style.cursor="text"},...t,children:e})}),o&&P(N,{children:e})]})});ze.displayName="TruncatedTypography";var ke=Math.pow(10,8)*24*60*60*1e3,Rt=-ke;var Se=3600;var ee=Se*24,Vt=ee*7,Re=ee*365.2425,Ve=Re/12,Nt=Ve*3,L=Symbol.for("constructDateFrom");function p(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&L in e?e[L](t):e instanceof Date?new e.constructor(t):new Date(t)}function m(e,t){return p(t||e,e)}function te(e,t,o){let r=m(e,o?.in);if(isNaN(t))return p(o?.in||e,NaN);if(!t)return r;let a=r.getDate(),n=p(o?.in||e,r.getTime());n.setMonth(r.getMonth()+t+1,0);let i=n.getDate();return a>=i?n:(r.setFullYear(n.getFullYear(),n.getMonth(),a),r)}function oe(e,...t){let o=p.bind(null,e||t.find(r=>typeof r=="object"));return t.map(o)}function F(e,t){let o=m(e,t?.in);return o.setHours(0,0,0,0),o}function re(e){return p(e,Date.now())}function I(e,t,o){let[r,a]=oe(o?.in,e,t);return+F(r)==+F(a)}function O(e,t){let o=m(e,t?.in),r=o.getMonth();return o.setFullYear(o.getFullYear(),r+1,0),o.setHours(23,59,59,999),o}function ae(e,t){let o=m(e,t?.in);return o.setDate(1),o.setHours(0,0,0,0),o}function ne(e){return+m(e)<Date.now()}function ie(e,t){return I(p(t?.in||e,e),re(t?.in||e))}function se(e,t,o){return te(e,-t,o)}function H(e){return Array.from({length:e},(t,o)=>o)}var le=["Domingo","Segunda","Ter\xE7a","Quarta","Quinta","Sexta","S\xE1bado"],vo=Array.from({length:16},(e,t)=>{let o=t+8;return{hour:o,label:`${o.toString().padStart(2,"0")}:00`}});function pe(e){let t=e.getFullYear(),o=e.getMonth(),r=ae(e).getDay(),a=O(se(e,1)).getDate(),n=O(e).getDate(),i=H(r).map(u=>{u+=1;let v=o-1,x=a-r+u,C=new Date(t,v,x);return{dayOfWeekNumber:C.getDay(),date:C,type:"month"}}),s=H(n).map(u=>{let v=u+1,f=new Date(t,o,v);return{dayOfWeekNumber:f.getDay(),date:f,type:"month"}}),d=7,l=r+n,b=d-l%d%d,E=H(b).map(u=>{let v=u+1,f=new Date(t,o+1,v);return{dayOfWeekNumber:f.getDay(),date:f,type:"month"}});return[...i,...s,...E]}function de(e,t){return e.filter(o=>I(o.eventDate,t))}function W(e){return ie(e)}import{createContext as Ne,use as Le,useCallback as bo,useMemo as Co,useState as Do}from"react";import{DndContext as _o,closestCenter as Po,useSensor as Io,useSensors as To,PointerSensor as Mo,KeyboardSensor as zo,MouseSensor as Eo}from"@dnd-kit/core";import{sortableKeyboardCoordinates as So}from"@dnd-kit/sortable";import{jsx as Vo}from"react/jsx-runtime";var Fe=Ne({events:[],calendarView:"month",selectedDate:new Date,activeEventId:null,disableEventCreationInPast:!0,renderEvent:()=>null,setSelectedDate:()=>{},handleChangeView:()=>{},onEventMove:()=>{},onAddEvent:()=>{}});function g(){let e=Le(Fe);if(!e)throw new Error("useFullCalendar must be used within a CalendarRoot");return e}import{Fragment as lt,useMemo as U}from"react";import{useDroppable as pt}from"@dnd-kit/core";import{cx as dt,tv as mt}from"@xjur-ui/util";import{Slot as Oe}from"@radix-ui/react-slot";import{cva as He,cx as We}from"@xjur-ui/util";import{jsx as Ye}from"react/jsx-runtime";var Ae=He(["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 T({asChild:e,className:t,variant:o="primary",size:r="md",appearance:a="solid",...n}){return Ye(e?Oe:"button",{className:We(Ae({variant:o,appearance:a,size:r}),t),...n})}import{cx as Be}from"@xjur-ui/util";import{jsx as $e}from"react/jsx-runtime";function me({className:e,filled:t=!1,name:o,...r}){return $e("span",{...r,className:Be("material-symbols-outlined","text-size-body-lg select-none",e),style:{fontVariationSettings:`'FILL' ${t?1:0}, 'wght' 600, 'GRAD' 0, 'opsz' 20`,...r.style},children:o})}import{Fragment as st}from"react/jsx-runtime";import"react";import*as ce from"@radix-ui/react-dropdown-menu";import{jsx as Ke}from"react/jsx-runtime";function A({...e}){return Ke(ce.Root,{"data-slot":"dropdown-menu",...e})}import*as ue from"@radix-ui/react-dropdown-menu";import{jsx as Qe}from"react/jsx-runtime";function Y({...e}){return Qe(ue.Trigger,{"data-slot":"dropdown-menu-trigger",...e})}import*as M from"@radix-ui/react-dropdown-menu";import{cx as at}from"@xjur-ui/util";import{Slot as Ge}from"@radix-ui/react-slot";import{cx as Ue}from"@xjur-ui/util";import{useVirtualizer as Je}from"@tanstack/react-virtual";import{useRef as Xe}from"react";import{createContext as qe}from"react";var D=qe({virtualizer:null,enabled:!1});import{jsx as fe}from"react/jsx-runtime";function B({className:e,asChild:t,children:o,virtualized:r=!1,itemCount:a=0,estimateSize:n=()=>48,overscan:i=5,...s}){let d=t?Ge:"div",l=Xe(null),b=Je({count:a,getScrollElement:()=>l.current,estimateSize:n,overscan:i,enabled:r});return fe(D.Provider,{value:{virtualizer:b,enabled:r},children:fe(d,{...s,className:Ue(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:l,children:o})})}import{Slot as sr}from"@radix-ui/react-slot";import{cx as pr}from"@xjur-ui/util";import{jsx as mr}from"react/jsx-runtime";import{cx as fr}from"@xjur-ui/util";import{jsx as xr}from"react/jsx-runtime";import{Slot as Ze}from"@radix-ui/react-slot";import{cx as ye}from"@xjur-ui/util";import{useContext as je}from"react";import{jsx as $}from"react/jsx-runtime";function K({className:e,asChild:t,children:o,renderItem:r,...a}){let n=t?Ze:"ul",{virtualizer:i,enabled:s}=je(D);if(s&&i&&r){let d=i.getVirtualItems();return $(n,{...a,className:ye("p-small relative flex flex-col",e),style:{height:`${i.getTotalSize()}px`},children:d.map(l=>$("div",{className:"absolute top-0 left-0 w-full","data-index":l.index,ref:i.measureElement,style:{transform:`translateY(${l.start}px)`},children:r(l.index)},l.key))})}return $(n,{...a,className:ye("gap-small-1x p-small flex flex-col",e),children:o})}import{Slot as Ir}from"@radix-ui/react-slot";import{cx as Mr,cva as et}from"@xjur-ui/util";import{jsx as kr}from"react/jsx-runtime";var zr=et(["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 Q}from"react/jsx-runtime";function q({className:e,sideOffset:t=4,align:o="start",side:r="bottom",children:a,...n}){return Q(M.Portal,{children:Q(M.Content,{align:o,className:at("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:t,...n,children:Q(B,{children:a})})})}import{jsx as nt}from"react/jsx-runtime";function G({...e}){return nt(K,{...e})}import{jsx as Ur}from"react/jsx-runtime";import{cx as na}from"@xjur-ui/util";import"react";import*as it from"@radix-ui/react-separator";import{cx as jr}from"@xjur-ui/util";import{jsx as ta}from"react/jsx-runtime";import{jsx as da}from"react/jsx-runtime";import{jsx as z,jsxs as ve}from"react/jsx-runtime";function xe({events:e}){let{renderEvent:t}=g();return ve(A,{children:[z(Y,{asChild:!0,children:ve(T,{size:"sm",variant:"outlined",children:["Mais ",e.length]})}),z(q,{className:"w-[240px]",children:z(G,{children:e.map(o=>z(st,{children:t?.(o)},o.eventDate.toISOString()))})})]})}import{jsx as c,jsxs as J}from"react/jsx-runtime";var ct=mt({base:"group/calendar-cell p-small flex flex-col gap-small-1x w-full bg-layer-2-idle ",variants:{type:{month:"h-[212px]",week:"min-h-[64px] max-h-[212px]",day:"min-h-[64px] max-h-[212px]"}}});function ge({cell:e,events:t}){let{date:o,type:r}=e,{renderEvent:a,activeEventId:n,onAddEvent:i,disableEventCreationInPast:s}=g(),d=U(()=>t.slice(0,2),[t]),l=t.length>=3,{isOver:b,setNodeRef:E}=pt({id:`calendar-cell-${r}-${o.toISOString()}`,data:{date:o,type:r}}),u=U(()=>{let x=t.find(k=>k.id===n);if(!x)return!1;let C=k=>k.toLocaleDateString("pt-BR",{year:"numeric",month:"2-digit",day:"2-digit"}),be=C(o),Ce=C(x.eventDate);return be===Ce},[n,o,t]),v=ct({type:r}),f=U(()=>s&&ne(o)&&!W(o),[s,o]);return J("div",{className:v,"data-slot":"calendar-cell",ref:E,children:[r==="month"&&c("div",{className:"flex items-center justify-center",children:c("div",{className:dt("size-large-2x rounded-circle bg-layer-2-idle flex items-center justify-center",W(o)&&"bg-primary-idle text-neutral-label"),children:c(y,{size:"sm",variant:"label",weight:"medium",children:e.date.getDate()})})}),J("div",{className:"gap-small-1x flex flex-col",children:[d.map(x=>c(lt,{children:a(x)},x.id)),b&&d.length<2&&!u&&c("div",{className:"border-border-layer-4 rounded-small-2x h-[68px] w-full border border-dashed"})]}),J("div",{className:"mt-auto flex items-center justify-between",children:[l&&c(xe,{events:t.slice(2)}),i&&!f&&c("div",{className:"invisible ml-auto transition-opacity duration-100 ease-in-out group-hover/calendar-cell:visible",children:c(T,{size:"icon_sm",variant:"outlined",onClick:()=>i(o),children:c(me,{className:"text-icon-neutral-3",name:"add"})})})]})]})}import{jsx as h,jsxs as yt}from"react/jsx-runtime";function Ga(){let{selectedDate:e,events:t}=g(),o=ft(()=>pe(e),[e]),r=ut(a=>de(t,a.date),[t]);return yt("div",{className:"rounded-small-1x scrollbar-hide border-border-layer-2 h-full w-full border",children:[h("div",{className:"bg-layer-2-hover h-large-4x rounded-t-small-1x sticky top-0 grid grid-cols-7","data-slot":"month-header",children:le.map(a=>h("div",{className:he("p-small b border-border-layer-2 flex items-center justify-center border-r last:border-r-0"),"data-slot":"month-header-weekday",children:h(y,{size:"sm",variant:"label",weight:"medium",children:a})},a))}),h("div",{className:"grid h-full grid-cols-7 overflow-hidden","data-slot":"month-day-cells",children:o.map((a,n)=>{let i=(n+1)%7===0,s=(n+1)%7===1;return h("div",{className:he("border-border-layer-2 border-t border-r",i&&"pr-small-2x border-r-0",s&&"pl-small-2x"),children:h(ge,{cell:a,events:r(a)})},`${a.date.toISOString()}-${n}`)})})]})}export{Ga as CalendarMonthView};