{
  "$schema": "../../changelogSchema.json",
  "name": "elvis-toolbox",
  "content": [
    {
      "date": "12.10.26",
      "version": "12.2.1",
      "changelog": [
        {
          "type": "bug_fix",
          "changes": [
            "Fixed optional form-field labels to display <code>(optional)</code> in English and <code>(valgfri)</code> in Norwegian."
          ]
        },
        {
          "type": "patch",
          "changes": ["Updated internal dependencies."]
        }
      ]
    },
    {
      "date": "09.10.26",
      "version": "12.2.0",
      "changelog": [
        {
          "type": "new_feature",
          "changes": ["Documented Node.js <code>18</code> as the minimum version."]
        },
        {
          "type": "bug_fix",
          "changes": [
            "Fixed ESM imports in Node.js by adding <code>.js</code> to internal imports.",
            "Fixed test files being included in the package."
          ]
        }
      ]
    },
    {
      "date": "11.09.24",
      "version": "12.1.0",
      "changelog": [
        {
          "type": "new_feature",
          "changes": [
            "Added new useLanguage hook to get the current value of the lang attribute on the html element."
          ]
        }
      ]
    },
    {
      "date": "27.08.24",
      "version": "12.0.6",
      "changelog": [
        {
          "type": "bug_fix",
          "changes": [
            "Fixed a bug where the <code>:focus-within</code> would select more <code>FormFieldInputContainer<code> elements than intended."
          ]
        },
        {
          "type": "patch",
          "changes": ["Updated internal dependencies."]
        }
      ]
    },
    {
      "date": "09.07.24",
      "version": "12.0.5",
      "changelog": [
        {
          "type": "patch",
          "changes": [
            "Marked the package as ESM only. This should reduce the bundle size of projects using the package."
          ]
        }
      ]
    },
    {
      "date": "08.07.24",
      "version": "12.0.4",
      "changelog": [
        {
          "type": "patch",
          "changes": [
            "Marked the package as side-effect free. This should reduce the bundle size of projects using the package."
          ]
        }
      ]
    },
    {
      "date": "21.06.24",
      "version": "12.0.3",
      "changelog": [
        {
          "type": "bug_fix",
          "changes": ["Fix layout issue after migrating to <code>@emotion</code>"]
        }
      ]
    },
    {
      "date": "30.05.24",
      "version": "12.0.2",
      "changelog": [
        {
          "type": "bug_fix",
          "changes": [
            "Converted the <code>ButtonBase</code> to a <code>React.forwardRef</code> to fix an issue."
          ]
        }
      ]
    },
    {
      "date": "30.05.24",
      "version": "12.0.1",
      "changelog": [
        {
          "type": "bug_fix",
          "changes": [
            "Republish the package to fix an issue with the previous release.",
            "Moved the <code>@emotion</code> dependencies to <code>peerDependencies</code>."
          ]
        }
      ]
    },
    {
      "date": "23.05.24",
      "version": "12.0.0",
      "changelog": [
        {
          "type": "breaking_changes",
          "changes": ["Replaced <code>styled-components</code> with <code>@emotion</code>."]
        }
      ]
    },
    {
      "date": "15.05.24",
      "version": "11.5.2",
      "changelog": [
        {
          "type": "bug_fix",
          "changes": [
            "Fix issue where text within an overflow container in global overlays could become blurry."
          ]
        }
      ]
    },
    {
      "date": "29.04.24",
      "version": "11.5.1",
      "changelog": [
        {
          "type": "bug_fix",
          "changes": [
            "The <code>useFocusTrap</code> hook now correctly updates the focus trap when the content changes."
          ]
        }
      ]
    },
    {
      "date": "19.03.24",
      "version": "11.5.0",
      "changelog": [
        {
          "type": "new_feature",
          "changes": ["Added loading button."]
        }
      ]
    },
    {
      "date": "07.03.24",
      "version": "11.4.0",
      "changelog": [
        {
          "type": "new_feature",
          "changes": [
            "The <code>useConnectedOverlay</code> hook now supports a new prop <code>allowHorizontalGrowth</code> that will allow the overlay to grow horizontally if the content is wider than the trigger, while maintaining a minimum width of the width of the trigger."
          ]
        },
        {
          "type": "patch",
          "changes": ["Updated internal dependencies."]
        }
      ]
    },
    {
      "date": "15.02.24",
      "version": "11.3.1",
      "changelog": [
        {
          "type": "patch",
          "changes": [
            "Updated gap to <code>8px</code> between elements in form fields with <code>size = 'small'</code>."
          ]
        }
      ]
    },
    {
      "date": "23.01.24",
      "version": "11.3.0",
      "changelog": [
        {
          "type": "new_feature",
          "changes": ["The Overlay component now accepts a custom backdrop component that can be styled."]
        }
      ]
    },
    {
      "date": "17.01.24",
      "version": "11.2.1",
      "changelog": [
        {
          "type": "patch",
          "changes": ["Updated typography and padding in form field error."]
        }
      ]
    },
    {
      "date": "20.12.23",
      "version": "11.2.0",
      "changelog": [
        {
          "type": "new_feature",
          "changes": [
            "The overlay component now supports a new prop <code>center</code> that will center the overlay on the viewport."
          ]
        }
      ]
    },
    {
      "date": "20.11.23",
      "version": "11.1.0",
      "changelog": [
        {
          "type": "new_feature",
          "changes": [
            "Add attribute elvisFocusInitial to allow setting initially focused element in a focus trap."
          ]
        }
      ]
    },
    {
      "date": "10.11.23",
      "version": "11.0.3",
      "changelog": [
        {
          "type": "patch",
          "changes": [
            "Added a listener to the webcomponent in <code>useSlot</code> to help detect slot changes."
          ]
        }
      ]
    },
    {
      "date": "03.11.23",
      "version": "11.0.2",
      "changelog": [
        {
          "type": "bug_fix",
          "changes": [
            "Fixed issue where a connected overlay with web components as content could be misaligned on initial render"
          ]
        }
      ]
    },
    {
      "date": "10.10.23",
      "version": "11.0.1",
      "changelog": [
        {
          "type": "bug_fix",
          "changes": ["Fixed issue where a connected overlay could be misaligned on initial render"]
        }
      ]
    },
    {
      "date": "06.10.23",
      "version": "11.0.0",
      "changelog": [
        {
          "type": "breaking_changes",
          "changes": [
            "Adjusted label typography and error typography to be more consistent across the design system."
          ]
        }
      ]
    },
    {
      "date": "28.09.23",
      "version": "10.1.0",
      "changelog": [
        {
          "type": "new_feature",
          "changes": ["Added the <code>useUpdateEffect</code> custom hook."]
        }
      ]
    },
    {
      "date": "18.09.23",
      "version": "10.0.1",
      "changelog": [
        {
          "type": "bug_fix",
          "changes": ["Increased the size of small input labels, which makes components taller."]
        }
      ]
    },
    {
      "date": "12.09.23",
      "version": "10.0.0",
      "changelog": [
        {
          "type": "breaking_changes",
          "changes": ["Internal only."]
        }
      ]
    },
    {
      "date": "18.09.23",
      "version": "9.7.1",
      "changelog": [
        {
          "type": "bug_fix",
          "changes": ["Revert 9.7.0"]
        }
      ]
    },
    {
      "date": "30.08.23",
      "version": "9.7.0",
      "changelog": [
        {
          "type": "new_feature",
          "changes": ["Update design for input labels."]
        }
      ]
    },
    {
      "date": "25.08.23",
      "version": "9.6.1",
      "changelog": [
        {
          "type": "bug_fix",
          "changes": ["Small input label missing background color."]
        }
      ]
    },
    {
      "date": "24.08.23",
      "version": "9.6.0",
      "changelog": [
        {
          "type": "new_feature",
          "changes": ["Dark theme support."]
        }
      ]
    },
    {
      "date": "18.08.23",
      "version": "9.5.1",
      "changelog": [
        {
          "type": "bug_fix",
          "changes": ["Fixed the cursor hover on disabled icon button."]
        }
      ]
    },
    {
      "date": "17.08.23",
      "version": "9.5.0",
      "changelog": [
        {
          "type": "new_feature",
          "changes": [
            "Added <code>VisuallyHidden</code> component that can be used to visually hide element from the page, but still have it be read by screen readers."
          ]
        }
      ]
    },
    {
      "date": "16.08.23",
      "version": "9.4.3",
      "changelog": [
        {
          "type": "bug_fix",
          "changes": [
            "Added explicit <code>line-height</code> to the <code>formFieldStyle</code> to avoid inheriting it from the parent."
          ]
        }
      ]
    },
    {
      "date": "14.08.23",
      "version": "9.4.2",
      "changelog": [
        {
          "type": "bug_fix",
          "changes": [
            "Fixed an incorrect selector in <code>useFocusTrap</code> and <code>useRovingFocus</code>."
          ]
        }
      ]
    },
    {
      "date": "02.08.23",
      "version": "9.4.1",
      "changelog": [
        {
          "type": "bug_fix",
          "changes": [
            "Added explicit <code>type=button</code> to button components to prevent unintended form submissions"
          ]
        }
      ]
    },
    {
      "date": "01.08.23",
      "version": "9.4.0",
      "changelog": [
        {
          "type": "new_feature",
          "changes": [
            "Add breakpoints to use in media queries.",
            "Add flag to Overlay component to use global instead of local themes"
          ]
        },
        {
          "type": "bug_fix",
          "changes": ["Tertiary button missing text color."]
        }
      ]
    },
    {
      "date": "18.07.23",
      "version": "9.3.1",
      "changelog": [
        {
          "type": "bug_fix",
          "changes": ["Fixed the typography and disabled color on primary/secondary buttons."]
        }
      ]
    },
    {
      "date": "26.06.23",
      "version": "9.3.0",
      "changelog": [
        {
          "type": "new_feature",
          "changes": [
            "Add optional callback to useRovingFocus when focus changes through keyboard interaction.",
            "Add shared breakpoints for media queries."
          ]
        }
      ]
    },
    {
      "date": "06.06.23",
      "version": "9.2.0",
      "changelog": [
        {
          "type": "new_feature",
          "changes": [
            "An optional <code>FormFieldInputSuffixText</code> span element has been added for including a suffix in the input."
          ]
        }
      ]
    },
    {
      "date": "01.06.23",
      "version": "9.1.1",
      "changelog": [
        {
          "type": "bug_fix",
          "changes": [
            "<code>formFieldStyle</code> background, border and text fix for normal version and inside <code>e-table</code>."
          ]
        }
      ]
    },
    {
      "date": "01.06.23",
      "version": "9.1.0",
      "changelog": [
        {
          "type": "new_feature",
          "changes": [
            "The Button components now accept 'small', 'medium' and 'large' as values for the <code>size</code> prop."
          ]
        }
      ]
    },
    {
      "date": "26.05.23",
      "version": "9.0.0",
      "changelog": [
        {
          "type": "breaking_changes",
          "changes": [
            "Changed form field styling from using <code>isCompact</code> to instead use <code>size='small | medium'</code>.",
            "Added support for using values small, medium and large for the size prop in the iconWrapper"
          ]
        }
      ]
    },
    {
      "date": "26.05.23",
      "version": "8.0.2",
      "changelog": [
        {
          "type": "patch",
          "changes": ["Now building to ESM instead of CJS."]
        }
      ]
    },
    {
      "date": "23.05.23",
      "version": "8.0.1",
      "changelog": [
        {
          "type": "bug_fix",
          "changes": ["Wrong text color on primary buttons."]
        }
      ]
    },
    {
      "date": "28.04.23",
      "version": "8.0.0",
      "changelog": [
        {
          "type": "breaking_changes",
          "changes": ["Changed the <code>iconWrapper</code> types to now use <code>getThemeColor</code>."]
        },
        {
          "type": "patch",
          "changes": [
            "Updated all reusable components to use the new color labels.",
            "Updated dependencies on <code>@elvia/elvis-colors</code> to 2.0.0."
          ]
        }
      ]
    },
    {
      "date": "09.03.23",
      "version": "7.8.1",
      "changelog": [
        {
          "type": "patch",
          "changes": [
            "Added a way to manually trigger a recalculation of the <code>useCurrentTheme</code> hook."
          ]
        }
      ]
    },
    {
      "date": "27.02.23",
      "version": "7.8.0",
      "changelog": [
        {
          "type": "new_feature",
          "changes": ["Added prop interface for transition duration."]
        }
      ]
    },
    {
      "date": "27.02.23",
      "version": "7.7.0",
      "changelog": [
        {
          "type": "new_feature",
          "changes": ["Added support for dark theme to the tooltip component."]
        }
      ]
    },
    {
      "date": "30.01.23",
      "version": "7.6.0",
      "changelog": [
        {
          "type": "new_feature",
          "changes": [
            "Form field, button, icon button, and overlay now support dark theme.",
            "Added new hook <code>useCurrentTheme</code>."
          ]
        }
      ]
    },
    {
      "date": "16.01.23",
      "version": "7.5.1",
      "changelog": [
        {
          "type": "bug_fix",
          "changes": ["Overlay not closing properly on localhost in React."]
        }
      ]
    },
    {
      "date": "03.01.23",
      "version": "7.5.0",
      "changelog": [
        {
          "type": "new_feature",
          "changes": [
            "Added the <span class=\"code-text\">hasErrorPlaceholder</span> option to the <span class=\"code-text\">errorOptions</span> object. This prop can be set to false to remove the padding under the form field}"
          ]
        }
      ]
    },
    {
      "date": "20.12.22",
      "version": "7.4.4",
      "changelog": [
        {
          "type": "bug_fix",
          "changes": [
            "<span class=\"code-text\">useInputModeDetection</span> triggering too often for keyboard input"
          ]
        }
      ]
    },
    {
      "date": "15.12.22",
      "version": "7.4.3",
      "changelog": [
        {
          "type": "patch",
          "changes": ["Remove unused <span class=\"code-text\">useLongPress</span> hook."]
        }
      ]
    },
    {
      "date": "14.12.22",
      "version": "7.4.2",
      "changelog": [
        {
          "type": "patch",
          "changes": ["Overlay component now has a defined max width."]
        }
      ]
    },
    {
      "date": "13.12.22",
      "version": "7.4.1",
      "changelog": [
        {
          "type": "bug_fix",
          "changes": ["<span class=\"code-text\">useInputModeDetection</span> triggering on mouse move"]
        }
      ]
    },
    {
      "date": "05.12.22",
      "version": "7.4.0",
      "changelog": [
        {
          "type": "new_feature",
          "changes": ["Add icon wrapper component to help reduce bundle sizes of other components."]
        }
      ]
    },
    {
      "date": "05.12.22",
      "version": "7.3.0",
      "changelog": [
        {
          "type": "new_feature",
          "changes": ["Add reusable overlay component"]
        }
      ]
    },
    {
      "date": "02.12.22",
      "version": "7.2.0",
      "changelog": [
        {
          "type": "new_feature",
          "changes": ["Add reusable styled backdrop component"]
        }
      ]
    },
    {
      "date": "02.12.22",
      "version": "7.1.0",
      "changelog": [
        {
          "type": "new_feature",
          "changes": [
            "Added new internal hook <span class=\"code-text\">useRovingFocus</span> to handle list keyboard navigation."
          ]
        }
      ]
    },
    {
      "date": "29.11.22",
      "version": "7.0.0",
      "changelog": [
        {
          "type": "breaking_changes",
          "changes": ["Deprecated warning function refactored and component config types added."]
        }
      ]
    },
    {
      "date": "23.11.22",
      "version": "6.0.1",
      "changelog": [
        {
          "type": "patch",
          "changes": ["Updated dependencies on internal packages."]
        }
      ]
    },
    {
      "date": "22.11.22",
      "version": "6.0.0",
      "changelog": [
        {
          "type": "breaking_changes",
          "changes": [
            "The styled <span class=\"code-text\">form field</span> component had their props moved to the container component.",
            "The hook <span class=\"code-text\">useConnectedOverlay</span> will now adapt better if the overlay content change while its open."
          ],
          "fixes": [
            "Move props previously added to <span class=\"code-text\">FormFieldInputContainer</span> to <span class=\"code-text\">FormFieldContainer</span>."
          ]
        }
      ]
    },
    {
      "date": "21.11.22",
      "version": "5.8.2",
      "changelog": [
        {
          "type": "bug_fix",
          "changes": ["Fixed a bug where the Icon Button would become oval-shaped in a Full-Width input."]
        }
      ]
    },
    {
      "date": "21.11.22",
      "version": "5.8.1",
      "changelog": [
        {
          "type": "patch",
          "changes": ["Added support for React 18."]
        }
      ]
    },
    {
      "date": "03.11.22",
      "version": "5.8.0",
      "changelog": [
        {
          "type": "new_feature",
          "changes": [
            "Add <span class=\"code-text\">useEffectDependencies</span> option for <span class=\"code-text\">useSlot</span> hook."
          ]
        }
      ]
    },
    {
      "date": "02.11.22",
      "version": "5.7.1",
      "changelog": [
        {
          "type": "patch",
          "changes": ["Improved the generic type of the <span class=\"code-text\">useSlot</span> hook."]
        }
      ]
    },
    {
      "date": "01.11.22",
      "version": "5.7.0",
      "changelog": [
        {
          "type": "new_feature",
          "changes": [
            "Added hook <span class=\"code-text\">useSlot</span> for getting webcomponent slot content and putting it in a React ref."
          ]
        },
        {
          "type": "patch",
          "changes": ["Added missing peer dependencies."]
        }
      ]
    },
    {
      "date": "31.10.22",
      "version": "5.6.1",
      "changelog": [
        {
          "type": "bug_fix",
          "changes": [
            "Fixed a bug that sometimes caused the <span class=\"code-text\">warnDeprecatedProps</span> function to crash."
          ]
        }
      ]
    },
    {
      "date": "31.10.22",
      "version": "5.6.0",
      "changelog": [
        {
          "type": "new_feature",
          "changes": [
            "Added hook <span class=\"code-text\">useInputModeDetection</span> for input mode detection."
          ]
        }
      ]
    },
    {
      "date": "28.10.22",
      "version": "5.5.0",
      "changelog": [
        {
          "type": "new_feature",
          "changes": ["Added prop building blocks for building standardized props for components"]
        }
      ]
    },
    {
      "date": "26.10.22",
      "version": "5.4.0",
      "changelog": [
        {
          "type": "new_feature",
          "changes": [
            "Added reusable <span class=\"code-text\">button</span> and <span class=\"code-text\">form field</span> components."
          ]
        }
      ]
    },
    {
      "date": "26.10.22",
      "version": "5.3.0",
      "changelog": [
        {
          "type": "new_feature",
          "changes": [
            "<span class=\"code-text\">useConnectedOverlay</span> will now position the overlay more intelligently."
          ]
        }
      ]
    },
    {
      "date": "24.10.22",
      "version": "5.2.0",
      "changelog": [
        {
          "type": "new_feature",
          "changes": [
            "Added hook <span class=\"code-text\">useWebComponentState</span> that can be used to control state and trigger events for props on webcomponent."
          ]
        }
      ]
    },
    {
      "date": "19.10.22",
      "version": "5.1.0",
      "changelog": [
        {
          "type": "new_feature",
          "changes": [
            "The hook <span class=\"code-text\">useConnectedOverlay</span> now supports aligning items on the inside of the trigger element."
          ]
        }
      ]
    },
    {
      "date": "18.10.22",
      "version": "5.0.0",
      "changelog": [
        {
          "type": "breaking_changes",
          "changes": [
            "The <span class=\"code-text\">useFocusTrap</span> is now a proper hook that returns a toggle for enabling/disabling focus trap."
          ],
          "fixes": [
            "Instead of calling the <span class=\"code-text\">useFocusTrap</span> each time you enable/disable the focus trap, you use the returned method."
          ]
        }
      ]
    },
    {
      "date": "18.10.22",
      "version": "4.2.0",
      "changelog": [
        {
          "type": "new_feature",
          "changes": ["Added a new hook <span class=\"code-text\">useIsOverflowing</span>. "]
        }
      ]
    },
    {
      "date": "07.10.22",
      "version": "4.1.2",
      "changelog": [
        {
          "type": "bug_fix",
          "changes": ["Missing dependency to <span class=\"code-text\">tslib</span>."]
        }
      ]
    },
    {
      "date": "05.10.22",
      "version": "4.1.1",
      "changelog": [
        {
          "type": "bug_fix",
          "changes": [
            "Fixed the SSR check in the function <span class=\"code-text\">warnDeprecatedProps</span>."
          ]
        }
      ]
    },
    {
      "date": "05.10.22",
      "version": "4.1.0",
      "changelog": [
        {
          "type": "new_feature",
          "changes": [
            "Hook <span class=\"code-text\">useBreakpoints</span> to check for breakpoints through code."
          ]
        }
      ]
    },
    {
      "date": "28.09.22",
      "version": "4.0.1",
      "changelog": [
        {
          "type": "bug_fix",
          "changes": [
            "Fixed a bug that caused the <span class=\"code-text\">useFocusTrap</span> hook to not work properly when a custom element was passed as content in the <span class=\"code-text\">elvia-modal</span> component."
          ]
        }
      ]
    },
    {
      "date": "28.09.22",
      "version": "4.0.0",
      "changelog": [
        {
          "type": "breaking_changes",
          "changes": [
            "Remove function <span class=\"code-text\">throttle</span>, as it is only a re-export of <span class=\"code-text\">lodash.throttle</span>"
          ],
          "fixes": [
            "Add <span class=\"code-text\">lodash.throttle</span> as a dependency and use method <span class=\"code-text\">throttle()</span> directly."
          ]
        }
      ]
    },
    {
      "date": "15.09.22",
      "version": "3.0.0",
      "changelog": [
        {
          "type": "breaking_changes",
          "changes": [
            "Added horizontal alignment to <span class=\"code-text\">useConnectedOverlay</span> hook.",
            "Redefined api for <span class=\"code-text\">useConnectedOverlay</span> to return an object",
            "Added hook <span class=\"code-text\">useLongPress</span> to detect long presses on elements."
          ],
          "fixes": [
            "Change response from <span class=\"code-text\">useConnectedOverlay</span> to an object, instead of an array."
          ]
        }
      ]
    },
    {
      "date": "09.09.22",
      "version": "2.2.0",
      "changelog": [
        {
          "type": "new_feature",
          "changes": [
            "Added reusable hook <span class=\"code-text\">useFocusTrap</span> to manage focus trapping.",
            "Added method for checking server side rendering"
          ]
        }
      ]
    },
    {
      "date": "01.09.22",
      "version": "2.1.0",
      "changelog": [
        {
          "type": "new_feature",
          "changes": [
            "Added reusable hook <span class=\"code-text\">useConnectedOverlay</span> to manage overlay positioning."
          ]
        }
      ]
    },
    {
      "date": "01.09.22",
      "version": "2.0.0",
      "changelog": [
        {
          "type": "breaking_changes",
          "changes": [
            "Removed default export of toolbox file, to make API surface and architecture more modular."
          ],
          "fixes": [
            "Import the tool you use directly, instead of using a default import. <span class=\"code-text\">import toolbox from '@elvia/elvis-toolbox';</span> becomes <span class=\"code-text\">import { throttle } from '@elvia/elvis-toolbox';</span>"
          ]
        }
      ]
    },
    {
      "date": "12.08.22",
      "version": "1.3.2",
      "changelog": [
        {
          "type": "patch",
          "changes": [
            "Added a check if the variable <span class=\"code-text\">window</span> exists when checking if localhost in warnDeprecatedProps to make SSR work. "
          ]
        }
      ]
    },
    {
      "date": "13.05.22",
      "version": "1.3.1",
      "changelog": [
        {
          "type": "patch",
          "changes": [
            "Changed the types of the deprecation function parameters to accommodate more functionality. "
          ]
        }
      ]
    },
    {
      "date": "27.04.22",
      "version": "1.3.0",
      "changelog": [
        {
          "type": "new_feature",
          "changes": [
            "Added helper function to show deprecation warnings when deprecated props are used in components. "
          ]
        }
      ]
    },
    {
      "date": "26.01.22",
      "version": "1.2.2",
      "changelog": [
        {
          "type": "patch",
          "changes": ["Updated dependencies."]
        }
      ]
    }
  ]
}
