Skip to content

Commit

Permalink
Komp 300 searchbaricon (#550)
Browse files Browse the repository at this point in the history
* Init commit.

* glemte å fjerne kommentert ut kode

* oppdaterte farge for unchecked broder

* dokumenterte en del

* La til litt mer dokumentasjon og finpusset litt.

* Fjernet en feil

* forandret basic kvib nevnelser til kartverkets-/Designesystem

* Bump @chakra-ui/react from 2.8.0 to 2.8.1 (#483)

* Bump @chakra-ui/react from 2.8.0 to 2.8.1

Bumps [@chakra-ui/react](https://github.com/chakra-ui/chakra-ui/tree/HEAD/packages/components/react) from 2.8.0 to 2.8.1.
- [Release notes](https://github.com/chakra-ui/chakra-ui/releases)
- [Changelog](https://github.com/chakra-ui/chakra-ui/blob/main/packages/components/react/CHANGELOG.md)
- [Commits](https://github.com/chakra-ui/chakra-ui/commits/@chakra-ui/react@2.8.1/packages/components/react)

---
updated-dependencies:
- dependency-name: "@chakra-ui/react"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* Lagt til changeset

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Bente Lien Nilsen <bente.lien.nilsen@kartverket.no>

* Endrer til riktige verdier for update-types (#516)

* Dependabot fix (#517)

* Endrer til riktige verdier for update-types

* Endrer struktur

* Bump @storybook/addon-actions from 7.4.1 to 7.4.5 (#499)

Bumps [@storybook/addon-actions](https://github.com/storybookjs/storybook/tree/HEAD/code/addons/actions) from 7.4.1 to 7.4.5.
- [Release notes](https://github.com/storybookjs/storybook/releases)
- [Changelog](https://github.com/storybookjs/storybook/blob/next/CHANGELOG.md)
- [Commits](https://github.com/storybookjs/storybook/commits/v7.4.5/code/addons/actions)

---
updated-dependencies:
- dependency-name: "@storybook/addon-actions"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Adrian Røstgård Flatner <42931448+adrianflatner@users.noreply.github.com>

* Bump the patch-minor-dependencies group with 18 updates (#518)

* Bump the patch-minor-dependencies group with 18 updates

Bumps the patch-minor-dependencies group with 18 updates:

| Package | From | To |
| --- | --- | --- |
| [turbo](https://github.com/vercel/turbo) | `1.10.13` | `1.10.14` |
| [@storybook/addon-a11y](https://github.com/storybookjs/storybook/tree/HEAD/code/addons/a11y) | `7.4.2` | `7.4.5` |
| [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core) | `7.22.11` | `7.23.0` |
| [@babel/preset-typescript](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-typescript) | `7.22.15` | `7.23.0` |
| [@storybook/addon-actions](https://github.com/storybookjs/storybook/tree/HEAD/code/addons/actions) | `7.4.1` | `7.4.5` |
| [@storybook/addon-essentials](https://github.com/storybookjs/storybook/tree/HEAD/code/addons/essentials) | `7.3.2` | `7.4.5` |
| [@storybook/addon-interactions](https://github.com/storybookjs/storybook/tree/HEAD/code/addons/interactions) | `7.3.2` | `7.4.5` |
| [@storybook/addon-links](https://github.com/storybookjs/storybook/tree/HEAD/code/addons/links) | `7.3.2` | `7.4.5` |
| [@storybook/cli](https://github.com/storybookjs/storybook/tree/HEAD/code/lib/cli) | `7.3.2` | `7.4.5` |
| [@storybook/react](https://github.com/storybookjs/storybook/tree/HEAD/code/renderers/react) | `7.3.2` | `7.4.5` |
| [@storybook/react-webpack5](https://github.com/storybookjs/storybook/tree/HEAD/code/frameworks/react-webpack5) | `7.3.2` | `7.4.5` |
| [@storybook/testing-library](https://github.com/storybookjs/testing-library) | `0.2.0` | `0.2.2` |
| [@types/react](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react) | `18.2.21` | `18.2.24` |
| [@types/react-dom](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react-dom) | `18.2.7` | `18.2.8` |
| [storybook](https://github.com/storybookjs/storybook/tree/HEAD/code/lib/cli) | `7.3.2` | `7.4.5` |
| [chakra-react-select](https://github.com/csandman/chakra-react-select) | `4.7.0` | `4.7.2` |
| [framer-motion](https://github.com/framer/motion) | `10.16.1` | `10.16.4` |
| [material-symbols](https://github.com/marella/material-symbols/tree/HEAD/material-symbols) | `0.5.5` | `0.13.0` |


Updates `turbo` from 1.10.13 to 1.10.14
- [Release notes](https://github.com/vercel/turbo/releases)
- [Changelog](https://github.com/vercel/turbo/blob/main/release.md)
- [Commits](vercel/turborepo@v1.10.13...v1.10.14)

Updates `@storybook/addon-a11y` from 7.4.2 to 7.4.5
- [Release notes](https://github.com/storybookjs/storybook/releases)
- [Changelog](https://github.com/storybookjs/storybook/blob/next/CHANGELOG.md)
- [Commits](https://github.com/storybookjs/storybook/commits/v7.4.5/code/addons/a11y)

Updates `@babel/core` from 7.22.11 to 7.23.0
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.23.0/packages/babel-core)

Updates `@babel/preset-typescript` from 7.22.15 to 7.23.0
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.23.0/packages/babel-preset-typescript)

Updates `@storybook/addon-actions` from 7.4.1 to 7.4.5
- [Release notes](https://github.com/storybookjs/storybook/releases)
- [Changelog](https://github.com/storybookjs/storybook/blob/next/CHANGELOG.md)
- [Commits](https://github.com/storybookjs/storybook/commits/v7.4.5/code/addons/actions)

Updates `@storybook/addon-essentials` from 7.3.2 to 7.4.5
- [Release notes](https://github.com/storybookjs/storybook/releases)
- [Changelog](https://github.com/storybookjs/storybook/blob/next/CHANGELOG.md)
- [Commits](https://github.com/storybookjs/storybook/commits/v7.4.5/code/addons/essentials)

Updates `@storybook/addon-interactions` from 7.3.2 to 7.4.5
- [Release notes](https://github.com/storybookjs/storybook/releases)
- [Changelog](https://github.com/storybookjs/storybook/blob/next/CHANGELOG.md)
- [Commits](https://github.com/storybookjs/storybook/commits/v7.4.5/code/addons/interactions)

Updates `@storybook/addon-links` from 7.3.2 to 7.4.5
- [Release notes](https://github.com/storybookjs/storybook/releases)
- [Changelog](https://github.com/storybookjs/storybook/blob/next/CHANGELOG.md)
- [Commits](https://github.com/storybookjs/storybook/commits/v7.4.5/code/addons/links)

Updates `@storybook/cli` from 7.3.2 to 7.4.5
- [Release notes](https://github.com/storybookjs/storybook/releases)
- [Changelog](https://github.com/storybookjs/storybook/blob/next/CHANGELOG.md)
- [Commits](https://github.com/storybookjs/storybook/commits/v7.4.5/code/lib/cli)

Updates `@storybook/react` from 7.3.2 to 7.4.5
- [Release notes](https://github.com/storybookjs/storybook/releases)
- [Changelog](https://github.com/storybookjs/storybook/blob/next/CHANGELOG.md)
- [Commits](https://github.com/storybookjs/storybook/commits/v7.4.5/code/renderers/react)

Updates `@storybook/react-webpack5` from 7.3.2 to 7.4.5
- [Release notes](https://github.com/storybookjs/storybook/releases)
- [Changelog](https://github.com/storybookjs/storybook/blob/next/CHANGELOG.md)
- [Commits](https://github.com/storybookjs/storybook/commits/v7.4.5/code/frameworks/react-webpack5)

Updates `@storybook/testing-library` from 0.2.0 to 0.2.2
- [Release notes](https://github.com/storybookjs/testing-library/releases)
- [Changelog](https://github.com/storybookjs/testing-library/blob/v0.2.2/CHANGELOG.md)
- [Commits](storybookjs/testing-library@v0.2.0...v0.2.2)

Updates `@types/react` from 18.2.21 to 18.2.24
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react)

Updates `@types/react-dom` from 18.2.7 to 18.2.8
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react-dom)

Updates `storybook` from 7.3.2 to 7.4.5
- [Release notes](https://github.com/storybookjs/storybook/releases)
- [Changelog](https://github.com/storybookjs/storybook/blob/next/CHANGELOG.md)
- [Commits](https://github.com/storybookjs/storybook/commits/v7.4.5/code/lib/cli)

Updates `chakra-react-select` from 4.7.0 to 4.7.2
- [Release notes](https://github.com/csandman/chakra-react-select/releases)
- [Commits](csandman/chakra-react-select@v4.7.0...v4.7.2)

Updates `framer-motion` from 10.16.1 to 10.16.4
- [Changelog](https://github.com/framer/motion/blob/main/CHANGELOG.md)
- [Commits](motiondivision/motion@v10.16.1...v10.16.4)

Updates `material-symbols` from 0.5.5 to 0.13.0
- [Release notes](https://github.com/marella/material-symbols/releases)
- [Commits](https://github.com/marella/material-symbols/commits/v0.13.0/material-symbols)

---
updated-dependencies:
- dependency-name: turbo
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: patch-minor-dependencies
- dependency-name: "@storybook/addon-a11y"
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: patch-minor-dependencies
- dependency-name: "@babel/core"
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: patch-minor-dependencies
- dependency-name: "@babel/preset-typescript"
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: patch-minor-dependencies
- dependency-name: "@storybook/addon-actions"
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: patch-minor-dependencies
- dependency-name: "@storybook/addon-essentials"
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: patch-minor-dependencies
- dependency-name: "@storybook/addon-interactions"
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: patch-minor-dependencies
- dependency-name: "@storybook/addon-links"
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: patch-minor-dependencies
- dependency-name: "@storybook/cli"
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: patch-minor-dependencies
- dependency-name: "@storybook/react"
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: patch-minor-dependencies
- dependency-name: "@storybook/react-webpack5"
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: patch-minor-dependencies
- dependency-name: "@storybook/testing-library"
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: patch-minor-dependencies
- dependency-name: "@types/react"
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: patch-minor-dependencies
- dependency-name: "@types/react-dom"
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: patch-minor-dependencies
- dependency-name: storybook
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: patch-minor-dependencies
- dependency-name: chakra-react-select
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: patch-minor-dependencies
- dependency-name: framer-motion
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: patch-minor-dependencies
- dependency-name: material-symbols
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: patch-minor-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>

* Legger til changeset

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Adrian Flatner <adrianrflatner@gmail.com>

* Bump the major-dependencies group with 6 updates (#519)

* Bump the major-dependencies group with 6 updates

Bumps the major-dependencies group with 6 updates:

| Package | From | To |
| --- | --- | --- |
| [prettier](https://github.com/prettier/prettier) | `2.8.8` | `3.0.3` |
| [chromatic](https://github.com/chromaui/chromatic-cli) | `6.24.1` | `7.2.0` |
| [@testing-library/jest-dom](https://github.com/testing-library/jest-dom) | `5.17.0` | `6.1.3` |
| [@testing-library/react](https://github.com/testing-library/react-testing-library) | `13.4.0` | `14.0.0` |
| [clsx](https://github.com/lukeed/clsx) | `1.2.1` | `2.0.0` |
| [tsup](https://github.com/egoist/tsup) | `6.6.3` | `7.2.0` |


Updates `prettier` from 2.8.8 to 3.0.3
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](prettier/prettier@2.8.8...3.0.3)

Updates `chromatic` from 6.24.1 to 7.2.0
- [Changelog](https://github.com/chromaui/chromatic-cli/blob/main/CHANGELOG.md)
- [Commits](chromaui/chromatic-cli@v6.24.1...v7.2.0)

Updates `@testing-library/jest-dom` from 5.17.0 to 6.1.3
- [Release notes](https://github.com/testing-library/jest-dom/releases)
- [Changelog](https://github.com/testing-library/jest-dom/blob/main/CHANGELOG.md)
- [Commits](testing-library/jest-dom@v5.17.0...v6.1.3)

Updates `@testing-library/react` from 13.4.0 to 14.0.0
- [Release notes](https://github.com/testing-library/react-testing-library/releases)
- [Changelog](https://github.com/testing-library/react-testing-library/blob/main/CHANGELOG.md)
- [Commits](testing-library/react-testing-library@v13.4.0...v14.0.0)

Updates `clsx` from 1.2.1 to 2.0.0
- [Release notes](https://github.com/lukeed/clsx/releases)
- [Commits](lukeed/clsx@v1.2.1...v2.0.0)

Updates `tsup` from 6.6.3 to 7.2.0
- [Release notes](https://github.com/egoist/tsup/releases)
- [Changelog](https://github.com/egoist/tsup/blob/dev/.releaserc.json)
- [Commits](egoist/tsup@v6.6.3...v7.2.0)

---
updated-dependencies:
- dependency-name: prettier
  dependency-type: direct:development
  update-type: version-update:semver-major
  dependency-group: major-dependencies
- dependency-name: chromatic
  dependency-type: direct:development
  update-type: version-update:semver-major
  dependency-group: major-dependencies
- dependency-name: "@testing-library/jest-dom"
  dependency-type: direct:development
  update-type: version-update:semver-major
  dependency-group: major-dependencies
- dependency-name: "@testing-library/react"
  dependency-type: direct:development
  update-type: version-update:semver-major
  dependency-group: major-dependencies
- dependency-name: clsx
  dependency-type: direct:development
  update-type: version-update:semver-major
  dependency-group: major-dependencies
- dependency-name: tsup
  dependency-type: direct:development
  update-type: version-update:semver-major
  dependency-group: major-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>

* Legger til changeset

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Adrian Røstgård Flatner <42931448+adrianflatner@users.noreply.github.com>
Co-authored-by: Adrian Flatner <adrianrflatner@gmail.com>

* Version Packages (#515)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* Endrer fra å bruke generisk github token til app token for å trigge flere workflows (#514)

* Legger til dokumentasjon for AlertDialog (#511)

* komp-307-symbols (#522)

* Legger til ny import for symbols og warning

* Legger til changeset

* Eksporterer MaterialSymbol

* Version Packages (#525)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* Bump postcss from 8.4.28 to 8.4.31 (#526)

* Bump postcss from 8.4.28 to 8.4.31

Bumps [postcss](https://github.com/postcss/postcss) from 8.4.28 to 8.4.31.
- [Release notes](https://github.com/postcss/postcss/releases)
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md)
- [Commits](postcss/postcss@8.4.28...8.4.31)

---
updated-dependencies:
- dependency-name: postcss
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

* Legger til changeset

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Adrian Flatner <adrianrflatner@gmail.com>

* Bump the patch-minor-dependencies group with 15 updates (#530)

* Bump the patch-minor-dependencies group with 15 updates

Bumps the patch-minor-dependencies group with 15 updates:

| Package | From | To |
| --- | --- | --- |
| [@fontsource-variable/mulish](https://github.com/fontsource/font-files/tree/HEAD/fonts/variable/mulish) | `5.0.9` | `5.0.13` |
| [@storybook/addon-a11y](https://github.com/storybookjs/storybook/tree/HEAD/code/addons/a11y) | `7.4.5` | `7.4.6` |
| [@storybook/addon-actions](https://github.com/storybookjs/storybook/tree/HEAD/code/addons/actions) | `7.4.5` | `7.4.6` |
| [@storybook/addon-essentials](https://github.com/storybookjs/storybook/tree/HEAD/code/addons/essentials) | `7.4.5` | `7.4.6` |
| [@storybook/addon-interactions](https://github.com/storybookjs/storybook/tree/HEAD/code/addons/interactions) | `7.4.5` | `7.4.6` |
| [@storybook/addon-links](https://github.com/storybookjs/storybook/tree/HEAD/code/addons/links) | `7.4.5` | `7.4.6` |
| [@storybook/cli](https://github.com/storybookjs/storybook/tree/HEAD/code/lib/cli) | `7.4.5` | `7.4.6` |
| [@storybook/react](https://github.com/storybookjs/storybook/tree/HEAD/code/renderers/react) | `7.4.5` | `7.4.6` |
| [@storybook/react-webpack5](https://github.com/storybookjs/storybook/tree/HEAD/code/frameworks/react-webpack5) | `7.4.5` | `7.4.6` |
| [@types/react](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react) | `18.2.24` | `18.2.25` |
| [@types/react-dom](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react-dom) | `18.2.8` | `18.2.10` |
| [chromatic](https://github.com/chromaui/chromatic-cli) | `7.2.0` | `7.2.2` |
| [storybook](https://github.com/storybookjs/storybook/tree/HEAD/code/lib/cli) | `7.4.5` | `7.4.6` |
| [@fontsource/mulish](https://github.com/fontsource/font-files/tree/HEAD/fonts/google/mulish) | `5.0.8` | `5.0.12` |
| [chakra-react-select](https://github.com/csandman/chakra-react-select) | `4.7.2` | `4.7.3` |


Updates `@fontsource-variable/mulish` from 5.0.9 to 5.0.13
- [Changelog](https://github.com/fontsource/font-files/blob/main/fonts/variable/mulish/CHANGELOG.md)
- [Commits](https://github.com/fontsource/font-files/commits/HEAD/fonts/variable/mulish)

Updates `@storybook/addon-a11y` from 7.4.5 to 7.4.6
- [Release notes](https://github.com/storybookjs/storybook/releases)
- [Changelog](https://github.com/storybookjs/storybook/blob/next/CHANGELOG.md)
- [Commits](https://github.com/storybookjs/storybook/commits/v7.4.6/code/addons/a11y)

Updates `@storybook/addon-actions` from 7.4.5 to 7.4.6
- [Release notes](https://github.com/storybookjs/storybook/releases)
- [Changelog](https://github.com/storybookjs/storybook/blob/next/CHANGELOG.md)
- [Commits](https://github.com/storybookjs/storybook/commits/v7.4.6/code/addons/actions)

Updates `@storybook/addon-essentials` from 7.4.5 to 7.4.6
- [Release notes](https://github.com/storybookjs/storybook/releases)
- [Changelog](https://github.com/storybookjs/storybook/blob/next/CHANGELOG.md)
- [Commits](https://github.com/storybookjs/storybook/commits/v7.4.6/code/addons/essentials)

Updates `@storybook/addon-interactions` from 7.4.5 to 7.4.6
- [Release notes](https://github.com/storybookjs/storybook/releases)
- [Changelog](https://github.com/storybookjs/storybook/blob/next/CHANGELOG.md)
- [Commits](https://github.com/storybookjs/storybook/commits/v7.4.6/code/addons/interactions)

Updates `@storybook/addon-links` from 7.4.5 to 7.4.6
- [Release notes](https://github.com/storybookjs/storybook/releases)
- [Changelog](https://github.com/storybookjs/storybook/blob/next/CHANGELOG.md)
- [Commits](https://github.com/storybookjs/storybook/commits/v7.4.6/code/addons/links)

Updates `@storybook/cli` from 7.4.5 to 7.4.6
- [Release notes](https://github.com/storybookjs/storybook/releases)
- [Changelog](https://github.com/storybookjs/storybook/blob/next/CHANGELOG.md)
- [Commits](https://github.com/storybookjs/storybook/commits/v7.4.6/code/lib/cli)

Updates `@storybook/react` from 7.4.5 to 7.4.6
- [Release notes](https://github.com/storybookjs/storybook/releases)
- [Changelog](https://github.com/storybookjs/storybook/blob/next/CHANGELOG.md)
- [Commits](https://github.com/storybookjs/storybook/commits/v7.4.6/code/renderers/react)

Updates `@storybook/react-webpack5` from 7.4.5 to 7.4.6
- [Release notes](https://github.com/storybookjs/storybook/releases)
- [Changelog](https://github.com/storybookjs/storybook/blob/next/CHANGELOG.md)
- [Commits](https://github.com/storybookjs/storybook/commits/v7.4.6/code/frameworks/react-webpack5)

Updates `@types/react` from 18.2.24 to 18.2.25
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react)

Updates `@types/react-dom` from 18.2.8 to 18.2.10
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react-dom)

Updates `chromatic` from 7.2.0 to 7.2.2
- [Release notes](https://github.com/chromaui/chromatic-cli/releases)
- [Changelog](https://github.com/chromaui/chromatic-cli/blob/main/CHANGELOG.md)
- [Commits](chromaui/chromatic-cli@v7.2.0...v7.2.2)

Updates `storybook` from 7.4.5 to 7.4.6
- [Release notes](https://github.com/storybookjs/storybook/releases)
- [Changelog](https://github.com/storybookjs/storybook/blob/next/CHANGELOG.md)
- [Commits](https://github.com/storybookjs/storybook/commits/v7.4.6/code/lib/cli)

Updates `@fontsource/mulish` from 5.0.8 to 5.0.12
- [Changelog](https://github.com/fontsource/font-files/blob/main/fonts/google/mulish/CHANGELOG.md)
- [Commits](https://github.com/fontsource/font-files/commits/HEAD/fonts/google/mulish)

Updates `chakra-react-select` from 4.7.2 to 4.7.3
- [Release notes](https://github.com/csandman/chakra-react-select/releases)
- [Commits](csandman/chakra-react-select@v4.7.2...v4.7.3)

---
updated-dependencies:
- dependency-name: "@fontsource-variable/mulish"
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: patch-minor-dependencies
- dependency-name: "@storybook/addon-a11y"
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: patch-minor-dependencies
- dependency-name: "@storybook/addon-actions"
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: patch-minor-dependencies
- dependency-name: "@storybook/addon-essentials"
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: patch-minor-dependencies
- dependency-name: "@storybook/addon-interactions"
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: patch-minor-dependencies
- dependency-name: "@storybook/addon-links"
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: patch-minor-dependencies
- dependency-name: "@storybook/cli"
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: patch-minor-dependencies
- dependency-name: "@storybook/react"
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: patch-minor-dependencies
- dependency-name: "@storybook/react-webpack5"
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: patch-minor-dependencies
- dependency-name: "@types/react"
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: patch-minor-dependencies
- dependency-name: "@types/react-dom"
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: patch-minor-dependencies
- dependency-name: chromatic
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: patch-minor-dependencies
- dependency-name: storybook
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: patch-minor-dependencies
- dependency-name: "@fontsource/mulish"
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: patch-minor-dependencies
- dependency-name: chakra-react-select
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: patch-minor-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>

* Legger til changeset

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Adrian Flatner <adrianrflatner@gmail.com>
Co-authored-by: Adrian Røstgård Flatner <42931448+adrianflatner@users.noreply.github.com>

* Legger til link til chromatic intro (#520)

* KOMP-257-aspectRatio (#473)

* Legger til dokumentasjon for aspectRatio

* Legger til navn til frame

* Sjekker om iframes lager problemer

* Fjerner iframes helt

* npm install

* Ci in build

* Disabling a11y

* Update AspectRatio.stories.tsx

Fjernet mellomrom fra title i story.

* Update AspectRatio.stories.tsx

* Update AspectRatio.stories.tsx

* Oppdaterer aspectRatio

* upps

* Create ApectRatio.mdx

* Delete apps/storybook/stories/components/layout/AspectRatio/AspectRatio.mdx

* Legger til gitconfig for å løse casingproblemer

---------

Co-authored-by: Bente Lien Nilsen <bente.lien.nilsen@kartverket.no>

* Version Packages (#531)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* Legger til ny logo (#532)

* Komp-290-playground (#534)

* Fjerner codesandbox

* Fjerner playground fra rekkefølge

* Bump the patch-minor-dependencies group with 5 updates

Bumps the patch-minor-dependencies group with 5 updates:

| Package | From | To |
| --- | --- | --- |
| [turbo](https://github.com/vercel/turbo) | `1.10.14` | `1.10.15` |
| [@fontsource-variable/mulish](https://github.com/fontsource/font-files/tree/HEAD/fonts/variable/mulish) | `5.0.13` | `5.0.14` |
| [@types/react-dom](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react-dom) | `18.2.10` | `18.2.11` |
| [chromatic](https://github.com/chromaui/chromatic-cli) | `7.2.2` | `7.2.3` |
| [@fontsource/mulish](https://github.com/fontsource/font-files/tree/HEAD/fonts/google/mulish) | `5.0.12` | `5.0.13` |


Updates `turbo` from 1.10.14 to 1.10.15
- [Release notes](https://github.com/vercel/turbo/releases)
- [Changelog](https://github.com/vercel/turbo/blob/main/release.md)
- [Commits](vercel/turborepo@v1.10.14...v1.10.15)

Updates `@fontsource-variable/mulish` from 5.0.13 to 5.0.14
- [Changelog](https://github.com/fontsource/font-files/blob/main/fonts/variable/mulish/CHANGELOG.md)
- [Commits](https://github.com/fontsource/font-files/commits/HEAD/fonts/variable/mulish)

Updates `@types/react-dom` from 18.2.10 to 18.2.11
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react-dom)

Updates `chromatic` from 7.2.2 to 7.2.3
- [Release notes](https://github.com/chromaui/chromatic-cli/releases)
- [Changelog](https://github.com/chromaui/chromatic-cli/blob/main/CHANGELOG.md)
- [Commits](chromaui/chromatic-cli@v7.2.2...v7.2.3)

Updates `@fontsource/mulish` from 5.0.12 to 5.0.13
- [Changelog](https://github.com/fontsource/font-files/blob/main/fonts/google/mulish/CHANGELOG.md)
- [Commits](https://github.com/fontsource/font-files/commits/HEAD/fonts/google/mulish)

---
updated-dependencies:
- dependency-name: turbo
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: patch-minor-dependencies
- dependency-name: "@fontsource-variable/mulish"
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: patch-minor-dependencies
- dependency-name: "@types/react-dom"
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: patch-minor-dependencies
- dependency-name: chromatic
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: patch-minor-dependencies
- dependency-name: "@fontsource/mulish"
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: patch-minor-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>

* Lagt til changeset for oppdatering

* Version Packages

* Legger til oppsett for kvib + remix (#544)

* disablet test, må fortsatt skrive end kjente feil

* La til alert for fargen

* QA

* komp-306-dependencies (#536)

* Fjerner ubrukte dependencies

* Fjerner interactions og legger til actions

* La til Ikon Knapp på Search. Fjernet Typo på IconButton Stories.

* La til Ikon Knapp på Search. Fjernet Typo på IconButton Stories.

* Added disabled state to IconButton.

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Sebastian Piotr Maro <marseb@kartverket.no>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Bente Lien Nilsen <bente.lien.nilsen@kartverket.no>
Co-authored-by: Adrian Røstgård Flatner <42931448+adrianflatner@users.noreply.github.com>
Co-authored-by: Adrian Flatner <adrianrflatner@gmail.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: kvib-workflow-manager[bot] <145980544+kvib-workflow-manager[bot]@users.noreply.github.com>
  • Loading branch information
9 people authored Oct 13, 2023
1 parent 21b75f3 commit 24c8f66
Show file tree
Hide file tree
Showing 5 changed files with 122 additions and 27 deletions.
5 changes: 5 additions & 0 deletions .changeset/lovely-donkeys-breathe.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@kvib/react": minor
---

Added Search IconButton to <Search/> Component.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export const IconButtonVariants: Story = {
<HStack>
<KvibIconButton {...args} aria-label="IconButton primary" variant="primary" />
<KvibIconButton {...args} aria-label="IconButton secondary" variant="secondary" />
<KvibIconButton {...args} aria-label="IconButton link" variant="link" />
<KvibIconButton {...args} aria-label="IconButton link" variant="tertiary" />
<KvibIconButton {...args} aria-label="IconButton ghost" variant="ghost" />
</HStack>
),
Expand Down
4 changes: 4 additions & 0 deletions apps/storybook/stories/components/search/search/Search.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,7 @@ import { Search } from "@kvib/react";

<Canvas of={SearchStories.Search} />
<Controls of={SearchStories.Search} />

## Search med Ikon knapp
<Canvas of={SearchStories.SearchIconLeft} />
<Canvas of={SearchStories.SearchIconRight} />
59 changes: 46 additions & 13 deletions apps/storybook/stories/components/search/search/Search.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,6 @@ const meta: Meta<typeof KvibSearch> = {
},
control: "text",
},
type: {
description: "Input type",
table: {
type: { summary: "search" },
defaultValue: { summary: "search" },
},
options: ["search"],
control: { type: "radio" },
},
size: {
description: "Input size",
table: {
Expand All @@ -49,6 +40,28 @@ const meta: Meta<typeof KvibSearch> = {
options: ["outline", "filled", "flushed", "unstyled"],
control: { type: "radio" },
},
leftSearchIcon: {
description: "Enables Search IconButton",
table: {
type: { summary: "boolean" },
},
control: "boolean",
},
rightSearchIcon: {
description: "Enables Search IconButton",
table: {
type: { summary: "boolean" },
},
control: "boolean",
},
colorScheme: {
description: "Change Icon color",
table: {
defaultValue: { summary: "green" },
},
options: ["gray", "red", "green", "blue"],
control: { type: "radio" },
},
isInvalid: {
description: "Toggles if input should be invalid",
table: {
Expand All @@ -67,15 +80,35 @@ const meta: Meta<typeof KvibSearch> = {
};

export default meta;
type FileUploadStory = StoryObj<typeof KvibSearch>;
type SearchStory = StoryObj<typeof KvibSearch>;

export const Search: SearchStory = {
args: {
placeholder: "Søk her...",
variant: "outline",
isDisabled: false,
},
render: (args) => <KvibSearch {...args} />,
};

export const SearchIconLeft: SearchStory = {
args: {
leftSearchIcon: true,
placeholder: "Søk her...",
variant: "outline",
isDisabled: false,
colorScheme: "blue",
},
render: (args) => <KvibSearch {...args} />,
};

export const Search: FileUploadStory = {
export const SearchIconRight: SearchStory = {
args: {
rightSearchIcon: true,
placeholder: "Søk her...",
type: "search",
variant: "outline",
isDisabled: false,
isInvalid: false,
colorScheme: "blue",
},
render: (args) => <KvibSearch {...args} />,
};
79 changes: 66 additions & 13 deletions packages/react/src/search/Search.tsx
Original file line number Diff line number Diff line change
@@ -1,18 +1,71 @@
import { Input as ChakraInput, InputProps as ChakraInputProps, forwardRef } from "@chakra-ui/react";
import {
Input as ChakraInput,
InputProps as ChakraInputProps,
forwardRef,
InputGroup as ChakraInputGroup,
InputLeftElement as ChakraInputLeftElement,
InputRightElement as ChakraInputRightElement,
} from "@chakra-ui/react";
import { IconButton } from "../button";

export const Search = forwardRef<ChakraInputProps, "input">(
({ size, variant, type = "search", isRequired, isInvalid, isDisabled, ...props }, ref) => {
export type SearchProps = Omit<ChakraInputProps, "isInvalid" | "isRequired" | "colorScheme"> & {
leftSearchIcon?: boolean;
rightSearchIcon?: boolean;
colorScheme?: "gray" | "red" | "green" | "blue" | undefined;
};

export const Search = forwardRef<SearchProps, "input">(
({ id, colorScheme, size, variant, type = "search", isDisabled, leftSearchIcon, rightSearchIcon, ...props }, ref) => {
return (
<ChakraInput
{...props}
ref={ref}
size={size}
type={type}
variant={variant}
isRequired={isRequired}
isInvalid={isInvalid}
isDisabled={isDisabled}
/>
<>
{leftSearchIcon ? (
<ChakraInputGroup>
<ChakraInputLeftElement>
<IconButton
colorScheme={colorScheme}
type={"submit"}
variant={"tertiary"}
aria-label={"search"}
icon={"search"}
isDisabled={isDisabled}
/>
</ChakraInputLeftElement>
<ChakraInput
{...props}
id={id}
ref={ref}
size={size}
type={type}
variant={variant}
isDisabled={isDisabled}
/>
</ChakraInputGroup>
) : rightSearchIcon ? (
<ChakraInputGroup>
<ChakraInputRightElement>
<IconButton
colorScheme={colorScheme}
type={"submit"}
variant={"tertiary"}
aria-label={"search"}
icon={"search"}
isDisabled={isDisabled}
/>
</ChakraInputRightElement>
<ChakraInput
{...props}
id={id}
ref={ref}
variant={variant}
size={size}
type={type}
isDisabled={isDisabled}
/>
</ChakraInputGroup>
) : (
<ChakraInput {...props} id={id} ref={ref} size={size} type={type} variant={variant} isDisabled={isDisabled} />
)}
</>
);
}
);

0 comments on commit 24c8f66

Please sign in to comment.