@simplybusiness/mobius 4.15.1 → 4.16.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.
Files changed (125) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/cjs/components/Container/Container.js.map +1 -1
  3. package/dist/cjs/components/Modal/Modal.js +2 -1
  4. package/dist/cjs/components/Modal/Modal.js.map +1 -1
  5. package/dist/cjs/components/Trust/constants.js +7 -0
  6. package/dist/cjs/components/Trust/constants.js.map +1 -1
  7. package/dist/esm/components/Container/Container.js.map +1 -1
  8. package/dist/esm/components/Modal/Modal.js +2 -1
  9. package/dist/esm/components/Modal/Modal.js.map +1 -1
  10. package/dist/esm/components/Trust/constants.js +7 -0
  11. package/dist/esm/components/Trust/constants.js.map +1 -1
  12. package/dist/types/components/Accordion/Accordion.stories.d.ts +1 -1
  13. package/dist/types/components/Alert/Alert.stories.d.ts +1 -1
  14. package/dist/types/components/Box/Box.stories.d.ts +1 -1
  15. package/dist/types/components/Breadcrumbs/Breadcrumbs.stories.d.ts +1 -1
  16. package/dist/types/components/Button/Button.stories.d.ts +1 -1
  17. package/dist/types/components/Checkbox/Checkbox.stories.d.ts +1 -1
  18. package/dist/types/components/Checkbox/CheckboxGroup.stories.d.ts +1 -1
  19. package/dist/types/components/Container/Container.d.ts +4 -3
  20. package/dist/types/components/Container/Container.stories.d.ts +1 -1
  21. package/dist/types/components/Divider/Divider.stories.d.ts +1 -1
  22. package/dist/types/components/Drawer/Drawer.stories.d.ts +1 -1
  23. package/dist/types/components/DropdownMenu/DropdownMenu.stories.d.ts +1 -1
  24. package/dist/types/components/ErrorMessage/ErrorMessage.stories.d.ts +1 -1
  25. package/dist/types/components/Fieldset/Fieldset.stories.d.ts +1 -1
  26. package/dist/types/components/Grid/Grid.stories.d.ts +1 -1
  27. package/dist/types/components/Icon/Icon.stories.d.ts +1 -1
  28. package/dist/types/components/Image/Image.stories.d.ts +1 -1
  29. package/dist/types/components/Label/Label.stories.d.ts +1 -1
  30. package/dist/types/components/Link/Link.stories.d.ts +1 -1
  31. package/dist/types/components/LinkButton/LinkButton.stories.d.ts +1 -1
  32. package/dist/types/components/LoadingIndicator/LoadingIndicator.stories.d.ts +1 -1
  33. package/dist/types/components/Logo/Logo.stories.d.ts +1 -1
  34. package/dist/types/components/Modal/Modal.stories.d.ts +1 -1
  35. package/dist/types/components/NumberField/NumberField.stories.d.ts +1 -1
  36. package/dist/types/components/PasswordField/PasswordField.stories.d.ts +1 -1
  37. package/dist/types/components/Popover/Popover.stories.d.ts +1 -1
  38. package/dist/types/components/Radio/Radio.stories.d.ts +1 -1
  39. package/dist/types/components/SVG/SVG.stories.d.ts +1 -1
  40. package/dist/types/components/Select/Select.stories.d.ts +1 -1
  41. package/dist/types/components/Table/Table.stories.d.ts +1 -1
  42. package/dist/types/components/TextArea/TextArea.stories.d.ts +1 -1
  43. package/dist/types/components/TextField/TextField.stories.d.ts +1 -1
  44. package/dist/types/components/Title/Title.stories.d.ts +1 -1
  45. package/dist/types/components/Trust/Trust.stories.d.ts +1 -0
  46. package/dist/types/components/Trust/constants.d.ts +7 -0
  47. package/dist/types/components/VisuallyHidden/VisuallyHidden.stories.d.ts +1 -1
  48. package/dist/types/hooks/useBreakpoint/useBreakpoint.stories.d.ts +1 -1
  49. package/package.json +2 -2
  50. package/src/components/Accordion/Accordion.mdx +2 -2
  51. package/src/components/Accordion/Accordion.stories.tsx +1 -1
  52. package/src/components/Alert/Alert.mdx +3 -3
  53. package/src/components/Alert/Alert.stories.tsx +1 -1
  54. package/src/components/Box/Box.mdx +3 -3
  55. package/src/components/Box/Box.stories.tsx +1 -1
  56. package/src/components/Breadcrumbs/Breadcrumbs.mdx +1 -1
  57. package/src/components/Breadcrumbs/Breadcrumbs.stories.tsx +1 -1
  58. package/src/components/Button/Button.mdx +13 -13
  59. package/src/components/Button/Button.stories.tsx +1 -1
  60. package/src/components/Checkbox/Checkbox.mdx +2 -2
  61. package/src/components/Checkbox/Checkbox.stories.tsx +1 -1
  62. package/src/components/Checkbox/CheckboxGroup.mdx +2 -2
  63. package/src/components/Checkbox/CheckboxGroup.stories.tsx +1 -1
  64. package/src/components/Container/Container.mdx +2 -2
  65. package/src/components/Container/Container.stories.tsx +1 -1
  66. package/src/components/Container/Container.test.tsx +10 -0
  67. package/src/components/Container/Container.tsx +11 -3
  68. package/src/components/Divider/Divider.mdx +2 -2
  69. package/src/components/Divider/Divider.stories.tsx +1 -1
  70. package/src/components/Drawer/Drawer.mdx +1 -1
  71. package/src/components/Drawer/Drawer.stories.tsx +1 -1
  72. package/src/components/DropdownMenu/DropdownMenu.mdx +3 -5
  73. package/src/components/DropdownMenu/DropdownMenu.stories.tsx +1 -1
  74. package/src/components/ErrorMessage/ErrorMessage.mdx +2 -2
  75. package/src/components/ErrorMessage/ErrorMessage.stories.tsx +1 -1
  76. package/src/components/Fieldset/Fieldset.mdx +3 -3
  77. package/src/components/Fieldset/Fieldset.stories.tsx +1 -1
  78. package/src/components/Grid/Grid.mdx +2 -2
  79. package/src/components/Grid/Grid.stories.tsx +1 -1
  80. package/src/components/Icon/Icon.mdx +2 -2
  81. package/src/components/Icon/Icon.stories.tsx +1 -1
  82. package/src/components/Image/Image.mdx +2 -2
  83. package/src/components/Image/Image.stories.tsx +1 -1
  84. package/src/components/Label/Label.mdx +1 -1
  85. package/src/components/Label/Label.stories.tsx +1 -1
  86. package/src/components/Link/Link.mdx +2 -2
  87. package/src/components/Link/Link.stories.tsx +1 -1
  88. package/src/components/LinkButton/LinkButton.mdx +1 -1
  89. package/src/components/LinkButton/LinkButton.stories.tsx +1 -1
  90. package/src/components/LoadingIndicator/LoadingIndicator.mdx +2 -2
  91. package/src/components/LoadingIndicator/LoadingIndicator.stories.tsx +1 -1
  92. package/src/components/Logo/Logo.mdx +2 -2
  93. package/src/components/Logo/Logo.stories.tsx +1 -1
  94. package/src/components/Modal/Modal.mdx +1 -1
  95. package/src/components/Modal/Modal.stories.tsx +1 -1
  96. package/src/components/Modal/Modal.test.tsx +16 -0
  97. package/src/components/Modal/Modal.tsx +2 -0
  98. package/src/components/NumberField/NumberField.mdx +6 -6
  99. package/src/components/NumberField/NumberField.stories.tsx +1 -1
  100. package/src/components/PasswordField/PasswordField.mdx +2 -2
  101. package/src/components/PasswordField/PasswordField.stories.tsx +1 -1
  102. package/src/components/Popover/Popover.mdx +3 -3
  103. package/src/components/Popover/Popover.stories.tsx +1 -1
  104. package/src/components/Radio/Radio.mdx +2 -2
  105. package/src/components/Radio/Radio.stories.tsx +1 -1
  106. package/src/components/SVG/SVG.mdx +1 -1
  107. package/src/components/SVG/SVG.stories.tsx +1 -1
  108. package/src/components/Select/Select.mdx +2 -2
  109. package/src/components/Select/Select.stories.tsx +1 -1
  110. package/src/components/Table/Table.mdx +2 -2
  111. package/src/components/Table/Table.stories.tsx +1 -1
  112. package/src/components/TextArea/TextArea.mdx +2 -2
  113. package/src/components/TextArea/TextArea.stories.tsx +1 -1
  114. package/src/components/TextField/TextField.mdx +2 -2
  115. package/src/components/TextField/TextField.stories.tsx +1 -1
  116. package/src/components/Title/Title.mdx +2 -2
  117. package/src/components/Title/Title.stories.tsx +1 -1
  118. package/src/components/Trust/Trust.mdx +4 -0
  119. package/src/components/Trust/Trust.stories.tsx +9 -0
  120. package/src/components/Trust/Trust.test.tsx +12 -0
  121. package/src/components/Trust/constants.ts +7 -0
  122. package/src/components/VisuallyHidden/VisuallyHidden.mdx +2 -2
  123. package/src/components/VisuallyHidden/VisuallyHidden.stories.tsx +1 -1
  124. package/src/hooks/useBreakpoint/useBreakpoint.mdx +1 -1
  125. package/src/hooks/useBreakpoint/useBreakpoint.stories.tsx +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # Changelog
2
2
 
3
+ ## 4.16.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 5979683: Added Trustpilot horizontal variant
8
+
9
+ ### Patch Changes
10
+
11
+ - d1d1631: Allow `<Container>` `elementType` to be a range of HTML element tags; allow `style` prop
12
+ - 45e9667: Add `<EditLimits>` to `<HeadlineExperimentIteratedQCP>`
13
+ - Updated dependencies [5ab68d0]
14
+ - Updated dependencies [6f7a0ea]
15
+ - @simplybusiness/icons@4.13.0
16
+
3
17
  ## 4.15.1
4
18
 
5
19
  ### Patch Changes
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/components/Container/Container.tsx"],"sourcesContent":["import { forwardRef, Ref, RefAttributes, ReactNode } from \"react\";\nimport classNames from \"classnames/dedupe\";\nimport { DOMProps } from \"../../types/dom\";\nimport { ForwardedRefComponent } from \"../../types/components\";\nimport { SizeType } from \"../../types\";\nimport { sizeClasses } from \"../../utils\";\n\nexport type ContainerElementType = HTMLDivElement;\nexport type ContainerRef = Ref<ContainerElementType>;\n\nexport interface ContainerProps\n extends DOMProps,\n RefAttributes<ContainerElementType> {\n id?: string;\n /** Custom class name for setting specific CSS */\n className?: string;\n /** HTML element for the Box */\n elementType?: \"div\" | \"span\";\n size?: SizeType;\n children?: ReactNode;\n}\n\nconst Container: ForwardedRefComponent<ContainerProps, ContainerElementType> =\n forwardRef((props: ContainerProps, ref: ContainerRef) => {\n const { elementType: Element = \"div\", size = \"md\", ...otherProps } = props;\n\n const classes = classNames(\n \"mobius\",\n \"mobius/Container\",\n sizeClasses(size),\n otherProps.className,\n );\n\n return <Element ref={ref} {...otherProps} className={classes} />;\n });\n\nContainer.displayName = \"Container\";\nexport { Container };\n"],"names":["Container","forwardRef","props","ref","elementType","Element","size","otherProps","classes","classNames","sizeClasses","className","displayName"],"mappings":";;;;+BAqCSA;;;eAAAA;;;;uBArCiD;+DACnC;uBAIK;;;;;;AAiB5B,MAAMA,0BACJC,IAAAA,iBAAU,EAAC,CAACC,OAAuBC;IACjC,MAAM,EAAEC,aAAaC,UAAU,KAAK,EAAEC,OAAO,IAAI,EAAE,GAAGC,YAAY,GAAGL;IAErE,MAAMM,UAAUC,IAAAA,eAAU,EACxB,UACA,oBACAC,IAAAA,kBAAW,EAACJ,OACZC,WAAWI,SAAS;IAGtB,qBAAO,qBAACN;QAAQF,KAAKA;QAAM,GAAGI,UAAU;QAAEI,WAAWH;;AACvD;AAEFR,UAAUY,WAAW,GAAG"}
1
+ {"version":3,"sources":["../../../../src/components/Container/Container.tsx"],"sourcesContent":["import {\n forwardRef,\n Ref,\n RefAttributes,\n ReactNode,\n ElementType,\n CSSProperties,\n} from \"react\";\nimport classNames from \"classnames/dedupe\";\nimport { DOMProps } from \"../../types/dom\";\nimport { ForwardedRefComponent } from \"../../types/components\";\nimport { SizeType } from \"../../types\";\nimport { sizeClasses } from \"../../utils\";\n\nexport type ContainerElementType = HTMLElement;\nexport type ContainerRef = Ref<ContainerElementType>;\n\nexport interface ContainerProps\n extends DOMProps,\n RefAttributes<ContainerElementType> {\n id?: string;\n /** Custom class name for setting specific CSS */\n className?: string;\n /** HTML element for the Box */\n elementType?: string | ElementType;\n size?: SizeType;\n children?: ReactNode;\n style?: CSSProperties;\n}\n\nconst Container: ForwardedRefComponent<ContainerProps, ContainerElementType> =\n forwardRef((props: ContainerProps, ref: ContainerRef) => {\n const { elementType: Element = \"div\", size = \"md\", ...otherProps } = props;\n\n const classes = classNames(\n \"mobius\",\n \"mobius/Container\",\n sizeClasses(size),\n otherProps.className,\n );\n\n return <Element ref={ref} {...otherProps} className={classes} />;\n });\n\nContainer.displayName = \"Container\";\nexport { Container };\n"],"names":["Container","forwardRef","props","ref","elementType","Element","size","otherProps","classes","classNames","sizeClasses","className","displayName"],"mappings":";;;;+BA6CSA;;;eAAAA;;;;uBAtCF;+DACgB;uBAIK;;;;;;AAkB5B,MAAMA,0BACJC,IAAAA,iBAAU,EAAC,CAACC,OAAuBC;IACjC,MAAM,EAAEC,aAAaC,UAAU,KAAK,EAAEC,OAAO,IAAI,EAAE,GAAGC,YAAY,GAAGL;IAErE,MAAMM,UAAUC,IAAAA,eAAU,EACxB,UACA,oBACAC,IAAAA,kBAAW,EAACJ,OACZC,WAAWI,SAAS;IAGtB,qBAAO,qBAACN;QAAQF,KAAKA;QAAM,GAAGI,UAAU;QAAEI,WAAWH;;AACvD;AAEFR,UAAUY,WAAW,GAAG"}
@@ -25,7 +25,7 @@ function _interop_require_default(obj) {
25
25
  const TRANSITION_CSS_VARIABLE = "--modal-transition-duration";
26
26
  const Modal = /*#__PURE__*/ (0, _react.forwardRef)((props, ref)=>{
27
27
  const { isOpen, onClose, onOpen, children, className, closeLabel, isFullScreen, animation, // Deprecated props below
28
- size, appElement, preventCloseOnEsc, shouldFocusAfterRender, parentSelector } = props;
28
+ size, appElement, preventCloseOnEsc, shouldFocusAfterRender, parentSelector, ...rest } = props;
29
29
  const [shouldTransition, setShouldTransition] = (0, _react.useState)(false);
30
30
  (0, _useDeprecationWarning.useDeprecationWarning)({
31
31
  size,
@@ -69,6 +69,7 @@ const Modal = /*#__PURE__*/ (0, _react.forwardRef)((props, ref)=>{
69
69
  ]),
70
70
  onCancel: close,
71
71
  className: modalClasses,
72
+ ...rest,
72
73
  children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_ModalContext.ModalContext.Provider, {
73
74
  value: contextValue,
74
75
  children: children
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/components/Modal/Modal.tsx"],"sourcesContent":["\"use client\";\n\nimport classNames from \"classnames/dedupe\";\nimport { Ref, forwardRef, useEffect, useMemo, useRef, useState } from \"react\";\nimport { useDialog } from \"../../hooks\";\nimport { useDeprecationWarning } from \"../../hooks/useDeprecationWarning\";\nimport { mergeRefs } from \"../../utils\";\nimport { supportsDialog } from \"../../utils/polyfill-tests\";\nimport { ModalContext } from \"./ModalContext\";\nimport { ModalProps } from \"./types\";\n\nexport type ModalElementType = HTMLDialogElement;\nexport type ModalRef = Ref<ModalElementType>;\n\nconst TRANSITION_CSS_VARIABLE = \"--modal-transition-duration\";\n\nconst Modal = forwardRef((props: ModalProps, ref: ModalRef) => {\n const {\n isOpen,\n onClose,\n onOpen,\n children,\n className,\n closeLabel,\n isFullScreen,\n animation,\n // Deprecated props below\n size,\n appElement,\n preventCloseOnEsc,\n shouldFocusAfterRender,\n parentSelector,\n } = props;\n const [shouldTransition, setShouldTransition] = useState(false);\n\n useDeprecationWarning({\n size,\n appElement,\n preventCloseOnEsc,\n shouldFocusAfterRender,\n parentSelector,\n });\n\n useEffect(() => {\n setShouldTransition(supportsDialog());\n }, []);\n\n const dialogRef = useRef<HTMLDialogElement | null>(null);\n const { close } = useDialog({\n ref: dialogRef,\n isOpen,\n onOpen,\n onClose,\n transition: {\n isEnabled: !!animation,\n CSSVariable: TRANSITION_CSS_VARIABLE,\n },\n });\n\n const modalClasses = classNames(\n \"mobius\",\n \"mobius/Modal\",\n {\n \"--no-dialog-support\": !shouldTransition, // This class is used to correctly position modal in x/y middle on iOS <= 15.2\n \"--should-transition\": shouldTransition && animation,\n \"--slide-up\": animation === \"slideUp\",\n \"--fade\": animation === \"fade\",\n \"--is-fullscreen\": isFullScreen,\n },\n className,\n );\n\n const contextValue = useMemo(\n () => ({\n onClose: close,\n closeLabel,\n }),\n [close, closeLabel],\n );\n\n return (\n <dialog\n ref={mergeRefs([dialogRef, ref])}\n onCancel={close}\n className={modalClasses}\n >\n <ModalContext.Provider value={contextValue}>\n {children}\n </ModalContext.Provider>\n </dialog>\n );\n});\n\nModal.displayName = \"Modal\";\nexport { Modal };\n"],"names":["Modal","TRANSITION_CSS_VARIABLE","forwardRef","props","ref","isOpen","onClose","onOpen","children","className","closeLabel","isFullScreen","animation","size","appElement","preventCloseOnEsc","shouldFocusAfterRender","parentSelector","shouldTransition","setShouldTransition","useState","useDeprecationWarning","useEffect","supportsDialog","dialogRef","useRef","close","useDialog","transition","isEnabled","CSSVariable","modalClasses","classNames","contextValue","useMemo","dialog","mergeRefs","onCancel","ModalContext","Provider","value","displayName"],"mappings":"AAAA;;;;;+BA8FSA;;;eAAAA;;;;+DA5Fc;uBAC+C;uBAC5C;uCACY;uBACZ;+BACK;8BACF;;;;;;AAM7B,MAAMC,0BAA0B;AAEhC,MAAMD,sBAAQE,IAAAA,iBAAU,EAAC,CAACC,OAAmBC;IAC3C,MAAM,EACJC,MAAM,EACNC,OAAO,EACPC,MAAM,EACNC,QAAQ,EACRC,SAAS,EACTC,UAAU,EACVC,YAAY,EACZC,SAAS,EACT,yBAAyB;IACzBC,IAAI,EACJC,UAAU,EACVC,iBAAiB,EACjBC,sBAAsB,EACtBC,cAAc,EACf,GAAGd;IACJ,MAAM,CAACe,kBAAkBC,oBAAoB,GAAGC,IAAAA,eAAQ,EAAC;IAEzDC,IAAAA,4CAAqB,EAAC;QACpBR;QACAC;QACAC;QACAC;QACAC;IACF;IAEAK,IAAAA,gBAAS,EAAC;QACRH,oBAAoBI,IAAAA,6BAAc;IACpC,GAAG,EAAE;IAEL,MAAMC,YAAYC,IAAAA,aAAM,EAA2B;IACnD,MAAM,EAAEC,KAAK,EAAE,GAAGC,IAAAA,gBAAS,EAAC;QAC1BvB,KAAKoB;QACLnB;QACAE;QACAD;QACAsB,YAAY;YACVC,WAAW,CAAC,CAACjB;YACbkB,aAAa7B;QACf;IACF;IAEA,MAAM8B,eAAeC,IAAAA,eAAU,EAC7B,UACA,gBACA;QACE,uBAAuB,CAACd;QACxB,uBAAuBA,oBAAoBN;QAC3C,cAAcA,cAAc;QAC5B,UAAUA,cAAc;QACxB,mBAAmBD;IACrB,GACAF;IAGF,MAAMwB,eAAeC,IAAAA,cAAO,EAC1B,IAAO,CAAA;YACL5B,SAASoB;YACThB;QACF,CAAA,GACA;QAACgB;QAAOhB;KAAW;IAGrB,qBACE,qBAACyB;QACC/B,KAAKgC,IAAAA,gBAAS,EAAC;YAACZ;YAAWpB;SAAI;QAC/BiC,UAAUX;QACVjB,WAAWsB;kBAEX,cAAA,qBAACO,0BAAY,CAACC,QAAQ;YAACC,OAAOP;sBAC3BzB;;;AAIT;AAEAR,MAAMyC,WAAW,GAAG"}
1
+ {"version":3,"sources":["../../../../src/components/Modal/Modal.tsx"],"sourcesContent":["\"use client\";\n\nimport classNames from \"classnames/dedupe\";\nimport { Ref, forwardRef, useEffect, useMemo, useRef, useState } from \"react\";\nimport { useDialog } from \"../../hooks\";\nimport { useDeprecationWarning } from \"../../hooks/useDeprecationWarning\";\nimport { mergeRefs } from \"../../utils\";\nimport { supportsDialog } from \"../../utils/polyfill-tests\";\nimport { ModalContext } from \"./ModalContext\";\nimport { ModalProps } from \"./types\";\n\nexport type ModalElementType = HTMLDialogElement;\nexport type ModalRef = Ref<ModalElementType>;\n\nconst TRANSITION_CSS_VARIABLE = \"--modal-transition-duration\";\n\nconst Modal = forwardRef((props: ModalProps, ref: ModalRef) => {\n const {\n isOpen,\n onClose,\n onOpen,\n children,\n className,\n closeLabel,\n isFullScreen,\n animation,\n // Deprecated props below\n size,\n appElement,\n preventCloseOnEsc,\n shouldFocusAfterRender,\n parentSelector,\n ...rest\n } = props;\n const [shouldTransition, setShouldTransition] = useState(false);\n\n useDeprecationWarning({\n size,\n appElement,\n preventCloseOnEsc,\n shouldFocusAfterRender,\n parentSelector,\n });\n\n useEffect(() => {\n setShouldTransition(supportsDialog());\n }, []);\n\n const dialogRef = useRef<HTMLDialogElement | null>(null);\n const { close } = useDialog({\n ref: dialogRef,\n isOpen,\n onOpen,\n onClose,\n transition: {\n isEnabled: !!animation,\n CSSVariable: TRANSITION_CSS_VARIABLE,\n },\n });\n\n const modalClasses = classNames(\n \"mobius\",\n \"mobius/Modal\",\n {\n \"--no-dialog-support\": !shouldTransition, // This class is used to correctly position modal in x/y middle on iOS <= 15.2\n \"--should-transition\": shouldTransition && animation,\n \"--slide-up\": animation === \"slideUp\",\n \"--fade\": animation === \"fade\",\n \"--is-fullscreen\": isFullScreen,\n },\n className,\n );\n\n const contextValue = useMemo(\n () => ({\n onClose: close,\n closeLabel,\n }),\n [close, closeLabel],\n );\n\n return (\n <dialog\n ref={mergeRefs([dialogRef, ref])}\n onCancel={close}\n className={modalClasses}\n {...rest}\n >\n <ModalContext.Provider value={contextValue}>\n {children}\n </ModalContext.Provider>\n </dialog>\n );\n});\n\nModal.displayName = \"Modal\";\nexport { Modal };\n"],"names":["Modal","TRANSITION_CSS_VARIABLE","forwardRef","props","ref","isOpen","onClose","onOpen","children","className","closeLabel","isFullScreen","animation","size","appElement","preventCloseOnEsc","shouldFocusAfterRender","parentSelector","rest","shouldTransition","setShouldTransition","useState","useDeprecationWarning","useEffect","supportsDialog","dialogRef","useRef","close","useDialog","transition","isEnabled","CSSVariable","modalClasses","classNames","contextValue","useMemo","dialog","mergeRefs","onCancel","ModalContext","Provider","value","displayName"],"mappings":"AAAA;;;;;+BAgGSA;;;eAAAA;;;;+DA9Fc;uBAC+C;uBAC5C;uCACY;uBACZ;+BACK;8BACF;;;;;;AAM7B,MAAMC,0BAA0B;AAEhC,MAAMD,sBAAQE,IAAAA,iBAAU,EAAC,CAACC,OAAmBC;IAC3C,MAAM,EACJC,MAAM,EACNC,OAAO,EACPC,MAAM,EACNC,QAAQ,EACRC,SAAS,EACTC,UAAU,EACVC,YAAY,EACZC,SAAS,EACT,yBAAyB;IACzBC,IAAI,EACJC,UAAU,EACVC,iBAAiB,EACjBC,sBAAsB,EACtBC,cAAc,EACd,GAAGC,MACJ,GAAGf;IACJ,MAAM,CAACgB,kBAAkBC,oBAAoB,GAAGC,IAAAA,eAAQ,EAAC;IAEzDC,IAAAA,4CAAqB,EAAC;QACpBT;QACAC;QACAC;QACAC;QACAC;IACF;IAEAM,IAAAA,gBAAS,EAAC;QACRH,oBAAoBI,IAAAA,6BAAc;IACpC,GAAG,EAAE;IAEL,MAAMC,YAAYC,IAAAA,aAAM,EAA2B;IACnD,MAAM,EAAEC,KAAK,EAAE,GAAGC,IAAAA,gBAAS,EAAC;QAC1BxB,KAAKqB;QACLpB;QACAE;QACAD;QACAuB,YAAY;YACVC,WAAW,CAAC,CAAClB;YACbmB,aAAa9B;QACf;IACF;IAEA,MAAM+B,eAAeC,IAAAA,eAAU,EAC7B,UACA,gBACA;QACE,uBAAuB,CAACd;QACxB,uBAAuBA,oBAAoBP;QAC3C,cAAcA,cAAc;QAC5B,UAAUA,cAAc;QACxB,mBAAmBD;IACrB,GACAF;IAGF,MAAMyB,eAAeC,IAAAA,cAAO,EAC1B,IAAO,CAAA;YACL7B,SAASqB;YACTjB;QACF,CAAA,GACA;QAACiB;QAAOjB;KAAW;IAGrB,qBACE,qBAAC0B;QACChC,KAAKiC,IAAAA,gBAAS,EAAC;YAACZ;YAAWrB;SAAI;QAC/BkC,UAAUX;QACVlB,WAAWuB;QACV,GAAGd,IAAI;kBAER,cAAA,qBAACqB,0BAAY,CAACC,QAAQ;YAACC,OAAOP;sBAC3B1B;;;AAIT;AAEAR,MAAM0C,WAAW,GAAG"}
@@ -45,6 +45,13 @@ const TRUSTPILOT_WIDGET = {
45
45
  width: "300px",
46
46
  height: "150px"
47
47
  }
48
+ },
49
+ horizontal: {
50
+ templateId: "5406e65db0d04a09e042d5fc",
51
+ className: "Horizontal",
52
+ styles: {
53
+ height: "28px"
54
+ }
48
55
  }
49
56
  };
50
57
 
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/components/Trust/constants.ts"],"sourcesContent":["export const REQUIRED_TRUSTPILOT_CLASS_NAME = \"trustpilot-widget\";\n\nexport const SIMPLYBUSINESS_UNIT_ID = \"5ca35a3da72b330001954cef\";\n\nexport const TRUSTPILOT_LINKS = {\n \"en-US\": \"https://www.trustpilot.com/review/simplybusiness.com\",\n \"en-GB\": \"https://www.trustpilot.com/review/simplybusiness.co.uk\",\n};\n\nexport const TRUSTPILOT_WIDGET = {\n // Keys based on actual widget names\n // https://support.trustpilot.com/hc/en-us/articles/360019826379-TrustBox-widget-overview\n \"micro-combo\": {\n templateId: \"5419b6ffb0d04a076446a9af\",\n className: \"MicroCombo\",\n styles: {\n height: \"25px\",\n },\n },\n mini: {\n templateId: \"53aa8807dec7e10d38f59f32\",\n className: \"Mini\",\n styles: {\n width: \"300px\",\n height: \"150px\",\n },\n },\n};\n"],"names":["REQUIRED_TRUSTPILOT_CLASS_NAME","SIMPLYBUSINESS_UNIT_ID","TRUSTPILOT_LINKS","TRUSTPILOT_WIDGET","templateId","className","styles","height","mini","width"],"mappings":";;;;;;;;;;;IAAaA,8BAA8B;eAA9BA;;IAEAC,sBAAsB;eAAtBA;;IAEAC,gBAAgB;eAAhBA;;IAKAC,iBAAiB;eAAjBA;;;AATN,MAAMH,iCAAiC;AAEvC,MAAMC,yBAAyB;AAE/B,MAAMC,mBAAmB;IAC9B,SAAS;IACT,SAAS;AACX;AAEO,MAAMC,oBAAoB;IAC/B,oCAAoC;IACpC,yFAAyF;IACzF,eAAe;QACbC,YAAY;QACZC,WAAW;QACXC,QAAQ;YACNC,QAAQ;QACV;IACF;IACAC,MAAM;QACJJ,YAAY;QACZC,WAAW;QACXC,QAAQ;YACNG,OAAO;YACPF,QAAQ;QACV;IACF;AACF"}
1
+ {"version":3,"sources":["../../../../src/components/Trust/constants.ts"],"sourcesContent":["export const REQUIRED_TRUSTPILOT_CLASS_NAME = \"trustpilot-widget\";\n\nexport const SIMPLYBUSINESS_UNIT_ID = \"5ca35a3da72b330001954cef\";\n\nexport const TRUSTPILOT_LINKS = {\n \"en-US\": \"https://www.trustpilot.com/review/simplybusiness.com\",\n \"en-GB\": \"https://www.trustpilot.com/review/simplybusiness.co.uk\",\n};\n\nexport const TRUSTPILOT_WIDGET = {\n // Keys based on actual widget names\n // https://support.trustpilot.com/hc/en-us/articles/360019826379-TrustBox-widget-overview\n \"micro-combo\": {\n templateId: \"5419b6ffb0d04a076446a9af\",\n className: \"MicroCombo\",\n styles: {\n height: \"25px\",\n },\n },\n mini: {\n templateId: \"53aa8807dec7e10d38f59f32\",\n className: \"Mini\",\n styles: {\n width: \"300px\",\n height: \"150px\",\n },\n },\n horizontal: {\n templateId: \"5406e65db0d04a09e042d5fc\",\n className: \"Horizontal\",\n styles: {\n height: \"28px\",\n },\n },\n};\n"],"names":["REQUIRED_TRUSTPILOT_CLASS_NAME","SIMPLYBUSINESS_UNIT_ID","TRUSTPILOT_LINKS","TRUSTPILOT_WIDGET","templateId","className","styles","height","mini","width","horizontal"],"mappings":";;;;;;;;;;;IAAaA,8BAA8B;eAA9BA;;IAEAC,sBAAsB;eAAtBA;;IAEAC,gBAAgB;eAAhBA;;IAKAC,iBAAiB;eAAjBA;;;AATN,MAAMH,iCAAiC;AAEvC,MAAMC,yBAAyB;AAE/B,MAAMC,mBAAmB;IAC9B,SAAS;IACT,SAAS;AACX;AAEO,MAAMC,oBAAoB;IAC/B,oCAAoC;IACpC,yFAAyF;IACzF,eAAe;QACbC,YAAY;QACZC,WAAW;QACXC,QAAQ;YACNC,QAAQ;QACV;IACF;IACAC,MAAM;QACJJ,YAAY;QACZC,WAAW;QACXC,QAAQ;YACNG,OAAO;YACPF,QAAQ;QACV;IACF;IACAG,YAAY;QACVN,YAAY;QACZC,WAAW;QACXC,QAAQ;YACNC,QAAQ;QACV;IACF;AACF"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/components/Container/Container.tsx"],"sourcesContent":["import { forwardRef, Ref, RefAttributes, ReactNode } from \"react\";\nimport classNames from \"classnames/dedupe\";\nimport { DOMProps } from \"../../types/dom\";\nimport { ForwardedRefComponent } from \"../../types/components\";\nimport { SizeType } from \"../../types\";\nimport { sizeClasses } from \"../../utils\";\n\nexport type ContainerElementType = HTMLDivElement;\nexport type ContainerRef = Ref<ContainerElementType>;\n\nexport interface ContainerProps\n extends DOMProps,\n RefAttributes<ContainerElementType> {\n id?: string;\n /** Custom class name for setting specific CSS */\n className?: string;\n /** HTML element for the Box */\n elementType?: \"div\" | \"span\";\n size?: SizeType;\n children?: ReactNode;\n}\n\nconst Container: ForwardedRefComponent<ContainerProps, ContainerElementType> =\n forwardRef((props: ContainerProps, ref: ContainerRef) => {\n const { elementType: Element = \"div\", size = \"md\", ...otherProps } = props;\n\n const classes = classNames(\n \"mobius\",\n \"mobius/Container\",\n sizeClasses(size),\n otherProps.className,\n );\n\n return <Element ref={ref} {...otherProps} className={classes} />;\n });\n\nContainer.displayName = \"Container\";\nexport { Container };\n"],"names":["forwardRef","classNames","sizeClasses","Container","props","ref","elementType","Element","size","otherProps","classes","className","displayName"],"mappings":";AAAA,SAASA,UAAU,QAAuC,QAAQ;AAClE,OAAOC,gBAAgB,oBAAoB;AAI3C,SAASC,WAAW,QAAQ,cAAc;AAiB1C,MAAMC,0BACJH,WAAW,CAACI,OAAuBC;IACjC,MAAM,EAAEC,aAAaC,UAAU,KAAK,EAAEC,OAAO,IAAI,EAAE,GAAGC,YAAY,GAAGL;IAErE,MAAMM,UAAUT,WACd,UACA,oBACAC,YAAYM,OACZC,WAAWE,SAAS;IAGtB,qBAAO,KAACJ;QAAQF,KAAKA;QAAM,GAAGI,UAAU;QAAEE,WAAWD;;AACvD;AAEFP,UAAUS,WAAW,GAAG;AACxB,SAAST,SAAS,GAAG"}
1
+ {"version":3,"sources":["../../../../src/components/Container/Container.tsx"],"sourcesContent":["import {\n forwardRef,\n Ref,\n RefAttributes,\n ReactNode,\n ElementType,\n CSSProperties,\n} from \"react\";\nimport classNames from \"classnames/dedupe\";\nimport { DOMProps } from \"../../types/dom\";\nimport { ForwardedRefComponent } from \"../../types/components\";\nimport { SizeType } from \"../../types\";\nimport { sizeClasses } from \"../../utils\";\n\nexport type ContainerElementType = HTMLElement;\nexport type ContainerRef = Ref<ContainerElementType>;\n\nexport interface ContainerProps\n extends DOMProps,\n RefAttributes<ContainerElementType> {\n id?: string;\n /** Custom class name for setting specific CSS */\n className?: string;\n /** HTML element for the Box */\n elementType?: string | ElementType;\n size?: SizeType;\n children?: ReactNode;\n style?: CSSProperties;\n}\n\nconst Container: ForwardedRefComponent<ContainerProps, ContainerElementType> =\n forwardRef((props: ContainerProps, ref: ContainerRef) => {\n const { elementType: Element = \"div\", size = \"md\", ...otherProps } = props;\n\n const classes = classNames(\n \"mobius\",\n \"mobius/Container\",\n sizeClasses(size),\n otherProps.className,\n );\n\n return <Element ref={ref} {...otherProps} className={classes} />;\n });\n\nContainer.displayName = \"Container\";\nexport { Container };\n"],"names":["forwardRef","classNames","sizeClasses","Container","props","ref","elementType","Element","size","otherProps","classes","className","displayName"],"mappings":";AAAA,SACEA,UAAU,QAML,QAAQ;AACf,OAAOC,gBAAgB,oBAAoB;AAI3C,SAASC,WAAW,QAAQ,cAAc;AAkB1C,MAAMC,0BACJH,WAAW,CAACI,OAAuBC;IACjC,MAAM,EAAEC,aAAaC,UAAU,KAAK,EAAEC,OAAO,IAAI,EAAE,GAAGC,YAAY,GAAGL;IAErE,MAAMM,UAAUT,WACd,UACA,oBACAC,YAAYM,OACZC,WAAWE,SAAS;IAGtB,qBAAO,KAACJ;QAAQF,KAAKA;QAAM,GAAGI,UAAU;QAAEE,WAAWD;;AACvD;AAEFP,UAAUS,WAAW,GAAG;AACxB,SAAST,SAAS,GAAG"}
@@ -10,7 +10,7 @@ import { ModalContext } from "./ModalContext";
10
10
  const TRANSITION_CSS_VARIABLE = "--modal-transition-duration";
11
11
  const Modal = /*#__PURE__*/ forwardRef((props, ref)=>{
12
12
  const { isOpen, onClose, onOpen, children, className, closeLabel, isFullScreen, animation, // Deprecated props below
13
- size, appElement, preventCloseOnEsc, shouldFocusAfterRender, parentSelector } = props;
13
+ size, appElement, preventCloseOnEsc, shouldFocusAfterRender, parentSelector, ...rest } = props;
14
14
  const [shouldTransition, setShouldTransition] = useState(false);
15
15
  useDeprecationWarning({
16
16
  size,
@@ -54,6 +54,7 @@ const Modal = /*#__PURE__*/ forwardRef((props, ref)=>{
54
54
  ]),
55
55
  onCancel: close,
56
56
  className: modalClasses,
57
+ ...rest,
57
58
  children: /*#__PURE__*/ _jsx(ModalContext.Provider, {
58
59
  value: contextValue,
59
60
  children: children
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/components/Modal/Modal.tsx"],"sourcesContent":["\"use client\";\n\nimport classNames from \"classnames/dedupe\";\nimport { Ref, forwardRef, useEffect, useMemo, useRef, useState } from \"react\";\nimport { useDialog } from \"../../hooks\";\nimport { useDeprecationWarning } from \"../../hooks/useDeprecationWarning\";\nimport { mergeRefs } from \"../../utils\";\nimport { supportsDialog } from \"../../utils/polyfill-tests\";\nimport { ModalContext } from \"./ModalContext\";\nimport { ModalProps } from \"./types\";\n\nexport type ModalElementType = HTMLDialogElement;\nexport type ModalRef = Ref<ModalElementType>;\n\nconst TRANSITION_CSS_VARIABLE = \"--modal-transition-duration\";\n\nconst Modal = forwardRef((props: ModalProps, ref: ModalRef) => {\n const {\n isOpen,\n onClose,\n onOpen,\n children,\n className,\n closeLabel,\n isFullScreen,\n animation,\n // Deprecated props below\n size,\n appElement,\n preventCloseOnEsc,\n shouldFocusAfterRender,\n parentSelector,\n } = props;\n const [shouldTransition, setShouldTransition] = useState(false);\n\n useDeprecationWarning({\n size,\n appElement,\n preventCloseOnEsc,\n shouldFocusAfterRender,\n parentSelector,\n });\n\n useEffect(() => {\n setShouldTransition(supportsDialog());\n }, []);\n\n const dialogRef = useRef<HTMLDialogElement | null>(null);\n const { close } = useDialog({\n ref: dialogRef,\n isOpen,\n onOpen,\n onClose,\n transition: {\n isEnabled: !!animation,\n CSSVariable: TRANSITION_CSS_VARIABLE,\n },\n });\n\n const modalClasses = classNames(\n \"mobius\",\n \"mobius/Modal\",\n {\n \"--no-dialog-support\": !shouldTransition, // This class is used to correctly position modal in x/y middle on iOS <= 15.2\n \"--should-transition\": shouldTransition && animation,\n \"--slide-up\": animation === \"slideUp\",\n \"--fade\": animation === \"fade\",\n \"--is-fullscreen\": isFullScreen,\n },\n className,\n );\n\n const contextValue = useMemo(\n () => ({\n onClose: close,\n closeLabel,\n }),\n [close, closeLabel],\n );\n\n return (\n <dialog\n ref={mergeRefs([dialogRef, ref])}\n onCancel={close}\n className={modalClasses}\n >\n <ModalContext.Provider value={contextValue}>\n {children}\n </ModalContext.Provider>\n </dialog>\n );\n});\n\nModal.displayName = \"Modal\";\nexport { Modal };\n"],"names":["classNames","forwardRef","useEffect","useMemo","useRef","useState","useDialog","useDeprecationWarning","mergeRefs","supportsDialog","ModalContext","TRANSITION_CSS_VARIABLE","Modal","props","ref","isOpen","onClose","onOpen","children","className","closeLabel","isFullScreen","animation","size","appElement","preventCloseOnEsc","shouldFocusAfterRender","parentSelector","shouldTransition","setShouldTransition","dialogRef","close","transition","isEnabled","CSSVariable","modalClasses","contextValue","dialog","onCancel","Provider","value","displayName"],"mappings":"AAAA;;AAEA,OAAOA,gBAAgB,oBAAoB;AAC3C,SAAcC,UAAU,EAAEC,SAAS,EAAEC,OAAO,EAAEC,MAAM,EAAEC,QAAQ,QAAQ,QAAQ;AAC9E,SAASC,SAAS,QAAQ,cAAc;AACxC,SAASC,qBAAqB,QAAQ,oCAAoC;AAC1E,SAASC,SAAS,QAAQ,cAAc;AACxC,SAASC,cAAc,QAAQ,6BAA6B;AAC5D,SAASC,YAAY,QAAQ,iBAAiB;AAM9C,MAAMC,0BAA0B;AAEhC,MAAMC,sBAAQX,WAAW,CAACY,OAAmBC;IAC3C,MAAM,EACJC,MAAM,EACNC,OAAO,EACPC,MAAM,EACNC,QAAQ,EACRC,SAAS,EACTC,UAAU,EACVC,YAAY,EACZC,SAAS,EACT,yBAAyB;IACzBC,IAAI,EACJC,UAAU,EACVC,iBAAiB,EACjBC,sBAAsB,EACtBC,cAAc,EACf,GAAGd;IACJ,MAAM,CAACe,kBAAkBC,oBAAoB,GAAGxB,SAAS;IAEzDE,sBAAsB;QACpBgB;QACAC;QACAC;QACAC;QACAC;IACF;IAEAzB,UAAU;QACR2B,oBAAoBpB;IACtB,GAAG,EAAE;IAEL,MAAMqB,YAAY1B,OAAiC;IACnD,MAAM,EAAE2B,KAAK,EAAE,GAAGzB,UAAU;QAC1BQ,KAAKgB;QACLf;QACAE;QACAD;QACAgB,YAAY;YACVC,WAAW,CAAC,CAACX;YACbY,aAAavB;QACf;IACF;IAEA,MAAMwB,eAAenC,WACnB,UACA,gBACA;QACE,uBAAuB,CAAC4B;QACxB,uBAAuBA,oBAAoBN;QAC3C,cAAcA,cAAc;QAC5B,UAAUA,cAAc;QACxB,mBAAmBD;IACrB,GACAF;IAGF,MAAMiB,eAAejC,QACnB,IAAO,CAAA;YACLa,SAASe;YACTX;QACF,CAAA,GACA;QAACW;QAAOX;KAAW;IAGrB,qBACE,KAACiB;QACCvB,KAAKN,UAAU;YAACsB;YAAWhB;SAAI;QAC/BwB,UAAUP;QACVZ,WAAWgB;kBAEX,cAAA,KAACzB,aAAa6B,QAAQ;YAACC,OAAOJ;sBAC3BlB;;;AAIT;AAEAN,MAAM6B,WAAW,GAAG;AACpB,SAAS7B,KAAK,GAAG"}
1
+ {"version":3,"sources":["../../../../src/components/Modal/Modal.tsx"],"sourcesContent":["\"use client\";\n\nimport classNames from \"classnames/dedupe\";\nimport { Ref, forwardRef, useEffect, useMemo, useRef, useState } from \"react\";\nimport { useDialog } from \"../../hooks\";\nimport { useDeprecationWarning } from \"../../hooks/useDeprecationWarning\";\nimport { mergeRefs } from \"../../utils\";\nimport { supportsDialog } from \"../../utils/polyfill-tests\";\nimport { ModalContext } from \"./ModalContext\";\nimport { ModalProps } from \"./types\";\n\nexport type ModalElementType = HTMLDialogElement;\nexport type ModalRef = Ref<ModalElementType>;\n\nconst TRANSITION_CSS_VARIABLE = \"--modal-transition-duration\";\n\nconst Modal = forwardRef((props: ModalProps, ref: ModalRef) => {\n const {\n isOpen,\n onClose,\n onOpen,\n children,\n className,\n closeLabel,\n isFullScreen,\n animation,\n // Deprecated props below\n size,\n appElement,\n preventCloseOnEsc,\n shouldFocusAfterRender,\n parentSelector,\n ...rest\n } = props;\n const [shouldTransition, setShouldTransition] = useState(false);\n\n useDeprecationWarning({\n size,\n appElement,\n preventCloseOnEsc,\n shouldFocusAfterRender,\n parentSelector,\n });\n\n useEffect(() => {\n setShouldTransition(supportsDialog());\n }, []);\n\n const dialogRef = useRef<HTMLDialogElement | null>(null);\n const { close } = useDialog({\n ref: dialogRef,\n isOpen,\n onOpen,\n onClose,\n transition: {\n isEnabled: !!animation,\n CSSVariable: TRANSITION_CSS_VARIABLE,\n },\n });\n\n const modalClasses = classNames(\n \"mobius\",\n \"mobius/Modal\",\n {\n \"--no-dialog-support\": !shouldTransition, // This class is used to correctly position modal in x/y middle on iOS <= 15.2\n \"--should-transition\": shouldTransition && animation,\n \"--slide-up\": animation === \"slideUp\",\n \"--fade\": animation === \"fade\",\n \"--is-fullscreen\": isFullScreen,\n },\n className,\n );\n\n const contextValue = useMemo(\n () => ({\n onClose: close,\n closeLabel,\n }),\n [close, closeLabel],\n );\n\n return (\n <dialog\n ref={mergeRefs([dialogRef, ref])}\n onCancel={close}\n className={modalClasses}\n {...rest}\n >\n <ModalContext.Provider value={contextValue}>\n {children}\n </ModalContext.Provider>\n </dialog>\n );\n});\n\nModal.displayName = \"Modal\";\nexport { Modal };\n"],"names":["classNames","forwardRef","useEffect","useMemo","useRef","useState","useDialog","useDeprecationWarning","mergeRefs","supportsDialog","ModalContext","TRANSITION_CSS_VARIABLE","Modal","props","ref","isOpen","onClose","onOpen","children","className","closeLabel","isFullScreen","animation","size","appElement","preventCloseOnEsc","shouldFocusAfterRender","parentSelector","rest","shouldTransition","setShouldTransition","dialogRef","close","transition","isEnabled","CSSVariable","modalClasses","contextValue","dialog","onCancel","Provider","value","displayName"],"mappings":"AAAA;;AAEA,OAAOA,gBAAgB,oBAAoB;AAC3C,SAAcC,UAAU,EAAEC,SAAS,EAAEC,OAAO,EAAEC,MAAM,EAAEC,QAAQ,QAAQ,QAAQ;AAC9E,SAASC,SAAS,QAAQ,cAAc;AACxC,SAASC,qBAAqB,QAAQ,oCAAoC;AAC1E,SAASC,SAAS,QAAQ,cAAc;AACxC,SAASC,cAAc,QAAQ,6BAA6B;AAC5D,SAASC,YAAY,QAAQ,iBAAiB;AAM9C,MAAMC,0BAA0B;AAEhC,MAAMC,sBAAQX,WAAW,CAACY,OAAmBC;IAC3C,MAAM,EACJC,MAAM,EACNC,OAAO,EACPC,MAAM,EACNC,QAAQ,EACRC,SAAS,EACTC,UAAU,EACVC,YAAY,EACZC,SAAS,EACT,yBAAyB;IACzBC,IAAI,EACJC,UAAU,EACVC,iBAAiB,EACjBC,sBAAsB,EACtBC,cAAc,EACd,GAAGC,MACJ,GAAGf;IACJ,MAAM,CAACgB,kBAAkBC,oBAAoB,GAAGzB,SAAS;IAEzDE,sBAAsB;QACpBgB;QACAC;QACAC;QACAC;QACAC;IACF;IAEAzB,UAAU;QACR4B,oBAAoBrB;IACtB,GAAG,EAAE;IAEL,MAAMsB,YAAY3B,OAAiC;IACnD,MAAM,EAAE4B,KAAK,EAAE,GAAG1B,UAAU;QAC1BQ,KAAKiB;QACLhB;QACAE;QACAD;QACAiB,YAAY;YACVC,WAAW,CAAC,CAACZ;YACba,aAAaxB;QACf;IACF;IAEA,MAAMyB,eAAepC,WACnB,UACA,gBACA;QACE,uBAAuB,CAAC6B;QACxB,uBAAuBA,oBAAoBP;QAC3C,cAAcA,cAAc;QAC5B,UAAUA,cAAc;QACxB,mBAAmBD;IACrB,GACAF;IAGF,MAAMkB,eAAelC,QACnB,IAAO,CAAA;YACLa,SAASgB;YACTZ;QACF,CAAA,GACA;QAACY;QAAOZ;KAAW;IAGrB,qBACE,KAACkB;QACCxB,KAAKN,UAAU;YAACuB;YAAWjB;SAAI;QAC/ByB,UAAUP;QACVb,WAAWiB;QACV,GAAGR,IAAI;kBAER,cAAA,KAAClB,aAAa8B,QAAQ;YAACC,OAAOJ;sBAC3BnB;;;AAIT;AAEAN,MAAM8B,WAAW,GAAG;AACpB,SAAS9B,KAAK,GAAG"}
@@ -21,6 +21,13 @@ export const TRUSTPILOT_WIDGET = {
21
21
  width: "300px",
22
22
  height: "150px"
23
23
  }
24
+ },
25
+ horizontal: {
26
+ templateId: "5406e65db0d04a09e042d5fc",
27
+ className: "Horizontal",
28
+ styles: {
29
+ height: "28px"
30
+ }
24
31
  }
25
32
  };
26
33
 
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/components/Trust/constants.ts"],"sourcesContent":["export const REQUIRED_TRUSTPILOT_CLASS_NAME = \"trustpilot-widget\";\n\nexport const SIMPLYBUSINESS_UNIT_ID = \"5ca35a3da72b330001954cef\";\n\nexport const TRUSTPILOT_LINKS = {\n \"en-US\": \"https://www.trustpilot.com/review/simplybusiness.com\",\n \"en-GB\": \"https://www.trustpilot.com/review/simplybusiness.co.uk\",\n};\n\nexport const TRUSTPILOT_WIDGET = {\n // Keys based on actual widget names\n // https://support.trustpilot.com/hc/en-us/articles/360019826379-TrustBox-widget-overview\n \"micro-combo\": {\n templateId: \"5419b6ffb0d04a076446a9af\",\n className: \"MicroCombo\",\n styles: {\n height: \"25px\",\n },\n },\n mini: {\n templateId: \"53aa8807dec7e10d38f59f32\",\n className: \"Mini\",\n styles: {\n width: \"300px\",\n height: \"150px\",\n },\n },\n};\n"],"names":["REQUIRED_TRUSTPILOT_CLASS_NAME","SIMPLYBUSINESS_UNIT_ID","TRUSTPILOT_LINKS","TRUSTPILOT_WIDGET","templateId","className","styles","height","mini","width"],"mappings":"AAAA,OAAO,MAAMA,iCAAiC,oBAAoB;AAElE,OAAO,MAAMC,yBAAyB,2BAA2B;AAEjE,OAAO,MAAMC,mBAAmB;IAC9B,SAAS;IACT,SAAS;AACX,EAAE;AAEF,OAAO,MAAMC,oBAAoB;IAC/B,oCAAoC;IACpC,yFAAyF;IACzF,eAAe;QACbC,YAAY;QACZC,WAAW;QACXC,QAAQ;YACNC,QAAQ;QACV;IACF;IACAC,MAAM;QACJJ,YAAY;QACZC,WAAW;QACXC,QAAQ;YACNG,OAAO;YACPF,QAAQ;QACV;IACF;AACF,EAAE"}
1
+ {"version":3,"sources":["../../../../src/components/Trust/constants.ts"],"sourcesContent":["export const REQUIRED_TRUSTPILOT_CLASS_NAME = \"trustpilot-widget\";\n\nexport const SIMPLYBUSINESS_UNIT_ID = \"5ca35a3da72b330001954cef\";\n\nexport const TRUSTPILOT_LINKS = {\n \"en-US\": \"https://www.trustpilot.com/review/simplybusiness.com\",\n \"en-GB\": \"https://www.trustpilot.com/review/simplybusiness.co.uk\",\n};\n\nexport const TRUSTPILOT_WIDGET = {\n // Keys based on actual widget names\n // https://support.trustpilot.com/hc/en-us/articles/360019826379-TrustBox-widget-overview\n \"micro-combo\": {\n templateId: \"5419b6ffb0d04a076446a9af\",\n className: \"MicroCombo\",\n styles: {\n height: \"25px\",\n },\n },\n mini: {\n templateId: \"53aa8807dec7e10d38f59f32\",\n className: \"Mini\",\n styles: {\n width: \"300px\",\n height: \"150px\",\n },\n },\n horizontal: {\n templateId: \"5406e65db0d04a09e042d5fc\",\n className: \"Horizontal\",\n styles: {\n height: \"28px\",\n },\n },\n};\n"],"names":["REQUIRED_TRUSTPILOT_CLASS_NAME","SIMPLYBUSINESS_UNIT_ID","TRUSTPILOT_LINKS","TRUSTPILOT_WIDGET","templateId","className","styles","height","mini","width","horizontal"],"mappings":"AAAA,OAAO,MAAMA,iCAAiC,oBAAoB;AAElE,OAAO,MAAMC,yBAAyB,2BAA2B;AAEjE,OAAO,MAAMC,mBAAmB;IAC9B,SAAS;IACT,SAAS;AACX,EAAE;AAEF,OAAO,MAAMC,oBAAoB;IAC/B,oCAAoC;IACpC,yFAAyF;IACzF,eAAe;QACbC,YAAY;QACZC,WAAW;QACXC,QAAQ;YACNC,QAAQ;QACV;IACF;IACAC,MAAM;QACJJ,YAAY;QACZC,WAAW;QACXC,QAAQ;YACNG,OAAO;YACPF,QAAQ;QACV;IACF;IACAG,YAAY;QACVN,YAAY;QACZC,WAAW;QACXC,QAAQ;YACNC,QAAQ;QACV;IACF;AACF,EAAE"}
@@ -2,7 +2,7 @@ import type { Meta, StoryObj } from "@storybook/react";
2
2
  import { Accordion } from "..";
3
3
  type StoryType = StoryObj<typeof Accordion>;
4
4
  declare const meta: Meta<typeof Accordion>;
5
- export declare const Normal: StoryType;
5
+ export declare const Default: StoryType;
6
6
  export declare const StartExpanded: StoryType;
7
7
  export declare const BottomHeader: StoryType;
8
8
  export declare const WithChildren: StoryType;
@@ -2,6 +2,6 @@ import type { Meta, StoryObj } from "@storybook/react";
2
2
  import { Alert } from "./Alert";
3
3
  type StoryType = StoryObj<typeof Alert>;
4
4
  declare const meta: Meta<typeof Alert>;
5
- export declare const Normal: StoryType;
5
+ export declare const Default: StoryType;
6
6
  export declare const WithHeader: StoryType;
7
7
  export default meta;
@@ -2,6 +2,6 @@ import type { Meta, StoryObj } from "@storybook/react";
2
2
  import { Box } from "./Box";
3
3
  type StoryType = StoryObj<typeof Box>;
4
4
  declare const meta: Meta<typeof Box>;
5
- export declare const Normal: StoryType;
5
+ export declare const Default: StoryType;
6
6
  export declare const CustomElement: StoryType;
7
7
  export default meta;
@@ -2,6 +2,6 @@ import type { Meta, StoryObj } from "@storybook/react";
2
2
  import { Breadcrumbs } from "./Breadcrumbs";
3
3
  type StoryType = StoryObj<typeof Breadcrumbs>;
4
4
  declare const meta: Meta<typeof Breadcrumbs>;
5
- export declare const Normal: StoryType;
5
+ export declare const Default: StoryType;
6
6
  export declare const WithLogo: StoryType;
7
7
  export default meta;
@@ -2,7 +2,7 @@ import type { Meta, StoryObj } from "@storybook/react";
2
2
  import { Button } from "./Button";
3
3
  type StoryType = StoryObj<typeof Button>;
4
4
  declare const meta: Meta<typeof Button>;
5
- export declare const Normal: StoryType;
5
+ export declare const Default: StoryType;
6
6
  export declare const Secondary: StoryType;
7
7
  export declare const Ghost: StoryType;
8
8
  export declare const Basic: StoryType;
@@ -2,7 +2,7 @@ import type { Meta, StoryObj } from "@storybook/react";
2
2
  import { Checkbox } from ".";
3
3
  type StoryType = StoryObj<typeof Checkbox>;
4
4
  declare const meta: Meta<typeof Checkbox>;
5
- export declare const Normal: StoryType;
5
+ export declare const Default: StoryType;
6
6
  export declare const Disabled: StoryType;
7
7
  export declare const Valid: StoryType;
8
8
  export declare const Invalid: StoryType;
@@ -2,7 +2,7 @@ import type { Meta, StoryObj } from "@storybook/react";
2
2
  import { CheckboxGroup } from ".";
3
3
  type StoryType = StoryObj<typeof CheckboxGroup>;
4
4
  declare const meta: Meta<typeof CheckboxGroup>;
5
- export declare const Normal: StoryType;
5
+ export declare const Default: StoryType;
6
6
  export declare const Horizontal: StoryType;
7
7
  export declare const Disabled: StoryType;
8
8
  export declare const Valid: StoryType;
@@ -1,17 +1,18 @@
1
- import { Ref, RefAttributes, ReactNode } from "react";
1
+ import { Ref, RefAttributes, ReactNode, ElementType, CSSProperties } from "react";
2
2
  import { DOMProps } from "../../types/dom";
3
3
  import { ForwardedRefComponent } from "../../types/components";
4
4
  import { SizeType } from "../../types";
5
- export type ContainerElementType = HTMLDivElement;
5
+ export type ContainerElementType = HTMLElement;
6
6
  export type ContainerRef = Ref<ContainerElementType>;
7
7
  export interface ContainerProps extends DOMProps, RefAttributes<ContainerElementType> {
8
8
  id?: string;
9
9
  /** Custom class name for setting specific CSS */
10
10
  className?: string;
11
11
  /** HTML element for the Box */
12
- elementType?: "div" | "span";
12
+ elementType?: string | ElementType;
13
13
  size?: SizeType;
14
14
  children?: ReactNode;
15
+ style?: CSSProperties;
15
16
  }
16
17
  declare const Container: ForwardedRefComponent<ContainerProps, ContainerElementType>;
17
18
  export { Container };
@@ -2,5 +2,5 @@ import type { Meta, StoryObj } from "@storybook/react";
2
2
  import { Container } from "./Container";
3
3
  type StoryType = StoryObj<typeof Container>;
4
4
  declare const meta: Meta<typeof Container>;
5
- export declare const Normal: StoryType;
5
+ export declare const Default: StoryType;
6
6
  export default meta;
@@ -2,5 +2,5 @@ import type { Meta, StoryObj } from "@storybook/react";
2
2
  import { Divider } from "./Divider";
3
3
  type StoryType = StoryObj<typeof Divider>;
4
4
  declare const meta: Meta<typeof Divider>;
5
- export declare const Normal: StoryType;
5
+ export declare const Default: StoryType;
6
6
  export default meta;
@@ -2,7 +2,7 @@ import type { Meta, StoryObj } from "@storybook/react";
2
2
  import { Drawer } from ".";
3
3
  type StoryType = StoryObj<typeof Drawer>;
4
4
  declare const meta: Meta<typeof Drawer>;
5
- export declare const Normal: StoryType;
5
+ export declare const Default: StoryType;
6
6
  export declare const WithLogoHeader: StoryType;
7
7
  export declare const WithLongContent: StoryType;
8
8
  export default meta;
@@ -2,6 +2,6 @@ import type { Meta, StoryObj } from "@storybook/react";
2
2
  import { DropdownMenu } from ".";
3
3
  type StoryType = StoryObj<typeof DropdownMenu>;
4
4
  declare const meta: Meta<typeof DropdownMenu>;
5
- export declare const Normal: StoryType;
5
+ export declare const Default: StoryType;
6
6
  export declare const WithCustomTrigger: StoryType;
7
7
  export default meta;
@@ -2,6 +2,6 @@ import type { Meta, StoryObj } from "@storybook/react";
2
2
  import { ErrorMessage } from ".";
3
3
  type StoryType = StoryObj<typeof ErrorMessage>;
4
4
  declare const meta: Meta<typeof ErrorMessage>;
5
- export declare const Normal: StoryType;
5
+ export declare const Default: StoryType;
6
6
  export declare const LongMessage: StoryType;
7
7
  export default meta;
@@ -2,6 +2,6 @@ import type { Meta, StoryObj } from "@storybook/react";
2
2
  import { Fieldset } from "./Fieldset";
3
3
  type StoryType = StoryObj<typeof Fieldset>;
4
4
  declare const meta: Meta<typeof Fieldset>;
5
- export declare const Normal: StoryType;
5
+ export declare const Default: StoryType;
6
6
  export declare const WithLegend: StoryType;
7
7
  export default meta;
@@ -4,7 +4,7 @@ import { GridItem } from "./Item";
4
4
  type StoryType = StoryObj<typeof Grid>;
5
5
  declare const meta: Meta<typeof Grid>;
6
6
  export declare const AlignmentProperties: StoryType;
7
- export declare const Normal: StoryType;
7
+ export declare const Default: StoryType;
8
8
  export declare const EightColumns: StoryType;
9
9
  export declare const Responsive: Meta<typeof GridItem>;
10
10
  export declare const ItemPositioning: Meta<typeof GridItem>;
@@ -2,6 +2,6 @@ import type { Meta, StoryObj } from "@storybook/react";
2
2
  import { Icon } from "./Icon";
3
3
  type StoryType = StoryObj<typeof Icon>;
4
4
  declare const meta: Meta<typeof Icon>;
5
- export declare const Normal: StoryType;
5
+ export declare const Default: StoryType;
6
6
  export declare const Spinning: StoryType;
7
7
  export default meta;
@@ -2,5 +2,5 @@ import type { Meta, StoryObj } from "@storybook/react";
2
2
  import { Image } from "./Image";
3
3
  type StoryType = StoryObj<typeof Image>;
4
4
  declare const meta: Meta<typeof Image>;
5
- export declare const Normal: StoryType;
5
+ export declare const Default: StoryType;
6
6
  export default meta;
@@ -2,5 +2,5 @@ import type { Meta, StoryObj } from "@storybook/react";
2
2
  import { Label } from "./Label";
3
3
  type StoryType = StoryObj<typeof Label>;
4
4
  declare const meta: Meta<typeof Label>;
5
- export declare const Normal: StoryType;
5
+ export declare const Default: StoryType;
6
6
  export default meta;
@@ -2,6 +2,6 @@ import type { Meta, StoryObj } from "@storybook/react";
2
2
  import { Link } from "./Link";
3
3
  type StoryType = StoryObj<typeof Link>;
4
4
  declare const meta: Meta<typeof Link>;
5
- export declare const Normal: StoryType;
5
+ export declare const Default: StoryType;
6
6
  export declare const Disabled: StoryType;
7
7
  export default meta;
@@ -2,5 +2,5 @@ import type { Meta, StoryObj } from "@storybook/react";
2
2
  import { LinkButton } from "./LinkButton";
3
3
  type StoryType = StoryObj<typeof LinkButton>;
4
4
  declare const meta: Meta<typeof LinkButton>;
5
- export declare const Normal: StoryType;
5
+ export declare const Default: StoryType;
6
6
  export default meta;
@@ -2,7 +2,7 @@ import type { Meta, StoryObj } from "@storybook/react";
2
2
  import { LoadingIndicator } from "./LoadingIndicator";
3
3
  type StoryType = StoryObj<typeof LoadingIndicator>;
4
4
  declare const meta: Meta<typeof LoadingIndicator>;
5
- export declare const Normal: StoryType;
5
+ export declare const Default: StoryType;
6
6
  export declare const Large: StoryType;
7
7
  export declare const WithCustomColour: StoryType;
8
8
  export declare const WithCustomIcon: StoryType;
@@ -2,5 +2,5 @@ import type { Meta, StoryObj } from "@storybook/react";
2
2
  import { Logo } from "..";
3
3
  type StoryType = StoryObj<typeof Logo>;
4
4
  declare const meta: Meta<typeof Logo>;
5
- export declare const Normal: StoryType;
5
+ export declare const Default: StoryType;
6
6
  export default meta;
@@ -2,7 +2,7 @@ import type { Meta, StoryObj } from "@storybook/react";
2
2
  import { Modal } from ".";
3
3
  type StoryType = StoryObj<typeof Modal>;
4
4
  declare const meta: Meta<typeof Modal>;
5
- export declare const Normal: StoryType;
5
+ export declare const Default: StoryType;
6
6
  export declare const FullScreen: StoryType;
7
7
  export declare const WithAnimation: StoryType;
8
8
  export declare const WithLongContent: StoryType;
@@ -2,7 +2,7 @@ import type { Meta, StoryObj } from "@storybook/react";
2
2
  import { NumberField } from "./NumberField";
3
3
  type StoryType = StoryObj<typeof NumberField>;
4
4
  declare const meta: Meta<typeof NumberField>;
5
- export declare const Normal: StoryType;
5
+ export declare const Default: StoryType;
6
6
  export declare const LimitedRange: StoryType;
7
7
  export declare const Valid: StoryType;
8
8
  export declare const Invalid: StoryType;
@@ -2,5 +2,5 @@ import type { Meta, StoryObj } from "@storybook/react";
2
2
  import { PasswordField } from "./PasswordField";
3
3
  type StoryType = StoryObj<typeof PasswordField>;
4
4
  declare const meta: Meta<typeof PasswordField>;
5
- export declare const Normal: StoryType;
5
+ export declare const Default: StoryType;
6
6
  export default meta;
@@ -2,6 +2,6 @@ import type { Meta, StoryObj } from "@storybook/react";
2
2
  import { Popover } from "..";
3
3
  type StoryType = StoryObj<typeof Popover>;
4
4
  declare const meta: Meta<typeof Popover>;
5
- export declare const Normal: StoryType;
5
+ export declare const Default: StoryType;
6
6
  export declare const CustomTrigger: StoryType;
7
7
  export default meta;
@@ -2,7 +2,7 @@ import type { Meta, StoryObj } from "@storybook/react";
2
2
  import { RadioGroup } from "./RadioGroup";
3
3
  type StoryType = StoryObj<typeof RadioGroup>;
4
4
  declare const meta: Meta<typeof RadioGroup>;
5
- export declare const Normal: StoryType;
5
+ export declare const Default: StoryType;
6
6
  export declare const Disabled: StoryType;
7
7
  export declare const DisabledIndividualRadios: StoryType;
8
8
  export declare const Valid: StoryType;
@@ -2,5 +2,5 @@ import type { Meta, StoryObj } from "@storybook/react";
2
2
  import { SVG } from "./SVG";
3
3
  type StoryType = StoryObj<typeof SVG>;
4
4
  declare const meta: Meta<typeof SVG>;
5
- export declare const Normal: StoryType;
5
+ export declare const Default: StoryType;
6
6
  export default meta;
@@ -2,7 +2,7 @@ import type { Meta, StoryObj } from "@storybook/react";
2
2
  import { Select } from "./Select";
3
3
  type StoryType = StoryObj<typeof Select>;
4
4
  declare const meta: Meta<typeof Select>;
5
- export declare const Normal: StoryType;
5
+ export declare const Default: StoryType;
6
6
  export declare const ControlledValue: StoryType;
7
7
  export declare const Disabled: StoryType;
8
8
  export declare const Valid: StoryType;
@@ -2,6 +2,6 @@ import type { Meta, StoryObj } from "@storybook/react";
2
2
  import { Table } from ".";
3
3
  type StoryType = StoryObj<typeof Table>;
4
4
  declare const meta: Meta<typeof Table>;
5
- export declare const Normal: StoryType;
5
+ export declare const Default: StoryType;
6
6
  export declare const Extended: StoryType;
7
7
  export default meta;
@@ -2,7 +2,7 @@ import type { Meta, StoryObj } from "@storybook/react";
2
2
  import { TextArea } from "./TextArea";
3
3
  type StoryType = StoryObj<typeof TextArea>;
4
4
  declare const meta: Meta<typeof TextArea>;
5
- export declare const Normal: StoryType;
5
+ export declare const Default: StoryType;
6
6
  export declare const ControlledValue: StoryType;
7
7
  export declare const Disabled: StoryType;
8
8
  export declare const WithError: StoryType;
@@ -2,7 +2,7 @@ import type { Meta, StoryObj } from "@storybook/react";
2
2
  import { TextField } from "./TextField";
3
3
  type StoryType = StoryObj<typeof TextField>;
4
4
  declare const meta: Meta<typeof TextField>;
5
- export declare const Normal: StoryType;
5
+ export declare const Default: StoryType;
6
6
  export declare const Placeholder: StoryType;
7
7
  export declare const ControlledValue: StoryType;
8
8
  export declare const Disabled: StoryType;
@@ -2,5 +2,5 @@ import type { Meta, StoryObj } from "@storybook/react";
2
2
  import { Title } from "./Title";
3
3
  type StoryType = StoryObj<typeof Title>;
4
4
  declare const meta: Meta<typeof Title>;
5
- export declare const Normal: StoryType;
5
+ export declare const Default: StoryType;
6
6
  export default meta;
@@ -4,4 +4,5 @@ type StoryType = StoryObj<typeof Trust>;
4
4
  declare const meta: Meta<typeof Trust>;
5
5
  export declare const MicroCombo: StoryType;
6
6
  export declare const Mini: StoryType;
7
+ export declare const Horizontal: StoryType;
7
8
  export default meta;
@@ -20,4 +20,11 @@ export declare const TRUSTPILOT_WIDGET: {
20
20
  height: string;
21
21
  };
22
22
  };
23
+ horizontal: {
24
+ templateId: string;
25
+ className: string;
26
+ styles: {
27
+ height: string;
28
+ };
29
+ };
23
30
  };
@@ -2,5 +2,5 @@ import type { Meta, StoryObj } from "@storybook/react";
2
2
  import { VisuallyHidden } from ".";
3
3
  type StoryType = StoryObj<typeof VisuallyHidden>;
4
4
  declare const meta: Meta<typeof VisuallyHidden>;
5
- export declare const Normal: StoryType;
5
+ export declare const Default: StoryType;
6
6
  export default meta;
@@ -2,6 +2,6 @@ import type { Meta, StoryObj } from "@storybook/react";
2
2
  import { useBreakpoint } from "./useBreakpoint";
3
3
  type StoryType = StoryObj<typeof useBreakpoint>;
4
4
  declare const meta: Meta<typeof useBreakpoint>;
5
- export declare const Normal: StoryType;
5
+ export declare const Default: StoryType;
6
6
  export declare const UpAndDown: StoryType;
7
7
  export default meta;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@simplybusiness/mobius",
3
3
  "license": "UNLICENSED",
4
- "version": "4.15.1",
4
+ "version": "4.16.0",
5
5
  "description": "Core library of Mobius react components",
6
6
  "repository": {
7
7
  "type": "git",
@@ -87,7 +87,7 @@
87
87
  },
88
88
  "dependencies": {
89
89
  "@floating-ui/react": "^0.26.20",
90
- "@simplybusiness/icons": "^4.12.1",
90
+ "@simplybusiness/icons": "^4.13.0",
91
91
  "classnames": "^2.5.1",
92
92
  "dialog-polyfill": "^0.5.6",
93
93
  "lodash.debounce": "^4.0.8",
@@ -22,9 +22,9 @@ import { Accordion } from "@simplybusiness/mobius";
22
22
 
23
23
  ## Examples
24
24
 
25
- ### Normal
25
+ ### Default
26
26
 
27
- <Story of={AccordionStories.Normal} />
27
+ <Story of={AccordionStories.Default} />
28
28
 
29
29
  {/* prettier-ignore */}
30
30
  ```jsx
@@ -17,7 +17,7 @@ const meta: Meta<typeof Accordion> = {
17
17
  ],
18
18
  };
19
19
 
20
- export const Normal: StoryType = {
20
+ export const Default: StoryType = {
21
21
  render: (args: AccordionProps) => (
22
22
  <Accordion {...args}>
23
23
  <p>
@@ -22,11 +22,11 @@ yarn add @simplybusiness/mobius
22
22
  import { Alert } from "@simplybusiness/mobius";
23
23
  ```
24
24
 
25
- ## Normal
25
+ ### Default
26
26
 
27
- <Canvas of={AlertStories.Normal} />
27
+ <Canvas of={AlertStories.Default} />
28
28
 
29
- ## With Header
29
+ ### With Header
30
30
 
31
31
  <Canvas of={AlertStories.WithHeader} />
32
32