From 24c8f667a5775a53cec7869b377faf598043d1f8 Mon Sep 17 00:00:00 2001 From: FarAhm1 <46712165+FarAhm1@users.noreply.github.com> Date: Fri, 13 Oct 2023 10:52:29 +0200 Subject: [PATCH] Komp 300 searchbaricon (#550) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 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] * Lagt til changeset --------- Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Bente Lien Nilsen * 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] 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](https://github.com/vercel/turbo/compare/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](https://github.com/storybookjs/testing-library/compare/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](https://github.com/csandman/chakra-react-select/compare/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](https://github.com/framer/motion/compare/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] * Legger til changeset --------- Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Adrian Flatner * 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](https://github.com/prettier/prettier/compare/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](https://github.com/chromaui/chromatic-cli/compare/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](https://github.com/testing-library/jest-dom/compare/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](https://github.com/testing-library/react-testing-library/compare/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](https://github.com/lukeed/clsx/compare/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](https://github.com/egoist/tsup/compare/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] * Legger til changeset --------- Signed-off-by: dependabot[bot] 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 * Version Packages (#515) Co-authored-by: github-actions[bot] * 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] * 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](https://github.com/postcss/postcss/compare/8.4.28...8.4.31) --- updated-dependencies: - dependency-name: postcss dependency-type: indirect ... Signed-off-by: dependabot[bot] * Legger til changeset --------- Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Adrian Flatner * 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](https://github.com/chromaui/chromatic-cli/compare/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](https://github.com/csandman/chakra-react-select/compare/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] * Legger til changeset --------- Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Adrian Flatner 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 * Version Packages (#531) Co-authored-by: github-actions[bot] * 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](https://github.com/vercel/turbo/compare/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](https://github.com/chromaui/chromatic-cli/compare/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] * 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] Co-authored-by: Sebastian Piotr Maro Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Bente Lien Nilsen Co-authored-by: Adrian Røstgård Flatner <42931448+adrianflatner@users.noreply.github.com> Co-authored-by: Adrian Flatner Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] Co-authored-by: kvib-workflow-manager[bot] <145980544+kvib-workflow-manager[bot]@users.noreply.github.com> --- .changeset/lovely-donkeys-breathe.md | 5 ++ .../icon-button/IconButton.stories.tsx | 2 +- .../components/search/search/Search.mdx | 4 + .../search/search/Search.stories.tsx | 59 +++++++++++--- packages/react/src/search/Search.tsx | 79 ++++++++++++++++--- 5 files changed, 122 insertions(+), 27 deletions(-) create mode 100644 .changeset/lovely-donkeys-breathe.md diff --git a/.changeset/lovely-donkeys-breathe.md b/.changeset/lovely-donkeys-breathe.md new file mode 100644 index 0000000000..62443ad088 --- /dev/null +++ b/.changeset/lovely-donkeys-breathe.md @@ -0,0 +1,5 @@ +--- +"@kvib/react": minor +--- + +Added Search IconButton to Component. diff --git a/apps/storybook/stories/components/icon-button/IconButton.stories.tsx b/apps/storybook/stories/components/icon-button/IconButton.stories.tsx index 76bf475e5f..f4dd50e822 100644 --- a/apps/storybook/stories/components/icon-button/IconButton.stories.tsx +++ b/apps/storybook/stories/components/icon-button/IconButton.stories.tsx @@ -94,7 +94,7 @@ export const IconButtonVariants: Story = { - + ), diff --git a/apps/storybook/stories/components/search/search/Search.mdx b/apps/storybook/stories/components/search/search/Search.mdx index eea0775d59..454e930127 100644 --- a/apps/storybook/stories/components/search/search/Search.mdx +++ b/apps/storybook/stories/components/search/search/Search.mdx @@ -24,3 +24,7 @@ import { Search } from "@kvib/react"; + +## Search med Ikon knapp + + \ No newline at end of file diff --git a/apps/storybook/stories/components/search/search/Search.stories.tsx b/apps/storybook/stories/components/search/search/Search.stories.tsx index bf8ecd6380..6cd956d2a7 100644 --- a/apps/storybook/stories/components/search/search/Search.stories.tsx +++ b/apps/storybook/stories/components/search/search/Search.stories.tsx @@ -22,15 +22,6 @@ const meta: Meta = { }, control: "text", }, - type: { - description: "Input type", - table: { - type: { summary: "search" }, - defaultValue: { summary: "search" }, - }, - options: ["search"], - control: { type: "radio" }, - }, size: { description: "Input size", table: { @@ -49,6 +40,28 @@ const meta: Meta = { 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: { @@ -67,15 +80,35 @@ const meta: Meta = { }; export default meta; -type FileUploadStory = StoryObj; +type SearchStory = StoryObj; + +export const Search: SearchStory = { + args: { + placeholder: "Søk her...", + variant: "outline", + isDisabled: false, + }, + render: (args) => , +}; + +export const SearchIconLeft: SearchStory = { + args: { + leftSearchIcon: true, + placeholder: "Søk her...", + variant: "outline", + isDisabled: false, + colorScheme: "blue", + }, + render: (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) => , }; diff --git a/packages/react/src/search/Search.tsx b/packages/react/src/search/Search.tsx index fd634a683e..92400f5b11 100644 --- a/packages/react/src/search/Search.tsx +++ b/packages/react/src/search/Search.tsx @@ -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( - ({ size, variant, type = "search", isRequired, isInvalid, isDisabled, ...props }, ref) => { +export type SearchProps = Omit & { + leftSearchIcon?: boolean; + rightSearchIcon?: boolean; + colorScheme?: "gray" | "red" | "green" | "blue" | undefined; +}; + +export const Search = forwardRef( + ({ id, colorScheme, size, variant, type = "search", isDisabled, leftSearchIcon, rightSearchIcon, ...props }, ref) => { return ( - + <> + {leftSearchIcon ? ( + + + + + + + ) : rightSearchIcon ? ( + + + + + + + ) : ( + + )} + ); } );