linear-react-components-ui 1.1.26-beta.16 → 1.1.26-beta.17

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 (147) hide show
  1. package/lib/alerts/index.d.ts +3 -3
  2. package/lib/alerts/index.js +2 -1
  3. package/lib/buttons/DefaultButton.js +1 -1
  4. package/lib/buttons/index.d.ts +1 -1
  5. package/lib/buttons/index.js +1 -0
  6. package/lib/calendar/base/helpers.js +27 -84
  7. package/lib/calendar/base/helpers.js.map +1 -1
  8. package/lib/calendar/base/index.js +29 -33
  9. package/lib/calendar/base/index.js.map +1 -1
  10. package/lib/checkbox/index.js +31 -44
  11. package/lib/checkbox/index.js.map +1 -1
  12. package/lib/dialog/Alert.js +10 -12
  13. package/lib/dialog/Alert.js.map +1 -1
  14. package/lib/dialog/Custom.js +2 -3
  15. package/lib/dialog/Custom.js.map +1 -1
  16. package/lib/dialog/Error.js +9 -11
  17. package/lib/dialog/Error.js.map +1 -1
  18. package/lib/dialog/Information.js +8 -10
  19. package/lib/dialog/Information.js.map +1 -1
  20. package/lib/dialog/Question.js +4 -4
  21. package/lib/dialog/Warning.js +11 -13
  22. package/lib/dialog/Warning.js.map +1 -1
  23. package/lib/dialog/base/index.d.ts +4 -0
  24. package/lib/dialog/base/index.js +78 -72
  25. package/lib/dialog/base/index.js.map +1 -1
  26. package/lib/dialog/form/index.js +3 -7
  27. package/lib/dialog/form/index.js.map +1 -1
  28. package/lib/drawer/Drawer.js +4 -5
  29. package/lib/drawer/Drawer.js.map +1 -1
  30. package/lib/dropdown/Popup.js.map +1 -1
  31. package/lib/dropdown/index.d.ts +3 -0
  32. package/lib/dropdown/index.js +6 -0
  33. package/lib/dropdown/index.js.map +1 -0
  34. package/lib/dropdown/withDropdown.js +1 -1
  35. package/lib/fieldset/index.js +17 -18
  36. package/lib/fieldset/index.js.map +1 -1
  37. package/lib/form/FieldArray.js +18 -20
  38. package/lib/form/FieldArray.js.map +1 -1
  39. package/lib/form/helpers.js +16 -17
  40. package/lib/form/helpers.js.map +1 -1
  41. package/lib/form/index.js +46 -52
  42. package/lib/form/index.js.map +1 -1
  43. package/lib/index.js +20 -23
  44. package/lib/index.js.map +1 -1
  45. package/lib/inputs/base/InputTextBase.js +1 -1
  46. package/lib/inputs/color/index.js +22 -25
  47. package/lib/inputs/color/index.js.map +1 -1
  48. package/lib/inputs/date/index.js +15 -19
  49. package/lib/inputs/date/index.js.map +1 -1
  50. package/lib/inputs/file/DefaultFile.js +1 -1
  51. package/lib/inputs/file/DragDropFile.js +3 -4
  52. package/lib/inputs/file/DragDropFile.js.map +1 -1
  53. package/lib/inputs/file/File.js +9 -11
  54. package/lib/inputs/file/File.js.map +1 -1
  55. package/lib/inputs/file/FileButtonSettings.js +1 -1
  56. package/lib/inputs/index.d.ts +14 -0
  57. package/lib/inputs/index.js +40 -0
  58. package/lib/inputs/index.js.map +1 -0
  59. package/lib/inputs/inputHOC.js +0 -1
  60. package/lib/inputs/inputHOC.js.map +1 -1
  61. package/lib/inputs/multiSelect/ActionButtons.js +16 -19
  62. package/lib/inputs/multiSelect/ActionButtons.js.map +1 -1
  63. package/lib/inputs/number/format_number.js +6 -7
  64. package/lib/inputs/number/format_number.js.map +1 -1
  65. package/lib/inputs/period/helper.js +19 -27
  66. package/lib/inputs/period/helper.js.map +1 -1
  67. package/lib/inputs/period/index.js +4 -5
  68. package/lib/inputs/period/index.js.map +1 -1
  69. package/lib/inputs/search/index.js +1 -1
  70. package/lib/inputs/select/helper.js +22 -23
  71. package/lib/inputs/select/helper.js.map +1 -1
  72. package/lib/inputs/select/index.js +7 -8
  73. package/lib/inputs/select/index.js.map +1 -1
  74. package/lib/inputs2/checkboxfield/index.js +1 -2
  75. package/lib/inputs2/checkboxfield/index.js.map +1 -1
  76. package/lib/inputs2/colorfield/index.js +1 -4
  77. package/lib/inputs2/colorfield/index.js.map +1 -1
  78. package/lib/inputs2/date/datefield/calendarbox.js +1 -4
  79. package/lib/inputs2/date/datefield/calendarbox.js.map +1 -1
  80. package/lib/inputs2/date/datefield/index.js +0 -1
  81. package/lib/inputs2/date/datefield/index.js.map +1 -1
  82. package/lib/inputs2/date/dateperiodfield/calendarbox.js +16 -19
  83. package/lib/inputs2/date/dateperiodfield/calendarbox.js.map +1 -1
  84. package/lib/inputs2/date/dateperiodfield/index.js +0 -1
  85. package/lib/inputs2/date/dateperiodfield/index.js.map +1 -1
  86. package/lib/inputs2/date/dateperiodfield/triggers.js +14 -18
  87. package/lib/inputs2/date/dateperiodfield/triggers.js.map +1 -1
  88. package/lib/inputs2/date/helpers.js +19 -30
  89. package/lib/inputs2/date/helpers.js.map +1 -1
  90. package/lib/inputs2/filefield/index.js +17 -20
  91. package/lib/inputs2/filefield/index.js.map +1 -1
  92. package/lib/inputs2/index.js +18 -18
  93. package/lib/inputs2/numberfield/currency.js +6 -11
  94. package/lib/inputs2/numberfield/currency.js.map +1 -1
  95. package/lib/inputs2/numberfield/decimal.js +9 -14
  96. package/lib/inputs2/numberfield/decimal.js.map +1 -1
  97. package/lib/inputs2/numberfield/index.js +12 -17
  98. package/lib/inputs2/numberfield/index.js.map +1 -1
  99. package/lib/inputs2/radiofield/index.js +1 -2
  100. package/lib/inputs2/radiofield/index.js.map +1 -1
  101. package/lib/inputs2/selectfield/index.js +4 -5
  102. package/lib/inputs2/selectfield/index.js.map +1 -1
  103. package/lib/inputs2/textareafield/index.js +4 -5
  104. package/lib/inputs2/textareafield/index.js.map +1 -1
  105. package/lib/inputs2/textfield/index.js +4 -5
  106. package/lib/inputs2/textfield/index.js.map +1 -1
  107. package/lib/internals/constants.js +3 -4
  108. package/lib/internals/constants.js.map +1 -1
  109. package/lib/labels/DefaultLabel.js +1 -1
  110. package/lib/labels/index.d.ts +1 -1
  111. package/lib/labels/index.js +5 -4
  112. package/lib/list/helpers.js +4 -6
  113. package/lib/list/helpers.js.map +1 -1
  114. package/lib/menus/float/index.js +1 -1
  115. package/lib/menus/sidenav/NavMenuItem.js +1 -1
  116. package/lib/menus/sidenav/NavSubMenuItem.js +1 -1
  117. package/lib/panel/Default.js +14 -15
  118. package/lib/panel/Default.js.map +1 -1
  119. package/lib/popover/index.js +1 -1
  120. package/lib/radio/index.js +1 -1
  121. package/lib/skeleton/index.js +13 -14
  122. package/lib/skeleton/index.js.map +1 -1
  123. package/lib/spinner/index.d.ts +2 -0
  124. package/lib/spinner/index.js +1 -0
  125. package/lib/spinner/index.js.map +1 -1
  126. package/lib/table/Body.js +23 -26
  127. package/lib/table/Body.js.map +1 -1
  128. package/lib/tabs/DropdownTabs.js +31 -40
  129. package/lib/tabs/DropdownTabs.js.map +1 -1
  130. package/lib/tabs/MenuTabs.js +16 -19
  131. package/lib/tabs/MenuTabs.js.map +1 -1
  132. package/lib/tabs/context.js +3 -3
  133. package/lib/treetable/Body.js +18 -24
  134. package/lib/treetable/Body.js.map +1 -1
  135. package/lib/treetable/Header.js +9 -12
  136. package/lib/treetable/Header.js.map +1 -1
  137. package/lib/treetable/Row.js +37 -40
  138. package/lib/treetable/Row.js.map +1 -1
  139. package/lib/uitour/index.js +3 -5
  140. package/lib/uitour/index.js.map +1 -1
  141. package/package.json +277 -34
  142. package/lib/buttons/ButtonGroups.js +0 -13
  143. package/lib/buttons/ButtonGroups.js.map +0 -1
  144. package/lib/dropdown/helper.js +0 -9
  145. package/lib/dropdown/helper.js.map +0 -1
  146. package/lib/panel/ToolBar.js +0 -20
  147. package/lib/panel/ToolBar.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../src/lib/checkbox/index.tsx"],"sourcesContent":["import { useState, useEffect, useRef, forwardRef, useImperativeHandle } from 'react';\nimport Grid from '../gridlayout';\nimport { OnDenied } from '../@types/PermissionAttr';\nimport { actionsOnPermissionDenied, OPTIONS_ON_DENIED } from '../permissionValidations';\nimport { ICheckBoxProps } from './types';\nimport '../assets/styles/checkbox.scss';\nimport { ErrorMessage } from '../inputs/errorMessage';\nimport { Icon } from '..';\nimport TextContent from '../textContent';\nimport Popover from '../popover';\nimport Hint from '../hint';\n\n/**\n * IMPORTANTE: Caso seja necessário alterar o nome do componente, deverá ser refatorado\n * o componente Field dentro do componente Form, pois o mesmo leva em consideração o tipo do\n * componente para gerar propriedades customizadas.\n */\n\nconst CheckBox = forwardRef<HTMLInputElement, ICheckBoxProps>(({\n name, required, value, label, onChange, autofocus, hint, id = undefined, gridLayout, \n checked = false, disabled, permissionAttr, tooltip, tooltipPosition = 'top', tooltipWidth = 'auto',\n skeletonize, targetRef, errorMessages, customClassForLabel, hintPosition = 'below',\n themePopover = 'light', popoverAlign = 'left', tabIndex = 0,\n}, ref) => {\n const [isChecked, setIsChecked] = useState(checked);\n const options = [OPTIONS_ON_DENIED.disabled, OPTIONS_ON_DENIED.unvisible];\n const [onDenied] = useState<OnDenied>(actionsOnPermissionDenied(options, permissionAttr));\n const inputRef = useRef<HTMLInputElement | null>(null);\n\n useImperativeHandle(ref, () => inputRef.current!, [inputRef.current]);\n\n useEffect(() => {\n setIsChecked(checked);\n }, [checked]);\n\n const shouldDisable = () => disabled || onDenied.disabled;\n\n const getProps = () => {\n\n if (shouldDisable()) return null;\n const target = {\n checked: !isChecked,\n id,\n name,\n value: !isChecked,\n };\n return {\n onClick: () => {\n if (!shouldDisable() && !skeletonize) {\n setIsChecked(!isChecked);\n onChange?.({ target });\n }\n },\n onKeyDown: undefined,\n role: 'checkbox',\n tabIndex: -1,\n };\n };\n\n const renderInput = () => (\n <div>\n <div\n data-skeletonized={skeletonize}\n className=\"checkbox-component\"\n style={{ display: 'flex', alignItems: 'center' }}>\n <span\n data-testid=\"checkbox-container\"\n className=\"inputcontent\"\n aria-checked={isChecked}\n {...getProps()}>\n <input\n id={id || undefined}\n ref={(r) => {\n if (targetRef) targetRef(r);\n inputRef.current = r;\n }}\n tabIndex={tabIndex}\n className=\"input\"\n type=\"checkbox\"\n autoFocus={autofocus}\n checked={isChecked}\n disabled={shouldDisable()}\n name={name}\n required={required}\n value={value}\n onChange={() => { }} />\n <span>\n <Icon size={12} name=\"checkmark\" />\n </span>\n {label && (\n <div className='description'>\n <TextContent\n required={required}\n disabled={shouldDisable()}\n className={customClassForLabel}\n tooltip={tooltip}\n tooltipWidth={tooltipWidth}\n tooltipPosition={tooltipPosition} />\n {label}\n <TextContent />\n <Hint disabled={disabled} visible={!!hint && hintPosition === 'below'} description={hint} customClass=\"hint\" />\n </div>\n )}\n </span>\n {!!hint && hintPosition === 'onLabelRight' && !skeletonize && (\n <Popover\n theme={themePopover}\n align={popoverAlign}\n customClass=\"-hint\"\n iconColor=\"#03bde2\"\n style={{ margin: '0px 5px', height: 'auto', width: 20 }}>\n {hint}\n </Popover>\n )}\n </div>\n <ErrorMessage messages={errorMessages} />\n </div>\n );\n\n if (onDenied.unvisible) return null;\n\n return (gridLayout ? <Grid customClass=\"-withinput\" cols={gridLayout}>{renderInput()}</Grid> : renderInput());\n});\n\nCheckBox.displayName = 'CheckBox';\n\nexport default CheckBox;\n"],"names":["CheckBox","forwardRef","name","required","value","label","onChange","autofocus","hint","id","undefined","gridLayout","checked","disabled","permissionAttr","tooltip","tooltipPosition","tooltipWidth","skeletonize","targetRef","errorMessages","customClassForLabel","hintPosition","themePopover","popoverAlign","tabIndex","ref","isChecked","setIsChecked","useState","options","OPTIONS_ON_DENIED","unvisible","onDenied","actionsOnPermissionDenied","inputRef","useRef","useImperativeHandle","current","useEffect","shouldDisable","getProps","target","onClick","onKeyDown","role","renderInput","jsxs","display","alignItems","jsx","r","Icon","TextContent","Hint","Popover","margin","height","width","ErrorMessage","Grid","displayName"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkBA,MAAMA,IAAWC,EAA6C,CAAC;AAAA,EAC7DC,MAAAA;AAAAA,EAAMC,UAAAA;AAAAA,EAAUC,OAAAA;AAAAA,EAAOC,OAAAA;AAAAA,EAAOC,UAAAA;AAAAA,EAAUC,WAAAA;AAAAA,EAAWC,MAAAA;AAAAA,EAAMC,IAAAA,IAAKC;AAA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QAAQ;AAAA,QAAWC,QAAQ;AAAA,QAAQC,OAAO;AAAA,MAAA,GAClDlD,UAAAA,EAAAA,CACH;AAAA,IAAA,GAEJ;AAAA,IACA,gBAAA0C,EAACS,GAAA,EAAa,UAAUvC,EAAAA,CAAc;AAAA,EAAA,GACxC;AAGF,SAAIa,EAASD,YAAkB,OAEvBrB,IAAa,gBAAAuC,EAACU,GAAA,EAAK,aAAY,cAAa,MAAMjD,GAAamC,UAAAA,IAAY,CAAE,IAAUA,EAAAA;AACjG,CAAC;AAED9C,EAAS6D,cAAc;"}
1
+ {"version":3,"file":"index.js","sources":["../../src/lib/checkbox/index.tsx"],"sourcesContent":["import { useState, useEffect, useRef, forwardRef, useImperativeHandle } from 'react';\nimport Grid from '../gridlayout';\nimport { OnDenied } from '../@types/PermissionAttr';\nimport { actionsOnPermissionDenied, OPTIONS_ON_DENIED } from '../permissionValidations';\nimport { ICheckBoxProps } from './types';\nimport '../assets/styles/checkbox.scss';\nimport { ErrorMessage } from '../inputs/errorMessage';\nimport { Icon } from '..';\nimport TextContent from '../textContent';\nimport Popover from '../popover';\nimport Hint from '../hint';\n\n/**\n * IMPORTANTE: Caso seja necessário alterar o nome do componente, deverá ser refatorado\n * o componente Field dentro do componente Form, pois o mesmo leva em consideração o tipo do\n * componente para gerar propriedades customizadas.\n */\n\nconst CheckBox = forwardRef<HTMLInputElement, ICheckBoxProps>(({\n name, required, value, label, onChange, autofocus, hint, id = undefined, gridLayout, \n checked = false, disabled, permissionAttr, tooltip, tooltipPosition = 'top', tooltipWidth = 'auto',\n skeletonize, targetRef, errorMessages, customClassForLabel, hintPosition = 'below',\n themePopover = 'light', popoverAlign = 'left', tabIndex = 0,\n}, ref) => {\n const [isChecked, setIsChecked] = useState(checked);\n const options = [OPTIONS_ON_DENIED.disabled, OPTIONS_ON_DENIED.unvisible];\n const [onDenied] = useState<OnDenied>(actionsOnPermissionDenied(options, permissionAttr));\n const inputRef = useRef<HTMLInputElement | null>(null);\n\n useImperativeHandle(ref, () => inputRef.current!, [inputRef.current]);\n\n useEffect(() => {\n setIsChecked(checked);\n }, [checked]);\n\n const shouldDisable = () => disabled || onDenied.disabled;\n\n const getProps = () => {\n\n if (shouldDisable()) return null;\n const target = {\n checked: !isChecked,\n id,\n name,\n value: !isChecked,\n };\n return {\n onClick: () => {\n if (!shouldDisable() && !skeletonize) {\n setIsChecked(!isChecked);\n onChange?.({ target });\n }\n },\n onKeyDown: undefined,\n role: 'checkbox',\n tabIndex: -1,\n };\n };\n\n const renderInput = () => (\n <div>\n <div\n data-skeletonized={skeletonize}\n className=\"checkbox-component\"\n style={{ display: 'flex', alignItems: 'center' }}>\n <span\n data-testid=\"checkbox-container\"\n className=\"inputcontent\"\n aria-checked={isChecked}\n {...getProps()}>\n <input\n id={id || undefined}\n ref={(r) => {\n if (targetRef) targetRef(r);\n inputRef.current = r;\n }}\n tabIndex={tabIndex}\n className=\"input\"\n type=\"checkbox\"\n autoFocus={autofocus}\n checked={isChecked}\n disabled={shouldDisable()}\n name={name}\n required={required}\n value={value}\n onChange={() => { }} />\n <span>\n <Icon size={12} name=\"checkmark\" />\n </span>\n {label && (\n <div className='description'>\n <TextContent\n required={required}\n disabled={shouldDisable()}\n className={customClassForLabel}\n tooltip={tooltip}\n tooltipWidth={tooltipWidth}\n tooltipPosition={tooltipPosition} />\n {label}\n <TextContent />\n <Hint disabled={disabled} visible={!!hint && hintPosition === 'below'} description={hint} customClass=\"hint\" />\n </div>\n )}\n </span>\n {!!hint && hintPosition === 'onLabelRight' && !skeletonize && (\n <Popover\n theme={themePopover}\n align={popoverAlign}\n customClass=\"-hint\"\n iconColor=\"#03bde2\"\n style={{ margin: '0px 5px', height: 'auto', width: 20 }}>\n {hint}\n </Popover>\n )}\n </div>\n <ErrorMessage messages={errorMessages} />\n </div>\n );\n\n if (onDenied.unvisible) return null;\n\n return (gridLayout ? <Grid customClass=\"-withinput\" cols={gridLayout}>{renderInput()}</Grid> : renderInput());\n});\n\nCheckBox.displayName = 'CheckBox';\n\nexport default CheckBox;\n"],"names":["CheckBox","forwardRef","name","required","value","label","onChange","autofocus","hint","id","undefined","gridLayout","checked","disabled","permissionAttr","tooltip","tooltipPosition","tooltipWidth","skeletonize","targetRef","errorMessages","customClassForLabel","hintPosition","themePopover","popoverAlign","tabIndex","ref","isChecked","setIsChecked","useState","options","OPTIONS_ON_DENIED","unvisible","onDenied","actionsOnPermissionDenied","inputRef","useRef","useImperativeHandle","current","useEffect","shouldDisable","getProps","target","onClick","onKeyDown","role","renderInput","jsxs","display","alignItems","jsx","r","Icon","TextContent","Hint","Popover","margin","height","width","ErrorMessage","Grid","displayName"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAkBA,MAAMA,IAAWC,EAA6C,CAAC;AAAA,EAC7DC,MAAAA;AAAAA,EAAMC,UAAAA;AAAAA,EAAUC,OAAAA;AAAAA,EAAOC,OAAAA;AAAAA,EAAOC,UAAAA;AAAAA,EAAUC,WAAAA;AAAAA,EAAWC,MAAAA;AAAAA,EAAMC,IAAAA,IAAKC;AAAAA,EAAWC,YAAAA;AAAAA,EACzEC,SAAAA,IAAU;AAAA,EAAOC,UAAAA;AAAAA,EAAUC,gBAAAA;AAAAA,EAAgBC,SAAAA;AAAAA,EAASC,iBAAAA,IAAkB;AAAA,EAAOC,cAAAA,IAAe;AAAA,EAC5FC,aAAAA;AAAAA,EAAaC,WAAAA;AAAAA,EAAWC,eAAAA;AAAAA,EAAeC,qBAAAA;AAAAA,EAAqBC,cAAAA,IAAe;AAAA,EAC3EC,cAAAA,IAAe;AAAA,EAASC,cAAAA,IAAe;AAAA,EAAQC,UAAAA,IAAW;AAC5D,GAAGC,MAAQ;AACT,QAAM,CAACC,GAAWC,CAAY,IAAIC,EAASjB,CAAO,GAC5CkB,IAAU,CAACC,EAAkBlB,UAAUkB,EAAkBC,SAAS,GAClE,CAACC,CAAQ,IAAIJ,EAAmBK,EAA0BJ,GAAShB,CAAc,CAAC,GAClFqB,IAAWC,EAAgC,IAAI;AA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,gBAAA8C,EAAC,UACC,UAAA,gBAAAA,EAACE,GAAA,EAAK,MAAM,IAAI,MAAK,aAAW,EAAA,CAClC;AAAA,QACC/C,KACC,gBAAA0C,EAAC,OAAA,EAAI,WAAU,eACb,UAAA;AAAA,UAAA,gBAAAG,EAACG,GAAA,EACC,UAAAlD,GACA,UAAUqC,EAAAA,GACV,WAAWnB,GACX,SAAAN,GACA,cAAAE,GACA,iBAAAD,EAAA,CAAiC;AAAA,UAClCX;AAAAA,4BACAgD,GAAA,EAAW;AAAA,UACZ,gBAAAH,EAACI,GAAA,EAAK,UAAAzC,GAAoB,SAAS,CAAC,CAACL,KAAQc,MAAiB,SAAS,aAAad,GAAM,aAAY,OAAA,CAAM;AAAA,QAAA,EAAA,CAC9G;AAAA,MAAA,GAEJ;AAAA,MACC,CAAC,CAACA,KAAQc,MAAiB,kBAAkB,CAACJ,KAC7C,gBAAAgC,EAACK,GAAA,EACC,OAAOhC,GACP,OAAOC,GACP,aAAY,SACZ,WAAU,WACV,OAAO;AAAA,QAAEgC,QAAQ;AAAA,QAAWC,QAAQ;AAAA,QAAQC,OAAO;AAAA,MAAA,GAClDlD,UAAAA,EAAAA,CACH;AAAA,IAAA,GAEJ;AAAA,IACA,gBAAA0C,EAACS,GAAA,EAAa,UAAUvC,EAAAA,CAAc;AAAA,EAAA,GACxC;AAGF,SAAIa,EAASD,YAAkB,OAEvBrB,IAAa,gBAAAuC,EAACU,GAAA,EAAK,aAAY,cAAa,MAAMjD,GAAamC,UAAAA,IAAY,CAAE,IAAUA,EAAAA;AACjG,CAAC;AAED9C,EAAS6D,cAAc;"}
@@ -1,25 +1,23 @@
1
1
  import { jsx as l } from "react/jsx-runtime";
2
2
  import { c as a } from "../_virtual/compiler-runtime.js";
3
- import "react";
4
- import "../buttons/DefaultButton.js";
5
- import s from "../icons/index.js";
6
- import u from "../buttons/PrimaryButton.js";
3
+ import s from "../buttons/PrimaryButton.js";
7
4
  import '../assets/styles/button.css';/* empty css */
8
- import b from "./Custom.js";
9
- const h = (t) => {
5
+ import u from "./Custom.js";
6
+ import b from "../icons/index.js";
7
+ const L = (t) => {
10
8
  const o = a.c(7), {
11
9
  onConfirmClick: i,
12
10
  confirmLabel: f
13
11
  } = t, n = f === void 0 ? "Confirmar" : f;
12
+ let e;
13
+ o[0] !== n || o[1] !== i ? (e = [/* @__PURE__ */ l(s, { onClick: i, label: n }, "confirm-buttom")], o[0] = n, o[1] = i, o[2] = e) : e = o[2];
14
+ const c = e;
14
15
  let m;
15
- o[0] !== n || o[1] !== i ? (m = [/* @__PURE__ */ l(u, { onClick: i, label: n }, "confirm-buttom")], o[0] = n, o[1] = i, o[2] = m) : m = o[2];
16
- const c = m;
16
+ o[3] === Symbol.for("react.memo_cache_sentinel") ? (m = /* @__PURE__ */ l(b, { name: "exclamation", color: "#f39c12", size: 64 }), o[3] = m) : m = o[3];
17
17
  let r;
18
- o[3] === Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */ l(s, { name: "exclamation", color: "#f39c12", size: 64 }), o[3] = r) : r = o[3];
19
- let e;
20
- return o[4] !== c || o[5] !== t ? (e = /* @__PURE__ */ l(b, { ...t, buttons: c, icon: r }), o[4] = c, o[5] = t, o[6] = e) : e = o[6], e;
18
+ return o[4] !== c || o[5] !== t ? (r = /* @__PURE__ */ l(u, { ...t, buttons: c, icon: m }), o[4] = c, o[5] = t, o[6] = r) : r = o[6], r;
21
19
  };
22
20
  export {
23
- h as default
21
+ L as default
24
22
  };
25
23
  //# sourceMappingURL=Alert.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Alert.js","sources":["../../src/lib/dialog/Alert.tsx"],"sourcesContent":["import { PrimaryButton } from '../buttons';\nimport Custom from './Custom';\nimport Icon from '../icons';\nimport { ICommonDialogProps } from './types';\n\nconst Alert = (props: ICommonDialogProps) => {\n const { onConfirmClick, confirmLabel = 'Confirmar' } = props;\n\n const buttons = [\n <PrimaryButton key=\"confirm-buttom\" onClick={onConfirmClick} label={confirmLabel} />,\n ];\n\n return (\n <Custom\n {...props}\n buttons={buttons}\n icon={<Icon name=\"exclamation\" color=\"#f39c12\" size={64} />} />\n );\n};\n\nexport default Alert;\n"],"names":["Alert","props","$","_c","onConfirmClick","confirmLabel","t0","undefined","t1","PrimaryButton","buttons","t2","Symbol","for","Icon","t3","Custom"],"mappings":";;;;;;;;AAKA,MAAMA,IAAQC,CAAAA,MAAA;AAAA,QAAAC,IAAAC,EAAAA,EAAA,CAAA,GACZ;AAAA,IAAAC,gBAAAA;AAAAA,IAAAC,cAAAC;AAAAA,EAAAA,IAAuDL,GAA/BI,IAAAC,MAAAC,SAAA,cAAAD;AAA0B,MAAAE;AAAA,EAAAN,EAAA,CAAA,MAAAG,KAAAH,SAAAE,KAElCI,uBACbC,GAAA,EAA4CL,SAAAA,GAAuBC,OAAAA,KAAjD,iBAAiE,GACrFH,OAAAG,GAAAH,OAAAE,GAAAF,OAAAM,KAAAA,IAAAN,EAAA,CAAA;AAFD,QAAAQ,IAAgBF;AAEd,MAAAG;AAAA,EAAAT,EAAA,CAAA,MAAAU,OAAAC,IAAA,2BAAA,KAMQF,sBAACG,GAAA,EAAU,MAAA,eAAoB,OAAA,WAAgB,MAAA,IAAE,GAAIZ,OAAAS,KAAAA,IAAAT,EAAA,CAAA;AAAA,MAAAa;AAAA,SAAAb,EAAA,CAAA,MAAAQ,KAAAR,SAAAD,KAH7Dc,sBAACC,GAAA,EAAM,GACDf,GACKS,SAAAA,GACH,MAAAC,GAAqD,GAAIT,OAAAQ,GAAAR,OAAAD,GAAAC,OAAAa,KAAAA,IAAAb,EAAA,CAAA,GAHjEa;AAGiE;"}
1
+ {"version":3,"file":"Alert.js","sources":["../../src/lib/dialog/Alert.tsx"],"sourcesContent":["import { PrimaryButton } from '../buttons';\nimport Custom from './Custom';\nimport Icon from '../icons';\nimport { ICommonDialogProps } from './types';\n\nconst Alert = (props: ICommonDialogProps) => {\n const { onConfirmClick, confirmLabel = 'Confirmar' } = props;\n\n const buttons = [\n <PrimaryButton key=\"confirm-buttom\" onClick={onConfirmClick} label={confirmLabel} />,\n ];\n\n return (\n <Custom\n {...props}\n buttons={buttons}\n icon={<Icon name=\"exclamation\" color=\"#f39c12\" size={64} />} />\n );\n};\n\nexport default Alert;\n"],"names":["Alert","props","$","_c","onConfirmClick","confirmLabel","t0","undefined","t1","PrimaryButton","buttons","t2","Symbol","for","Icon","t3","Custom"],"mappings":";;;;;;AAKA,MAAMA,IAAQC,CAAAA,MAAA;AAAA,QAAAC,IAAAC,EAAAA,EAAA,CAAA,GACZ;AAAA,IAAAC,gBAAAA;AAAAA,IAAAC,cAAAC;AAAAA,EAAAA,IAAuDL,GAA/BI,IAAAC,MAAAC,SAAA,cAAAD;AAA0B,MAAAE;AAAA,EAAAN,EAAA,CAAA,MAAAG,KAAAH,SAAAE,KAElCI,uBACbC,GAAA,EAA4CL,SAAAA,GAAuBC,OAAAA,KAAjD,iBAAiE,GACrFH,OAAAG,GAAAH,OAAAE,GAAAF,OAAAM,KAAAA,IAAAN,EAAA,CAAA;AAFD,QAAAQ,IAAgBF;AAEd,MAAAG;AAAA,EAAAT,EAAA,CAAA,MAAAU,OAAAC,IAAA,2BAAA,KAMQF,sBAACG,GAAA,EAAU,MAAA,eAAoB,OAAA,WAAgB,MAAA,IAAE,GAAIZ,OAAAS,KAAAA,IAAAT,EAAA,CAAA;AAAA,MAAAa;AAAA,SAAAb,EAAA,CAAA,MAAAQ,KAAAR,SAAAD,KAH7Dc,sBAACC,GAAA,EAAM,GACDf,GACKS,SAAAA,GACH,MAAAC,GAAqD,GAAIT,OAAAQ,GAAAR,OAAAD,GAAAC,OAAAa,KAAAA,IAAAb,EAAA,CAAA,GAHjEa;AAGiE;"}
@@ -5,10 +5,9 @@ import w from "./base/index.js";
5
5
  import C from "./base/Footer.js";
6
6
  import j from "../icons/index.js";
7
7
  import B from "../buttons/button_container/index.js";
8
- import "../buttons/DefaultButton.js";
9
8
  import '../assets/styles/button.css';/* empty css */
10
9
  import E from "../node_modules/uuid/dist/v1.js";
11
- const I = (e, t) => t || (e ? /* @__PURE__ */ r(j, { name: e, color: "#000", size: 64 }) : null), H = (e) => {
10
+ const I = (e, t) => t || (e ? /* @__PURE__ */ r(j, { name: e, color: "#000", size: 64 }) : null), G = (e) => {
12
11
  const t = N.c(22), {
13
12
  width: h,
14
13
  height: v,
@@ -43,6 +42,6 @@ function $(e) {
43
42
  });
44
43
  }
45
44
  export {
46
- H as default
45
+ G as default
47
46
  };
48
47
  //# sourceMappingURL=Custom.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Custom.js","sources":["../../src/lib/dialog/Custom.tsx"],"sourcesContent":["import { cloneElement, ReactElement } from 'react';\nimport * as uuid from 'uuid';\nimport BaseDialog from './base';\nimport FormFooter from './base/Footer';\nimport Icon from '../icons';\nimport { ButtonContainer } from '../buttons';\nimport { ICustomProps } from './types';\nimport { IconNames } from '../@types/Icon';\n\nconst getIcon = (iconName: IconNames | null, icon: ReactElement) => {\n if (icon) {\n return icon;\n } else if (iconName) {\n return <Icon name={iconName} color=\"#000\" size={64} />;\n }\n return null;\n};\n\nconst Custom = (props: ICustomProps) => {\n const { width = '35%', height = 'auto', iconName = null, open } = props;\n return (\n <BaseDialog\n open={open}\n width={width}\n height={height}\n {...props}\n wrapperClassName=\"dialog-alert-wrapper\">\n <div className=\"icon\">\n {getIcon(iconName, props.icon)}\n </div>\n <div className=\"container\">\n {props.title &&\n <div className=\"title\">\n {props.title}\n </div>}\n <div className=\"text\">\n {props.text}\n </div>\n </div>\n {props.buttons && props.buttons.length > 0 && (\n <FormFooter {...props}>\n <ButtonContainer position=\"right\">\n {props.buttons.map(button => cloneElement(button, { key: `button-${uuid.v1()}` }))}\n </ButtonContainer>\n </FormFooter>\n )}\n </BaseDialog>\n );\n};\n\nexport default Custom;\n"],"names":["getIcon","iconName","icon","Icon","Custom","props","$","_c","width","t0","height","t1","t2","open","undefined","t3","t4","jsx","t5","title","t6","text","t7","jsxs","t8","buttons","length","FormFooter","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{ cloneElement, ReactElement } from 'react';\nimport * as uuid from 'uuid';\nimport BaseDialog from './base';\nimport FormFooter from './base/Footer';\nimport Icon from '../icons';\nimport { ButtonContainer } from '../buttons';\nimport { ICustomProps } from './types';\nimport { IconNames } from '../@types/Icon';\n\nconst getIcon = (iconName: IconNames | null, icon: ReactElement) => {\n if (icon) {\n return icon;\n } else if (iconName) {\n return <Icon name={iconName} color=\"#000\" size={64} />;\n }\n return null;\n};\n\nconst Custom = (props: ICustomProps) => {\n const { width = '35%', height = 'auto', iconName = null, open } = props;\n return (\n <BaseDialog\n open={open}\n width={width}\n height={height}\n {...props}\n wrapperClassName=\"dialog-alert-wrapper\">\n <div className=\"icon\">\n {getIcon(iconName, props.icon)}\n </div>\n <div className=\"container\">\n {props.title &&\n <div className=\"title\">\n {props.title}\n </div>}\n <div className=\"text\">\n {props.text}\n </div>\n </div>\n {props.buttons && props.buttons.length > 0 && (\n <FormFooter {...props}>\n <ButtonContainer position=\"right\">\n {props.buttons.map(button => cloneElement(button, { key: `button-${uuid.v1()}` }))}\n </ButtonContainer>\n </FormFooter>\n )}\n </BaseDialog>\n );\n};\n\nexport default Custom;\n"],"names":["getIcon","iconName","icon","Icon","Custom","props","$","_c","width","t0","height","t1","t2","open","undefined","t3","t4","jsx","t5","title","t6","text","t7","jsxs","t8","buttons","length","FormFooter","ButtonContainer","map","_temp","t9","BaseDialog","button","cloneElement","key","uuid"],"mappings":";;;;;;;;;AASA,MAAMA,IAAUA,CAACC,GAA4BC,MACvCA,MAEOD,sBACDE,GAAA,EAAK,MAAMF,GAAU,OAAM,QAAO,MAAM,IAAG,IAE9C,OAGHG,IAASC,CAAAA,MAAA;AAAA,QAAAC,IAAAC,EAAAA,EAAA,EAAA,GACb;AAAA,IAAAC,OAAAC;AAAAA,IAAAC,QAAAC;AAAAA,IAAAV,UAAAW;AAAAA,IAAAC,MAAAA;AAAAA,EAAAA,IAAkER,GAA1DG,IAAAC,MAAAK,SAAA,QAAAL,GAAeC,IAAAC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EAAKoB,QAAQI,IAAKC,CAA8D,GACnF,EAAA,CACF,GACDxB,QAAAD,GAAAC,QAAAkB,KAAAA,IAAAlB,EAAA,EAAA;AAAA,MAAAyB;AAAA,SAAAzB,EAAA,EAAA,MAAAI,KAAAJ,EAAA,EAAA,MAAAO,KAAAP,EAAA,EAAA,MAAAD,KAAAC,UAAAU,KAAAV,EAAA,EAAA,MAAAgB,KAAAhB,EAAA,EAAA,MAAAkB,KAAAlB,EAAA,EAAA,MAAAE,KAxBHuB,IAAA,gBAAAR,EAACS,KACOnB,MAAAA,GACCL,OAAAA,GACCE,QAAAA,GAAM,GACVL,GACa,kBAAA,wBACjBW,UAAAA;AAAAA,IAAAA;AAAAA,IAGAM;AAAAA,IASCE;AAAAA,EAAAA,GAOH,GAAalB,QAAAI,GAAAJ,QAAAO,GAAAP,QAAAD,GAAAC,QAAAU,GAAAV,QAAAgB,GAAAhB,QAAAkB,GAAAlB,QAAAE,GAAAF,QAAAyB,KAAAA,IAAAzB,EAAA,EAAA,GAzBbyB;AAyBa;AA5BF,SAAAD,EAAAG,GAAA;AAAA,SAwB0BC,EAAaD,GAAQ;AAAA,IAAAE,KAAO,UAAUC,GAAS;AAAA,EAAA,CAAI;AAAC;"}
@@ -1,25 +1,23 @@
1
1
  import { jsx as l } from "react/jsx-runtime";
2
2
  import { c as s } from "../_virtual/compiler-runtime.js";
3
- import "react";
4
- import "../buttons/DefaultButton.js";
5
- import a from "../icons/index.js";
6
- import b from "../buttons/PrimaryButton.js";
3
+ import a from "../buttons/PrimaryButton.js";
7
4
  import '../assets/styles/button.css';/* empty css */
8
- import u from "./Custom.js";
9
- const _ = (t) => {
5
+ import b from "./Custom.js";
6
+ import u from "../icons/index.js";
7
+ const E = (t) => {
10
8
  const o = s.c(7), {
11
9
  onConfirmClick: i,
12
10
  confirmLabel: f
13
11
  } = t, c = f === void 0 ? "Confirmar" : f;
14
12
  let r;
15
- o[0] !== c || o[1] !== i ? (r = [/* @__PURE__ */ l(b, { onClick: i, label: c }, "confirm-buttom")], o[0] = c, o[1] = i, o[2] = r) : r = o[2];
13
+ o[0] !== c || o[1] !== i ? (r = [/* @__PURE__ */ l(a, { onClick: i, label: c }, "confirm-buttom")], o[0] = c, o[1] = i, o[2] = r) : r = o[2];
16
14
  const n = r;
17
- let m;
18
- o[3] === Symbol.for("react.memo_cache_sentinel") ? (m = /* @__PURE__ */ l(a, { name: "block", color: "#e74c3c", size: 64 }), o[3] = m) : m = o[3];
19
15
  let e;
20
- return o[4] !== n || o[5] !== t ? (e = /* @__PURE__ */ l(u, { ...t, buttons: n, icon: m }), o[4] = n, o[5] = t, o[6] = e) : e = o[6], e;
16
+ o[3] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ l(u, { name: "block", color: "#e74c3c", size: 64 }), o[3] = e) : e = o[3];
17
+ let m;
18
+ return o[4] !== n || o[5] !== t ? (m = /* @__PURE__ */ l(b, { ...t, buttons: n, icon: e }), o[4] = n, o[5] = t, o[6] = m) : m = o[6], m;
21
19
  };
22
20
  export {
23
- _ as default
21
+ E as default
24
22
  };
25
23
  //# sourceMappingURL=Error.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Error.js","sources":["../../src/lib/dialog/Error.tsx"],"sourcesContent":["import { PrimaryButton } from '../../lib/buttons';\nimport Custom from './Custom';\nimport Icon from '../../lib/icons';\nimport { ICommonDialogProps } from './types';\n\nconst Error = (props: ICommonDialogProps) => {\n const { onConfirmClick, confirmLabel = 'Confirmar' } = props;\n\n const buttons = [\n <PrimaryButton key=\"confirm-buttom\" onClick={onConfirmClick} label={confirmLabel} />,\n ];\n\n return (\n <Custom\n {...props}\n buttons={buttons}\n icon={<Icon name=\"block\" color=\"#e74c3c\" size={64} />} />\n );\n};\n\nexport default Error;\n"],"names":["Error","props","$","_c","onConfirmClick","confirmLabel","t0","undefined","t1","PrimaryButton","buttons","t2","Symbol","for","Icon","t3","Custom"],"mappings":";;;;;;;;AAKA,MAAMA,IAAQC,CAAAA,MAAA;AAAA,QAAAC,IAAAC,EAAAA,EAAA,CAAA,GACZ;AAAA,IAAAC,gBAAAA;AAAAA,IAAAC,cAAAC;AAAAA,EAAAA,IAAuDL,GAA/BI,IAAAC,MAAAC,SAAA,cAAAD;AAA0B,MAAAE;AAAA,EAAAN,EAAA,CAAA,MAAAG,KAAAH,SAAAE,KAElCI,uBACbC,GAAA,EAA4CL,SAAAA,GAAuBC,OAAAA,KAAjD,iBAAiE,GACrFH,OAAAG,GAAAH,OAAAE,GAAAF,OAAAM,KAAAA,IAAAN,EAAA,CAAA;AAFD,QAAAQ,IAAgBF;AAEd,MAAAG;AAAA,EAAAT,EAAA,CAAA,MAAAU,OAAAC,IAAA,2BAAA,KAMQF,sBAACG,GAAA,EAAU,MAAA,SAAc,OAAA,WAAgB,MAAA,IAAE,GAAIZ,OAAAS,KAAAA,IAAAT,EAAA,CAAA;AAAA,MAAAa;AAAA,SAAAb,EAAA,CAAA,MAAAQ,KAAAR,SAAAD,KAHvDc,sBAACC,GAAA,EAAM,GACDf,GACKS,SAAAA,GACH,MAAAC,GAA+C,GAAIT,OAAAQ,GAAAR,OAAAD,GAAAC,OAAAa,KAAAA,IAAAb,EAAA,CAAA,GAH3Da;AAG2D;"}
1
+ {"version":3,"file":"Error.js","sources":["../../src/lib/dialog/Error.tsx"],"sourcesContent":["import { PrimaryButton } from '../../lib/buttons';\nimport Custom from './Custom';\nimport Icon from '../../lib/icons';\nimport { ICommonDialogProps } from './types';\n\nconst Error = (props: ICommonDialogProps) => {\n const { onConfirmClick, confirmLabel = 'Confirmar' } = props;\n\n const buttons = [\n <PrimaryButton key=\"confirm-buttom\" onClick={onConfirmClick} label={confirmLabel} />,\n ];\n\n return (\n <Custom\n {...props}\n buttons={buttons}\n icon={<Icon name=\"block\" color=\"#e74c3c\" size={64} />} />\n );\n};\n\nexport default Error;\n"],"names":["Error","props","$","_c","onConfirmClick","confirmLabel","t0","undefined","t1","PrimaryButton","buttons","t2","Symbol","for","Icon","t3","Custom"],"mappings":";;;;;;AAKA,MAAMA,IAAQC,CAAAA,MAAA;AAAA,QAAAC,IAAAC,EAAAA,EAAA,CAAA,GACZ;AAAA,IAAAC,gBAAAA;AAAAA,IAAAC,cAAAC;AAAAA,EAAAA,IAAuDL,GAA/BI,IAAAC,MAAAC,SAAA,cAAAD;AAA0B,MAAAE;AAAA,EAAAN,EAAA,CAAA,MAAAG,KAAAH,SAAAE,KAElCI,uBACbC,GAAA,EAA4CL,SAAAA,GAAuBC,OAAAA,KAAjD,iBAAiE,GACrFH,OAAAG,GAAAH,OAAAE,GAAAF,OAAAM,KAAAA,IAAAN,EAAA,CAAA;AAFD,QAAAQ,IAAgBF;AAEd,MAAAG;AAAA,EAAAT,EAAA,CAAA,MAAAU,OAAAC,IAAA,2BAAA,KAMQF,sBAACG,GAAA,EAAU,MAAA,SAAc,OAAA,WAAgB,MAAA,IAAE,GAAIZ,OAAAS,KAAAA,IAAAT,EAAA,CAAA;AAAA,MAAAa;AAAA,SAAAb,EAAA,CAAA,MAAAQ,KAAAR,SAAAD,KAHvDc,sBAACC,GAAA,EAAM,GACDf,GACKS,SAAAA,GACH,MAAAC,GAA+C,GAAIT,OAAAQ,GAAAR,OAAAD,GAAAC,OAAAa,KAAAA,IAAAb,EAAA,CAAA,GAH3Da;AAG2D;"}
@@ -1,25 +1,23 @@
1
1
  import { jsx as f } from "react/jsx-runtime";
2
2
  import { c as a } from "../_virtual/compiler-runtime.js";
3
- import "react";
4
- import "../buttons/DefaultButton.js";
5
- import s from "../icons/index.js";
6
- import b from "../buttons/PrimaryButton.js";
3
+ import s from "../buttons/PrimaryButton.js";
7
4
  import '../assets/styles/button.css';/* empty css */
8
- import u from "./Custom.js";
9
- const _ = (t) => {
5
+ import b from "./Custom.js";
6
+ import u from "../icons/index.js";
7
+ const I = (t) => {
10
8
  const o = a.c(7), {
11
9
  onConfirmClick: n,
12
10
  confirmLabel: l
13
11
  } = t, e = l === void 0 ? "Confirmar" : l;
14
12
  let m;
15
- o[0] !== e || o[1] !== n ? (m = [/* @__PURE__ */ f(b, { onClick: n, label: e }, "confirm-buttom")], o[0] = e, o[1] = n, o[2] = m) : m = o[2];
13
+ o[0] !== e || o[1] !== n ? (m = [/* @__PURE__ */ f(s, { onClick: n, label: e }, "confirm-buttom")], o[0] = e, o[1] = n, o[2] = m) : m = o[2];
16
14
  const c = m;
17
15
  let i;
18
- o[3] === Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ f(s, { name: "information", color: "#24cabc", size: 64 }), o[3] = i) : i = o[3];
16
+ o[3] === Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ f(u, { name: "information", color: "#24cabc", size: 64 }), o[3] = i) : i = o[3];
19
17
  let r;
20
- return o[4] !== c || o[5] !== t ? (r = /* @__PURE__ */ f(u, { ...t, buttons: c, icon: i }), o[4] = c, o[5] = t, o[6] = r) : r = o[6], r;
18
+ return o[4] !== c || o[5] !== t ? (r = /* @__PURE__ */ f(b, { ...t, buttons: c, icon: i }), o[4] = c, o[5] = t, o[6] = r) : r = o[6], r;
21
19
  };
22
20
  export {
23
- _ as default
21
+ I as default
24
22
  };
25
23
  //# sourceMappingURL=Information.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Information.js","sources":["../../src/lib/dialog/Information.tsx"],"sourcesContent":["import { PrimaryButton } from '../../lib/buttons';\nimport Custom from './Custom';\nimport Icon from '../../lib/icons';\nimport { ICommonDialogProps } from './types';\n\nconst Information = (props: ICommonDialogProps) => {\n const { onConfirmClick, confirmLabel = 'Confirmar' } = props;\n\n const buttons = [\n <PrimaryButton key=\"confirm-buttom\" onClick={onConfirmClick} label={confirmLabel} />,\n ];\n\n return (\n <Custom\n {...props}\n buttons={buttons}\n icon={<Icon name=\"information\" color=\"#24cabc\" size={64} />} />\n );\n};\n\nexport default Information;\n"],"names":["Information","props","$","_c","onConfirmClick","confirmLabel","t0","undefined","t1","PrimaryButton","buttons","t2","Symbol","for","Icon","t3","Custom"],"mappings":";;;;;;;;AAKA,MAAMA,IAAcC,CAAAA,MAAA;AAAA,QAAAC,IAAAC,EAAAA,EAAA,CAAA,GAClB;AAAA,IAAAC,gBAAAA;AAAAA,IAAAC,cAAAC;AAAAA,EAAAA,IAAuDL,GAA/BI,IAAAC,MAAAC,SAAA,cAAAD;AAA0B,MAAAE;AAAA,EAAAN,EAAA,CAAA,MAAAG,KAAAH,SAAAE,KAElCI,uBACbC,GAAA,EAA4CL,SAAAA,GAAuBC,OAAAA,KAAjD,iBAAiE,GACrFH,OAAAG,GAAAH,OAAAE,GAAAF,OAAAM,KAAAA,IAAAN,EAAA,CAAA;AAFD,QAAAQ,IAAgBF;AAEd,MAAAG;AAAA,EAAAT,EAAA,CAAA,MAAAU,OAAAC,IAAA,2BAAA,KAMQF,sBAACG,GAAA,EAAU,MAAA,eAAoB,OAAA,WAAgB,MAAA,IAAE,GAAIZ,OAAAS,KAAAA,IAAAT,EAAA,CAAA;AAAA,MAAAa;AAAA,SAAAb,EAAA,CAAA,MAAAQ,KAAAR,SAAAD,KAH7Dc,sBAACC,GAAA,EAAM,GACDf,GACKS,SAAAA,GACH,MAAAC,GAAqD,GAAIT,OAAAQ,GAAAR,OAAAD,GAAAC,OAAAa,KAAAA,IAAAb,EAAA,CAAA,GAHjEa;AAGiE;"}
1
+ {"version":3,"file":"Information.js","sources":["../../src/lib/dialog/Information.tsx"],"sourcesContent":["import { PrimaryButton } from '../../lib/buttons';\nimport Custom from './Custom';\nimport Icon from '../../lib/icons';\nimport { ICommonDialogProps } from './types';\n\nconst Information = (props: ICommonDialogProps) => {\n const { onConfirmClick, confirmLabel = 'Confirmar' } = props;\n\n const buttons = [\n <PrimaryButton key=\"confirm-buttom\" onClick={onConfirmClick} label={confirmLabel} />,\n ];\n\n return (\n <Custom\n {...props}\n buttons={buttons}\n icon={<Icon name=\"information\" color=\"#24cabc\" size={64} />} />\n );\n};\n\nexport default Information;\n"],"names":["Information","props","$","_c","onConfirmClick","confirmLabel","t0","undefined","t1","PrimaryButton","buttons","t2","Symbol","for","Icon","t3","Custom"],"mappings":";;;;;;AAKA,MAAMA,IAAcC,CAAAA,MAAA;AAAA,QAAAC,IAAAC,EAAAA,EAAA,CAAA,GAClB;AAAA,IAAAC,gBAAAA;AAAAA,IAAAC,cAAAC;AAAAA,EAAAA,IAAuDL,GAA/BI,IAAAC,MAAAC,SAAA,cAAAD;AAA0B,MAAAE;AAAA,EAAAN,EAAA,CAAA,MAAAG,KAAAH,SAAAE,KAElCI,uBACbC,GAAA,EAA4CL,SAAAA,GAAuBC,OAAAA,KAAjD,iBAAiE,GACrFH,OAAAG,GAAAH,OAAAE,GAAAF,OAAAM,KAAAA,IAAAN,EAAA,CAAA;AAFD,QAAAQ,IAAgBF;AAEd,MAAAG;AAAA,EAAAT,EAAA,CAAA,MAAAU,OAAAC,IAAA,2BAAA,KAMQF,sBAACG,GAAA,EAAU,MAAA,eAAoB,OAAA,WAAgB,MAAA,IAAE,GAAIZ,OAAAS,KAAAA,IAAAT,EAAA,CAAA;AAAA,MAAAa;AAAA,SAAAb,EAAA,CAAA,MAAAQ,KAAAR,SAAAD,KAH7Dc,sBAACC,GAAA,EAAM,GACDf,GACKS,SAAAA,GACH,MAAAC,GAAqD,GAAIT,OAAAQ,GAAAR,OAAAD,GAAAC,OAAAa,KAAAA,IAAAb,EAAA,CAAA,GAHjEa;AAGiE;"}
@@ -3,9 +3,9 @@ import { c as g } from "../_virtual/compiler-runtime.js";
3
3
  import { useLayoutEffect as _, useEffect as x } from "react";
4
4
  import B from "../buttons/Button.js";
5
5
  import S from "../buttons/DangerButton.js";
6
- import U from "../icons/index.js";
7
6
  import '../assets/styles/button.css';/* empty css */
8
- import h from "./Custom.js";
7
+ import U from "./Custom.js";
8
+ import h from "../icons/index.js";
9
9
  const W = (o) => {
10
10
  const t = g.c(22), {
11
11
  visible: C,
@@ -29,9 +29,9 @@ const W = (o) => {
29
29
  if (t[13] !== e ? (r = [e, document.activeElement], t[13] = e, t[14] = r) : r = t[14], x(O, r), !e)
30
30
  return null;
31
31
  let f;
32
- t[15] === Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ a(U, { name: "question", colorStyle: "primary", size: 64 }), t[15] = f) : f = t[15];
32
+ t[15] === Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ a(h, { name: "question", colorStyle: "primary", size: 64 }), t[15] = f) : f = t[15];
33
33
  let u;
34
- return t[16] !== E || t[17] !== d || t[18] !== i || t[19] !== o || t[20] !== e ? (u = /* @__PURE__ */ a(h, { ...o, open: e, buttons: E, closeOnEsc: d, handlerClose: i, icon: f }), t[16] = E, t[17] = d, t[18] = i, t[19] = o, t[20] = e, t[21] = u) : u = t[21], u;
34
+ return t[16] !== E || t[17] !== d || t[18] !== i || t[19] !== o || t[20] !== e ? (u = /* @__PURE__ */ a(U, { ...o, open: e, buttons: E, closeOnEsc: d, handlerClose: i, icon: f }), t[16] = E, t[17] = d, t[18] = i, t[19] = o, t[20] = e, t[21] = u) : u = t[21], u;
35
35
  };
36
36
  function I() {
37
37
  const o = document.activeElement;
@@ -1,25 +1,23 @@
1
1
  import { jsx as l } from "react/jsx-runtime";
2
2
  import { c as a } from "../_virtual/compiler-runtime.js";
3
- import "react";
4
- import "../buttons/DefaultButton.js";
5
- import s from "../icons/index.js";
6
- import u from "../buttons/PrimaryButton.js";
3
+ import s from "../buttons/PrimaryButton.js";
7
4
  import '../assets/styles/button.css';/* empty css */
8
- import b from "./Custom.js";
9
- const _ = (t) => {
5
+ import u from "./Custom.js";
6
+ import b from "../icons/index.js";
7
+ const y = (t) => {
10
8
  const o = a.c(7), {
11
- onConfirmClick: e,
9
+ onConfirmClick: n,
12
10
  confirmLabel: f
13
- } = t, n = f === void 0 ? "Confirmar" : f;
11
+ } = t, m = f === void 0 ? "Confirmar" : f;
14
12
  let r;
15
- o[0] !== n || o[1] !== e ? (r = [/* @__PURE__ */ l(u, { onClick: e, label: n }, 1)], o[0] = n, o[1] = e, o[2] = r) : r = o[2];
13
+ o[0] !== m || o[1] !== n ? (r = [/* @__PURE__ */ l(s, { onClick: n, label: m }, 1)], o[0] = m, o[1] = n, o[2] = r) : r = o[2];
16
14
  const c = r;
15
+ let e;
16
+ o[3] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ l(b, { name: "warning", color: "#f39c12", size: 64 }), o[3] = e) : e = o[3];
17
17
  let i;
18
- o[3] === Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ l(s, { name: "warning", color: "#f39c12", size: 64 }), o[3] = i) : i = o[3];
19
- let m;
20
- return o[4] !== c || o[5] !== t ? (m = /* @__PURE__ */ l(b, { ...t, buttons: c, icon: i }), o[4] = c, o[5] = t, o[6] = m) : m = o[6], m;
18
+ return o[4] !== c || o[5] !== t ? (i = /* @__PURE__ */ l(u, { ...t, buttons: c, icon: e }), o[4] = c, o[5] = t, o[6] = i) : i = o[6], i;
21
19
  };
22
20
  export {
23
- _ as default
21
+ y as default
24
22
  };
25
23
  //# sourceMappingURL=Warning.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Warning.js","sources":["../../src/lib/dialog/Warning.tsx"],"sourcesContent":["import { PrimaryButton } from '../../lib/buttons';\nimport Custom from './Custom';\nimport Icon from '../../lib/icons';\nimport { ICommonDialogProps } from './types';\n\nconst Warning = (props: ICommonDialogProps) => {\n const { onConfirmClick, confirmLabel = 'Confirmar' } = props;\n\n const buttons = [\n <PrimaryButton onClick={onConfirmClick} label={confirmLabel} key={1} />,\n ];\n\n return (\n <Custom\n {...props}\n buttons={buttons}\n icon={<Icon name=\"warning\" color=\"#f39c12\" size={64} />} />\n );\n};\n\nexport default Warning;\n"],"names":["Warning","props","$","_c","onConfirmClick","confirmLabel","t0","undefined","t1","PrimaryButton","buttons","t2","Symbol","for","Icon","t3","Custom"],"mappings":";;;;;;;;AAKA,MAAMA,IAAUC,CAAAA,MAAA;AAAA,QAAAC,IAAAC,EAAAA,EAAA,CAAA,GACd;AAAA,IAAAC,gBAAAA;AAAAA,IAAAC,cAAAC;AAAAA,EAAAA,IAAuDL,GAA/BI,IAAAC,MAAAC,SAAA,cAAAD;AAA0B,MAAAE;AAAA,EAAAN,EAAA,CAAA,MAAAG,KAAAH,SAAAE,KAElCI,uBACbC,GAAA,EAAuBL,YAAuBC,YAAmB,EAAK,GACxEH,OAAAG,GAAAH,OAAAE,GAAAF,OAAAM,KAAAA,IAAAN,EAAA,CAAA;AAFD,QAAAQ,IAAgBF;AAEd,MAAAG;AAAA,EAAAT,EAAA,CAAA,MAAAU,OAAAC,IAAA,2BAAA,KAMQF,sBAACG,GAAA,EAAU,MAAA,WAAgB,OAAA,WAAgB,MAAA,IAAE,GAAIZ,OAAAS,KAAAA,IAAAT,EAAA,CAAA;AAAA,MAAAa;AAAA,SAAAb,EAAA,CAAA,MAAAQ,KAAAR,SAAAD,KAHzDc,sBAACC,GAAA,EAAM,GACDf,GACKS,SAAAA,GACH,MAAAC,GAAiD,GAAIT,OAAAQ,GAAAR,OAAAD,GAAAC,OAAAa,KAAAA,IAAAb,EAAA,CAAA,GAH7Da;AAG6D;"}
1
+ {"version":3,"file":"Warning.js","sources":["../../src/lib/dialog/Warning.tsx"],"sourcesContent":["import { PrimaryButton } from '../../lib/buttons';\nimport Custom from './Custom';\nimport Icon from '../../lib/icons';\nimport { ICommonDialogProps } from './types';\n\nconst Warning = (props: ICommonDialogProps) => {\n const { onConfirmClick, confirmLabel = 'Confirmar' } = props;\n\n const buttons = [\n <PrimaryButton onClick={onConfirmClick} label={confirmLabel} key={1} />,\n ];\n\n return (\n <Custom\n {...props}\n buttons={buttons}\n icon={<Icon name=\"warning\" color=\"#f39c12\" size={64} />} />\n );\n};\n\nexport default Warning;\n"],"names":["Warning","props","$","_c","onConfirmClick","confirmLabel","t0","undefined","t1","PrimaryButton","buttons","t2","Symbol","for","Icon","t3","Custom"],"mappings":";;;;;;AAKA,MAAMA,IAAUC,CAAAA,MAAA;AAAA,QAAAC,IAAAC,EAAAA,EAAA,CAAA,GACd;AAAA,IAAAC,gBAAAA;AAAAA,IAAAC,cAAAC;AAAAA,EAAAA,IAAuDL,GAA/BI,IAAAC,MAAAC,SAAA,cAAAD;AAA0B,MAAAE;AAAA,EAAAN,EAAA,CAAA,MAAAG,KAAAH,SAAAE,KAElCI,uBACbC,GAAA,EAAuBL,YAAuBC,YAAmB,EAAK,GACxEH,OAAAG,GAAAH,OAAAE,GAAAF,OAAAM,KAAAA,IAAAN,EAAA,CAAA;AAFD,QAAAQ,IAAgBF;AAEd,MAAAG;AAAA,EAAAT,EAAA,CAAA,MAAAU,OAAAC,IAAA,2BAAA,KAMQF,sBAACG,GAAA,EAAU,MAAA,WAAgB,OAAA,WAAgB,MAAA,IAAE,GAAIZ,OAAAS,KAAAA,IAAAT,EAAA,CAAA;AAAA,MAAAa;AAAA,SAAAb,EAAA,CAAA,MAAAQ,KAAAR,SAAAD,KAHzDc,sBAACC,GAAA,EAAM,GACDf,GACKS,SAAAA,GACH,MAAAC,GAAiD,GAAIT,OAAAQ,GAAAR,OAAAD,GAAAC,OAAAa,KAAAA,IAAAb,EAAA,CAAA,GAH7Da;AAG6D;"}
@@ -1,4 +1,7 @@
1
1
  import { IBaseProps } from '../types';
2
+ import { default as BaseContent } from './Content';
3
+ import { default as BaseHeader } from './Header';
4
+ import { default as BaseFooter } from './Footer';
2
5
  type DialogContextType = {
3
6
  handleClose: () => void;
4
7
  open: boolean;
@@ -7,3 +10,4 @@ type DialogContextType = {
7
10
  export declare const DialogContext: import('react').Context<DialogContextType>;
8
11
  declare const BaseDialog: (props: IBaseProps) => import("react/jsx-runtime").JSX.Element | null;
9
12
  export default BaseDialog;
13
+ export { BaseContent, BaseHeader, BaseFooter };
@@ -2,31 +2,34 @@ import { jsx as z, jsxs as Ce } from "react/jsx-runtime";
2
2
  import { c as De } from "../../_virtual/compiler-runtime.js";
3
3
  import '../../assets/styles/dialog.css';/* empty css */
4
4
  import Re from "react-dom";
5
- import { createContext as _e, useContext as Oe, useState as he, useRef as le, useEffect as q, useLayoutEffect as Le } from "react";
5
+ import { createContext as _e, useContext as Oe, useState as he, useRef as le, useEffect as F, useLayoutEffect as Le } from "react";
6
6
  import Ne from "./style.js";
7
7
  import { FormDialogContext as Se } from "../form/index.js";
8
+ import { default as Te } from "./Content.js";
9
+ import { default as Ge } from "./Header.js";
10
+ import { default as Qe } from "./Footer.js";
8
11
  import Pe from "../../node_modules/uuid/dist/v4.js";
9
- const Me = _e({}), {
10
- body: ke
12
+ const Be = _e({}), {
13
+ body: Me
11
14
  } = document, ze = (c) => {
12
15
  const e = De.c(68);
13
- let m;
14
- e[0] === Symbol.for("react.memo_cache_sentinel") ? (m = Pe(), e[0] = m) : m = e[0];
15
- const we = m, {
16
+ let f;
17
+ e[0] === Symbol.for("react.memo_cache_sentinel") ? (f = Pe(), e[0] = f) : f = e[0];
18
+ const we = f, {
16
19
  id: re,
17
20
  overlay: ce,
18
- closeOnEsc: f,
19
- closeOnOutsideClick: F,
21
+ closeOnEsc: m,
22
+ closeOnOutsideClick: q,
20
23
  wrapperClassName: ae,
21
24
  className: de,
22
25
  children: T,
23
26
  open: a,
24
27
  onOpenChange: d,
25
- zIndex: me,
28
+ zIndex: fe,
26
29
  handlerClose: E
27
30
  } = c, U = re === void 0 ? we : re, G = ce === void 0 ? !0 : ce, J = ae === void 0 ? "" : ae, be = de === void 0 ? "" : de, {
28
31
  headerRef: Q
29
- } = Oe(Se), [fe, ue] = he(a), t = fe === void 0 ? !0 : fe, [i, pe] = he(!1), o = le(null), V = le(null);
32
+ } = Oe(Se), [me, ue] = he(a), t = me === void 0 ? !0 : me, [i, pe] = he(!1), n = le(null), V = le(null);
30
33
  let x;
31
34
  e[1] === Symbol.for("react.memo_cache_sentinel") ? (x = [], e[1] = x) : x = e[1];
32
35
  const ye = le(x);
@@ -37,76 +40,76 @@ const Me = _e({}), {
37
40
  }, e[2] = E, e[3] = d, e[4] = a, e[5] = C) : C = e[5];
38
41
  const l = C;
39
42
  let D;
40
- e[6] !== F || e[7] !== l || e[8] !== i ? (D = (n) => {
41
- if (!F)
43
+ e[6] !== q || e[7] !== l || e[8] !== i ? (D = (o) => {
44
+ if (!q)
42
45
  return;
43
- const s = n.target;
44
- n.stopPropagation(), o !== null && o.current !== null && !i && !o.current.contains(s) && l();
45
- }, e[6] = F, e[7] = l, e[8] = i, e[9] = D) : D = e[9];
46
+ const s = o.target;
47
+ o.stopPropagation(), n !== null && n.current !== null && !i && !n.current.contains(s) && l();
48
+ }, e[6] = q, e[7] = l, e[8] = i, e[9] = D) : D = e[9];
46
49
  const Z = D;
47
50
  let R;
48
- e[10] !== l ? (R = (n) => {
49
- n?.key === "Escape" && (n.stopPropagation(), l());
51
+ e[10] !== l ? (R = (o) => {
52
+ o?.key === "Escape" && (o.stopPropagation(), l());
50
53
  }, e[10] = l, e[11] = R) : R = e[11];
51
54
  const _ = R;
52
55
  let O, L;
53
56
  e[12] !== t ? (O = () => {
54
57
  t && V.current && (ye.current = Array.from(V.current.querySelectorAll("button, a, input, select, textarea, [tabindex]:not([tabindex='-1'])")));
55
- }, L = [t], e[12] = t, e[13] = O, e[14] = L) : (O = e[13], L = e[14]), q(O, L);
58
+ }, L = [t], e[12] = t, e[13] = O, e[14] = L) : (O = e[13], L = e[14]), F(O, L);
56
59
  let N;
57
- e[15] === Symbol.for("react.memo_cache_sentinel") ? (N = (n) => {
60
+ e[15] === Symbol.for("react.memo_cache_sentinel") ? (N = (o) => {
58
61
  const {
59
62
  positionX: s,
60
63
  positionY: r
61
- } = n;
62
- if (o.current) {
64
+ } = o;
65
+ if (n.current) {
63
66
  const {
64
67
  width: b,
65
68
  height: ge
66
- } = o.current.getBoundingClientRect();
69
+ } = n.current.getBoundingClientRect();
67
70
  let se = s <= 0 ? 0 : s, ie = r <= 0 ? 0 : r;
68
- se + b >= window.innerWidth && (se = window.innerWidth - b), ie + ge >= window.innerHeight && (ie = window.innerHeight - ge), o.current.style.transform = `translate(${se}px, ${ie}px)`, o.current.style.transition = "none", o.current.style.left = "0", o.current.style.top = "0", o.current.style.position = "absolute";
71
+ se + b >= window.innerWidth && (se = window.innerWidth - b), ie + ge >= window.innerHeight && (ie = window.innerHeight - ge), n.current.style.transform = `translate(${se}px, ${ie}px)`, n.current.style.transition = "none", n.current.style.left = "0", n.current.style.top = "0", n.current.style.position = "absolute";
69
72
  }
70
73
  }, e[15] = N) : N = e[15];
71
74
  const Ee = N;
72
75
  let S;
73
- e[16] !== i ? (S = (n) => {
74
- if (o.current && i) {
76
+ e[16] !== i ? (S = (o) => {
77
+ if (n.current && i) {
75
78
  const {
76
79
  left: s,
77
80
  top: r
78
- } = o.current.getBoundingClientRect();
81
+ } = n.current.getBoundingClientRect();
79
82
  Ee({
80
- positionX: n.movementX + s,
81
- positionY: n.movementY + r
83
+ positionX: o.movementX + s,
84
+ positionY: o.movementY + r
82
85
  });
83
86
  }
84
87
  }, e[16] = i, e[17] = S) : S = e[17];
85
88
  const P = S;
86
- let M;
87
- e[18] !== Q ? (M = (n) => {
88
- const s = n.target, r = Q?.current?.contains(s);
89
- o.current && r && pe(!0);
90
- }, e[18] = Q, e[19] = M) : M = e[19];
91
- const k = M;
89
+ let B;
90
+ e[18] !== Q ? (B = (o) => {
91
+ const s = o.target, r = Q?.current?.contains(s);
92
+ n.current && r && pe(!0);
93
+ }, e[18] = Q, e[19] = B) : B = e[19];
94
+ const M = B;
95
+ let k;
96
+ e[20] === Symbol.for("react.memo_cache_sentinel") ? (k = () => {
97
+ n.current && pe(!1);
98
+ }, e[20] = k) : k = e[20];
99
+ const ve = k;
92
100
  let K;
93
- e[20] === Symbol.for("react.memo_cache_sentinel") ? (K = () => {
94
- o.current && pe(!1);
95
- }, e[20] = K) : K = e[20];
96
- const ve = K;
97
- let W;
98
- e[21] === Symbol.for("react.memo_cache_sentinel") ? (W = (n) => {
99
- if (n.key === "Tab") {
101
+ e[21] === Symbol.for("react.memo_cache_sentinel") ? (K = (o) => {
102
+ if (o.key === "Tab") {
100
103
  const {
101
104
  current: s
102
105
  } = ye;
103
106
  if (s.length === 0)
104
107
  return;
105
108
  const r = s[0], b = s[s.length - 1];
106
- n.shiftKey && document.activeElement === r ? (b.focus(), n.preventDefault()) : !n.shiftKey && document.activeElement === b && (r.focus(), n.preventDefault());
109
+ o.shiftKey && document.activeElement === r ? (b.focus(), o.preventDefault()) : !o.shiftKey && document.activeElement === b && (r.focus(), o.preventDefault());
107
110
  }
108
- }, e[21] = W) : W = e[21];
109
- const xe = W, ee = me ? Number(me) : void 0;
111
+ }, e[21] = K) : K = e[21];
112
+ const xe = K, ee = fe ? Number(fe) : void 0;
110
113
  let u;
111
114
  e[22] !== ee ? (u = {
112
115
  zIndex: ee
@@ -117,45 +120,45 @@ const Me = _e({}), {
117
120
  let y;
118
121
  e[26] !== c ? (y = Ne(c), e[26] = c, e[27] = y) : y = e[27];
119
122
  let v;
120
- e[28] !== T || e[29] !== y || e[30] !== J ? (v = /* @__PURE__ */ z("div", { className: J, "data-testid": "dialog-wrapper", style: y, ref: o, children: T }), e[28] = T, e[29] = y, e[30] = J, e[31] = v) : v = e[31];
123
+ e[28] !== T || e[29] !== y || e[30] !== J ? (v = /* @__PURE__ */ z("div", { className: J, "data-testid": "dialog-wrapper", style: y, ref: n, children: T }), e[28] = T, e[29] = y, e[30] = J, e[31] = v) : v = e[31];
121
124
  let g;
122
125
  e[32] !== te || e[33] !== v ? (g = /* @__PURE__ */ z("div", { className: te, "data-testid": "dialog-component", children: v }), e[32] = te, e[33] = v, e[34] = g) : g = e[34];
123
- let $;
124
- e[35] !== Z || e[36] !== U || e[37] !== u || e[38] !== p || e[39] !== g ? ($ = /* @__PURE__ */ Ce("div", { id: U, onKeyDown: xe, ref: V, className: "modalcontainer", onMouseDown: Z, style: u, children: [
126
+ let W;
127
+ e[35] !== Z || e[36] !== U || e[37] !== u || e[38] !== p || e[39] !== g ? (W = /* @__PURE__ */ Ce("div", { id: U, onKeyDown: xe, ref: V, className: "modalcontainer", onMouseDown: Z, style: u, children: [
125
128
  p,
126
129
  g
127
- ] }), e[35] = Z, e[36] = U, e[37] = u, e[38] = p, e[39] = g, e[40] = $) : $ = e[40];
128
- const ne = $;
129
- let B;
130
- e[41] === Symbol.for("react.memo_cache_sentinel") ? (B = [], e[41] = B) : B = e[41], Le(Ke, B);
131
- let I;
132
- e[42] !== f || e[43] !== _ || e[44] !== t ? (I = () => (t && f && document.addEventListener("keydown", _), () => {
130
+ ] }), e[35] = Z, e[36] = U, e[37] = u, e[38] = p, e[39] = g, e[40] = W) : W = e[40];
131
+ const oe = W;
132
+ let $;
133
+ e[41] === Symbol.for("react.memo_cache_sentinel") ? ($ = [], e[41] = $) : $ = e[41], Le(ke, $);
134
+ let H;
135
+ e[42] !== m || e[43] !== _ || e[44] !== t ? (H = () => (t && m && document.addEventListener("keydown", _), () => {
133
136
  document.removeEventListener("keydown", _);
134
- }), e[42] = f, e[43] = _, e[44] = t, e[45] = I) : I = e[45];
137
+ }), e[42] = m, e[43] = _, e[44] = t, e[45] = H) : H = e[45];
138
+ let I;
139
+ e[46] !== m || e[47] !== t ? (I = [t, m], e[46] = m, e[47] = t, e[48] = I) : I = e[48], F(H, I);
135
140
  let A;
136
- e[46] !== f || e[47] !== t ? (A = [t, f], e[46] = f, e[47] = t, e[48] = A) : A = e[48], q(I, A);
137
- let H;
138
- e[49] !== i || e[50] !== k || e[51] !== P || e[52] !== t ? (H = () => (t && (document.addEventListener("mousedown", k), document.addEventListener("mouseup", ve), i && document.addEventListener("mousemove", P)), () => {
139
- document.removeEventListener("mousedown", k), document.removeEventListener("mouseup", ve), document.removeEventListener("mousemove", P);
140
- }), e[49] = i, e[50] = k, e[51] = P, e[52] = t, e[53] = H) : H = e[53];
141
+ e[49] !== i || e[50] !== M || e[51] !== P || e[52] !== t ? (A = () => (t && (document.addEventListener("mousedown", M), document.addEventListener("mouseup", ve), i && document.addEventListener("mousemove", P)), () => {
142
+ document.removeEventListener("mousedown", M), document.removeEventListener("mouseup", ve), document.removeEventListener("mousemove", P);
143
+ }), e[49] = i, e[50] = M, e[51] = P, e[52] = t, e[53] = A) : A = e[53];
141
144
  let X;
142
- e[54] !== i || e[55] !== t ? (X = [i, t], e[54] = i, e[55] = t, e[56] = X) : X = e[56], q(H, X);
145
+ e[54] !== i || e[55] !== t ? (X = [i, t], e[54] = i, e[55] = t, e[56] = X) : X = e[56], F(A, X);
143
146
  let Y;
144
- if (e[57] !== t ? (Y = [t], e[57] = t, e[58] = Y) : Y = e[58], q(We, Y), !t)
147
+ if (e[57] !== t ? (Y = [t], e[57] = t, e[58] = Y) : Y = e[58], F(Ke, Y), !t)
145
148
  return null;
146
- const oe = d || ue;
149
+ const ne = d || ue;
147
150
  let h;
148
- e[59] !== l || e[60] !== t || e[61] !== oe ? (h = {
151
+ e[59] !== l || e[60] !== t || e[61] !== ne ? (h = {
149
152
  handleClose: l,
150
153
  open: t,
151
- onOpenChange: oe
152
- }, e[59] = l, e[60] = t, e[61] = oe, e[62] = h) : h = e[62];
154
+ onOpenChange: ne
155
+ }, e[59] = l, e[60] = t, e[61] = ne, e[62] = h) : h = e[62];
153
156
  let w;
154
- e[63] !== ne ? (w = Re.createPortal(ne, ke), e[63] = ne, e[64] = w) : w = e[64];
157
+ e[63] !== oe ? (w = Re.createPortal(oe, Me), e[63] = oe, e[64] = w) : w = e[64];
155
158
  let j;
156
- return e[65] !== h || e[66] !== w ? (j = /* @__PURE__ */ z(Me.Provider, { value: h, children: w }), e[65] = h, e[66] = w, e[67] = j) : j = e[67], j;
159
+ return e[65] !== h || e[66] !== w ? (j = /* @__PURE__ */ z(Be.Provider, { value: h, children: w }), e[65] = h, e[66] = w, e[67] = j) : j = e[67], j;
157
160
  };
158
- function Ke() {
161
+ function ke() {
159
162
  const {
160
163
  activeElement: c
161
164
  } = document, e = c;
@@ -163,14 +166,17 @@ function Ke() {
163
166
  e?.focus();
164
167
  };
165
168
  }
166
- function We() {
167
- const c = window.innerWidth - document.documentElement.clientWidth, e = document.body.style.overflow, m = document.body.style.paddingRight;
169
+ function Ke() {
170
+ const c = window.innerWidth - document.documentElement.clientWidth, e = document.body.style.overflow, f = document.body.style.paddingRight;
168
171
  return document.body.style.overflow = "hidden", document.body.style.paddingRight = `${c}px`, () => {
169
- document.body.style.overflow = e, document.body.style.paddingRight = m;
172
+ document.body.style.overflow = e, document.body.style.paddingRight = f;
170
173
  };
171
174
  }
172
175
  export {
173
- Me as DialogContext,
176
+ Te as BaseContent,
177
+ Qe as BaseFooter,
178
+ Ge as BaseHeader,
179
+ Be as DialogContext,
174
180
  ze as default
175
181
  };
176
182
  //# sourceMappingURL=index.js.map