@muraldevkit/ui-toolkit 4.83.0 → 4.84.0

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.
@@ -112,6 +112,7 @@ function MrlMultiFilterField(props) {
112
112
  "data-qa": dataQa,
113
113
  ref: elementRef
114
114
  }), renderChildren(), errorId && /*#__PURE__*/React__namespace.createElement(MrlInlineMessage.MrlInlineMessage, {
115
+ className: classnames__default.default(MrlMultiFilterField_module.default['MrlMultiFilterField-error'], 'MrlMultiFilterField-error'),
115
116
  id: errorId,
116
117
  kind: "error",
117
118
  message: message
@@ -1 +1 @@
1
- {"version":3,"file":"MrlMultiFilterField.js","sources":["../../../../../src/components/multi-filter/MrlMultiFilterField/MrlMultiFilterField.tsx"],"sourcesContent":["import * as React from 'react';\nimport classnames from 'classnames';\nimport styles from './MrlMultiFilterField.module.scss';\nimport { MrlInlineMessage } from '../../notification/MrlInlineMessage/MrlInlineMessage';\nimport { useOptionalMrlMultiFilterContext } from '../MrlMultiFilterContext/MrlMultiFilterContext';\nimport { DataQa } from '../../../utils/dataQa';\nimport { getUniqueId } from '../../../utils/setAttributes/setAttributes';\n\nexport type MrlMultiFilterFieldRenderProps = {\n\t/**\n\t * Id of the rendered error message, or `undefined` when there is no error. Pass it to the\n\t * form element's `aria-errormessage` (with `aria-invalid`) or `aria-describedby` so the\n\t * error is announced with the field.\n\t */\n\terrorId?: string;\n\t/**\n\t * Whether the field is showing an error. Pass it to the form element's `hasError` (or\n\t * `aria-invalid`) so its error styles and invalid state match the message.\n\t */\n\thasError: boolean;\n};\n\n/**\n * A field of the MrlMultiFilter draft, returned by `getField` from its render prop.\n */\nexport type MrlMultiFilterFieldBinding<V> = {\n\t/**\n\t * The required error message, set while the field is required and empty after Apply.\n\t */\n\terror?: string;\n\t/**\n\t * Name of the field in the draft.\n\t */\n\tname: string;\n\t/**\n\t * Whether the field is required.\n\t */\n\trequired: boolean;\n\t/**\n\t * Updates the field's value in the draft.\n\t */\n\tsetValue: (value: V) => void;\n\t/**\n\t * The field's value in the draft.\n\t */\n\tvalue: V;\n};\n\nexport type MrlMultiFilterFieldBoundRenderProps<V> = MrlMultiFilterFieldRenderProps &\n\tPick<MrlMultiFilterFieldBinding<V>, 'required' | 'setValue' | 'value'>;\n\n/**\n * A field that never shows an error: plain children, no `errorMessage`.\n *\n * Docgen merges the JSDoc of the union members (this one first), so each comment below is\n * written to read on its own and as the first part of the merged description.\n */\ntype MrlMultiFilterFieldWithoutErrorProps = {\n\t/**\n\t * The field content, usually a label and a form element.\n\t */\n\tchildren?: React.ReactNode;\n\t/**\n\t * Error message shown below the field. When omitted, no error is rendered.\n\t */\n\terrorMessage?: never;\n\t/**\n\t * Binds the field to the MrlMultiFilter draft. Pass `getField('name')` from the\n\t * MrlMultiFilter render prop.\n\t */\n\tfield?: never;\n\t/**\n\t * Message shown when the field is required and empty on Apply. Defaults to the\n\t * MrlMultiFilter `requiredMessage`.\n\t */\n\trequiredMessage?: never;\n};\n\n/**\n * A field that can show an error: `children` must be a function so the consumer can link the\n * error message to the form element.\n */\ntype MrlMultiFilterFieldWithErrorProps = Omit<\n\tMrlMultiFilterFieldWithoutErrorProps,\n\t'children' | 'errorMessage'\n> & {\n\t/**\n\t * To show an error, pass a function instead. It receives `errorId` and `hasError`: pass\n\t * them to the form element's `aria-errormessage` and `hasError` (or `aria-invalid`).\n\t */\n\tchildren: (renderProps: MrlMultiFilterFieldRenderProps) => React.ReactNode;\n\t/**\n\t * Requires `children` to be a function, so the message can be linked to the form element.\n\t */\n\terrorMessage?: string;\n};\n\n/**\n * A field bound to the MrlMultiFilter draft through `field`.\n */\ntype MrlMultiFilterFieldBoundProps<V> = {\n\t/**\n\t * With `field`, the function also receives `value`, `setValue` and `required`.\n\t */\n\tchildren: (renderProps: MrlMultiFilterFieldBoundRenderProps<V>) => React.ReactNode;\n\t/**\n\t * Takes precedence over the required error.\n\t */\n\terrorMessage?: string;\n\t/**\n\t * Must come from the same MrlMultiFilter.\n\t */\n\tfield: MrlMultiFilterFieldBinding<V>;\n\t/**\n\t * Overrides it for this field.\n\t */\n\trequiredMessage?: string;\n};\n\ntype MrlMultiFilterFieldBaseProps = Omit<React.ComponentPropsWithoutRef<'div'>, 'children'> &\n\tDataQa;\n\nexport type MrlMultiFilterFieldProps<V = unknown> = (\n\t| MrlMultiFilterFieldWithoutErrorProps\n\t| MrlMultiFilterFieldWithErrorProps\n\t| MrlMultiFilterFieldBoundProps<V>\n) &\n\tMrlMultiFilterFieldBaseProps;\n\n/**\n * MrlMultiFilterField component.\n *\n * Wraps a single filter control of the MrlMultiFilter and shows an inline error message\n * below it when `errorMessage` is set. `errorMessage` requires `children` to be a render\n * function, which receives `errorId` and `hasError` so the error is always linked to the form\n * element and its invalid state matches the message. Pass `field={getField('name')}` from the\n * MrlMultiFilter render prop to bind the field to the draft: the function then also receives\n * the typed `value`, `setValue` and `required`, and the required error is shown on Apply.\n *\n * @param props - The component props.\n * @returns The MrlMultiFilterField component.\n */\nexport function MrlMultiFilterField<V>(\n\tprops: MrlMultiFilterFieldBoundProps<V> & MrlMultiFilterFieldBaseProps\n): React.ReactElement;\nexport function MrlMultiFilterField(\n\tprops: (MrlMultiFilterFieldWithoutErrorProps | MrlMultiFilterFieldWithErrorProps) &\n\t\tMrlMultiFilterFieldBaseProps\n): React.ReactElement;\n// Overloads, so TypeScript types the render function of a bound and an unbound field.\nexport function MrlMultiFilterField<V>(props: MrlMultiFilterFieldProps<V>): React.ReactElement {\n\tconst {\n\t\tchildren,\n\t\tclassName,\n\t\t['data-qa']: dataQa,\n\t\terrorMessage,\n\t\tfield,\n\t\trequiredMessage,\n\t\t...rest\n\t} = props;\n\n\tconst context = useOptionalMrlMultiFilterContext();\n\tconst registerField = context?.registerField;\n\tconst name = field?.name;\n\n\tconst elementRef = React.useRef<HTMLDivElement>(null);\n\tconst errorIdRef = React.useRef<string>(getUniqueId('mrl-multi-filter-field-error'));\n\n\t// Register the element, so validation can focus the field.\n\tReact.useEffect(() => {\n\t\tif (name === undefined || !registerField || !elementRef.current) return;\n\t\treturn registerField(name, elementRef.current);\n\t}, [name, registerField]);\n\n\tconst requiredError = field?.error ? (requiredMessage ?? field.error) : undefined;\n\tconst message = errorMessage ?? requiredError;\n\tconst hasError = Boolean(message);\n\tconst errorId = hasError ? errorIdRef.current : undefined;\n\n\tconst renderChildren = () => {\n\t\tif (typeof children !== 'function') return children;\n\t\tif (!field) {\n\t\t\treturn (children as MrlMultiFilterFieldWithErrorProps['children'])({ errorId, hasError });\n\t\t}\n\t\treturn (children as MrlMultiFilterFieldBoundProps<V>['children'])({\n\t\t\terrorId,\n\t\t\thasError,\n\t\t\trequired: field.required,\n\t\t\tsetValue: field.setValue,\n\t\t\tvalue: field.value\n\t\t});\n\t};\n\n\treturn (\n\t\t<div\n\t\t\t{...rest}\n\t\t\tclassName={classnames(styles['MrlMultiFilterField'], 'MrlMultiFilterField', className)}\n\t\t\tdata-qa={dataQa}\n\t\t\tref={elementRef}\n\t\t>\n\t\t\t{renderChildren()}\n\t\t\t{errorId && <MrlInlineMessage id={errorId} kind=\"error\" message={message} />}\n\t\t</div>\n\t);\n}\n"],"names":["MrlMultiFilterField","props","children","className","dataQa","errorMessage","field","requiredMessage","rest","_objectWithoutProperties","_excluded","context","useOptionalMrlMultiFilterContext","registerField","name","elementRef","React","useRef","errorIdRef","getUniqueId","useEffect","undefined","current","requiredError","error","message","hasError","Boolean","errorId","renderChildren","required","setValue","value","createElement","_extends","classnames","styles","ref","MrlInlineMessage","id","kind"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsBA;AACA;AACA;;AA2BA;AACA;AACA;AACA;AACA;AACA;;AAsBA;AACA;AACA;AACA;;AAgBA;AACA;AACA;;AA8BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAQA;AACO,SAASA,mBAAmBA,CAAIC,KAAkC,EAAsB;AAC9F,EAAA,IACCC,QAAQ,GAOLD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AAY,GAAIkB,aAAa;AAC7C,EAAA,IAAMG,QAAQ,GAAGC,OAAO,CAACF,OAAO,CAAC;EACjC,IAAMG,OAAO,GAAGF,QAAQ,GAAGR,UAAU,CAACI,OAAO,GAAGD,SAAS;EAEzD,IAAMQ,cAAc,GAAGA,MAAM;AAC5B,IAAA,IAAI,OAAO3B,QAAQ,KAAK,UAAU,EAAE,OAAOA,QAAQ;IACnD,IAAI,CAACI,KAAK,EAAE;AACX,MAAA,OAAQJ,QAAQ,CAAmD;QAAE0B,OAAO;AAAEF,QAAAA;AAAS,OAAC,CAAC;AAC1F,IAAA;AACA,IAAA,OAAQxB,QAAQ,CAAkD;MACjE0B,OAAO;MACPF,QAAQ;MACRI,QAAQ,EAAExB,KAAK,CAACwB,QAAQ;MACxBC,QAAQ,EAAEzB,KAAK,CAACyB,QAAQ;MACxBC,KAAK,EAAE1B,KAAK,CAAC0B;AACd,KAAC,CAAC;EACH,CAAC;AAED,EAAA,oBACChB,gBAAA,CAAAiB,aAAA,CAAA,KAAA,EAAAC,iCAAA,KACK1B,IAAI,EAAA;IACRL,SAAS,EAAEgC,2BAAU,CAACC,kCAAM,CAAC,qBAAqB,CAAC,EAAE,qBAAqB,EAAEjC,SAAS,CAAE;AACvF,IAAA,SAAA,EAASC,MAAO;AAChBiC,IAAAA,GAAG,EAAEtB;GAAW,CAAA,EAEfc,cAAc,EAAE,EAChBD,OAAO,iBAAIZ,gBAAA,CAAAiB,aAAA,CAACK,iCAAgB,EAAA;AAACC,IAAAA,EAAE,EAAEX,OAAQ;AAACY,IAAAA,IAAI,EAAC,OAAO;AAACf,IAAAA,OAAO,EAAEA;AAAQ,GAAE,CACvE,CAAC;AAER;;;;"}
1
+ {"version":3,"file":"MrlMultiFilterField.js","sources":["../../../../../src/components/multi-filter/MrlMultiFilterField/MrlMultiFilterField.tsx"],"sourcesContent":["import * as React from 'react';\nimport classnames from 'classnames';\nimport styles from './MrlMultiFilterField.module.scss';\nimport { MrlInlineMessage } from '../../notification/MrlInlineMessage/MrlInlineMessage';\nimport { useOptionalMrlMultiFilterContext } from '../MrlMultiFilterContext/MrlMultiFilterContext';\nimport { DataQa } from '../../../utils/dataQa';\nimport { getUniqueId } from '../../../utils/setAttributes/setAttributes';\n\nexport type MrlMultiFilterFieldRenderProps = {\n\t/**\n\t * Id of the rendered error message, or `undefined` when there is no error. Pass it to the\n\t * form element's `aria-errormessage` (with `aria-invalid`) or `aria-describedby` so the\n\t * error is announced with the field.\n\t */\n\terrorId?: string;\n\t/**\n\t * Whether the field is showing an error. Pass it to the form element's `hasError` (or\n\t * `aria-invalid`) so its error styles and invalid state match the message.\n\t */\n\thasError: boolean;\n};\n\n/**\n * A field of the MrlMultiFilter draft, returned by `getField` from its render prop.\n */\nexport type MrlMultiFilterFieldBinding<V> = {\n\t/**\n\t * The required error message, set while the field is required and empty after Apply.\n\t */\n\terror?: string;\n\t/**\n\t * Name of the field in the draft.\n\t */\n\tname: string;\n\t/**\n\t * Whether the field is required.\n\t */\n\trequired: boolean;\n\t/**\n\t * Updates the field's value in the draft.\n\t */\n\tsetValue: (value: V) => void;\n\t/**\n\t * The field's value in the draft.\n\t */\n\tvalue: V;\n};\n\nexport type MrlMultiFilterFieldBoundRenderProps<V> = MrlMultiFilterFieldRenderProps &\n\tPick<MrlMultiFilterFieldBinding<V>, 'required' | 'setValue' | 'value'>;\n\n/**\n * A field that never shows an error: plain children, no `errorMessage`.\n *\n * Docgen merges the JSDoc of the union members (this one first), so each comment below is\n * written to read on its own and as the first part of the merged description.\n */\ntype MrlMultiFilterFieldWithoutErrorProps = {\n\t/**\n\t * The field content, usually a label and a form element.\n\t */\n\tchildren?: React.ReactNode;\n\t/**\n\t * Error message shown below the field. When omitted, no error is rendered.\n\t */\n\terrorMessage?: never;\n\t/**\n\t * Binds the field to the MrlMultiFilter draft. Pass `getField('name')` from the\n\t * MrlMultiFilter render prop.\n\t */\n\tfield?: never;\n\t/**\n\t * Message shown when the field is required and empty on Apply. Defaults to the\n\t * MrlMultiFilter `requiredMessage`.\n\t */\n\trequiredMessage?: never;\n};\n\n/**\n * A field that can show an error: `children` must be a function so the consumer can link the\n * error message to the form element.\n */\ntype MrlMultiFilterFieldWithErrorProps = Omit<\n\tMrlMultiFilterFieldWithoutErrorProps,\n\t'children' | 'errorMessage'\n> & {\n\t/**\n\t * To show an error, pass a function instead. It receives `errorId` and `hasError`: pass\n\t * them to the form element's `aria-errormessage` and `hasError` (or `aria-invalid`).\n\t */\n\tchildren: (renderProps: MrlMultiFilterFieldRenderProps) => React.ReactNode;\n\t/**\n\t * Requires `children` to be a function, so the message can be linked to the form element.\n\t */\n\terrorMessage?: string;\n};\n\n/**\n * A field bound to the MrlMultiFilter draft through `field`.\n */\ntype MrlMultiFilterFieldBoundProps<V> = {\n\t/**\n\t * With `field`, the function also receives `value`, `setValue` and `required`.\n\t */\n\tchildren: (renderProps: MrlMultiFilterFieldBoundRenderProps<V>) => React.ReactNode;\n\t/**\n\t * Takes precedence over the required error.\n\t */\n\terrorMessage?: string;\n\t/**\n\t * Must come from the same MrlMultiFilter.\n\t */\n\tfield: MrlMultiFilterFieldBinding<V>;\n\t/**\n\t * Overrides it for this field.\n\t */\n\trequiredMessage?: string;\n};\n\ntype MrlMultiFilterFieldBaseProps = Omit<React.ComponentPropsWithoutRef<'div'>, 'children'> &\n\tDataQa;\n\nexport type MrlMultiFilterFieldProps<V = unknown> = (\n\t| MrlMultiFilterFieldWithoutErrorProps\n\t| MrlMultiFilterFieldWithErrorProps\n\t| MrlMultiFilterFieldBoundProps<V>\n) &\n\tMrlMultiFilterFieldBaseProps;\n\n/**\n * MrlMultiFilterField component.\n *\n * Wraps a single filter control of the MrlMultiFilter and shows an inline error message\n * below it when `errorMessage` is set. `errorMessage` requires `children` to be a render\n * function, which receives `errorId` and `hasError` so the error is always linked to the form\n * element and its invalid state matches the message. Pass `field={getField('name')}` from the\n * MrlMultiFilter render prop to bind the field to the draft: the function then also receives\n * the typed `value`, `setValue` and `required`, and the required error is shown on Apply.\n *\n * @param props - The component props.\n * @returns The MrlMultiFilterField component.\n */\nexport function MrlMultiFilterField<V>(\n\tprops: MrlMultiFilterFieldBoundProps<V> & MrlMultiFilterFieldBaseProps\n): React.ReactElement;\nexport function MrlMultiFilterField(\n\tprops: (MrlMultiFilterFieldWithoutErrorProps | MrlMultiFilterFieldWithErrorProps) &\n\t\tMrlMultiFilterFieldBaseProps\n): React.ReactElement;\n// Overloads, so TypeScript types the render function of a bound and an unbound field.\nexport function MrlMultiFilterField<V>(props: MrlMultiFilterFieldProps<V>): React.ReactElement {\n\tconst {\n\t\tchildren,\n\t\tclassName,\n\t\t['data-qa']: dataQa,\n\t\terrorMessage,\n\t\tfield,\n\t\trequiredMessage,\n\t\t...rest\n\t} = props;\n\n\tconst context = useOptionalMrlMultiFilterContext();\n\tconst registerField = context?.registerField;\n\tconst name = field?.name;\n\n\tconst elementRef = React.useRef<HTMLDivElement>(null);\n\tconst errorIdRef = React.useRef<string>(getUniqueId('mrl-multi-filter-field-error'));\n\n\t// Register the element, so validation can focus the field.\n\tReact.useEffect(() => {\n\t\tif (name === undefined || !registerField || !elementRef.current) return;\n\t\treturn registerField(name, elementRef.current);\n\t}, [name, registerField]);\n\n\tconst requiredError = field?.error ? (requiredMessage ?? field.error) : undefined;\n\tconst message = errorMessage ?? requiredError;\n\tconst hasError = Boolean(message);\n\tconst errorId = hasError ? errorIdRef.current : undefined;\n\n\tconst renderChildren = () => {\n\t\tif (typeof children !== 'function') return children;\n\t\tif (!field) {\n\t\t\treturn (children as MrlMultiFilterFieldWithErrorProps['children'])({ errorId, hasError });\n\t\t}\n\t\treturn (children as MrlMultiFilterFieldBoundProps<V>['children'])({\n\t\t\terrorId,\n\t\t\thasError,\n\t\t\trequired: field.required,\n\t\t\tsetValue: field.setValue,\n\t\t\tvalue: field.value\n\t\t});\n\t};\n\n\treturn (\n\t\t<div\n\t\t\t{...rest}\n\t\t\tclassName={classnames(styles['MrlMultiFilterField'], 'MrlMultiFilterField', className)}\n\t\t\tdata-qa={dataQa}\n\t\t\tref={elementRef}\n\t\t>\n\t\t\t{renderChildren()}\n\t\t\t{errorId && (\n\t\t\t\t<MrlInlineMessage\n\t\t\t\t\tclassName={classnames(styles['MrlMultiFilterField-error'], 'MrlMultiFilterField-error')}\n\t\t\t\t\tid={errorId}\n\t\t\t\t\tkind=\"error\"\n\t\t\t\t\tmessage={message}\n\t\t\t\t/>\n\t\t\t)}\n\t\t</div>\n\t);\n}\n"],"names":["MrlMultiFilterField","props","children","className","dataQa","errorMessage","field","requiredMessage","rest","_objectWithoutProperties","_excluded","context","useOptionalMrlMultiFilterContext","registerField","name","elementRef","React","useRef","errorIdRef","getUniqueId","useEffect","undefined","current","requiredError","error","message","hasError","Boolean","errorId","renderChildren","required","setValue","value","createElement","_extends","classnames","styles","ref","MrlInlineMessage","id","kind"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsBA;AACA;AACA;;AA2BA;AACA;AACA;AACA;AACA;AACA;;AAsBA;AACA;AACA;AACA;;AAgBA;AACA;AACA;;AA8BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAQA;AACO,SAASA,mBAAmBA,CAAIC,KAAkC,EAAsB;AAC9F,EAAA,IACCC,QAAQ,GAOLD,KAAK,CAPRC,QAAQ;IACRC,SAAS,GAMNF,KAAK,CANRE,SAAS;IACIC,MAAM,GAKhBH,KAAK,CALP,SAAS,CAAA;IACVI,YAAY,GAITJ,KAAK,CAJRI,YAAY;IACZC,KAAK,GAGFL,KAAK,CAHRK,KAAK;IACLC,eAAe,GAEZN,KAAK,CAFRM,eAAe;AACZC,IAAAA,IAAI,GAAAC,iDAAA,CACJR,KAAK,EAAAS,SAAA,CAAA;AAET,EAAA,IAAMC,OAAO,GAAGC,sDAAgC,EAAE;EAClD,IAAMC,aAAa,GAAGF,OAAO,KAAA,IAAA,IAAPA,OAAO,KAAA,MAAA,GAAA,MAAA,GAAPA,OAAO,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;MACPF,QAAQ;MACRI,QAAQ,EAAExB,KAAK,CAACwB,QAAQ;MACxBC,QAAQ,EAAEzB,KAAK,CAACyB,QAAQ;MACxBC,KAAK,EAAE1B,KAAK,CAAC0B;AACd,KAAC,CAAC;EACH,CAAC;AAED,EAAA,oBACChB,gBAAA,CAAAiB,aAAA,CAAA,KAAA,EAAAC,iCAAA,KACK1B,IAAI,EAAA;IACRL,SAAS,EAAEgC,2BAAU,CAACC,kCAAM,CAAC,qBAAqB,CAAC,EAAE,qBAAqB,EAAEjC,SAAS,CAAE;AACvF,IAAA,SAAA,EAASC,MAAO;AAChBiC,IAAAA,GAAG,EAAEtB;GAAW,CAAA,EAEfc,cAAc,EAAE,EAChBD,OAAO,iBACPZ,gBAAA,CAAAiB,aAAA,CAACK,iCAAgB,EAAA;IAChBnC,SAAS,EAAEgC,2BAAU,CAACC,kCAAM,CAAC,2BAA2B,CAAC,EAAE,2BAA2B,CAAE;AACxFG,IAAAA,EAAE,EAAEX,OAAQ;AACZY,IAAAA,IAAI,EAAC,OAAO;AACZf,IAAAA,OAAO,EAAEA;AAAQ,GACjB,CAEE,CAAC;AAER;;;;"}
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var styles = {"MrlMultiFilterField":"MrlMultiFilterField--lVlxB"};
5
+ var styles = {"MrlMultiFilterField":"MrlMultiFilterField--lVlxB","MrlMultiFilterField-error":"MrlMultiFilterField-error--jh1El"};
6
6
 
7
7
  exports.default = styles;
8
8
  //# sourceMappingURL=MrlMultiFilterField.module.scss.js.map
@@ -30,7 +30,7 @@ function _interopNamespace(e) {
30
30
  var React__namespace = /*#__PURE__*/_interopNamespace(React);
31
31
  var classnames__default = /*#__PURE__*/_interopDefault(classnames);
32
32
 
33
- var _excluded = ["children", "customIcon", "id", "kind", "message", "data-qa"];
33
+ var _excluded = ["children", "className", "customIcon", "id", "kind", "message", "data-qa"];
34
34
  var getIcon = (kind, customIcon) => {
35
35
  switch (kind) {
36
36
  case 'error':
@@ -63,6 +63,7 @@ var renderIcon = (icon, iconClasses) => {
63
63
  */
64
64
  var MrlInlineMessage = _ref => {
65
65
  var children = _ref.children,
66
+ className = _ref.className,
66
67
  customIcon = _ref.customIcon,
67
68
  id = _ref.id,
68
69
  kind = _ref.kind,
@@ -78,7 +79,7 @@ var MrlInlineMessage = _ref => {
78
79
  [MrlInlineMessage_module.default.success]: kind === 'success',
79
80
  [MrlInlineMessage_module.default.warning]: kind === 'warning',
80
81
  [MrlInlineMessage_module.default.helper]: kind === 'helper'
81
- });
82
+ }, className);
82
83
  return /*#__PURE__*/React__namespace.createElement("span", _rollupPluginBabelHelpers.extends({}, rest, {
83
84
  className: notificationClasses,
84
85
  "data-qa": qa,
@@ -1 +1 @@
1
- {"version":3,"file":"MrlInlineMessage.js","sources":["../../../../../src/components/notification/MrlInlineMessage/MrlInlineMessage.tsx"],"sourcesContent":["import * as React from 'react';\nimport { error, info, warning, check } from '@muraldevkit/ds-icons';\nimport { DSIconType, MrlSvg } from '../../svg';\nimport classNames from 'classnames';\nimport styles from './MrlInlineMessage.module.scss';\n\nexport type InlineMessageKind = 'error' | 'info' | 'warning' | 'success' | 'helper';\n\nexport interface MrlInlineMessageProps {\n\t/**\n\t * A custom DS icon which is only applied if the alert is not an error, info, or warning type\n\t */\n\tcustomIcon?: DSIconType;\n\n\t/**\n\t * The id of the notification.\n\t *\n\t * Used to link the notification to a form field using aria-describedby.\n\t */\n\tid: string;\n\n\t/**\n\t * Choose the kind of notification to display.\n\t *\n\t * Accepted values: error, info, warning, success, helper\n\t */\n\tkind: InlineMessageKind;\n\n\t/**\n\t * The text to be displayed in the notification. If not provided, children will be used.\n\t */\n\tmessage?: string;\n\n\t/**\n\t * Children to be rendered within the component, it will be used as the message if message is not provided.\n\t */\n\tchildren?: React.ReactNode;\n\n\t/**\n\t * The data-qa attribute for testing purposes.\n\t */\n\t['data-qa']?: string;\n}\n\nconst getIcon = (kind: InlineMessageKind, customIcon?: DSIconType): DSIconType | undefined => {\n\tswitch (kind) {\n\t\tcase 'error':\n\t\t\treturn error;\n\t\tcase 'info':\n\t\t\treturn info;\n\t\tcase 'warning':\n\t\t\treturn warning;\n\t\tcase 'success':\n\t\t\treturn check;\n\t\tdefault:\n\t\t\treturn customIcon ? customIcon : undefined;\n\t}\n};\n\nconst renderIcon = (\n\ticon: DSIconType | undefined,\n\ticonClasses: string\n): React.ReactElement | undefined => {\n\tif (icon) {\n\t\treturn (\n\t\t\t<span className={iconClasses}>\n\t\t\t\t<MrlSvg size=\"auto\" svg={icon} />\n\t\t\t</span>\n\t\t);\n\t}\n};\n\n/**\n * MrlInlineMessage is a notification component that can be used to display messages to the user.\n * @param props - The properties of the component.\n * @returns A React component.\n */\nexport const MrlInlineMessage = ({\n\tchildren,\n\tcustomIcon,\n\tid,\n\tkind,\n\tmessage,\n\t['data-qa']: qa = 'mrl-inline-notification',\n\t...rest\n}: MrlInlineMessageProps): React.ReactElement => {\n\tconst icon = getIcon(kind, customIcon);\n\tconst iconClasses = classNames(styles['MrlInlineMessage-icon']);\n\n\tconst notificationClasses = classNames(styles['MrlInlineMessage'], 'MrlInlineMessage', {\n\t\t[styles.error]: kind === 'error',\n\t\t[styles.information]: kind === 'info',\n\t\t[styles.success]: kind === 'success',\n\t\t[styles.warning]: kind === 'warning',\n\t\t[styles.helper]: kind === 'helper'\n\t});\n\n\treturn (\n\t\t<span {...rest} className={notificationClasses} data-qa={qa} id={id}>\n\t\t\t{renderIcon(icon, iconClasses)}\n\t\t\t<span className=\"MrlInlineMessage-message\">\n\t\t\t\t{typeof message !== 'undefined' ? message : children}\n\t\t\t</span>\n\t\t</span>\n\t);\n};\n"],"names":["getIcon","kind","customIcon","error","info","warning","check","undefined","renderIcon","icon","iconClasses","React","createElement","className","MrlSvg","size","svg","MrlInlineMessage","_ref","children","id","message","_ref$dataQa","qa","rest","_objectWithoutProperties","_excluded","classNames","styles","notificationClasses","information","success","helper","_extends"],"mappings":";;;;;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AAO,CAACC,IAAI,EAAEC,UAAU,CAAC;EACtC,IAAMQ,WAAW,GAAGiB,2BAAU,CAACC,+BAAM,CAAC,uBAAuB,CAAC,CAAC;EAE/D,IAAMC,mBAAmB,GAAGF,2BAAU,CAACC,+BAAM,CAAC,kBAAkB,CAAC,EAAE,kBAAkB,EAAE;AACtF,IAAA,CAACA,+BAAM,CAACzB,KAAK,GAAGF,IAAI,KAAK,OAAO;AAChC,IAAA,CAAC2B,+BAAM,CAACE,WAAW,GAAG7B,IAAI,KAAK,MAAM;AACrC,IAAA,CAAC2B,+BAAM,CAACG,OAAO,GAAG9B,IAAI,KAAK,SAAS;AACpC,IAAA,CAAC2B,+BAAM,CAACvB,OAAO,GAAGJ,IAAI,KAAK,SAAS;AACpC,IAAA,CAAC2B,+BAAM,CAACI,MAAM,GAAG/B,IAAI,KAAK;AAC3B,GAAC,CAAC;AAEF,EAAA,oBACCU,gBAAA,CAAAC,aAAA,CAAA,MAAA,EAAAqB,iCAAA,KAAUT,IAAI,EAAA;AAAEX,IAAAA,SAAS,EAAEgB,mBAAoB;AAAC,IAAA,SAAA,EAASN,EAAG;AAACH,IAAAA,EAAE,EAAEA;GAAG,CAAA,EAClEZ,UAAU,CAACC,IAAI,EAAEC,WAAW,CAAC,eAC9BC,gBAAA,CAAAC,aAAA,CAAA,MAAA,EAAA;AAAMC,IAAAA,SAAS,EAAC;GAA0B,EACxC,OAAOQ,OAAO,KAAK,WAAW,GAAGA,OAAO,GAAGF,QACvC,CACD,CAAC;AAET;;;;"}
1
+ {"version":3,"file":"MrlInlineMessage.js","sources":["../../../../../src/components/notification/MrlInlineMessage/MrlInlineMessage.tsx"],"sourcesContent":["import * as React from 'react';\nimport { error, info, warning, check } from '@muraldevkit/ds-icons';\nimport { DSIconType, MrlSvg } from '../../svg';\nimport classNames from 'classnames';\nimport styles from './MrlInlineMessage.module.scss';\n\nexport type InlineMessageKind = 'error' | 'info' | 'warning' | 'success' | 'helper';\n\nexport interface MrlInlineMessageProps {\n\t/**\n\t * A custom DS icon which is only applied if the alert is not an error, info, or warning type\n\t */\n\tcustomIcon?: DSIconType;\n\n\t/**\n\t * The id of the notification.\n\t *\n\t * Used to link the notification to a form field using aria-describedby.\n\t */\n\tid: string;\n\n\t/**\n\t * Choose the kind of notification to display.\n\t *\n\t * Accepted values: error, info, warning, success, helper\n\t */\n\tkind: InlineMessageKind;\n\n\t/**\n\t * The text to be displayed in the notification. If not provided, children will be used.\n\t */\n\tmessage?: string;\n\n\t/**\n\t * Children to be rendered within the component, it will be used as the message if message is not provided.\n\t */\n\tchildren?: React.ReactNode;\n\n\t/**\n\t * Additional class name(s) applied to the root element, merged with the component's own classes.\n\t */\n\tclassName?: string;\n\n\t/**\n\t * The data-qa attribute for testing purposes.\n\t */\n\t['data-qa']?: string;\n}\n\nconst getIcon = (kind: InlineMessageKind, customIcon?: DSIconType): DSIconType | undefined => {\n\tswitch (kind) {\n\t\tcase 'error':\n\t\t\treturn error;\n\t\tcase 'info':\n\t\t\treturn info;\n\t\tcase 'warning':\n\t\t\treturn warning;\n\t\tcase 'success':\n\t\t\treturn check;\n\t\tdefault:\n\t\t\treturn customIcon ? customIcon : undefined;\n\t}\n};\n\nconst renderIcon = (\n\ticon: DSIconType | undefined,\n\ticonClasses: string\n): React.ReactElement | undefined => {\n\tif (icon) {\n\t\treturn (\n\t\t\t<span className={iconClasses}>\n\t\t\t\t<MrlSvg size=\"auto\" svg={icon} />\n\t\t\t</span>\n\t\t);\n\t}\n};\n\n/**\n * MrlInlineMessage is a notification component that can be used to display messages to the user.\n * @param props - The properties of the component.\n * @returns A React component.\n */\nexport const MrlInlineMessage = ({\n\tchildren,\n\tclassName,\n\tcustomIcon,\n\tid,\n\tkind,\n\tmessage,\n\t['data-qa']: qa = 'mrl-inline-notification',\n\t...rest\n}: MrlInlineMessageProps): React.ReactElement => {\n\tconst icon = getIcon(kind, customIcon);\n\tconst iconClasses = classNames(styles['MrlInlineMessage-icon']);\n\n\tconst notificationClasses = classNames(\n\t\tstyles['MrlInlineMessage'],\n\t\t'MrlInlineMessage',\n\t\t{\n\t\t\t[styles.error]: kind === 'error',\n\t\t\t[styles.information]: kind === 'info',\n\t\t\t[styles.success]: kind === 'success',\n\t\t\t[styles.warning]: kind === 'warning',\n\t\t\t[styles.helper]: kind === 'helper'\n\t\t},\n\t\tclassName\n\t);\n\n\treturn (\n\t\t<span {...rest} className={notificationClasses} data-qa={qa} id={id}>\n\t\t\t{renderIcon(icon, iconClasses)}\n\t\t\t<span className=\"MrlInlineMessage-message\">\n\t\t\t\t{typeof message !== 'undefined' ? message : children}\n\t\t\t</span>\n\t\t</span>\n\t);\n};\n"],"names":["getIcon","kind","customIcon","error","info","warning","check","undefined","renderIcon","icon","iconClasses","React","createElement","className","MrlSvg","size","svg","MrlInlineMessage","_ref","children","id","message","_ref$dataQa","qa","rest","_objectWithoutProperties","_excluded","classNames","styles","notificationClasses","information","success","helper","_extends"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiDA,IAAMA,OAAO,GAAGA,CAACC,IAAuB,EAAEC,UAAuB,KAA6B;AAC7F,EAAA,QAAQD,IAAI;AACX,IAAA,KAAK,OAAO;AACX,MAAA,OAAOE,aAAK;AACb,IAAA,KAAK,MAAM;AACV,MAAA,OAAOC,YAAI;AACZ,IAAA,KAAK,SAAS;AACb,MAAA,OAAOC,eAAO;AACf,IAAA,KAAK,SAAS;AACb,MAAA,OAAOC,aAAK;AACb,IAAA;AACC,MAAA,OAAOJ,UAAU,GAAGA,UAAU,GAAGK,SAAS;AAC5C;AACD,CAAC;AAED,IAAMC,UAAU,GAAGA,CAClBC,IAA4B,EAC5BC,WAAmB,KACiB;AACpC,EAAA,IAAID,IAAI,EAAE;IACT,oBACCE,gBAAA,CAAAC,aAAA,CAAA,MAAA,EAAA;AAAMC,MAAAA,SAAS,EAAEH;AAAY,KAAA,eAC5BC,gBAAA,CAAAC,aAAA,CAACE,aAAM,EAAA;AAACC,MAAAA,IAAI,EA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B,iCAAA,KAAUT,IAAI,EAAA;AAAEX,IAAAA,SAAS,EAAEgB,mBAAoB;AAAC,IAAA,SAAA,EAASN,EAAG;AAACH,IAAAA,EAAE,EAAEA;GAAG,CAAA,EAClEZ,UAAU,CAACC,IAAI,EAAEC,WAAW,CAAC,eAC9BC,gBAAA,CAAAC,aAAA,CAAA,MAAA,EAAA;AAAMC,IAAAA,SAAS,EAAC;GAA0B,EACxC,OAAOQ,OAAO,KAAK,WAAW,GAAGA,OAAO,GAAGF,QACvC,CACD,CAAC;AAET;;;;"}
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var TOOLKIT_VERSION = "4.83.0";
3
+ var TOOLKIT_VERSION = "4.84.0";
4
4
 
5
5
  exports.TOOLKIT_VERSION = TOOLKIT_VERSION;
6
6
  //# sourceMappingURL=version.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.js","sources":["../../src/version.ts"],"sourcesContent":["export const TOOLKIT_VERSION = \"4.83.0\";"],"names":["TOOLKIT_VERSION"],"mappings":";;AAAO,IAAMA,eAAe,GAAG;;;;"}
1
+ {"version":3,"file":"version.js","sources":["../../src/version.ts"],"sourcesContent":["export const TOOLKIT_VERSION = \"4.84.0\";"],"names":["TOOLKIT_VERSION"],"mappings":";;AAAO,IAAMA,eAAe,GAAG;;;;"}
@@ -87,6 +87,7 @@ function MrlMultiFilterField(props) {
87
87
  "data-qa": dataQa,
88
88
  ref: elementRef
89
89
  }), renderChildren(), errorId && /*#__PURE__*/React.createElement(MrlInlineMessage, {
90
+ className: classnames(styles['MrlMultiFilterField-error'], 'MrlMultiFilterField-error'),
90
91
  id: errorId,
91
92
  kind: "error",
92
93
  message: message
@@ -1 +1 @@
1
- {"version":3,"file":"MrlMultiFilterField.js","sources":["../../../../../src/components/multi-filter/MrlMultiFilterField/MrlMultiFilterField.tsx"],"sourcesContent":["import * as React from 'react';\nimport classnames from 'classnames';\nimport styles from './MrlMultiFilterField.module.scss';\nimport { MrlInlineMessage } from '../../notification/MrlInlineMessage/MrlInlineMessage';\nimport { useOptionalMrlMultiFilterContext } from '../MrlMultiFilterContext/MrlMultiFilterContext';\nimport { DataQa } from '../../../utils/dataQa';\nimport { getUniqueId } from '../../../utils/setAttributes/setAttributes';\n\nexport type MrlMultiFilterFieldRenderProps = {\n\t/**\n\t * Id of the rendered error message, or `undefined` when there is no error. Pass it to the\n\t * form element's `aria-errormessage` (with `aria-invalid`) or `aria-describedby` so the\n\t * error is announced with the field.\n\t */\n\terrorId?: string;\n\t/**\n\t * Whether the field is showing an error. Pass it to the form element's `hasError` (or\n\t * `aria-invalid`) so its error styles and invalid state match the message.\n\t */\n\thasError: boolean;\n};\n\n/**\n * A field of the MrlMultiFilter draft, returned by `getField` from its render prop.\n */\nexport type MrlMultiFilterFieldBinding<V> = {\n\t/**\n\t * The required error message, set while the field is required and empty after Apply.\n\t */\n\terror?: string;\n\t/**\n\t * Name of the field in the draft.\n\t */\n\tname: string;\n\t/**\n\t * Whether the field is required.\n\t */\n\trequired: boolean;\n\t/**\n\t * Updates the field's value in the draft.\n\t */\n\tsetValue: (value: V) => void;\n\t/**\n\t * The field's value in the draft.\n\t */\n\tvalue: V;\n};\n\nexport type MrlMultiFilterFieldBoundRenderProps<V> = MrlMultiFilterFieldRenderProps &\n\tPick<MrlMultiFilterFieldBinding<V>, 'required' | 'setValue' | 'value'>;\n\n/**\n * A field that never shows an error: plain children, no `errorMessage`.\n *\n * Docgen merges the JSDoc of the union members (this one first), so each comment below is\n * written to read on its own and as the first part of the merged description.\n */\ntype MrlMultiFilterFieldWithoutErrorProps = {\n\t/**\n\t * The field content, usually a label and a form element.\n\t */\n\tchildren?: React.ReactNode;\n\t/**\n\t * Error message shown below the field. When omitted, no error is rendered.\n\t */\n\terrorMessage?: never;\n\t/**\n\t * Binds the field to the MrlMultiFilter draft. Pass `getField('name')` from the\n\t * MrlMultiFilter render prop.\n\t */\n\tfield?: never;\n\t/**\n\t * Message shown when the field is required and empty on Apply. Defaults to the\n\t * MrlMultiFilter `requiredMessage`.\n\t */\n\trequiredMessage?: never;\n};\n\n/**\n * A field that can show an error: `children` must be a function so the consumer can link the\n * error message to the form element.\n */\ntype MrlMultiFilterFieldWithErrorProps = Omit<\n\tMrlMultiFilterFieldWithoutErrorProps,\n\t'children' | 'errorMessage'\n> & {\n\t/**\n\t * To show an error, pass a function instead. It receives `errorId` and `hasError`: pass\n\t * them to the form element's `aria-errormessage` and `hasError` (or `aria-invalid`).\n\t */\n\tchildren: (renderProps: MrlMultiFilterFieldRenderProps) => React.ReactNode;\n\t/**\n\t * Requires `children` to be a function, so the message can be linked to the form element.\n\t */\n\terrorMessage?: string;\n};\n\n/**\n * A field bound to the MrlMultiFilter draft through `field`.\n */\ntype MrlMultiFilterFieldBoundProps<V> = {\n\t/**\n\t * With `field`, the function also receives `value`, `setValue` and `required`.\n\t */\n\tchildren: (renderProps: MrlMultiFilterFieldBoundRenderProps<V>) => React.ReactNode;\n\t/**\n\t * Takes precedence over the required error.\n\t */\n\terrorMessage?: string;\n\t/**\n\t * Must come from the same MrlMultiFilter.\n\t */\n\tfield: MrlMultiFilterFieldBinding<V>;\n\t/**\n\t * Overrides it for this field.\n\t */\n\trequiredMessage?: string;\n};\n\ntype MrlMultiFilterFieldBaseProps = Omit<React.ComponentPropsWithoutRef<'div'>, 'children'> &\n\tDataQa;\n\nexport type MrlMultiFilterFieldProps<V = unknown> = (\n\t| MrlMultiFilterFieldWithoutErrorProps\n\t| MrlMultiFilterFieldWithErrorProps\n\t| MrlMultiFilterFieldBoundProps<V>\n) &\n\tMrlMultiFilterFieldBaseProps;\n\n/**\n * MrlMultiFilterField component.\n *\n * Wraps a single filter control of the MrlMultiFilter and shows an inline error message\n * below it when `errorMessage` is set. `errorMessage` requires `children` to be a render\n * function, which receives `errorId` and `hasError` so the error is always linked to the form\n * element and its invalid state matches the message. Pass `field={getField('name')}` from the\n * MrlMultiFilter render prop to bind the field to the draft: the function then also receives\n * the typed `value`, `setValue` and `required`, and the required error is shown on Apply.\n *\n * @param props - The component props.\n * @returns The MrlMultiFilterField component.\n */\nexport function MrlMultiFilterField<V>(\n\tprops: MrlMultiFilterFieldBoundProps<V> & MrlMultiFilterFieldBaseProps\n): React.ReactElement;\nexport function MrlMultiFilterField(\n\tprops: (MrlMultiFilterFieldWithoutErrorProps | MrlMultiFilterFieldWithErrorProps) &\n\t\tMrlMultiFilterFieldBaseProps\n): React.ReactElement;\n// Overloads, so TypeScript types the render function of a bound and an unbound field.\nexport function MrlMultiFilterField<V>(props: MrlMultiFilterFieldProps<V>): React.ReactElement {\n\tconst {\n\t\tchildren,\n\t\tclassName,\n\t\t['data-qa']: dataQa,\n\t\terrorMessage,\n\t\tfield,\n\t\trequiredMessage,\n\t\t...rest\n\t} = props;\n\n\tconst context = useOptionalMrlMultiFilterContext();\n\tconst registerField = context?.registerField;\n\tconst name = field?.name;\n\n\tconst elementRef = React.useRef<HTMLDivElement>(null);\n\tconst errorIdRef = React.useRef<string>(getUniqueId('mrl-multi-filter-field-error'));\n\n\t// Register the element, so validation can focus the field.\n\tReact.useEffect(() => {\n\t\tif (name === undefined || !registerField || !elementRef.current) return;\n\t\treturn registerField(name, elementRef.current);\n\t}, [name, registerField]);\n\n\tconst requiredError = field?.error ? (requiredMessage ?? field.error) : undefined;\n\tconst message = errorMessage ?? requiredError;\n\tconst hasError = Boolean(message);\n\tconst errorId = hasError ? errorIdRef.current : undefined;\n\n\tconst renderChildren = () => {\n\t\tif (typeof children !== 'function') return children;\n\t\tif (!field) {\n\t\t\treturn (children as MrlMultiFilterFieldWithErrorProps['children'])({ errorId, hasError });\n\t\t}\n\t\treturn (children as MrlMultiFilterFieldBoundProps<V>['children'])({\n\t\t\terrorId,\n\t\t\thasError,\n\t\t\trequired: field.required,\n\t\t\tsetValue: field.setValue,\n\t\t\tvalue: field.value\n\t\t});\n\t};\n\n\treturn (\n\t\t<div\n\t\t\t{...rest}\n\t\t\tclassName={classnames(styles['MrlMultiFilterField'], 'MrlMultiFilterField', className)}\n\t\t\tdata-qa={dataQa}\n\t\t\tref={elementRef}\n\t\t>\n\t\t\t{renderChildren()}\n\t\t\t{errorId && <MrlInlineMessage id={errorId} kind=\"error\" message={message} />}\n\t\t</div>\n\t);\n}\n"],"names":["MrlMultiFilterField","props","children","className","dataQa","errorMessage","field","requiredMessage","rest","_objectWithoutProperties","_excluded","context","useOptionalMrlMultiFilterContext","registerField","name","elementRef","React","useRef","errorIdRef","getUniqueId","useEffect","undefined","current","requiredError","error","message","hasError","Boolean","errorId","renderChildren","required","setValue","value","createElement","_extends","classnames","styles","ref","MrlInlineMessage","id","kind"],"mappings":";;;;;;;;;;AAsBA;AACA;AACA;;AA2BA;AACA;AACA;AACA;AACA;AACA;;AAsBA;AACA;AACA;AACA;;AAgBA;AACA;AACA;;AA8BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAQA;AACO,SAASA,mBAAmBA,CAAIC,KAAkC,EAAsB;AAC9F,EAAA,IACCC,QAAQ,GAOLD,KAAK,CAPRC,QAAQ;IACRC,SAAS,GAMNF,KAAK,CANRE,SAAS;IACIC,MAAM,GAKhBH,KAAK,CALP,SAAS,CAAA;IACVI,YAAY,GAITJ,KAAK,CAJRI,YAAY;IACZC,KAAK,GAGFL,KAAK,CAHRK,KAAK;IACLC,eAAe,GAEZN,KAAK,CAFRM,eAAe;AACZC,IAAAA,IAAI,GAAAC,wBAAA,CACJR,KAAK,EAAAS,SAAA,CAAA;AAET,EAAA,IAAMC,OAAO,GAAGC,gCAAgC,EAAE;EAClD,IAAMC,aAAa,GAAGF,OAAO,KAAA,IAAA,IAAPA,OAAO,KAAA,MAAA,GAAA,MAAA,GAAPA,OAAO,CAAEE,aAAa;EAC5C,IAAMC,IAAI,GAAGR,KAAK,KAAA,IAAA,IAALA,KAAK,KAAA,MAAA,GAAA,MAAA,GAALA,KAAK,CAAEQ,IAAI;AAExB,EAAA,IAAMC,UAAU,GAAGC,KAAK,CAACC,MAAM,CA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,KAAA,CAAAiB,aAAA,CAAA,KAAA,EAAAC,QAAA,KACK1B,IAAI,EAAA;IACRL,SAAS,EAAEgC,UAAU,CAACC,MAAM,CAAC,qBAAqB,CAAC,EAAE,qBAAqB,EAAEjC,SAAS,CAAE;AACvF,IAAA,SAAA,EAASC,MAAO;AAChBiC,IAAAA,GAAG,EAAEtB;GAAW,CAAA,EAEfc,cAAc,EAAE,EAChBD,OAAO,iBAAIZ,KAAA,CAAAiB,aAAA,CAACK,gBAAgB,EAAA;AAACC,IAAAA,EAAE,EAAEX,OAAQ;AAACY,IAAAA,IAAI,EAAC,OAAO;AAACf,IAAAA,OAAO,EAAEA;AAAQ,GAAE,CACvE,CAAC;AAER;;;;"}
1
+ {"version":3,"file":"MrlMultiFilterField.js","sources":["../../../../../src/components/multi-filter/MrlMultiFilterField/MrlMultiFilterField.tsx"],"sourcesContent":["import * as React from 'react';\nimport classnames from 'classnames';\nimport styles from './MrlMultiFilterField.module.scss';\nimport { MrlInlineMessage } from '../../notification/MrlInlineMessage/MrlInlineMessage';\nimport { useOptionalMrlMultiFilterContext } from '../MrlMultiFilterContext/MrlMultiFilterContext';\nimport { DataQa } from '../../../utils/dataQa';\nimport { getUniqueId } from '../../../utils/setAttributes/setAttributes';\n\nexport type MrlMultiFilterFieldRenderProps = {\n\t/**\n\t * Id of the rendered error message, or `undefined` when there is no error. Pass it to the\n\t * form element's `aria-errormessage` (with `aria-invalid`) or `aria-describedby` so the\n\t * error is announced with the field.\n\t */\n\terrorId?: string;\n\t/**\n\t * Whether the field is showing an error. Pass it to the form element's `hasError` (or\n\t * `aria-invalid`) so its error styles and invalid state match the message.\n\t */\n\thasError: boolean;\n};\n\n/**\n * A field of the MrlMultiFilter draft, returned by `getField` from its render prop.\n */\nexport type MrlMultiFilterFieldBinding<V> = {\n\t/**\n\t * The required error message, set while the field is required and empty after Apply.\n\t */\n\terror?: string;\n\t/**\n\t * Name of the field in the draft.\n\t */\n\tname: string;\n\t/**\n\t * Whether the field is required.\n\t */\n\trequired: boolean;\n\t/**\n\t * Updates the field's value in the draft.\n\t */\n\tsetValue: (value: V) => void;\n\t/**\n\t * The field's value in the draft.\n\t */\n\tvalue: V;\n};\n\nexport type MrlMultiFilterFieldBoundRenderProps<V> = MrlMultiFilterFieldRenderProps &\n\tPick<MrlMultiFilterFieldBinding<V>, 'required' | 'setValue' | 'value'>;\n\n/**\n * A field that never shows an error: plain children, no `errorMessage`.\n *\n * Docgen merges the JSDoc of the union members (this one first), so each comment below is\n * written to read on its own and as the first part of the merged description.\n */\ntype MrlMultiFilterFieldWithoutErrorProps = {\n\t/**\n\t * The field content, usually a label and a form element.\n\t */\n\tchildren?: React.ReactNode;\n\t/**\n\t * Error message shown below the field. When omitted, no error is rendered.\n\t */\n\terrorMessage?: never;\n\t/**\n\t * Binds the field to the MrlMultiFilter draft. Pass `getField('name')` from the\n\t * MrlMultiFilter render prop.\n\t */\n\tfield?: never;\n\t/**\n\t * Message shown when the field is required and empty on Apply. Defaults to the\n\t * MrlMultiFilter `requiredMessage`.\n\t */\n\trequiredMessage?: never;\n};\n\n/**\n * A field that can show an error: `children` must be a function so the consumer can link the\n * error message to the form element.\n */\ntype MrlMultiFilterFieldWithErrorProps = Omit<\n\tMrlMultiFilterFieldWithoutErrorProps,\n\t'children' | 'errorMessage'\n> & {\n\t/**\n\t * To show an error, pass a function instead. It receives `errorId` and `hasError`: pass\n\t * them to the form element's `aria-errormessage` and `hasError` (or `aria-invalid`).\n\t */\n\tchildren: (renderProps: MrlMultiFilterFieldRenderProps) => React.ReactNode;\n\t/**\n\t * Requires `children` to be a function, so the message can be linked to the form element.\n\t */\n\terrorMessage?: string;\n};\n\n/**\n * A field bound to the MrlMultiFilter draft through `field`.\n */\ntype MrlMultiFilterFieldBoundProps<V> = {\n\t/**\n\t * With `field`, the function also receives `value`, `setValue` and `required`.\n\t */\n\tchildren: (renderProps: MrlMultiFilterFieldBoundRenderProps<V>) => React.ReactNode;\n\t/**\n\t * Takes precedence over the required error.\n\t */\n\terrorMessage?: string;\n\t/**\n\t * Must come from the same MrlMultiFilter.\n\t */\n\tfield: MrlMultiFilterFieldBinding<V>;\n\t/**\n\t * Overrides it for this field.\n\t */\n\trequiredMessage?: string;\n};\n\ntype MrlMultiFilterFieldBaseProps = Omit<React.ComponentPropsWithoutRef<'div'>, 'children'> &\n\tDataQa;\n\nexport type MrlMultiFilterFieldProps<V = unknown> = (\n\t| MrlMultiFilterFieldWithoutErrorProps\n\t| MrlMultiFilterFieldWithErrorProps\n\t| MrlMultiFilterFieldBoundProps<V>\n) &\n\tMrlMultiFilterFieldBaseProps;\n\n/**\n * MrlMultiFilterField component.\n *\n * Wraps a single filter control of the MrlMultiFilter and shows an inline error message\n * below it when `errorMessage` is set. `errorMessage` requires `children` to be a render\n * function, which receives `errorId` and `hasError` so the error is always linked to the form\n * element and its invalid state matches the message. Pass `field={getField('name')}` from the\n * MrlMultiFilter render prop to bind the field to the draft: the function then also receives\n * the typed `value`, `setValue` and `required`, and the required error is shown on Apply.\n *\n * @param props - The component props.\n * @returns The MrlMultiFilterField component.\n */\nexport function MrlMultiFilterField<V>(\n\tprops: MrlMultiFilterFieldBoundProps<V> & MrlMultiFilterFieldBaseProps\n): React.ReactElement;\nexport function MrlMultiFilterField(\n\tprops: (MrlMultiFilterFieldWithoutErrorProps | MrlMultiFilterFieldWithErrorProps) &\n\t\tMrlMultiFilterFieldBaseProps\n): React.ReactElement;\n// Overloads, so TypeScript types the render function of a bound and an unbound field.\nexport function MrlMultiFilterField<V>(props: MrlMultiFilterFieldProps<V>): React.ReactElement {\n\tconst {\n\t\tchildren,\n\t\tclassName,\n\t\t['data-qa']: dataQa,\n\t\terrorMessage,\n\t\tfield,\n\t\trequiredMessage,\n\t\t...rest\n\t} = props;\n\n\tconst context = useOptionalMrlMultiFilterContext();\n\tconst registerField = context?.registerField;\n\tconst name = field?.name;\n\n\tconst elementRef = React.useRef<HTMLDivElement>(null);\n\tconst errorIdRef = React.useRef<string>(getUniqueId('mrl-multi-filter-field-error'));\n\n\t// Register the element, so validation can focus the field.\n\tReact.useEffect(() => {\n\t\tif (name === undefined || !registerField || !elementRef.current) return;\n\t\treturn registerField(name, elementRef.current);\n\t}, [name, registerField]);\n\n\tconst requiredError = field?.error ? (requiredMessage ?? field.error) : undefined;\n\tconst message = errorMessage ?? requiredError;\n\tconst hasError = Boolean(message);\n\tconst errorId = hasError ? errorIdRef.current : undefined;\n\n\tconst renderChildren = () => {\n\t\tif (typeof children !== 'function') return children;\n\t\tif (!field) {\n\t\t\treturn (children as MrlMultiFilterFieldWithErrorProps['children'])({ errorId, hasError });\n\t\t}\n\t\treturn (children as MrlMultiFilterFieldBoundProps<V>['children'])({\n\t\t\terrorId,\n\t\t\thasError,\n\t\t\trequired: field.required,\n\t\t\tsetValue: field.setValue,\n\t\t\tvalue: field.value\n\t\t});\n\t};\n\n\treturn (\n\t\t<div\n\t\t\t{...rest}\n\t\t\tclassName={classnames(styles['MrlMultiFilterField'], 'MrlMultiFilterField', className)}\n\t\t\tdata-qa={dataQa}\n\t\t\tref={elementRef}\n\t\t>\n\t\t\t{renderChildren()}\n\t\t\t{errorId && (\n\t\t\t\t<MrlInlineMessage\n\t\t\t\t\tclassName={classnames(styles['MrlMultiFilterField-error'], 'MrlMultiFilterField-error')}\n\t\t\t\t\tid={errorId}\n\t\t\t\t\tkind=\"error\"\n\t\t\t\t\tmessage={message}\n\t\t\t\t/>\n\t\t\t)}\n\t\t</div>\n\t);\n}\n"],"names":["MrlMultiFilterField","props","children","className","dataQa","errorMessage","field","requiredMessage","rest","_objectWithoutProperties","_excluded","context","useOptionalMrlMultiFilterContext","registerField","name","elementRef","React","useRef","errorIdRef","getUniqueId","useEffect","undefined","current","requiredError","error","message","hasError","Boolean","errorId","renderChildren","required","setValue","value","createElement","_extends","classnames","styles","ref","MrlInlineMessage","id","kind"],"mappings":";;;;;;;;;;AAsBA;AACA;AACA;;AA2BA;AACA;AACA;AACA;AACA;AACA;;AAsBA;AACA;AACA;A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Zf,IAAAA,OAAO,EAAEA;AAAQ,GACjB,CAEE,CAAC;AAER;;;;"}
@@ -1,4 +1,4 @@
1
- var styles = {"MrlMultiFilterField":"MrlMultiFilterField--lVlxB"};
1
+ var styles = {"MrlMultiFilterField":"MrlMultiFilterField--lVlxB","MrlMultiFilterField-error":"MrlMultiFilterField-error--jh1El"};
2
2
 
3
3
  export { styles as default };
4
4
  //# sourceMappingURL=MrlMultiFilterField.module.scss.js.map
@@ -5,7 +5,7 @@ import classnames from 'classnames';
5
5
  import styles from './MrlInlineMessage.module.scss.js';
6
6
  import { MrlSvg } from '../../svg/MrlSvg/MrlSvg.js';
7
7
 
8
- var _excluded = ["children", "customIcon", "id", "kind", "message", "data-qa"];
8
+ var _excluded = ["children", "className", "customIcon", "id", "kind", "message", "data-qa"];
9
9
  var getIcon = (kind, customIcon) => {
10
10
  switch (kind) {
11
11
  case 'error':
@@ -38,6 +38,7 @@ var renderIcon = (icon, iconClasses) => {
38
38
  */
39
39
  var MrlInlineMessage = _ref => {
40
40
  var children = _ref.children,
41
+ className = _ref.className,
41
42
  customIcon = _ref.customIcon,
42
43
  id = _ref.id,
43
44
  kind = _ref.kind,
@@ -53,7 +54,7 @@ var MrlInlineMessage = _ref => {
53
54
  [styles.success]: kind === 'success',
54
55
  [styles.warning]: kind === 'warning',
55
56
  [styles.helper]: kind === 'helper'
56
- });
57
+ }, className);
57
58
  return /*#__PURE__*/React.createElement("span", _extends({}, rest, {
58
59
  className: notificationClasses,
59
60
  "data-qa": qa,
@@ -1 +1 @@
1
- {"version":3,"file":"MrlInlineMessage.js","sources":["../../../../../src/components/notification/MrlInlineMessage/MrlInlineMessage.tsx"],"sourcesContent":["import * as React from 'react';\nimport { error, info, warning, check } from '@muraldevkit/ds-icons';\nimport { DSIconType, MrlSvg } from '../../svg';\nimport classNames from 'classnames';\nimport styles from './MrlInlineMessage.module.scss';\n\nexport type InlineMessageKind = 'error' | 'info' | 'warning' | 'success' | 'helper';\n\nexport interface MrlInlineMessageProps {\n\t/**\n\t * A custom DS icon which is only applied if the alert is not an error, info, or warning type\n\t */\n\tcustomIcon?: DSIconType;\n\n\t/**\n\t * The id of the notification.\n\t *\n\t * Used to link the notification to a form field using aria-describedby.\n\t */\n\tid: string;\n\n\t/**\n\t * Choose the kind of notification to display.\n\t *\n\t * Accepted values: error, info, warning, success, helper\n\t */\n\tkind: InlineMessageKind;\n\n\t/**\n\t * The text to be displayed in the notification. If not provided, children will be used.\n\t */\n\tmessage?: string;\n\n\t/**\n\t * Children to be rendered within the component, it will be used as the message if message is not provided.\n\t */\n\tchildren?: React.ReactNode;\n\n\t/**\n\t * The data-qa attribute for testing purposes.\n\t */\n\t['data-qa']?: string;\n}\n\nconst getIcon = (kind: InlineMessageKind, customIcon?: DSIconType): DSIconType | undefined => {\n\tswitch (kind) {\n\t\tcase 'error':\n\t\t\treturn error;\n\t\tcase 'info':\n\t\t\treturn info;\n\t\tcase 'warning':\n\t\t\treturn warning;\n\t\tcase 'success':\n\t\t\treturn check;\n\t\tdefault:\n\t\t\treturn customIcon ? customIcon : undefined;\n\t}\n};\n\nconst renderIcon = (\n\ticon: DSIconType | undefined,\n\ticonClasses: string\n): React.ReactElement | undefined => {\n\tif (icon) {\n\t\treturn (\n\t\t\t<span className={iconClasses}>\n\t\t\t\t<MrlSvg size=\"auto\" svg={icon} />\n\t\t\t</span>\n\t\t);\n\t}\n};\n\n/**\n * MrlInlineMessage is a notification component that can be used to display messages to the user.\n * @param props - The properties of the component.\n * @returns A React component.\n */\nexport const MrlInlineMessage = ({\n\tchildren,\n\tcustomIcon,\n\tid,\n\tkind,\n\tmessage,\n\t['data-qa']: qa = 'mrl-inline-notification',\n\t...rest\n}: MrlInlineMessageProps): React.ReactElement => {\n\tconst icon = getIcon(kind, customIcon);\n\tconst iconClasses = classNames(styles['MrlInlineMessage-icon']);\n\n\tconst notificationClasses = classNames(styles['MrlInlineMessage'], 'MrlInlineMessage', {\n\t\t[styles.error]: kind === 'error',\n\t\t[styles.information]: kind === 'info',\n\t\t[styles.success]: kind === 'success',\n\t\t[styles.warning]: kind === 'warning',\n\t\t[styles.helper]: kind === 'helper'\n\t});\n\n\treturn (\n\t\t<span {...rest} className={notificationClasses} data-qa={qa} id={id}>\n\t\t\t{renderIcon(icon, iconClasses)}\n\t\t\t<span className=\"MrlInlineMessage-message\">\n\t\t\t\t{typeof message !== 'undefined' ? message : children}\n\t\t\t</span>\n\t\t</span>\n\t);\n};\n"],"names":["getIcon","kind","customIcon","error","info","warning","check","undefined","renderIcon","icon","iconClasses","React","createElement","className","MrlSvg","size","svg","MrlInlineMessage","_ref","children","id","message","_ref$dataQa","qa","rest","_objectWithoutProperties","_excluded","classNames","styles","notificationClasses","information","success","helper","_extends"],"mappings":";;;;;;;;AA4CA,IAAMA,OAAO,GAAGA,CAACC,IAAuB,EAAEC,UAAuB,KAA6B;AAC7F,EAAA,QAAQD,IAAI;AACX,IAAA,KAAK,OAAO;AACX,MAAA,OAAOE,KAAK;AACb,IAAA,KAAK,MAAM;AACV,MAAA,OAAOC,IAAI;AACZ,IAAA,KAAK,SAAS;AACb,MAAA,OAAOC,OAAO;AACf,IAAA,KAAK,SAAS;AACb,MAAA,OAAOC,KAAK;AACb,IAAA;AACC,MAAA,OAAOJ,UAAU,GAAGA,UAAU,GAAGK,SAAS;AAC5C;AACD,CAAC;AAED,IAAMC,UAAU,GAAGA,CAClBC,IAA4B,EAC5BC,WAAmB,KACiB;AACpC,EAAA,IAAID,IAAI,EAAE;IACT,oBACCE,KAAA,CAAAC,aAAA,CAAA,MAAA,EAAA;AAAMC,MAAAA,SAAS,EAAEH;AAAY,KAAA,eAC5BC,KAAA,CAAAC,aAAA,CAACE,MAAM,EAAA;AAACC,MAAAA,IAAI,EAAC,MAAM;AAACC,MAAAA,GAAG,EAAEP;AAAK,KAAE,CAC3B,CAAC;AAET,EAAA;AACD,CAAC;;AAED;AACA;AACA;AACA;AACA;AACO,IAAMQ,gBAAgB,GAAGC,IAAA,IAQiB;AAAA,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CAAA,MAAA,EAAA;AAAMC,IAAAA,SAAS,EAAC;GAA0B,EACxC,OAAOQ,OAAO,KAAK,WAAW,GAAGA,OAAO,GAAGF,QACvC,CACD,CAAC;AAET;;;;"}
1
+ {"version":3,"file":"MrlInlineMessage.js","sources":["../../../../../src/components/notification/MrlInlineMessage/MrlInlineMessage.tsx"],"sourcesContent":["import * as React from 'react';\nimport { error, info, warning, check } from '@muraldevkit/ds-icons';\nimport { DSIconType, MrlSvg } from '../../svg';\nimport classNames from 'classnames';\nimport styles from './MrlInlineMessage.module.scss';\n\nexport type InlineMessageKind = 'error' | 'info' | 'warning' | 'success' | 'helper';\n\nexport interface MrlInlineMessageProps {\n\t/**\n\t * A custom DS icon which is only applied if the alert is not an error, info, or warning type\n\t */\n\tcustomIcon?: DSIconType;\n\n\t/**\n\t * The id of the notification.\n\t *\n\t * Used to link the notification to a form field using aria-describedby.\n\t */\n\tid: string;\n\n\t/**\n\t * Choose the kind of notification to display.\n\t *\n\t * Accepted values: error, info, warning, success, helper\n\t */\n\tkind: InlineMessageKind;\n\n\t/**\n\t * The text to be displayed in the notification. If not provided, children will be used.\n\t */\n\tmessage?: string;\n\n\t/**\n\t * Children to be rendered within the component, it will be used as the message if message is not provided.\n\t */\n\tchildren?: React.ReactNode;\n\n\t/**\n\t * Additional class name(s) applied to the root element, merged with the component's own classes.\n\t */\n\tclassName?: string;\n\n\t/**\n\t * The data-qa attribute for testing purposes.\n\t */\n\t['data-qa']?: string;\n}\n\nconst getIcon = (kind: InlineMessageKind, customIcon?: DSIconType): DSIconType | undefined => {\n\tswitch (kind) {\n\t\tcase 'error':\n\t\t\treturn error;\n\t\tcase 'info':\n\t\t\treturn info;\n\t\tcase 'warning':\n\t\t\treturn warning;\n\t\tcase 'success':\n\t\t\treturn check;\n\t\tdefault:\n\t\t\treturn customIcon ? customIcon : undefined;\n\t}\n};\n\nconst renderIcon = (\n\ticon: DSIconType | undefined,\n\ticonClasses: string\n): React.ReactElement | undefined => {\n\tif (icon) {\n\t\treturn (\n\t\t\t<span className={iconClasses}>\n\t\t\t\t<MrlSvg size=\"auto\" svg={icon} />\n\t\t\t</span>\n\t\t);\n\t}\n};\n\n/**\n * MrlInlineMessage is a notification component that can be used to display messages to the user.\n * @param props - The properties of the component.\n * @returns A React component.\n */\nexport const MrlInlineMessage = ({\n\tchildren,\n\tclassName,\n\tcustomIcon,\n\tid,\n\tkind,\n\tmessage,\n\t['data-qa']: qa = 'mrl-inline-notification',\n\t...rest\n}: MrlInlineMessageProps): React.ReactElement => {\n\tconst icon = getIcon(kind, customIcon);\n\tconst iconClasses = classNames(styles['MrlInlineMessage-icon']);\n\n\tconst notificationClasses = classNames(\n\t\tstyles['MrlInlineMessage'],\n\t\t'MrlInlineMessage',\n\t\t{\n\t\t\t[styles.error]: kind === 'error',\n\t\t\t[styles.information]: kind === 'info',\n\t\t\t[styles.success]: kind === 'success',\n\t\t\t[styles.warning]: kind === 'warning',\n\t\t\t[styles.helper]: kind === 'helper'\n\t\t},\n\t\tclassName\n\t);\n\n\treturn (\n\t\t<span {...rest} className={notificationClasses} data-qa={qa} id={id}>\n\t\t\t{renderIcon(icon, iconClasses)}\n\t\t\t<span className=\"MrlInlineMessage-message\">\n\t\t\t\t{typeof message !== 'undefined' ? message : children}\n\t\t\t</span>\n\t\t</span>\n\t);\n};\n"],"names":["getIcon","kind","customIcon","error","info","warning","check","undefined","renderIcon","icon","iconClasses","React","createElement","className","MrlSvg","size","svg","MrlInlineMessage","_ref","children","id","message","_ref$dataQa","qa","rest","_objectWithoutProperties","_excluded","classNames","styles","notificationClasses","information","success","helper","_extends"],"mappings":";;;;;;;;AAiDA,IAAMA,OAAO,GAAGA,CAACC,IAAuB,EAAEC,UAAuB,KAA6B;AAC7F,EAAA,QAAQD,IAAI;AACX,IAAA,KAAK,OAAO;AACX,MAAA,OAAOE,KAAK;AACb,IAAA,KAAK,MAAM;AACV,MAAA,OAAOC,IAAI;AACZ,IAAA,KAAK,SAAS;AACb,MAAA,OA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,CAACzB,KAAK,GAAGF,IAAI,KAAK,OAAO;AAChC,IAAA,CAAC2B,MAAM,CAACE,WAAW,GAAG7B,IAAI,KAAK,MAAM;AACrC,IAAA,CAAC2B,MAAM,CAACG,OAAO,GAAG9B,IAAI,KAAK,SAAS;AACpC,IAAA,CAAC2B,MAAM,CAACvB,OAAO,GAAGJ,IAAI,KAAK,SAAS;AACpC,IAAA,CAAC2B,MAAM,CAACI,MAAM,GAAG/B,IAAI,KAAK;GAC1B,EACDY,SACD,CAAC;AAED,EAAA,oBACCF,KAAA,CAAAC,aAAA,CAAA,MAAA,EAAAqB,QAAA,KAAUT,IAAI,EAAA;AAAEX,IAAAA,SAAS,EAAEgB,mBAAoB;AAAC,IAAA,SAAA,EAASN,EAAG;AAACH,IAAAA,EAAE,EAAEA;GAAG,CAAA,EAClEZ,UAAU,CAACC,IAAI,EAAEC,WAAW,CAAC,eAC9BC,KAAA,CAAAC,aAAA,CAAA,MAAA,EAAA;AAAMC,IAAAA,SAAS,EAAC;GAA0B,EACxC,OAAOQ,OAAO,KAAK,WAAW,GAAGA,OAAO,GAAGF,QACvC,CACD,CAAC;AAET;;;;"}
@@ -1,4 +1,4 @@
1
- var TOOLKIT_VERSION = "4.83.0";
1
+ var TOOLKIT_VERSION = "4.84.0";
2
2
 
3
3
  export { TOOLKIT_VERSION };
4
4
  //# sourceMappingURL=version.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.js","sources":["../../src/version.ts"],"sourcesContent":["export const TOOLKIT_VERSION = \"4.83.0\";"],"names":["TOOLKIT_VERSION"],"mappings":"AAAO,IAAMA,eAAe,GAAG;;;;"}
1
+ {"version":3,"file":"version.js","sources":["../../src/version.ts"],"sourcesContent":["export const TOOLKIT_VERSION = \"4.84.0\";"],"names":["TOOLKIT_VERSION"],"mappings":"AAAO,IAAMA,eAAe,GAAG;;;;"}
@@ -1,7 +1,7 @@
1
1
  .MrlMultiFilterField {
2
2
  display: flex;
3
3
  flex-direction: column;
4
- > :global(.MrlInlineMessage) {
4
+ > .MrlMultiFilterField-error {
5
5
  margin-top: var(--mrl-space-stack-related-small);
6
6
  }
7
7
  }
package/dist/styles.css CHANGED
@@ -1043,7 +1043,7 @@
1043
1043
  0px
1044
1044
  )*-1)}}@keyframes outline-animation--7wBJq{0%{outline:0 solid rgba(0,0,0,0);outline-offset:1px}50%{outline:4px solid var(--mrl-color-focus);outline-offset:1px}100%{outline:2px solid var(--mrl-color-focus);outline-offset:1px}}.MrlFilterItem--yUzim::after,.MrlFilterItem--yUzim:focus-visible::after{border-radius:var(--mrl-border-radius-rounded)}.MrlFilterItem--yUzim .MrlBadge{border-radius:var(--mrl-border-radius-rounded);color:var(--mrl-filter-item-badge-text-color);font-size:.625rem;font-weight:var(--mrl-font-weight-04);height:var(--mrl-spacing-05);line-height:var(--mrl-line-height-02);padding:var(--mrl-spacing-01) var(--mrl-spacing-02);transition:outline-color var(--mrl-duration-04) var(--mrl-timing-m2),background-color var(--mrl-duration-04) var(--mrl-timing-m2),color var(--mrl-duration-04) var(--mrl-timing-m2)}.MrlFilterItem--yUzim:hover{--mrl-filter-item-background: var(--mrl-color-background-emph-active);cursor:pointer}.MrlFilterItem--yUzim[aria-checked=true]{--mrl-filter-item-background: var(--mrl-color-background-inverse);--mrl-filter-item-text-color: var(--mrl-color-text-inverse-selected)}.MrlFilterItem--yUzim[aria-checked=true] .MrlBadge{background-color:var(--mrl-color-background)}.MrlFilterItem-has-count--ApmvA{padding-right:var(--mrl-spacing-03)}
1045
1045
  .MrlFilter--22siM{display:flex;gap:var(--mrl-spacing-02);margin:var(--mrl-spacing-05) 0}
1046
- .MrlMultiFilterField--lVlxB{display:flex;flex-direction:column}.MrlMultiFilterField--lVlxB>.MrlInlineMessage{margin-top:var(--mrl-space-stack-related-small)}
1046
+ .MrlMultiFilterField--lVlxB{display:flex;flex-direction:column}.MrlMultiFilterField--lVlxB>.MrlMultiFilterField-error--jh1El{margin-top:var(--mrl-space-stack-related-small)}
1047
1047
  .MrlMultiFilter--zqSCS{width:22.5rem}.MrlMultiFilter-title--ogr0l{margin-bottom:var(--mrl-space-stack-controls)}.MrlMultiFilter-fields--T--TL{--mrl-checkbox-height: var(--mrl-checkbox-input-size);display:flex;flex-direction:column;gap:var(--mrl-spacing-05)}.MrlMultiFilter-fields--T--TL .MrlCheckbox>:last-child{min-height:auto}.MrlMultiFilter-fields--T--TL .MrlCheckbox .MrlLabel-text{padding-top:0}.MrlMultiFilter-actions--vFqBP{align-items:center;display:flex;gap:var(--mrl-space-inline-related);justify-content:flex-end;margin-top:var(--mrl-space-stack-controls)}.MrlMultiFilter-reset--tnh1T{margin-right:auto}
1048
1048
  .mrl-u-focus-wrapper--VWXNO{position:relative}.MrlBreadcrumbItem--LZttq{align-items:center;color:var(--mrl-color-text);display:inline-flex;font-size:var(--mrl-font-size-02);font-weight:var(--mrl-font-weight-02);line-height:var(--mrl-line-height-06);min-height:var(--mrl-spacing-05)}.MrlBreadcrumbItem--LZttq:hover{color:var(--mrl-color-text-hover)}.MrlBreadcrumbItem--selected--w6EUT{color:var(--mrl-color-text-selected);font-weight:var(--mrl-font-weight-04)}.MrlBreadcrumbItem--LZttq a{position:relative;color:var(--mrl-color-text);padding-right:var(--mrl-spacing-01);text-decoration:none}.MrlBreadcrumbItem--LZttq a:focus-visible{outline:none}.MrlBreadcrumbItem--LZttq a:focus-visible::after{animation-duration:var(--mrl-duration-03);animation-fill-mode:forwards;animation-iteration-count:1;animation-timing-function:var(--mrl-timing-m3);border:0 solid rgba(0,0,0,0);border-radius:calc(
1049
1049
  var(--mrl-border-radius-functional) + var(--mrl-line-width-focus) + var(--mrl-space-offset-focus)
@@ -26,6 +26,10 @@ export interface MrlInlineMessageProps {
26
26
  * Children to be rendered within the component, it will be used as the message if message is not provided.
27
27
  */
28
28
  children?: React.ReactNode;
29
+ /**
30
+ * Additional class name(s) applied to the root element, merged with the component's own classes.
31
+ */
32
+ className?: string;
29
33
  /**
30
34
  * The data-qa attribute for testing purposes.
31
35
  */
@@ -36,4 +40,4 @@ export interface MrlInlineMessageProps {
36
40
  * @param props - The properties of the component.
37
41
  * @returns A React component.
38
42
  */
39
- export declare const MrlInlineMessage: ({ children, customIcon, id, kind, message, ["data-qa"]: qa, ...rest }: MrlInlineMessageProps) => React.ReactElement;
43
+ export declare const MrlInlineMessage: ({ children, className, customIcon, id, kind, message, ["data-qa"]: qa, ...rest }: MrlInlineMessageProps) => React.ReactElement;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@muraldevkit/ui-toolkit",
3
- "version": "4.83.0",
3
+ "version": "4.84.0",
4
4
  "description": "Mural's UI Toolkit",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/esm/index.js",