solace-ui-components 18.0.0 → 18.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/charts.js +1 -1
- package/dist/charts.modern.mjs +1 -1
- package/dist/{chunk-ULYCLLUO.modern.mjs → chunk-54TEARQI.modern.mjs} +2 -2
- package/dist/{chunk-ULYCLLUO.modern.mjs.map → chunk-54TEARQI.modern.mjs.map} +1 -1
- package/dist/{chunk-2RTZL4CF.modern.mjs → chunk-HQH2WKJP.modern.mjs} +3 -3
- package/dist/{chunk-2RTZL4CF.modern.mjs.map → chunk-HQH2WKJP.modern.mjs.map} +1 -1
- package/dist/{chunk-IHSXSGCC.modern.mjs → chunk-I7OJ5H4U.modern.mjs} +2 -2
- package/dist/{chunk-IHSXSGCC.modern.mjs.map → chunk-I7OJ5H4U.modern.mjs.map} +1 -1
- package/dist/{chunk-HLXBN2OE.modern.mjs → chunk-LGBO373S.modern.mjs} +2 -2
- package/dist/{chunk-HLXBN2OE.modern.mjs.map → chunk-LGBO373S.modern.mjs.map} +1 -1
- package/dist/{chunk-AOKITPX2.js → chunk-PYADJP2I.js} +2 -2
- package/dist/{chunk-AOKITPX2.js.map → chunk-PYADJP2I.js.map} +1 -1
- package/dist/{chunk-ROSPS5NM.modern.mjs → chunk-QKQRCYG4.modern.mjs} +2 -2
- package/dist/{chunk-ROSPS5NM.modern.mjs.map → chunk-QKQRCYG4.modern.mjs.map} +1 -1
- package/dist/{chunk-TSSPQLS6.js → chunk-SKQ7JGO5.js} +3 -3
- package/dist/{chunk-TSSPQLS6.js.map → chunk-SKQ7JGO5.js.map} +1 -1
- package/dist/{chunk-7SKICMGL.js → chunk-SWGQVSXQ.js} +2 -2
- package/dist/{chunk-7SKICMGL.js.map → chunk-SWGQVSXQ.js.map} +1 -1
- package/dist/{chunk-UFDVHFXE.js → chunk-SXQRCXMP.js} +2 -2
- package/dist/{chunk-UFDVHFXE.js.map → chunk-SXQRCXMP.js.map} +1 -1
- package/dist/{chunk-4XH33OL7.js → chunk-V45EFIXB.js} +2 -2
- package/dist/{chunk-4XH33OL7.js.map → chunk-V45EFIXB.js.map} +1 -1
- package/dist/{chunk-QV564WAK.modern.mjs → chunk-VYHLNTMX.modern.mjs} +2 -2
- package/dist/{chunk-QV564WAK.modern.mjs.map → chunk-VYHLNTMX.modern.mjs.map} +1 -1
- package/dist/chunk-YQTPPT5K.js +2 -0
- package/dist/{chunk-GDZZVHFP.js.map → chunk-YQTPPT5K.js.map} +1 -1
- package/dist/code-editor.d.mts +7 -2
- package/dist/code-editor.d.ts +7 -2
- package/dist/code-editor.js +2 -2
- package/dist/code-editor.js.map +1 -1
- package/dist/code-editor.modern.mjs +2 -2
- package/dist/code-editor.modern.mjs.map +1 -1
- package/dist/datepicker.js +1 -1
- package/dist/datepicker.modern.mjs +1 -1
- package/dist/drag-drop.js +1 -1
- package/dist/drag-drop.modern.mjs +1 -1
- package/dist/index.js +58 -58
- package/dist/index.js.map +1 -1
- package/dist/index.modern.mjs +55 -55
- package/dist/index.modern.mjs.map +1 -1
- package/dist/json-schema-form.js +1 -1
- package/dist/json-schema-form.modern.mjs +1 -1
- package/dist/textDiff.js +2 -2
- package/dist/textDiff.modern.mjs +1 -1
- package/migrate-imports.js +85 -75
- package/package.json +12 -5
- package/dist/chunk-GDZZVHFP.js +0 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/types/solaceTooltip.ts","../src/components/SolaceToolTip.tsx","../src/components/form/HelperText.tsx","../src/resources/icons/ErrorIcon.tsx","../src/components/form/ErrorText.tsx","../src/resources/icons/WarnIcon.tsx","../src/components/form/WarningText.tsx"],"names":["text","overflow","rich","html","TooltipVariant","OverflowDiv","styled_default","SolaceTooltip","id","title","variant","children","placement","maxWidth","disableFocusListener","disableHoverListener","enterDelay","enterNextDelay","leaveDelay","open","onOpen","onClose","dataQa","dataTags","internalOpen","setInternalOpen","useState","textElementRef","useRef","handleOpen","useCallback","event","isEmpty","shouldOpen","handleClose","jsx","Tooltip_default","Fade_default","SolaceToolTip_default","HelperText","theme","useTheme","FormLabel_default","HelperText_default","ErrorIcon","size","fill","jsxs","SvgIcon_default","ErrorTextContainer","Box_default","ErrorTextLabel","ErrorText","BASE_FONT_PX_SIZES","ErrorText_default","WarnIcon","WarningTextContainer","WarningTextLabel","WarningText","WarningText_default"],"mappings":"yJAgBA,IAAMA,CAAAA,CAAO,MAAA,CACPC,CAAAA,CAAW,UAAA,CACXC,EAAO,MAAA,CAEPC,CAAAA,CAAO,MAAA,CAEAC,CAAAA,CAAiB,CAC7B,IAAA,CAAMJ,CAAAA,CACN,QAAA,CAAUC,EACV,IAAA,CAAMC,CAAAA,CAEN,IAAA,CAAMC,CACP,ECkEA,IAAME,CAAAA,CAAcC,mBAAAA,CAAO,KAAK,CAAA,CAAE,KAAO,CACxC,WAAY,QAAA,CACZ,QAAA,CAAU,QAAA,CACV,YAAA,CAAc,WACd,QAAA,CAAU,UAAA,CAEV,UAAA,CAAY,CACX,QAAS,IAAA,CACT,OAAA,CAAS,OACV,CACD,CAAA,CAAE,CAAA,CAEF,SAASC,CAAAA,CAAc,CACtB,EAAA,CAAAC,CAAAA,CACA,KAAA,CAAAC,CAAAA,CACA,QAAAC,CAAAA,CAAUN,CAAAA,CAAe,IAAA,CACzB,QAAA,CAAAO,EACA,SAAA,CAAAC,CAAAA,CAAY,QAAA,CACZ,QAAA,CAAAC,CAAAA,CAAW,OAAA,CACX,oBAAA,CAAAC,CAAAA,CAAuB,MACvB,oBAAA,CAAAC,CAAAA,CAAuB,KAAA,CACvB,UAAA,CAAAC,EAAa,GAAA,CACb,cAAA,CAAAC,CAAAA,CAAiB,CAAA,CACjB,WAAAC,CAAAA,CAAa,CAAA,CACb,IAAA,CAAAC,CAAAA,CACA,MAAA,CAAAC,CAAAA,CACA,OAAA,CAAAC,CAAAA,CACA,OAAAC,CAAAA,CACA,QAAA,CAAAC,CACD,CAAA,CAAuB,CACtB,GAAM,CAACC,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AAA,CACpGL,cAAAA,CAACsB,EAAAA,CAAA,CAAkB,SAAA9C,CAAAA,CAAS,CAAA,CAAA,CAC7B,CAEF,KAEOgD,EAAAA,CAAQD","file":"chunk-7SKICMGL.js","sourcesContent":["/*\n * Copyright 2023-2025 Solace Systems. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nconst text = \"text\";\nconst overflow = \"overflow\";\nconst rich = \"rich\";\n/** @deprecated - as of Nov 12, 2024 the 'html variant is being deprecated in favour of using the rich variant**/\nconst html = \"html\";\n\nexport const TooltipVariant = {\n\ttext: text,\n\toverflow: overflow,\n\trich: rich,\n\t/** @deprecated [Nov 2024] the \"html\" variant for SolaceTooltip has been deprecated, please use rich variant instead */\n\thtml: html\n};\n\nexport type TooltipVariantTypes = (typeof TooltipVariant)[keyof typeof TooltipVariant];\n","/*\n * Copyright 2023-2025 Solace Systems. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { styled, Tooltip } from \"@mui/material\";\nimport { Fade } from \"@mui/material\";\nimport SolaceComponentProps from \"./SolaceComponentProps\";\nimport { useCallback, useRef, useState } from \"react\";\nimport { isEmpty } from \"lodash\";\nimport { TooltipVariant, TooltipVariantTypes } from \"../types/solaceTooltip\";\n\nexport interface SolaceTooltipProps extends SolaceComponentProps {\n\t/**\n\t * Unique identifier ... if `id` is not specified, a randomly generated value will be used in order to make it accessible for screen readers\n\t */\n\tid?: string;\n\t/**\n\t * Tooltip title\n\t */\n\ttitle?: string | JSX.Element;\n\t/**\n\t * Different type of tooltip, default to `text`\n\t */\n\tvariant?: TooltipVariantTypes;\n\t/**\n\t * Tooltip referenced element.\n\t */\n\tchildren: string | JSX.Element;\n\t/**\n\t * Tooltip placement, default to `bottom`\n\t */\n\tplacement?:\n\t\t| \"bottom-end\"\n\t\t| \"bottom-start\"\n\t\t| \"bottom\"\n\t\t| \"left-end\"\n\t\t| \"left-start\"\n\t\t| \"left\"\n\t\t| \"right-end\"\n\t\t| \"right-start\"\n\t\t| \"right\"\n\t\t| \"top-end\"\n\t\t| \"top-start\"\n\t\t| \"top\";\n\t/**\n\t * Tooltip maximum width, default to small\n\t */\n\tmaxWidth?: \"small\" | \"medium\" | \"full\";\n\t/**\n\t * Disable listener to show tooltip when referenced element is focused, default to false\n\t */\n\tdisableFocusListener?: boolean;\n\t/**\n\t * Disable listener to show tooltip when referenced element is hovered, default to false\n\t */\n\tdisableHoverListener?: boolean;\n\t/**\n\t * The number of milliseconds to wait before showing the tooltip. Default is 500ms\n\t */\n\tenterDelay?: number;\n\t/**\n\t * The number of milliseconds to wait before showing the tooltip when one was already recently opened. Default is 0ms\n\t */\n\tenterNextDelay?: number;\n\t/**\n\t * The number of milliseconds to wait before hiding the tooltip. Default is 0ms\n\t */\n\tleaveDelay?: number;\n\t/**\n\t * Controlled open state for tooltip. If `true`, the component is shown\n\t */\n\topen?: boolean;\n\t/**\n\t * Callback fired when the component requests to be open. Used in conjunction with `open` and `onClose`\n\t */\n\tonOpen?: (event: React.SyntheticEvent) => void;\n\t/**\n\t * Callback fired when the component requests to be closed. Used in conjunction with `open` and `onOpen`\n\t */\n\tonClose?: (event: Event | React.SyntheticEvent<Element, Event>) => void;\n}\n\nconst OverflowDiv = styled(\"div\")(() => ({\n\twhiteSpace: \"nowrap\",\n\toverflow: \"hidden\",\n\ttextOverflow: \"ellipsis\",\n\tposition: \"relative\",\n\t// adding this empty block to prevent showing tooltip twice on Safari\n\t\"&::after\": {\n\t\tcontent: '\"\"',\n\t\tdisplay: \"block\"\n\t}\n}));\n\nfunction SolaceTooltip({\n\tid,\n\ttitle,\n\tvariant = TooltipVariant.text,\n\tchildren,\n\tplacement = \"bottom\",\n\tmaxWidth = \"small\",\n\tdisableFocusListener = false,\n\tdisableHoverListener = false,\n\tenterDelay = 500,\n\tenterNextDelay = 0,\n\tleaveDelay = 0,\n\topen,\n\tonOpen,\n\tonClose,\n\tdataQa,\n\tdataTags\n}: SolaceTooltipProps) {\n\tconst [internalOpen, setInternalOpen] = useState(false);\n\tconst textElementRef = useRef<HTMLDivElement>(null);\n\n\tconst handleOpen = useCallback(\n\t\t(event: React.SyntheticEvent) => {\n\t\t\t// if empty, don't open the tooltip.\n\t\t\tif (isEmpty(title)) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tlet shouldOpen = true;\n\t\t\tif (\n\t\t\t\tvariant === \"overflow\" &&\n\t\t\t\ttextElementRef.current &&\n\t\t\t\ttextElementRef.current.scrollWidth <= textElementRef.current.clientWidth\n\t\t\t) {\n\t\t\t\tshouldOpen = false;\n\t\t\t}\n\t\t\tif (shouldOpen) {\n\t\t\t\tsetInternalOpen(true);\n\t\t\t\tif (onOpen) {\n\t\t\t\t\tonOpen(event);\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\t[onOpen, title, variant]\n\t);\n\n\tconst handleClose = useCallback(\n\t\t(event: Event | React.SyntheticEvent<Element, Event>) => {\n\t\t\tsetInternalOpen(false);\n\t\t\tif (onClose) {\n\t\t\t\tonClose(event);\n\t\t\t}\n\t\t},\n\t\t[onClose]\n\t);\n\n\treturn (\n\t\t<Tooltip\n\t\t\tid={id}\n\t\t\ttitle={title ?? \"\"}\n\t\t\tclasses={{\n\t\t\t\ttooltip: `${variant === TooltipVariant.html || variant === TooltipVariant.rich ? \"htmlContent\" : \"\"} ${\n\t\t\t\t\tmaxWidth ? maxWidth + \"Width\" : \"\"\n\t\t\t\t}`\n\t\t\t}}\n\t\t\tplacement={placement}\n\t\t\tdata-qa={dataQa}\n\t\t\tdata-tags={dataTags}\n\t\t\tdisableFocusListener={disableFocusListener}\n\t\t\tdisableHoverListener={disableHoverListener}\n\t\t\tenterDelay={enterDelay}\n\t\t\tenterNextDelay={enterNextDelay}\n\t\t\tleaveDelay={leaveDelay}\n\t\t\tTransitionComponent={Fade}\n\t\t\tTransitionProps={{ timeout: { enter: 150, exit: 200 } }}\n\t\t\topen={open ?? internalOpen}\n\t\t\tonOpen={handleOpen}\n\t\t\tonClose={handleClose}\n\t\t>\n\t\t\t{variant === \"overflow\" ? (\n\t\t\t\t<OverflowDiv ref={textElementRef}>{children}</OverflowDiv>\n\t\t\t) : typeof children === \"string\" ? (\n\t\t\t\t<span>{children}</span>\n\t\t\t) : (\n\t\t\t\tchildren\n\t\t\t)}\n\t\t</Tooltip>\n\t);\n}\n\nexport default SolaceTooltip;\n","/*\n * Copyright 2023-2025 Solace Systems. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { FormLabel, useTheme } from \"@mui/material\";\nimport SolaceComponentProps from \"../SolaceComponentProps\";\n\nexport interface HelperTextProps extends SolaceComponentProps {\n\tchildren: string | JSX.Element;\n}\n\nfunction HelperText({ children }: HelperTextProps): JSX.Element {\n\tconst theme = useTheme();\n\treturn (\n\t\t<FormLabel\n\t\t\tsx={{\n\t\t\t\tcolor: theme.palette.ux.secondary.text.wMain,\n\t\t\t\tfontSize: theme.typography.caption.fontSize,\n\t\t\t\tmarginTop: \"2px\"\n\t\t\t}}\n\t\t>\n\t\t\t{children}\n\t\t</FormLabel>\n\t);\n}\n\nexport default HelperText;\n","/*\n * Copyright 2023-2025 Solace Systems. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { IconProps } from \"./IconProps\";\nimport { SvgIcon } from \"@mui/material\";\n\nexport function ErrorIcon({ size, fill }: IconProps): JSX.Element {\n\treturn (\n\t\t<SvgIcon sx={{ width: `${size}px`, height: `${size}px` }} viewBox=\"0 0 24 24\">\n\t\t\t<path\n\t\t\t\td=\"M11.208 14.784C11.2827 14.8587 11.3733 14.896 11.48 14.896H12.776C12.8933 14.896 12.984 14.8587 13.048 14.784C13.1227 14.7093 13.16 14.6187 13.16 14.512V7.184C13.16 7.06667 13.1227 6.976 13.048 6.912C12.984 6.83733 12.8933 6.8 12.776 6.8H11.48C11.3733 6.8 11.2827 6.83733 11.208 6.912C11.1333 6.98667 11.096 7.07733 11.096 7.184V14.512C11.096 14.6187 11.1333 14.7093 11.208 14.784Z\"\n\t\t\t\tfill={fill}\n\t\t\t/>\n\t\t\t<path\n\t\t\t\td=\"M11.112 17.888C11.1867 17.9627 11.2773 18 11.384 18H12.872C12.9893 18 13.0853 17.9627 13.16 17.888C13.2347 17.8133 13.272 17.7227 13.272 17.616V16.128C13.272 16.0107 13.2347 15.9147 13.16 15.84C13.0853 15.7653 12.9893 15.728 12.872 15.728H11.384C11.2773 15.728 11.1867 15.7653 11.112 15.84C11.0373 15.9147 11 16.0107 11 16.128V17.616C11 17.7227 11.0373 17.8133 11.112 17.888Z\"\n\t\t\t\tfill={fill}\n\t\t\t/>\n\t\t\t<path\n\t\t\t\tfillRule=\"evenodd\"\n\t\t\t\tclipRule=\"evenodd\"\n\t\t\t\td=\"M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12ZM20 12C20 16.4183 16.4183 20 12 20C7.58172 20 4 16.4183 4 12C4 7.58172 7.58172 4 12 4C16.4183 4 20 7.58172 20 12Z\"\n\t\t\t\tfill={fill}\n\t\t\t/>\n\t\t</SvgIcon>\n\t);\n}\n","/*\n * Copyright 2023-2025 Solace Systems. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { FormLabel, useTheme, styled } from \"@mui/material\";\nimport { Box } from \"@mui/system\";\nimport SolaceComponentProps from \"../SolaceComponentProps\";\nimport { ErrorIcon } from \"../../resources/icons/ErrorIcon\";\nimport { BASE_FONT_PX_SIZES } from \"../../resources/typography\";\nimport { CSSProperties } from \"@mui/styled-engine\";\n\nconst ErrorTextContainer = styled(Box)(({ theme }) => ({\n\t...(theme.mixins.formComponent_ErrorText.container as CSSProperties)\n}));\n\nconst ErrorTextLabel = styled(FormLabel)(({ theme }) => ({\n\t...(theme.mixins.formComponent_ErrorText.label as CSSProperties)\n}));\n\nexport interface ErrorTextProps extends SolaceComponentProps {\n\tchildren: string | JSX.Element;\n}\n\nfunction ErrorText({ children }: ErrorTextProps): JSX.Element {\n\tconst theme = useTheme();\n\tconst size = theme.typography.subtitle1.fontSize?.toString();\n\treturn (\n\t\t<ErrorTextContainer>\n\t\t\t<ErrorIcon size={size ? parseInt(size) : BASE_FONT_PX_SIZES.md} fill={theme.palette.ux.error.wMain} />\n\t\t\t<ErrorTextLabel>{children}</ErrorTextLabel>\n\t\t</ErrorTextContainer>\n\t);\n}\n\nexport default ErrorText;\n","/*\n * Copyright 2023-2025 Solace Systems. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { IconProps } from \"./IconProps\";\nimport { SvgIcon } from \"@mui/material\";\n\nexport function WarnIcon({ size, fill }: IconProps): JSX.Element {\n\treturn (\n\t\t<SvgIcon sx={{ width: `${size}px`, height: `${size}px` }} viewBox=\"0 0 24 24\">\n\t\t\t<path\n\t\t\t\td=\"M11.8746 14.996C11.9493 15.0706 12.04 15.108 12.1466 15.108H13.4426C13.56 15.108 13.6506 15.0706 13.7146 14.996C13.7893 14.9213 13.8266 14.8306 13.8266 14.724V10.396C13.8266 10.2786 13.7893 10.188 13.7146 10.124C13.6506 10.0493 13.56 10.012 13.4426 10.012H12.1466C12.04 10.012 11.9493 10.0493 11.8746 10.124C11.8 10.1986 11.7626 10.2893 11.7626 10.396V14.724C11.7626 14.8306 11.8 14.9213 11.8746 14.996Z\"\n\t\t\t\tfill={fill}\n\t\t\t/>\n\t\t\t<path\n\t\t\t\td=\"M11.7786 18.1C11.8533 18.1746 11.944 18.212 12.0506 18.212H13.5386C13.656 18.212 13.752 18.1746 13.8266 18.1C13.9013 18.0253 13.9386 17.9346 13.9386 17.828V16.34C13.9386 16.2226 13.9013 16.1266 13.8266 16.052C13.752 15.9773 13.656 15.94 13.5386 15.94H12.0506C11.944 15.94 11.8533 15.9773 11.7786 16.052C11.704 16.1266 11.6666 16.2226 11.6666 16.34V17.828C11.6666 17.9346 11.704 18.0253 11.7786 18.1Z\"\n\t\t\t\tfill={fill}\n\t\t\t/>\n\t\t\t<path\n\t\t\t\tfillRule=\"evenodd\"\n\t\t\t\tclipRule=\"evenodd\"\n\t\t\t\td=\"M11.7919 3.79001C12.1726 3.10304 13.1604 3.10304 13.5411 3.79001L22.2358 19.4772C22.6053 20.1437 22.1233 20.962 21.3612 20.962H3.97177C3.20973 20.962 2.72771 20.1437 3.09713 19.4772L11.7919 3.79001ZM5.66936 18.962L12.6665 6.3376L19.6636 18.962H5.66936Z\"\n\t\t\t\tfill={fill}\n\t\t\t/>\n\t\t</SvgIcon>\n\t);\n}\n","/*\n * Copyright 2023-2025 Solace Systems. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { FormLabel, useTheme, styled } from \"@mui/material\";\nimport { Box } from \"@mui/system\";\nimport SolaceComponentProps from \"../SolaceComponentProps\";\nimport { WarnIcon } from \"../../resources/icons/WarnIcon\";\nimport { BASE_FONT_PX_SIZES } from \"../../resources/typography\";\nimport { CSSProperties } from \"@mui/styled-engine\";\n\nconst WarningTextContainer = styled(Box)(({ theme }) => ({\n\t...(theme.mixins.formComponent_WarningText.container as CSSProperties)\n}));\n\nconst WarningTextLabel = styled(FormLabel)(({ theme }) => ({\n\t...(theme.mixins.formComponent_WarningText.label as CSSProperties)\n}));\n\nexport interface WarningTextProps extends SolaceComponentProps {\n\tchildren: string | JSX.Element;\n}\n\nfunction WarningText({ children }: WarningTextProps): JSX.Element {\n\tconst theme = useTheme();\n\tconst size = theme.typography.subtitle1.fontSize?.toString();\n\treturn (\n\t\t<WarningTextContainer>\n\t\t\t<WarnIcon size={size ? parseInt(size) : BASE_FONT_PX_SIZES.md} fill={theme.palette.ux.warning.w100}></WarnIcon>\n\t\t\t<WarningTextLabel>{children}</WarningTextLabel>\n\t\t</WarningTextContainer>\n\t);\n}\n\nexport default WarningText;\n"]}
|
|
1
|
+
{"version":3,"sources":["../src/types/solaceTooltip.ts","../src/components/SolaceToolTip.tsx","../src/components/form/HelperText.tsx","../src/resources/icons/ErrorIcon.tsx","../src/components/form/ErrorText.tsx","../src/resources/icons/WarnIcon.tsx","../src/components/form/WarningText.tsx"],"names":["text","overflow","rich","html","TooltipVariant","OverflowDiv","styled_default","SolaceTooltip","id","title","variant","children","placement","maxWidth","disableFocusListener","disableHoverListener","enterDelay","enterNextDelay","leaveDelay","open","onOpen","onClose","dataQa","dataTags","internalOpen","setInternalOpen","useState","textElementRef","useRef","handleOpen","useCallback","event","isEmpty","shouldOpen","handleClose","jsx","Tooltip_default","Fade_default","SolaceToolTip_default","HelperText","theme","useTheme","FormLabel_default","HelperText_default","ErrorIcon","size","fill","jsxs","SvgIcon_default","ErrorTextContainer","Box_default","ErrorTextLabel","ErrorText","BASE_FONT_PX_SIZES","ErrorText_default","WarnIcon","WarningTextContainer","WarningTextLabel","WarningText","WarningText_default"],"mappings":"yJAgBA,IAAMA,CAAAA,CAAO,MAAA,CACPC,CAAAA,CAAW,UAAA,CACXC,EAAO,MAAA,CAEPC,CAAAA,CAAO,MAAA,CAEAC,CAAAA,CAAiB,CAC7B,IAAA,CAAMJ,CAAAA,CACN,QAAA,CAAUC,EACV,IAAA,CAAMC,CAAAA,CAEN,IAAA,CAAMC,CACP,ECkEA,IAAME,CAAAA,CAAcC,mBAAAA,CAAO,KAAK,CAAA,CAAE,KAAO,CACxC,WAAY,QAAA,CACZ,QAAA,CAAU,QAAA,CACV,YAAA,CAAc,WACd,QAAA,CAAU,UAAA,CAEV,UAAA,CAAY,CACX,Q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AAA,CAEIiB,EAAAA,CAAmBnD,mBAAAA,CAAOoC,mBAAS,EAAE,CAAC,CAAE,KAAA,CAAAF,CAAM,KAAO,CAC1D,GAAIA,CAAAA,CAAM,MAAA,CAAO,yBAAA,CAA0B,KAC5C,CAAA,CAAE,CAAA,CAMF,SAASkB,EAAAA,CAAY,CAAE,QAAA,CAAA/C,CAAS,EAAkC,CACjE,IAAM6B,CAAAA,CAAQC,mBAAAA,GACRI,CAAAA,CAAOL,CAAAA,CAAM,UAAA,CAAW,SAAA,CAAU,QAAA,EAAU,QAAA,EAAS,CAC3D,OACCO,gBAACS,EAAAA,CAAA,CACA,QAAA,CAAA,CAAArB,cAAAA,CAACoB,EAAA,CAAS,IAAA,CAAMV,CAAAA,CAAO,QAAA,CAASA,CAAI,CAAA,CAAIQ,mBAAAA,CAAmB,EAAA,CAAI,IAAA,CAAMb,CAAAA,CAAM,OAAA,CAAQ,EAAA,CAAG,OAAA,CAAQ,KAAM,CAAA,CACpGL,cAAAA,CAACsB,EAAAA,CAAA,CAAkB,SAAA9C,CAAAA,CAAS,CAAA,CAAA,CAC7B,CAEF,KAEOgD,EAAAA,CAAQD","file":"chunk-SWGQVSXQ.js","sourcesContent":["/*\n * Copyright 2023-2025 Solace Systems. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nconst text = \"text\";\nconst overflow = \"overflow\";\nconst rich = \"rich\";\n/** @deprecated - as of Nov 12, 2024 the 'html variant is being deprecated in favour of using the rich variant**/\nconst html = \"html\";\n\nexport const TooltipVariant = {\n\ttext: text,\n\toverflow: overflow,\n\trich: rich,\n\t/** @deprecated [Nov 2024] the \"html\" variant for SolaceTooltip has been deprecated, please use rich variant instead */\n\thtml: html\n};\n\nexport type TooltipVariantTypes = (typeof TooltipVariant)[keyof typeof TooltipVariant];\n","/*\n * Copyright 2023-2025 Solace Systems. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { styled, Tooltip } from \"@mui/material\";\nimport { Fade } from \"@mui/material\";\nimport SolaceComponentProps from \"./SolaceComponentProps\";\nimport { useCallback, useRef, useState } from \"react\";\nimport { isEmpty } from \"lodash\";\nimport { TooltipVariant, TooltipVariantTypes } from \"../types/solaceTooltip\";\n\nexport interface SolaceTooltipProps extends SolaceComponentProps {\n\t/**\n\t * Unique identifier ... if `id` is not specified, a randomly generated value will be used in order to make it accessible for screen readers\n\t */\n\tid?: string;\n\t/**\n\t * Tooltip title\n\t */\n\ttitle?: string | JSX.Element;\n\t/**\n\t * Different type of tooltip, default to `text`\n\t */\n\tvariant?: TooltipVariantTypes;\n\t/**\n\t * Tooltip referenced element.\n\t */\n\tchildren: string | JSX.Element;\n\t/**\n\t * Tooltip placement, default to `bottom`\n\t */\n\tplacement?:\n\t\t| \"bottom-end\"\n\t\t| \"bottom-start\"\n\t\t| \"bottom\"\n\t\t| \"left-end\"\n\t\t| \"left-start\"\n\t\t| \"left\"\n\t\t| \"right-end\"\n\t\t| \"right-start\"\n\t\t| \"right\"\n\t\t| \"top-end\"\n\t\t| \"top-start\"\n\t\t| \"top\";\n\t/**\n\t * Tooltip maximum width, default to small\n\t */\n\tmaxWidth?: \"small\" | \"medium\" | \"full\";\n\t/**\n\t * Disable listener to show tooltip when referenced element is focused, default to false\n\t */\n\tdisableFocusListener?: boolean;\n\t/**\n\t * Disable listener to show tooltip when referenced element is hovered, default to false\n\t */\n\tdisableHoverListener?: boolean;\n\t/**\n\t * The number of milliseconds to wait before showing the tooltip. Default is 500ms\n\t */\n\tenterDelay?: number;\n\t/**\n\t * The number of milliseconds to wait before showing the tooltip when one was already recently opened. Default is 0ms\n\t */\n\tenterNextDelay?: number;\n\t/**\n\t * The number of milliseconds to wait before hiding the tooltip. Default is 0ms\n\t */\n\tleaveDelay?: number;\n\t/**\n\t * Controlled open state for tooltip. If `true`, the component is shown\n\t */\n\topen?: boolean;\n\t/**\n\t * Callback fired when the component requests to be open. Used in conjunction with `open` and `onClose`\n\t */\n\tonOpen?: (event: React.SyntheticEvent) => void;\n\t/**\n\t * Callback fired when the component requests to be closed. Used in conjunction with `open` and `onOpen`\n\t */\n\tonClose?: (event: Event | React.SyntheticEvent<Element, Event>) => void;\n}\n\nconst OverflowDiv = styled(\"div\")(() => ({\n\twhiteSpace: \"nowrap\",\n\toverflow: \"hidden\",\n\ttextOverflow: \"ellipsis\",\n\tposition: \"relative\",\n\t// adding this empty block to prevent showing tooltip twice on Safari\n\t\"&::after\": {\n\t\tcontent: '\"\"',\n\t\tdisplay: \"block\"\n\t}\n}));\n\nfunction SolaceTooltip({\n\tid,\n\ttitle,\n\tvariant = TooltipVariant.text,\n\tchildren,\n\tplacement = \"bottom\",\n\tmaxWidth = \"small\",\n\tdisableFocusListener = false,\n\tdisableHoverListener = false,\n\tenterDelay = 500,\n\tenterNextDelay = 0,\n\tleaveDelay = 0,\n\topen,\n\tonOpen,\n\tonClose,\n\tdataQa,\n\tdataTags\n}: SolaceTooltipProps) {\n\tconst [internalOpen, setInternalOpen] = useState(false);\n\tconst textElementRef = useRef<HTMLDivElement>(null);\n\n\tconst handleOpen = useCallback(\n\t\t(event: React.SyntheticEvent) => {\n\t\t\t// if empty, don't open the tooltip.\n\t\t\tif (isEmpty(title)) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tlet shouldOpen = true;\n\t\t\tif (\n\t\t\t\tvariant === \"overflow\" &&\n\t\t\t\ttextElementRef.current &&\n\t\t\t\ttextElementRef.current.scrollWidth <= textElementRef.current.clientWidth\n\t\t\t) {\n\t\t\t\tshouldOpen = false;\n\t\t\t}\n\t\t\tif (shouldOpen) {\n\t\t\t\tsetInternalOpen(true);\n\t\t\t\tif (onOpen) {\n\t\t\t\t\tonOpen(event);\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\t[onOpen, title, variant]\n\t);\n\n\tconst handleClose = useCallback(\n\t\t(event: Event | React.SyntheticEvent<Element, Event>) => {\n\t\t\tsetInternalOpen(false);\n\t\t\tif (onClose) {\n\t\t\t\tonClose(event);\n\t\t\t}\n\t\t},\n\t\t[onClose]\n\t);\n\n\treturn (\n\t\t<Tooltip\n\t\t\tid={id}\n\t\t\ttitle={title ?? \"\"}\n\t\t\tclasses={{\n\t\t\t\ttooltip: `${variant === TooltipVariant.html || variant === TooltipVariant.rich ? \"htmlContent\" : \"\"} ${\n\t\t\t\t\tmaxWidth ? maxWidth + \"Width\" : \"\"\n\t\t\t\t}`\n\t\t\t}}\n\t\t\tplacement={placement}\n\t\t\tdata-qa={dataQa}\n\t\t\tdata-tags={dataTags}\n\t\t\tdisableFocusListener={disableFocusListener}\n\t\t\tdisableHoverListener={disableHoverListener}\n\t\t\tenterDelay={enterDelay}\n\t\t\tenterNextDelay={enterNextDelay}\n\t\t\tleaveDelay={leaveDelay}\n\t\t\tTransitionComponent={Fade}\n\t\t\tTransitionProps={{ timeout: { enter: 150, exit: 200 } }}\n\t\t\topen={open ?? internalOpen}\n\t\t\tonOpen={handleOpen}\n\t\t\tonClose={handleClose}\n\t\t>\n\t\t\t{variant === \"overflow\" ? (\n\t\t\t\t<OverflowDiv ref={textElementRef}>{children}</OverflowDiv>\n\t\t\t) : typeof children === \"string\" ? (\n\t\t\t\t<span>{children}</span>\n\t\t\t) : (\n\t\t\t\tchildren\n\t\t\t)}\n\t\t</Tooltip>\n\t);\n}\n\nexport default SolaceTooltip;\n","/*\n * Copyright 2023-2025 Solace Systems. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { FormLabel, useTheme } from \"@mui/material\";\nimport SolaceComponentProps from \"../SolaceComponentProps\";\n\nexport interface HelperTextProps extends SolaceComponentProps {\n\tchildren: string | JSX.Element;\n}\n\nfunction HelperText({ children }: HelperTextProps): JSX.Element {\n\tconst theme = useTheme();\n\treturn (\n\t\t<FormLabel\n\t\t\tsx={{\n\t\t\t\tcolor: theme.palette.ux.secondary.text.wMain,\n\t\t\t\tfontSize: theme.typography.caption.fontSize,\n\t\t\t\tmarginTop: \"2px\"\n\t\t\t}}\n\t\t>\n\t\t\t{children}\n\t\t</FormLabel>\n\t);\n}\n\nexport default HelperText;\n","/*\n * Copyright 2023-2025 Solace Systems. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { IconProps } from \"./IconProps\";\nimport { SvgIcon } from \"@mui/material\";\n\nexport function ErrorIcon({ size, fill }: IconProps): JSX.Element {\n\treturn (\n\t\t<SvgIcon sx={{ width: `${size}px`, height: `${size}px` }} viewBox=\"0 0 24 24\">\n\t\t\t<path\n\t\t\t\td=\"M11.208 14.784C11.2827 14.8587 11.3733 14.896 11.48 14.896H12.776C12.8933 14.896 12.984 14.8587 13.048 14.784C13.1227 14.7093 13.16 14.6187 13.16 14.512V7.184C13.16 7.06667 13.1227 6.976 13.048 6.912C12.984 6.83733 12.8933 6.8 12.776 6.8H11.48C11.3733 6.8 11.2827 6.83733 11.208 6.912C11.1333 6.98667 11.096 7.07733 11.096 7.184V14.512C11.096 14.6187 11.1333 14.7093 11.208 14.784Z\"\n\t\t\t\tfill={fill}\n\t\t\t/>\n\t\t\t<path\n\t\t\t\td=\"M11.112 17.888C11.1867 17.9627 11.2773 18 11.384 18H12.872C12.9893 18 13.0853 17.9627 13.16 17.888C13.2347 17.8133 13.272 17.7227 13.272 17.616V16.128C13.272 16.0107 13.2347 15.9147 13.16 15.84C13.0853 15.7653 12.9893 15.728 12.872 15.728H11.384C11.2773 15.728 11.1867 15.7653 11.112 15.84C11.0373 15.9147 11 16.0107 11 16.128V17.616C11 17.7227 11.0373 17.8133 11.112 17.888Z\"\n\t\t\t\tfill={fill}\n\t\t\t/>\n\t\t\t<path\n\t\t\t\tfillRule=\"evenodd\"\n\t\t\t\tclipRule=\"evenodd\"\n\t\t\t\td=\"M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12ZM20 12C20 16.4183 16.4183 20 12 20C7.58172 20 4 16.4183 4 12C4 7.58172 7.58172 4 12 4C16.4183 4 20 7.58172 20 12Z\"\n\t\t\t\tfill={fill}\n\t\t\t/>\n\t\t</SvgIcon>\n\t);\n}\n","/*\n * Copyright 2023-2025 Solace Systems. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { FormLabel, useTheme, styled } from \"@mui/material\";\nimport { Box } from \"@mui/system\";\nimport SolaceComponentProps from \"../SolaceComponentProps\";\nimport { ErrorIcon } from \"../../resources/icons/ErrorIcon\";\nimport { BASE_FONT_PX_SIZES } from \"../../resources/typography\";\nimport { CSSProperties } from \"@mui/styled-engine\";\n\nconst ErrorTextContainer = styled(Box)(({ theme }) => ({\n\t...(theme.mixins.formComponent_ErrorText.container as CSSProperties)\n}));\n\nconst ErrorTextLabel = styled(FormLabel)(({ theme }) => ({\n\t...(theme.mixins.formComponent_ErrorText.label as CSSProperties)\n}));\n\nexport interface ErrorTextProps extends SolaceComponentProps {\n\tchildren: string | JSX.Element;\n}\n\nfunction ErrorText({ children }: ErrorTextProps): JSX.Element {\n\tconst theme = useTheme();\n\tconst size = theme.typography.subtitle1.fontSize?.toString();\n\treturn (\n\t\t<ErrorTextContainer>\n\t\t\t<ErrorIcon size={size ? parseInt(size) : BASE_FONT_PX_SIZES.md} fill={theme.palette.ux.error.wMain} />\n\t\t\t<ErrorTextLabel>{children}</ErrorTextLabel>\n\t\t</ErrorTextContainer>\n\t);\n}\n\nexport default ErrorText;\n","/*\n * Copyright 2023-2025 Solace Systems. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { IconProps } from \"./IconProps\";\nimport { SvgIcon } from \"@mui/material\";\n\nexport function WarnIcon({ size, fill }: IconProps): JSX.Element {\n\treturn (\n\t\t<SvgIcon sx={{ width: `${size}px`, height: `${size}px` }} viewBox=\"0 0 24 24\">\n\t\t\t<path\n\t\t\t\td=\"M11.8746 14.996C11.9493 15.0706 12.04 15.108 12.1466 15.108H13.4426C13.56 15.108 13.6506 15.0706 13.7146 14.996C13.7893 14.9213 13.8266 14.8306 13.8266 14.724V10.396C13.8266 10.2786 13.7893 10.188 13.7146 10.124C13.6506 10.0493 13.56 10.012 13.4426 10.012H12.1466C12.04 10.012 11.9493 10.0493 11.8746 10.124C11.8 10.1986 11.7626 10.2893 11.7626 10.396V14.724C11.7626 14.8306 11.8 14.9213 11.8746 14.996Z\"\n\t\t\t\tfill={fill}\n\t\t\t/>\n\t\t\t<path\n\t\t\t\td=\"M11.7786 18.1C11.8533 18.1746 11.944 18.212 12.0506 18.212H13.5386C13.656 18.212 13.752 18.1746 13.8266 18.1C13.9013 18.0253 13.9386 17.9346 13.9386 17.828V16.34C13.9386 16.2226 13.9013 16.1266 13.8266 16.052C13.752 15.9773 13.656 15.94 13.5386 15.94H12.0506C11.944 15.94 11.8533 15.9773 11.7786 16.052C11.704 16.1266 11.6666 16.2226 11.6666 16.34V17.828C11.6666 17.9346 11.704 18.0253 11.7786 18.1Z\"\n\t\t\t\tfill={fill}\n\t\t\t/>\n\t\t\t<path\n\t\t\t\tfillRule=\"evenodd\"\n\t\t\t\tclipRule=\"evenodd\"\n\t\t\t\td=\"M11.7919 3.79001C12.1726 3.10304 13.1604 3.10304 13.5411 3.79001L22.2358 19.4772C22.6053 20.1437 22.1233 20.962 21.3612 20.962H3.97177C3.20973 20.962 2.72771 20.1437 3.09713 19.4772L11.7919 3.79001ZM5.66936 18.962L12.6665 6.3376L19.6636 18.962H5.66936Z\"\n\t\t\t\tfill={fill}\n\t\t\t/>\n\t\t</SvgIcon>\n\t);\n}\n","/*\n * Copyright 2023-2025 Solace Systems. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { FormLabel, useTheme, styled } from \"@mui/material\";\nimport { Box } from \"@mui/system\";\nimport SolaceComponentProps from \"../SolaceComponentProps\";\nimport { WarnIcon } from \"../../resources/icons/WarnIcon\";\nimport { BASE_FONT_PX_SIZES } from \"../../resources/typography\";\nimport { CSSProperties } from \"@mui/styled-engine\";\n\nconst WarningTextContainer = styled(Box)(({ theme }) => ({\n\t...(theme.mixins.formComponent_WarningText.container as CSSProperties)\n}));\n\nconst WarningTextLabel = styled(FormLabel)(({ theme }) => ({\n\t...(theme.mixins.formComponent_WarningText.label as CSSProperties)\n}));\n\nexport interface WarningTextProps extends SolaceComponentProps {\n\tchildren: string | JSX.Element;\n}\n\nfunction WarningText({ children }: WarningTextProps): JSX.Element {\n\tconst theme = useTheme();\n\tconst size = theme.typography.subtitle1.fontSize?.toString();\n\treturn (\n\t\t<WarningTextContainer>\n\t\t\t<WarnIcon size={size ? parseInt(size) : BASE_FONT_PX_SIZES.md} fill={theme.palette.ux.warning.w100}></WarnIcon>\n\t\t\t<WarningTextLabel>{children}</WarningTextLabel>\n\t\t</WarningTextContainer>\n\t);\n}\n\nexport default WarningText;\n"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
'use strict';var
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
'use strict';var chunkSWGQVSXQ_js=require('./chunk-SWGQVSXQ.js'),chunkYQTPPT5K_js=require('./chunk-YQTPPT5K.js'),chunkV45EFIXB_js=require('./chunk-V45EFIXB.js'),jsxRuntime=require('react/jsx-runtime');function ie({id:e,htmlForId:n,required:i=false,disabled:t=false,readOnly:l=false,noWrap:s=false,children:p}){return jsxRuntime.jsx(chunkV45EFIXB_js.le,{id:e,htmlFor:n,required:i,disabled:t,sx:{display:"block",whiteSpace:s?"nowrap":"normal"},className:chunkV45EFIXB_js.D({"read-only":l}),children:p})}var k=ie;var q={maxLength:255,menuItemHeight:38,menuItemHeightMultiline:58,GridListItemHeight:53,DEFAULT_NUM_OF_MENUITEM_DISPLAYED:9,closeButtonAriaLabel:"Close",actionMenuAriaLabel:"More Actions",clearButtonAriaLabel:"Clear"};var ae=chunkV45EFIXB_js.wa("div",{shouldForwardProp:e=>e!=="inlineLabel"})(({theme:e,inlineLabel:n})=>({display:"flex",flexDirection:"column",flexGrow:1,maxWidth:"100%",paddingLeft:n?"36px":"0px","&.hasWarnings":{"fieldset.MuiOutlinedInput-notchedOutline, fieldset.MuiInputBase-inputMultiline":{borderColor:`${e.palette.ux.warning.w100}`}}}));function de({id:e,label:n,stackLabel:i,large:t,bold:l,required:s,disabled:p,readOnly:f,inlineLabel:u,centerInlineLabel:c,helperText:b,errorText:r,warningText:m,children:g,sx:h}){return jsxRuntime.jsxs(chunkV45EFIXB_js.Ic,{display:"flex",flexDirection:u?"row":"column",justifyContent:"space-between",alignItems:c?"flex-start":"",sx:h,children:[i&&n&&jsxRuntime.jsx("div",{style:{marginTop:c?"5.5px":""},children:jsxRuntime.jsx(chunkYQTPPT5K_js.a,{id:`${e}-label`,htmlForId:`${e}`,required:s,disabled:p,large:t,bold:l,readOnly:f,children:n})}),!i&&n&&jsxRuntime.jsx("div",{style:{marginTop:c?"5.5px":""},children:jsxRuntime.jsx(k,{id:`${e}-label`,htmlForId:`${e}`,required:s,disabled:p,readOnly:f,noWrap:u,children:n})}),jsxRuntime.jsxs(ae,{inlineLabel:u,className:m?"hasWarnings":"",children:[g,b&&!r&&!m&&jsxRuntime.jsx(chunkSWGQVSXQ_js.c,{children:b}),m&&!r&&jsxRuntime.jsx(chunkSWGQVSXQ_js.g,{children:m}),r&&jsxRuntime.jsx(chunkSWGQVSXQ_js.e,{children:r})]})]})}var N=de;function se({id:e,name:n,label:i,value:t,helperText:l,placeholder:s,maxLength:p=q.maxLength,type:f="text",size:u=50,title:c,autoFocus:b=false,hasErrors:r=false,hasWarnings:m=false,required:g=false,inlineLabel:h=false,customIcon:o,disabled:F=false,readOnly:x=false,onChange:T,onBlur:O,onKeyDown:K,onKeyUp:U,onFocus:_,dataQa:E,dataTags:z,fullWidth:G=false,width:Y,endAdornment:I,minWidth:V,inputRef:Z}){let Q=chunkV45EFIXB_js.ua(),P=o&&o.position==="end"?jsxRuntime.jsx(chunkV45EFIXB_js.Gb,{onClick:o.handleClick,children:o.icon}):null,j=P||I?{endAdornment:jsxRuntime.jsxs(chunkV45EFIXB_js.Ie,{position:"end",children:[I,P]})}:{},ee=o&&o.position==="start"?{startAdornment:jsxRuntime.jsx(chunkV45EFIXB_js.Ie,{position:o.position,children:jsxRuntime.jsx(chunkV45EFIXB_js.Gb,{onClick:o.handleClick,children:o.icon})})}:{},ne={sx:{height:Q.spacing(4)},disabled:F,required:g},te=L=>{T&&T({name:n,value:L.target.value});},S=()=>e||n,oe=chunkV45EFIXB_js.wa("div")(({theme:L})=>({...L.mixins.formComponent_ReadOnlyToolTipContainer.container})),le=()=>x?jsxRuntime.jsx(oe,{children:jsxRuntime.jsx(chunkSWGQVSXQ_js.b,{variant:"overflow",title:typeof t<"u"&&t!==null?t+"":"",dataQa:E,children:typeof t<"u"&&t!==null?t+"":""})}):jsxRuntime.jsx(chunkV45EFIXB_js._h,{id:`${S()}`,name:n,inputProps:{maxLength:p,size:u,"data-qa":E,"data-tags":z,"data-testid":E,"data-lpignore":true,readOnly:x,"aria-describedby":l?`${S()}-textfield-helper-text`:"","aria-labelledby":i?`${S()}-label`:"","aria-readonly":x,role:"textbox",title:c,min:0},inputRef:Z,type:f,error:r,autoComplete:`dummy-field-${n}`,autoFocus:b,InputProps:{...ne,...j,...ee},margin:"dense",placeholder:s,value:t,onChange:te,onBlur:O,onKeyDown:K,onKeyUp:U,onFocus:_,fullWidth:G,sx:{minWidth:V}});return jsxRuntime.jsx(N,{id:S(),label:i,helperText:l,errorText:r?l:void 0,warningText:m?l:void 0,disabled:F,readOnly:x,required:g,inlineLabel:h,centerInlineLabel:h,sx:{width:Y},children:le()})}var Me=se;exports.a=k;exports.b=N;exports.c=q;exports.d=Me;//# sourceMappingURL=chunk-SXQRCXMP.js.map
|
|
2
|
+
//# sourceMappingURL=chunk-SXQRCXMP.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/form/SolaceLabel.tsx","../src/constants.ts","../src/components/form/FormChildBase.tsx","../src/components/form/SolaceTextField.tsx"],"names":["SolaceLabel","id","htmlForId","required","disabled","readOnly","noWrap","children","jsx","FormLabel_default","clsx_default","SolaceLabel_default","constants","ChildrenContainer","styled_default","prop","theme","inlineLabel","FormChildBase","label","stackLabel","large","bold","centerInlineLabel","helperText","errorText","warningText","sx","jsxs","Box_default","SolaceStackLabel_default","HelperText_default","WarningText_default","ErrorText_default","FormChildBase_default","SolaceTextField","name","value","placeholder","maxLength","type","size","title","autoFocus","hasErrors","hasWarnings","customIcon","onChange","onBlur","onKeyDown","onKeyUp","onFocus","dataQa","dataTags","fullWidth","width","endAdornment","minWidth","inputRef","useTheme","endIconProps","IconButton_default","inputEndAdornment","InputAdornment_default","inputStartAdornment","defaultInputProps","handleChange","event","getId","TooltipContainer","textField","SolaceToolTip_default","TextField_default","SolaceTextField_default"],"mappings":"yMAkDA,SAASA,EAAAA,CAAY,CACpB,GAAAC,CAAAA,CACA,SAAA,CAAAC,CAAAA,CACA,QAAA,CAAAC,EAAW,KAAA,CACX,QAAA,CAAAC,EAAW,KAAA,CACX,QAAA,CAAAC,EAAW,KAAA,CACX,MAAA,CAAAC,CAAAA,CAAS,KAAA,CACT,SAAAC,CACD,CAAA,CAAkC,CACjC,OACCC,eAACC,mBAAAA,CAAA,CACA,EAAA,CAAIR,CAAAA,CACJ,QAASC,CAAAA,CACT,QAAA,CAAUC,EACV,QAAA,CAAUC,CAAAA,CACV,GAAI,CACH,OAAA,CAAS,OAAA,CACT,UAAA,CAAYE,EAAS,QAAA,CAAW,QACjC,CAAA,CACA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AA,CACP,UAAA,CAAYK,CAAAA,CACZ,SAAA,CAAWoB,EAAYpB,CAAAA,CAAa,MAAA,CACpC,YAAaqB,CAAAA,CAAcrB,CAAAA,CAAa,OACxC,QAAA,CAAUpB,CAAAA,CACV,QAAA,CAAUC,CAAAA,CACV,SAAUF,CAAAA,CACV,WAAA,CAAac,CAAAA,CACb,iBAAA,CAAmBA,EACnB,EAAA,CAAI,CAAE,KAAA,CAAAsC,CAAM,EAEX,QAAA,CAAAe,EAAAA,GACF,CAEF,KAEOG,EAAAA,CAAQtC","file":"chunk-UFDVHFXE.js","sourcesContent":["/*\n * Copyright 2023-2025 Solace Systems. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { FormLabel } from \"@mui/material\";\nimport clsx from \"clsx\";\n\nexport interface SolaceLabelProps {\n\t/**\n\t * Unique identifier of the label\n\t */\n\tid: string;\n\t/**\n\t * identifier used for specifying which form element this label is bound to\n\t */\n\thtmlForId?: string;\n\t/**\n\t * Boolean flag used to display an indicator of whether or not this `input` is mandatory\n\t */\n\trequired?: boolean;\n\t/**\n\t * Boolean flag to disable the `input`\n\t */\n\tdisabled?: boolean;\n\t/**\n\t * Boolean flag for readOnly labels, changes font color to 55% black\n\t */\n\treadOnly?: boolean;\n\t/**\n\t * Boolean flag to suppress line breaks (text wrapping) within the label\n\t */\n\tnoWrap?: boolean;\n\t/**\n\t *\n\t */\n\tchildren?: React.ReactNode;\n}\n\nfunction SolaceLabel({\n\tid,\n\thtmlForId,\n\trequired = false,\n\tdisabled = false,\n\treadOnly = false,\n\tnoWrap = false,\n\tchildren\n}: SolaceLabelProps): JSX.Element {\n\treturn (\n\t\t<FormLabel\n\t\t\tid={id}\n\t\t\thtmlFor={htmlForId}\n\t\t\trequired={required}\n\t\t\tdisabled={disabled}\n\t\t\tsx={{\n\t\t\t\tdisplay: \"block\",\n\t\t\t\twhiteSpace: noWrap ? \"nowrap\" : \"normal\"\n\t\t\t}}\n\t\t\tclassName={clsx({ \"read-only\": readOnly })}\n\t\t>\n\t\t\t{children}\n\t\t</FormLabel>\n\t);\n}\n\nexport default SolaceLabel;\n","/*\n * Copyright 2023-2025 Solace Systems. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport const constants = {\n\tmaxLength: 255,\n\tmenuItemHeight: 38,\n\tmenuItemHeightMultiline: 58,\n\tGridListItemHeight: 53,\n\tDEFAULT_NUM_OF_MENUITEM_DISPLAYED: 9,\n\tcloseButtonAriaLabel: \"Close\",\n\tactionMenuAriaLabel: \"More Actions\",\n\tclearButtonAriaLabel: \"Clear\"\n};\n","/*\n * Copyright 2023-2025 Solace Systems. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { Box, styled } from \"@mui/material\";\nimport SolaceLabel from \"./SolaceLabel\";\nimport SolaceStackLabel from \"./SolaceStackLabel\";\nimport HelperText from \"./HelperText\";\nimport ErrorText from \"./ErrorText\";\nimport WarningText from \"./WarningText\";\nimport SolaceComponentProps from \"../SolaceComponentProps\";\nimport { SX } from \"../../types/sx\";\n\ninterface ChildrenContainerProps {\n\tinlineLabel: boolean;\n}\n\nconst ChildrenContainer = styled(\"div\", {\n\tshouldForwardProp: (prop) => prop !== \"inlineLabel\"\n})<ChildrenContainerProps>(({ theme, inlineLabel }) => ({\n\tdisplay: \"flex\",\n\tflexDirection: \"column\",\n\tflexGrow: 1,\n\tmaxWidth: \"100%\",\n\tpaddingLeft: inlineLabel ? \"36px\" : \"0px\",\n\t\"&.hasWarnings\": {\n\t\t\"fieldset.MuiOutlinedInput-notchedOutline, fieldset.MuiInputBase-inputMultiline\": {\n\t\t\tborderColor: `${theme.palette.ux.warning.w100}`\n\t\t}\n\t}\n}));\n\nexport interface FormChildBaseProps extends SolaceComponentProps {\n\t/**\n\t * Unique identifier ... if `id` is not specified, `name` value will be used in order to make `label` and `helperText` accessible for screen readers\n\t */\n\tid: string;\n\t/**\n\t * the label content to display on the screen\n\t */\n\tlabel?: string | JSX.Element;\n\t/**\n\t * Boolean flag to allow labels to be rendered as SolaceStackLabel component, which provides more props, such as large, bold\n\t */\n\tstackLabel?: boolean;\n\t/**\n\t * Boolean flag to allow StackSolaceLabel component to be rendered with larger font size of 16px (default to 14px)\n\t */\n\tlarge?: boolean;\n\t/**\n\t * Boolean flag to allow StackSolaceLabel component to be rendered with font weight of medium (default to regular)\n\t */\n\tbold?: boolean;\n\t/**\n\t * The value of the `input` element, required for controlled component\n\t */\n\tvalue?: string;\n\t/**\n\t * Content to display as supportive/explanatory text\n\t */\n\thelperText?: string | JSX.Element;\n\t/**\n\t * HelperText when the `input` in error state\n\t */\n\terrorText?: string | JSX.Element;\n\t/**\n\t * HelperText when the `input` in warning state\n\t */\n\twarningText?: string | JSX.Element;\n\t/**\n\t * Boolean flag used to display an indicator of whether or not this `input` is mandatory\n\t */\n\trequired: boolean;\n\t/**\n\t * Boolean flag to disable the `input`\n\t */\n\tdisabled: boolean;\n\t/**\n\t * Boolean flag to set the `input` in a read-only state\n\t */\n\treadOnly: boolean;\n\t/**\n\t * Display the label horizontally\n\t */\n\tinlineLabel: boolean;\n\t/**\n\t * Center align the inline label, this will e used only for single line field label\n\t */\n\tcenterInlineLabel?: boolean;\n\n\tchildren: JSX.Element;\n\t/**\n\t * The system prop that allows defining system overrides as well as additional CSS styles. See the `sx` page for more details.\n\t */\n\tsx?: SX;\n}\n\nfunction FormChildBase({\n\tid,\n\tlabel,\n\tstackLabel,\n\tlarge,\n\tbold,\n\trequired,\n\tdisabled,\n\treadOnly,\n\tinlineLabel,\n\tcenterInlineLabel,\n\thelperText,\n\terrorText,\n\twarningText,\n\tchildren,\n\tsx\n}: FormChildBaseProps): JSX.Element {\n\treturn (\n\t\t<Box\n\t\t\tdisplay=\"flex\"\n\t\t\tflexDirection={inlineLabel ? \"row\" : \"column\"}\n\t\t\tjustifyContent=\"space-between\"\n\t\t\talignItems={centerInlineLabel ? \"flex-start\" : \"\"}\n\t\t\tsx={sx}\n\t\t>\n\t\t\t{stackLabel && label && (\n\t\t\t\t<div style={{ marginTop: centerInlineLabel ? \"5.5px\" : \"\" }}>\n\t\t\t\t\t<SolaceStackLabel\n\t\t\t\t\t\tid={`${id}-label`}\n\t\t\t\t\t\thtmlForId={`${id}`}\n\t\t\t\t\t\trequired={required}\n\t\t\t\t\t\tdisabled={disabled}\n\t\t\t\t\t\tlarge={large}\n\t\t\t\t\t\tbold={bold}\n\t\t\t\t\t\treadOnly={readOnly}\n\t\t\t\t\t>\n\t\t\t\t\t\t{label}\n\t\t\t\t\t</SolaceStackLabel>\n\t\t\t\t</div>\n\t\t\t)}\n\t\t\t{!stackLabel && label && (\n\t\t\t\t<div style={{ marginTop: centerInlineLabel ? \"5.5px\" : \"\" }}>\n\t\t\t\t\t<SolaceLabel\n\t\t\t\t\t\tid={`${id}-label`}\n\t\t\t\t\t\thtmlForId={`${id}`}\n\t\t\t\t\t\trequired={required}\n\t\t\t\t\t\tdisabled={disabled}\n\t\t\t\t\t\treadOnly={readOnly}\n\t\t\t\t\t\tnoWrap={inlineLabel}\n\t\t\t\t\t>\n\t\t\t\t\t\t{label}\n\t\t\t\t\t</SolaceLabel>\n\t\t\t\t</div>\n\t\t\t)}\n\t\t\t<ChildrenContainer inlineLabel={inlineLabel} className={warningText ? \"hasWarnings\" : \"\"}>\n\t\t\t\t{children}\n\t\t\t\t{helperText && !errorText && !warningText && <HelperText>{helperText}</HelperText>}\n\t\t\t\t{warningText && !errorText && <WarningText>{warningText}</WarningText>}\n\t\t\t\t{errorText && <ErrorText>{errorText}</ErrorText>}\n\t\t\t</ChildrenContainer>\n\t\t</Box>\n\t);\n}\n\nexport default FormChildBase;\n","/*\n * Copyright 2023-2025 Solace Systems. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { InputAdornment, IconButton, TextField, useTheme } from \"@mui/material\";\nimport React from \"react\";\nimport { constants } from \"../../constants\";\nimport SolaceComponentProps from \"../SolaceComponentProps\";\nimport FormChildBase from \"./FormChildBase\";\nimport SolaceTooltip from \"../SolaceToolTip\";\nimport { styled } from \"@mui/material\";\nimport { CSSProperties } from \"@mui/styled-engine\";\n\nexport interface SolaceTextFieldChangeEvent {\n\tname: string;\n\tvalue: string;\n}\n\nexport interface SolaceTextFieldProps extends SolaceComponentProps {\n\t/**\n\t * Unique identifier ... if `id` is not specified, `name` value will be used in order to make `label` and `helperText` accessible for screen readers\n\t */\n\tid?: string;\n\t/**\n\t * Name attribute to assign to the `input` element\n\t */\n\tname: string;\n\t/**\n\t * the label content to display on the screen\n\t */\n\tlabel?: string | JSX.Element;\n\t/**\n\t * The value of the `input` element, required for controlled component\n\t */\n\tvalue?: string | number;\n\t/**\n\t * Content to display as supportive/explanitory text\n\t */\n\thelperText?: string | JSX.Element;\n\t/**\n\t * Short hint displayed in the `input` before user enters a value\n\t */\n\tplaceholder?: string;\n\t/**\n\t * The maximum number of characters which can be typed as the `input` value\n\t */\n\tmaxLength?: number;\n\t/**\n\t * The type of `input` element to render\n\t */\n\ttype?: \"text\" | \"number\" | \"password\" | \"email\" | \"url\";\n\t/**\n\t * The size/width of the `input` measured in characters\n\t */\n\tsize?: number;\n\t/**\n\t * The text to display as the tooltip hint\n\t */\n\ttitle?: string;\n\t/**\n\t * Boolean flag to control whether the `input` element is focused during first mount\n\t */\n\tautoFocus?: boolean;\n\t/**\n\t * Boolean flag to mark the `input` in error state\n\t */\n\thasErrors?: boolean;\n\t/**\n\t * Boolean flag to mark the `input` in warn state\n\t */\n\thasWarnings?: boolean;\n\t/**\n\t * Boolean flag used to display an indicator of whether or not this `input` is mandatory\n\t */\n\trequired?: boolean;\n\t/**\n\t * Boolean flag to control whether to stack the label on top of the `input` element (false) or place them inline to one another (true)\n\t */\n\tinlineLabel?: boolean;\n\t/**\n\t * Allows custom icon to be set at the beginning/end of the field.\n\t */\n\tcustomIcon?: {\n\t\ticon: React.ReactNode;\n\t\tposition: \"end\" | \"start\";\n\t\thandleClick?: (event: React.MouseEvent<HTMLButtonElement>) => void;\n\t};\n\t/**\n\t * Boolean flag to disable the `input`\n\t */\n\tdisabled?: boolean;\n\t/**\n\t * Boolean flag to set the `input` in a read-only state\n\t */\n\treadOnly?: boolean;\n\t/**\n\t * Callback function to trigger whenever the value of the `input` is changed\n\t */\n\tonChange?: (event: SolaceTextFieldChangeEvent) => void;\n\t/**\n\t * Callback function to trigger whenever the element of the `input` loses focus\n\t */\n\tonBlur?: (event: React.FocusEvent<HTMLInputElement>) => void;\n\t/**\n\t * Callback function to trigger whenever the element of the `input` receives key down event\n\t */\n\tonKeyDown?: (event: React.KeyboardEvent<HTMLInputElement>) => void;\n\t/**\n\t * Callback function to trigger whenever the element of the `input` receives key up event\n\t */\n\tonKeyUp?: (event: React.KeyboardEvent<HTMLInputElement>) => void;\n\t/**\n\t * Callback function to trigger whenever the element of the `input` is focused\n\t */\n\tonFocus?: (event: React.FocusEvent<HTMLInputElement>) => void;\n\t/**\n\t * Custom Width of the component.\n\t */\n\twidth?: string;\n\t/**\n\t * If true, the input will take up the full width of its container.\n\t */\n\tfullWidth?: boolean;\n\t/**\n\t * optional prop to pass an array of icon or button at the end of textfield\n\t */\n\tendAdornment?: (React.ReactNode | JSX.Element)[];\n\t/**\n\t * minimum width of the component\n\t */\n\tminWidth?: string;\n\t/**\n\t * pass a ref to the input element.\n\t */\n\tinputRef?: (input: HTMLInputElement) => void;\n}\n\nfunction SolaceTextField({\n\tid,\n\tname,\n\tlabel,\n\tvalue,\n\thelperText,\n\tplaceholder,\n\tmaxLength = constants.maxLength,\n\ttype = \"text\",\n\tsize = 50,\n\ttitle,\n\tautoFocus = false,\n\thasErrors = false,\n\thasWarnings = false,\n\trequired = false,\n\tinlineLabel = false,\n\tcustomIcon,\n\tdisabled = false,\n\treadOnly = false,\n\tonChange,\n\tonBlur,\n\tonKeyDown,\n\tonKeyUp,\n\tonFocus,\n\tdataQa,\n\tdataTags,\n\tfullWidth = false,\n\twidth,\n\tendAdornment,\n\tminWidth,\n\tinputRef\n}: SolaceTextFieldProps): JSX.Element {\n\tconst theme = useTheme();\n\n\tconst endIconProps =\n\t\tcustomIcon && customIcon.position === \"end\" ? (\n\t\t\t<IconButton onClick={customIcon.handleClick}>{customIcon.icon}</IconButton>\n\t\t) : null;\n\n\tconst inputEndAdornment =\n\t\tendIconProps || endAdornment\n\t\t\t? {\n\t\t\t\t\tendAdornment: (\n\t\t\t\t\t\t<InputAdornment position=\"end\">\n\t\t\t\t\t\t\t{endAdornment}\n\t\t\t\t\t\t\t{endIconProps}\n\t\t\t\t\t\t</InputAdornment>\n\t\t\t\t\t)\n\t\t\t }\n\t\t\t: {};\n\tconst inputStartAdornment =\n\t\tcustomIcon && customIcon.position === \"start\"\n\t\t\t? {\n\t\t\t\t\tstartAdornment: (\n\t\t\t\t\t\t<InputAdornment position={customIcon.position}>\n\t\t\t\t\t\t\t<IconButton onClick={customIcon.handleClick}>{customIcon.icon}</IconButton>\n\t\t\t\t\t\t</InputAdornment>\n\t\t\t\t\t)\n\t\t\t }\n\t\t\t: {};\n\n\tconst defaultInputProps = {\n\t\tsx: { height: theme.spacing(4) },\n\t\tdisabled: disabled,\n\t\trequired: required\n\t};\n\n\tconst handleChange = (event: React.ChangeEvent<HTMLInputElement>) => {\n\t\tif (onChange) {\n\t\t\tonChange({\n\t\t\t\tname: name,\n\t\t\t\tvalue: event.target.value\n\t\t\t});\n\t\t}\n\t};\n\n\tconst getId = () => {\n\t\treturn id ? id : name;\n\t};\n\n\tconst TooltipContainer = styled(\"div\")(({ theme }) => ({\n\t\t...(theme.mixins.formComponent_ReadOnlyToolTipContainer.container as CSSProperties)\n\t}));\n\n\tconst textField = () => {\n\t\t/* read-only behaviour */\n\t\tif (readOnly) {\n\t\t\treturn (\n\t\t\t\t<TooltipContainer>\n\t\t\t\t\t<SolaceTooltip\n\t\t\t\t\t\tvariant=\"overflow\"\n\t\t\t\t\t\ttitle={typeof value !== \"undefined\" && value !== null ? value + \"\" : \"\"}\n\t\t\t\t\t\tdataQa={dataQa}\n\t\t\t\t\t>\n\t\t\t\t\t\t{typeof value !== \"undefined\" && value !== null ? value + \"\" : \"\"}\n\t\t\t\t\t</SolaceTooltip>\n\t\t\t\t</TooltipContainer>\n\t\t\t);\n\t\t} else {\n\t\t\treturn (\n\t\t\t\t<TextField\n\t\t\t\t\tid={`${getId()}`}\n\t\t\t\t\tname={name}\n\t\t\t\t\tinputProps={{\n\t\t\t\t\t\tmaxLength: maxLength,\n\t\t\t\t\t\tsize: size,\n\t\t\t\t\t\t\"data-qa\": dataQa,\n\t\t\t\t\t\t\"data-tags\": dataTags,\n\t\t\t\t\t\t\"data-testid\": dataQa,\n\t\t\t\t\t\t\"data-lpignore\": true,\n\t\t\t\t\t\treadOnly: readOnly,\n\t\t\t\t\t\t\"aria-describedby\": helperText ? `${getId()}-textfield-helper-text` : \"\",\n\t\t\t\t\t\t\"aria-labelledby\": label ? `${getId()}-label` : \"\",\n\t\t\t\t\t\t\"aria-readonly\": readOnly,\n\t\t\t\t\t\trole: \"textbox\",\n\t\t\t\t\t\ttitle: title,\n\t\t\t\t\t\tmin: 0\n\t\t\t\t\t}}\n\t\t\t\t\tinputRef={inputRef}\n\t\t\t\t\ttype={type}\n\t\t\t\t\terror={hasErrors}\n\t\t\t\t\tautoComplete={`dummy-field-${name}`}\n\t\t\t\t\tautoFocus={autoFocus}\n\t\t\t\t\tInputProps={{ ...defaultInputProps, ...inputEndAdornment, ...inputStartAdornment }}\n\t\t\t\t\tmargin=\"dense\"\n\t\t\t\t\tplaceholder={placeholder}\n\t\t\t\t\tvalue={value}\n\t\t\t\t\tonChange={handleChange}\n\t\t\t\t\tonBlur={onBlur}\n\t\t\t\t\tonKeyDown={onKeyDown}\n\t\t\t\t\tonKeyUp={onKeyUp}\n\t\t\t\t\tonFocus={onFocus}\n\t\t\t\t\tfullWidth={fullWidth}\n\t\t\t\t\tsx={{ minWidth: minWidth }}\n\t\t\t\t/>\n\t\t\t);\n\t\t}\n\t};\n\n\treturn (\n\t\t<FormChildBase\n\t\t\tid={getId()}\n\t\t\tlabel={label}\n\t\t\thelperText={helperText}\n\t\t\terrorText={hasErrors ? helperText : undefined}\n\t\t\twarningText={hasWarnings ? helperText : undefined}\n\t\t\tdisabled={disabled}\n\t\t\treadOnly={readOnly}\n\t\t\trequired={required}\n\t\t\tinlineLabel={inlineLabel}\n\t\t\tcenterInlineLabel={inlineLabel}\n\t\t\tsx={{ width }}\n\t\t>\n\t\t\t{textField()}\n\t\t</FormChildBase>\n\t);\n}\n\nexport default SolaceTextField;\n"]}
|
|
1
|
+
{"version":3,"sources":["../src/components/form/SolaceLabel.tsx","../src/constants.ts","../src/components/form/FormChildBase.tsx","../src/components/form/SolaceTextField.tsx"],"names":["SolaceLabel","id","htmlForId","required","disabled","readOnly","noWrap","children","jsx","FormLabel_default","clsx_default","SolaceLabel_default","constants","ChildrenContainer","styled_default","prop","theme","inlineLabel","FormChildBase","label","stackLabel","large","bold","centerInlineLabel","helperText","errorText","warningText","sx","jsxs","Box_default","SolaceStackLabel_default","HelperText_default","WarningText_default","ErrorText_default","FormChildBase_default","SolaceTextField","name","value","placeholder","maxLength","type","size","title","autoFocus","hasErrors","hasWarnings","customIcon","onChange","onBlur","onKeyDown","onKeyUp","onFocus","dataQa","dataTags","fullWidth","width","endAdornment","minWidth","inputRef","useTheme","endIconProps","IconButton_default","inputEndAdornment","InputAdornment_default","inputStartAdornment","defaultInputProps","handleChange","event","getId","TooltipContainer","textField","SolaceToolTip_default","TextField_default","SolaceTextField_default"],"mappings":"yMAkDA,SAASA,EAAAA,CAAY,CACpB,GAAAC,CAAAA,CACA,SAAA,CAAAC,CAAAA,CACA,QAAA,CAAAC,EAAW,KAAA,CACX,QAAA,CAAAC,EAAW,KAAA,CACX,QAAA,CAAAC,EAAW,KAAA,CACX,MAAA,CAAAC,CAAAA,CAAS,KAAA,CACT,SAAAC,CACD,CAAA,CAAkC,CACjC,OACCC,eAACC,mBAAAA,CAAA,CACA,EAAA,CAAIR,CAAAA,CACJ,QAASC,CAAAA,CACT,QAAA,CAAUC,EACV,QAAA,CAAUC,CAAAA,CACV,GAAI,CACH,OAAA,CAAS,OAAA,CACT,UAAA,CAAYE,EAAS,QAAA,CAAW,QACjC,CAAA,CACA,SAAA,CAAWI,mBAAK,CAAE,WAAA,CAAaL,CAAS,CAAC,EAExC,QAAA,CAAAE,CAAAA,CACF,CAEF,CAEA,IAAOI,EAAQX,GC5DR,IAAMY,CAAAA,CAAY,CACxB,UAAW,GAAA,CACX,cAAA,CAAgB,EAAA,CAChB,uBAAA,CAAyB,G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,CAAac,CAAAA,CACb,iBAAA,CAAmBA,EACnB,EAAA,CAAI,CAAE,KAAA,CAAAsC,CAAM,EAEX,QAAA,CAAAe,EAAAA,GACF,CAEF,KAEOG,EAAAA,CAAQtC","file":"chunk-SXQRCXMP.js","sourcesContent":["/*\n * Copyright 2023-2025 Solace Systems. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { FormLabel } from \"@mui/material\";\nimport clsx from \"clsx\";\n\nexport interface SolaceLabelProps {\n\t/**\n\t * Unique identifier of the label\n\t */\n\tid: string;\n\t/**\n\t * identifier used for specifying which form element this label is bound to\n\t */\n\thtmlForId?: string;\n\t/**\n\t * Boolean flag used to display an indicator of whether or not this `input` is mandatory\n\t */\n\trequired?: boolean;\n\t/**\n\t * Boolean flag to disable the `input`\n\t */\n\tdisabled?: boolean;\n\t/**\n\t * Boolean flag for readOnly labels, changes font color to 55% black\n\t */\n\treadOnly?: boolean;\n\t/**\n\t * Boolean flag to suppress line breaks (text wrapping) within the label\n\t */\n\tnoWrap?: boolean;\n\t/**\n\t *\n\t */\n\tchildren?: React.ReactNode;\n}\n\nfunction SolaceLabel({\n\tid,\n\thtmlForId,\n\trequired = false,\n\tdisabled = false,\n\treadOnly = false,\n\tnoWrap = false,\n\tchildren\n}: SolaceLabelProps): JSX.Element {\n\treturn (\n\t\t<FormLabel\n\t\t\tid={id}\n\t\t\thtmlFor={htmlForId}\n\t\t\trequired={required}\n\t\t\tdisabled={disabled}\n\t\t\tsx={{\n\t\t\t\tdisplay: \"block\",\n\t\t\t\twhiteSpace: noWrap ? \"nowrap\" : \"normal\"\n\t\t\t}}\n\t\t\tclassName={clsx({ \"read-only\": readOnly })}\n\t\t>\n\t\t\t{children}\n\t\t</FormLabel>\n\t);\n}\n\nexport default SolaceLabel;\n","/*\n * Copyright 2023-2025 Solace Systems. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport const constants = {\n\tmaxLength: 255,\n\tmenuItemHeight: 38,\n\tmenuItemHeightMultiline: 58,\n\tGridListItemHeight: 53,\n\tDEFAULT_NUM_OF_MENUITEM_DISPLAYED: 9,\n\tcloseButtonAriaLabel: \"Close\",\n\tactionMenuAriaLabel: \"More Actions\",\n\tclearButtonAriaLabel: \"Clear\"\n};\n","/*\n * Copyright 2023-2025 Solace Systems. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { Box, styled } from \"@mui/material\";\nimport SolaceLabel from \"./SolaceLabel\";\nimport SolaceStackLabel from \"./SolaceStackLabel\";\nimport HelperText from \"./HelperText\";\nimport ErrorText from \"./ErrorText\";\nimport WarningText from \"./WarningText\";\nimport SolaceComponentProps from \"../SolaceComponentProps\";\nimport { SX } from \"../../types/sx\";\n\ninterface ChildrenContainerProps {\n\tinlineLabel: boolean;\n}\n\nconst ChildrenContainer = styled(\"div\", {\n\tshouldForwardProp: (prop) => prop !== \"inlineLabel\"\n})<ChildrenContainerProps>(({ theme, inlineLabel }) => ({\n\tdisplay: \"flex\",\n\tflexDirection: \"column\",\n\tflexGrow: 1,\n\tmaxWidth: \"100%\",\n\tpaddingLeft: inlineLabel ? \"36px\" : \"0px\",\n\t\"&.hasWarnings\": {\n\t\t\"fieldset.MuiOutlinedInput-notchedOutline, fieldset.MuiInputBase-inputMultiline\": {\n\t\t\tborderColor: `${theme.palette.ux.warning.w100}`\n\t\t}\n\t}\n}));\n\nexport interface FormChildBaseProps extends SolaceComponentProps {\n\t/**\n\t * Unique identifier ... if `id` is not specified, `name` value will be used in order to make `label` and `helperText` accessible for screen readers\n\t */\n\tid: string;\n\t/**\n\t * the label content to display on the screen\n\t */\n\tlabel?: string | JSX.Element;\n\t/**\n\t * Boolean flag to allow labels to be rendered as SolaceStackLabel component, which provides more props, such as large, bold\n\t */\n\tstackLabel?: boolean;\n\t/**\n\t * Boolean flag to allow StackSolaceLabel component to be rendered with larger font size of 16px (default to 14px)\n\t */\n\tlarge?: boolean;\n\t/**\n\t * Boolean flag to allow StackSolaceLabel component to be rendered with font weight of medium (default to regular)\n\t */\n\tbold?: boolean;\n\t/**\n\t * The value of the `input` element, required for controlled component\n\t */\n\tvalue?: string;\n\t/**\n\t * Content to display as supportive/explanatory text\n\t */\n\thelperText?: string | JSX.Element;\n\t/**\n\t * HelperText when the `input` in error state\n\t */\n\terrorText?: string | JSX.Element;\n\t/**\n\t * HelperText when the `input` in warning state\n\t */\n\twarningText?: string | JSX.Element;\n\t/**\n\t * Boolean flag used to display an indicator of whether or not this `input` is mandatory\n\t */\n\trequired: boolean;\n\t/**\n\t * Boolean flag to disable the `input`\n\t */\n\tdisabled: boolean;\n\t/**\n\t * Boolean flag to set the `input` in a read-only state\n\t */\n\treadOnly: boolean;\n\t/**\n\t * Display the label horizontally\n\t */\n\tinlineLabel: boolean;\n\t/**\n\t * Center align the inline label, this will e used only for single line field label\n\t */\n\tcenterInlineLabel?: boolean;\n\n\tchildren: JSX.Element;\n\t/**\n\t * The system prop that allows defining system overrides as well as additional CSS styles. See the `sx` page for more details.\n\t */\n\tsx?: SX;\n}\n\nfunction FormChildBase({\n\tid,\n\tlabel,\n\tstackLabel,\n\tlarge,\n\tbold,\n\trequired,\n\tdisabled,\n\treadOnly,\n\tinlineLabel,\n\tcenterInlineLabel,\n\thelperText,\n\terrorText,\n\twarningText,\n\tchildren,\n\tsx\n}: FormChildBaseProps): JSX.Element {\n\treturn (\n\t\t<Box\n\t\t\tdisplay=\"flex\"\n\t\t\tflexDirection={inlineLabel ? \"row\" : \"column\"}\n\t\t\tjustifyContent=\"space-between\"\n\t\t\talignItems={centerInlineLabel ? \"flex-start\" : \"\"}\n\t\t\tsx={sx}\n\t\t>\n\t\t\t{stackLabel && label && (\n\t\t\t\t<div style={{ marginTop: centerInlineLabel ? \"5.5px\" : \"\" }}>\n\t\t\t\t\t<SolaceStackLabel\n\t\t\t\t\t\tid={`${id}-label`}\n\t\t\t\t\t\thtmlForId={`${id}`}\n\t\t\t\t\t\trequired={required}\n\t\t\t\t\t\tdisabled={disabled}\n\t\t\t\t\t\tlarge={large}\n\t\t\t\t\t\tbold={bold}\n\t\t\t\t\t\treadOnly={readOnly}\n\t\t\t\t\t>\n\t\t\t\t\t\t{label}\n\t\t\t\t\t</SolaceStackLabel>\n\t\t\t\t</div>\n\t\t\t)}\n\t\t\t{!stackLabel && label && (\n\t\t\t\t<div style={{ marginTop: centerInlineLabel ? \"5.5px\" : \"\" }}>\n\t\t\t\t\t<SolaceLabel\n\t\t\t\t\t\tid={`${id}-label`}\n\t\t\t\t\t\thtmlForId={`${id}`}\n\t\t\t\t\t\trequired={required}\n\t\t\t\t\t\tdisabled={disabled}\n\t\t\t\t\t\treadOnly={readOnly}\n\t\t\t\t\t\tnoWrap={inlineLabel}\n\t\t\t\t\t>\n\t\t\t\t\t\t{label}\n\t\t\t\t\t</SolaceLabel>\n\t\t\t\t</div>\n\t\t\t)}\n\t\t\t<ChildrenContainer inlineLabel={inlineLabel} className={warningText ? \"hasWarnings\" : \"\"}>\n\t\t\t\t{children}\n\t\t\t\t{helperText && !errorText && !warningText && <HelperText>{helperText}</HelperText>}\n\t\t\t\t{warningText && !errorText && <WarningText>{warningText}</WarningText>}\n\t\t\t\t{errorText && <ErrorText>{errorText}</ErrorText>}\n\t\t\t</ChildrenContainer>\n\t\t</Box>\n\t);\n}\n\nexport default FormChildBase;\n","/*\n * Copyright 2023-2025 Solace Systems. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { InputAdornment, IconButton, TextField, useTheme } from \"@mui/material\";\nimport React from \"react\";\nimport { constants } from \"../../constants\";\nimport SolaceComponentProps from \"../SolaceComponentProps\";\nimport FormChildBase from \"./FormChildBase\";\nimport SolaceTooltip from \"../SolaceToolTip\";\nimport { styled } from \"@mui/material\";\nimport { CSSProperties } from \"@mui/styled-engine\";\n\nexport interface SolaceTextFieldChangeEvent {\n\tname: string;\n\tvalue: string;\n}\n\nexport interface SolaceTextFieldProps extends SolaceComponentProps {\n\t/**\n\t * Unique identifier ... if `id` is not specified, `name` value will be used in order to make `label` and `helperText` accessible for screen readers\n\t */\n\tid?: string;\n\t/**\n\t * Name attribute to assign to the `input` element\n\t */\n\tname: string;\n\t/**\n\t * the label content to display on the screen\n\t */\n\tlabel?: string | JSX.Element;\n\t/**\n\t * The value of the `input` element, required for controlled component\n\t */\n\tvalue?: string | number;\n\t/**\n\t * Content to display as supportive/explanitory text\n\t */\n\thelperText?: string | JSX.Element;\n\t/**\n\t * Short hint displayed in the `input` before user enters a value\n\t */\n\tplaceholder?: string;\n\t/**\n\t * The maximum number of characters which can be typed as the `input` value\n\t */\n\tmaxLength?: number;\n\t/**\n\t * The type of `input` element to render\n\t */\n\ttype?: \"text\" | \"number\" | \"password\" | \"email\" | \"url\";\n\t/**\n\t * The size/width of the `input` measured in characters\n\t */\n\tsize?: number;\n\t/**\n\t * The text to display as the tooltip hint\n\t */\n\ttitle?: string;\n\t/**\n\t * Boolean flag to control whether the `input` element is focused during first mount\n\t */\n\tautoFocus?: boolean;\n\t/**\n\t * Boolean flag to mark the `input` in error state\n\t */\n\thasErrors?: boolean;\n\t/**\n\t * Boolean flag to mark the `input` in warn state\n\t */\n\thasWarnings?: boolean;\n\t/**\n\t * Boolean flag used to display an indicator of whether or not this `input` is mandatory\n\t */\n\trequired?: boolean;\n\t/**\n\t * Boolean flag to control whether to stack the label on top of the `input` element (false) or place them inline to one another (true)\n\t */\n\tinlineLabel?: boolean;\n\t/**\n\t * Allows custom icon to be set at the beginning/end of the field.\n\t */\n\tcustomIcon?: {\n\t\ticon: React.ReactNode;\n\t\tposition: \"end\" | \"start\";\n\t\thandleClick?: (event: React.MouseEvent<HTMLButtonElement>) => void;\n\t};\n\t/**\n\t * Boolean flag to disable the `input`\n\t */\n\tdisabled?: boolean;\n\t/**\n\t * Boolean flag to set the `input` in a read-only state\n\t */\n\treadOnly?: boolean;\n\t/**\n\t * Callback function to trigger whenever the value of the `input` is changed\n\t */\n\tonChange?: (event: SolaceTextFieldChangeEvent) => void;\n\t/**\n\t * Callback function to trigger whenever the element of the `input` loses focus\n\t */\n\tonBlur?: (event: React.FocusEvent<HTMLInputElement>) => void;\n\t/**\n\t * Callback function to trigger whenever the element of the `input` receives key down event\n\t */\n\tonKeyDown?: (event: React.KeyboardEvent<HTMLInputElement>) => void;\n\t/**\n\t * Callback function to trigger whenever the element of the `input` receives key up event\n\t */\n\tonKeyUp?: (event: React.KeyboardEvent<HTMLInputElement>) => void;\n\t/**\n\t * Callback function to trigger whenever the element of the `input` is focused\n\t */\n\tonFocus?: (event: React.FocusEvent<HTMLInputElement>) => void;\n\t/**\n\t * Custom Width of the component.\n\t */\n\twidth?: string;\n\t/**\n\t * If true, the input will take up the full width of its container.\n\t */\n\tfullWidth?: boolean;\n\t/**\n\t * optional prop to pass an array of icon or button at the end of textfield\n\t */\n\tendAdornment?: (React.ReactNode | JSX.Element)[];\n\t/**\n\t * minimum width of the component\n\t */\n\tminWidth?: string;\n\t/**\n\t * pass a ref to the input element.\n\t */\n\tinputRef?: (input: HTMLInputElement) => void;\n}\n\nfunction SolaceTextField({\n\tid,\n\tname,\n\tlabel,\n\tvalue,\n\thelperText,\n\tplaceholder,\n\tmaxLength = constants.maxLength,\n\ttype = \"text\",\n\tsize = 50,\n\ttitle,\n\tautoFocus = false,\n\thasErrors = false,\n\thasWarnings = false,\n\trequired = false,\n\tinlineLabel = false,\n\tcustomIcon,\n\tdisabled = false,\n\treadOnly = false,\n\tonChange,\n\tonBlur,\n\tonKeyDown,\n\tonKeyUp,\n\tonFocus,\n\tdataQa,\n\tdataTags,\n\tfullWidth = false,\n\twidth,\n\tendAdornment,\n\tminWidth,\n\tinputRef\n}: SolaceTextFieldProps): JSX.Element {\n\tconst theme = useTheme();\n\n\tconst endIconProps =\n\t\tcustomIcon && customIcon.position === \"end\" ? (\n\t\t\t<IconButton onClick={customIcon.handleClick}>{customIcon.icon}</IconButton>\n\t\t) : null;\n\n\tconst inputEndAdornment =\n\t\tendIconProps || endAdornment\n\t\t\t? {\n\t\t\t\t\tendAdornment: (\n\t\t\t\t\t\t<InputAdornment position=\"end\">\n\t\t\t\t\t\t\t{endAdornment}\n\t\t\t\t\t\t\t{endIconProps}\n\t\t\t\t\t\t</InputAdornment>\n\t\t\t\t\t)\n\t\t\t }\n\t\t\t: {};\n\tconst inputStartAdornment =\n\t\tcustomIcon && customIcon.position === \"start\"\n\t\t\t? {\n\t\t\t\t\tstartAdornment: (\n\t\t\t\t\t\t<InputAdornment position={customIcon.position}>\n\t\t\t\t\t\t\t<IconButton onClick={customIcon.handleClick}>{customIcon.icon}</IconButton>\n\t\t\t\t\t\t</InputAdornment>\n\t\t\t\t\t)\n\t\t\t }\n\t\t\t: {};\n\n\tconst defaultInputProps = {\n\t\tsx: { height: theme.spacing(4) },\n\t\tdisabled: disabled,\n\t\trequired: required\n\t};\n\n\tconst handleChange = (event: React.ChangeEvent<HTMLInputElement>) => {\n\t\tif (onChange) {\n\t\t\tonChange({\n\t\t\t\tname: name,\n\t\t\t\tvalue: event.target.value\n\t\t\t});\n\t\t}\n\t};\n\n\tconst getId = () => {\n\t\treturn id ? id : name;\n\t};\n\n\tconst TooltipContainer = styled(\"div\")(({ theme }) => ({\n\t\t...(theme.mixins.formComponent_ReadOnlyToolTipContainer.container as CSSProperties)\n\t}));\n\n\tconst textField = () => {\n\t\t/* read-only behaviour */\n\t\tif (readOnly) {\n\t\t\treturn (\n\t\t\t\t<TooltipContainer>\n\t\t\t\t\t<SolaceTooltip\n\t\t\t\t\t\tvariant=\"overflow\"\n\t\t\t\t\t\ttitle={typeof value !== \"undefined\" && value !== null ? value + \"\" : \"\"}\n\t\t\t\t\t\tdataQa={dataQa}\n\t\t\t\t\t>\n\t\t\t\t\t\t{typeof value !== \"undefined\" && value !== null ? value + \"\" : \"\"}\n\t\t\t\t\t</SolaceTooltip>\n\t\t\t\t</TooltipContainer>\n\t\t\t);\n\t\t} else {\n\t\t\treturn (\n\t\t\t\t<TextField\n\t\t\t\t\tid={`${getId()}`}\n\t\t\t\t\tname={name}\n\t\t\t\t\tinputProps={{\n\t\t\t\t\t\tmaxLength: maxLength,\n\t\t\t\t\t\tsize: size,\n\t\t\t\t\t\t\"data-qa\": dataQa,\n\t\t\t\t\t\t\"data-tags\": dataTags,\n\t\t\t\t\t\t\"data-testid\": dataQa,\n\t\t\t\t\t\t\"data-lpignore\": true,\n\t\t\t\t\t\treadOnly: readOnly,\n\t\t\t\t\t\t\"aria-describedby\": helperText ? `${getId()}-textfield-helper-text` : \"\",\n\t\t\t\t\t\t\"aria-labelledby\": label ? `${getId()}-label` : \"\",\n\t\t\t\t\t\t\"aria-readonly\": readOnly,\n\t\t\t\t\t\trole: \"textbox\",\n\t\t\t\t\t\ttitle: title,\n\t\t\t\t\t\tmin: 0\n\t\t\t\t\t}}\n\t\t\t\t\tinputRef={inputRef}\n\t\t\t\t\ttype={type}\n\t\t\t\t\terror={hasErrors}\n\t\t\t\t\tautoComplete={`dummy-field-${name}`}\n\t\t\t\t\tautoFocus={autoFocus}\n\t\t\t\t\tInputProps={{ ...defaultInputProps, ...inputEndAdornment, ...inputStartAdornment }}\n\t\t\t\t\tmargin=\"dense\"\n\t\t\t\t\tplaceholder={placeholder}\n\t\t\t\t\tvalue={value}\n\t\t\t\t\tonChange={handleChange}\n\t\t\t\t\tonBlur={onBlur}\n\t\t\t\t\tonKeyDown={onKeyDown}\n\t\t\t\t\tonKeyUp={onKeyUp}\n\t\t\t\t\tonFocus={onFocus}\n\t\t\t\t\tfullWidth={fullWidth}\n\t\t\t\t\tsx={{ minWidth: minWidth }}\n\t\t\t\t/>\n\t\t\t);\n\t\t}\n\t};\n\n\treturn (\n\t\t<FormChildBase\n\t\t\tid={getId()}\n\t\t\tlabel={label}\n\t\t\thelperText={helperText}\n\t\t\terrorText={hasErrors ? helperText : undefined}\n\t\t\twarningText={hasWarnings ? helperText : undefined}\n\t\t\tdisabled={disabled}\n\t\t\treadOnly={readOnly}\n\t\t\trequired={required}\n\t\t\tinlineLabel={inlineLabel}\n\t\t\tcenterInlineLabel={inlineLabel}\n\t\t\tsx={{ width }}\n\t\t>\n\t\t\t{textField()}\n\t\t</FormChildBase>\n\t);\n}\n\nexport default SolaceTextField;\n"]}
|