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.
- package/lib/alerts/index.d.ts +3 -3
- package/lib/alerts/index.js +2 -1
- package/lib/buttons/DefaultButton.js +1 -1
- package/lib/buttons/index.d.ts +1 -1
- package/lib/buttons/index.js +1 -0
- package/lib/calendar/base/helpers.js +27 -84
- package/lib/calendar/base/helpers.js.map +1 -1
- package/lib/calendar/base/index.js +29 -33
- package/lib/calendar/base/index.js.map +1 -1
- package/lib/checkbox/index.js +31 -44
- package/lib/checkbox/index.js.map +1 -1
- package/lib/dialog/Alert.js +10 -12
- package/lib/dialog/Alert.js.map +1 -1
- package/lib/dialog/Custom.js +2 -3
- package/lib/dialog/Custom.js.map +1 -1
- package/lib/dialog/Error.js +9 -11
- package/lib/dialog/Error.js.map +1 -1
- package/lib/dialog/Information.js +8 -10
- package/lib/dialog/Information.js.map +1 -1
- package/lib/dialog/Question.js +4 -4
- package/lib/dialog/Warning.js +11 -13
- package/lib/dialog/Warning.js.map +1 -1
- package/lib/dialog/base/index.d.ts +4 -0
- package/lib/dialog/base/index.js +78 -72
- package/lib/dialog/base/index.js.map +1 -1
- package/lib/dialog/form/index.js +3 -7
- package/lib/dialog/form/index.js.map +1 -1
- package/lib/drawer/Drawer.js +4 -5
- package/lib/drawer/Drawer.js.map +1 -1
- package/lib/dropdown/Popup.js.map +1 -1
- package/lib/dropdown/index.d.ts +3 -0
- package/lib/dropdown/index.js +6 -0
- package/lib/dropdown/index.js.map +1 -0
- package/lib/dropdown/withDropdown.js +1 -1
- package/lib/fieldset/index.js +17 -18
- package/lib/fieldset/index.js.map +1 -1
- package/lib/form/FieldArray.js +18 -20
- package/lib/form/FieldArray.js.map +1 -1
- package/lib/form/helpers.js +16 -17
- package/lib/form/helpers.js.map +1 -1
- package/lib/form/index.js +46 -52
- package/lib/form/index.js.map +1 -1
- package/lib/index.js +20 -23
- package/lib/index.js.map +1 -1
- package/lib/inputs/base/InputTextBase.js +1 -1
- package/lib/inputs/color/index.js +22 -25
- package/lib/inputs/color/index.js.map +1 -1
- package/lib/inputs/date/index.js +15 -19
- package/lib/inputs/date/index.js.map +1 -1
- package/lib/inputs/file/DefaultFile.js +1 -1
- package/lib/inputs/file/DragDropFile.js +3 -4
- package/lib/inputs/file/DragDropFile.js.map +1 -1
- package/lib/inputs/file/File.js +9 -11
- package/lib/inputs/file/File.js.map +1 -1
- package/lib/inputs/file/FileButtonSettings.js +1 -1
- package/lib/inputs/index.d.ts +14 -0
- package/lib/inputs/index.js +40 -0
- package/lib/inputs/index.js.map +1 -0
- package/lib/inputs/inputHOC.js +0 -1
- package/lib/inputs/inputHOC.js.map +1 -1
- package/lib/inputs/multiSelect/ActionButtons.js +16 -19
- package/lib/inputs/multiSelect/ActionButtons.js.map +1 -1
- package/lib/inputs/number/format_number.js +6 -7
- package/lib/inputs/number/format_number.js.map +1 -1
- package/lib/inputs/period/helper.js +19 -27
- package/lib/inputs/period/helper.js.map +1 -1
- package/lib/inputs/period/index.js +4 -5
- package/lib/inputs/period/index.js.map +1 -1
- package/lib/inputs/search/index.js +1 -1
- package/lib/inputs/select/helper.js +22 -23
- package/lib/inputs/select/helper.js.map +1 -1
- package/lib/inputs/select/index.js +7 -8
- package/lib/inputs/select/index.js.map +1 -1
- package/lib/inputs2/checkboxfield/index.js +1 -2
- package/lib/inputs2/checkboxfield/index.js.map +1 -1
- package/lib/inputs2/colorfield/index.js +1 -4
- package/lib/inputs2/colorfield/index.js.map +1 -1
- package/lib/inputs2/date/datefield/calendarbox.js +1 -4
- package/lib/inputs2/date/datefield/calendarbox.js.map +1 -1
- package/lib/inputs2/date/datefield/index.js +0 -1
- package/lib/inputs2/date/datefield/index.js.map +1 -1
- package/lib/inputs2/date/dateperiodfield/calendarbox.js +16 -19
- package/lib/inputs2/date/dateperiodfield/calendarbox.js.map +1 -1
- package/lib/inputs2/date/dateperiodfield/index.js +0 -1
- package/lib/inputs2/date/dateperiodfield/index.js.map +1 -1
- package/lib/inputs2/date/dateperiodfield/triggers.js +14 -18
- package/lib/inputs2/date/dateperiodfield/triggers.js.map +1 -1
- package/lib/inputs2/date/helpers.js +19 -30
- package/lib/inputs2/date/helpers.js.map +1 -1
- package/lib/inputs2/filefield/index.js +17 -20
- package/lib/inputs2/filefield/index.js.map +1 -1
- package/lib/inputs2/index.js +18 -18
- package/lib/inputs2/numberfield/currency.js +6 -11
- package/lib/inputs2/numberfield/currency.js.map +1 -1
- package/lib/inputs2/numberfield/decimal.js +9 -14
- package/lib/inputs2/numberfield/decimal.js.map +1 -1
- package/lib/inputs2/numberfield/index.js +12 -17
- package/lib/inputs2/numberfield/index.js.map +1 -1
- package/lib/inputs2/radiofield/index.js +1 -2
- package/lib/inputs2/radiofield/index.js.map +1 -1
- package/lib/inputs2/selectfield/index.js +4 -5
- package/lib/inputs2/selectfield/index.js.map +1 -1
- package/lib/inputs2/textareafield/index.js +4 -5
- package/lib/inputs2/textareafield/index.js.map +1 -1
- package/lib/inputs2/textfield/index.js +4 -5
- package/lib/inputs2/textfield/index.js.map +1 -1
- package/lib/internals/constants.js +3 -4
- package/lib/internals/constants.js.map +1 -1
- package/lib/labels/DefaultLabel.js +1 -1
- package/lib/labels/index.d.ts +1 -1
- package/lib/labels/index.js +5 -4
- package/lib/list/helpers.js +4 -6
- package/lib/list/helpers.js.map +1 -1
- package/lib/menus/float/index.js +1 -1
- package/lib/menus/sidenav/NavMenuItem.js +1 -1
- package/lib/menus/sidenav/NavSubMenuItem.js +1 -1
- package/lib/panel/Default.js +14 -15
- package/lib/panel/Default.js.map +1 -1
- package/lib/popover/index.js +1 -1
- package/lib/radio/index.js +1 -1
- package/lib/skeleton/index.js +13 -14
- package/lib/skeleton/index.js.map +1 -1
- package/lib/spinner/index.d.ts +2 -0
- package/lib/spinner/index.js +1 -0
- package/lib/spinner/index.js.map +1 -1
- package/lib/table/Body.js +23 -26
- package/lib/table/Body.js.map +1 -1
- package/lib/tabs/DropdownTabs.js +31 -40
- package/lib/tabs/DropdownTabs.js.map +1 -1
- package/lib/tabs/MenuTabs.js +16 -19
- package/lib/tabs/MenuTabs.js.map +1 -1
- package/lib/tabs/context.js +3 -3
- package/lib/treetable/Body.js +18 -24
- package/lib/treetable/Body.js.map +1 -1
- package/lib/treetable/Header.js +9 -12
- package/lib/treetable/Header.js.map +1 -1
- package/lib/treetable/Row.js +37 -40
- package/lib/treetable/Row.js.map +1 -1
- package/lib/uitour/index.js +3 -5
- package/lib/uitour/index.js.map +1 -1
- package/package.json +277 -34
- package/lib/buttons/ButtonGroups.js +0 -13
- package/lib/buttons/ButtonGroups.js.map +0 -1
- package/lib/dropdown/helper.js +0 -9
- package/lib/dropdown/helper.js.map +0 -1
- package/lib/panel/ToolBar.js +0 -20
- 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":"
|
|
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":"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"}
|
package/lib/dialog/Alert.js
CHANGED
|
@@ -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 "
|
|
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
|
|
9
|
-
|
|
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[
|
|
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[
|
|
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
|
-
|
|
21
|
+
L as default
|
|
24
22
|
};
|
|
25
23
|
//# sourceMappingURL=Alert.js.map
|
package/lib/dialog/Alert.js.map
CHANGED
|
@@ -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":"
|
|
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;"}
|
package/lib/dialog/Custom.js
CHANGED
|
@@ -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),
|
|
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
|
-
|
|
45
|
+
G as default
|
|
47
46
|
};
|
|
48
47
|
//# sourceMappingURL=Custom.js.map
|
package/lib/dialog/Custom.js.map
CHANGED
|
@@ -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","ButtonContainer","map","_temp","t9","BaseDialog","button","cloneElement","key","uuid"],"mappings":"
|
|
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","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,MAAAG,SAAA,SAAAH,GAAiBV,IAAAW,MAAAE,SAAA,OAAAF;AAAe,MAAAG;AAAA,EAAAT,SAAAL,KAAAK,EAAA,CAAA,MAAAD,EAAAH,QAShDa,IAAAf,EAAQC,GAAUI,EAAKH,IAAK,GAACI,OAAAL,GAAAK,EAAA,CAAA,IAAAD,EAAAH,MAAAI,OAAAS,KAAAA,IAAAT,EAAA,CAAA;AAAA,MAAAU;AAAA,EAAAV,SAAAS,KADhCC,IAAA,gBAAAC,EAAA,OAAA,EAAe,WAAA,QACZF,UAAAA,GACH,GAAMT,OAAAS,GAAAT,OAAAU,KAAAA,IAAAV,EAAA,CAAA;AAAA,MAAAY;AAAA,EAAAZ,EAAA,CAAA,MAAAD,EAAAc,SAEHD,IAAAb,EAAKc,SACJ,gBAAAF,WAAe,WAAA,SACZZ,YAAKc,MAAAA,CACR,GAAMb,EAAA,CAAA,IAAAD,EAAAc,OAAAb,OAAAY,KAAAA,IAAAZ,EAAA,CAAA;AAAA,MAAAc;AAAA,EAAAd,EAAA,CAAA,MAAAD,EAAAgB,QACRD,IAAA,gBAAAH,EAAA,OAAA,EAAe,WAAA,QACZZ,YAAKgB,MACR,GAAMf,EAAA,CAAA,IAAAD,EAAAgB,MAAAf,OAAAc,KAAAA,IAAAd,EAAA,CAAA;AAAA,MAAAgB;AAAA,EAAAhB,EAAA,CAAA,MAAAY,KAAAZ,UAAAc,KAPRE,IAAA,gBAAAC,EAAA,OAAA,EAAe,WAAA,aACZL,UAAAA;AAAAA,IAAAA;AAAAA,IAIDE;AAAAA,EAAAA,GAGF,GAAMd,OAAAY,GAAAZ,QAAAc,GAAAd,QAAAgB,KAAAA,IAAAhB,EAAA,EAAA;AAAA,MAAAkB;AAAA,EAAAlB,UAAAD,KACLmB,IAAAnB,EAAKoB,WAAYpB,EAAKoB,QAAQC,SAAU,uBACtCC,GAAA,EAAU,GAAKtB,GACd,UAAA,gBAAAY,EAACW,GAAA,EAAyB,UAAA,SACvBvB,UAAAA,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;"}
|
package/lib/dialog/Error.js
CHANGED
|
@@ -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 "
|
|
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
|
|
9
|
-
|
|
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(
|
|
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
|
-
|
|
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
|
-
|
|
21
|
+
E as default
|
|
24
22
|
};
|
|
25
23
|
//# sourceMappingURL=Error.js.map
|
package/lib/dialog/Error.js.map
CHANGED
|
@@ -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":"
|
|
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 "
|
|
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
|
|
9
|
-
|
|
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(
|
|
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(
|
|
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(
|
|
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
|
-
|
|
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":"
|
|
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;"}
|
package/lib/dialog/Question.js
CHANGED
|
@@ -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
|
|
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(
|
|
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(
|
|
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;
|
package/lib/dialog/Warning.js
CHANGED
|
@@ -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 "
|
|
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
|
|
9
|
-
|
|
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:
|
|
9
|
+
onConfirmClick: n,
|
|
12
10
|
confirmLabel: f
|
|
13
|
-
} = t,
|
|
11
|
+
} = t, m = f === void 0 ? "Confirmar" : f;
|
|
14
12
|
let r;
|
|
15
|
-
o[0] !==
|
|
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[
|
|
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
|
-
|
|
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":"
|
|
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 };
|
package/lib/dialog/base/index.js
CHANGED
|
@@ -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
|
|
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
|
|
10
|
-
body:
|
|
12
|
+
const Be = _e({}), {
|
|
13
|
+
body: Me
|
|
11
14
|
} = document, ze = (c) => {
|
|
12
15
|
const e = De.c(68);
|
|
13
|
-
let
|
|
14
|
-
e[0] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
15
|
-
const we =
|
|
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:
|
|
19
|
-
closeOnOutsideClick:
|
|
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:
|
|
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), [
|
|
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] !==
|
|
41
|
-
if (!
|
|
43
|
+
e[6] !== q || e[7] !== l || e[8] !== i ? (D = (o) => {
|
|
44
|
+
if (!q)
|
|
42
45
|
return;
|
|
43
|
-
const s =
|
|
44
|
-
|
|
45
|
-
}, e[6] =
|
|
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 = (
|
|
49
|
-
|
|
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]),
|
|
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 = (
|
|
60
|
+
e[15] === Symbol.for("react.memo_cache_sentinel") ? (N = (o) => {
|
|
58
61
|
const {
|
|
59
62
|
positionX: s,
|
|
60
63
|
positionY: r
|
|
61
|
-
} =
|
|
62
|
-
if (
|
|
64
|
+
} = o;
|
|
65
|
+
if (n.current) {
|
|
63
66
|
const {
|
|
64
67
|
width: b,
|
|
65
68
|
height: ge
|
|
66
|
-
} =
|
|
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),
|
|
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 = (
|
|
74
|
-
if (
|
|
76
|
+
e[16] !== i ? (S = (o) => {
|
|
77
|
+
if (n.current && i) {
|
|
75
78
|
const {
|
|
76
79
|
left: s,
|
|
77
80
|
top: r
|
|
78
|
-
} =
|
|
81
|
+
} = n.current.getBoundingClientRect();
|
|
79
82
|
Ee({
|
|
80
|
-
positionX:
|
|
81
|
-
positionY:
|
|
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
|
|
87
|
-
e[18] !== Q ? (
|
|
88
|
-
const s =
|
|
89
|
-
|
|
90
|
-
}, e[18] = Q, e[19] =
|
|
91
|
-
const
|
|
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[
|
|
94
|
-
o.
|
|
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
|
-
|
|
109
|
+
o.shiftKey && document.activeElement === r ? (b.focus(), o.preventDefault()) : !o.shiftKey && document.activeElement === b && (r.focus(), o.preventDefault());
|
|
107
110
|
}
|
|
108
|
-
}, e[21] =
|
|
109
|
-
const xe =
|
|
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:
|
|
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 ? (
|
|
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] =
|
|
128
|
-
const
|
|
129
|
-
let
|
|
130
|
-
e[41] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
131
|
-
let
|
|
132
|
-
e[42] !==
|
|
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] =
|
|
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[
|
|
137
|
-
|
|
138
|
-
e[49]
|
|
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],
|
|
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],
|
|
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
|
|
149
|
+
const ne = d || ue;
|
|
147
150
|
let h;
|
|
148
|
-
e[59] !== l || e[60] !== t || e[61] !==
|
|
151
|
+
e[59] !== l || e[60] !== t || e[61] !== ne ? (h = {
|
|
149
152
|
handleClose: l,
|
|
150
153
|
open: t,
|
|
151
|
-
onOpenChange:
|
|
152
|
-
}, e[59] = l, e[60] = t, e[61] =
|
|
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] !==
|
|
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(
|
|
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
|
|
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
|
|
167
|
-
const c = window.innerWidth - document.documentElement.clientWidth, e = document.body.style.overflow,
|
|
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 =
|
|
172
|
+
document.body.style.overflow = e, document.body.style.paddingRight = f;
|
|
170
173
|
};
|
|
171
174
|
}
|
|
172
175
|
export {
|
|
173
|
-
|
|
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
|