diff --git a/.eslintrc.js b/.eslintrc.js deleted file mode 100644 index 6fa6227357..0000000000 --- a/.eslintrc.js +++ /dev/null @@ -1,7 +0,0 @@ -module.exports = { - extends: "./packages/eslint-config-ndla/index.js", - rules: { - "import/no-extraneous-dependencies": 0, - }, - ignorePatterns: ["packages/styled-system"], -}; diff --git a/.gitignore b/.gitignore index a59487da22..60c8336299 100644 --- a/.gitignore +++ b/.gitignore @@ -22,3 +22,6 @@ packages/*/.vscode .yarn/* .vercel styled-system/* + +.nx/cache +.nx/workspace-data \ No newline at end of file diff --git a/.nxignore b/.nxignore new file mode 100644 index 0000000000..9e3ac56b47 --- /dev/null +++ b/.nxignore @@ -0,0 +1,3 @@ +*.stories.tsx +*-test.ts +*-test.tsx diff --git a/.prettierignore b/.prettierignore index f25dc8fcfb..e95ee9542d 100644 --- a/.prettierignore +++ b/.prettierignore @@ -10,3 +10,6 @@ packages/**/.scss .idea/ yarn.lock packages/styled-system/**/* + +/.nx/cache +/.nx/workspace-data \ No newline at end of file diff --git a/.storybook/main.ts b/.storybook/main.ts index ecd652faab..2b393ab7a7 100644 --- a/.storybook/main.ts +++ b/.storybook/main.ts @@ -6,7 +6,7 @@ * */ -import { StorybookConfig } from "@storybook/react-vite"; +import type { StorybookConfig } from "@storybook/react-vite"; const config: StorybookConfig = { stories: ["../packages/**/*.stories.@(tsx|jsx)", "../stories/**/*.stories.@(tsx|jsx)"], @@ -23,33 +23,6 @@ const config: StorybookConfig = { "@storybook/addon-measure", "@storybook/addon-outline", ], - core: { - builder: "@storybook/builder-vite", - }, - viteFinal: async (config) => { - // Storybook imports these as CJS modules by default, but Vite wants them to be ESM. - // By importing them dynamically we can ensure they are ESM. - // TODO: Update this when Storybook no longer uses these as CJS. - const { mergeConfig } = await import("vite"); - const react = await import("@vitejs/plugin-react"); - const tsconfigPaths = await import("vite-tsconfig-paths"); - return mergeConfig(config, { - plugins: [ - tsconfigPaths.default({ root: "../" }), - react.default({ - babel: { - overrides: [ - { - exclude: - /primitives|preset-panda|styled-system|ndla-icons|ndla-ui|audio-search|image-search|video-search|util|error-reporter|tracker|article-converter/, - plugins: [["@emotion", { autoLabel: "always" }]], - }, - ], - }, - }), - ], - }); - }, typescript: { reactDocgen: "react-docgen-typescript", // uncomment this for quicker HMR during dev. diff --git a/.storybook/preview.tsx b/.storybook/preview.tsx index 9c02b2f4d0..63e218bd79 100644 --- a/.storybook/preview.tsx +++ b/.storybook/preview.tsx @@ -6,12 +6,11 @@ * */ -import { i18nInstance } from "@ndla/ui"; -import { Preview } from "@storybook/react"; -import { HelmetProvider } from "react-helmet-async"; import { I18nextProvider } from "react-i18next"; import { BrowserRouter } from "react-router-dom"; import { DocsPage, DocsContainer } from "@storybook/addon-docs"; +import type { Preview } from "@storybook/react"; +import { i18nInstance } from "@ndla/ui"; import "./styles.css"; const viewports = { @@ -228,9 +227,7 @@ const preview: Preview = { (Story) => ( - - - + ), diff --git a/README.md b/README.md index dc126199db..1457e4a796 100644 --- a/README.md +++ b/README.md @@ -99,7 +99,7 @@ As mentioned on https://designmanual.ndla.no/?path=/story/components--icons, new - Sizing is written in full (link-m-line = LinkMediumLine, arrow-up-s-line = ArrowUpShortLine) - Some icons have several variants, indicated by numbers. Since we won't be using more than one such variant, the number is omitted -Icons are downloaded and placed in the best matching sub-folder in `frontend-packages/packages/ndla-icons/svg/`. Edit the svg and add license information matching the other svg files. +Icons are downloaded and placed in the best matching sub-folder in `frontend-packages/packages/icons/svg/`. Edit the svg and add license information matching the other svg files. ### Generate typescript component file diff --git a/babel.config.js b/babel.config.js index 6c9802ce35..1dfef1d455 100644 --- a/babel.config.js +++ b/babel.config.js @@ -12,13 +12,6 @@ module.exports = { "@babel/preset-typescript", ["@babel/preset-react", { runtime: "automatic" }], ], - overrides: [ - { - exclude: - /primitives|preset-panda|styled-system|ndla-icons|ndla-ui|audio-search|image-search|video-search|util|error-reporter|tracker|article-converter/, - plugins: [["@emotion", { autoLabel: "always" }]], - }, - ], plugins: [], env: { test: { diff --git a/dummydata/index.js b/dummydata/index.js deleted file mode 100644 index a50c61b4d3..0000000000 --- a/dummydata/index.js +++ /dev/null @@ -1,4 +0,0 @@ -import { firstBrightcoveList, secondBrightcoveList } from "./mockBrightcove"; -import { mockTypeahead } from "./mockTypeahead"; - -export { firstBrightcoveList, secondBrightcoveList, mockTypeahead }; diff --git a/dummydata/mockBrightcove.js b/dummydata/mockBrightcove.ts similarity index 100% rename from dummydata/mockBrightcove.js rename to dummydata/mockBrightcove.ts diff --git a/dummydata/mockTypeahead.js b/dummydata/mockTypeahead.js deleted file mode 100644 index daa4df4bbf..0000000000 --- a/dummydata/mockTypeahead.js +++ /dev/null @@ -1,362 +0,0 @@ -import { uuid } from "@ndla/util"; - -export const mockTypeahead = [ - { - title: "Albania", - description: - "Halfvarsson legger seg flat: – Det ble ingen bra greie ut av det : – Det ble ingen bra greie ut av de. Halfvarsson legger seg flat: – Det ble ingen bra greie ut av det : – Det ble ingen bra greie ut av de", - image: "https://placeimg.com/100/200/nature", - alt: "Alt description", - id: uuid(), - }, - { - title: "Andorra", - description: "Lorem ipsum", - image: "https://placeimg.com/200/100/nature", - alt: "Alt description", - id: uuid(), - }, - { - title: "Armenia", - description: "Lorem ipsum", - image: "https://placeimg.com/100/100/nature", - alt: "Alt description", - id: uuid(), - }, - { - title: "Austria", - description: "Lorem ipsum", - image: "https://placeimg.com/100/100/nature", - alt: "Alt description", - id: uuid(), - }, - { - title: "Azerbaijan", - description: "Lorem ipsum", - image: "https://placeimg.com/100/100/nature", - alt: "Alt description", - id: uuid(), - }, - { - title: "Belarus", - description: "Lorem ipsum", - image: "https://placeimg.com/100/100/nature", - alt: "Alt description", - id: uuid(), - }, - { - title: "Belgium", - description: "Lorem ipsum", - image: "https://placeimg.com/100/100/nature", - alt: "Alt description", - id: uuid(), - }, - { - title: "Bosnia and Herzegovina", - description: "Lorem ipsum", - image: "https://placeimg.com/100/100/nature", - alt: "Alt description", - id: uuid(), - }, - { - title: "Bulgaria", - description: "Lorem ipsum", - image: "https://placeimg.com/100/100/nature", - alt: "Alt description", - id: uuid(), - }, - { - title: "Croatia", - description: "Lorem ipsum", - image: "https://placeimg.com/100/100/nature", - alt: "Alt description", - id: uuid(), - }, - { - title: "Czech Republic", - description: "Lorem ipsum", - image: "https://placeimg.com/100/100/nature", - alt: "Alt description", - id: uuid(), - }, - { - title: "Cyprus", - description: "Lorem ipsum", - image: "https://placeimg.com/100/100/nature", - alt: "Alt description", - id: uuid(), - }, - { - title: "Denmark", - description: "Lorem ipsum", - image: "https://placeimg.com/100/100/nature", - alt: "Alt description", - id: uuid(), - }, - { - title: "Estonia", - description: "Lorem ipsum", - image: "https://placeimg.com/100/100/nature", - alt: "Alt description", - id: uuid(), - }, - { - title: "Finland", - description: "Lorem ipsum", - image: "https://placeimg.com/100/100/nature", - alt: "Alt description", - id: uuid(), - }, - { - title: "France", - description: "Lorem ipsum", - image: "https://placeimg.com/100/100/nature", - alt: "Alt description", - id: uuid(), - }, - { - title: "Georgia", - description: "Lorem ipsum", - image: "https://placeimg.com/100/100/nature", - alt: "Alt description", - id: uuid(), - }, - { - title: "Germany", - description: "Lorem ipsum", - image: "https://placeimg.com/100/100/nature", - alt: "Alt description", - id: uuid(), - }, - { - title: "Greece", - description: "Lorem ipsum", - image: "https://placeimg.com/100/100/nature", - alt: "Alt description", - id: uuid(), - }, - { - title: "Hungary", - description: "Lorem ipsum", - image: "https://placeimg.com/100/100/nature", - alt: "Alt description", - id: uuid(), - }, - { - title: "Iceland", - description: "Lorem ipsum", - image: "https://placeimg.com/100/100/nature", - alt: "Alt description", - id: uuid(), - }, - { - title: "Ireland", - description: "Lorem ipsum", - image: "https://placeimg.com/100/100/nature", - alt: "Alt description", - id: uuid(), - }, - { - title: "Italy", - description: "Lorem ipsum", - image: "https://placeimg.com/100/100/nature", - alt: "Alt description", - id: uuid(), - }, - { - title: "Kazakhstan", - description: "Lorem ipsum", - image: "https://placeimg.com/100/100/nature", - alt: "Alt description", - id: uuid(), - }, - { - title: "Kosovo", - description: "Lorem ipsum", - image: "https://placeimg.com/100/100/nature", - alt: "Alt description", - id: uuid(), - }, - { - title: "Latvia", - description: "Lorem ipsum", - image: "https://placeimg.com/100/100/nature", - alt: "Alt description", - id: uuid(), - }, - { - title: "Liechtenstein", - description: "Lorem ipsum", - image: "https://placeimg.com/100/100/nature", - alt: "Alt description", - id: uuid(), - }, - { - title: "Lithuania", - description: "Lorem ipsum", - image: "https://placeimg.com/100/100/nature", - alt: "Alt description", - id: uuid(), - }, - { - title: "Luxembourg", - description: "Lorem ipsum", - image: "https://placeimg.com/100/100/nature", - alt: "Alt description", - id: uuid(), - }, - { - title: "Macedonia", - description: "Lorem ipsum", - image: "https://placeimg.com/100/100/nature", - alt: "Alt description", - id: uuid(), - }, - { - title: "Malta", - description: "Lorem ipsum", - image: "https://placeimg.com/100/100/nature", - alt: "Alt description", - id: uuid(), - }, - { - title: "Moldova", - description: "Lorem ipsum", - image: "https://placeimg.com/100/100/nature", - alt: "Alt description", - id: uuid(), - }, - { - title: "Monaco", - description: "Lorem ipsum", - image: "https://placeimg.com/100/100/nature", - alt: "Alt description", - id: uuid(), - }, - { - title: "Montenegro", - description: "Lorem ipsum", - image: "https://placeimg.com/100/100/nature", - alt: "Alt description", - id: uuid(), - }, - { - title: "Netherlands", - description: "Lorem ipsum", - image: "https://placeimg.com/100/100/nature", - alt: "Alt description", - id: uuid(), - }, - { - title: "Norway", - description: "Lorem ipsum", - image: "https://placeimg.com/100/100/nature", - alt: "Alt description", - id: uuid(), - }, - { - title: "Poland", - description: "Lorem ipsum", - image: "https://placeimg.com/100/100/nature", - alt: "Alt description", - id: uuid(), - }, - { - title: "Portugal", - description: "Lorem ipsum", - image: "https://placeimg.com/100/100/nature", - alt: "Alt description", - id: uuid(), - }, - { - title: "Romania", - description: "Lorem ipsum", - image: "https://placeimg.com/100/100/nature", - alt: "Alt description", - id: uuid(), - }, - { - title: "Russia", - description: "Lorem ipsum", - image: "https://placeimg.com/100/100/nature", - alt: "Alt description", - id: uuid(), - }, - { - title: "San Marino", - description: "Lorem ipsum", - image: "https://placeimg.com/100/100/nature", - alt: "Alt description", - id: uuid(), - }, - { - title: "Serbia", - description: "Lorem ipsum", - image: "https://placeimg.com/100/100/nature", - alt: "Alt description", - id: uuid(), - }, - { - title: "Slovakia", - description: "Lorem ipsum", - image: "https://placeimg.com/100/100/nature", - alt: "Alt description", - id: uuid(), - }, - { - title: "Slovenia", - description: "Lorem ipsum", - image: "https://placeimg.com/100/100/nature", - alt: "Alt description", - id: uuid(), - }, - { - title: "Spain", - description: "Lorem ipsum", - image: "https://placeimg.com/100/100/nature", - alt: "Alt description", - id: uuid(), - }, - { - title: "Sweden", - description: "Lorem ipsum", - image: "https://placeimg.com/100/100/nature", - alt: "Alt description", - id: uuid(), - }, - { - title: "Switzerland", - description: "Lorem ipsum", - image: "https://placeimg.com/100/100/nature", - alt: "Alt description", - id: uuid(), - }, - { - title: "Turkey", - description: "Lorem ipsum", - image: "https://placeimg.com/100/100/nature", - alt: "Alt description", - id: uuid(), - }, - { - title: "Ukraine", - description: "Lorem ipsum", - image: "https://placeimg.com/100/100/nature", - alt: "Alt description", - id: uuid(), - }, - { - title: "United Kingdom (UK)", - description: "Lorem ipsum", - image: "https://placeimg.com/100/100/nature", - alt: "Alt description", - id: uuid(), - }, - { - title: "Vatican City", - description: "Lorem ipsum", - image: "https://placeimg.com/100/100/nature", - alt: "Alt description", - id: uuid(), - }, -]; diff --git a/packages/eslint-config-ndla/index.js b/eslint.config.mjs similarity index 53% rename from packages/eslint-config-ndla/index.js rename to eslint.config.mjs index f5d24b4809..9c5474ef7f 100644 --- a/packages/eslint-config-ndla/index.js +++ b/eslint.config.mjs @@ -1,11 +1,10 @@ /** - * Copyright (c) 2016-present, NDLA. + * Copyright (c) 2024-present, NDLA. * * This source code is licensed under the GPLv3 license found in the * LICENSE file in the root directory of this source tree. * */ +import config from "./packages/eslint-config-ndla/index.mjs"; -module.exports = { - extends: ["./base"].map(require.resolve), -}; +export default config; diff --git a/jest.config.js b/jest.config.js index ec1878f63b..ebb356467f 100644 --- a/jest.config.js +++ b/jest.config.js @@ -1,17 +1,28 @@ +/** + * Copyright (c) 2024-present, NDLA. + * + * This source code is licensed under the GPLv3 license found in the + * LICENSE file in the root directory of this source tree. + * + */ + module.exports = { testEnvironment: "jsdom", transform: { "^.+\\.(js|jsx)$": "babel-jest", // Use ts-jest for typescript tests: https://kulshekhar.github.io/ts-jest/user/babel7-or-ts#no-type-checking - "^.+\\.(ts|tsx)$": "ts-jest", + "^.+\\.(ts|tsx)$": [ + "ts-jest", + { + useESM: true, + isolatedModules: true, + }, + ], }, moduleNameMapper: { // @ndla/styled-system has a different structure from our other packages "@ndla/styled-system/(.+)$": "packages/styled-system/src/$1", - // Fix for ndla-icons. Should be changed 'packages/$1/src/$2' when ndla-icons folder is renamed to icons - "@ndla/(.+)/(.+)$": "packages/ndla-$1/src/$2", "@ndla/(.+)$": ["packages/$1/src", "packages/ndla-$1/src"], }, testRegex: "/packages/.*/src/.*__tests__/.*-test.(js|jsx|ts|tsx)$", - snapshotSerializers: ["@emotion/jest/serializer"], }; diff --git a/nx.json b/nx.json index 583034314b..124eb9c83b 100644 --- a/nx.json +++ b/nx.json @@ -1,21 +1,21 @@ { "$schema": "./node_modules/nx/schemas/nx-schema.json", - "tasksRunnerOptions": { - "default": { - "runner": "nx/tasks-runners/default", - "options": { - "cacheableOperations": ["build", "prepublish"] - } - } - }, "targetDefaults": { "build": { "dependsOn": ["^build"], - "outputs": ["{projectRoot}/lib/*.js", "{projectRoot}/es/*.js"] + "outputs": ["{projectRoot}/lib/*.js", "{projectRoot}/es/*.js"], + "cache": true }, "prepublish": { "dependsOn": ["^prepublish"], - "outputs": ["{projectRoot}/lib/*.d.ts", "{projectRoot}/dist/*.css"] + "inputs": [ + "{workspaceRoot}/tsconfig.json", + "{workspaceRoot}/tsconfig.build.sjon", + "{projectRoot}/*", + "{projectRoot}/src/**/*" + ], + "outputs": ["{projectRoot}/lib/*.d.ts", "{projectRoot}/dist/*.css", "{projectRoot}/dist/*"], + "cache": true } }, "defaultBase": "master", diff --git a/package.json b/package.json index 92c4f01100..fd06e6df94 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "build": "nx run-many --target=build", "build:types": "nx run-many --target=prepublish", "lint": "yarn format-check && yarn lint-es", - "lint-es": "eslint --cache --ext .js,.jsx,.ts,.tsx --max-warnings=0 ./packages --ignore-path .gitignore", + "lint-es": "eslint --cache --max-warnings=0 ./packages", "lint:fix": "yarn lint-es --fix", "format": "prettier '**/*(*.js|*.jsx|*.md|*.ts|*.tsx)' --write", "format-check": "prettier '**/*(*.js|*.jsx|*.md|*.ts|*.tsx)' --check", @@ -49,64 +49,54 @@ "@babel/preset-env": "^7.26.0", "@babel/preset-react": "^7.25.9", "@babel/preset-typescript": "^7.26.0", - "@emotion/babel-plugin": "^11.12.0", - "@emotion/jest": "^11.13.0", - "@emotion/react": "^11.13.3", - "@emotion/styled": "^11.13.0", "@fontsource/source-code-pro": "^4.5.9", "@fontsource/source-sans-pro": "^4.5.9", "@fontsource/source-serif-pro": "^4.5.7", "@ndla/types-backend": "^0.2.86", - "@pandacss/dev": "^0.46.0", - "@storybook/addon-a11y": "^8.4.0", - "@storybook/addon-docs": "^8.4.0", - "@storybook/addon-essentials": "^8.4.0", - "@storybook/addon-links": "^8.4.0", - "@storybook/builder-vite": "^8.4.0", - "@storybook/manager-api": "^8.4.0", - "@storybook/react": "^8.4.0", - "@storybook/react-vite": "^8.4.0", - "@storybook/theming": "^8.4.0", + "@pandacss/dev": "^0.48.0", + "@storybook/addon-a11y": "^8.4.7", + "@storybook/addon-docs": "^8.4.7", + "@storybook/addon-essentials": "^8.4.7", + "@storybook/addon-links": "^8.4.7", + "@storybook/react-vite": "^8.4.7", "@svgr/core": "^8.1.0", "@svgr/plugin-jsx": "^8.1.0", "@svgr/plugin-prettier": "^8.1.0", "@svgr/plugin-svgo": "^8.1.0", - "@testing-library/jest-dom": "^6.1.5", - "@testing-library/react": "14.1.2", + "@testing-library/dom": "^10.4.0", + "@testing-library/jest-dom": "^6.6.3", + "@testing-library/react": "16.1.0", "@types/htmlparser2": "^3.10.3", - "@types/jest": "^29.5.10", + "@types/jest": "^29.5.14", "@types/lodash.throttle": "^4.1.9", "@types/node": "^20.12.12", - "@types/react": "^18.3.2", - "@types/react-dom": "^18.3.0", - "@vitejs/plugin-react": "^4.3.3", + "@types/react": "^19.0.0", + "@types/react-dom": "^19.0.1", + "@vitejs/plugin-react": "^4.3.4", "babel-jest": "^29.7.0", "chalk": "^2.4.2", "chokidar": "^3.5.3", "concurrently": "^9.0.1", "cross-env": "^7.0.3", "cross-spawn": "^7.0.3", - "eslint": "^8.57.0", + "eslint": "^9.15.0", "i18next": "^23.11.5", "jest": "^29.7.0", "jest-environment-jsdom": "^29.7.0", - "lerna": "^7.1.4", - "nx": "16.5.3", + "lerna": "^8.1.9", + "nx": "20.1.4", "postcss": "^8.4.22", "prettier": "^3.1.0", - "prismjs": "^1.29.0", - "react": "^18.3.1", - "react-device-detect": "^2.2.3", - "react-dom": "^18.3.1", - "react-helmet-async": "^1.3.0", + "react": "^19.0.0", + "react-dom": "^19.0.0", "react-i18next": "^14.1.1", "react-router-dom": "^6.3.0", - "serve": "^14.2.3", - "storybook": "^8.4.0", - "ts-jest": "^29.1.1", - "typescript": "^5.6.3", - "vite": "^5.4.10", - "vite-tsconfig-paths": "^5.0.1" + "serve": "^14.2.4", + "storybook": "^8.4.7", + "ts-jest": "^29.2.5", + "typescript": "^5.7.2", + "typescript-eslint": "^8.15.0", + "vite": "^6.0.2" }, "packageManager": "yarn@4.1.0" } diff --git a/packages/article-converter/package.json b/packages/article-converter/package.json index 8fab1890a9..05b407e4e8 100644 --- a/packages/article-converter/package.json +++ b/packages/article-converter/package.json @@ -1,6 +1,6 @@ { "name": "@ndla/article-converter", - "version": "10.0.72-alpha.0", + "version": "10.0.81-alpha.0", "description": "Transforms NDLA articles into extended html versions", "license": "GPL-3.0", "main": "lib/index.js", @@ -28,12 +28,12 @@ ], "devDependencies": { "@ndla/types-backend": "^0.2.86", - "@ndla/types-embed": "^5.0.4-alpha.0" + "@ndla/types-embed": "^5.0.5-alpha.0" }, "dependencies": { "@ndla/primitives": "workspace:^", - "@ndla/ui": "^56.0.69-alpha.0", - "html-react-parser": "^5.1.8" + "@ndla/ui": "^56.0.78-alpha.0", + "html-react-parser": "^5.1.19" }, "peerDependencies": { "i18next": ">= 23.11.5", diff --git a/packages/article-converter/src/extractEmbedMeta.ts b/packages/article-converter/src/extractEmbedMeta.ts index d581a38e31..93e72302e4 100644 --- a/packages/article-converter/src/extractEmbedMeta.ts +++ b/packages/article-converter/src/extractEmbedMeta.ts @@ -7,7 +7,7 @@ */ import parse from "html-react-parser"; -import { EmbedMetaData } from "@ndla/types-embed"; +import { type EmbedMetaData } from "@ndla/types-embed"; const extractEmbedMeta = (embed: string): EmbedMetaData | undefined => { const node = parse(embed); diff --git a/packages/article-converter/src/plugins/anchorPlugin.tsx b/packages/article-converter/src/plugins/anchorPlugin.tsx index 0941bfeb4f..3602d35bf8 100644 --- a/packages/article-converter/src/plugins/anchorPlugin.tsx +++ b/packages/article-converter/src/plugins/anchorPlugin.tsx @@ -6,10 +6,10 @@ * */ -import { DOMNode, attributesToProps, domToReact } from "html-react-parser"; +import { type DOMNode, attributesToProps, domToReact } from "html-react-parser"; import { SafeLink } from "@ndla/safelink"; import { getPossiblyRelativeUrl } from "@ndla/ui"; -import { PluginType } from "./types"; +import { type PluginType } from "./types"; export const anchorPlugin: PluginType = (node, opts, { path }) => { const props = attributesToProps(node.attribs); diff --git a/packages/article-converter/src/plugins/asidePlugin.tsx b/packages/article-converter/src/plugins/asidePlugin.tsx index 82105487bb..4f7fcfada7 100644 --- a/packages/article-converter/src/plugins/asidePlugin.tsx +++ b/packages/article-converter/src/plugins/asidePlugin.tsx @@ -6,9 +6,9 @@ * */ -import { DOMNode, domToReact } from "html-react-parser"; +import { type DOMNode, domToReact } from "html-react-parser"; import { FactBox } from "@ndla/ui"; -import { PluginType } from "./types"; +import { type PluginType } from "./types"; export const asidePlugin: PluginType = (node, opts) => { if (node.attribs["data-type"] === "factAside") { return {domToReact(node.children as DOMNode[], opts)}; diff --git a/packages/article-converter/src/plugins/blockquotePlugin.tsx b/packages/article-converter/src/plugins/blockquotePlugin.tsx index c7f3b57bbc..aecef66301 100644 --- a/packages/article-converter/src/plugins/blockquotePlugin.tsx +++ b/packages/article-converter/src/plugins/blockquotePlugin.tsx @@ -6,9 +6,9 @@ * */ -import { DOMNode, attributesToProps, domToReact } from "html-react-parser"; -import { ContentTypeBlockQuote, ContentTypeBlockQuoteVariant } from "@ndla/ui"; -import { PluginType } from "./types"; +import { type DOMNode, attributesToProps, domToReact } from "html-react-parser"; +import { ContentTypeBlockQuote, type ContentTypeBlockQuoteVariant } from "@ndla/ui"; +import { type PluginType } from "./types"; export const blockquotePlugin: PluginType = (node, opts, { contentType }) => { const { "data-variant": variant, ...props } = attributesToProps(node.attribs); diff --git a/packages/article-converter/src/plugins/copyParagraphPlugin.tsx b/packages/article-converter/src/plugins/copyParagraphPlugin.tsx index 9fd9022857..148f324e09 100644 --- a/packages/article-converter/src/plugins/copyParagraphPlugin.tsx +++ b/packages/article-converter/src/plugins/copyParagraphPlugin.tsx @@ -6,9 +6,9 @@ * */ -import { DOMNode, Element, domToReact } from "html-react-parser"; +import { type DOMNode, Element, domToReact } from "html-react-parser"; import { CopyParagraphButton } from "@ndla/ui"; -import { PluginType } from "./types"; +import { type PluginType } from "./types"; export const copyParagraphPlugin: PluginType = (node, converterOpts, opts) => { const parent = node.parent as Element | undefined; if ( diff --git a/packages/article-converter/src/plugins/detailsPlugin.tsx b/packages/article-converter/src/plugins/detailsPlugin.tsx index 649a8dae9b..6b4c5c2c24 100644 --- a/packages/article-converter/src/plugins/detailsPlugin.tsx +++ b/packages/article-converter/src/plugins/detailsPlugin.tsx @@ -6,9 +6,9 @@ * */ -import { DOMNode, attributesToProps, domToReact } from "html-react-parser"; +import { type DOMNode, attributesToProps, domToReact } from "html-react-parser"; import { ExpandableBox } from "@ndla/primitives"; -import { PluginType } from "./types"; +import { type PluginType } from "./types"; export const detailsPlugin: PluginType = (node, converterOpts) => { const props = attributesToProps(node.attribs); diff --git a/packages/article-converter/src/plugins/divPlugin.tsx b/packages/article-converter/src/plugins/divPlugin.tsx index 368912374c..456f13d445 100644 --- a/packages/article-converter/src/plugins/divPlugin.tsx +++ b/packages/article-converter/src/plugins/divPlugin.tsx @@ -6,17 +6,17 @@ * */ -import { domToReact, attributesToProps, Element, DOMNode } from "html-react-parser"; +import { domToReact, attributesToProps, Element, type DOMNode } from "html-react-parser"; import { FileListEmbed, RelatedArticleList, Grid, - GridType, + type GridType, GridParallaxItem, ContentTypeFramedContent, - ContentTypeFramedContentVariant, + type ContentTypeFramedContentVariant, } from "@ndla/ui"; -import { PluginType } from "./types"; +import { type PluginType } from "./types"; export const divPlugin: PluginType = (node, opts, { contentType }) => { if (node.attribs["data-type"] === "framed-content" || node.attribs.class === "c-bodybox") { @@ -36,7 +36,7 @@ export const divPlugin: PluginType = (node, opts, { contentType }) => { return ( - {/* @ts-ignore */} + {/* @ts-expect-error - This works, the types just won't match entirely */} {domToReact(node.children, opts)} ); @@ -68,7 +68,7 @@ export const divPlugin: PluginType = (node, opts, { contentType }) => { const background = props["data-background"] as GridType["background"]; return ( - {/* @ts-ignore */} + {/* @ts-expect-error - This works, the types just won't match entirely */} {domToReact(node.children, opts)} ); diff --git a/packages/article-converter/src/plugins/dlPlugin.tsx b/packages/article-converter/src/plugins/dlPlugin.tsx index ff966f199e..067f6e403d 100644 --- a/packages/article-converter/src/plugins/dlPlugin.tsx +++ b/packages/article-converter/src/plugins/dlPlugin.tsx @@ -6,9 +6,9 @@ * */ -import { DOMNode, attributesToProps, domToReact } from "html-react-parser"; +import { type DOMNode, attributesToProps, domToReact } from "html-react-parser"; import { DefinitionList } from "@ndla/primitives"; -import { PluginType } from "./types"; +import { type PluginType } from "./types"; export const dlPlugin: PluginType = (node, converterOpts, opts) => { const props = attributesToProps(node.attribs); diff --git a/packages/article-converter/src/plugins/embed/KeyFigureEmbedPlugin.tsx b/packages/article-converter/src/plugins/embed/KeyFigureEmbedPlugin.tsx index d0163b466b..bc54fb1c2d 100644 --- a/packages/article-converter/src/plugins/embed/KeyFigureEmbedPlugin.tsx +++ b/packages/article-converter/src/plugins/embed/KeyFigureEmbedPlugin.tsx @@ -7,11 +7,11 @@ */ import { attributesToProps } from "html-react-parser"; -import { KeyFigureMetaData } from "@ndla/types-embed"; +import { type KeyFigureMetaData } from "@ndla/types-embed"; import { KeyFigure } from "@ndla/ui"; -import { PluginType } from "../types"; +import { type PluginType } from "../types"; -export const keyFigureEmbedPlugin: PluginType = (element, _) => { +export const keyFigureEmbedPlugin: PluginType = (element) => { const props = attributesToProps(element.attribs); const data = JSON.parse(props["data-json"] as string) as KeyFigureMetaData; const { title, subtitle, alt } = data.embedData; diff --git a/packages/article-converter/src/plugins/embed/audioEmbedPlugin.tsx b/packages/article-converter/src/plugins/embed/audioEmbedPlugin.tsx index 1f4c72b66a..afe72f8462 100644 --- a/packages/article-converter/src/plugins/embed/audioEmbedPlugin.tsx +++ b/packages/article-converter/src/plugins/embed/audioEmbedPlugin.tsx @@ -7,9 +7,9 @@ */ import { attributesToProps } from "html-react-parser"; -import { AudioMetaData } from "@ndla/types-embed"; +import { type AudioMetaData } from "@ndla/types-embed"; import { AudioEmbed } from "@ndla/ui"; -import { PluginType } from "../types"; +import { type PluginType } from "../types"; export const audioEmbedPlugin: PluginType = (element, _, opts) => { const props = attributesToProps(element.attribs); diff --git a/packages/article-converter/src/plugins/embed/brightcoveEmbedPlugin.tsx b/packages/article-converter/src/plugins/embed/brightcoveEmbedPlugin.tsx index a782ad4383..0fa5debef9 100644 --- a/packages/article-converter/src/plugins/embed/brightcoveEmbedPlugin.tsx +++ b/packages/article-converter/src/plugins/embed/brightcoveEmbedPlugin.tsx @@ -7,9 +7,9 @@ */ import { attributesToProps } from "html-react-parser"; -import { BrightcoveMetaData } from "@ndla/types-embed"; +import { type BrightcoveMetaData } from "@ndla/types-embed"; import { BrightcoveEmbed } from "@ndla/ui"; -import { PluginType } from "../types"; +import { type PluginType } from "../types"; export const brightcoveEmbedPlugin: PluginType = (element, _, opts) => { const props = attributesToProps(element.attribs); diff --git a/packages/article-converter/src/plugins/embed/campaignBlockPlugin.tsx b/packages/article-converter/src/plugins/embed/campaignBlockPlugin.tsx index eaa27e185b..cd415b8a7f 100644 --- a/packages/article-converter/src/plugins/embed/campaignBlockPlugin.tsx +++ b/packages/article-converter/src/plugins/embed/campaignBlockPlugin.tsx @@ -7,9 +7,9 @@ */ import { attributesToProps } from "html-react-parser"; -import { CampaignBlockMetaData } from "@ndla/types-embed"; +import { type CampaignBlockMetaData } from "@ndla/types-embed"; import { CampaignBlock } from "@ndla/ui"; -import { PluginType } from "../types"; +import { type PluginType } from "../types"; export const campaignBlockPlugin: PluginType = (element, _, opts) => { const props = attributesToProps(element.attribs); diff --git a/packages/article-converter/src/plugins/embed/codeEmbedPlugin.tsx b/packages/article-converter/src/plugins/embed/codeEmbedPlugin.tsx index 05f151ee9d..aa978961ea 100644 --- a/packages/article-converter/src/plugins/embed/codeEmbedPlugin.tsx +++ b/packages/article-converter/src/plugins/embed/codeEmbedPlugin.tsx @@ -7,9 +7,9 @@ */ import { attributesToProps } from "html-react-parser"; -import { CodeMetaData } from "@ndla/types-embed"; +import { type CodeMetaData } from "@ndla/types-embed"; import { CodeEmbed } from "@ndla/ui"; -import { PluginType } from "../types"; +import { type PluginType } from "../types"; export const codeEmbedPlugin: PluginType = (element) => { const props = attributesToProps(element.attribs); diff --git a/packages/article-converter/src/plugins/embed/conceptEmbedPlugin.tsx b/packages/article-converter/src/plugins/embed/conceptEmbedPlugin.tsx index e89407218e..e38b53dbdb 100644 --- a/packages/article-converter/src/plugins/embed/conceptEmbedPlugin.tsx +++ b/packages/article-converter/src/plugins/embed/conceptEmbedPlugin.tsx @@ -7,9 +7,9 @@ */ import { attributesToProps } from "html-react-parser"; -import { ConceptMetaData } from "@ndla/types-embed"; +import { type ConceptMetaData } from "@ndla/types-embed"; import { ConceptEmbed } from "@ndla/ui"; -import { PluginType } from "../types"; +import { type PluginType } from "../types"; export const conceptEmbedPlugin: PluginType = (element, _, opts) => { const props = attributesToProps(element.attribs); diff --git a/packages/article-converter/src/plugins/embed/contactBlockEmbedPlugin.tsx b/packages/article-converter/src/plugins/embed/contactBlockEmbedPlugin.tsx index cd27ed7b5b..530fb1ddd2 100644 --- a/packages/article-converter/src/plugins/embed/contactBlockEmbedPlugin.tsx +++ b/packages/article-converter/src/plugins/embed/contactBlockEmbedPlugin.tsx @@ -7,9 +7,9 @@ */ import { attributesToProps } from "html-react-parser"; -import { ContactBlockMetaData } from "@ndla/types-embed"; -import { ContactBlock, contactBlockBackgrounds, ContactBlockBackground } from "@ndla/ui"; -import { PluginType } from "../types"; +import { type ContactBlockMetaData } from "@ndla/types-embed"; +import { ContactBlock, contactBlockBackgrounds, type ContactBlockBackground } from "@ndla/ui"; +import { type PluginType } from "../types"; export function isBackground(background?: string): background is ContactBlockBackground { return (contactBlockBackgrounds as readonly string[]).includes(background ?? ""); diff --git a/packages/article-converter/src/plugins/embed/contentLinkEmbedPlugin.tsx b/packages/article-converter/src/plugins/embed/contentLinkEmbedPlugin.tsx index 4f3678b618..5ad04a042f 100644 --- a/packages/article-converter/src/plugins/embed/contentLinkEmbedPlugin.tsx +++ b/packages/article-converter/src/plugins/embed/contentLinkEmbedPlugin.tsx @@ -6,10 +6,10 @@ * */ -import { DOMNode, attributesToProps, domToReact } from "html-react-parser"; -import { ContentLinkMetaData } from "@ndla/types-embed"; +import { type DOMNode, attributesToProps, domToReact } from "html-react-parser"; +import { type ContentLinkMetaData } from "@ndla/types-embed"; import { ContentLinkEmbed } from "@ndla/ui"; -import { PluginType } from "../types"; +import { type PluginType } from "../types"; export const contentLinkEmbedPlugin: PluginType = (element, opts, { isOembed }) => { const props = attributesToProps(element.attribs); diff --git a/packages/article-converter/src/plugins/embed/copyrightEmbedPlugin.tsx b/packages/article-converter/src/plugins/embed/copyrightEmbedPlugin.tsx index 67de20079b..6aed56a0ac 100644 --- a/packages/article-converter/src/plugins/embed/copyrightEmbedPlugin.tsx +++ b/packages/article-converter/src/plugins/embed/copyrightEmbedPlugin.tsx @@ -6,10 +6,10 @@ * */ -import { DOMNode, attributesToProps, domToReact } from "html-react-parser"; -import { CopyrightMetaData } from "@ndla/types-embed"; +import { type DOMNode, attributesToProps, domToReact } from "html-react-parser"; +import { type CopyrightMetaData } from "@ndla/types-embed"; import { CopyrightEmbed } from "@ndla/ui"; -import { PluginType } from "../types"; +import { type PluginType } from "../types"; export const copyrightEmbedPlugin: PluginType = (element, opts) => { const props = attributesToProps(element.attribs); diff --git a/packages/article-converter/src/plugins/embed/externalEmbedPlugin.tsx b/packages/article-converter/src/plugins/embed/externalEmbedPlugin.tsx index dfe1a939f5..300f09d724 100644 --- a/packages/article-converter/src/plugins/embed/externalEmbedPlugin.tsx +++ b/packages/article-converter/src/plugins/embed/externalEmbedPlugin.tsx @@ -7,9 +7,9 @@ */ import { attributesToProps } from "html-react-parser"; -import { OembedMetaData } from "@ndla/types-embed"; +import { type OembedMetaData } from "@ndla/types-embed"; import { ExternalEmbed } from "@ndla/ui"; -import { PluginType } from "../types"; +import { type PluginType } from "../types"; export const externalEmbedPlugin: PluginType = (element) => { const props = attributesToProps(element.attribs); diff --git a/packages/article-converter/src/plugins/embed/fileEmbedPlugin.tsx b/packages/article-converter/src/plugins/embed/fileEmbedPlugin.tsx index 1e6c649277..f8e77dad50 100644 --- a/packages/article-converter/src/plugins/embed/fileEmbedPlugin.tsx +++ b/packages/article-converter/src/plugins/embed/fileEmbedPlugin.tsx @@ -7,9 +7,9 @@ */ import { attributesToProps } from "html-react-parser"; -import { FileMetaData } from "@ndla/types-embed"; +import { type FileMetaData } from "@ndla/types-embed"; import { PdfFile, FileListElement } from "@ndla/ui"; -import { PluginType } from "../types"; +import { type PluginType } from "../types"; export const fileEmbedPlugin: PluginType = (element) => { const props = attributesToProps(element.attribs); diff --git a/packages/article-converter/src/plugins/embed/footnoteEmbedPlugin.tsx b/packages/article-converter/src/plugins/embed/footnoteEmbedPlugin.tsx index 9966b26f16..edb73bc1f7 100644 --- a/packages/article-converter/src/plugins/embed/footnoteEmbedPlugin.tsx +++ b/packages/article-converter/src/plugins/embed/footnoteEmbedPlugin.tsx @@ -7,9 +7,9 @@ */ import { attributesToProps } from "html-react-parser"; -import { FootnoteMetaData } from "@ndla/types-embed"; +import { type FootnoteMetaData } from "@ndla/types-embed"; import { FootnoteEmbed } from "@ndla/ui"; -import { PluginType } from "../types"; +import { type PluginType } from "../types"; export const footnoteEmbedPlugin: PluginType = (element) => { const props = attributesToProps(element.attribs); diff --git a/packages/article-converter/src/plugins/embed/h5pEmbedPlugin.tsx b/packages/article-converter/src/plugins/embed/h5pEmbedPlugin.tsx index 7dd68ebbc6..114b07b102 100644 --- a/packages/article-converter/src/plugins/embed/h5pEmbedPlugin.tsx +++ b/packages/article-converter/src/plugins/embed/h5pEmbedPlugin.tsx @@ -7,9 +7,9 @@ */ import { attributesToProps } from "html-react-parser"; -import { H5pMetaData } from "@ndla/types-embed"; +import { type H5pMetaData } from "@ndla/types-embed"; import { H5pEmbed } from "@ndla/ui"; -import { PluginType } from "../types"; +import { type PluginType } from "../types"; export const h5pEmbedPlugin: PluginType = (element) => { const props = attributesToProps(element.attribs); diff --git a/packages/article-converter/src/plugins/embed/iframeEmbedPlugin.tsx b/packages/article-converter/src/plugins/embed/iframeEmbedPlugin.tsx index a1d473b892..f3aa0528fa 100644 --- a/packages/article-converter/src/plugins/embed/iframeEmbedPlugin.tsx +++ b/packages/article-converter/src/plugins/embed/iframeEmbedPlugin.tsx @@ -7,9 +7,9 @@ */ import { attributesToProps } from "html-react-parser"; -import { IframeMetaData } from "@ndla/types-embed"; +import { type IframeMetaData } from "@ndla/types-embed"; import { IframeEmbed } from "@ndla/ui"; -import { PluginType } from "../types"; +import { type PluginType } from "../types"; export const iframeEmbedPlugin: PluginType = (element) => { const props = attributesToProps(element.attribs); diff --git a/packages/article-converter/src/plugins/embed/imageEmbedPlugin.tsx b/packages/article-converter/src/plugins/embed/imageEmbedPlugin.tsx index 67d88b6378..5eebbb06b8 100644 --- a/packages/article-converter/src/plugins/embed/imageEmbedPlugin.tsx +++ b/packages/article-converter/src/plugins/embed/imageEmbedPlugin.tsx @@ -7,9 +7,9 @@ */ import { attributesToProps } from "html-react-parser"; -import { ImageMetaData } from "@ndla/types-embed"; +import { type ImageMetaData } from "@ndla/types-embed"; import { ImageEmbed } from "@ndla/ui"; -import { PluginType } from "../types"; +import { type PluginType } from "../types"; export const imageEmbedPlugin: PluginType = (element, _, opts) => { const props = attributesToProps(element.attribs); diff --git a/packages/article-converter/src/plugins/embed/index.ts b/packages/article-converter/src/plugins/embed/index.ts index 29fd51cfd2..248c0c683a 100644 --- a/packages/article-converter/src/plugins/embed/index.ts +++ b/packages/article-converter/src/plugins/embed/index.ts @@ -25,7 +25,7 @@ import { linkBlockPlugin } from "./linkBlockEmbedPlugin"; import { pitchEmbedPlugin } from "./pitchEmbedPlugin"; import { relatedContentEmbedPlugin } from "./relatedContentEmbedPlugin"; import { uuDisclaimerEmbedPlugin } from "./uuDisclaimerEmbedPlugin"; -import { PluginType } from "../types"; +import { type PluginType } from "../types"; export const embedPlugins: Record = { image: imageEmbedPlugin, diff --git a/packages/article-converter/src/plugins/embed/linkBlockEmbedPlugin.tsx b/packages/article-converter/src/plugins/embed/linkBlockEmbedPlugin.tsx index f09dab9307..30066933f8 100644 --- a/packages/article-converter/src/plugins/embed/linkBlockEmbedPlugin.tsx +++ b/packages/article-converter/src/plugins/embed/linkBlockEmbedPlugin.tsx @@ -7,9 +7,9 @@ */ import { attributesToProps } from "html-react-parser"; -import { LinkBlockMetaData } from "@ndla/types-embed"; +import { type LinkBlockMetaData } from "@ndla/types-embed"; import { LinkBlock } from "@ndla/ui"; -import { PluginType } from "../types"; +import { type PluginType } from "../types"; export const linkBlockPlugin: PluginType = (element, _, opts) => { const props = attributesToProps(element.attribs); diff --git a/packages/article-converter/src/plugins/embed/pitchEmbedPlugin.tsx b/packages/article-converter/src/plugins/embed/pitchEmbedPlugin.tsx index 1d1835eba4..76f037f254 100644 --- a/packages/article-converter/src/plugins/embed/pitchEmbedPlugin.tsx +++ b/packages/article-converter/src/plugins/embed/pitchEmbedPlugin.tsx @@ -7,9 +7,9 @@ */ import { attributesToProps } from "html-react-parser"; -import { PitchMetaData } from "@ndla/types-embed"; +import { type PitchMetaData } from "@ndla/types-embed"; import { Pitch } from "@ndla/ui"; -import { PluginType } from "../types"; +import { type PluginType } from "../types"; export const errorSvgSrc = `data:image/svg+xml;charset=UTF-8,%3Csvg fill='%238A8888' height='400' viewBox='0 0 24 12' width='100%25' xmlns='http://www.w3.org/2000/svg' style='background-color: %23EFF0F2'%3E%3Cpath d='M0 0h24v24H0V0z' fill='none'/%3E%3Cpath transform='scale(0.3) translate(28, 8.5)' d='M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z'/%3E%3C/svg%3E`; diff --git a/packages/article-converter/src/plugins/embed/relatedContentEmbedPlugin.tsx b/packages/article-converter/src/plugins/embed/relatedContentEmbedPlugin.tsx index bd00e8e834..5d98c0b3b5 100644 --- a/packages/article-converter/src/plugins/embed/relatedContentEmbedPlugin.tsx +++ b/packages/article-converter/src/plugins/embed/relatedContentEmbedPlugin.tsx @@ -7,9 +7,9 @@ */ import { attributesToProps } from "html-react-parser"; -import { RelatedContentMetaData } from "@ndla/types-embed"; +import { type RelatedContentMetaData } from "@ndla/types-embed"; import { RelatedContentEmbed } from "@ndla/ui"; -import { PluginType } from "../types"; +import { type PluginType } from "../types"; export const relatedContentEmbedPlugin: PluginType = (element, _, opts) => { const props = attributesToProps(element.attribs); diff --git a/packages/article-converter/src/plugins/embed/uuDisclaimerEmbedPlugin.tsx b/packages/article-converter/src/plugins/embed/uuDisclaimerEmbedPlugin.tsx index bffa9b8004..5dd0e4e19b 100644 --- a/packages/article-converter/src/plugins/embed/uuDisclaimerEmbedPlugin.tsx +++ b/packages/article-converter/src/plugins/embed/uuDisclaimerEmbedPlugin.tsx @@ -6,10 +6,10 @@ * */ -import { DOMNode, attributesToProps, domToReact } from "html-react-parser"; -import { UuDisclaimerMetaData } from "@ndla/types-embed"; +import { type DOMNode, attributesToProps, domToReact } from "html-react-parser"; +import { type UuDisclaimerMetaData } from "@ndla/types-embed"; import { UuDisclaimerEmbed } from "@ndla/ui"; -import { PluginType } from "../types"; +import { type PluginType } from "../types"; export const uuDisclaimerEmbedPlugin: PluginType = (element, opts) => { const props = attributesToProps(element.attribs); diff --git a/packages/article-converter/src/plugins/h3Plugin.tsx b/packages/article-converter/src/plugins/h3Plugin.tsx index a4446b9cf6..12f5a4264a 100644 --- a/packages/article-converter/src/plugins/h3Plugin.tsx +++ b/packages/article-converter/src/plugins/h3Plugin.tsx @@ -6,12 +6,11 @@ * */ -import { DOMNode, attributesToProps, domToReact } from "html-react-parser"; -import { PluginType } from "./types"; +import { type DOMNode, attributesToProps, domToReact } from "html-react-parser"; +import { type PluginType } from "./types"; export const h3Plugin: PluginType = (node, converterOpts, opts) => { const props = attributesToProps(node.attribs); return ( - // eslint-disable-next-line jsx-a11y/no-noninteractive-tabindex

{domToReact(node.children as DOMNode[], converterOpts)}

diff --git a/packages/article-converter/src/plugins/index.ts b/packages/article-converter/src/plugins/index.ts index 17b48b7d85..034c0d859c 100644 --- a/packages/article-converter/src/plugins/index.ts +++ b/packages/article-converter/src/plugins/index.ts @@ -21,7 +21,7 @@ import { olPlugin } from "./olPlugin"; import { paragraphPlugin } from "./paragraphPlugin"; import { summaryPlugin } from "./summaryPlugin"; import { tablePlugin } from "./tablePlugin"; -import { PluginType } from "./types"; +import { type PluginType } from "./types"; import { ulPlugin } from "./ulPlugin"; export const basePlugins: Record = { diff --git a/packages/article-converter/src/plugins/mathPlugin.tsx b/packages/article-converter/src/plugins/mathPlugin.tsx index f955afca6b..53a6b244b8 100644 --- a/packages/article-converter/src/plugins/mathPlugin.tsx +++ b/packages/article-converter/src/plugins/mathPlugin.tsx @@ -7,9 +7,9 @@ */ import { attributesToProps } from "html-react-parser"; -import { PluginType } from "./types"; +import { type PluginType } from "./types"; export const mathPlugin: PluginType = (node) => { const { "data-math": mathContent, ...props } = attributesToProps(node.attribs); - // @ts-ignore + // @ts-expect-error - math is a valid tag return ; }; diff --git a/packages/article-converter/src/plugins/navPlugin.tsx b/packages/article-converter/src/plugins/navPlugin.tsx index 9f8c2c3a52..bd1eae7e81 100644 --- a/packages/article-converter/src/plugins/navPlugin.tsx +++ b/packages/article-converter/src/plugins/navPlugin.tsx @@ -6,9 +6,9 @@ * */ -import { DOMNode, attributesToProps, domToReact } from "html-react-parser"; +import { type DOMNode, attributesToProps, domToReact } from "html-react-parser"; import { LinkBlockSection } from "@ndla/ui"; -import { PluginType } from "./types"; +import { type PluginType } from "./types"; export const navPlugin: PluginType = (node, opts) => { if (node.attribs["data-type"] === "link-block-list") { diff --git a/packages/article-converter/src/plugins/oembed/anchorPlugin.tsx b/packages/article-converter/src/plugins/oembed/anchorPlugin.tsx index ed130eda9a..d04e1b59d0 100644 --- a/packages/article-converter/src/plugins/oembed/anchorPlugin.tsx +++ b/packages/article-converter/src/plugins/oembed/anchorPlugin.tsx @@ -6,10 +6,10 @@ * */ -import { DOMNode, attributesToProps, domToReact } from "html-react-parser"; +import { type DOMNode, attributesToProps, domToReact } from "html-react-parser"; import { SafeLink } from "@ndla/safelink"; import { getPossiblyRelativeUrl } from "@ndla/ui"; -import { PluginType } from "../types"; +import { type PluginType } from "../types"; export const anchorPlugin: PluginType = (node, options, { path }) => { const props = attributesToProps(node.attribs); diff --git a/packages/article-converter/src/plugins/olPlugin.tsx b/packages/article-converter/src/plugins/olPlugin.tsx index b087b4d5dd..743cda2fb9 100644 --- a/packages/article-converter/src/plugins/olPlugin.tsx +++ b/packages/article-converter/src/plugins/olPlugin.tsx @@ -6,9 +6,9 @@ * */ -import { DOMNode, attributesToProps, domToReact } from "html-react-parser"; +import { type DOMNode, attributesToProps, domToReact } from "html-react-parser"; import { OrderedList } from "@ndla/primitives"; -import { PluginType } from "./types"; +import { type PluginType } from "./types"; export const olPlugin: PluginType = (node, converterOpts, opts) => { const props = attributesToProps(node.attribs); const variantProp = node.attribs["data-type"] === "letters" ? ({ variant: "letters" } as const) : {}; diff --git a/packages/article-converter/src/plugins/paragraphPlugin.tsx b/packages/article-converter/src/plugins/paragraphPlugin.tsx index 760fa4dfdc..4a8eb80c12 100644 --- a/packages/article-converter/src/plugins/paragraphPlugin.tsx +++ b/packages/article-converter/src/plugins/paragraphPlugin.tsx @@ -6,8 +6,8 @@ * */ -import { DOMNode, attributesToProps, domToReact } from "html-react-parser"; -import { PluginType } from "./types"; +import { type DOMNode, attributesToProps, domToReact } from "html-react-parser"; +import { type PluginType } from "./types"; export const paragraphPlugin: PluginType = (node, converterOpts, opts) => { const props = attributesToProps(node.attribs); diff --git a/packages/article-converter/src/plugins/summaryPlugin.tsx b/packages/article-converter/src/plugins/summaryPlugin.tsx index e77e284e8e..14e34482cc 100644 --- a/packages/article-converter/src/plugins/summaryPlugin.tsx +++ b/packages/article-converter/src/plugins/summaryPlugin.tsx @@ -6,9 +6,9 @@ * */ -import { DOMNode, attributesToProps, domToReact } from "html-react-parser"; +import { type DOMNode, attributesToProps, domToReact } from "html-react-parser"; import { ExpandableBoxSummary } from "@ndla/primitives"; -import { PluginType } from "./types"; +import { type PluginType } from "./types"; export const summaryPlugin: PluginType = (node, converterOpts) => { const props = attributesToProps(node.attribs); diff --git a/packages/article-converter/src/plugins/tablePlugin.tsx b/packages/article-converter/src/plugins/tablePlugin.tsx index f361199fb3..0354d01201 100644 --- a/packages/article-converter/src/plugins/tablePlugin.tsx +++ b/packages/article-converter/src/plugins/tablePlugin.tsx @@ -6,9 +6,9 @@ * */ -import { DOMNode, attributesToProps, domToReact } from "html-react-parser"; +import { type DOMNode, attributesToProps, domToReact } from "html-react-parser"; import { Table } from "@ndla/primitives"; -import { PluginType } from "./types"; +import { type PluginType } from "./types"; export const tablePlugin: PluginType = (node, converterOpts, opts) => { const props = attributesToProps(node.attribs); return ( diff --git a/packages/article-converter/src/plugins/types.ts b/packages/article-converter/src/plugins/types.ts index 600217fbcd..87852d09e7 100644 --- a/packages/article-converter/src/plugins/types.ts +++ b/packages/article-converter/src/plugins/types.ts @@ -6,8 +6,9 @@ * */ -import { Element, HTMLReactParserOptions } from "html-react-parser"; -import { RenderContext, CanonicalUrlFuncs, ContentType } from "@ndla/ui"; +import { Element, type HTMLReactParserOptions } from "html-react-parser"; +import type { RenderContext, CanonicalUrlFuncs, ContentType } from "@ndla/ui"; +import type { ReactElement } from "react"; export interface TransformOptions { isOembed?: boolean; @@ -25,4 +26,4 @@ export type PluginType = ( element: Element, options: HTMLReactParserOptions, metaData: TransformOptions, -) => JSX.Element | undefined | null; +) => ReactElement | undefined | null; diff --git a/packages/article-converter/src/plugins/ulPlugin.tsx b/packages/article-converter/src/plugins/ulPlugin.tsx index 9d3a3a96e8..d8ebeb8084 100644 --- a/packages/article-converter/src/plugins/ulPlugin.tsx +++ b/packages/article-converter/src/plugins/ulPlugin.tsx @@ -6,9 +6,9 @@ * */ -import { DOMNode, attributesToProps, domToReact } from "html-react-parser"; +import { type DOMNode, attributesToProps, domToReact } from "html-react-parser"; import { UnOrderedList } from "@ndla/primitives"; -import { PluginType } from "./types"; +import { type PluginType } from "./types"; export const ulPlugin: PluginType = (node, converterOpts, opts) => { const props = attributesToProps(node.attribs); return ( diff --git a/packages/article-converter/src/transform.tsx b/packages/article-converter/src/transform.tsx index f60c8c45ad..41c724d5d9 100644 --- a/packages/article-converter/src/transform.tsx +++ b/packages/article-converter/src/transform.tsx @@ -6,12 +6,12 @@ * */ -import parse, { HTMLReactParserOptions } from "html-react-parser"; -import { MetaData } from "@ndla/types-embed"; +import parse, { type HTMLReactParserOptions } from "html-react-parser"; +import { type MetaData } from "@ndla/types-embed"; import { UnknownEmbed } from "@ndla/ui"; import { basePlugins, oembedPlugins } from "./plugins"; import { embedPlugins } from "./plugins/embed"; -import { TransformOptions } from "./plugins/types"; +import { type TransformOptions } from "./plugins/types"; const transform = (content: string, opts: TransformOptions) => { const plugins = opts?.isOembed ? oembedPlugins : basePlugins; diff --git a/packages/button/README.md b/packages/button/README.md deleted file mode 100644 index 81c63e9a89..0000000000 --- a/packages/button/README.md +++ /dev/null @@ -1,23 +0,0 @@ -# ndla-button - -Button component. - -## Installation - -```sh -yarn add --save @ndla/button -``` - -```sh -npm install @ndla/button --save -``` - -## Usage - -### Basic example - -```js -import Button from "@ndla/button"; - -; -``` diff --git a/packages/button/package.json b/packages/button/package.json deleted file mode 100644 index 817764dc68..0000000000 --- a/packages/button/package.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "name": "@ndla/button", - "version": "15.0.43-alpha.0", - "description": "Button component for NDLA", - "license": "GPL-3.0", - "main": "lib/index.js", - "module": "es/index.js", - "types": "lib/index.d.ts", - "scripts": { - "build": "node ../../scripts/build.js package", - "build:types": "tsc -p tsconfig.build.json", - "prepublish": "yarn build:types" - }, - "sideEffects": false, - "repository": { - "type": "git", - "url": "https://github.com/NDLANO/frontend-packages.git", - "directory": "packages/button" - }, - "keywords": [ - "ndla" - ], - "author": "ndla@knowit.no", - "files": [ - "lib", - "es" - ], - "dependencies": { - "@ndla/core": "^5.0.2", - "@ndla/dropdown-menu": "^1.0.40-alpha.0", - "@ndla/icons": "^8.0.42-alpha.0" - }, - "peerDependencies": { - "@emotion/react": "^11.10.4", - "@emotion/styled": "^11.10.4", - "react": ">= 16.8.0", - "react-dom": ">= 16.8.0", - "react-i18next": "^14.1.1" - }, - "publishConfig": { - "access": "public" - }, - "gitHead": "c2e2628a2dddfcca03f25548474243ffcd13595e" -} diff --git a/packages/button/src/Button.stories.tsx b/packages/button/src/Button.stories.tsx deleted file mode 100644 index dc15c84994..0000000000 --- a/packages/button/src/Button.stories.tsx +++ /dev/null @@ -1,54 +0,0 @@ -/** - * Copyright (c) 2023-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ - -import { Meta, StoryFn, StoryObj } from "@storybook/react"; -import ButtonV2 from "./ButtonV2"; - -export default { - title: "Components/Buttons/Button", - component: ButtonV2, - tags: ["autodocs"], - parameters: { - inlineStories: true, - }, - args: { - colorTheme: "primary", - children: "Button", - size: "normal", - variant: "solid", - shape: "normal", - fontWeight: "normal", - }, -} as Meta; - -export const Primary: StoryFn = (args) => { - return ; -}; - -export const Ghost: StoryObj = { - args: { - colorTheme: "light", - children: "Button", - variant: "ghost", - shape: "pill", - }, -}; - -export const Outline: StoryObj = { - args: { - children: "Button", - variant: "outline", - }, -}; - -export const Link: StoryObj = { - args: { - children: "Link", - variant: "link", - }, -}; diff --git a/packages/button/src/ButtonV2.tsx b/packages/button/src/ButtonV2.tsx deleted file mode 100644 index 9dfcaa502b..0000000000 --- a/packages/button/src/ButtonV2.tsx +++ /dev/null @@ -1,250 +0,0 @@ -/** - * Copyright (c) 2022-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ - -/** @jsxImportSource @emotion/react */ -import { ButtonHTMLAttributes, forwardRef } from "react"; -import { css, SerializedStyles } from "@emotion/react"; -import { colors, fonts, misc, spacing } from "@ndla/core"; -import { themes } from "./themes"; -import { ButtonSize, ButtonColor, ButtonShape, ButtonVariant, ButtonFontWeight } from "./types"; - -export interface ButtonStyleProps { - colorTheme?: ButtonColor; - size?: ButtonSize; - variant?: ButtonVariant; - shape?: ButtonShape; - inverted?: boolean; - fontWeight?: ButtonFontWeight; -} - -const shapeStyles: Partial> = { - pill: css` - border-radius: ${spacing.normal}; - `, - sharp: css` - border-radius: 0; - `, -}; - -const sizeStyles: Record = { - xsmall: css` - padding: ${spacing.xxsmall} ${spacing.xsmall}; - ${fonts.sizes("12px", "14px")}; - min-height: 24px; - border-width: 1px; - `, - small: css` - padding: ${spacing.xxsmall} ${spacing.xsmall}; - ${fonts.sizes("14px", "18px")}; - min-height: 32px; - border-width: 1px; - `, - normal: css` - padding: ${spacing.xxsmall} ${spacing.small}; - ${fonts.sizes("16px")}; - min-height: 40px; - `, - medium: css` - padding: ${spacing.xxsmall} ${spacing.nsmall}; - ${fonts.sizes("16px", "18px")}; - min-height: 48px; - `, - large: css` - padding: ${spacing.xxsmall} ${spacing.normal}; - ${fonts.sizes("18px", "20px")}; - min-height: 52px; - `, -}; - -export const buttonStyle = ({ - size = "normal", - colorTheme = "primary", - shape = "normal", - inverted, - variant = "solid", - fontWeight = "semibold", -}: ButtonStyleProps) => { - const theme = themes[colorTheme]; - return css` - display: inline-flex; - align-items: center; - justify-content: center; - gap: ${spacing.xsmall}; - - color: ${theme.foreground}; - background: ${theme.background}; - border: 2px solid ${theme.background}; - border-radius: ${misc.borderRadius}; - outline-width: 0; - cursor: pointer; - text-decoration: none; - - font-family: ${fonts.sans}; - font-weight: ${fonts.weight[fontWeight]}; - transition: ${misc.transition.default}; - box-shadow: none; - text-align: center; - - &:hover, - &:focus-visible { - color: ${theme.hoverForeground}; - background-color: ${theme.hoverBackground}; - border-color: ${theme.hoverBackground}; - } - - &[disabled] { - color: ${colors.brand.grey}; - background-color: ${colors.background.dark}; - border-color: transparent; - cursor: not-allowed; - } - - // Sizes - ${sizeStyles[size]} - - // Borders - ${shapeStyles[shape]} - - // Variants - ${variant === "outline" && - css` - color: ${theme.background}; - background: transparent; - border-color: ${theme.background}; - :hover { - color: ${theme.foreground}; - background: ${theme.background}; - border-color: ${theme.background}; - } - &[disabled] { - color: ${colors.brand.grey}; - background-color: transparent; - border-color: ${colors.brand.grey}; - cursor: not-allowed; - } - `} - ${variant === "ghost" && - css` - outline-width: 2px; - color: ${theme.foreground === colors.white ? theme.background : theme.foreground}; - background: transparent; - border-color: transparent; - :hover, - :active, - :focus-visible { - color: ${theme.foreground}; - background: ${theme.background}; - border-color: ${theme.background}; - } - &[disabled] { - color: ${colors.brand.grey}; - background-color: transparent; - border-color: transparent; - cursor: not-allowed; - } - `} - ${variant === "link" && - css` - border-radius: 0; - padding: 0; - font-size: inherit; - line-height: inherit; - color: ${colors.brand.primary}; - box-shadow: ${colors.link}; - background: none; - border: none; - font-weight: ${fonts.weight.normal}; - min-height: unset; - &:hover, - &:active, - &:disabled, - &:focus-visible { - outline-width: 2px; - box-shadow: ${colors.linkHover}; - color: ${colors.brand.primary}; - background: none; - border: none; - } - `} - ${variant === "stripped" && - css` - padding: 0; - border-radius: 0; - color: inherit; - font-size: inherit; - background-color: transparent; - box-shadow: none; - border: none; - font-weight: ${fonts.weight.normal}; - &:hover, - &:active, - &:disabled, - &:focus-visible { - box-shadow: none; - color: ${colors.brand.primary}; - background-color: transparent; - border: none; - } - &:focus-visible { - outline-width: medium; - } - `} - - // Modifiers - ${inverted && - css` - background: transparent; - color: ${colors.white}; - border-color: ${variant === "outline" ? colors.white : "transparent"}; - :hover { - color: ${theme.foreground}; - background: ${theme.background}; - border-color: ${variant === "outline" ? theme.background : "transparent"}; - } - `} - `; -}; - -interface Props { - size?: ButtonSize; - colorTheme?: ButtonColor; - variant?: ButtonVariant; - inverted?: boolean; - shape?: ButtonShape; - fontWeight?: ButtonFontWeight; -} - -export type ButtonProps = Props & ButtonHTMLAttributes; - -/** - * Knapp-komponent - */ -const ButtonV2 = forwardRef( - ({ colorTheme = "primary", size, variant, inverted, shape, fontWeight, children, type = "button", ...rest }, ref) => { - return ( - - ); - }, -); - -export default ButtonV2; diff --git a/packages/button/src/CopyButton.tsx b/packages/button/src/CopyButton.tsx deleted file mode 100644 index 1d442c1389..0000000000 --- a/packages/button/src/CopyButton.tsx +++ /dev/null @@ -1,45 +0,0 @@ -/** - * Copyright (c) 2016-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ - -import { ReactNode, MouseEvent, useState, useEffect, forwardRef } from "react"; -import ButtonV2, { ButtonProps } from "./ButtonV2"; - -interface Props extends ButtonProps { - children: ReactNode; - copyNode: ReactNode; - onClick: (e?: MouseEvent) => void; - showCopyTimer?: number; -} - -const CopyButton = forwardRef( - ({ children, copyNode, onClick, showCopyTimer = 4000, ...rest }, ref) => { - const [showCopyState, setShowCopyState] = useState(false); - - useEffect(() => { - if (showCopyState) { - const timer = setTimeout(() => setShowCopyState(false), showCopyTimer); - return () => clearTimeout(timer); - } - }, [showCopyState, showCopyTimer]); - - const handleCopy = (e?: MouseEvent) => { - onClick(e); - if (!showCopyState) { - setShowCopyState(true); - } - }; - - return ( - - {showCopyState ? copyNode : children} - - ); - }, -); - -export default CopyButton; diff --git a/packages/button/src/FavoriteButton.tsx b/packages/button/src/FavoriteButton.tsx deleted file mode 100644 index e0e963b56c..0000000000 --- a/packages/button/src/FavoriteButton.tsx +++ /dev/null @@ -1,36 +0,0 @@ -/** - * Copyright (c) 2022-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ - -import { forwardRef } from "react"; -import { useTranslation } from "react-i18next"; -import { HeartFill, HeartLine } from "@ndla/icons/action"; -import IconButtonV2, { IconButtonProps } from "./IconButtonV2"; - -export interface Props extends Omit { - isFavorite?: boolean; -} - -const FavoriteButton = forwardRef(({ isFavorite, onClick }, ref) => { - const { t } = useTranslation(); - const labelModifier = isFavorite ? "added" : "add"; - const Icon = isFavorite ? HeartFill : HeartLine; - return ( - - - - ); -}); - -export default FavoriteButton; diff --git a/packages/button/src/IconButton.stories.tsx b/packages/button/src/IconButton.stories.tsx deleted file mode 100644 index 1ddb964cfb..0000000000 --- a/packages/button/src/IconButton.stories.tsx +++ /dev/null @@ -1,37 +0,0 @@ -/** - * Copyright (c) 2022-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ - -import { Meta, StoryFn } from "@storybook/react"; -import { CloseLine } from "@ndla/icons/action"; -import IconButtonV2 from "./IconButtonV2"; - -export default { - title: "Components/Buttons/IconButton", - component: IconButtonV2, - tags: ["autodocs"], - args: { - colorTheme: "primary", - children: , - size: "small", - variant: "solid", - fontWeight: "normal", - }, - argTypes: { - children: { - control: { - disable: true, - }, - }, - }, -} as Meta; - -export const IconButtonStory: StoryFn = (args) => { - return ; -}; - -IconButtonStory.storyName = "IconButton"; diff --git a/packages/button/src/IconButtonV2.tsx b/packages/button/src/IconButtonV2.tsx deleted file mode 100644 index 66dd5b53ab..0000000000 --- a/packages/button/src/IconButtonV2.tsx +++ /dev/null @@ -1,61 +0,0 @@ -/** - * Copyright (c) 2022-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ - -/** @jsxImportSource @emotion/react */ -import { ReactNode, forwardRef } from "react"; -import { css } from "@emotion/react"; -import { spacingUnit } from "@ndla/core"; -import { ButtonProps, buttonStyle, ButtonStyleProps } from "./ButtonV2"; - -export const svgSizes = { - xsmall: spacingUnit * 0.75, - small: spacingUnit, - normal: spacingUnit * 1.25, - medium: spacingUnit * 2, - large: spacingUnit * 2.5, -}; - -export const iconButtonStyle = ({ size = "small", colorTheme = "primary", ...props }: ButtonStyleProps) => css` - ${buttonStyle({ size, colorTheme, ...props })} - - border-radius: 100%; - padding: ${spacingUnit * (svgSizes[size] > spacingUnit ? 0.5 : 0.25)}px; - line-height: 1; - border-color: transparent; - min-height: unset; - svg { - width: ${svgSizes[size]}px; - height: ${svgSizes[size]}px; - margin: 0; - } -`; - -export interface IconButtonProps extends Omit { - "aria-label": string; - /** Usually an icon from `'@ndla/icons'` */ - children?: ReactNode; -} - -export const IconButton = forwardRef( - ( - { type = "button", size = "small", colorTheme = "primary", variant, fontWeight, inverted, children, ...rest }, - ref, - ) => ( - - ), -); - -export default IconButton; diff --git a/packages/button/src/ZendeskButton.tsx b/packages/button/src/ZendeskButton.tsx deleted file mode 100644 index 996feef23a..0000000000 --- a/packages/button/src/ZendeskButton.tsx +++ /dev/null @@ -1,81 +0,0 @@ -/** - * Copyright (c) 2016-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ - -import { ReactNode, useState } from "react"; -import { css, Global } from "@emotion/react"; -import styled from "@emotion/styled"; -import { misc } from "@ndla/core"; -import ButtonV2, { ButtonProps } from "./ButtonV2"; - -const StyledButton = styled(ButtonV2)` - border-radius: ${misc.borderRadius}; - background-color: white; -`; - -interface Props extends ButtonProps { - children: ReactNode; - locale: string; - widgetKey: string; -} - -declare global { - interface Window { - zE: (modifier: string, action: string, callback?: (() => void) | string) => void; - } -} - -const ZendeskButton = ({ children, locale, widgetKey, ...rest }: Props) => { - const [loading, setLoading] = useState(false); - const handleClick = () => { - if (window && !window.zE) { - setLoading(true); - // Asynchronously load zendesk scripts for better performance - const script = document.createElement("script"); - script.id = "ze-snippet"; - script.type = "text/javascript"; - script.async = true; - script.onload = () => { - if (window.zE) { - window.zE("webWidget", "setLocale", locale); - window.zE("webWidget:on", "close", () => { - setLoading(false); - }); - window.zE("webWidget", "open"); - } - }; - script.src = `https://static.zdassets.com/ekr/snippet.js?key=${widgetKey}`; - document.body.appendChild(script); - } else if (window?.zE) { - window.zE("webWidget", "open"); - } - }; - - return ( - <> - - - {children} - - - ); -}; -export default ZendeskButton; diff --git a/packages/button/src/index.ts b/packages/button/src/index.ts deleted file mode 100644 index 5fe105848e..0000000000 --- a/packages/button/src/index.ts +++ /dev/null @@ -1,15 +0,0 @@ -/** - * Copyright (c) 2018-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ - -export { default as ButtonV2, buttonStyle as buttonStyleV2 } from "./ButtonV2"; -export type { ButtonStyleProps, ButtonProps } from "./ButtonV2"; -export type { ButtonSize, ButtonColor, ButtonShape, ButtonVariant, ButtonFontWeight } from "./types"; -export { default as CopyButton } from "./CopyButton"; -export { default as IconButtonV2, iconButtonStyle } from "./IconButtonV2"; -export { default as FavoriteButton } from "./FavoriteButton"; -export { default as ZendeskButton } from "./ZendeskButton"; diff --git a/packages/button/src/themes.ts b/packages/button/src/themes.ts deleted file mode 100644 index 5698b239e3..0000000000 --- a/packages/button/src/themes.ts +++ /dev/null @@ -1,55 +0,0 @@ -/** - * Copyright (c) 2022-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ - -import { colors } from "@ndla/core"; -import { ButtonColor, ButtonTheme } from "./types"; - -export const themes: Record = { - primary: { - foreground: colors.white, - background: colors.brand.primary, - hoverForeground: colors.brand.primary, - hoverBackground: colors.brand.light, - }, - light: { - foreground: colors.brand.primary, - background: colors.brand.light, - hoverForeground: colors.white, - hoverBackground: colors.brand.dark, - }, - lighter: { - foreground: colors.brand.primary, - background: colors.brand.lighter, - hoverForeground: colors.white, - hoverBackground: colors.brand.primary, - }, - greyLighter: { - foreground: colors.brand.primary, - background: colors.brand.greyLighter, - hoverForeground: colors.white, - hoverBackground: colors.brand.primary, - }, - greyLightest: { - foreground: colors.brand.primary, - background: colors.brand.greyLightest, - hoverForeground: colors.white, - hoverBackground: colors.brand.primary, - }, - danger: { - foreground: colors.white, - background: colors.support.red, - hoverForeground: colors.white, - hoverBackground: colors.support.red, - }, - darker: { - foreground: colors.white, - background: colors.brand.dark, - hoverForeground: colors.white, - hoverBackground: colors.brand.dark, - }, -}; diff --git a/packages/button/src/types.ts b/packages/button/src/types.ts deleted file mode 100644 index 7395a4b3ae..0000000000 --- a/packages/button/src/types.ts +++ /dev/null @@ -1,20 +0,0 @@ -/** - * Copyright (c) 2022-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ - -export type ButtonSize = "xsmall" | "small" | "normal" | "medium" | "large"; -export type ButtonColor = "primary" | "light" | "lighter" | "greyLighter" | "greyLightest" | "danger" | "darker"; -export type ButtonShape = "normal" | "pill" | "sharp"; -export type ButtonVariant = "solid" | "outline" | "ghost" | "link" | "stripped"; -export type ButtonFontWeight = "light" | "normal" | "semibold" | "bold"; - -export interface ButtonTheme { - foreground: string; - background: string; - hoverForeground: string; - hoverBackground: string; -} diff --git a/packages/core/package.json b/packages/core/package.json index ab2e5c1835..080a06436c 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@ndla/core", - "version": "5.0.2", + "version": "5.0.3", "description": "UI component library for NDLA.", "license": "GPL-3.0", "main": "lib/index.js", diff --git a/packages/core/src/breakpoints.ts b/packages/core/src/breakpoints.ts index 630aef2c04..1fdaa10ada 100644 --- a/packages/core/src/breakpoints.ts +++ b/packages/core/src/breakpoints.ts @@ -6,7 +6,7 @@ * */ -import { Breakpoints } from "../types"; +import type { Breakpoints } from "../types"; const breakpoints: Breakpoints = { mobile: "20em", diff --git a/packages/dropdown-menu/README.md b/packages/dropdown-menu/README.md deleted file mode 100644 index 9a88b63066..0000000000 --- a/packages/dropdown-menu/README.md +++ /dev/null @@ -1,47 +0,0 @@ -# ndla-dropdown-menu - -Dropdown menu component based on @radix-ui/react-dropdown-menu - -## Installation - -```sh -yarn add --save @ndla/dropdown-menu -``` - -```sh -npm install @ndla/dropdown-menu --save -``` - -## Usage - -Only DropdownContent is styled, and can be targeted as one usually does with emotion. The content arrow indicator can be styled by targeting `[data-arrow]`. - -### Basic example - -```js -import { DropdownMenu, DropdownTrigger, DropdownContent, DropdownItem } from "@ndla/dropdown-menu"; - -return ( - - - - - - - - - - - Add item - - - - - - Delete item - - - - -); -``` diff --git a/packages/dropdown-menu/package.json b/packages/dropdown-menu/package.json deleted file mode 100644 index 16fd90f0eb..0000000000 --- a/packages/dropdown-menu/package.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "name": "@ndla/dropdown-menu", - "version": "1.0.40-alpha.0", - "description": "Dropdown menu component for NDLA", - "license": "GPL-3.0", - "main": "lib/index.js", - "module": "es/index.js", - "types": "lib/index.d.ts", - "scripts": { - "build": "node ../../scripts/build.js package", - "build:types": "tsc -p tsconfig.build.json", - "prepublish": "yarn build:types" - }, - "sideEffects": false, - "repository": { - "type": "git", - "url": "https://github.com/NDLANO/frontend-packages.git", - "directory": "packages/dropdown-menu" - }, - "keywords": [ - "ndla" - ], - "author": "ndla@knowit.no", - "files": [ - "lib", - "es" - ], - "dependencies": { - "@ndla/core": "^5.0.2", - "@radix-ui/react-dropdown-menu": "^2.0.6", - "@radix-ui/react-slot": "^1.0.2" - }, - "peerDependencies": { - "@emotion/styled": "^11.10.4", - "react": ">= 16.8.0", - "react-dom": ">= 16.8.0" - }, - "publishConfig": { - "access": "public" - } -} diff --git a/packages/dropdown-menu/src/DropdownContent.tsx b/packages/dropdown-menu/src/DropdownContent.tsx deleted file mode 100644 index ed983865c3..0000000000 --- a/packages/dropdown-menu/src/DropdownContent.tsx +++ /dev/null @@ -1,51 +0,0 @@ -/** - * Copyright (c) 2023-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ - -import { useMemo } from "react"; -import styled from "@emotion/styled"; -import { Arrow, Content, DropdownMenuContentProps, Portal } from "@radix-ui/react-dropdown-menu"; -import { Slot } from "@radix-ui/react-slot"; -import { animations, colors, misc, shadows, stackOrder } from "@ndla/core"; - -interface Props extends Omit { - portal?: boolean; - showArrow?: boolean; -} - -const StyledContent = styled(Content)` - background: ${colors.white}; - padding: 0; - display: flex; - flex-direction: column; - border: none; - border-radius: ${misc.borderRadius}; - box-shadow: ${shadows.levitate1}; - overflow: hidden; - z-index: ${stackOrder.dropdown}; - @media (prefers-reduced-motion: no-preference) { - ${animations.fadeIn(animations.durations.fast)} - } -`; - -const StyledArrow = styled(Arrow)` - fill: white; -`; - -const DropdownContent = ({ portal = true, showArrow, side = "top", children, ...rest }: Props) => { - const MaybePortal = useMemo(() => (portal ? Portal : Slot), [portal]); - return ( - - - {showArrow && } - {children} - - - ); -}; - -export default DropdownContent; diff --git a/packages/dropdown-menu/src/DropdownItem.tsx b/packages/dropdown-menu/src/DropdownItem.tsx deleted file mode 100644 index caf582cef0..0000000000 --- a/packages/dropdown-menu/src/DropdownItem.tsx +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Copyright (c) 2023-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ - -import { forwardRef } from "react"; -import { DropdownMenuItem, DropdownMenuItemProps } from "@radix-ui/react-dropdown-menu"; - -interface Props extends DropdownMenuItemProps {} -const DropdownItem = forwardRef(({ children, ...rest }, ref) => { - return ( - - {children} - - ); -}); - -export default DropdownItem; diff --git a/packages/dropdown-menu/src/DropdownMenu.stories.tsx b/packages/dropdown-menu/src/DropdownMenu.stories.tsx deleted file mode 100644 index 75718fbdcf..0000000000 --- a/packages/dropdown-menu/src/DropdownMenu.stories.tsx +++ /dev/null @@ -1,56 +0,0 @@ -/** - * Copyright (c) 2023-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ - -import styled from "@emotion/styled"; -import { Meta, StoryFn } from "@storybook/react"; -import { ButtonV2, IconButtonV2 } from "@ndla/button"; -import { DeleteBinLine } from "@ndla/icons/action"; -import { MoreLine } from "@ndla/icons/contentType"; -import { FolderFill } from "@ndla/icons/editor"; -import { DropdownMenu, DropdownTrigger, DropdownItem, DropdownContent } from "."; - -export default { - title: "Components/DropdownMenu", - component: DropdownContent, - tags: ["autodocs"], -} as Meta; - -const StyledButton = styled(ButtonV2)` - display: flex; - flex: 1; - align-items: center; - justify-content: flex-start; -`; - -export const DropdownStory: StoryFn = (args) => { - return ( - - - - - - - - - - - Add item - - - - - - Delete item - - - - - ); -}; - -DropdownStory.storyName = "Dropdown"; diff --git a/packages/dropdown-menu/src/DropdownMenu.tsx b/packages/dropdown-menu/src/DropdownMenu.tsx deleted file mode 100644 index 465ac635bf..0000000000 --- a/packages/dropdown-menu/src/DropdownMenu.tsx +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Copyright (c) 2023-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ - -import { DropdownMenuProps, Root } from "@radix-ui/react-dropdown-menu"; - -interface Props extends DropdownMenuProps {} - -const DropdownMenu = (props: Props) => { - return ; -}; - -export default DropdownMenu; diff --git a/packages/dropdown-menu/src/DropdownTrigger.tsx b/packages/dropdown-menu/src/DropdownTrigger.tsx deleted file mode 100644 index dc2e867549..0000000000 --- a/packages/dropdown-menu/src/DropdownTrigger.tsx +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Copyright (c) 2023-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ - -import { ReactNode, forwardRef } from "react"; -import { DropdownMenuTriggerProps, Trigger } from "@radix-ui/react-dropdown-menu"; - -interface Props extends DropdownMenuTriggerProps { - children: ReactNode; -} - -const DropdownTrigger = forwardRef(({ children, ...props }, ref) => { - return ( - - {children} - - ); -}); - -export default DropdownTrigger; diff --git a/packages/dropdown-menu/src/index.ts b/packages/dropdown-menu/src/index.ts deleted file mode 100644 index dc5240e40d..0000000000 --- a/packages/dropdown-menu/src/index.ts +++ /dev/null @@ -1,12 +0,0 @@ -/** - * Copyright (c) 2023-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ - -export { default as DropdownMenu } from "./DropdownMenu"; -export { default as DropdownContent } from "./DropdownContent"; -export { default as DropdownItem } from "./DropdownItem"; -export { default as DropdownTrigger } from "./DropdownTrigger"; diff --git a/packages/dropdown-menu/tsconfig.build.json b/packages/dropdown-menu/tsconfig.build.json deleted file mode 100644 index bdb104388c..0000000000 --- a/packages/dropdown-menu/tsconfig.build.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "../../tsconfig.build.json", - "compilerOptions": { - "baseUrl": "./", - "declarationDir": "./lib", - "rootDir": "./src" - }, - "include": ["./src"] -} diff --git a/packages/eslint-config-ndla/base.js b/packages/eslint-config-ndla/base.js deleted file mode 100644 index 52fef552c1..0000000000 --- a/packages/eslint-config-ndla/base.js +++ /dev/null @@ -1,251 +0,0 @@ -/** - * Copyright (c) 2022-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ - -// Heavily inspired from create-react-app's ESLint config, but adapted to be more strict. - -const restrictedGlobals = require("confusing-browser-globals"); -module.exports = { - extends: [ - "eslint:recommended", - "plugin:jsx-a11y/recommended", - "plugin:react/recommended", - "plugin:react/jsx-runtime", - "plugin:react-hooks/recommended", - "plugin:@typescript-eslint/eslint-recommended", - ], - root: true, - parser: "@babel/eslint-parser", - plugins: ["react", "react-hooks", "import", "jsx-a11y", "header"], - - env: { - browser: true, - commonjs: true, - es6: true, - jest: true, - node: true, - }, - - parserOptions: { - sourceType: "module", - requireConfigFile: false, - }, - - settings: { - react: { - version: "detect", - }, - }, - - rules: { - "no-restricted-imports": [ - "error", - { - paths: [ - { - name: "lodash", - message: "Do not import lodash directly, use subpath imports instead.", - }, - ], - patterns: [ - "@ndla/*/lib/**", - "@ndla/*/lib", - "@ndla/*/es/**", - "@ndla/*/es", - "@ndla/*/src/**", - "@ndla/*/src", - "@ndla/*/build/*", - ], - }, - ], - "no-console": ["warn", { allow: ["warn", "error"] }], - "array-callback-return": "warn", - "default-case": "warn", - "dot-location": ["warn", "property"], - eqeqeq: ["warn", "smart"], - "new-parens": "warn", - "no-array-constructor": "warn", - "no-caller": "warn", - "no-eval": "warn", - "no-extra-bind": "warn", - "no-extra-label": "warn", - "no-implied-eval": "warn", - "no-iterator": "warn", - "no-label-var": "warn", - "no-labels": ["warn", { allowLoop: true, allowSwitch: false }], - "no-lone-blocks": "warn", - "no-loop-func": "warn", - "no-mixed-operators": [ - "warn", - { - groups: [ - ["&", "|", "^", "~", "<<", ">>", ">>>"], - ["==", "!=", "===", "!==", ">", ">=", "<", "<="], - ["&&", "||"], - ["in", "instanceof"], - ], - allowSamePrecedence: false, - }, - ], - "no-multi-str": "warn", - "no-new-func": "warn", - "no-new-object": "warn", - "no-new-wrappers": "warn", - "no-octal-escape": "warn", - "no-script-url": "warn", - "no-self-compare": "warn", - "no-sequences": "warn", - "no-template-curly-in-string": "warn", - "no-throw-literal": "warn", - "no-restricted-globals": ["error"].concat(restrictedGlobals), - "no-unused-expressions": "error", - "no-use-before-define": [ - "warn", - { - functions: false, - classes: false, - variables: false, - }, - ], - "no-useless-computed-key": "warn", - "no-useless-concat": "warn", - "no-useless-constructor": "warn", - "no-useless-rename": [ - "warn", - { - ignoreDestructuring: false, - ignoreImport: false, - ignoreExport: false, - }, - ], - "no-whitespace-before-property": "warn", - "rest-spread-spacing": ["warn", "never"], - strict: ["warn", "never"], - "no-restricted-properties": [ - "error", - { - object: "require", - property: "ensure", - message: "Please use import instead", - }, - { - object: "System", - property: "import", - message: "Please use import() instead", - }, - ], - - "import/first": "error", - "import/no-amd": "error", - "import/no-duplicates": "error", - "import/no-anonymous-default-export": "error", - "import/no-webpack-loader-syntax": "error", - "import/order": [ - "warn", - { - alphabetize: { - order: "asc", - caseInsensitive: true, - }, - groups: ["builtin", "external", "internal"], - pathGroupsExcludedImportTypes: [], - pathGroups: [ - { - pattern: "@ndla/**", - group: "internal", - position: "before", - patternOptions: { matchBase: true }, - }, - { - pattern: "@*/**", - group: "external", - position: "after", - patternOptions: { matchBase: true }, - }, - ], - }, - ], - "import/no-cycle": ["warn", { maxDepth: Infinity }], - - "react/no-unused-state": "warn", - "react/button-has-type": "error", - "react/jsx-pascal-case": "warn", - "react/style-prop-object": "warn", - "react/jsx-uses-react": "error", - "react/no-unknown-property": ["error", { ignore: ["css"] }], - "react/no-unescaped-entities": "off", - "react/display-name": "off", - "react/prop-types": "off", - }, - - overrides: [ - { - files: ["**/*.ts?(x)"], - parser: "@typescript-eslint/parser", - parserOptions: { - ecmaVersion: 2018, - sourceType: "module", - ecmaFeatures: { - jsx: true, - }, - warnOnUnsupportedTypeScriptVersion: true, - }, - plugins: ["@typescript-eslint"], - rules: { - "default-case": "off", - "no-dupe-class-members": "off", - "no-undef": "off", - camelcase: "off", - indent: "off", - "react/prop-types": "off", - "no-array-constructor": "off", - "no-redeclare": "off", - "@typescript-eslint/no-redeclare": "warn", - "no-use-before-define": "off", - "@typescript-eslint/no-use-before-define": [ - "warn", - { - functions: false, - classes: false, - variables: false, - typedefs: false, - }, - ], - "no-unused-expressions": "off", - "@typescript-eslint/no-unused-expressions": [ - "error", - { - allowShortCircuit: true, - allowTernary: true, - allowTaggedTemplates: true, - }, - ], - "no-unused-vars": "off", - "no-useless-constructor": "off", - "@typescript-eslint/no-useless-constructor": "warn", - "@typescript-eslint/consistent-type-assertions": "warn", - "prefer-rest-params": "off", - "header/header": [ - 2, - "block", - [ - "*", - { - pattern: " * Copyright \\(c\\) \\d{4}-present, NDLA.", - template: ` * Copyright (c) ${new Date().getFullYear()}-present, NDLA.`, - }, - " *", - " * This source code is licensed under the GPLv3 license found in the", - " * LICENSE file in the root directory of this source tree.", - " *", - " ", - ], - ], - }, - }, - ], -}; diff --git a/packages/eslint-config-ndla/index.mjs b/packages/eslint-config-ndla/index.mjs new file mode 100644 index 0000000000..3656528c03 --- /dev/null +++ b/packages/eslint-config-ndla/index.mjs @@ -0,0 +1,258 @@ +/** + * Copyright (c) 2024-present, NDLA. + * + * This source code is licensed under the GPLv3 license found in the + * LICENSE file in the root directory of this source tree. + * + */ + +// @ts-check + +// @ts-expect-error - no typedefs +import pluginHeader from "eslint-plugin-header"; +// @ts-expect-error - no typedefs +import importPlugin from "eslint-plugin-import"; +// @ts-expect-error - no typedefs +import jsxA11y from "eslint-plugin-jsx-a11y"; +import reactPlugin from "eslint-plugin-react"; +// @ts-expect-error - no typedefs +import hooksPlugin from "eslint-plugin-react-hooks"; +import globals from "globals"; +import tseslint from "typescript-eslint"; +import eslint from "@eslint/js"; +// this will be used later +// eslint-disable-next-line no-unused-vars +import simpleImportSort from "eslint-plugin-simple-import-sort"; + +// eslint 9 workaround +pluginHeader.rules.header.meta.schema = false; + +export default tseslint.config( + { + ignores: ["**/es/**/*", "**/lib/**/*", "**/dist/**/*", "**/styled-system/**/*"], + }, + { + languageOptions: { + globals: { + ...globals.browser, + ...globals.node, + }, + }, + }, + { + files: ["**/*.{js,mjs,cjs,ts,jsx,tsx,mts,cts,mtsx,ctsx}"], + settings: { + react: { + version: "detect", + }, + }, + languageOptions: { + parserOptions: { + ecmaFeatures: { + jsx: true, + }, + }, + }, + }, + { + extends: [eslint.configs.recommended], + rules: { + "no-console": "warn", + "array-callback-return": "warn", + "default-case": "warn", + eqeqeq: ["warn", "smart"], + "no-array-constructor": "warn", + "no-caller": "warn", + "no-eval": "warn", + "no-implied-eval": "warn", + "no-loop-func": "warn", + "no-object-constructor": "warn", + "no-new-wrappers": "warn", + "no-script-url": "warn", + "no-self-compare": "warn", + "no-sequences": "warn", + "no-template-curly-in-string": "warn", + "no-throw-literal": "warn", + "no-unused-expressions": "error", + "no-useless-computed-key": "warn", + "no-useless-concat": "warn", + "no-duplicate-imports": "error", + "no-unused-vars": [ + "error", + { + caughtErrors: "none", + caughtErrorsIgnorePattern: "^_", + destructuredArrayIgnorePattern: "^_", + varsIgnorePattern: "^_", + argsIgnorePattern: "^_", + args: "all", + ignoreRestSiblings: true, + }, + ], + "no-useless-rename": [ + "warn", + { + ignoreDestructuring: false, + ignoreImport: false, + ignoreExport: false, + }, + ], + strict: ["warn", "never"], + "no-restricted-imports": [ + "error", + { + paths: [ + { + name: "lodash", + message: "Do not import lodash directly, use subpath imports instead.", + }, + ], + patterns: [ + "@ndla/*/lib/**", + "@ndla/*/lib", + "@ndla/*/es/**", + "@ndla/*/es", + "@ndla/*/src/**", + "@ndla/*/src", + "@ndla/*/build/*", + ], + }, + ], + }, + }, + { + extends: tseslint.configs.recommended, + files: ["**/*.{ts,tsx,mts,cts,mtsx,ctsx}"], + rules: { + "@typescript-eslint/no-explicit-any": "off", + "@typescript-eslint/no-empty-object-type": "off", + "@typescript-eslint/no-use-before-define": [ + "warn", + { + functions: false, + classes: false, + variables: false, + typedefs: false, + }, + ], + "@typescript-eslint/no-unused-vars": [ + "error", + { + caughtErrors: "none", + caughtErrorsIgnorePattern: "^_", + destructuredArrayIgnorePattern: "^_", + varsIgnorePattern: "^_", + argsIgnorePattern: "^_", + args: "all", + ignoreRestSiblings: true, + }, + ], + }, + }, + { + extends: [reactPlugin.configs.flat?.recommended ?? {}, reactPlugin.configs.flat?.["jsx-runtime"] ?? {}].filter( + Boolean, + ), + files: ["**/*.{jsx,tsx,mtsx,ctsx}"], + plugins: { + "react-hooks": hooksPlugin, + }, + rules: { + "react/display-name": "off", + "react/prop-types": "off", + "react/no-unused-state": "warn", + "react/button-has-type": "error", + "react/jsx-pascal-case": "warn", + "react/style-prop-object": "warn", + "react/jsx-uses-react": "error", + "react/no-unknown-property": "error", + "react/forward-ref-uses-ref": "error", + "react/jsx-no-leaked-render": "error", + "react/jsx-no-useless-fragment": "error", + "react-hooks/rules-of-hooks": "error", + "react-hooks/exhaustive-deps": "warn", + }, + }, + jsxA11y.flatConfigs.recommended, + { + files: ["**/*.{jsx,tsx,mtsx,ctsx}"], + plugins: { + import: importPlugin, + }, + rules: { + "import/first": "error", + "import/no-amd": "error", + // TODO: There's a perf issue with this rule. It's disabled until it's fixed. + // "import/no-cycle": ["warn", { maxDepth: Infinity }], + "import/no-anonymous-default-export": "error", + // TODO: Replace this with the simple-import-sort plugin + "import/order": [ + "warn", + { + alphabetize: { + order: "asc", + caseInsensitive: true, + }, + groups: ["builtin", "external", "internal"], + pathGroupsExcludedImportTypes: [], + pathGroups: [ + { + pattern: "@ndla/**", + group: "internal", + position: "before", + patternOptions: { matchBase: true }, + }, + { + pattern: "@*/**", + group: "external", + position: "after", + patternOptions: { matchBase: true }, + }, + ], + }, + ], + }, + }, + { + plugins: { + header: pluginHeader, + }, + rules: { + "header/header": [ + 2, + "block", + [ + "*", + { + pattern: " * Copyright \\(c\\) \\d{4}-present, NDLA.", + template: ` * Copyright (c) ${new Date().getFullYear()}-present, NDLA.`, + }, + " *", + " * This source code is licensed under the GPLv3 license found in the", + " * LICENSE file in the root directory of this source tree.", + " *", + " ", + ], + ], + }, + }, + { + files: ["**/*.stories.{js,mjs,cjs,ts,jsx,tsx,mts,cts,mtsx,ctsx}"], + rules: { + "react/no-unescaped-entities": "off", + }, + }, + // { + // plugins: { + // "simple-import-sort": simpleImportSort, + // }, + // rules: { + // "simple-import-sort/imports": [ + // "error", + // { + // groups: [["^\\u0000", "^node:", "^\\w", "^@?\\w", "^", "^\\."]], + // }, + // ], + // }, + // }, +); diff --git a/packages/eslint-config-ndla/package.json b/packages/eslint-config-ndla/package.json index 2b41eaab09..1500b1e146 100644 --- a/packages/eslint-config-ndla/package.json +++ b/packages/eslint-config-ndla/package.json @@ -1,8 +1,8 @@ { "name": "eslint-config-ndla", - "version": "5.0.4", + "version": "6.0.1-alpha.0", "description": "An eslint config for NDLA. Extends Airbnb's.", - "main": "index.js", + "main": "index.mjs", "license": "GPL-3.0", "repository": { "type": "git", @@ -19,18 +19,16 @@ ], "author": "ndla@knowit.no", "dependencies": { - "@babel/eslint-parser": "^7.23.10", - "@typescript-eslint/eslint-plugin": "^7.1.1", - "@typescript-eslint/parser": "^7.1.1", - "confusing-browser-globals": "^1.0.11", "eslint-plugin-header": "^3.1.1", - "eslint-plugin-import": "^2.29.1", - "eslint-plugin-jsx-a11y": "^6.8.0", - "eslint-plugin-react": "^7.34.0", - "eslint-plugin-react-hooks": "^4.6.0" + "eslint-plugin-import": "^2.31.0", + "eslint-plugin-jsx-a11y": "^6.10.2", + "eslint-plugin-react": "^7.37.2", + "eslint-plugin-react-hooks": "^5.0.0", + "eslint-plugin-simple-import-sort": "^12.1.1", + "globals": "^15.13.0" }, "peerDependencies": { - "@babel/core": ">= 7.0.0", - "eslint": ">= 8.0.0" + "eslint": ">= 9.0.0", + "typescript-eslint": ">= 8.15.0" } } diff --git a/packages/hooks/package.json b/packages/hooks/package.json index 6873671bc0..8d1b5c7293 100644 --- a/packages/hooks/package.json +++ b/packages/hooks/package.json @@ -1,6 +1,6 @@ { "name": "@ndla/hooks", - "version": "2.1.9", + "version": "2.1.11", "description": "Collection of React hooks used by NDLA", "license": "GPL-3.0", "main": "lib/index.js", diff --git a/packages/hooks/src/useComponentSize.ts b/packages/hooks/src/useComponentSize.ts index dc5e776a58..ee8f2b4a1e 100644 --- a/packages/hooks/src/useComponentSize.ts +++ b/packages/hooks/src/useComponentSize.ts @@ -6,7 +6,7 @@ * */ -import { RefObject, useCallback, useMemo, useState } from "react"; +import { type RefObject, useCallback, useMemo, useState } from "react"; import { useIsomorphicLayoutEffect } from "./useIsomorphicLayoutEffect"; function getSize(el: HTMLElement | null) { diff --git a/packages/hooks/src/useWindowSize.ts b/packages/hooks/src/useWindowSize.ts index 812e3eb150..f8bdd4f33c 100644 --- a/packages/hooks/src/useWindowSize.ts +++ b/packages/hooks/src/useWindowSize.ts @@ -43,10 +43,14 @@ export function useWindowSize(wait?: number) { setWindowSize(getSize()); // Throttle if wait param is provided const fn = wait ? throttle(handleResize, wait) : handleResize; - window && window.removeEventListener("resize", fn); - window && window.addEventListener("resize", fn); + if (window) { + window.removeEventListener("resize", fn); + window.addEventListener("resize", fn); + } return () => { - window && window.removeEventListener("resize", fn); + if (window) { + window.removeEventListener("resize", fn); + } }; }, [wait]); diff --git a/packages/ndla-icons/README.md b/packages/icons/README.md similarity index 71% rename from packages/ndla-icons/README.md rename to packages/icons/README.md index 3003c3ea22..e7c1ab7559 100644 --- a/packages/ndla-icons/README.md +++ b/packages/icons/README.md @@ -1,4 +1,4 @@ -# ndla-icons +# @ndla/icons A package containing icons used in NDLA frontends @@ -15,13 +15,12 @@ npm install @ndla/icons --save ## Usage ```js -import { VoicePrintLine } from "@ndla/icons/common"; -import { CameraFill } from "@ndla/icons/editor"; +import { VoiceprintLine, CameraFill } from "@ndla/icons"; const IconList = () => (
  • - Audio icon + Audio icon
  • Camera icon @@ -30,14 +29,6 @@ const IconList = () => ( ); ``` -or - -```js -import { VoicePrintLine } from "@ndla/icons/lib/common/VoicePrintLine"; - -; -``` - ### Icons are currently grouped into four folders - common @@ -51,7 +42,7 @@ _TLDR:_ Change/Add/Remove svg file(s). Run `node scripts/createTsIconComponents. ### Add new svg file: -1. Add svg file to an appropiate folder in [ndla-icons/svg](/packages/ndla-icons/svg). +1. Add svg file to an appropiate folder in [icons/svg](/packages/icons/svg). 2. Ensure that `data-license` and `data-source` attributes are on the `` element. 3. Run `node scripts/createTsIconComponents.mjs` from root folder. 4. Commit changes. @@ -72,4 +63,4 @@ _TLDR:_ Change/Add/Remove svg file(s). Run `node scripts/createTsIconComponents. 1. Do changes. 2. Run `node scripts/createTsIconComponents.mjs` from root folder. -3. Update files array in [packages.json](/packages/ndla-icons/package.json). +3. Update files array in [packages.json](/packages/icons/package.json). diff --git a/packages/ndla-icons/package.json b/packages/icons/package.json similarity index 91% rename from packages/ndla-icons/package.json rename to packages/icons/package.json index 96be8a843d..fe401d3773 100644 --- a/packages/ndla-icons/package.json +++ b/packages/icons/package.json @@ -1,6 +1,6 @@ { "name": "@ndla/icons", - "version": "8.0.42-alpha.0", + "version": "8.0.48-alpha.0", "description": "A package containing icons used in NDLA frontends", "license": "GPL-3.0", "main": "lib/index.js", @@ -15,7 +15,7 @@ "repository": { "type": "git", "url": "https://github.com/NDLANO/frontend-packages.git", - "directory": "packages/ndla-icons" + "directory": "packages/icons" }, "keywords": [ "ndla" @@ -35,7 +35,7 @@ }, "devDependencies": { "@ndla/preset-panda": "workspace:^", - "@pandacss/dev": "^0.46.0" + "@pandacss/dev": "^0.48.0" }, "peerDependencies": { "react": ">= 18", diff --git a/packages/ndla-icons/panda.config.ts b/packages/icons/panda.config.ts similarity index 100% rename from packages/ndla-icons/panda.config.ts rename to packages/icons/panda.config.ts diff --git a/packages/ndla-icons/src/Icon.stories.tsx b/packages/icons/src/Icon.stories.tsx similarity index 54% rename from packages/ndla-icons/src/Icon.stories.tsx rename to packages/icons/src/Icon.stories.tsx index 2c54705b41..ab0db4aa36 100644 --- a/packages/ndla-icons/src/Icon.stories.tsx +++ b/packages/icons/src/Icon.stories.tsx @@ -6,27 +6,21 @@ * */ -import { ComponentProps, ReactElement, createElement, useMemo } from "react"; -import { Meta, StoryFn, StoryObj } from "@storybook/react"; +import { type ComponentProps, type ReactElement, createElement, useMemo } from "react"; +import type { Meta, StoryFn, StoryObj } from "@storybook/react"; import { IconButton } from "@ndla/primitives"; import { styled } from "@ndla/styled-system/jsx"; import { copyTextToClipboard } from "@ndla/util"; -import { Icon } from "."; -import * as actionIcons from "./action"; -import { FileCopyLine } from "./action"; -import * as commonIcons from "./common"; -import { UserFill } from "./common"; -import * as contentTypeIcons from "./contentType"; -import * as editorIcons from "./editor"; +import { FileCopyLine, Icon, UserFill } from "."; +import * as icons from "./icons"; interface IconItemProps { icon: (props: ComponentProps) => ReactElement>; - folder: string; name: string; } -const IconItem = ({ icon, folder, name }: IconItemProps) => { +const IconItem = ({ icon, name }: IconItemProps) => { const iconProps = useMemo(() => icon({}).props as Record, [icon]); return ( @@ -39,7 +33,7 @@ const IconItem = ({ icon, folder, name }: IconItemProps) => { {iconProps["data-license"]} copyTextToClipboard(`import { ${name} } from '@ndla/icons/${folder}';`)} + onClick={() => copyTextToClipboard(`import { ${name} } from '@ndla/icons';`)} title="Kopier import-kode" aria-label="Kopier import-kode" > @@ -50,11 +44,6 @@ const IconItem = ({ icon, folder, name }: IconItemProps) => { ); }; -interface Props { - icons: Record) => ReactElement>>; - folder: string; -} - const StyledList = styled("ul", { base: { display: "flex", @@ -78,14 +67,6 @@ const StyledList = styled("ul", { }, }); -const IconList = ({ icons, folder }: Props) => ( - - {Object.keys(icons).map((key) => ( - - ))} - -); - /** * Systemikonene identifiserer handlinger en bruker kan ta på en gitt skjerm, de kan også representere objekter og områder. * @@ -109,22 +90,13 @@ export const IconStory: StoryFn = (args) => { IconStory.storyName = "Icon"; -export const CommonIcons: StoryObj = { - render: () => , -}; - -/** Hver innholdstype i NDLA-systemet har et ikon knyttet til seg. Ikonene er visuelle representasjoner av innholdstypen og skal sammen med innholdstypefargen skape en gjenkjennelseseffekt for brukerne. - * - * Hvis det skal lages nye innholdstypeikoner er det viktig at de kommuniserer innholdstypens kjernefunksjon og hensikt. De må også ha lik visuell utførelse og fremtoning som de eksisterende. Alle innholdstypeikonene er bygget ut fra Material Design sine ikoner; https://material.io/icons/ - **/ -export const ContentTypes: StoryObj = { - render: () => , -}; - -export const Action: StoryObj = { - render: () => , -}; - -export const Editor: StoryObj = { - render: () => , +export const AllIcons: StoryObj = { + render: () => ( + + {Object.keys(icons).map((key) => ( + // @ts-expect-error - this is just a test + + ))} + + ), }; diff --git a/packages/ndla-icons/src/Icon.tsx b/packages/icons/src/Icon.tsx similarity index 78% rename from packages/ndla-icons/src/Icon.tsx rename to packages/icons/src/Icon.tsx index ca19119769..6a93c8c17b 100644 --- a/packages/ndla-icons/src/Icon.tsx +++ b/packages/icons/src/Icon.tsx @@ -6,10 +6,10 @@ * */ -import { ComponentPropsWithRef } from "react"; +import { type ComponentPropsWithRef } from "react"; import { type RecipeVariantProps, cva, css } from "@ndla/styled-system/css"; import { styled } from "@ndla/styled-system/jsx"; -import { JsxStyleProps } from "@ndla/styled-system/types"; +import type { JsxStyleProps } from "@ndla/styled-system/types"; export const iconRecipe = cva({ base: { @@ -47,18 +47,7 @@ export type Props = BaseIconProps & IconVariantProps & JsxStyleProps; const StyledSvg = styled("svg"); -const Icon = ({ - children, - size, - role, - title, - description, - width, - height, - css: cssProp, - "aria-hidden": ariaHidden, - ...props -}: Props) => { +const Icon = ({ children, size, title, description, css: cssProp, "aria-hidden": ariaHidden, ...props }: Props) => { return ( - {title && {title}} - {description && {description}} + {!!title && {title}} + {!!description && {description}} {children} ); diff --git a/packages/ndla-icons/src/common/AccountCircleFill.tsx b/packages/icons/src/icons/AccountCircleFill.tsx similarity index 93% rename from packages/ndla-icons/src/common/AccountCircleFill.tsx rename to packages/icons/src/icons/AccountCircleFill.tsx index 97ae037f7e..78ec14af79 100644 --- a/packages/ndla-icons/src/common/AccountCircleFill.tsx +++ b/packages/icons/src/icons/AccountCircleFill.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const AccountCircleFill = (props: Props) => ( diff --git a/packages/ndla-icons/src/common/AccountCircleLine.tsx b/packages/icons/src/icons/AccountCircleLine.tsx similarity index 94% rename from packages/ndla-icons/src/common/AccountCircleLine.tsx rename to packages/icons/src/icons/AccountCircleLine.tsx index 7a2337b681..e033e2294b 100644 --- a/packages/ndla-icons/src/common/AccountCircleLine.tsx +++ b/packages/icons/src/icons/AccountCircleLine.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const AccountCircleLine = (props: Props) => ( diff --git a/packages/ndla-icons/src/action/AddLine.tsx b/packages/icons/src/icons/AddLine.tsx similarity index 91% rename from packages/ndla-icons/src/action/AddLine.tsx rename to packages/icons/src/icons/AddLine.tsx index f12e576629..a714898e71 100644 --- a/packages/ndla-icons/src/action/AddLine.tsx +++ b/packages/icons/src/icons/AddLine.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const AddLine = (props: Props) => ( diff --git a/packages/ndla-icons/src/common/Additional.tsx b/packages/icons/src/icons/Additional.tsx similarity index 87% rename from packages/ndla-icons/src/common/Additional.tsx rename to packages/icons/src/icons/Additional.tsx index 79d777c233..db25c57739 100644 --- a/packages/ndla-icons/src/common/Additional.tsx +++ b/packages/icons/src/icons/Additional.tsx @@ -1,12 +1,12 @@ /** - * Copyright (c) 2021-present, NDLA. + * Copyright (c) 2024-present, NDLA. * * This source code is licensed under the GPLv3 license found in the * LICENSE file in the root directory of this source tree. * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const Additional = (props: Props) => ( diff --git a/packages/ndla-icons/src/common/AdminFill.tsx b/packages/icons/src/icons/AdminFill.tsx similarity index 92% rename from packages/ndla-icons/src/common/AdminFill.tsx rename to packages/icons/src/icons/AdminFill.tsx index c2b4b1b315..d06d56ed8e 100644 --- a/packages/ndla-icons/src/common/AdminFill.tsx +++ b/packages/icons/src/icons/AdminFill.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const AdminFill = (props: Props) => ( diff --git a/packages/ndla-icons/src/common/AdminLine.tsx b/packages/icons/src/icons/AdminLine.tsx similarity index 93% rename from packages/ndla-icons/src/common/AdminLine.tsx rename to packages/icons/src/icons/AdminLine.tsx index e4afa64c39..b9b504f7a5 100644 --- a/packages/ndla-icons/src/common/AdminLine.tsx +++ b/packages/icons/src/icons/AdminLine.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const AdminLine = (props: Props) => ( diff --git a/packages/ndla-icons/src/common/AlertFill.tsx b/packages/icons/src/icons/AlertFill.tsx similarity index 92% rename from packages/ndla-icons/src/common/AlertFill.tsx rename to packages/icons/src/icons/AlertFill.tsx index 866c8828e6..48be5e3b6b 100644 --- a/packages/ndla-icons/src/common/AlertFill.tsx +++ b/packages/icons/src/icons/AlertFill.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const AlertFill = (props: Props) => ( diff --git a/packages/ndla-icons/src/common/AlertLine.tsx b/packages/icons/src/icons/AlertLine.tsx similarity index 92% rename from packages/ndla-icons/src/common/AlertLine.tsx rename to packages/icons/src/icons/AlertLine.tsx index 94e7e68937..bb70b72850 100644 --- a/packages/ndla-icons/src/common/AlertLine.tsx +++ b/packages/icons/src/icons/AlertLine.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const AlertLine = (props: Props) => ( diff --git a/packages/ndla-icons/src/editor/AlignCenter.tsx b/packages/icons/src/icons/AlignCenter.tsx similarity index 66% rename from packages/ndla-icons/src/editor/AlignCenter.tsx rename to packages/icons/src/icons/AlignCenter.tsx index ea1e751b5a..bab1a4ae04 100644 --- a/packages/ndla-icons/src/editor/AlignCenter.tsx +++ b/packages/icons/src/icons/AlignCenter.tsx @@ -6,15 +6,9 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const AlignCenter = (props: Props) => ( - + ); diff --git a/packages/ndla-icons/src/editor/AlignLeft.tsx b/packages/icons/src/icons/AlignLeft.tsx similarity index 66% rename from packages/ndla-icons/src/editor/AlignLeft.tsx rename to packages/icons/src/icons/AlignLeft.tsx index ce715aae22..d748379599 100644 --- a/packages/ndla-icons/src/editor/AlignLeft.tsx +++ b/packages/icons/src/icons/AlignLeft.tsx @@ -6,15 +6,9 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const AlignLeft = (props: Props) => ( - + ); diff --git a/packages/ndla-icons/src/editor/AlignRight.tsx b/packages/icons/src/icons/AlignRight.tsx similarity index 66% rename from packages/ndla-icons/src/editor/AlignRight.tsx rename to packages/icons/src/icons/AlignRight.tsx index da3e792f54..5c2c402a9c 100644 --- a/packages/ndla-icons/src/editor/AlignRight.tsx +++ b/packages/icons/src/icons/AlignRight.tsx @@ -6,15 +6,9 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const AlignRight = (props: Props) => ( - + ); diff --git a/packages/ndla-icons/src/common/ArrowDownShortLine.tsx b/packages/icons/src/icons/ArrowDownShortLine.tsx similarity index 92% rename from packages/ndla-icons/src/common/ArrowDownShortLine.tsx rename to packages/icons/src/icons/ArrowDownShortLine.tsx index 5b6ace704b..ee834ba713 100644 --- a/packages/ndla-icons/src/common/ArrowDownShortLine.tsx +++ b/packages/icons/src/icons/ArrowDownShortLine.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const ArrowDownShortLine = (props: Props) => ( diff --git a/packages/ndla-icons/src/common/ArrowLeftLine.tsx b/packages/icons/src/icons/ArrowLeftLine.tsx similarity index 91% rename from packages/ndla-icons/src/common/ArrowLeftLine.tsx rename to packages/icons/src/icons/ArrowLeftLine.tsx index 0fbc873bf3..4beee81fcf 100644 --- a/packages/ndla-icons/src/common/ArrowLeftLine.tsx +++ b/packages/icons/src/icons/ArrowLeftLine.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const ArrowLeftLine = (props: Props) => ( diff --git a/packages/ndla-icons/src/action/ArrowLeftRightLine.tsx b/packages/icons/src/icons/ArrowLeftRightLine.tsx similarity index 92% rename from packages/ndla-icons/src/action/ArrowLeftRightLine.tsx rename to packages/icons/src/icons/ArrowLeftRightLine.tsx index 7b29e49d8a..bf1b2f7b87 100644 --- a/packages/ndla-icons/src/action/ArrowLeftRightLine.tsx +++ b/packages/icons/src/icons/ArrowLeftRightLine.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const ArrowLeftRightLine = (props: Props) => ( diff --git a/packages/ndla-icons/src/common/ArrowLeftShortLine.tsx b/packages/icons/src/icons/ArrowLeftShortLine.tsx similarity index 92% rename from packages/ndla-icons/src/common/ArrowLeftShortLine.tsx rename to packages/icons/src/icons/ArrowLeftShortLine.tsx index 742ddc74d4..6042540f74 100644 --- a/packages/ndla-icons/src/common/ArrowLeftShortLine.tsx +++ b/packages/icons/src/icons/ArrowLeftShortLine.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const ArrowLeftShortLine = (props: Props) => ( diff --git a/packages/ndla-icons/src/common/ArrowRightLine.tsx b/packages/icons/src/icons/ArrowRightLine.tsx similarity index 92% rename from packages/ndla-icons/src/common/ArrowRightLine.tsx rename to packages/icons/src/icons/ArrowRightLine.tsx index 198164b4d4..42c79a1264 100644 --- a/packages/ndla-icons/src/common/ArrowRightLine.tsx +++ b/packages/icons/src/icons/ArrowRightLine.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const ArrowRightLine = (props: Props) => ( diff --git a/packages/ndla-icons/src/common/ArrowRightShortLine.tsx b/packages/icons/src/icons/ArrowRightShortLine.tsx similarity index 92% rename from packages/ndla-icons/src/common/ArrowRightShortLine.tsx rename to packages/icons/src/icons/ArrowRightShortLine.tsx index 265f67aff6..eed9c2e774 100644 --- a/packages/ndla-icons/src/common/ArrowRightShortLine.tsx +++ b/packages/icons/src/icons/ArrowRightShortLine.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const ArrowRightShortLine = (props: Props) => ( diff --git a/packages/icons/src/icons/ArrowUpDoubleLine.tsx b/packages/icons/src/icons/ArrowUpDoubleLine.tsx new file mode 100644 index 0000000000..117efaff4c --- /dev/null +++ b/packages/icons/src/icons/ArrowUpDoubleLine.tsx @@ -0,0 +1,15 @@ +/** + * Copyright (c) 2024-present, NDLA. + * + * This source code is licensed under the GPLv3 license found in the + * LICENSE file in the root directory of this source tree. + * + */ +// N.B! AUTOGENERATED FILE. DO NOT EDIT; +import Icon, { type Props } from "../Icon"; +const ArrowUpDoubleLine = (props: Props) => ( + + + +); +export default ArrowUpDoubleLine; diff --git a/packages/ndla-icons/src/common/ArrowUpShortLine.tsx b/packages/icons/src/icons/ArrowUpShortLine.tsx similarity index 91% rename from packages/ndla-icons/src/common/ArrowUpShortLine.tsx rename to packages/icons/src/icons/ArrowUpShortLine.tsx index 13f037d530..cbc5a54e1d 100644 --- a/packages/ndla-icons/src/common/ArrowUpShortLine.tsx +++ b/packages/icons/src/icons/ArrowUpShortLine.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const ArrowUpShortLine = (props: Props) => ( diff --git a/packages/ndla-icons/src/editor/Bold.tsx b/packages/icons/src/icons/Bold.tsx similarity index 92% rename from packages/ndla-icons/src/editor/Bold.tsx rename to packages/icons/src/icons/Bold.tsx index 705e85cb04..96ec67a9d0 100644 --- a/packages/ndla-icons/src/editor/Bold.tsx +++ b/packages/icons/src/icons/Bold.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const Bold = (props: Props) => ( diff --git a/packages/ndla-icons/src/common/BookOpenFill.tsx b/packages/icons/src/icons/BookOpenFill.tsx similarity index 92% rename from packages/ndla-icons/src/common/BookOpenFill.tsx rename to packages/icons/src/icons/BookOpenFill.tsx index 499ceddc31..1b4137bdc9 100644 --- a/packages/ndla-icons/src/common/BookOpenFill.tsx +++ b/packages/icons/src/icons/BookOpenFill.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const BookOpenFill = (props: Props) => ( diff --git a/packages/ndla-icons/src/common/BookOpenLine.tsx b/packages/icons/src/icons/BookOpenLine.tsx similarity index 93% rename from packages/ndla-icons/src/common/BookOpenLine.tsx rename to packages/icons/src/icons/BookOpenLine.tsx index 8b9769e60e..8303e5265b 100644 --- a/packages/ndla-icons/src/common/BookOpenLine.tsx +++ b/packages/icons/src/icons/BookOpenLine.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const BookOpenLine = (props: Props) => ( diff --git a/packages/ndla-icons/src/common/BookReadFill.tsx b/packages/icons/src/icons/BookReadFill.tsx similarity index 92% rename from packages/ndla-icons/src/common/BookReadFill.tsx rename to packages/icons/src/icons/BookReadFill.tsx index cfd59239de..c320e44db0 100644 --- a/packages/ndla-icons/src/common/BookReadFill.tsx +++ b/packages/icons/src/icons/BookReadFill.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const BookReadFill = (props: Props) => ( diff --git a/packages/ndla-icons/src/common/BookReadLine.tsx b/packages/icons/src/icons/BookReadLine.tsx similarity index 92% rename from packages/ndla-icons/src/common/BookReadLine.tsx rename to packages/icons/src/icons/BookReadLine.tsx index 8023efdd82..24e5026d54 100644 --- a/packages/ndla-icons/src/common/BookReadLine.tsx +++ b/packages/icons/src/icons/BookReadLine.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const BookReadLine = (props: Props) => ( diff --git a/packages/ndla-icons/src/action/BookmarkFill.tsx b/packages/icons/src/icons/BookmarkFill.tsx similarity index 92% rename from packages/ndla-icons/src/action/BookmarkFill.tsx rename to packages/icons/src/icons/BookmarkFill.tsx index 8dec66754e..501eb28cd0 100644 --- a/packages/ndla-icons/src/action/BookmarkFill.tsx +++ b/packages/icons/src/icons/BookmarkFill.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const BookmarkFill = (props: Props) => ( diff --git a/packages/ndla-icons/src/action/BookmarkLine.tsx b/packages/icons/src/icons/BookmarkLine.tsx similarity index 92% rename from packages/ndla-icons/src/action/BookmarkLine.tsx rename to packages/icons/src/icons/BookmarkLine.tsx index 2e7e19324a..87031ce35c 100644 --- a/packages/ndla-icons/src/action/BookmarkLine.tsx +++ b/packages/icons/src/icons/BookmarkLine.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const BookmarkLine = (props: Props) => ( diff --git a/packages/ndla-icons/src/common/BroadcastFill.tsx b/packages/icons/src/icons/BroadcastFill.tsx similarity index 94% rename from packages/ndla-icons/src/common/BroadcastFill.tsx rename to packages/icons/src/icons/BroadcastFill.tsx index 171cd08f5b..8f384a36de 100644 --- a/packages/ndla-icons/src/common/BroadcastFill.tsx +++ b/packages/icons/src/icons/BroadcastFill.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const BroadcastFill = (props: Props) => ( diff --git a/packages/ndla-icons/src/common/BroadcastLine.tsx b/packages/icons/src/icons/BroadcastLine.tsx similarity index 94% rename from packages/ndla-icons/src/common/BroadcastLine.tsx rename to packages/icons/src/icons/BroadcastLine.tsx index 4720ed9152..0099c37548 100644 --- a/packages/ndla-icons/src/common/BroadcastLine.tsx +++ b/packages/icons/src/icons/BroadcastLine.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const BroadcastLine = (props: Props) => ( diff --git a/packages/ndla-icons/src/editor/BrushLine.tsx b/packages/icons/src/icons/BrushLine.tsx similarity index 94% rename from packages/ndla-icons/src/editor/BrushLine.tsx rename to packages/icons/src/icons/BrushLine.tsx index 296e4a5fc5..b1498681b1 100644 --- a/packages/ndla-icons/src/editor/BrushLine.tsx +++ b/packages/icons/src/icons/BrushLine.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const BrushLine = (props: Props) => ( diff --git a/packages/ndla-icons/src/editor/CalculatorFill.tsx b/packages/icons/src/icons/CalculatorFill.tsx similarity index 93% rename from packages/ndla-icons/src/editor/CalculatorFill.tsx rename to packages/icons/src/icons/CalculatorFill.tsx index ab0db2cd3b..68867c9479 100644 --- a/packages/ndla-icons/src/editor/CalculatorFill.tsx +++ b/packages/icons/src/icons/CalculatorFill.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const CalculatorFill = (props: Props) => ( diff --git a/packages/ndla-icons/src/editor/CalculatorLine.tsx b/packages/icons/src/icons/CalculatorLine.tsx similarity index 93% rename from packages/ndla-icons/src/editor/CalculatorLine.tsx rename to packages/icons/src/icons/CalculatorLine.tsx index e4ba301599..bec6e7eae0 100644 --- a/packages/ndla-icons/src/editor/CalculatorLine.tsx +++ b/packages/icons/src/icons/CalculatorLine.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const CalculatorLine = (props: Props) => ( diff --git a/packages/ndla-icons/src/editor/CalendarFill.tsx b/packages/icons/src/icons/CalendarFill.tsx similarity index 92% rename from packages/ndla-icons/src/editor/CalendarFill.tsx rename to packages/icons/src/icons/CalendarFill.tsx index 735bee7212..7fde4653a7 100644 --- a/packages/ndla-icons/src/editor/CalendarFill.tsx +++ b/packages/icons/src/icons/CalendarFill.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const CalendarFill = (props: Props) => ( diff --git a/packages/ndla-icons/src/editor/CalendarLine.tsx b/packages/icons/src/icons/CalendarLine.tsx similarity index 92% rename from packages/ndla-icons/src/editor/CalendarLine.tsx rename to packages/icons/src/icons/CalendarLine.tsx index 866849f77a..52ebd5039a 100644 --- a/packages/ndla-icons/src/editor/CalendarLine.tsx +++ b/packages/icons/src/icons/CalendarLine.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const CalendarLine = (props: Props) => ( diff --git a/packages/ndla-icons/src/editor/CameraFill.tsx b/packages/icons/src/icons/CameraFill.tsx similarity index 92% rename from packages/ndla-icons/src/editor/CameraFill.tsx rename to packages/icons/src/icons/CameraFill.tsx index ecbdcfe7bb..c2126e77b6 100644 --- a/packages/ndla-icons/src/editor/CameraFill.tsx +++ b/packages/icons/src/icons/CameraFill.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const CameraFill = (props: Props) => ( diff --git a/packages/ndla-icons/src/editor/CameraLine.tsx b/packages/icons/src/icons/CameraLine.tsx similarity index 93% rename from packages/ndla-icons/src/editor/CameraLine.tsx rename to packages/icons/src/icons/CameraLine.tsx index 5d41146fc6..4d568508de 100644 --- a/packages/ndla-icons/src/editor/CameraLine.tsx +++ b/packages/icons/src/icons/CameraLine.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const CameraLine = (props: Props) => ( diff --git a/packages/ndla-icons/src/common/ChatHeartFill.tsx b/packages/icons/src/icons/ChatHeartFill.tsx similarity index 93% rename from packages/ndla-icons/src/common/ChatHeartFill.tsx rename to packages/icons/src/icons/ChatHeartFill.tsx index f02894c6ed..e0e450031d 100644 --- a/packages/ndla-icons/src/common/ChatHeartFill.tsx +++ b/packages/icons/src/icons/ChatHeartFill.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const ChatHeartFill = (props: Props) => ( diff --git a/packages/ndla-icons/src/common/ChatHeartLine.tsx b/packages/icons/src/icons/ChatHeartLine.tsx similarity index 93% rename from packages/ndla-icons/src/common/ChatHeartLine.tsx rename to packages/icons/src/icons/ChatHeartLine.tsx index b27bce9a06..712da58147 100644 --- a/packages/ndla-icons/src/common/ChatHeartLine.tsx +++ b/packages/icons/src/icons/ChatHeartLine.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const ChatHeartLine = (props: Props) => ( diff --git a/packages/ndla-icons/src/editor/ChatLine.tsx b/packages/icons/src/icons/ChatLine.tsx similarity index 92% rename from packages/ndla-icons/src/editor/ChatLine.tsx rename to packages/icons/src/icons/ChatLine.tsx index 224fa23c1a..a30930945e 100644 --- a/packages/ndla-icons/src/editor/ChatLine.tsx +++ b/packages/icons/src/icons/ChatLine.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const ChatLine = (props: Props) => ( diff --git a/packages/ndla-icons/src/editor/CheckLine.tsx b/packages/icons/src/icons/CheckLine.tsx similarity index 91% rename from packages/ndla-icons/src/editor/CheckLine.tsx rename to packages/icons/src/icons/CheckLine.tsx index 7f3fe82725..f40a1e79c5 100644 --- a/packages/ndla-icons/src/editor/CheckLine.tsx +++ b/packages/icons/src/icons/CheckLine.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const CheckLine = (props: Props) => ( diff --git a/packages/ndla-icons/src/editor/CheckboxCircleFill.tsx b/packages/icons/src/icons/CheckboxCircleFill.tsx similarity index 92% rename from packages/ndla-icons/src/editor/CheckboxCircleFill.tsx rename to packages/icons/src/icons/CheckboxCircleFill.tsx index 30641c0248..bf0d921292 100644 --- a/packages/ndla-icons/src/editor/CheckboxCircleFill.tsx +++ b/packages/icons/src/icons/CheckboxCircleFill.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const CheckboxCircleFill = (props: Props) => ( diff --git a/packages/ndla-icons/src/editor/CheckboxCircleLine.tsx b/packages/icons/src/icons/CheckboxCircleLine.tsx similarity index 92% rename from packages/ndla-icons/src/editor/CheckboxCircleLine.tsx rename to packages/icons/src/icons/CheckboxCircleLine.tsx index a43a4bd6cb..ddfcb2d3f0 100644 --- a/packages/ndla-icons/src/editor/CheckboxCircleLine.tsx +++ b/packages/icons/src/icons/CheckboxCircleLine.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const CheckboxCircleLine = (props: Props) => ( diff --git a/packages/ndla-icons/src/editor/CheckboxFill.tsx b/packages/icons/src/icons/CheckboxFill.tsx similarity index 92% rename from packages/ndla-icons/src/editor/CheckboxFill.tsx rename to packages/icons/src/icons/CheckboxFill.tsx index 6df1399ddc..3b7d91f03b 100644 --- a/packages/ndla-icons/src/editor/CheckboxFill.tsx +++ b/packages/icons/src/icons/CheckboxFill.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const CheckboxFill = (props: Props) => ( diff --git a/packages/ndla-icons/src/editor/CheckboxLine.tsx b/packages/icons/src/icons/CheckboxLine.tsx similarity index 92% rename from packages/ndla-icons/src/editor/CheckboxLine.tsx rename to packages/icons/src/icons/CheckboxLine.tsx index 7011718c71..03d3bb3349 100644 --- a/packages/ndla-icons/src/editor/CheckboxLine.tsx +++ b/packages/icons/src/icons/CheckboxLine.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const CheckboxLine = (props: Props) => ( diff --git a/packages/ndla-icons/src/common/CircleFill.tsx b/packages/icons/src/icons/CircleFill.tsx similarity index 91% rename from packages/ndla-icons/src/common/CircleFill.tsx rename to packages/icons/src/icons/CircleFill.tsx index 163486e11a..6f370d86b7 100644 --- a/packages/ndla-icons/src/common/CircleFill.tsx +++ b/packages/icons/src/icons/CircleFill.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const CircleFill = (props: Props) => ( diff --git a/packages/ndla-icons/src/editor/CircleLine.tsx b/packages/icons/src/icons/CircleLine.tsx similarity index 92% rename from packages/ndla-icons/src/editor/CircleLine.tsx rename to packages/icons/src/icons/CircleLine.tsx index f6bc5b4c7e..6dc462347e 100644 --- a/packages/ndla-icons/src/editor/CircleLine.tsx +++ b/packages/icons/src/icons/CircleLine.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const CircleLine = (props: Props) => ( diff --git a/packages/ndla-icons/src/action/CloseLine.tsx b/packages/icons/src/icons/CloseLine.tsx similarity index 92% rename from packages/ndla-icons/src/action/CloseLine.tsx rename to packages/icons/src/icons/CloseLine.tsx index e78972963f..3d7533cd30 100644 --- a/packages/ndla-icons/src/action/CloseLine.tsx +++ b/packages/icons/src/icons/CloseLine.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const CloseLine = (props: Props) => ( diff --git a/packages/ndla-icons/src/editor/CodeView.tsx b/packages/icons/src/icons/CodeView.tsx similarity index 92% rename from packages/ndla-icons/src/editor/CodeView.tsx rename to packages/icons/src/icons/CodeView.tsx index 6918262836..64868b41bd 100644 --- a/packages/ndla-icons/src/editor/CodeView.tsx +++ b/packages/icons/src/icons/CodeView.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const CodeView = (props: Props) => ( diff --git a/packages/ndla-icons/src/common/CompassFill.tsx b/packages/icons/src/icons/CompassFill.tsx similarity index 92% rename from packages/ndla-icons/src/common/CompassFill.tsx rename to packages/icons/src/icons/CompassFill.tsx index 9f2a12a31c..33d89224fe 100644 --- a/packages/ndla-icons/src/common/CompassFill.tsx +++ b/packages/icons/src/icons/CompassFill.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const CompassFill = (props: Props) => ( diff --git a/packages/ndla-icons/src/common/CompassLine.tsx b/packages/icons/src/icons/CompassLine.tsx similarity index 92% rename from packages/ndla-icons/src/common/CompassLine.tsx rename to packages/icons/src/icons/CompassLine.tsx index 6d0dfb7859..723a6f03a1 100644 --- a/packages/ndla-icons/src/common/CompassLine.tsx +++ b/packages/icons/src/icons/CompassLine.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const CompassLine = (props: Props) => ( diff --git a/packages/ndla-icons/src/editor/CopyrightFill.tsx b/packages/icons/src/icons/CopyrightFill.tsx similarity index 92% rename from packages/ndla-icons/src/editor/CopyrightFill.tsx rename to packages/icons/src/icons/CopyrightFill.tsx index 88645e62ef..428a6f43ee 100644 --- a/packages/ndla-icons/src/editor/CopyrightFill.tsx +++ b/packages/icons/src/icons/CopyrightFill.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const CopyrightFill = (props: Props) => ( diff --git a/packages/ndla-icons/src/editor/CopyrightLine.tsx b/packages/icons/src/icons/CopyrightLine.tsx similarity index 92% rename from packages/ndla-icons/src/editor/CopyrightLine.tsx rename to packages/icons/src/icons/CopyrightLine.tsx index 499e396584..455fc7906e 100644 --- a/packages/ndla-icons/src/editor/CopyrightLine.tsx +++ b/packages/icons/src/icons/CopyrightLine.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const CopyrightLine = (props: Props) => ( diff --git a/packages/ndla-icons/src/common/CornerDownLeftLine.tsx b/packages/icons/src/icons/CornerDownLeftLine.tsx similarity index 92% rename from packages/ndla-icons/src/common/CornerDownLeftLine.tsx rename to packages/icons/src/icons/CornerDownLeftLine.tsx index 4b59c41521..4bef042b53 100644 --- a/packages/ndla-icons/src/common/CornerDownLeftLine.tsx +++ b/packages/icons/src/icons/CornerDownLeftLine.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const CornerDownLeftLine = (props: Props) => ( diff --git a/packages/icons/src/icons/CornerDownRightLine.tsx b/packages/icons/src/icons/CornerDownRightLine.tsx new file mode 100644 index 0000000000..4f251b9964 --- /dev/null +++ b/packages/icons/src/icons/CornerDownRightLine.tsx @@ -0,0 +1,15 @@ +/** + * Copyright (c) 2024-present, NDLA. + * + * This source code is licensed under the GPLv3 license found in the + * LICENSE file in the root directory of this source tree. + * + */ +// N.B! AUTOGENERATED FILE. DO NOT EDIT; +import Icon, { type Props } from "../Icon"; +const CornerDownRightLine = (props: Props) => ( + + + +); +export default CornerDownRightLine; diff --git a/packages/ndla-icons/src/editor/CropFill.tsx b/packages/icons/src/icons/CropFill.tsx similarity index 91% rename from packages/ndla-icons/src/editor/CropFill.tsx rename to packages/icons/src/icons/CropFill.tsx index c98f2821b5..da82aa6f92 100644 --- a/packages/ndla-icons/src/editor/CropFill.tsx +++ b/packages/icons/src/icons/CropFill.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const CropFill = (props: Props) => ( diff --git a/packages/ndla-icons/src/editor/CropLine.tsx b/packages/icons/src/icons/CropLine.tsx similarity index 92% rename from packages/ndla-icons/src/editor/CropLine.tsx rename to packages/icons/src/icons/CropLine.tsx index 9fcb645cf0..e9b26bbaff 100644 --- a/packages/ndla-icons/src/editor/CropLine.tsx +++ b/packages/icons/src/icons/CropLine.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const CropLine = (props: Props) => ( diff --git a/packages/ndla-icons/src/action/DeleteBinFill.tsx b/packages/icons/src/icons/DeleteBinFill.tsx similarity index 92% rename from packages/ndla-icons/src/action/DeleteBinFill.tsx rename to packages/icons/src/icons/DeleteBinFill.tsx index 381ab28ce7..1d9bb64041 100644 --- a/packages/ndla-icons/src/action/DeleteBinFill.tsx +++ b/packages/icons/src/icons/DeleteBinFill.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const DeleteBinFill = (props: Props) => ( diff --git a/packages/ndla-icons/src/action/DeleteBinLine.tsx b/packages/icons/src/icons/DeleteBinLine.tsx similarity index 92% rename from packages/ndla-icons/src/action/DeleteBinLine.tsx rename to packages/icons/src/icons/DeleteBinLine.tsx index 54cfc404bc..c74b8e670e 100644 --- a/packages/ndla-icons/src/action/DeleteBinLine.tsx +++ b/packages/icons/src/icons/DeleteBinLine.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const DeleteBinLine = (props: Props) => ( diff --git a/packages/ndla-icons/src/editor/DoorLockFill.tsx b/packages/icons/src/icons/DoorLockFill.tsx similarity index 92% rename from packages/ndla-icons/src/editor/DoorLockFill.tsx rename to packages/icons/src/icons/DoorLockFill.tsx index 4ffa5cf89c..f9cfcb9d36 100644 --- a/packages/ndla-icons/src/editor/DoorLockFill.tsx +++ b/packages/icons/src/icons/DoorLockFill.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const DoorLockFill = (props: Props) => ( diff --git a/packages/ndla-icons/src/editor/DoorLockLine.tsx b/packages/icons/src/icons/DoorLockLine.tsx similarity index 92% rename from packages/ndla-icons/src/editor/DoorLockLine.tsx rename to packages/icons/src/icons/DoorLockLine.tsx index 30057644e4..adcd889cc0 100644 --- a/packages/ndla-icons/src/editor/DoorLockLine.tsx +++ b/packages/icons/src/icons/DoorLockLine.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const DoorLockLine = (props: Props) => ( diff --git a/packages/ndla-icons/src/common/DownloadLine.tsx b/packages/icons/src/icons/DownloadLine.tsx similarity index 92% rename from packages/ndla-icons/src/common/DownloadLine.tsx rename to packages/icons/src/icons/DownloadLine.tsx index d66fc1b737..a11ff5d202 100644 --- a/packages/ndla-icons/src/common/DownloadLine.tsx +++ b/packages/icons/src/icons/DownloadLine.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const DownloadLine = (props: Props) => ( diff --git a/packages/ndla-icons/src/editor/Draggable.tsx b/packages/icons/src/icons/Draggable.tsx similarity index 93% rename from packages/ndla-icons/src/editor/Draggable.tsx rename to packages/icons/src/icons/Draggable.tsx index 8ef352f61a..3b2254c5fe 100644 --- a/packages/ndla-icons/src/editor/Draggable.tsx +++ b/packages/icons/src/icons/Draggable.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const Draggable = (props: Props) => ( diff --git a/packages/ndla-icons/src/common/ErrorWarningFill.tsx b/packages/icons/src/icons/ErrorWarningFill.tsx similarity index 92% rename from packages/ndla-icons/src/common/ErrorWarningFill.tsx rename to packages/icons/src/icons/ErrorWarningFill.tsx index ad2c97b59c..da48a64c82 100644 --- a/packages/ndla-icons/src/common/ErrorWarningFill.tsx +++ b/packages/icons/src/icons/ErrorWarningFill.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const ErrorWarningFill = (props: Props) => ( diff --git a/packages/ndla-icons/src/common/ErrorWarningLine.tsx b/packages/icons/src/icons/ErrorWarningLine.tsx similarity index 92% rename from packages/ndla-icons/src/common/ErrorWarningLine.tsx rename to packages/icons/src/icons/ErrorWarningLine.tsx index 1651a081e2..c8c40f5f29 100644 --- a/packages/ndla-icons/src/common/ErrorWarningLine.tsx +++ b/packages/icons/src/icons/ErrorWarningLine.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const ErrorWarningLine = (props: Props) => ( diff --git a/packages/ndla-icons/src/editor/ExpandDiagonalLine.tsx b/packages/icons/src/icons/ExpandDiagonalLine.tsx similarity index 92% rename from packages/ndla-icons/src/editor/ExpandDiagonalLine.tsx rename to packages/icons/src/icons/ExpandDiagonalLine.tsx index 6e3a069e40..71b1f38c04 100644 --- a/packages/ndla-icons/src/editor/ExpandDiagonalLine.tsx +++ b/packages/icons/src/icons/ExpandDiagonalLine.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const ExpandDiagonalLine = (props: Props) => ( diff --git a/packages/ndla-icons/src/editor/ExpandUpDownLine.tsx b/packages/icons/src/icons/ExpandUpDownLine.tsx similarity index 92% rename from packages/ndla-icons/src/editor/ExpandUpDownLine.tsx rename to packages/icons/src/icons/ExpandUpDownLine.tsx index e146769ee2..ce1830a4b6 100644 --- a/packages/ndla-icons/src/editor/ExpandUpDownLine.tsx +++ b/packages/icons/src/icons/ExpandUpDownLine.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const ExpandUpDownLine = (props: Props) => ( diff --git a/packages/ndla-icons/src/common/ExternalLinkLine.tsx b/packages/icons/src/icons/ExternalLinkLine.tsx similarity index 73% rename from packages/ndla-icons/src/common/ExternalLinkLine.tsx rename to packages/icons/src/icons/ExternalLinkLine.tsx index 61795ff49a..7f379a5d78 100644 --- a/packages/ndla-icons/src/common/ExternalLinkLine.tsx +++ b/packages/icons/src/icons/ExternalLinkLine.tsx @@ -6,9 +6,9 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const ExternalLinkLine = (props: Props) => ( - + ); diff --git a/packages/ndla-icons/src/editor/EyeFill.tsx b/packages/icons/src/icons/EyeFill.tsx similarity index 92% rename from packages/ndla-icons/src/editor/EyeFill.tsx rename to packages/icons/src/icons/EyeFill.tsx index fd7d42d838..0ef259da06 100644 --- a/packages/ndla-icons/src/editor/EyeFill.tsx +++ b/packages/icons/src/icons/EyeFill.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const EyeFill = (props: Props) => ( diff --git a/packages/ndla-icons/src/editor/EyeLine.tsx b/packages/icons/src/icons/EyeLine.tsx similarity index 93% rename from packages/ndla-icons/src/editor/EyeLine.tsx rename to packages/icons/src/icons/EyeLine.tsx index 19d7aa5321..47e15f75de 100644 --- a/packages/ndla-icons/src/editor/EyeLine.tsx +++ b/packages/icons/src/icons/EyeLine.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const EyeLine = (props: Props) => ( diff --git a/packages/ndla-icons/src/common/FacebookCircleFill.tsx b/packages/icons/src/icons/FacebookCircleFill.tsx similarity index 93% rename from packages/ndla-icons/src/common/FacebookCircleFill.tsx rename to packages/icons/src/icons/FacebookCircleFill.tsx index 8a32bb674e..b69bdead12 100644 --- a/packages/ndla-icons/src/common/FacebookCircleFill.tsx +++ b/packages/icons/src/icons/FacebookCircleFill.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const FacebookCircleFill = (props: Props) => ( diff --git a/packages/ndla-icons/src/common/FacebookCircleLine.tsx b/packages/icons/src/icons/FacebookCircleLine.tsx similarity index 94% rename from packages/ndla-icons/src/common/FacebookCircleLine.tsx rename to packages/icons/src/icons/FacebookCircleLine.tsx index 5d20302672..68c500c39a 100644 --- a/packages/ndla-icons/src/common/FacebookCircleLine.tsx +++ b/packages/icons/src/icons/FacebookCircleLine.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const FacebookCircleLine = (props: Props) => ( diff --git a/packages/ndla-icons/src/common/Feide.tsx b/packages/icons/src/icons/Feide.tsx similarity index 87% rename from packages/ndla-icons/src/common/Feide.tsx rename to packages/icons/src/icons/Feide.tsx index 775ae371c9..6bf803ca3d 100644 --- a/packages/ndla-icons/src/common/Feide.tsx +++ b/packages/icons/src/icons/Feide.tsx @@ -1,12 +1,12 @@ /** - * Copyright (c) 2021-present, NDLA. + * Copyright (c) 2024-present, NDLA. * * This source code is licensed under the GPLv3 license found in the * LICENSE file in the root directory of this source tree. * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const Feide = (props: Props) => ( diff --git a/packages/ndla-icons/src/action/FileCopyFill.tsx b/packages/icons/src/icons/FileCopyFill.tsx similarity index 92% rename from packages/ndla-icons/src/action/FileCopyFill.tsx rename to packages/icons/src/icons/FileCopyFill.tsx index c3efb6f9b1..5f2cd30bc9 100644 --- a/packages/ndla-icons/src/action/FileCopyFill.tsx +++ b/packages/icons/src/icons/FileCopyFill.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const FileCopyFill = (props: Props) => ( diff --git a/packages/ndla-icons/src/action/FileCopyLine.tsx b/packages/icons/src/icons/FileCopyLine.tsx similarity index 92% rename from packages/ndla-icons/src/action/FileCopyLine.tsx rename to packages/icons/src/icons/FileCopyLine.tsx index 7e76bfd08a..faa4c57565 100644 --- a/packages/ndla-icons/src/action/FileCopyLine.tsx +++ b/packages/icons/src/icons/FileCopyLine.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const FileCopyLine = (props: Props) => ( diff --git a/packages/ndla-icons/src/common/FileEditFill.tsx b/packages/icons/src/icons/FileEditFill.tsx similarity index 93% rename from packages/ndla-icons/src/common/FileEditFill.tsx rename to packages/icons/src/icons/FileEditFill.tsx index dec44e6870..00510590b3 100644 --- a/packages/ndla-icons/src/common/FileEditFill.tsx +++ b/packages/icons/src/icons/FileEditFill.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const FileEditFill = (props: Props) => ( diff --git a/packages/ndla-icons/src/common/FileEditLine.tsx b/packages/icons/src/icons/FileEditLine.tsx similarity index 92% rename from packages/ndla-icons/src/common/FileEditLine.tsx rename to packages/icons/src/icons/FileEditLine.tsx index 6511b48810..116665b9ec 100644 --- a/packages/ndla-icons/src/common/FileEditLine.tsx +++ b/packages/icons/src/icons/FileEditLine.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const FileEditLine = (props: Props) => ( diff --git a/packages/ndla-icons/src/editor/FileListFill.tsx b/packages/icons/src/icons/FileListFill.tsx similarity index 92% rename from packages/ndla-icons/src/editor/FileListFill.tsx rename to packages/icons/src/icons/FileListFill.tsx index 13ec50355d..c0cb786414 100644 --- a/packages/ndla-icons/src/editor/FileListFill.tsx +++ b/packages/icons/src/icons/FileListFill.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const FileListFill = (props: Props) => ( diff --git a/packages/ndla-icons/src/editor/FileListLine.tsx b/packages/icons/src/icons/FileListLine.tsx similarity index 92% rename from packages/ndla-icons/src/editor/FileListLine.tsx rename to packages/icons/src/icons/FileListLine.tsx index fc1c10ef7a..532ca7d77b 100644 --- a/packages/ndla-icons/src/editor/FileListLine.tsx +++ b/packages/icons/src/icons/FileListLine.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const FileListLine = (props: Props) => ( diff --git a/packages/ndla-icons/src/action/FileMarkedFill.tsx b/packages/icons/src/icons/FileMarkedFill.tsx similarity index 92% rename from packages/ndla-icons/src/action/FileMarkedFill.tsx rename to packages/icons/src/icons/FileMarkedFill.tsx index bc5b71c5ba..aad3492a59 100644 --- a/packages/ndla-icons/src/action/FileMarkedFill.tsx +++ b/packages/icons/src/icons/FileMarkedFill.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const FileMarkedFill = (props: Props) => ( diff --git a/packages/ndla-icons/src/action/FileMarkedLine.tsx b/packages/icons/src/icons/FileMarkedLine.tsx similarity index 92% rename from packages/ndla-icons/src/action/FileMarkedLine.tsx rename to packages/icons/src/icons/FileMarkedLine.tsx index 4b98cbcd72..1e53a3e9bf 100644 --- a/packages/ndla-icons/src/action/FileMarkedLine.tsx +++ b/packages/icons/src/icons/FileMarkedLine.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const FileMarkedLine = (props: Props) => ( diff --git a/packages/ndla-icons/src/common/FilePdfFill.tsx b/packages/icons/src/icons/FilePdfFill.tsx similarity index 92% rename from packages/ndla-icons/src/common/FilePdfFill.tsx rename to packages/icons/src/icons/FilePdfFill.tsx index 75a82ab16d..58954acde3 100644 --- a/packages/ndla-icons/src/common/FilePdfFill.tsx +++ b/packages/icons/src/icons/FilePdfFill.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const FilePdfFill = (props: Props) => ( diff --git a/packages/ndla-icons/src/common/FilePdfLine.tsx b/packages/icons/src/icons/FilePdfLine.tsx similarity index 92% rename from packages/ndla-icons/src/common/FilePdfLine.tsx rename to packages/icons/src/icons/FilePdfLine.tsx index 3ae88a51f4..ba8d282875 100644 --- a/packages/ndla-icons/src/common/FilePdfLine.tsx +++ b/packages/icons/src/icons/FilePdfLine.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const FilePdfLine = (props: Props) => ( diff --git a/packages/ndla-icons/src/common/FileTextFill.tsx b/packages/icons/src/icons/FileTextFill.tsx similarity index 92% rename from packages/ndla-icons/src/common/FileTextFill.tsx rename to packages/icons/src/icons/FileTextFill.tsx index 28eb047e56..f160fe7d18 100644 --- a/packages/ndla-icons/src/common/FileTextFill.tsx +++ b/packages/icons/src/icons/FileTextFill.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const FileTextFill = (props: Props) => ( diff --git a/packages/ndla-icons/src/common/FileTextLine.tsx b/packages/icons/src/icons/FileTextLine.tsx similarity index 92% rename from packages/ndla-icons/src/common/FileTextLine.tsx rename to packages/icons/src/icons/FileTextLine.tsx index 64d141ef3c..346be80f6f 100644 --- a/packages/ndla-icons/src/common/FileTextLine.tsx +++ b/packages/icons/src/icons/FileTextLine.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const FileTextLine = (props: Props) => ( diff --git a/packages/icons/src/icons/FocusMode.tsx b/packages/icons/src/icons/FocusMode.tsx new file mode 100644 index 0000000000..4d2a46fdd0 --- /dev/null +++ b/packages/icons/src/icons/FocusMode.tsx @@ -0,0 +1,15 @@ +/** + * Copyright (c) 2024-present, NDLA. + * + * This source code is licensed under the GPLv3 license found in the + * LICENSE file in the root directory of this source tree. + * + */ +// N.B! AUTOGENERATED FILE. DO NOT EDIT; +import Icon, { type Props } from "../Icon"; +const FocusMode = (props: Props) => ( + + + +); +export default FocusMode; diff --git a/packages/ndla-icons/src/editor/FolderFill.tsx b/packages/icons/src/icons/FolderFill.tsx similarity index 92% rename from packages/ndla-icons/src/editor/FolderFill.tsx rename to packages/icons/src/icons/FolderFill.tsx index 7cfee5b476..fc8de4e5bb 100644 --- a/packages/ndla-icons/src/editor/FolderFill.tsx +++ b/packages/icons/src/icons/FolderFill.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const FolderFill = (props: Props) => ( diff --git a/packages/ndla-icons/src/editor/FolderLine.tsx b/packages/icons/src/icons/FolderLine.tsx similarity index 92% rename from packages/ndla-icons/src/editor/FolderLine.tsx rename to packages/icons/src/icons/FolderLine.tsx index 3da84e2597..9f6464ae15 100644 --- a/packages/ndla-icons/src/editor/FolderLine.tsx +++ b/packages/icons/src/icons/FolderLine.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const FolderLine = (props: Props) => ( diff --git a/packages/ndla-icons/src/contentType/FolderUserFill.tsx b/packages/icons/src/icons/FolderUserFill.tsx similarity index 93% rename from packages/ndla-icons/src/contentType/FolderUserFill.tsx rename to packages/icons/src/icons/FolderUserFill.tsx index 8d8467115d..73f6b45cce 100644 --- a/packages/ndla-icons/src/contentType/FolderUserFill.tsx +++ b/packages/icons/src/icons/FolderUserFill.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const FolderUserFill = (props: Props) => ( diff --git a/packages/ndla-icons/src/contentType/FolderUserLine.tsx b/packages/icons/src/icons/FolderUserLine.tsx similarity index 93% rename from packages/ndla-icons/src/contentType/FolderUserLine.tsx rename to packages/icons/src/icons/FolderUserLine.tsx index 9482518b75..66b50d3ac3 100644 --- a/packages/ndla-icons/src/contentType/FolderUserLine.tsx +++ b/packages/icons/src/icons/FolderUserLine.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const FolderUserLine = (props: Props) => ( diff --git a/packages/ndla-icons/src/common/Forum.tsx b/packages/icons/src/icons/Forum.tsx similarity index 92% rename from packages/ndla-icons/src/common/Forum.tsx rename to packages/icons/src/icons/Forum.tsx index 4bdc8ababa..a599fb3948 100644 --- a/packages/ndla-icons/src/common/Forum.tsx +++ b/packages/icons/src/icons/Forum.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const Forum = (props: Props) => ( diff --git a/packages/ndla-icons/src/common/ForumOutlined.tsx b/packages/icons/src/icons/ForumOutlined.tsx similarity index 93% rename from packages/ndla-icons/src/common/ForumOutlined.tsx rename to packages/icons/src/icons/ForumOutlined.tsx index c942096b52..14f05a39fd 100644 --- a/packages/ndla-icons/src/common/ForumOutlined.tsx +++ b/packages/icons/src/icons/ForumOutlined.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const ForumOutlined = (props: Props) => ( diff --git a/packages/ndla-icons/src/action/Forward15Line.tsx b/packages/icons/src/icons/Forward15Line.tsx similarity index 93% rename from packages/ndla-icons/src/action/Forward15Line.tsx rename to packages/icons/src/icons/Forward15Line.tsx index d4d2cb6ec1..5342c96e77 100644 --- a/packages/ndla-icons/src/action/Forward15Line.tsx +++ b/packages/icons/src/icons/Forward15Line.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const Forward15Line = (props: Props) => ( diff --git a/packages/ndla-icons/src/editor/GlobalFill.tsx b/packages/icons/src/icons/GlobalFill.tsx similarity index 94% rename from packages/ndla-icons/src/editor/GlobalFill.tsx rename to packages/icons/src/icons/GlobalFill.tsx index 947d4f6ec2..e2766de829 100644 --- a/packages/ndla-icons/src/editor/GlobalFill.tsx +++ b/packages/icons/src/icons/GlobalFill.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const GlobalFill = (props: Props) => ( diff --git a/packages/ndla-icons/src/editor/GlobalLine.tsx b/packages/icons/src/icons/GlobalLine.tsx similarity index 94% rename from packages/ndla-icons/src/editor/GlobalLine.tsx rename to packages/icons/src/icons/GlobalLine.tsx index e16d8d8e47..443a96c916 100644 --- a/packages/ndla-icons/src/editor/GlobalLine.tsx +++ b/packages/icons/src/icons/GlobalLine.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const GlobalLine = (props: Props) => ( diff --git a/packages/ndla-icons/src/editor/H5P.tsx b/packages/icons/src/icons/H5P.tsx similarity index 83% rename from packages/ndla-icons/src/editor/H5P.tsx rename to packages/icons/src/icons/H5P.tsx index b8a82cb027..ada5ca99c0 100644 --- a/packages/ndla-icons/src/editor/H5P.tsx +++ b/packages/icons/src/icons/H5P.tsx @@ -1,14 +1,14 @@ /** - * Copyright (c) 2021-present, NDLA. + * Copyright (c) 2024-present, NDLA. * * This source code is licensed under the GPLv3 license found in the * LICENSE file in the root directory of this source tree. * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const H5P = (props: Props) => ( - + diff --git a/packages/ndla-icons/src/common/HashTag.tsx b/packages/icons/src/icons/HashTag.tsx similarity index 93% rename from packages/ndla-icons/src/common/HashTag.tsx rename to packages/icons/src/icons/HashTag.tsx index b707bda1b9..87b6fd6464 100644 --- a/packages/ndla-icons/src/common/HashTag.tsx +++ b/packages/icons/src/icons/HashTag.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const HashTag = (props: Props) => ( diff --git a/packages/ndla-icons/src/common/HeadphoneFill.tsx b/packages/icons/src/icons/HeadphoneFill.tsx similarity index 92% rename from packages/ndla-icons/src/common/HeadphoneFill.tsx rename to packages/icons/src/icons/HeadphoneFill.tsx index 7232eebffc..00d0d62863 100644 --- a/packages/ndla-icons/src/common/HeadphoneFill.tsx +++ b/packages/icons/src/icons/HeadphoneFill.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const HeadphoneFill = (props: Props) => ( diff --git a/packages/ndla-icons/src/common/HeadphoneLine.tsx b/packages/icons/src/icons/HeadphoneLine.tsx similarity index 93% rename from packages/ndla-icons/src/common/HeadphoneLine.tsx rename to packages/icons/src/icons/HeadphoneLine.tsx index b9e08b3468..074ae08a0f 100644 --- a/packages/ndla-icons/src/common/HeadphoneLine.tsx +++ b/packages/icons/src/icons/HeadphoneLine.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const HeadphoneLine = (props: Props) => ( diff --git a/packages/ndla-icons/src/action/HeartFill.tsx b/packages/icons/src/icons/HeartFill.tsx similarity index 92% rename from packages/ndla-icons/src/action/HeartFill.tsx rename to packages/icons/src/icons/HeartFill.tsx index c43248c1f1..3c8f818b3d 100644 --- a/packages/ndla-icons/src/action/HeartFill.tsx +++ b/packages/icons/src/icons/HeartFill.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const HeartFill = (props: Props) => ( diff --git a/packages/ndla-icons/src/action/HeartLine.tsx b/packages/icons/src/icons/HeartLine.tsx similarity index 94% rename from packages/ndla-icons/src/action/HeartLine.tsx rename to packages/icons/src/icons/HeartLine.tsx index 41994601a1..ce70f4ebfe 100644 --- a/packages/ndla-icons/src/action/HeartLine.tsx +++ b/packages/icons/src/icons/HeartLine.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const HeartLine = (props: Props) => ( diff --git a/packages/ndla-icons/src/common/HomeFill.tsx b/packages/icons/src/icons/HomeFill.tsx similarity index 92% rename from packages/ndla-icons/src/common/HomeFill.tsx rename to packages/icons/src/icons/HomeFill.tsx index 30c6074cd2..a5e130680f 100644 --- a/packages/ndla-icons/src/common/HomeFill.tsx +++ b/packages/icons/src/icons/HomeFill.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const HomeFill = (props: Props) => ( diff --git a/packages/ndla-icons/src/common/HomeLine.tsx b/packages/icons/src/icons/HomeLine.tsx similarity index 92% rename from packages/ndla-icons/src/common/HomeLine.tsx rename to packages/icons/src/icons/HomeLine.tsx index e89aa7d59a..8f3a49e1af 100644 --- a/packages/ndla-icons/src/common/HomeLine.tsx +++ b/packages/icons/src/icons/HomeLine.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const HomeLine = (props: Props) => ( diff --git a/packages/ndla-icons/src/editor/ImageFill.tsx b/packages/icons/src/icons/ImageFill.tsx similarity index 92% rename from packages/ndla-icons/src/editor/ImageFill.tsx rename to packages/icons/src/icons/ImageFill.tsx index 8863c4a050..f27f577fcc 100644 --- a/packages/ndla-icons/src/editor/ImageFill.tsx +++ b/packages/icons/src/icons/ImageFill.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const ImageFill = (props: Props) => ( diff --git a/packages/ndla-icons/src/editor/ImageLine.tsx b/packages/icons/src/icons/ImageLine.tsx similarity index 92% rename from packages/ndla-icons/src/editor/ImageLine.tsx rename to packages/icons/src/icons/ImageLine.tsx index d6831536ba..7ad0f08e5f 100644 --- a/packages/ndla-icons/src/editor/ImageLine.tsx +++ b/packages/icons/src/icons/ImageLine.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const ImageLine = (props: Props) => ( diff --git a/packages/ndla-icons/src/common/InformationFill.tsx b/packages/icons/src/icons/InformationFill.tsx similarity index 92% rename from packages/ndla-icons/src/common/InformationFill.tsx rename to packages/icons/src/icons/InformationFill.tsx index cde50c62d9..cdd13b26f1 100644 --- a/packages/ndla-icons/src/common/InformationFill.tsx +++ b/packages/icons/src/icons/InformationFill.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const InformationFill = (props: Props) => ( diff --git a/packages/ndla-icons/src/common/InformationLine.tsx b/packages/icons/src/icons/InformationLine.tsx similarity index 92% rename from packages/ndla-icons/src/common/InformationLine.tsx rename to packages/icons/src/icons/InformationLine.tsx index d19218095c..f8332229df 100644 --- a/packages/ndla-icons/src/common/InformationLine.tsx +++ b/packages/icons/src/icons/InformationLine.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const InformationLine = (props: Props) => ( diff --git a/packages/ndla-icons/src/common/InstagramFill.tsx b/packages/icons/src/icons/InstagramFill.tsx similarity index 96% rename from packages/ndla-icons/src/common/InstagramFill.tsx rename to packages/icons/src/icons/InstagramFill.tsx index f165d7b699..f04d449ce3 100644 --- a/packages/ndla-icons/src/common/InstagramFill.tsx +++ b/packages/icons/src/icons/InstagramFill.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const InstagramFill = (props: Props) => ( diff --git a/packages/ndla-icons/src/common/InstagramLine.tsx b/packages/icons/src/icons/InstagramLine.tsx similarity index 88% rename from packages/ndla-icons/src/common/InstagramLine.tsx rename to packages/icons/src/icons/InstagramLine.tsx index 7b4212d88b..ba261b4e97 100644 --- a/packages/ndla-icons/src/common/InstagramLine.tsx +++ b/packages/icons/src/icons/InstagramLine.tsx @@ -6,15 +6,9 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const InstagramLine = (props: Props) => ( - + ); diff --git a/packages/ndla-icons/src/editor/Italic.tsx b/packages/icons/src/icons/Italic.tsx similarity index 91% rename from packages/ndla-icons/src/editor/Italic.tsx rename to packages/icons/src/icons/Italic.tsx index 9b32c5d9e1..8abf657c03 100644 --- a/packages/ndla-icons/src/editor/Italic.tsx +++ b/packages/icons/src/icons/Italic.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const Italic = (props: Props) => ( diff --git a/packages/ndla-icons/src/editor/LayoutColumnLine.tsx b/packages/icons/src/icons/LayoutColumnLine.tsx similarity index 92% rename from packages/ndla-icons/src/editor/LayoutColumnLine.tsx rename to packages/icons/src/icons/LayoutColumnLine.tsx index 6c1d96c05f..aab45ac676 100644 --- a/packages/ndla-icons/src/editor/LayoutColumnLine.tsx +++ b/packages/icons/src/icons/LayoutColumnLine.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const LayoutColumnLine = (props: Props) => ( diff --git a/packages/ndla-icons/src/common/LineChartLine.tsx b/packages/icons/src/icons/LineChartLine.tsx similarity index 92% rename from packages/ndla-icons/src/common/LineChartLine.tsx rename to packages/icons/src/icons/LineChartLine.tsx index 7823acb677..4b6125c6eb 100644 --- a/packages/ndla-icons/src/common/LineChartLine.tsx +++ b/packages/icons/src/icons/LineChartLine.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const LineChartLine = (props: Props) => ( diff --git a/packages/ndla-icons/src/editor/LinkMedium.tsx b/packages/icons/src/icons/LinkMedium.tsx similarity index 93% rename from packages/ndla-icons/src/editor/LinkMedium.tsx rename to packages/icons/src/icons/LinkMedium.tsx index b49f6568a8..2ddace7f5d 100644 --- a/packages/ndla-icons/src/editor/LinkMedium.tsx +++ b/packages/icons/src/icons/LinkMedium.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const LinkMedium = (props: Props) => ( diff --git a/packages/ndla-icons/src/common/LinkedinBoxFill.tsx b/packages/icons/src/icons/LinkedinBoxFill.tsx similarity index 94% rename from packages/ndla-icons/src/common/LinkedinBoxFill.tsx rename to packages/icons/src/icons/LinkedinBoxFill.tsx index 5d231fe398..84bff2444a 100644 --- a/packages/ndla-icons/src/common/LinkedinBoxFill.tsx +++ b/packages/icons/src/icons/LinkedinBoxFill.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const LinkedinBoxFill = (props: Props) => ( diff --git a/packages/ndla-icons/src/common/LinkedinBoxLine.tsx b/packages/icons/src/icons/LinkedinBoxLine.tsx similarity index 93% rename from packages/ndla-icons/src/common/LinkedinBoxLine.tsx rename to packages/icons/src/icons/LinkedinBoxLine.tsx index 4484df2b90..3d46a00501 100644 --- a/packages/ndla-icons/src/common/LinkedinBoxLine.tsx +++ b/packages/icons/src/icons/LinkedinBoxLine.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const LinkedinBoxLine = (props: Props) => ( diff --git a/packages/ndla-icons/src/editor/ListAlphabetical.tsx b/packages/icons/src/icons/ListAlphabetical.tsx similarity index 93% rename from packages/ndla-icons/src/editor/ListAlphabetical.tsx rename to packages/icons/src/icons/ListAlphabetical.tsx index 657453dc66..6ff3e7355f 100644 --- a/packages/ndla-icons/src/editor/ListAlphabetical.tsx +++ b/packages/icons/src/icons/ListAlphabetical.tsx @@ -1,12 +1,12 @@ /** - * Copyright (c) 2021-present, NDLA. + * Copyright (c) 2024-present, NDLA. * * This source code is licensed under the GPLv3 license found in the * LICENSE file in the root directory of this source tree. * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const ListAlphabetical = (props: Props) => ( diff --git a/packages/icons/src/icons/ListCheck.tsx b/packages/icons/src/icons/ListCheck.tsx new file mode 100644 index 0000000000..02432a39e5 --- /dev/null +++ b/packages/icons/src/icons/ListCheck.tsx @@ -0,0 +1,15 @@ +/** + * Copyright (c) 2024-present, NDLA. + * + * This source code is licensed under the GPLv3 license found in the + * LICENSE file in the root directory of this source tree. + * + */ +// N.B! AUTOGENERATED FILE. DO NOT EDIT; +import Icon, { type Props } from "../Icon"; +const ListCheck = (props: Props) => ( + + + +); +export default ListCheck; diff --git a/packages/icons/src/icons/ListCheckFormat.tsx b/packages/icons/src/icons/ListCheckFormat.tsx new file mode 100644 index 0000000000..df92f28b91 --- /dev/null +++ b/packages/icons/src/icons/ListCheckFormat.tsx @@ -0,0 +1,15 @@ +/** + * Copyright (c) 2024-present, NDLA. + * + * This source code is licensed under the GPLv3 license found in the + * LICENSE file in the root directory of this source tree. + * + */ +// N.B! AUTOGENERATED FILE. DO NOT EDIT; +import Icon, { type Props } from "../Icon"; +const ListCheckFormat = (props: Props) => ( + + + +); +export default ListCheckFormat; diff --git a/packages/ndla-icons/src/editor/ListOrdered.tsx b/packages/icons/src/icons/ListOrdered.tsx similarity index 93% rename from packages/ndla-icons/src/editor/ListOrdered.tsx rename to packages/icons/src/icons/ListOrdered.tsx index aceb79dde6..427823cdbc 100644 --- a/packages/ndla-icons/src/editor/ListOrdered.tsx +++ b/packages/icons/src/icons/ListOrdered.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const ListOrdered = (props: Props) => ( diff --git a/packages/ndla-icons/src/editor/ListUnordered.tsx b/packages/icons/src/icons/ListUnordered.tsx similarity index 93% rename from packages/ndla-icons/src/editor/ListUnordered.tsx rename to packages/icons/src/icons/ListUnordered.tsx index f7b06c72af..d1559e30a0 100644 --- a/packages/ndla-icons/src/editor/ListUnordered.tsx +++ b/packages/icons/src/icons/ListUnordered.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const ListUnordered = (props: Props) => ( diff --git a/packages/ndla-icons/src/common/LockFill.tsx b/packages/icons/src/icons/LockFill.tsx similarity index 92% rename from packages/ndla-icons/src/common/LockFill.tsx rename to packages/icons/src/icons/LockFill.tsx index 13a28bf9ac..e8052fe122 100644 --- a/packages/ndla-icons/src/common/LockFill.tsx +++ b/packages/icons/src/icons/LockFill.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const LockFill = (props: Props) => ( diff --git a/packages/ndla-icons/src/common/LockLine.tsx b/packages/icons/src/icons/LockLine.tsx similarity index 92% rename from packages/ndla-icons/src/common/LockLine.tsx rename to packages/icons/src/icons/LockLine.tsx index aba449d448..4586ffc023 100644 --- a/packages/ndla-icons/src/common/LockLine.tsx +++ b/packages/icons/src/icons/LockLine.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const LockLine = (props: Props) => ( diff --git a/packages/ndla-icons/src/common/LockUnlockedFill.tsx b/packages/icons/src/icons/LockUnlockedFill.tsx similarity index 92% rename from packages/ndla-icons/src/common/LockUnlockedFill.tsx rename to packages/icons/src/icons/LockUnlockedFill.tsx index f8058a35b3..f82f4533a5 100644 --- a/packages/ndla-icons/src/common/LockUnlockedFill.tsx +++ b/packages/icons/src/icons/LockUnlockedFill.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const LockUnlockedFill = (props: Props) => ( diff --git a/packages/ndla-icons/src/common/LockUnlockedLine.tsx b/packages/icons/src/icons/LockUnlockedLine.tsx similarity index 93% rename from packages/ndla-icons/src/common/LockUnlockedLine.tsx rename to packages/icons/src/icons/LockUnlockedLine.tsx index 4bfbaecb92..62036babcf 100644 --- a/packages/ndla-icons/src/common/LockUnlockedLine.tsx +++ b/packages/icons/src/icons/LockUnlockedLine.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const LockUnlockedLine = (props: Props) => ( diff --git a/packages/ndla-icons/src/common/LoginBoxLine.tsx b/packages/icons/src/icons/LoginBoxLine.tsx similarity index 92% rename from packages/ndla-icons/src/common/LoginBoxLine.tsx rename to packages/icons/src/icons/LoginBoxLine.tsx index f420bbdb45..fa40b40131 100644 --- a/packages/ndla-icons/src/common/LoginBoxLine.tsx +++ b/packages/icons/src/icons/LoginBoxLine.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const LoginBoxLine = (props: Props) => ( diff --git a/packages/ndla-icons/src/common/LogoutBoxRightLine.tsx b/packages/icons/src/icons/LogoutBoxRightLine.tsx similarity index 92% rename from packages/ndla-icons/src/common/LogoutBoxRightLine.tsx rename to packages/icons/src/icons/LogoutBoxRightLine.tsx index 4a6153f6e3..188aaadbb4 100644 --- a/packages/ndla-icons/src/common/LogoutBoxRightLine.tsx +++ b/packages/icons/src/icons/LogoutBoxRightLine.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const LogoutBoxRightLine = (props: Props) => ( diff --git a/packages/ndla-icons/src/common/MailFill.tsx b/packages/icons/src/icons/MailFill.tsx similarity index 92% rename from packages/ndla-icons/src/common/MailFill.tsx rename to packages/icons/src/icons/MailFill.tsx index b8594da141..c224815867 100644 --- a/packages/ndla-icons/src/common/MailFill.tsx +++ b/packages/icons/src/icons/MailFill.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const MailFill = (props: Props) => ( diff --git a/packages/ndla-icons/src/common/MailLine.tsx b/packages/icons/src/icons/MailLine.tsx similarity index 92% rename from packages/ndla-icons/src/common/MailLine.tsx rename to packages/icons/src/icons/MailLine.tsx index 19d71e3f55..5d2a90de10 100644 --- a/packages/ndla-icons/src/common/MailLine.tsx +++ b/packages/icons/src/icons/MailLine.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const MailLine = (props: Props) => ( diff --git a/packages/ndla-icons/src/common/MegaphoneFill.tsx b/packages/icons/src/icons/MegaphoneFill.tsx similarity index 93% rename from packages/ndla-icons/src/common/MegaphoneFill.tsx rename to packages/icons/src/icons/MegaphoneFill.tsx index 05a297670e..bc8b4726c2 100644 --- a/packages/ndla-icons/src/common/MegaphoneFill.tsx +++ b/packages/icons/src/icons/MegaphoneFill.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const MegaphoneFill = (props: Props) => ( diff --git a/packages/ndla-icons/src/common/MegaphoneLine.tsx b/packages/icons/src/icons/MegaphoneLine.tsx similarity index 94% rename from packages/ndla-icons/src/common/MegaphoneLine.tsx rename to packages/icons/src/icons/MegaphoneLine.tsx index e10da4d31e..3293e4039e 100644 --- a/packages/ndla-icons/src/common/MegaphoneLine.tsx +++ b/packages/icons/src/icons/MegaphoneLine.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const MegaphoneLine = (props: Props) => ( diff --git a/packages/ndla-icons/src/action/MenuLine.tsx b/packages/icons/src/icons/MenuLine.tsx similarity index 91% rename from packages/ndla-icons/src/action/MenuLine.tsx rename to packages/icons/src/icons/MenuLine.tsx index 65e067ae04..0557010fbe 100644 --- a/packages/ndla-icons/src/action/MenuLine.tsx +++ b/packages/icons/src/icons/MenuLine.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const MenuLine = (props: Props) => ( diff --git a/packages/ndla-icons/src/contentType/MenuSearchFill.tsx b/packages/icons/src/icons/MenuSearchFill.tsx similarity index 92% rename from packages/ndla-icons/src/contentType/MenuSearchFill.tsx rename to packages/icons/src/icons/MenuSearchFill.tsx index b78eea383d..9599905520 100644 --- a/packages/ndla-icons/src/contentType/MenuSearchFill.tsx +++ b/packages/icons/src/icons/MenuSearchFill.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const MenuSearchFill = (props: Props) => ( diff --git a/packages/ndla-icons/src/contentType/MenuSearchLine.tsx b/packages/icons/src/icons/MenuSearchLine.tsx similarity index 93% rename from packages/ndla-icons/src/contentType/MenuSearchLine.tsx rename to packages/icons/src/icons/MenuSearchLine.tsx index caab6aa135..134231c3bd 100644 --- a/packages/ndla-icons/src/contentType/MenuSearchLine.tsx +++ b/packages/icons/src/icons/MenuSearchLine.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const MenuSearchLine = (props: Props) => ( diff --git a/packages/ndla-icons/src/common/MessageFill.tsx b/packages/icons/src/icons/MessageFill.tsx similarity index 92% rename from packages/ndla-icons/src/common/MessageFill.tsx rename to packages/icons/src/icons/MessageFill.tsx index 22e76ced69..ee64c29d1b 100644 --- a/packages/ndla-icons/src/common/MessageFill.tsx +++ b/packages/icons/src/icons/MessageFill.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const MessageFill = (props: Props) => ( diff --git a/packages/ndla-icons/src/common/MessageLine.tsx b/packages/icons/src/icons/MessageLine.tsx similarity index 92% rename from packages/ndla-icons/src/common/MessageLine.tsx rename to packages/icons/src/icons/MessageLine.tsx index e8114b892e..30f98233fb 100644 --- a/packages/ndla-icons/src/common/MessageLine.tsx +++ b/packages/icons/src/icons/MessageLine.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const MessageLine = (props: Props) => ( diff --git a/packages/ndla-icons/src/contentType/MoreFill.tsx b/packages/icons/src/icons/MoreFill.tsx similarity index 93% rename from packages/ndla-icons/src/contentType/MoreFill.tsx rename to packages/icons/src/icons/MoreFill.tsx index e187edcc30..c88799317e 100644 --- a/packages/ndla-icons/src/contentType/MoreFill.tsx +++ b/packages/icons/src/icons/MoreFill.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const MoreFill = (props: Props) => ( diff --git a/packages/ndla-icons/src/contentType/MoreLine.tsx b/packages/icons/src/icons/MoreLine.tsx similarity index 93% rename from packages/ndla-icons/src/contentType/MoreLine.tsx rename to packages/icons/src/icons/MoreLine.tsx index aa1a0d1b9c..8c770939ad 100644 --- a/packages/ndla-icons/src/contentType/MoreLine.tsx +++ b/packages/icons/src/icons/MoreLine.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const MoreLine = (props: Props) => ( diff --git a/packages/ndla-icons/src/contentType/MoreVerticalFill.tsx b/packages/icons/src/icons/MoreVerticalFill.tsx similarity index 93% rename from packages/ndla-icons/src/contentType/MoreVerticalFill.tsx rename to packages/icons/src/icons/MoreVerticalFill.tsx index a3b4fa2261..7fd8af0ec4 100644 --- a/packages/ndla-icons/src/contentType/MoreVerticalFill.tsx +++ b/packages/icons/src/icons/MoreVerticalFill.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const MoreVerticalFill = (props: Props) => ( diff --git a/packages/ndla-icons/src/contentType/MoreVerticalLine.tsx b/packages/icons/src/icons/MoreVerticalLine.tsx similarity index 93% rename from packages/ndla-icons/src/contentType/MoreVerticalLine.tsx rename to packages/icons/src/icons/MoreVerticalLine.tsx index 4ca6626b07..6c46f89207 100644 --- a/packages/ndla-icons/src/contentType/MoreVerticalLine.tsx +++ b/packages/icons/src/icons/MoreVerticalLine.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const MoreVerticalLine = (props: Props) => ( diff --git a/packages/ndla-icons/src/editor/MovieFill.tsx b/packages/icons/src/icons/MovieFill.tsx similarity index 92% rename from packages/ndla-icons/src/editor/MovieFill.tsx rename to packages/icons/src/icons/MovieFill.tsx index 3b1a1447ba..a77463e71b 100644 --- a/packages/ndla-icons/src/editor/MovieFill.tsx +++ b/packages/icons/src/icons/MovieFill.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const MovieFill = (props: Props) => ( diff --git a/packages/ndla-icons/src/editor/MovieLine.tsx b/packages/icons/src/icons/MovieLine.tsx similarity index 93% rename from packages/ndla-icons/src/editor/MovieLine.tsx rename to packages/icons/src/icons/MovieLine.tsx index 0c57c0554b..45e222121e 100644 --- a/packages/ndla-icons/src/editor/MovieLine.tsx +++ b/packages/icons/src/icons/MovieLine.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const MovieLine = (props: Props) => ( diff --git a/packages/ndla-icons/src/common/NotificationFill.tsx b/packages/icons/src/icons/NotificationFill.tsx similarity index 92% rename from packages/ndla-icons/src/common/NotificationFill.tsx rename to packages/icons/src/icons/NotificationFill.tsx index c0a9d0ffdd..0f003c7d6e 100644 --- a/packages/ndla-icons/src/common/NotificationFill.tsx +++ b/packages/icons/src/icons/NotificationFill.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const NotificationFill = (props: Props) => ( diff --git a/packages/ndla-icons/src/common/NotificationLine.tsx b/packages/icons/src/icons/NotificationLine.tsx similarity index 93% rename from packages/ndla-icons/src/common/NotificationLine.tsx rename to packages/icons/src/icons/NotificationLine.tsx index 39d66d26d2..79f560df3c 100644 --- a/packages/ndla-icons/src/common/NotificationLine.tsx +++ b/packages/icons/src/icons/NotificationLine.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const NotificationLine = (props: Props) => ( diff --git a/packages/icons/src/icons/OrganizationChart.tsx b/packages/icons/src/icons/OrganizationChart.tsx new file mode 100644 index 0000000000..0c9a3c6025 --- /dev/null +++ b/packages/icons/src/icons/OrganizationChart.tsx @@ -0,0 +1,15 @@ +/** + * Copyright (c) 2024-present, NDLA. + * + * This source code is licensed under the GPLv3 license found in the + * LICENSE file in the root directory of this source tree. + * + */ +// N.B! AUTOGENERATED FILE. DO NOT EDIT; +import Icon, { type Props } from "../Icon"; +const OrganizationChart = (props: Props) => ( + + + +); +export default OrganizationChart; diff --git a/packages/ndla-icons/src/common/PanoramaPhotosphere.tsx b/packages/icons/src/icons/PanoramaPhotosphere.tsx similarity index 95% rename from packages/ndla-icons/src/common/PanoramaPhotosphere.tsx rename to packages/icons/src/icons/PanoramaPhotosphere.tsx index b516cb9bd8..0bfafb3b67 100644 --- a/packages/ndla-icons/src/common/PanoramaPhotosphere.tsx +++ b/packages/icons/src/icons/PanoramaPhotosphere.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const PanoramaPhotosphere = (props: Props) => ( diff --git a/packages/ndla-icons/src/common/PauseLine.tsx b/packages/icons/src/icons/PauseLine.tsx similarity index 91% rename from packages/ndla-icons/src/common/PauseLine.tsx rename to packages/icons/src/icons/PauseLine.tsx index 8caba6eab9..2d4bde654f 100644 --- a/packages/ndla-icons/src/common/PauseLine.tsx +++ b/packages/icons/src/icons/PauseLine.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const PauseLine = (props: Props) => ( diff --git a/packages/ndla-icons/src/action/PencilFill.tsx b/packages/icons/src/icons/PencilFill.tsx similarity index 92% rename from packages/ndla-icons/src/action/PencilFill.tsx rename to packages/icons/src/icons/PencilFill.tsx index 5ab120447d..57d629d513 100644 --- a/packages/ndla-icons/src/action/PencilFill.tsx +++ b/packages/icons/src/icons/PencilFill.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const PencilFill = (props: Props) => ( diff --git a/packages/ndla-icons/src/action/PencilLine.tsx b/packages/icons/src/icons/PencilLine.tsx similarity index 93% rename from packages/ndla-icons/src/action/PencilLine.tsx rename to packages/icons/src/icons/PencilLine.tsx index 3085459081..0e94f37c4b 100644 --- a/packages/ndla-icons/src/action/PencilLine.tsx +++ b/packages/icons/src/icons/PencilLine.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const PencilLine = (props: Props) => ( diff --git a/packages/ndla-icons/src/common/PlayCircleFill.tsx b/packages/icons/src/icons/PlayCircleFill.tsx similarity index 92% rename from packages/ndla-icons/src/common/PlayCircleFill.tsx rename to packages/icons/src/icons/PlayCircleFill.tsx index 542b833fd0..1c0b22820a 100644 --- a/packages/ndla-icons/src/common/PlayCircleFill.tsx +++ b/packages/icons/src/icons/PlayCircleFill.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const PlayCircleFill = (props: Props) => ( diff --git a/packages/ndla-icons/src/common/PlayCircleLine.tsx b/packages/icons/src/icons/PlayCircleLine.tsx similarity index 93% rename from packages/ndla-icons/src/common/PlayCircleLine.tsx rename to packages/icons/src/icons/PlayCircleLine.tsx index 22cd3283d9..5effd184df 100644 --- a/packages/ndla-icons/src/common/PlayCircleLine.tsx +++ b/packages/icons/src/icons/PlayCircleLine.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const PlayCircleLine = (props: Props) => ( diff --git a/packages/ndla-icons/src/common/PlayFill.tsx b/packages/icons/src/icons/PlayFill.tsx similarity index 92% rename from packages/ndla-icons/src/common/PlayFill.tsx rename to packages/icons/src/icons/PlayFill.tsx index f5d744ec53..a91f82fc4c 100644 --- a/packages/ndla-icons/src/common/PlayFill.tsx +++ b/packages/icons/src/icons/PlayFill.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const PlayFill = (props: Props) => ( diff --git a/packages/ndla-icons/src/common/PlayLine.tsx b/packages/icons/src/icons/PlayLine.tsx similarity index 92% rename from packages/ndla-icons/src/common/PlayLine.tsx rename to packages/icons/src/icons/PlayLine.tsx index c2e5047b58..300693f8ab 100644 --- a/packages/ndla-icons/src/common/PlayLine.tsx +++ b/packages/icons/src/icons/PlayLine.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const PlayLine = (props: Props) => ( diff --git a/packages/ndla-icons/src/common/PresentationFill.tsx b/packages/icons/src/icons/PresentationFill.tsx similarity index 93% rename from packages/ndla-icons/src/common/PresentationFill.tsx rename to packages/icons/src/icons/PresentationFill.tsx index 094bdc2934..f34eb2162c 100644 --- a/packages/ndla-icons/src/common/PresentationFill.tsx +++ b/packages/icons/src/icons/PresentationFill.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const PresentationFill = (props: Props) => ( diff --git a/packages/ndla-icons/src/common/PresentationLine.tsx b/packages/icons/src/icons/PresentationLine.tsx similarity index 93% rename from packages/ndla-icons/src/common/PresentationLine.tsx rename to packages/icons/src/icons/PresentationLine.tsx index 4f489c488a..31789b2f04 100644 --- a/packages/ndla-icons/src/common/PresentationLine.tsx +++ b/packages/icons/src/icons/PresentationLine.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const PresentationLine = (props: Props) => ( diff --git a/packages/ndla-icons/src/common/PushpinFill.tsx b/packages/icons/src/icons/PushpinFill.tsx similarity index 91% rename from packages/ndla-icons/src/common/PushpinFill.tsx rename to packages/icons/src/icons/PushpinFill.tsx index a214789d29..3b7286ba58 100644 --- a/packages/ndla-icons/src/common/PushpinFill.tsx +++ b/packages/icons/src/icons/PushpinFill.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const PushpinFill = (props: Props) => ( diff --git a/packages/ndla-icons/src/common/PushpinLine.tsx b/packages/icons/src/icons/PushpinLine.tsx similarity index 92% rename from packages/ndla-icons/src/common/PushpinLine.tsx rename to packages/icons/src/icons/PushpinLine.tsx index a017c29013..8da20e9f21 100644 --- a/packages/ndla-icons/src/common/PushpinLine.tsx +++ b/packages/icons/src/icons/PushpinLine.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const PushpinLine = (props: Props) => ( diff --git a/packages/ndla-icons/src/common/QuestionAnswerFill.tsx b/packages/icons/src/icons/QuestionAnswerFill.tsx similarity index 92% rename from packages/ndla-icons/src/common/QuestionAnswerFill.tsx rename to packages/icons/src/icons/QuestionAnswerFill.tsx index e3ddbaa5df..025806afbc 100644 --- a/packages/ndla-icons/src/common/QuestionAnswerFill.tsx +++ b/packages/icons/src/icons/QuestionAnswerFill.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const QuestionAnswerFill = (props: Props) => ( diff --git a/packages/ndla-icons/src/common/QuestionAnswerLine.tsx b/packages/icons/src/icons/QuestionAnswerLine.tsx similarity index 93% rename from packages/ndla-icons/src/common/QuestionAnswerLine.tsx rename to packages/icons/src/icons/QuestionAnswerLine.tsx index 41adb36445..9750d53774 100644 --- a/packages/ndla-icons/src/common/QuestionAnswerLine.tsx +++ b/packages/icons/src/icons/QuestionAnswerLine.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const QuestionAnswerLine = (props: Props) => ( diff --git a/packages/ndla-icons/src/common/QuestionFill.tsx b/packages/icons/src/icons/QuestionFill.tsx similarity index 92% rename from packages/ndla-icons/src/common/QuestionFill.tsx rename to packages/icons/src/icons/QuestionFill.tsx index 9e5fb0b192..bf0c6c2799 100644 --- a/packages/ndla-icons/src/common/QuestionFill.tsx +++ b/packages/icons/src/icons/QuestionFill.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const QuestionFill = (props: Props) => ( diff --git a/packages/ndla-icons/src/common/QuestionLine.tsx b/packages/icons/src/icons/QuestionLine.tsx similarity index 93% rename from packages/ndla-icons/src/common/QuestionLine.tsx rename to packages/icons/src/icons/QuestionLine.tsx index 4a393c1eb4..aea030daab 100644 --- a/packages/ndla-icons/src/common/QuestionLine.tsx +++ b/packages/icons/src/icons/QuestionLine.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const QuestionLine = (props: Props) => ( diff --git a/packages/ndla-icons/src/editor/QuestionnaireFill.tsx b/packages/icons/src/icons/QuestionnaireFill.tsx similarity index 93% rename from packages/ndla-icons/src/editor/QuestionnaireFill.tsx rename to packages/icons/src/icons/QuestionnaireFill.tsx index d0755e8748..15fb69577d 100644 --- a/packages/ndla-icons/src/editor/QuestionnaireFill.tsx +++ b/packages/icons/src/icons/QuestionnaireFill.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const QuestionnaireFill = (props: Props) => ( diff --git a/packages/ndla-icons/src/editor/QuestionnaireLine.tsx b/packages/icons/src/icons/QuestionnaireLine.tsx similarity index 93% rename from packages/ndla-icons/src/editor/QuestionnaireLine.tsx rename to packages/icons/src/icons/QuestionnaireLine.tsx index 0769e59eb3..676283d66a 100644 --- a/packages/ndla-icons/src/editor/QuestionnaireLine.tsx +++ b/packages/icons/src/icons/QuestionnaireLine.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const QuestionnaireLine = (props: Props) => ( diff --git a/packages/ndla-icons/src/editor/Quote.tsx b/packages/icons/src/icons/Quote.tsx similarity index 91% rename from packages/ndla-icons/src/editor/Quote.tsx rename to packages/icons/src/icons/Quote.tsx index e3285a46a5..f53da7fb21 100644 --- a/packages/ndla-icons/src/editor/Quote.tsx +++ b/packages/icons/src/icons/Quote.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const Quote = (props: Props) => ( diff --git a/packages/ndla-icons/src/action/Replay15Line.tsx b/packages/icons/src/icons/Replay15Line.tsx similarity index 93% rename from packages/ndla-icons/src/action/Replay15Line.tsx rename to packages/icons/src/icons/Replay15Line.tsx index a0cab83863..4ac22fa354 100644 --- a/packages/ndla-icons/src/action/Replay15Line.tsx +++ b/packages/icons/src/icons/Replay15Line.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const Replay15Line = (props: Props) => ( diff --git a/packages/ndla-icons/src/action/Reply.tsx b/packages/icons/src/icons/Reply.tsx similarity index 62% rename from packages/ndla-icons/src/action/Reply.tsx rename to packages/icons/src/icons/Reply.tsx index 92cc519985..6eb0fd8fb8 100644 --- a/packages/ndla-icons/src/action/Reply.tsx +++ b/packages/icons/src/icons/Reply.tsx @@ -1,14 +1,20 @@ /** - * Copyright (c) 2021-present, NDLA. + * Copyright (c) 2024-present, NDLA. * * This source code is licensed under the GPLv3 license found in the * LICENSE file in the root directory of this source tree. * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const Reply = (props: Props) => ( - + ); diff --git a/packages/icons/src/icons/ResetLeft.tsx b/packages/icons/src/icons/ResetLeft.tsx new file mode 100644 index 0000000000..3af1e0d7a6 --- /dev/null +++ b/packages/icons/src/icons/ResetLeft.tsx @@ -0,0 +1,15 @@ +/** + * Copyright (c) 2024-present, NDLA. + * + * This source code is licensed under the GPLv3 license found in the + * LICENSE file in the root directory of this source tree. + * + */ +// N.B! AUTOGENERATED FILE. DO NOT EDIT; +import Icon, { type Props } from "../Icon"; +const ResetLeft = (props: Props) => ( + + + +); +export default ResetLeft; diff --git a/packages/ndla-icons/src/common/RouteFill.tsx b/packages/icons/src/icons/RouteFill.tsx similarity index 92% rename from packages/ndla-icons/src/common/RouteFill.tsx rename to packages/icons/src/icons/RouteFill.tsx index 406547c237..d63bc113a7 100644 --- a/packages/ndla-icons/src/common/RouteFill.tsx +++ b/packages/icons/src/icons/RouteFill.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const RouteFill = (props: Props) => ( diff --git a/packages/ndla-icons/src/common/RouteLine.tsx b/packages/icons/src/icons/RouteLine.tsx similarity index 93% rename from packages/ndla-icons/src/common/RouteLine.tsx rename to packages/icons/src/icons/RouteLine.tsx index c46dd08418..bf6d840fdc 100644 --- a/packages/ndla-icons/src/common/RouteLine.tsx +++ b/packages/icons/src/icons/RouteLine.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const RouteLine = (props: Props) => ( diff --git a/packages/ndla-icons/src/common/RssFill.tsx b/packages/icons/src/icons/RssFill.tsx similarity index 92% rename from packages/ndla-icons/src/common/RssFill.tsx rename to packages/icons/src/icons/RssFill.tsx index 7d2e876cf5..29c470d41f 100644 --- a/packages/ndla-icons/src/common/RssFill.tsx +++ b/packages/icons/src/icons/RssFill.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const RssFill = (props: Props) => ( diff --git a/packages/ndla-icons/src/common/RssLine.tsx b/packages/icons/src/icons/RssLine.tsx similarity index 92% rename from packages/ndla-icons/src/common/RssLine.tsx rename to packages/icons/src/icons/RssLine.tsx index 6c2d3b2406..37a5d998d9 100644 --- a/packages/ndla-icons/src/common/RssLine.tsx +++ b/packages/icons/src/icons/RssLine.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const RssLine = (props: Props) => ( diff --git a/packages/ndla-icons/src/editor/SearchContent.tsx b/packages/icons/src/icons/SearchContent.tsx similarity index 94% rename from packages/ndla-icons/src/editor/SearchContent.tsx rename to packages/icons/src/icons/SearchContent.tsx index dd8cced07a..700de72c7e 100644 --- a/packages/ndla-icons/src/editor/SearchContent.tsx +++ b/packages/icons/src/icons/SearchContent.tsx @@ -1,12 +1,12 @@ /** - * Copyright (c) 2021-present, NDLA. + * Copyright (c) 2024-present, NDLA. * * This source code is licensed under the GPLv3 license found in the * LICENSE file in the root directory of this source tree. * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const SearchContent = (props: Props) => ( diff --git a/packages/ndla-icons/src/common/SearchFill.tsx b/packages/icons/src/icons/SearchFill.tsx similarity index 91% rename from packages/ndla-icons/src/common/SearchFill.tsx rename to packages/icons/src/icons/SearchFill.tsx index 7acac796a8..f6c6df80cb 100644 --- a/packages/ndla-icons/src/common/SearchFill.tsx +++ b/packages/icons/src/icons/SearchFill.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const SearchFill = (props: Props) => ( diff --git a/packages/ndla-icons/src/common/SearchLine.tsx b/packages/icons/src/icons/SearchLine.tsx similarity index 92% rename from packages/ndla-icons/src/common/SearchLine.tsx rename to packages/icons/src/icons/SearchLine.tsx index 5ac2d84891..3863284f14 100644 --- a/packages/ndla-icons/src/common/SearchLine.tsx +++ b/packages/icons/src/icons/SearchLine.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const SearchLine = (props: Props) => ( diff --git a/packages/ndla-icons/src/editor/SearchMedia.tsx b/packages/icons/src/icons/SearchMedia.tsx similarity index 92% rename from packages/ndla-icons/src/editor/SearchMedia.tsx rename to packages/icons/src/icons/SearchMedia.tsx index 92994a3d89..37a9574ced 100644 --- a/packages/ndla-icons/src/editor/SearchMedia.tsx +++ b/packages/icons/src/icons/SearchMedia.tsx @@ -1,12 +1,12 @@ /** - * Copyright (c) 2021-present, NDLA. + * Copyright (c) 2024-present, NDLA. * * This source code is licensed under the GPLv3 license found in the * LICENSE file in the root directory of this source tree. * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const SearchMedia = (props: Props) => ( diff --git a/packages/ndla-icons/src/editor/SettingsFill.tsx b/packages/icons/src/icons/SettingsFill.tsx similarity index 94% rename from packages/ndla-icons/src/editor/SettingsFill.tsx rename to packages/icons/src/icons/SettingsFill.tsx index 4eb84cfc4a..ba8dec96ad 100644 --- a/packages/ndla-icons/src/editor/SettingsFill.tsx +++ b/packages/icons/src/icons/SettingsFill.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const SettingsFill = (props: Props) => ( diff --git a/packages/ndla-icons/src/editor/SettingsLine.tsx b/packages/icons/src/icons/SettingsLine.tsx similarity index 95% rename from packages/ndla-icons/src/editor/SettingsLine.tsx rename to packages/icons/src/icons/SettingsLine.tsx index 4e65646028..a0b734edc1 100644 --- a/packages/ndla-icons/src/editor/SettingsLine.tsx +++ b/packages/icons/src/icons/SettingsLine.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const SettingsLine = (props: Props) => ( diff --git a/packages/ndla-icons/src/common/ShareBoxLine.tsx b/packages/icons/src/icons/ShareBoxLine.tsx similarity index 92% rename from packages/ndla-icons/src/common/ShareBoxLine.tsx rename to packages/icons/src/icons/ShareBoxLine.tsx index 2be0055df2..47c1a5ec9a 100644 --- a/packages/ndla-icons/src/common/ShareBoxLine.tsx +++ b/packages/icons/src/icons/ShareBoxLine.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const ShareBoxLine = (props: Props) => ( ( diff --git a/packages/ndla-icons/src/common/ShareLine.tsx b/packages/icons/src/icons/ShareLine.tsx similarity index 94% rename from packages/ndla-icons/src/common/ShareLine.tsx rename to packages/icons/src/icons/ShareLine.tsx index b8ac96a802..2ef3d3f6b6 100644 --- a/packages/ndla-icons/src/common/ShareLine.tsx +++ b/packages/icons/src/icons/ShareLine.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const ShareLine = (props: Props) => ( diff --git a/packages/ndla-icons/src/common/ShieldUserFill.tsx b/packages/icons/src/icons/ShieldUserFill.tsx similarity index 93% rename from packages/ndla-icons/src/common/ShieldUserFill.tsx rename to packages/icons/src/icons/ShieldUserFill.tsx index 284ccdca3a..f2e93c0e5e 100644 --- a/packages/ndla-icons/src/common/ShieldUserFill.tsx +++ b/packages/icons/src/icons/ShieldUserFill.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const ShieldUserFill = (props: Props) => ( diff --git a/packages/ndla-icons/src/common/ShieldUserLine.tsx b/packages/icons/src/icons/ShieldUserLine.tsx similarity index 94% rename from packages/ndla-icons/src/common/ShieldUserLine.tsx rename to packages/icons/src/icons/ShieldUserLine.tsx index 7e5a253e26..792b9fb1db 100644 --- a/packages/ndla-icons/src/common/ShieldUserLine.tsx +++ b/packages/icons/src/icons/ShieldUserLine.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const ShieldUserLine = (props: Props) => ( diff --git a/packages/ndla-icons/src/editor/SlideshowFill.tsx b/packages/icons/src/icons/SlideshowFill.tsx similarity index 92% rename from packages/ndla-icons/src/editor/SlideshowFill.tsx rename to packages/icons/src/icons/SlideshowFill.tsx index 1c7d73340b..f33f4a6002 100644 --- a/packages/ndla-icons/src/editor/SlideshowFill.tsx +++ b/packages/icons/src/icons/SlideshowFill.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const SlideshowFill = (props: Props) => ( diff --git a/packages/ndla-icons/src/editor/SlideshowLine.tsx b/packages/icons/src/icons/SlideshowLine.tsx similarity index 92% rename from packages/ndla-icons/src/editor/SlideshowLine.tsx rename to packages/icons/src/icons/SlideshowLine.tsx index c734f6dd01..f62a0dc933 100644 --- a/packages/ndla-icons/src/editor/SlideshowLine.tsx +++ b/packages/icons/src/icons/SlideshowLine.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const SlideshowLine = (props: Props) => ( diff --git a/packages/ndla-icons/src/common/SpamFill.tsx b/packages/icons/src/icons/SpamFill.tsx similarity index 92% rename from packages/ndla-icons/src/common/SpamFill.tsx rename to packages/icons/src/icons/SpamFill.tsx index 4c9f065675..c44d181858 100644 --- a/packages/ndla-icons/src/common/SpamFill.tsx +++ b/packages/icons/src/icons/SpamFill.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const SpamFill = (props: Props) => ( diff --git a/packages/ndla-icons/src/common/SpamLine.tsx b/packages/icons/src/icons/SpamLine.tsx similarity index 92% rename from packages/ndla-icons/src/common/SpamLine.tsx rename to packages/icons/src/icons/SpamLine.tsx index 8e1a56e48b..356959296f 100644 --- a/packages/ndla-icons/src/common/SpamLine.tsx +++ b/packages/icons/src/icons/SpamLine.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const SpamLine = (props: Props) => ( diff --git a/packages/ndla-icons/src/editor/SquareFill.tsx b/packages/icons/src/icons/SquareFill.tsx similarity index 91% rename from packages/ndla-icons/src/editor/SquareFill.tsx rename to packages/icons/src/icons/SquareFill.tsx index c34cfabcd6..5a08be42c2 100644 --- a/packages/ndla-icons/src/editor/SquareFill.tsx +++ b/packages/icons/src/icons/SquareFill.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const SquareFill = (props: Props) => ( diff --git a/packages/ndla-icons/src/editor/SquareLine.tsx b/packages/icons/src/icons/SquareLine.tsx similarity index 92% rename from packages/ndla-icons/src/editor/SquareLine.tsx rename to packages/icons/src/icons/SquareLine.tsx index 728f8ed6d9..a69fc2e306 100644 --- a/packages/ndla-icons/src/editor/SquareLine.tsx +++ b/packages/icons/src/icons/SquareLine.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const SquareLine = (props: Props) => ( diff --git a/packages/ndla-icons/src/editor/StarFill.tsx b/packages/icons/src/icons/StarFill.tsx similarity index 92% rename from packages/ndla-icons/src/editor/StarFill.tsx rename to packages/icons/src/icons/StarFill.tsx index f8cbda7762..9dbde626bb 100644 --- a/packages/ndla-icons/src/editor/StarFill.tsx +++ b/packages/icons/src/icons/StarFill.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const StarFill = (props: Props) => ( diff --git a/packages/ndla-icons/src/editor/StarLine.tsx b/packages/icons/src/icons/StarLine.tsx similarity index 93% rename from packages/ndla-icons/src/editor/StarLine.tsx rename to packages/icons/src/icons/StarLine.tsx index 305a408794..8f7eb99e05 100644 --- a/packages/ndla-icons/src/editor/StarLine.tsx +++ b/packages/icons/src/icons/StarLine.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const StarLine = (props: Props) => ( diff --git a/packages/ndla-icons/src/editor/StickyNoteAddFill.tsx b/packages/icons/src/icons/StickyNoteAddFill.tsx similarity index 93% rename from packages/ndla-icons/src/editor/StickyNoteAddFill.tsx rename to packages/icons/src/icons/StickyNoteAddFill.tsx index 0f05157127..3ea8ba3711 100644 --- a/packages/ndla-icons/src/editor/StickyNoteAddFill.tsx +++ b/packages/icons/src/icons/StickyNoteAddFill.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const StickyNoteAddFill = (props: Props) => ( diff --git a/packages/ndla-icons/src/editor/StickyNoteAddLine.tsx b/packages/icons/src/icons/StickyNoteAddLine.tsx similarity index 92% rename from packages/ndla-icons/src/editor/StickyNoteAddLine.tsx rename to packages/icons/src/icons/StickyNoteAddLine.tsx index 98bb84314f..e992507681 100644 --- a/packages/ndla-icons/src/editor/StickyNoteAddLine.tsx +++ b/packages/icons/src/icons/StickyNoteAddLine.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const StickyNoteAddLine = (props: Props) => ( diff --git a/packages/ndla-icons/src/editor/Subscript.tsx b/packages/icons/src/icons/Subscript.tsx similarity index 93% rename from packages/ndla-icons/src/editor/Subscript.tsx rename to packages/icons/src/icons/Subscript.tsx index a4df623aea..caf98a87cf 100644 --- a/packages/ndla-icons/src/editor/Subscript.tsx +++ b/packages/icons/src/icons/Subscript.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const Subscript = (props: Props) => ( diff --git a/packages/ndla-icons/src/action/SubtractLine.tsx b/packages/icons/src/icons/SubtractLine.tsx similarity index 91% rename from packages/ndla-icons/src/action/SubtractLine.tsx rename to packages/icons/src/icons/SubtractLine.tsx index b32ce844f0..7a92225097 100644 --- a/packages/ndla-icons/src/action/SubtractLine.tsx +++ b/packages/icons/src/icons/SubtractLine.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const SubtractLine = (props: Props) => ( diff --git a/packages/ndla-icons/src/editor/Superscript.tsx b/packages/icons/src/icons/Superscript.tsx similarity index 93% rename from packages/ndla-icons/src/editor/Superscript.tsx rename to packages/icons/src/icons/Superscript.tsx index d1ffc9ec54..7f42c20b4e 100644 --- a/packages/ndla-icons/src/editor/Superscript.tsx +++ b/packages/icons/src/icons/Superscript.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const Superscript = (props: Props) => ( diff --git a/packages/ndla-icons/src/editor/TableFill.tsx b/packages/icons/src/icons/TableFill.tsx similarity index 92% rename from packages/ndla-icons/src/editor/TableFill.tsx rename to packages/icons/src/icons/TableFill.tsx index d19ca93694..90e5b52d2c 100644 --- a/packages/ndla-icons/src/editor/TableFill.tsx +++ b/packages/icons/src/icons/TableFill.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const TableFill = (props: Props) => ( diff --git a/packages/ndla-icons/src/editor/TableLine.tsx b/packages/icons/src/icons/TableLine.tsx similarity index 92% rename from packages/ndla-icons/src/editor/TableLine.tsx rename to packages/icons/src/icons/TableLine.tsx index 0bc16e28ff..cd6519bf5d 100644 --- a/packages/ndla-icons/src/editor/TableLine.tsx +++ b/packages/icons/src/icons/TableLine.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const TableLine = (props: Props) => ( diff --git a/packages/icons/src/icons/TextWrap.tsx b/packages/icons/src/icons/TextWrap.tsx new file mode 100644 index 0000000000..2d97c7130a --- /dev/null +++ b/packages/icons/src/icons/TextWrap.tsx @@ -0,0 +1,15 @@ +/** + * Copyright (c) 2024-present, NDLA. + * + * This source code is licensed under the GPLv3 license found in the + * LICENSE file in the root directory of this source tree. + * + */ +// N.B! AUTOGENERATED FILE. DO NOT EDIT; +import Icon, { type Props } from "../Icon"; +const TextWrap = (props: Props) => ( + + + +); +export default TextWrap; diff --git a/packages/ndla-icons/src/action/Thumb.tsx b/packages/icons/src/icons/Thumb.tsx similarity index 87% rename from packages/ndla-icons/src/action/Thumb.tsx rename to packages/icons/src/icons/Thumb.tsx index 5d8707ca46..52804a4051 100644 --- a/packages/ndla-icons/src/action/Thumb.tsx +++ b/packages/icons/src/icons/Thumb.tsx @@ -1,12 +1,12 @@ /** - * Copyright (c) 2021-present, NDLA. + * Copyright (c) 2024-present, NDLA. * * This source code is licensed under the GPLv3 license found in the * LICENSE file in the root directory of this source tree. * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const Thumb = (props: Props) => ( diff --git a/packages/ndla-icons/src/action/ThumbFilled.tsx b/packages/icons/src/icons/ThumbFilled.tsx similarity index 86% rename from packages/ndla-icons/src/action/ThumbFilled.tsx rename to packages/icons/src/icons/ThumbFilled.tsx index 17d19093ce..461951a365 100644 --- a/packages/ndla-icons/src/action/ThumbFilled.tsx +++ b/packages/icons/src/icons/ThumbFilled.tsx @@ -1,12 +1,12 @@ /** - * Copyright (c) 2021-present, NDLA. + * Copyright (c) 2024-present, NDLA. * * This source code is licensed under the GPLv3 license found in the * LICENSE file in the root directory of this source tree. * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const ThumbFilled = (props: Props) => ( diff --git a/packages/ndla-icons/src/common/TimeFill.tsx b/packages/icons/src/icons/TimeFill.tsx similarity index 91% rename from packages/ndla-icons/src/common/TimeFill.tsx rename to packages/icons/src/icons/TimeFill.tsx index e4209b318d..e72098c68e 100644 --- a/packages/ndla-icons/src/common/TimeFill.tsx +++ b/packages/icons/src/icons/TimeFill.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const TimeFill = (props: Props) => ( diff --git a/packages/ndla-icons/src/common/TimeLine.tsx b/packages/icons/src/icons/TimeLine.tsx similarity index 92% rename from packages/ndla-icons/src/common/TimeLine.tsx rename to packages/icons/src/icons/TimeLine.tsx index eea9881063..8907c9d044 100644 --- a/packages/ndla-icons/src/common/TimeLine.tsx +++ b/packages/icons/src/icons/TimeLine.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const TimeLine = (props: Props) => ( diff --git a/packages/ndla-icons/src/editor/Underline.tsx b/packages/icons/src/icons/Underline.tsx similarity index 91% rename from packages/ndla-icons/src/editor/Underline.tsx rename to packages/icons/src/icons/Underline.tsx index 2174680714..998c75355f 100644 --- a/packages/ndla-icons/src/editor/Underline.tsx +++ b/packages/icons/src/icons/Underline.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const Underline = (props: Props) => ( diff --git a/packages/ndla-icons/src/editor/UploadCloudFill.tsx b/packages/icons/src/icons/UploadCloudFill.tsx similarity index 92% rename from packages/ndla-icons/src/editor/UploadCloudFill.tsx rename to packages/icons/src/icons/UploadCloudFill.tsx index 6fc93b9703..4dba5ad068 100644 --- a/packages/ndla-icons/src/editor/UploadCloudFill.tsx +++ b/packages/icons/src/icons/UploadCloudFill.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const UploadCloudFill = (props: Props) => ( diff --git a/packages/ndla-icons/src/editor/UploadCloudLine.tsx b/packages/icons/src/icons/UploadCloudLine.tsx similarity index 93% rename from packages/ndla-icons/src/editor/UploadCloudLine.tsx rename to packages/icons/src/icons/UploadCloudLine.tsx index 645c4e354d..5ea0db792b 100644 --- a/packages/ndla-icons/src/editor/UploadCloudLine.tsx +++ b/packages/icons/src/icons/UploadCloudLine.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const UploadCloudLine = (props: Props) => ( diff --git a/packages/ndla-icons/src/editor/UploadLine.tsx b/packages/icons/src/icons/UploadLine.tsx similarity index 92% rename from packages/ndla-icons/src/editor/UploadLine.tsx rename to packages/icons/src/icons/UploadLine.tsx index 41658a1ae0..f47763b066 100644 --- a/packages/ndla-icons/src/editor/UploadLine.tsx +++ b/packages/icons/src/icons/UploadLine.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const UploadLine = (props: Props) => ( diff --git a/packages/ndla-icons/src/common/UserFill.tsx b/packages/icons/src/icons/UserFill.tsx similarity index 91% rename from packages/ndla-icons/src/common/UserFill.tsx rename to packages/icons/src/icons/UserFill.tsx index d24dfd956a..f3400eedb8 100644 --- a/packages/ndla-icons/src/common/UserFill.tsx +++ b/packages/icons/src/icons/UserFill.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const UserFill = (props: Props) => ( diff --git a/packages/ndla-icons/src/common/UserLine.tsx b/packages/icons/src/icons/UserLine.tsx similarity index 92% rename from packages/ndla-icons/src/common/UserLine.tsx rename to packages/icons/src/icons/UserLine.tsx index a245dd3ea0..680c90bc1c 100644 --- a/packages/ndla-icons/src/common/UserLine.tsx +++ b/packages/icons/src/icons/UserLine.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const UserLine = (props: Props) => ( diff --git a/packages/ndla-icons/src/common/VoicePrintLine.tsx b/packages/icons/src/icons/VoiceprintFill.tsx similarity index 78% rename from packages/ndla-icons/src/common/VoicePrintLine.tsx rename to packages/icons/src/icons/VoiceprintFill.tsx index 97e9ec8beb..4a780a37a1 100644 --- a/packages/ndla-icons/src/common/VoicePrintLine.tsx +++ b/packages/icons/src/icons/VoiceprintFill.tsx @@ -6,10 +6,10 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; -const VoicePrintLine = (props: Props) => ( +import Icon, { type Props } from "../Icon"; +const VoiceprintFill = (props: Props) => ( ); -export default VoicePrintLine; +export default VoiceprintFill; diff --git a/packages/icons/src/icons/VoiceprintLine.tsx b/packages/icons/src/icons/VoiceprintLine.tsx new file mode 100644 index 0000000000..ecbd77ec2a --- /dev/null +++ b/packages/icons/src/icons/VoiceprintLine.tsx @@ -0,0 +1,15 @@ +/** + * Copyright (c) 2024-present, NDLA. + * + * This source code is licensed under the GPLv3 license found in the + * LICENSE file in the root directory of this source tree. + * + */ +// N.B! AUTOGENERATED FILE. DO NOT EDIT; +import Icon, { type Props } from "../Icon"; +const VoiceprintLine = (props: Props) => ( + + + +); +export default VoiceprintLine; diff --git a/packages/icons/src/icons/Voiceprintine.tsx b/packages/icons/src/icons/Voiceprintine.tsx new file mode 100644 index 0000000000..ecbd77ec2a --- /dev/null +++ b/packages/icons/src/icons/Voiceprintine.tsx @@ -0,0 +1,15 @@ +/** + * Copyright (c) 2024-present, NDLA. + * + * This source code is licensed under the GPLv3 license found in the + * LICENSE file in the root directory of this source tree. + * + */ +// N.B! AUTOGENERATED FILE. DO NOT EDIT; +import Icon, { type Props } from "../Icon"; +const VoiceprintLine = (props: Props) => ( + + + +); +export default VoiceprintLine; diff --git a/packages/ndla-icons/src/common/VolumeUpFill.tsx b/packages/icons/src/icons/VolumeUpFill.tsx similarity index 94% rename from packages/ndla-icons/src/common/VolumeUpFill.tsx rename to packages/icons/src/icons/VolumeUpFill.tsx index 9442f7b9a0..ff9248cc2f 100644 --- a/packages/ndla-icons/src/common/VolumeUpFill.tsx +++ b/packages/icons/src/icons/VolumeUpFill.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const VolumeUpFill = (props: Props) => ( diff --git a/packages/ndla-icons/src/common/VolumeUpLine.tsx b/packages/icons/src/icons/VolumeUpLine.tsx similarity index 94% rename from packages/ndla-icons/src/common/VolumeUpLine.tsx rename to packages/icons/src/icons/VolumeUpLine.tsx index 12f4ef3d7c..a13646c296 100644 --- a/packages/ndla-icons/src/common/VolumeUpLine.tsx +++ b/packages/icons/src/icons/VolumeUpLine.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const VolumeUpLine = (props: Props) => ( diff --git a/packages/ndla-icons/src/common/YoutubeFill.tsx b/packages/icons/src/icons/YoutubeFill.tsx similarity index 94% rename from packages/ndla-icons/src/common/YoutubeFill.tsx rename to packages/icons/src/icons/YoutubeFill.tsx index 9b157990ec..d9208bee50 100644 --- a/packages/ndla-icons/src/common/YoutubeFill.tsx +++ b/packages/icons/src/icons/YoutubeFill.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const YoutubeFill = (props: Props) => ( diff --git a/packages/ndla-icons/src/common/YoutubeLine.tsx b/packages/icons/src/icons/YoutubeLine.tsx similarity index 95% rename from packages/ndla-icons/src/common/YoutubeLine.tsx rename to packages/icons/src/icons/YoutubeLine.tsx index 21287237f4..a9d69fa607 100644 --- a/packages/ndla-icons/src/common/YoutubeLine.tsx +++ b/packages/icons/src/icons/YoutubeLine.tsx @@ -6,7 +6,7 @@ * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; +import Icon, { type Props } from "../Icon"; const YoutubeLine = (props: Props) => ( diff --git a/packages/icons/src/icons/index.ts b/packages/icons/src/icons/index.ts new file mode 100644 index 0000000000..4527253c7a --- /dev/null +++ b/packages/icons/src/icons/index.ts @@ -0,0 +1,220 @@ +/** + * Copyright (c) 2021-present, NDLA. + * + * This source code is licensed under the GPLv3 license found in the + * LICENSE file in the root directory of this source tree. + * + */ + +// N.B! AUTOGENERATED FILE. DO NOT EDIT +export { default as AccountCircleFill } from "./AccountCircleFill"; +export { default as AccountCircleLine } from "./AccountCircleLine"; +export { default as AddLine } from "./AddLine"; +export { default as Additional } from "./Additional"; +export { default as AdminFill } from "./AdminFill"; +export { default as AdminLine } from "./AdminLine"; +export { default as AlertFill } from "./AlertFill"; +export { default as AlertLine } from "./AlertLine"; +export { default as AlignCenter } from "./AlignCenter"; +export { default as AlignLeft } from "./AlignLeft"; +export { default as AlignRight } from "./AlignRight"; +export { default as ArrowDownShortLine } from "./ArrowDownShortLine"; +export { default as ArrowLeftLine } from "./ArrowLeftLine"; +export { default as ArrowLeftRightLine } from "./ArrowLeftRightLine"; +export { default as ArrowLeftShortLine } from "./ArrowLeftShortLine"; +export { default as ArrowRightLine } from "./ArrowRightLine"; +export { default as ArrowRightShortLine } from "./ArrowRightShortLine"; +export { default as ArrowUpDoubleLine } from "./ArrowUpDoubleLine"; +export { default as ArrowUpShortLine } from "./ArrowUpShortLine"; +export { default as Bold } from "./Bold"; +export { default as BookOpenFill } from "./BookOpenFill"; +export { default as BookOpenLine } from "./BookOpenLine"; +export { default as BookReadFill } from "./BookReadFill"; +export { default as BookReadLine } from "./BookReadLine"; +export { default as BookmarkFill } from "./BookmarkFill"; +export { default as BookmarkLine } from "./BookmarkLine"; +export { default as BroadcastFill } from "./BroadcastFill"; +export { default as BroadcastLine } from "./BroadcastLine"; +export { default as BrushLine } from "./BrushLine"; +export { default as CalculatorFill } from "./CalculatorFill"; +export { default as CalculatorLine } from "./CalculatorLine"; +export { default as CalendarFill } from "./CalendarFill"; +export { default as CalendarLine } from "./CalendarLine"; +export { default as CameraFill } from "./CameraFill"; +export { default as CameraLine } from "./CameraLine"; +export { default as ChatHeartFill } from "./ChatHeartFill"; +export { default as ChatHeartLine } from "./ChatHeartLine"; +export { default as ChatLine } from "./ChatLine"; +export { default as CheckLine } from "./CheckLine"; +export { default as CheckboxCircleFill } from "./CheckboxCircleFill"; +export { default as CheckboxCircleLine } from "./CheckboxCircleLine"; +export { default as CheckboxFill } from "./CheckboxFill"; +export { default as CheckboxLine } from "./CheckboxLine"; +export { default as CircleFill } from "./CircleFill"; +export { default as CircleLine } from "./CircleLine"; +export { default as CloseLine } from "./CloseLine"; +export { default as CodeView } from "./CodeView"; +export { default as CompassFill } from "./CompassFill"; +export { default as CompassLine } from "./CompassLine"; +export { default as CopyrightFill } from "./CopyrightFill"; +export { default as CopyrightLine } from "./CopyrightLine"; +export { default as CornerDownLeftLine } from "./CornerDownLeftLine"; +export { default as CornerDownRightLine } from "./CornerDownRightLine"; +export { default as CropFill } from "./CropFill"; +export { default as CropLine } from "./CropLine"; +export { default as DeleteBinFill } from "./DeleteBinFill"; +export { default as DeleteBinLine } from "./DeleteBinLine"; +export { default as DoorLockFill } from "./DoorLockFill"; +export { default as DoorLockLine } from "./DoorLockLine"; +export { default as DownloadLine } from "./DownloadLine"; +export { default as Draggable } from "./Draggable"; +export { default as ErrorWarningFill } from "./ErrorWarningFill"; +export { default as ErrorWarningLine } from "./ErrorWarningLine"; +export { default as ExpandDiagonalLine } from "./ExpandDiagonalLine"; +export { default as ExpandUpDownLine } from "./ExpandUpDownLine"; +export { default as ExternalLinkLine } from "./ExternalLinkLine"; +export { default as EyeFill } from "./EyeFill"; +export { default as EyeLine } from "./EyeLine"; +export { default as FacebookCircleFill } from "./FacebookCircleFill"; +export { default as FacebookCircleLine } from "./FacebookCircleLine"; +export { default as Feide } from "./Feide"; +export { default as FileCopyFill } from "./FileCopyFill"; +export { default as FileCopyLine } from "./FileCopyLine"; +export { default as FileEditFill } from "./FileEditFill"; +export { default as FileEditLine } from "./FileEditLine"; +export { default as FileListFill } from "./FileListFill"; +export { default as FileListLine } from "./FileListLine"; +export { default as FileMarkedFill } from "./FileMarkedFill"; +export { default as FileMarkedLine } from "./FileMarkedLine"; +export { default as FilePdfFill } from "./FilePdfFill"; +export { default as FilePdfLine } from "./FilePdfLine"; +export { default as FileTextFill } from "./FileTextFill"; +export { default as FileTextLine } from "./FileTextLine"; +export { default as FocusMode } from "./FocusMode"; +export { default as FolderFill } from "./FolderFill"; +export { default as FolderLine } from "./FolderLine"; +export { default as FolderUserFill } from "./FolderUserFill"; +export { default as FolderUserLine } from "./FolderUserLine"; +export { default as Forum } from "./Forum"; +export { default as ForumOutlined } from "./ForumOutlined"; +export { default as Forward15Line } from "./Forward15Line"; +export { default as GlobalFill } from "./GlobalFill"; +export { default as GlobalLine } from "./GlobalLine"; +export { default as H5P } from "./H5P"; +export { default as HashTag } from "./HashTag"; +export { default as HeadphoneFill } from "./HeadphoneFill"; +export { default as HeadphoneLine } from "./HeadphoneLine"; +export { default as HeartFill } from "./HeartFill"; +export { default as HeartLine } from "./HeartLine"; +export { default as HomeFill } from "./HomeFill"; +export { default as HomeLine } from "./HomeLine"; +export { default as ImageFill } from "./ImageFill"; +export { default as ImageLine } from "./ImageLine"; +export { default as InformationFill } from "./InformationFill"; +export { default as InformationLine } from "./InformationLine"; +export { default as InstagramFill } from "./InstagramFill"; +export { default as InstagramLine } from "./InstagramLine"; +export { default as Italic } from "./Italic"; +export { default as LayoutColumnLine } from "./LayoutColumnLine"; +export { default as LineChartLine } from "./LineChartLine"; +export { default as LinkMedium } from "./LinkMedium"; +export { default as LinkedinBoxFill } from "./LinkedinBoxFill"; +export { default as LinkedinBoxLine } from "./LinkedinBoxLine"; +export { default as ListAlphabetical } from "./ListAlphabetical"; +export { default as ListCheck } from "./ListCheck"; +export { default as ListCheckFormat } from "./ListCheckFormat"; +export { default as ListOrdered } from "./ListOrdered"; +export { default as ListUnordered } from "./ListUnordered"; +export { default as LockFill } from "./LockFill"; +export { default as LockLine } from "./LockLine"; +export { default as LockUnlockedFill } from "./LockUnlockedFill"; +export { default as LockUnlockedLine } from "./LockUnlockedLine"; +export { default as LoginBoxLine } from "./LoginBoxLine"; +export { default as LogoutBoxRightLine } from "./LogoutBoxRightLine"; +export { default as MailFill } from "./MailFill"; +export { default as MailLine } from "./MailLine"; +export { default as MegaphoneFill } from "./MegaphoneFill"; +export { default as MegaphoneLine } from "./MegaphoneLine"; +export { default as MenuLine } from "./MenuLine"; +export { default as MenuSearchFill } from "./MenuSearchFill"; +export { default as MenuSearchLine } from "./MenuSearchLine"; +export { default as MessageFill } from "./MessageFill"; +export { default as MessageLine } from "./MessageLine"; +export { default as MoreFill } from "./MoreFill"; +export { default as MoreLine } from "./MoreLine"; +export { default as MoreVerticalFill } from "./MoreVerticalFill"; +export { default as MoreVerticalLine } from "./MoreVerticalLine"; +export { default as MovieFill } from "./MovieFill"; +export { default as MovieLine } from "./MovieLine"; +export { default as NotificationFill } from "./NotificationFill"; +export { default as NotificationLine } from "./NotificationLine"; +export { default as OrganizationChart } from "./OrganizationChart"; +export { default as PanoramaPhotosphere } from "./PanoramaPhotosphere"; +export { default as PauseLine } from "./PauseLine"; +export { default as PencilFill } from "./PencilFill"; +export { default as PencilLine } from "./PencilLine"; +export { default as PlayCircleFill } from "./PlayCircleFill"; +export { default as PlayCircleLine } from "./PlayCircleLine"; +export { default as PlayFill } from "./PlayFill"; +export { default as PlayLine } from "./PlayLine"; +export { default as PresentationFill } from "./PresentationFill"; +export { default as PresentationLine } from "./PresentationLine"; +export { default as PushpinFill } from "./PushpinFill"; +export { default as PushpinLine } from "./PushpinLine"; +export { default as QuestionAnswerFill } from "./QuestionAnswerFill"; +export { default as QuestionAnswerLine } from "./QuestionAnswerLine"; +export { default as QuestionFill } from "./QuestionFill"; +export { default as QuestionLine } from "./QuestionLine"; +export { default as QuestionnaireFill } from "./QuestionnaireFill"; +export { default as QuestionnaireLine } from "./QuestionnaireLine"; +export { default as Quote } from "./Quote"; +export { default as Replay15Line } from "./Replay15Line"; +export { default as Reply } from "./Reply"; +export { default as ResetLeft } from "./ResetLeft"; +export { default as RouteFill } from "./RouteFill"; +export { default as RouteLine } from "./RouteLine"; +export { default as RssFill } from "./RssFill"; +export { default as RssLine } from "./RssLine"; +export { default as SearchContent } from "./SearchContent"; +export { default as SearchFill } from "./SearchFill"; +export { default as SearchLine } from "./SearchLine"; +export { default as SearchMedia } from "./SearchMedia"; +export { default as SettingsFill } from "./SettingsFill"; +export { default as SettingsLine } from "./SettingsLine"; +export { default as ShareBoxLine } from "./ShareBoxLine"; +export { default as ShareFill } from "./ShareFill"; +export { default as ShareLine } from "./ShareLine"; +export { default as ShieldUserFill } from "./ShieldUserFill"; +export { default as ShieldUserLine } from "./ShieldUserLine"; +export { default as SlideshowFill } from "./SlideshowFill"; +export { default as SlideshowLine } from "./SlideshowLine"; +export { default as SpamFill } from "./SpamFill"; +export { default as SpamLine } from "./SpamLine"; +export { default as SquareFill } from "./SquareFill"; +export { default as SquareLine } from "./SquareLine"; +export { default as StarFill } from "./StarFill"; +export { default as StarLine } from "./StarLine"; +export { default as StickyNoteAddFill } from "./StickyNoteAddFill"; +export { default as StickyNoteAddLine } from "./StickyNoteAddLine"; +export { default as Subscript } from "./Subscript"; +export { default as SubtractLine } from "./SubtractLine"; +export { default as Superscript } from "./Superscript"; +export { default as TableFill } from "./TableFill"; +export { default as TableLine } from "./TableLine"; +export { default as TextWrap } from "./TextWrap"; +export { default as Thumb } from "./Thumb"; +export { default as ThumbFilled } from "./ThumbFilled"; +export { default as TimeFill } from "./TimeFill"; +export { default as TimeLine } from "./TimeLine"; +export { default as Underline } from "./Underline"; +export { default as UploadCloudFill } from "./UploadCloudFill"; +export { default as UploadCloudLine } from "./UploadCloudLine"; +export { default as UploadLine } from "./UploadLine"; +export { default as UserFill } from "./UserFill"; +export { default as UserLine } from "./UserLine"; +export { default as VoiceprintFill } from "./VoiceprintFill"; +export { default as VoiceprintLine } from "./VoiceprintLine"; +export { default as VolumeUpFill } from "./VolumeUpFill"; +export { default as VolumeUpLine } from "./VolumeUpLine"; +export { default as YoutubeFill } from "./YoutubeFill"; +export { default as YoutubeLine } from "./YoutubeLine"; diff --git a/packages/ndla-icons/src/index.ts b/packages/icons/src/index.ts similarity index 91% rename from packages/ndla-icons/src/index.ts rename to packages/icons/src/index.ts index 2cc113b1de..6637ba590a 100644 --- a/packages/ndla-icons/src/index.ts +++ b/packages/icons/src/index.ts @@ -8,3 +8,4 @@ export { default as Icon } from "./Icon"; export type { Props as IconProps } from "./Icon"; +export * from "./icons"; diff --git a/packages/ndla-icons/svg/common/AccountCircleFill.svg b/packages/icons/svg/AccountCircleFill.svg similarity index 100% rename from packages/ndla-icons/svg/common/AccountCircleFill.svg rename to packages/icons/svg/AccountCircleFill.svg diff --git a/packages/ndla-icons/svg/common/AccountCircleLine.svg b/packages/icons/svg/AccountCircleLine.svg similarity index 100% rename from packages/ndla-icons/svg/common/AccountCircleLine.svg rename to packages/icons/svg/AccountCircleLine.svg diff --git a/packages/ndla-icons/svg/action/AddLine.svg b/packages/icons/svg/AddLine.svg similarity index 100% rename from packages/ndla-icons/svg/action/AddLine.svg rename to packages/icons/svg/AddLine.svg diff --git a/packages/ndla-icons/svg/common/Additional.svg b/packages/icons/svg/Additional.svg similarity index 100% rename from packages/ndla-icons/svg/common/Additional.svg rename to packages/icons/svg/Additional.svg diff --git a/packages/ndla-icons/svg/common/AdminFill.svg b/packages/icons/svg/AdminFill.svg similarity index 100% rename from packages/ndla-icons/svg/common/AdminFill.svg rename to packages/icons/svg/AdminFill.svg diff --git a/packages/ndla-icons/svg/common/AdminLine.svg b/packages/icons/svg/AdminLine.svg similarity index 100% rename from packages/ndla-icons/svg/common/AdminLine.svg rename to packages/icons/svg/AdminLine.svg diff --git a/packages/ndla-icons/svg/common/AlertFill.svg b/packages/icons/svg/AlertFill.svg similarity index 100% rename from packages/ndla-icons/svg/common/AlertFill.svg rename to packages/icons/svg/AlertFill.svg diff --git a/packages/ndla-icons/svg/common/AlertLine.svg b/packages/icons/svg/AlertLine.svg similarity index 100% rename from packages/ndla-icons/svg/common/AlertLine.svg rename to packages/icons/svg/AlertLine.svg diff --git a/packages/icons/svg/AlignCenter.svg b/packages/icons/svg/AlignCenter.svg new file mode 100644 index 0000000000..8d2edab007 --- /dev/null +++ b/packages/icons/svg/AlignCenter.svg @@ -0,0 +1 @@ + diff --git a/packages/icons/svg/AlignLeft.svg b/packages/icons/svg/AlignLeft.svg new file mode 100644 index 0000000000..8d1d47eb50 --- /dev/null +++ b/packages/icons/svg/AlignLeft.svg @@ -0,0 +1 @@ + diff --git a/packages/icons/svg/AlignRight.svg b/packages/icons/svg/AlignRight.svg new file mode 100644 index 0000000000..98ef3475a2 --- /dev/null +++ b/packages/icons/svg/AlignRight.svg @@ -0,0 +1 @@ + diff --git a/packages/ndla-icons/svg/common/ArrowDownShortLine.svg b/packages/icons/svg/ArrowDownShortLine.svg similarity index 100% rename from packages/ndla-icons/svg/common/ArrowDownShortLine.svg rename to packages/icons/svg/ArrowDownShortLine.svg diff --git a/packages/ndla-icons/svg/common/ArrowLeftLine.svg b/packages/icons/svg/ArrowLeftLine.svg similarity index 100% rename from packages/ndla-icons/svg/common/ArrowLeftLine.svg rename to packages/icons/svg/ArrowLeftLine.svg diff --git a/packages/ndla-icons/svg/action/ArrowLeftRightLine.svg b/packages/icons/svg/ArrowLeftRightLine.svg similarity index 100% rename from packages/ndla-icons/svg/action/ArrowLeftRightLine.svg rename to packages/icons/svg/ArrowLeftRightLine.svg diff --git a/packages/ndla-icons/svg/common/ArrowLeftShortLine.svg b/packages/icons/svg/ArrowLeftShortLine.svg similarity index 100% rename from packages/ndla-icons/svg/common/ArrowLeftShortLine.svg rename to packages/icons/svg/ArrowLeftShortLine.svg diff --git a/packages/ndla-icons/svg/common/ArrowRightLine.svg b/packages/icons/svg/ArrowRightLine.svg similarity index 100% rename from packages/ndla-icons/svg/common/ArrowRightLine.svg rename to packages/icons/svg/ArrowRightLine.svg diff --git a/packages/ndla-icons/svg/common/ArrowRightShortLine.svg b/packages/icons/svg/ArrowRightShortLine.svg similarity index 100% rename from packages/ndla-icons/svg/common/ArrowRightShortLine.svg rename to packages/icons/svg/ArrowRightShortLine.svg diff --git a/packages/icons/svg/ArrowUpDoubleLine.svg b/packages/icons/svg/ArrowUpDoubleLine.svg new file mode 100644 index 0000000000..4ff18f4302 --- /dev/null +++ b/packages/icons/svg/ArrowUpDoubleLine.svg @@ -0,0 +1 @@ + diff --git a/packages/ndla-icons/svg/common/ArrowUpShortLine.svg b/packages/icons/svg/ArrowUpShortLine.svg similarity index 100% rename from packages/ndla-icons/svg/common/ArrowUpShortLine.svg rename to packages/icons/svg/ArrowUpShortLine.svg diff --git a/packages/ndla-icons/svg/editor/Bold.svg b/packages/icons/svg/Bold.svg similarity index 100% rename from packages/ndla-icons/svg/editor/Bold.svg rename to packages/icons/svg/Bold.svg diff --git a/packages/ndla-icons/svg/common/BookOpenFill.svg b/packages/icons/svg/BookOpenFill.svg similarity index 100% rename from packages/ndla-icons/svg/common/BookOpenFill.svg rename to packages/icons/svg/BookOpenFill.svg diff --git a/packages/ndla-icons/svg/common/BookOpenLine.svg b/packages/icons/svg/BookOpenLine.svg similarity index 100% rename from packages/ndla-icons/svg/common/BookOpenLine.svg rename to packages/icons/svg/BookOpenLine.svg diff --git a/packages/ndla-icons/svg/common/BookReadFill.svg b/packages/icons/svg/BookReadFill.svg similarity index 100% rename from packages/ndla-icons/svg/common/BookReadFill.svg rename to packages/icons/svg/BookReadFill.svg diff --git a/packages/ndla-icons/svg/common/BookReadLine.svg b/packages/icons/svg/BookReadLine.svg similarity index 100% rename from packages/ndla-icons/svg/common/BookReadLine.svg rename to packages/icons/svg/BookReadLine.svg diff --git a/packages/ndla-icons/svg/action/BookmarkFill.svg b/packages/icons/svg/BookmarkFill.svg similarity index 100% rename from packages/ndla-icons/svg/action/BookmarkFill.svg rename to packages/icons/svg/BookmarkFill.svg diff --git a/packages/ndla-icons/svg/action/BookmarkLine.svg b/packages/icons/svg/BookmarkLine.svg similarity index 100% rename from packages/ndla-icons/svg/action/BookmarkLine.svg rename to packages/icons/svg/BookmarkLine.svg diff --git a/packages/ndla-icons/svg/common/BroadcastFill.svg b/packages/icons/svg/BroadcastFill.svg similarity index 100% rename from packages/ndla-icons/svg/common/BroadcastFill.svg rename to packages/icons/svg/BroadcastFill.svg diff --git a/packages/ndla-icons/svg/common/BroadcastLine.svg b/packages/icons/svg/BroadcastLine.svg similarity index 100% rename from packages/ndla-icons/svg/common/BroadcastLine.svg rename to packages/icons/svg/BroadcastLine.svg diff --git a/packages/ndla-icons/svg/editor/BrushLine.svg b/packages/icons/svg/BrushLine.svg similarity index 100% rename from packages/ndla-icons/svg/editor/BrushLine.svg rename to packages/icons/svg/BrushLine.svg diff --git a/packages/ndla-icons/svg/editor/CalculatorFill.svg b/packages/icons/svg/CalculatorFill.svg similarity index 100% rename from packages/ndla-icons/svg/editor/CalculatorFill.svg rename to packages/icons/svg/CalculatorFill.svg diff --git a/packages/ndla-icons/svg/editor/CalculatorLine.svg b/packages/icons/svg/CalculatorLine.svg similarity index 100% rename from packages/ndla-icons/svg/editor/CalculatorLine.svg rename to packages/icons/svg/CalculatorLine.svg diff --git a/packages/ndla-icons/svg/editor/CalendarFill.svg b/packages/icons/svg/CalendarFill.svg similarity index 100% rename from packages/ndla-icons/svg/editor/CalendarFill.svg rename to packages/icons/svg/CalendarFill.svg diff --git a/packages/ndla-icons/svg/editor/CalendarLine.svg b/packages/icons/svg/CalendarLine.svg similarity index 100% rename from packages/ndla-icons/svg/editor/CalendarLine.svg rename to packages/icons/svg/CalendarLine.svg diff --git a/packages/ndla-icons/svg/editor/CameraFill.svg b/packages/icons/svg/CameraFill.svg similarity index 100% rename from packages/ndla-icons/svg/editor/CameraFill.svg rename to packages/icons/svg/CameraFill.svg diff --git a/packages/ndla-icons/svg/editor/CameraLine.svg b/packages/icons/svg/CameraLine.svg similarity index 100% rename from packages/ndla-icons/svg/editor/CameraLine.svg rename to packages/icons/svg/CameraLine.svg diff --git a/packages/ndla-icons/svg/common/ChatHeartFill.svg b/packages/icons/svg/ChatHeartFill.svg similarity index 100% rename from packages/ndla-icons/svg/common/ChatHeartFill.svg rename to packages/icons/svg/ChatHeartFill.svg diff --git a/packages/ndla-icons/svg/common/ChatHeartLine.svg b/packages/icons/svg/ChatHeartLine.svg similarity index 100% rename from packages/ndla-icons/svg/common/ChatHeartLine.svg rename to packages/icons/svg/ChatHeartLine.svg diff --git a/packages/ndla-icons/svg/editor/ChatLine.svg b/packages/icons/svg/ChatLine.svg similarity index 100% rename from packages/ndla-icons/svg/editor/ChatLine.svg rename to packages/icons/svg/ChatLine.svg diff --git a/packages/ndla-icons/svg/editor/CheckLine.svg b/packages/icons/svg/CheckLine.svg similarity index 100% rename from packages/ndla-icons/svg/editor/CheckLine.svg rename to packages/icons/svg/CheckLine.svg diff --git a/packages/ndla-icons/svg/editor/CheckboxCircleFill.svg b/packages/icons/svg/CheckboxCircleFill.svg similarity index 100% rename from packages/ndla-icons/svg/editor/CheckboxCircleFill.svg rename to packages/icons/svg/CheckboxCircleFill.svg diff --git a/packages/ndla-icons/svg/editor/CheckboxCircleLine.svg b/packages/icons/svg/CheckboxCircleLine.svg similarity index 100% rename from packages/ndla-icons/svg/editor/CheckboxCircleLine.svg rename to packages/icons/svg/CheckboxCircleLine.svg diff --git a/packages/ndla-icons/svg/editor/CheckboxFill.svg b/packages/icons/svg/CheckboxFill.svg similarity index 100% rename from packages/ndla-icons/svg/editor/CheckboxFill.svg rename to packages/icons/svg/CheckboxFill.svg diff --git a/packages/ndla-icons/svg/editor/CheckboxLine.svg b/packages/icons/svg/CheckboxLine.svg similarity index 100% rename from packages/ndla-icons/svg/editor/CheckboxLine.svg rename to packages/icons/svg/CheckboxLine.svg diff --git a/packages/ndla-icons/svg/common/CircleFill.svg b/packages/icons/svg/CircleFill.svg similarity index 100% rename from packages/ndla-icons/svg/common/CircleFill.svg rename to packages/icons/svg/CircleFill.svg diff --git a/packages/ndla-icons/svg/editor/CircleLine.svg b/packages/icons/svg/CircleLine.svg similarity index 100% rename from packages/ndla-icons/svg/editor/CircleLine.svg rename to packages/icons/svg/CircleLine.svg diff --git a/packages/ndla-icons/svg/action/CloseLine.svg b/packages/icons/svg/CloseLine.svg similarity index 100% rename from packages/ndla-icons/svg/action/CloseLine.svg rename to packages/icons/svg/CloseLine.svg diff --git a/packages/ndla-icons/svg/editor/CodeView.svg b/packages/icons/svg/CodeView.svg similarity index 100% rename from packages/ndla-icons/svg/editor/CodeView.svg rename to packages/icons/svg/CodeView.svg diff --git a/packages/ndla-icons/svg/common/CompassFill.svg b/packages/icons/svg/CompassFill.svg similarity index 100% rename from packages/ndla-icons/svg/common/CompassFill.svg rename to packages/icons/svg/CompassFill.svg diff --git a/packages/ndla-icons/svg/common/CompassLine.svg b/packages/icons/svg/CompassLine.svg similarity index 100% rename from packages/ndla-icons/svg/common/CompassLine.svg rename to packages/icons/svg/CompassLine.svg diff --git a/packages/ndla-icons/svg/editor/CopyrightFill.svg b/packages/icons/svg/CopyrightFill.svg similarity index 100% rename from packages/ndla-icons/svg/editor/CopyrightFill.svg rename to packages/icons/svg/CopyrightFill.svg diff --git a/packages/ndla-icons/svg/editor/CopyrightLine.svg b/packages/icons/svg/CopyrightLine.svg similarity index 100% rename from packages/ndla-icons/svg/editor/CopyrightLine.svg rename to packages/icons/svg/CopyrightLine.svg diff --git a/packages/ndla-icons/svg/common/CornerDownLeftLine.svg b/packages/icons/svg/CornerDownLeftLine.svg similarity index 100% rename from packages/ndla-icons/svg/common/CornerDownLeftLine.svg rename to packages/icons/svg/CornerDownLeftLine.svg diff --git a/packages/icons/svg/CornerDownRightLine.svg b/packages/icons/svg/CornerDownRightLine.svg new file mode 100644 index 0000000000..cabd444814 --- /dev/null +++ b/packages/icons/svg/CornerDownRightLine.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/packages/ndla-icons/svg/editor/CropFill.svg b/packages/icons/svg/CropFill.svg similarity index 100% rename from packages/ndla-icons/svg/editor/CropFill.svg rename to packages/icons/svg/CropFill.svg diff --git a/packages/ndla-icons/svg/editor/CropLine.svg b/packages/icons/svg/CropLine.svg similarity index 100% rename from packages/ndla-icons/svg/editor/CropLine.svg rename to packages/icons/svg/CropLine.svg diff --git a/packages/ndla-icons/svg/action/DeleteBinFill.svg b/packages/icons/svg/DeleteBinFill.svg similarity index 100% rename from packages/ndla-icons/svg/action/DeleteBinFill.svg rename to packages/icons/svg/DeleteBinFill.svg diff --git a/packages/ndla-icons/svg/action/DeleteBinLine.svg b/packages/icons/svg/DeleteBinLine.svg similarity index 100% rename from packages/ndla-icons/svg/action/DeleteBinLine.svg rename to packages/icons/svg/DeleteBinLine.svg diff --git a/packages/ndla-icons/svg/editor/DoorLockFill.svg b/packages/icons/svg/DoorLockFill.svg similarity index 100% rename from packages/ndla-icons/svg/editor/DoorLockFill.svg rename to packages/icons/svg/DoorLockFill.svg diff --git a/packages/ndla-icons/svg/editor/DoorLockLine.svg b/packages/icons/svg/DoorLockLine.svg similarity index 100% rename from packages/ndla-icons/svg/editor/DoorLockLine.svg rename to packages/icons/svg/DoorLockLine.svg diff --git a/packages/ndla-icons/svg/common/DownloadLine.svg b/packages/icons/svg/DownloadLine.svg similarity index 100% rename from packages/ndla-icons/svg/common/DownloadLine.svg rename to packages/icons/svg/DownloadLine.svg diff --git a/packages/ndla-icons/svg/editor/Draggable.svg b/packages/icons/svg/Draggable.svg similarity index 100% rename from packages/ndla-icons/svg/editor/Draggable.svg rename to packages/icons/svg/Draggable.svg diff --git a/packages/ndla-icons/svg/common/ErrorWarningFill.svg b/packages/icons/svg/ErrorWarningFill.svg similarity index 100% rename from packages/ndla-icons/svg/common/ErrorWarningFill.svg rename to packages/icons/svg/ErrorWarningFill.svg diff --git a/packages/ndla-icons/svg/common/ErrorWarningLine.svg b/packages/icons/svg/ErrorWarningLine.svg similarity index 100% rename from packages/ndla-icons/svg/common/ErrorWarningLine.svg rename to packages/icons/svg/ErrorWarningLine.svg diff --git a/packages/ndla-icons/svg/editor/ExpandDiagonalLine.svg b/packages/icons/svg/ExpandDiagonalLine.svg similarity index 100% rename from packages/ndla-icons/svg/editor/ExpandDiagonalLine.svg rename to packages/icons/svg/ExpandDiagonalLine.svg diff --git a/packages/ndla-icons/svg/editor/ExpandUpDownLine.svg b/packages/icons/svg/ExpandUpDownLine.svg similarity index 100% rename from packages/ndla-icons/svg/editor/ExpandUpDownLine.svg rename to packages/icons/svg/ExpandUpDownLine.svg diff --git a/packages/icons/svg/ExternalLinkLine.svg b/packages/icons/svg/ExternalLinkLine.svg new file mode 100644 index 0000000000..913a51e1c8 --- /dev/null +++ b/packages/icons/svg/ExternalLinkLine.svg @@ -0,0 +1 @@ + diff --git a/packages/ndla-icons/svg/editor/EyeFill.svg b/packages/icons/svg/EyeFill.svg similarity index 100% rename from packages/ndla-icons/svg/editor/EyeFill.svg rename to packages/icons/svg/EyeFill.svg diff --git a/packages/ndla-icons/svg/editor/EyeLine.svg b/packages/icons/svg/EyeLine.svg similarity index 100% rename from packages/ndla-icons/svg/editor/EyeLine.svg rename to packages/icons/svg/EyeLine.svg diff --git a/packages/ndla-icons/svg/common/FacebookCircleFill.svg b/packages/icons/svg/FacebookCircleFill.svg similarity index 100% rename from packages/ndla-icons/svg/common/FacebookCircleFill.svg rename to packages/icons/svg/FacebookCircleFill.svg diff --git a/packages/ndla-icons/svg/common/FacebookCircleLine.svg b/packages/icons/svg/FacebookCircleLine.svg similarity index 100% rename from packages/ndla-icons/svg/common/FacebookCircleLine.svg rename to packages/icons/svg/FacebookCircleLine.svg diff --git a/packages/ndla-icons/svg/common/Feide.svg b/packages/icons/svg/Feide.svg similarity index 100% rename from packages/ndla-icons/svg/common/Feide.svg rename to packages/icons/svg/Feide.svg diff --git a/packages/ndla-icons/svg/action/FileCopyFill.svg b/packages/icons/svg/FileCopyFill.svg similarity index 100% rename from packages/ndla-icons/svg/action/FileCopyFill.svg rename to packages/icons/svg/FileCopyFill.svg diff --git a/packages/ndla-icons/svg/action/FileCopyLine.svg b/packages/icons/svg/FileCopyLine.svg similarity index 100% rename from packages/ndla-icons/svg/action/FileCopyLine.svg rename to packages/icons/svg/FileCopyLine.svg diff --git a/packages/ndla-icons/svg/common/FileEditFill.svg b/packages/icons/svg/FileEditFill.svg similarity index 100% rename from packages/ndla-icons/svg/common/FileEditFill.svg rename to packages/icons/svg/FileEditFill.svg diff --git a/packages/ndla-icons/svg/common/FileEditLine.svg b/packages/icons/svg/FileEditLine.svg similarity index 100% rename from packages/ndla-icons/svg/common/FileEditLine.svg rename to packages/icons/svg/FileEditLine.svg diff --git a/packages/ndla-icons/svg/editor/FileListFill.svg b/packages/icons/svg/FileListFill.svg similarity index 100% rename from packages/ndla-icons/svg/editor/FileListFill.svg rename to packages/icons/svg/FileListFill.svg diff --git a/packages/ndla-icons/svg/editor/FileListLine.svg b/packages/icons/svg/FileListLine.svg similarity index 100% rename from packages/ndla-icons/svg/editor/FileListLine.svg rename to packages/icons/svg/FileListLine.svg diff --git a/packages/ndla-icons/svg/action/FileMarkedFill.svg b/packages/icons/svg/FileMarkedFill.svg similarity index 100% rename from packages/ndla-icons/svg/action/FileMarkedFill.svg rename to packages/icons/svg/FileMarkedFill.svg diff --git a/packages/ndla-icons/svg/action/FileMarkedLine.svg b/packages/icons/svg/FileMarkedLine.svg similarity index 100% rename from packages/ndla-icons/svg/action/FileMarkedLine.svg rename to packages/icons/svg/FileMarkedLine.svg diff --git a/packages/ndla-icons/svg/common/FilePdfFill.svg b/packages/icons/svg/FilePdfFill.svg similarity index 100% rename from packages/ndla-icons/svg/common/FilePdfFill.svg rename to packages/icons/svg/FilePdfFill.svg diff --git a/packages/ndla-icons/svg/common/FilePdfLine.svg b/packages/icons/svg/FilePdfLine.svg similarity index 100% rename from packages/ndla-icons/svg/common/FilePdfLine.svg rename to packages/icons/svg/FilePdfLine.svg diff --git a/packages/ndla-icons/svg/common/FileTextFill.svg b/packages/icons/svg/FileTextFill.svg similarity index 100% rename from packages/ndla-icons/svg/common/FileTextFill.svg rename to packages/icons/svg/FileTextFill.svg diff --git a/packages/ndla-icons/svg/common/FileTextLine.svg b/packages/icons/svg/FileTextLine.svg similarity index 100% rename from packages/ndla-icons/svg/common/FileTextLine.svg rename to packages/icons/svg/FileTextLine.svg diff --git a/packages/icons/svg/FocusMode.svg b/packages/icons/svg/FocusMode.svg new file mode 100644 index 0000000000..c72d4e124b --- /dev/null +++ b/packages/icons/svg/FocusMode.svg @@ -0,0 +1 @@ + diff --git a/packages/ndla-icons/svg/editor/FolderFill.svg b/packages/icons/svg/FolderFill.svg similarity index 100% rename from packages/ndla-icons/svg/editor/FolderFill.svg rename to packages/icons/svg/FolderFill.svg diff --git a/packages/ndla-icons/svg/editor/FolderLine.svg b/packages/icons/svg/FolderLine.svg similarity index 100% rename from packages/ndla-icons/svg/editor/FolderLine.svg rename to packages/icons/svg/FolderLine.svg diff --git a/packages/ndla-icons/svg/contentType/FolderUserFill.svg b/packages/icons/svg/FolderUserFill.svg similarity index 100% rename from packages/ndla-icons/svg/contentType/FolderUserFill.svg rename to packages/icons/svg/FolderUserFill.svg diff --git a/packages/ndla-icons/svg/contentType/FolderUserLine.svg b/packages/icons/svg/FolderUserLine.svg similarity index 100% rename from packages/ndla-icons/svg/contentType/FolderUserLine.svg rename to packages/icons/svg/FolderUserLine.svg diff --git a/packages/ndla-icons/svg/common/Forum.svg b/packages/icons/svg/Forum.svg similarity index 100% rename from packages/ndla-icons/svg/common/Forum.svg rename to packages/icons/svg/Forum.svg diff --git a/packages/ndla-icons/svg/common/ForumOutlined.svg b/packages/icons/svg/ForumOutlined.svg similarity index 100% rename from packages/ndla-icons/svg/common/ForumOutlined.svg rename to packages/icons/svg/ForumOutlined.svg diff --git a/packages/ndla-icons/svg/action/Forward15Line.svg b/packages/icons/svg/Forward15Line.svg similarity index 100% rename from packages/ndla-icons/svg/action/Forward15Line.svg rename to packages/icons/svg/Forward15Line.svg diff --git a/packages/ndla-icons/svg/editor/GlobalFill.svg b/packages/icons/svg/GlobalFill.svg similarity index 100% rename from packages/ndla-icons/svg/editor/GlobalFill.svg rename to packages/icons/svg/GlobalFill.svg diff --git a/packages/ndla-icons/svg/editor/GlobalLine.svg b/packages/icons/svg/GlobalLine.svg similarity index 100% rename from packages/ndla-icons/svg/editor/GlobalLine.svg rename to packages/icons/svg/GlobalLine.svg diff --git a/packages/icons/svg/H5P.svg b/packages/icons/svg/H5P.svg new file mode 100644 index 0000000000..903142111f --- /dev/null +++ b/packages/icons/svg/H5P.svg @@ -0,0 +1 @@ + diff --git a/packages/ndla-icons/svg/common/HashTag.svg b/packages/icons/svg/HashTag.svg similarity index 100% rename from packages/ndla-icons/svg/common/HashTag.svg rename to packages/icons/svg/HashTag.svg diff --git a/packages/ndla-icons/svg/common/HeadphoneFill.svg b/packages/icons/svg/HeadphoneFill.svg similarity index 100% rename from packages/ndla-icons/svg/common/HeadphoneFill.svg rename to packages/icons/svg/HeadphoneFill.svg diff --git a/packages/ndla-icons/svg/common/HeadphoneLine.svg b/packages/icons/svg/HeadphoneLine.svg similarity index 100% rename from packages/ndla-icons/svg/common/HeadphoneLine.svg rename to packages/icons/svg/HeadphoneLine.svg diff --git a/packages/ndla-icons/svg/action/HeartFill.svg b/packages/icons/svg/HeartFill.svg similarity index 100% rename from packages/ndla-icons/svg/action/HeartFill.svg rename to packages/icons/svg/HeartFill.svg diff --git a/packages/ndla-icons/svg/action/HeartLine.svg b/packages/icons/svg/HeartLine.svg similarity index 100% rename from packages/ndla-icons/svg/action/HeartLine.svg rename to packages/icons/svg/HeartLine.svg diff --git a/packages/ndla-icons/svg/common/HomeFill.svg b/packages/icons/svg/HomeFill.svg similarity index 100% rename from packages/ndla-icons/svg/common/HomeFill.svg rename to packages/icons/svg/HomeFill.svg diff --git a/packages/ndla-icons/svg/common/HomeLine.svg b/packages/icons/svg/HomeLine.svg similarity index 100% rename from packages/ndla-icons/svg/common/HomeLine.svg rename to packages/icons/svg/HomeLine.svg diff --git a/packages/ndla-icons/svg/editor/ImageFill.svg b/packages/icons/svg/ImageFill.svg similarity index 100% rename from packages/ndla-icons/svg/editor/ImageFill.svg rename to packages/icons/svg/ImageFill.svg diff --git a/packages/ndla-icons/svg/editor/ImageLine.svg b/packages/icons/svg/ImageLine.svg similarity index 100% rename from packages/ndla-icons/svg/editor/ImageLine.svg rename to packages/icons/svg/ImageLine.svg diff --git a/packages/ndla-icons/svg/common/InformationFill.svg b/packages/icons/svg/InformationFill.svg similarity index 100% rename from packages/ndla-icons/svg/common/InformationFill.svg rename to packages/icons/svg/InformationFill.svg diff --git a/packages/ndla-icons/svg/common/InformationLine.svg b/packages/icons/svg/InformationLine.svg similarity index 100% rename from packages/ndla-icons/svg/common/InformationLine.svg rename to packages/icons/svg/InformationLine.svg diff --git a/packages/ndla-icons/svg/common/InstagramFill.svg b/packages/icons/svg/InstagramFill.svg similarity index 100% rename from packages/ndla-icons/svg/common/InstagramFill.svg rename to packages/icons/svg/InstagramFill.svg diff --git a/packages/icons/svg/InstagramLine.svg b/packages/icons/svg/InstagramLine.svg new file mode 100644 index 0000000000..4f753b3164 --- /dev/null +++ b/packages/icons/svg/InstagramLine.svg @@ -0,0 +1 @@ + diff --git a/packages/ndla-icons/svg/editor/Italic.svg b/packages/icons/svg/Italic.svg similarity index 100% rename from packages/ndla-icons/svg/editor/Italic.svg rename to packages/icons/svg/Italic.svg diff --git a/packages/ndla-icons/svg/editor/LayoutColumnLine.svg b/packages/icons/svg/LayoutColumnLine.svg similarity index 100% rename from packages/ndla-icons/svg/editor/LayoutColumnLine.svg rename to packages/icons/svg/LayoutColumnLine.svg diff --git a/packages/ndla-icons/svg/common/LineChartLine.svg b/packages/icons/svg/LineChartLine.svg similarity index 100% rename from packages/ndla-icons/svg/common/LineChartLine.svg rename to packages/icons/svg/LineChartLine.svg diff --git a/packages/ndla-icons/svg/editor/LinkMedium.svg b/packages/icons/svg/LinkMedium.svg similarity index 100% rename from packages/ndla-icons/svg/editor/LinkMedium.svg rename to packages/icons/svg/LinkMedium.svg diff --git a/packages/ndla-icons/svg/common/LinkedinBoxFill.svg b/packages/icons/svg/LinkedinBoxFill.svg similarity index 100% rename from packages/ndla-icons/svg/common/LinkedinBoxFill.svg rename to packages/icons/svg/LinkedinBoxFill.svg diff --git a/packages/ndla-icons/svg/common/LinkedinBoxLine.svg b/packages/icons/svg/LinkedinBoxLine.svg similarity index 100% rename from packages/ndla-icons/svg/common/LinkedinBoxLine.svg rename to packages/icons/svg/LinkedinBoxLine.svg diff --git a/packages/ndla-icons/svg/editor/ListAlphabetical.svg b/packages/icons/svg/ListAlphabetical.svg similarity index 100% rename from packages/ndla-icons/svg/editor/ListAlphabetical.svg rename to packages/icons/svg/ListAlphabetical.svg diff --git a/packages/icons/svg/ListCheck.svg b/packages/icons/svg/ListCheck.svg new file mode 100644 index 0000000000..b7ec198c40 --- /dev/null +++ b/packages/icons/svg/ListCheck.svg @@ -0,0 +1 @@ + diff --git a/packages/icons/svg/ListCheckFormat.svg b/packages/icons/svg/ListCheckFormat.svg new file mode 100644 index 0000000000..244aeb419e --- /dev/null +++ b/packages/icons/svg/ListCheckFormat.svg @@ -0,0 +1 @@ + diff --git a/packages/ndla-icons/svg/editor/ListOrdered.svg b/packages/icons/svg/ListOrdered.svg similarity index 100% rename from packages/ndla-icons/svg/editor/ListOrdered.svg rename to packages/icons/svg/ListOrdered.svg diff --git a/packages/ndla-icons/svg/editor/ListUnordered.svg b/packages/icons/svg/ListUnordered.svg similarity index 100% rename from packages/ndla-icons/svg/editor/ListUnordered.svg rename to packages/icons/svg/ListUnordered.svg diff --git a/packages/ndla-icons/svg/common/LockFill.svg b/packages/icons/svg/LockFill.svg similarity index 100% rename from packages/ndla-icons/svg/common/LockFill.svg rename to packages/icons/svg/LockFill.svg diff --git a/packages/ndla-icons/svg/common/LockLine.svg b/packages/icons/svg/LockLine.svg similarity index 100% rename from packages/ndla-icons/svg/common/LockLine.svg rename to packages/icons/svg/LockLine.svg diff --git a/packages/ndla-icons/svg/common/LockUnlockedFill.svg b/packages/icons/svg/LockUnlockedFill.svg similarity index 100% rename from packages/ndla-icons/svg/common/LockUnlockedFill.svg rename to packages/icons/svg/LockUnlockedFill.svg diff --git a/packages/ndla-icons/svg/common/LockUnlockedLine.svg b/packages/icons/svg/LockUnlockedLine.svg similarity index 100% rename from packages/ndla-icons/svg/common/LockUnlockedLine.svg rename to packages/icons/svg/LockUnlockedLine.svg diff --git a/packages/ndla-icons/svg/common/LoginBoxLine.svg b/packages/icons/svg/LoginBoxLine.svg similarity index 100% rename from packages/ndla-icons/svg/common/LoginBoxLine.svg rename to packages/icons/svg/LoginBoxLine.svg diff --git a/packages/ndla-icons/svg/common/LogoutBoxRightLine.svg b/packages/icons/svg/LogoutBoxRightLine.svg similarity index 100% rename from packages/ndla-icons/svg/common/LogoutBoxRightLine.svg rename to packages/icons/svg/LogoutBoxRightLine.svg diff --git a/packages/ndla-icons/svg/common/MailFill.svg b/packages/icons/svg/MailFill.svg similarity index 100% rename from packages/ndla-icons/svg/common/MailFill.svg rename to packages/icons/svg/MailFill.svg diff --git a/packages/ndla-icons/svg/common/MailLine.svg b/packages/icons/svg/MailLine.svg similarity index 100% rename from packages/ndla-icons/svg/common/MailLine.svg rename to packages/icons/svg/MailLine.svg diff --git a/packages/ndla-icons/svg/common/MegaphoneFill.svg b/packages/icons/svg/MegaphoneFill.svg similarity index 100% rename from packages/ndla-icons/svg/common/MegaphoneFill.svg rename to packages/icons/svg/MegaphoneFill.svg diff --git a/packages/ndla-icons/svg/common/MegaphoneLine.svg b/packages/icons/svg/MegaphoneLine.svg similarity index 100% rename from packages/ndla-icons/svg/common/MegaphoneLine.svg rename to packages/icons/svg/MegaphoneLine.svg diff --git a/packages/ndla-icons/svg/action/MenuLine.svg b/packages/icons/svg/MenuLine.svg similarity index 100% rename from packages/ndla-icons/svg/action/MenuLine.svg rename to packages/icons/svg/MenuLine.svg diff --git a/packages/ndla-icons/svg/contentType/MenuSearchFill.svg b/packages/icons/svg/MenuSearchFill.svg similarity index 100% rename from packages/ndla-icons/svg/contentType/MenuSearchFill.svg rename to packages/icons/svg/MenuSearchFill.svg diff --git a/packages/ndla-icons/svg/contentType/MenuSearchLine.svg b/packages/icons/svg/MenuSearchLine.svg similarity index 100% rename from packages/ndla-icons/svg/contentType/MenuSearchLine.svg rename to packages/icons/svg/MenuSearchLine.svg diff --git a/packages/ndla-icons/svg/common/MessageFill.svg b/packages/icons/svg/MessageFill.svg similarity index 100% rename from packages/ndla-icons/svg/common/MessageFill.svg rename to packages/icons/svg/MessageFill.svg diff --git a/packages/ndla-icons/svg/common/MessageLine.svg b/packages/icons/svg/MessageLine.svg similarity index 100% rename from packages/ndla-icons/svg/common/MessageLine.svg rename to packages/icons/svg/MessageLine.svg diff --git a/packages/ndla-icons/svg/contentType/MoreFill.svg b/packages/icons/svg/MoreFill.svg similarity index 100% rename from packages/ndla-icons/svg/contentType/MoreFill.svg rename to packages/icons/svg/MoreFill.svg diff --git a/packages/ndla-icons/svg/contentType/MoreLine.svg b/packages/icons/svg/MoreLine.svg similarity index 100% rename from packages/ndla-icons/svg/contentType/MoreLine.svg rename to packages/icons/svg/MoreLine.svg diff --git a/packages/ndla-icons/svg/contentType/MoreVerticalFill.svg b/packages/icons/svg/MoreVerticalFill.svg similarity index 100% rename from packages/ndla-icons/svg/contentType/MoreVerticalFill.svg rename to packages/icons/svg/MoreVerticalFill.svg diff --git a/packages/ndla-icons/svg/contentType/MoreVerticalLine.svg b/packages/icons/svg/MoreVerticalLine.svg similarity index 100% rename from packages/ndla-icons/svg/contentType/MoreVerticalLine.svg rename to packages/icons/svg/MoreVerticalLine.svg diff --git a/packages/ndla-icons/svg/editor/MovieFill.svg b/packages/icons/svg/MovieFill.svg similarity index 100% rename from packages/ndla-icons/svg/editor/MovieFill.svg rename to packages/icons/svg/MovieFill.svg diff --git a/packages/ndla-icons/svg/editor/MovieLine.svg b/packages/icons/svg/MovieLine.svg similarity index 100% rename from packages/ndla-icons/svg/editor/MovieLine.svg rename to packages/icons/svg/MovieLine.svg diff --git a/packages/ndla-icons/svg/common/NotificationFill.svg b/packages/icons/svg/NotificationFill.svg similarity index 100% rename from packages/ndla-icons/svg/common/NotificationFill.svg rename to packages/icons/svg/NotificationFill.svg diff --git a/packages/ndla-icons/svg/common/NotificationLine.svg b/packages/icons/svg/NotificationLine.svg similarity index 100% rename from packages/ndla-icons/svg/common/NotificationLine.svg rename to packages/icons/svg/NotificationLine.svg diff --git a/packages/icons/svg/OrganizationChart.svg b/packages/icons/svg/OrganizationChart.svg new file mode 100644 index 0000000000..47592f1b0f --- /dev/null +++ b/packages/icons/svg/OrganizationChart.svg @@ -0,0 +1 @@ + diff --git a/packages/ndla-icons/svg/common/PanoramaPhotosphere.svg b/packages/icons/svg/PanoramaPhotosphere.svg similarity index 100% rename from packages/ndla-icons/svg/common/PanoramaPhotosphere.svg rename to packages/icons/svg/PanoramaPhotosphere.svg diff --git a/packages/ndla-icons/svg/common/PauseLine.svg b/packages/icons/svg/PauseLine.svg similarity index 100% rename from packages/ndla-icons/svg/common/PauseLine.svg rename to packages/icons/svg/PauseLine.svg diff --git a/packages/ndla-icons/svg/action/PencilFill.svg b/packages/icons/svg/PencilFill.svg similarity index 100% rename from packages/ndla-icons/svg/action/PencilFill.svg rename to packages/icons/svg/PencilFill.svg diff --git a/packages/ndla-icons/svg/action/PencilLine.svg b/packages/icons/svg/PencilLine.svg similarity index 100% rename from packages/ndla-icons/svg/action/PencilLine.svg rename to packages/icons/svg/PencilLine.svg diff --git a/packages/ndla-icons/svg/common/PlayCircleFill.svg b/packages/icons/svg/PlayCircleFill.svg similarity index 100% rename from packages/ndla-icons/svg/common/PlayCircleFill.svg rename to packages/icons/svg/PlayCircleFill.svg diff --git a/packages/ndla-icons/svg/common/PlayCircleLine.svg b/packages/icons/svg/PlayCircleLine.svg similarity index 100% rename from packages/ndla-icons/svg/common/PlayCircleLine.svg rename to packages/icons/svg/PlayCircleLine.svg diff --git a/packages/ndla-icons/svg/common/PlayFill.svg b/packages/icons/svg/PlayFill.svg similarity index 100% rename from packages/ndla-icons/svg/common/PlayFill.svg rename to packages/icons/svg/PlayFill.svg diff --git a/packages/ndla-icons/svg/common/PlayLine.svg b/packages/icons/svg/PlayLine.svg similarity index 100% rename from packages/ndla-icons/svg/common/PlayLine.svg rename to packages/icons/svg/PlayLine.svg diff --git a/packages/ndla-icons/svg/common/PresentationFill.svg b/packages/icons/svg/PresentationFill.svg similarity index 100% rename from packages/ndla-icons/svg/common/PresentationFill.svg rename to packages/icons/svg/PresentationFill.svg diff --git a/packages/ndla-icons/svg/common/PresentationLine.svg b/packages/icons/svg/PresentationLine.svg similarity index 100% rename from packages/ndla-icons/svg/common/PresentationLine.svg rename to packages/icons/svg/PresentationLine.svg diff --git a/packages/ndla-icons/svg/common/PushpinFill.svg b/packages/icons/svg/PushpinFill.svg similarity index 100% rename from packages/ndla-icons/svg/common/PushpinFill.svg rename to packages/icons/svg/PushpinFill.svg diff --git a/packages/ndla-icons/svg/common/PushpinLine.svg b/packages/icons/svg/PushpinLine.svg similarity index 100% rename from packages/ndla-icons/svg/common/PushpinLine.svg rename to packages/icons/svg/PushpinLine.svg diff --git a/packages/ndla-icons/svg/common/QuestionAnswerFill.svg b/packages/icons/svg/QuestionAnswerFill.svg similarity index 100% rename from packages/ndla-icons/svg/common/QuestionAnswerFill.svg rename to packages/icons/svg/QuestionAnswerFill.svg diff --git a/packages/ndla-icons/svg/common/QuestionAnswerLine.svg b/packages/icons/svg/QuestionAnswerLine.svg similarity index 100% rename from packages/ndla-icons/svg/common/QuestionAnswerLine.svg rename to packages/icons/svg/QuestionAnswerLine.svg diff --git a/packages/ndla-icons/svg/common/QuestionFill.svg b/packages/icons/svg/QuestionFill.svg similarity index 100% rename from packages/ndla-icons/svg/common/QuestionFill.svg rename to packages/icons/svg/QuestionFill.svg diff --git a/packages/ndla-icons/svg/common/QuestionLine.svg b/packages/icons/svg/QuestionLine.svg similarity index 100% rename from packages/ndla-icons/svg/common/QuestionLine.svg rename to packages/icons/svg/QuestionLine.svg diff --git a/packages/ndla-icons/svg/editor/QuestionnaireFill.svg b/packages/icons/svg/QuestionnaireFill.svg similarity index 100% rename from packages/ndla-icons/svg/editor/QuestionnaireFill.svg rename to packages/icons/svg/QuestionnaireFill.svg diff --git a/packages/ndla-icons/svg/editor/QuestionnaireLine.svg b/packages/icons/svg/QuestionnaireLine.svg similarity index 100% rename from packages/ndla-icons/svg/editor/QuestionnaireLine.svg rename to packages/icons/svg/QuestionnaireLine.svg diff --git a/packages/ndla-icons/svg/editor/Quote.svg b/packages/icons/svg/Quote.svg similarity index 100% rename from packages/ndla-icons/svg/editor/Quote.svg rename to packages/icons/svg/Quote.svg diff --git a/packages/ndla-icons/svg/action/Replay15Line.svg b/packages/icons/svg/Replay15Line.svg similarity index 100% rename from packages/ndla-icons/svg/action/Replay15Line.svg rename to packages/icons/svg/Replay15Line.svg diff --git a/packages/ndla-icons/svg/action/Reply.svg b/packages/icons/svg/Reply.svg similarity index 67% rename from packages/ndla-icons/svg/action/Reply.svg rename to packages/icons/svg/Reply.svg index 98fc49cfb3..92e1bf1aec 100644 --- a/packages/ndla-icons/svg/action/Reply.svg +++ b/packages/icons/svg/Reply.svg @@ -1 +1 @@ - \ No newline at end of file + diff --git a/packages/icons/svg/ResetLeft.svg b/packages/icons/svg/ResetLeft.svg new file mode 100644 index 0000000000..86bd3ebd7f --- /dev/null +++ b/packages/icons/svg/ResetLeft.svg @@ -0,0 +1 @@ + diff --git a/packages/ndla-icons/svg/common/RouteFill.svg b/packages/icons/svg/RouteFill.svg similarity index 100% rename from packages/ndla-icons/svg/common/RouteFill.svg rename to packages/icons/svg/RouteFill.svg diff --git a/packages/ndla-icons/svg/common/RouteLine.svg b/packages/icons/svg/RouteLine.svg similarity index 100% rename from packages/ndla-icons/svg/common/RouteLine.svg rename to packages/icons/svg/RouteLine.svg diff --git a/packages/ndla-icons/svg/common/RssFill.svg b/packages/icons/svg/RssFill.svg similarity index 100% rename from packages/ndla-icons/svg/common/RssFill.svg rename to packages/icons/svg/RssFill.svg diff --git a/packages/ndla-icons/svg/common/RssLine.svg b/packages/icons/svg/RssLine.svg similarity index 100% rename from packages/ndla-icons/svg/common/RssLine.svg rename to packages/icons/svg/RssLine.svg diff --git a/packages/ndla-icons/svg/editor/SearchContent.svg b/packages/icons/svg/SearchContent.svg similarity index 100% rename from packages/ndla-icons/svg/editor/SearchContent.svg rename to packages/icons/svg/SearchContent.svg diff --git a/packages/ndla-icons/svg/common/SearchFill.svg b/packages/icons/svg/SearchFill.svg similarity index 100% rename from packages/ndla-icons/svg/common/SearchFill.svg rename to packages/icons/svg/SearchFill.svg diff --git a/packages/ndla-icons/svg/common/SearchLine.svg b/packages/icons/svg/SearchLine.svg similarity index 100% rename from packages/ndla-icons/svg/common/SearchLine.svg rename to packages/icons/svg/SearchLine.svg diff --git a/packages/ndla-icons/svg/editor/SearchMedia.svg b/packages/icons/svg/SearchMedia.svg similarity index 100% rename from packages/ndla-icons/svg/editor/SearchMedia.svg rename to packages/icons/svg/SearchMedia.svg diff --git a/packages/ndla-icons/svg/editor/SettingsFill.svg b/packages/icons/svg/SettingsFill.svg similarity index 100% rename from packages/ndla-icons/svg/editor/SettingsFill.svg rename to packages/icons/svg/SettingsFill.svg diff --git a/packages/ndla-icons/svg/editor/SettingsLine.svg b/packages/icons/svg/SettingsLine.svg similarity index 100% rename from packages/ndla-icons/svg/editor/SettingsLine.svg rename to packages/icons/svg/SettingsLine.svg diff --git a/packages/ndla-icons/svg/common/ShareBoxLine.svg b/packages/icons/svg/ShareBoxLine.svg similarity index 100% rename from packages/ndla-icons/svg/common/ShareBoxLine.svg rename to packages/icons/svg/ShareBoxLine.svg diff --git a/packages/ndla-icons/svg/common/ShareFill.svg b/packages/icons/svg/ShareFill.svg similarity index 100% rename from packages/ndla-icons/svg/common/ShareFill.svg rename to packages/icons/svg/ShareFill.svg diff --git a/packages/ndla-icons/svg/common/ShareLine.svg b/packages/icons/svg/ShareLine.svg similarity index 100% rename from packages/ndla-icons/svg/common/ShareLine.svg rename to packages/icons/svg/ShareLine.svg diff --git a/packages/ndla-icons/svg/common/ShieldUserFill.svg b/packages/icons/svg/ShieldUserFill.svg similarity index 100% rename from packages/ndla-icons/svg/common/ShieldUserFill.svg rename to packages/icons/svg/ShieldUserFill.svg diff --git a/packages/ndla-icons/svg/common/ShieldUserLine.svg b/packages/icons/svg/ShieldUserLine.svg similarity index 100% rename from packages/ndla-icons/svg/common/ShieldUserLine.svg rename to packages/icons/svg/ShieldUserLine.svg diff --git a/packages/ndla-icons/svg/editor/SlideshowFill.svg b/packages/icons/svg/SlideshowFill.svg similarity index 100% rename from packages/ndla-icons/svg/editor/SlideshowFill.svg rename to packages/icons/svg/SlideshowFill.svg diff --git a/packages/ndla-icons/svg/editor/SlideshowLine.svg b/packages/icons/svg/SlideshowLine.svg similarity index 100% rename from packages/ndla-icons/svg/editor/SlideshowLine.svg rename to packages/icons/svg/SlideshowLine.svg diff --git a/packages/ndla-icons/svg/common/SpamFill.svg b/packages/icons/svg/SpamFill.svg similarity index 100% rename from packages/ndla-icons/svg/common/SpamFill.svg rename to packages/icons/svg/SpamFill.svg diff --git a/packages/ndla-icons/svg/common/SpamLine.svg b/packages/icons/svg/SpamLine.svg similarity index 100% rename from packages/ndla-icons/svg/common/SpamLine.svg rename to packages/icons/svg/SpamLine.svg diff --git a/packages/ndla-icons/svg/editor/SquareFill.svg b/packages/icons/svg/SquareFill.svg similarity index 100% rename from packages/ndla-icons/svg/editor/SquareFill.svg rename to packages/icons/svg/SquareFill.svg diff --git a/packages/ndla-icons/svg/editor/SquareLine.svg b/packages/icons/svg/SquareLine.svg similarity index 100% rename from packages/ndla-icons/svg/editor/SquareLine.svg rename to packages/icons/svg/SquareLine.svg diff --git a/packages/ndla-icons/svg/editor/StarFill.svg b/packages/icons/svg/StarFill.svg similarity index 100% rename from packages/ndla-icons/svg/editor/StarFill.svg rename to packages/icons/svg/StarFill.svg diff --git a/packages/ndla-icons/svg/editor/StarLine.svg b/packages/icons/svg/StarLine.svg similarity index 100% rename from packages/ndla-icons/svg/editor/StarLine.svg rename to packages/icons/svg/StarLine.svg diff --git a/packages/ndla-icons/svg/editor/StickyNoteAddFill.svg b/packages/icons/svg/StickyNoteAddFill.svg similarity index 100% rename from packages/ndla-icons/svg/editor/StickyNoteAddFill.svg rename to packages/icons/svg/StickyNoteAddFill.svg diff --git a/packages/ndla-icons/svg/editor/StickyNoteAddLine.svg b/packages/icons/svg/StickyNoteAddLine.svg similarity index 100% rename from packages/ndla-icons/svg/editor/StickyNoteAddLine.svg rename to packages/icons/svg/StickyNoteAddLine.svg diff --git a/packages/ndla-icons/svg/editor/Subscript.svg b/packages/icons/svg/Subscript.svg similarity index 100% rename from packages/ndla-icons/svg/editor/Subscript.svg rename to packages/icons/svg/Subscript.svg diff --git a/packages/ndla-icons/svg/action/SubtractLine.svg b/packages/icons/svg/SubtractLine.svg similarity index 100% rename from packages/ndla-icons/svg/action/SubtractLine.svg rename to packages/icons/svg/SubtractLine.svg diff --git a/packages/ndla-icons/svg/editor/Superscript.svg b/packages/icons/svg/Superscript.svg similarity index 100% rename from packages/ndla-icons/svg/editor/Superscript.svg rename to packages/icons/svg/Superscript.svg diff --git a/packages/ndla-icons/svg/editor/TableFill.svg b/packages/icons/svg/TableFill.svg similarity index 100% rename from packages/ndla-icons/svg/editor/TableFill.svg rename to packages/icons/svg/TableFill.svg diff --git a/packages/ndla-icons/svg/editor/TableLine.svg b/packages/icons/svg/TableLine.svg similarity index 100% rename from packages/ndla-icons/svg/editor/TableLine.svg rename to packages/icons/svg/TableLine.svg diff --git a/packages/icons/svg/TextWrap.svg b/packages/icons/svg/TextWrap.svg new file mode 100644 index 0000000000..cbda257372 --- /dev/null +++ b/packages/icons/svg/TextWrap.svg @@ -0,0 +1 @@ + diff --git a/packages/ndla-icons/svg/action/Thumb.svg b/packages/icons/svg/Thumb.svg similarity index 96% rename from packages/ndla-icons/svg/action/Thumb.svg rename to packages/icons/svg/Thumb.svg index 2316657968..4a74dd6dd1 100644 --- a/packages/ndla-icons/svg/action/Thumb.svg +++ b/packages/icons/svg/Thumb.svg @@ -1 +1 @@ - \ No newline at end of file + diff --git a/packages/ndla-icons/svg/action/ThumbFilled.svg b/packages/icons/svg/ThumbFilled.svg similarity index 100% rename from packages/ndla-icons/svg/action/ThumbFilled.svg rename to packages/icons/svg/ThumbFilled.svg diff --git a/packages/ndla-icons/svg/common/TimeFill.svg b/packages/icons/svg/TimeFill.svg similarity index 100% rename from packages/ndla-icons/svg/common/TimeFill.svg rename to packages/icons/svg/TimeFill.svg diff --git a/packages/ndla-icons/svg/common/TimeLine.svg b/packages/icons/svg/TimeLine.svg similarity index 100% rename from packages/ndla-icons/svg/common/TimeLine.svg rename to packages/icons/svg/TimeLine.svg diff --git a/packages/ndla-icons/svg/editor/Underline.svg b/packages/icons/svg/Underline.svg similarity index 100% rename from packages/ndla-icons/svg/editor/Underline.svg rename to packages/icons/svg/Underline.svg diff --git a/packages/ndla-icons/svg/editor/UploadCloudFill.svg b/packages/icons/svg/UploadCloudFill.svg similarity index 100% rename from packages/ndla-icons/svg/editor/UploadCloudFill.svg rename to packages/icons/svg/UploadCloudFill.svg diff --git a/packages/ndla-icons/svg/editor/UploadCloudLine.svg b/packages/icons/svg/UploadCloudLine.svg similarity index 100% rename from packages/ndla-icons/svg/editor/UploadCloudLine.svg rename to packages/icons/svg/UploadCloudLine.svg diff --git a/packages/ndla-icons/svg/editor/UploadLine.svg b/packages/icons/svg/UploadLine.svg similarity index 100% rename from packages/ndla-icons/svg/editor/UploadLine.svg rename to packages/icons/svg/UploadLine.svg diff --git a/packages/ndla-icons/svg/common/UserFill.svg b/packages/icons/svg/UserFill.svg similarity index 100% rename from packages/ndla-icons/svg/common/UserFill.svg rename to packages/icons/svg/UserFill.svg diff --git a/packages/ndla-icons/svg/common/UserLine.svg b/packages/icons/svg/UserLine.svg similarity index 100% rename from packages/ndla-icons/svg/common/UserLine.svg rename to packages/icons/svg/UserLine.svg diff --git a/packages/icons/svg/VoiceprintFill.svg b/packages/icons/svg/VoiceprintFill.svg new file mode 100644 index 0000000000..048c182fbe --- /dev/null +++ b/packages/icons/svg/VoiceprintFill.svg @@ -0,0 +1 @@ + diff --git a/packages/ndla-icons/svg/common/VoicePrintLine.svg b/packages/icons/svg/VoiceprintLine.svg similarity index 100% rename from packages/ndla-icons/svg/common/VoicePrintLine.svg rename to packages/icons/svg/VoiceprintLine.svg diff --git a/packages/ndla-icons/svg/common/VolumeUpFill.svg b/packages/icons/svg/VolumeUpFill.svg similarity index 100% rename from packages/ndla-icons/svg/common/VolumeUpFill.svg rename to packages/icons/svg/VolumeUpFill.svg diff --git a/packages/ndla-icons/svg/common/VolumeUpLine.svg b/packages/icons/svg/VolumeUpLine.svg similarity index 100% rename from packages/ndla-icons/svg/common/VolumeUpLine.svg rename to packages/icons/svg/VolumeUpLine.svg diff --git a/packages/ndla-icons/svg/common/YoutubeFill.svg b/packages/icons/svg/YoutubeFill.svg similarity index 100% rename from packages/ndla-icons/svg/common/YoutubeFill.svg rename to packages/icons/svg/YoutubeFill.svg diff --git a/packages/ndla-icons/svg/common/YoutubeLine.svg b/packages/icons/svg/YoutubeLine.svg similarity index 100% rename from packages/ndla-icons/svg/common/YoutubeLine.svg rename to packages/icons/svg/YoutubeLine.svg diff --git a/packages/button/tsconfig.build.json b/packages/icons/tsconfig.build.json similarity index 100% rename from packages/button/tsconfig.build.json rename to packages/icons/tsconfig.build.json diff --git a/packages/ndla-audio-search/package.json b/packages/ndla-audio-search/package.json index e97b7e9d9e..7b7449c40a 100644 --- a/packages/ndla-audio-search/package.json +++ b/packages/ndla-audio-search/package.json @@ -1,6 +1,6 @@ { "name": "@ndla/audio-search", - "version": "7.0.59-alpha.0", + "version": "7.0.68-alpha.0", "description": "A simple library for searching for audio files from NDLA", "license": "GPL-3.0", "main": "lib/index.js", @@ -34,7 +34,7 @@ "devDependencies": { "@ndla/preset-panda": "workspace:^", "@ndla/types-backend": "^0.2.86", - "@pandacss/dev": "^0.46.0" + "@pandacss/dev": "^0.48.0" }, "peerDependencies": { "react": ">= 18", diff --git a/packages/ndla-audio-search/src/AudioBar.tsx b/packages/ndla-audio-search/src/AudioBar.tsx index 8eabae598f..eb48a4b83d 100644 --- a/packages/ndla-audio-search/src/AudioBar.tsx +++ b/packages/ndla-audio-search/src/AudioBar.tsx @@ -9,7 +9,7 @@ /* eslint jsx-a11y/media-has-caption: 0 */ import { useEffect, useState } from "react"; -import { IAudioMetaInformation } from "@ndla/types-backend/audio-api"; +import type { IAudioMetaInformation } from "@ndla/types-backend/audio-api"; interface Props { audio: { id: number }; @@ -38,7 +38,7 @@ const AudioBar = ({ audio, fetchAudio, onError }: Props) => { [], ); - return ; + return ; }; export default AudioBar; diff --git a/packages/ndla-audio-search/src/AudioSearch.stories.tsx b/packages/ndla-audio-search/src/AudioSearch.stories.tsx index 57ff1c45f9..a44c3b602c 100644 --- a/packages/ndla-audio-search/src/AudioSearch.stories.tsx +++ b/packages/ndla-audio-search/src/AudioSearch.stories.tsx @@ -7,9 +7,9 @@ */ import { useRef } from "react"; -import { Meta, StoryFn } from "@storybook/react"; -import { IAudioMetaInformation, IAudioSummarySearchResult } from "@ndla/types-backend/audio-api"; -import AudioSearch, { QueryObject } from "./AudioSearch"; +import type { Meta, StoryFn } from "@storybook/react"; +import type { IAudioMetaInformation, IAudioSummarySearchResult } from "@ndla/types-backend/audio-api"; +import AudioSearch, { type QueryObject } from "./AudioSearch"; export default { title: "Production system/AudioSearch", diff --git a/packages/ndla-audio-search/src/AudioSearch.tsx b/packages/ndla-audio-search/src/AudioSearch.tsx index 2b3334932e..30598a0669 100644 --- a/packages/ndla-audio-search/src/AudioSearch.tsx +++ b/packages/ndla-audio-search/src/AudioSearch.tsx @@ -6,8 +6,8 @@ * */ -import { ReactNode, useEffect, useState } from "react"; -import { ArrowLeftShortLine, ArrowRightShortLine } from "@ndla/icons/common"; +import { type ReactNode, useEffect, useState } from "react"; +import { ArrowLeftShortLine, ArrowRightShortLine } from "@ndla/icons"; import { Text, Button, @@ -17,10 +17,10 @@ import { PaginationPrevTrigger, PaginationRoot, PaginationNextTrigger, - PaginationRootProps, + type PaginationRootProps, } from "@ndla/primitives"; import { styled } from "@ndla/styled-system/jsx"; -import { IAudioMetaInformation, IAudioSummary, IAudioSummarySearchResult } from "@ndla/types-backend/audio-api"; +import type { IAudioMetaInformation, IAudioSummary, IAudioSummarySearchResult } from "@ndla/types-backend/audio-api"; import AudioSearchInput from "./AudioSearchInput"; import AudioSearchList from "./AudioSearchList"; diff --git a/packages/ndla-audio-search/src/AudioSearchInput.tsx b/packages/ndla-audio-search/src/AudioSearchInput.tsx index a875fc383f..f109d14bdb 100644 --- a/packages/ndla-audio-search/src/AudioSearchInput.tsx +++ b/packages/ndla-audio-search/src/AudioSearchInput.tsx @@ -6,11 +6,11 @@ * */ -import { ChangeEvent, KeyboardEvent, useState } from "react"; -import { SearchLine } from "@ndla/icons/common"; +import { type ChangeEvent, type KeyboardEvent, useState } from "react"; +import { SearchLine } from "@ndla/icons"; import { IconButton, Input } from "@ndla/primitives"; import { styled } from "@ndla/styled-system/jsx"; -import { QueryObject } from "./AudioSearch"; +import { type QueryObject } from "./AudioSearch"; const InputWrapper = styled("div", { base: { diff --git a/packages/ndla-audio-search/src/AudioSearchList.tsx b/packages/ndla-audio-search/src/AudioSearchList.tsx index b196ea15bd..6570af34e8 100644 --- a/packages/ndla-audio-search/src/AudioSearchList.tsx +++ b/packages/ndla-audio-search/src/AudioSearchList.tsx @@ -6,10 +6,10 @@ * */ -import { ReactNode } from "react"; +import type { ReactNode } from "react"; import { Text } from "@ndla/primitives"; import { styled } from "@ndla/styled-system/jsx"; -import { IAudioMetaInformation, IAudioSummary } from "@ndla/types-backend/audio-api"; +import type { IAudioMetaInformation, IAudioSummary } from "@ndla/types-backend/audio-api"; import AudioSearchResult from "./AudioSearchResult"; const StyledList = styled("ul", { diff --git a/packages/ndla-audio-search/src/AudioSearchResult.tsx b/packages/ndla-audio-search/src/AudioSearchResult.tsx index d6cf3cae87..21020cc258 100644 --- a/packages/ndla-audio-search/src/AudioSearchResult.tsx +++ b/packages/ndla-audio-search/src/AudioSearchResult.tsx @@ -6,10 +6,10 @@ * */ -import { getLicenseByAbbreviation, LicenseLocaleType } from "@ndla/licenses"; +import { getLicenseByAbbreviation, type LicenseLocaleType } from "@ndla/licenses"; import { Text, ListItemContent, ListItemRoot, Button } from "@ndla/primitives"; import { styled } from "@ndla/styled-system/jsx"; -import { IAudioMetaInformation, IAudioSummary } from "@ndla/types-backend/audio-api"; +import type { IAudioMetaInformation, IAudioSummary } from "@ndla/types-backend/audio-api"; import AudioBar from "./AudioBar"; const StyledAudioMeta = styled("div", { diff --git a/packages/ndla-error-reporter/package.json b/packages/ndla-error-reporter/package.json index f55a942986..013f9d2d9b 100644 --- a/packages/ndla-error-reporter/package.json +++ b/packages/ndla-error-reporter/package.json @@ -1,6 +1,6 @@ { "name": "@ndla/error-reporter", - "version": "2.0.4", + "version": "2.0.7", "description": "Error reporter for NDLA. Listens to window.onerror and sends client errors to Loggly.", "license": "GPL-3.0", "main": "lib/index.js", @@ -25,7 +25,7 @@ "nock": "^13.3.3" }, "dependencies": { - "@ndla/util": "^5.0.0-alpha.0", + "@ndla/util": "^5.0.3-alpha.0", "raven-js": "^3.22.3" }, "publishConfig": { diff --git a/packages/ndla-error-reporter/src/__tests__/ErrorReporter-test.ts b/packages/ndla-error-reporter/src/__tests__/ErrorReporter-test.ts index 829fd8af78..d9ea69cf4a 100644 --- a/packages/ndla-error-reporter/src/__tests__/ErrorReporter-test.ts +++ b/packages/ndla-error-reporter/src/__tests__/ErrorReporter-test.ts @@ -121,8 +121,8 @@ test("ndla-error-reporter/ErrorReporter captures onerror calls and sends error t // simmulate on error call try { - //@ts-expect-error - someUndefinedFunction(); // eslint-disable-line no-undef + //@ts-expect-error - The entire point is that it is undefined + someUndefinedFunction(); } catch (e: any) { await window.onerror?.call(window, e.toString(), document.location.toString(), 58, 4, e); } @@ -141,7 +141,7 @@ test("ndla-error-reporter/ErrorReporter should not send duplicate errors ", asyn // simmulate several duplicate on error calls try { const someVal = null; - //@ts-expect-error + //@ts-expect-error - The entire point is that it will throw an error someVal.foo = 1; } catch (e: any) { window.onerror?.call(window, e.toString(), document.location.toString(), 58, 4, e); diff --git a/packages/ndla-icons/action/package.json b/packages/ndla-icons/action/package.json deleted file mode 100644 index cd4ff4a5f8..0000000000 --- a/packages/ndla-icons/action/package.json +++ /dev/null @@ -1,9 +0,0 @@ - -{ - "name": "@ndla/icons/action", - "private": true, - "main": "../lib/action/index.js", - "module": "../es/action/index.js", - "jsnext:main": "../es/action/index.js" -} - \ No newline at end of file diff --git a/packages/ndla-icons/common/package.json b/packages/ndla-icons/common/package.json deleted file mode 100644 index 636a4c3b64..0000000000 --- a/packages/ndla-icons/common/package.json +++ /dev/null @@ -1,9 +0,0 @@ - -{ - "name": "@ndla/icons/common", - "private": true, - "main": "../lib/common/index.js", - "module": "../es/common/index.js", - "jsnext:main": "../es/common/index.js" -} - \ No newline at end of file diff --git a/packages/ndla-icons/contentType/package.json b/packages/ndla-icons/contentType/package.json deleted file mode 100644 index 37dbb2935a..0000000000 --- a/packages/ndla-icons/contentType/package.json +++ /dev/null @@ -1,9 +0,0 @@ - -{ - "name": "@ndla/icons/contentType", - "private": true, - "main": "../lib/contentType/index.js", - "module": "../es/contentType/index.js", - "jsnext:main": "../es/contentType/index.js" -} - \ No newline at end of file diff --git a/packages/ndla-icons/editor/package.json b/packages/ndla-icons/editor/package.json deleted file mode 100644 index e660fd6661..0000000000 --- a/packages/ndla-icons/editor/package.json +++ /dev/null @@ -1,9 +0,0 @@ - -{ - "name": "@ndla/icons/editor", - "private": true, - "main": "../lib/editor/index.js", - "module": "../es/editor/index.js", - "jsnext:main": "../es/editor/index.js" -} - \ No newline at end of file diff --git a/packages/ndla-icons/src/action/Back15.tsx b/packages/ndla-icons/src/action/Back15.tsx deleted file mode 100644 index 9ba1aa0be4..0000000000 --- a/packages/ndla-icons/src/action/Back15.tsx +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Copyright (c) 2024-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ -// N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; -const Back15 = (props: Props) => ( - - - - -); -export default Back15; diff --git a/packages/ndla-icons/src/action/Copy.tsx b/packages/ndla-icons/src/action/Copy.tsx deleted file mode 100644 index 34c58655d6..0000000000 --- a/packages/ndla-icons/src/action/Copy.tsx +++ /dev/null @@ -1,15 +0,0 @@ -/** - * Copyright (c) 2021-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ -// N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; -const Copy = (props: Props) => ( - - - -); -export default Copy; diff --git a/packages/ndla-icons/src/action/ExpandLess.tsx b/packages/ndla-icons/src/action/ExpandLess.tsx deleted file mode 100644 index cff39d5224..0000000000 --- a/packages/ndla-icons/src/action/ExpandLess.tsx +++ /dev/null @@ -1,15 +0,0 @@ -/** - * Copyright (c) 2021-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ -// N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; -const ExpandLess = (props: Props) => ( - - - -); -export default ExpandLess; diff --git a/packages/ndla-icons/src/action/ExpandMore.tsx b/packages/ndla-icons/src/action/ExpandMore.tsx deleted file mode 100644 index fda760d712..0000000000 --- a/packages/ndla-icons/src/action/ExpandMore.tsx +++ /dev/null @@ -1,15 +0,0 @@ -/** - * Copyright (c) 2021-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ -// N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; -const ExpandMore = (props: Props) => ( - - - -); -export default ExpandMore; diff --git a/packages/ndla-icons/src/action/FileCompare.tsx b/packages/ndla-icons/src/action/FileCompare.tsx deleted file mode 100644 index 57f7542216..0000000000 --- a/packages/ndla-icons/src/action/FileCompare.tsx +++ /dev/null @@ -1,15 +0,0 @@ -/** - * Copyright (c) 2021-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ -// N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; -const FileCompare = (props: Props) => ( - - - -); -export default FileCompare; diff --git a/packages/ndla-icons/src/action/Forward15.tsx b/packages/ndla-icons/src/action/Forward15.tsx deleted file mode 100644 index 814b96f2da..0000000000 --- a/packages/ndla-icons/src/action/Forward15.tsx +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Copyright (c) 2021-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ -// N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; -const Forward15 = (props: Props) => ( - - - - -); -export default Forward15; diff --git a/packages/ndla-icons/src/action/HeartOutline.tsx b/packages/ndla-icons/src/action/HeartOutline.tsx deleted file mode 100644 index 8d336601b7..0000000000 --- a/packages/ndla-icons/src/action/HeartOutline.tsx +++ /dev/null @@ -1,15 +0,0 @@ -/** - * Copyright (c) 2021-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ -// N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; -const HeartOutline = (props: Props) => ( - - - -); -export default HeartOutline; diff --git a/packages/ndla-icons/src/action/List.tsx b/packages/ndla-icons/src/action/List.tsx deleted file mode 100644 index bd67a59b19..0000000000 --- a/packages/ndla-icons/src/action/List.tsx +++ /dev/null @@ -1,16 +0,0 @@ -/** - * Copyright (c) 2021-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ -// N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; -const List = (props: Props) => ( - - - - -); -export default List; diff --git a/packages/ndla-icons/src/action/MenuBook.tsx b/packages/ndla-icons/src/action/MenuBook.tsx deleted file mode 100644 index 0fad756c8d..0000000000 --- a/packages/ndla-icons/src/action/MenuBook.tsx +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Copyright (c) 2021-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ -// N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; -const MenuBook = (props: Props) => ( - - - - - -); -export default MenuBook; diff --git a/packages/ndla-icons/src/action/Minus.tsx b/packages/ndla-icons/src/action/Minus.tsx deleted file mode 100644 index 8e479b8dc4..0000000000 --- a/packages/ndla-icons/src/action/Minus.tsx +++ /dev/null @@ -1,16 +0,0 @@ -/** - * Copyright (c) 2021-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ -// N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; -const Minus = (props: Props) => ( - - - - -); -export default Minus; diff --git a/packages/ndla-icons/src/action/RemoveCircle.tsx b/packages/ndla-icons/src/action/RemoveCircle.tsx deleted file mode 100644 index 6c3588c39a..0000000000 --- a/packages/ndla-icons/src/action/RemoveCircle.tsx +++ /dev/null @@ -1,16 +0,0 @@ -/** - * Copyright (c) 2021-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ -// N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; -const RemoveCircle = (props: Props) => ( - - - - -); -export default RemoveCircle; diff --git a/packages/ndla-icons/src/action/RightArrow.tsx b/packages/ndla-icons/src/action/RightArrow.tsx deleted file mode 100644 index 6c2da443be..0000000000 --- a/packages/ndla-icons/src/action/RightArrow.tsx +++ /dev/null @@ -1,16 +0,0 @@ -/** - * Copyright (c) 2021-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ -// N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; -const RightArrow = (props: Props) => ( - - - - -); -export default RightArrow; diff --git a/packages/ndla-icons/src/action/index.ts b/packages/ndla-icons/src/action/index.ts deleted file mode 100644 index 3eaef23d6e..0000000000 --- a/packages/ndla-icons/src/action/index.ts +++ /dev/null @@ -1,43 +0,0 @@ -/** - * Copyright (c) 2021-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ - -// N.B! AUTOGENERATED FILE. DO NOT EDIT -export { default as AddLine } from "./AddLine"; -export { default as ArrowLeftRightLine } from "./ArrowLeftRightLine"; -export { default as Back15 } from "./Back15"; -export { default as BookmarkFill } from "./BookmarkFill"; -export { default as BookmarkLine } from "./BookmarkLine"; -export { default as CloseLine } from "./CloseLine"; -export { default as Copy } from "./Copy"; -export { default as DeleteBinFill } from "./DeleteBinFill"; -export { default as DeleteBinLine } from "./DeleteBinLine"; -export { default as ExpandLess } from "./ExpandLess"; -export { default as ExpandMore } from "./ExpandMore"; -export { default as FileCompare } from "./FileCompare"; -export { default as FileCopyFill } from "./FileCopyFill"; -export { default as FileCopyLine } from "./FileCopyLine"; -export { default as FileMarkedFill } from "./FileMarkedFill"; -export { default as FileMarkedLine } from "./FileMarkedLine"; -export { default as Forward15 } from "./Forward15"; -export { default as Forward15Line } from "./Forward15Line"; -export { default as HeartFill } from "./HeartFill"; -export { default as HeartLine } from "./HeartLine"; -export { default as HeartOutline } from "./HeartOutline"; -export { default as List } from "./List"; -export { default as MenuBook } from "./MenuBook"; -export { default as MenuLine } from "./MenuLine"; -export { default as Minus } from "./Minus"; -export { default as PencilFill } from "./PencilFill"; -export { default as PencilLine } from "./PencilLine"; -export { default as RemoveCircle } from "./RemoveCircle"; -export { default as Replay15Line } from "./Replay15Line"; -export { default as Reply } from "./Reply"; -export { default as RightArrow } from "./RightArrow"; -export { default as SubtractLine } from "./SubtractLine"; -export { default as Thumb } from "./Thumb"; -export { default as ThumbFilled } from "./ThumbFilled"; diff --git a/packages/ndla-icons/src/common/AdminPanelSettings.tsx b/packages/ndla-icons/src/common/AdminPanelSettings.tsx deleted file mode 100644 index d94a640062..0000000000 --- a/packages/ndla-icons/src/common/AdminPanelSettings.tsx +++ /dev/null @@ -1,15 +0,0 @@ -/** - * Copyright (c) 2024-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ -// N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; -const AdminPanelSettings = (props: Props) => ( - - - -); -export default AdminPanelSettings; diff --git a/packages/ndla-icons/src/common/AdminPanelSettingsFilled.tsx b/packages/ndla-icons/src/common/AdminPanelSettingsFilled.tsx deleted file mode 100644 index 047431faf4..0000000000 --- a/packages/ndla-icons/src/common/AdminPanelSettingsFilled.tsx +++ /dev/null @@ -1,15 +0,0 @@ -/** - * Copyright (c) 2024-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ -// N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; -const AdminPanelSettingsFilled = (props: Props) => ( - - - -); -export default AdminPanelSettingsFilled; diff --git a/packages/ndla-icons/src/common/Alarm.tsx b/packages/ndla-icons/src/common/Alarm.tsx deleted file mode 100644 index f6324fa2e2..0000000000 --- a/packages/ndla-icons/src/common/Alarm.tsx +++ /dev/null @@ -1,16 +0,0 @@ -/** - * Copyright (c) 2024-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ -// N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; -const Alarm = (props: Props) => ( - - - - -); -export default Alarm; diff --git a/packages/ndla-icons/src/common/Announcement.tsx b/packages/ndla-icons/src/common/Announcement.tsx deleted file mode 100644 index fe92c74b31..0000000000 --- a/packages/ndla-icons/src/common/Announcement.tsx +++ /dev/null @@ -1,15 +0,0 @@ -/** - * Copyright (c) 2024-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ -// N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; -const Announcement = (props: Props) => ( - - - -); -export default Announcement; diff --git a/packages/ndla-icons/src/common/ArrowDropDown.tsx b/packages/ndla-icons/src/common/ArrowDropDown.tsx deleted file mode 100644 index db101009c6..0000000000 --- a/packages/ndla-icons/src/common/ArrowDropDown.tsx +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Copyright (c) 2024-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ -// N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; -const ArrowDropDown = (props: Props) => ( - - - - -); -export default ArrowDropDown; diff --git a/packages/ndla-icons/src/common/ArrowDropDownRounded.tsx b/packages/ndla-icons/src/common/ArrowDropDownRounded.tsx deleted file mode 100644 index 94f47ed79f..0000000000 --- a/packages/ndla-icons/src/common/ArrowDropDownRounded.tsx +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Copyright (c) 2024-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ -// N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; -const ArrowDropDownRounded = (props: Props) => ( - - - - -); -export default ArrowDropDownRounded; diff --git a/packages/ndla-icons/src/common/Audio.tsx b/packages/ndla-icons/src/common/Audio.tsx deleted file mode 100644 index 142f7bcb11..0000000000 --- a/packages/ndla-icons/src/common/Audio.tsx +++ /dev/null @@ -1,15 +0,0 @@ -/** - * Copyright (c) 2021-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ -// N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; -const Audio = (props: Props) => ( - - - -); -export default Audio; diff --git a/packages/ndla-icons/src/common/Back.tsx b/packages/ndla-icons/src/common/Back.tsx deleted file mode 100644 index 129e555528..0000000000 --- a/packages/ndla-icons/src/common/Back.tsx +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Copyright (c) 2024-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ -// N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; -const Back = (props: Props) => ( - - - - -); -export default Back; diff --git a/packages/ndla-icons/src/common/Bell.tsx b/packages/ndla-icons/src/common/Bell.tsx deleted file mode 100644 index 1d7d25d2d7..0000000000 --- a/packages/ndla-icons/src/common/Bell.tsx +++ /dev/null @@ -1,15 +0,0 @@ -/** - * Copyright (c) 2024-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ -// N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; -const Bell = (props: Props) => ( - - - -); -export default Bell; diff --git a/packages/ndla-icons/src/common/BellOutlined.tsx b/packages/ndla-icons/src/common/BellOutlined.tsx deleted file mode 100644 index d0dafde73e..0000000000 --- a/packages/ndla-icons/src/common/BellOutlined.tsx +++ /dev/null @@ -1,15 +0,0 @@ -/** - * Copyright (c) 2024-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ -// N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; -const BellOutlined = (props: Props) => ( - - - -); -export default BellOutlined; diff --git a/packages/ndla-icons/src/common/Book.tsx b/packages/ndla-icons/src/common/Book.tsx deleted file mode 100644 index 5e3a03c33b..0000000000 --- a/packages/ndla-icons/src/common/Book.tsx +++ /dev/null @@ -1,15 +0,0 @@ -/** - * Copyright (c) 2024-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ -// N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; -const Book = (props: Props) => ( - - - -); -export default Book; diff --git a/packages/ndla-icons/src/common/BookOpen.tsx b/packages/ndla-icons/src/common/BookOpen.tsx deleted file mode 100644 index 0fa88a7b21..0000000000 --- a/packages/ndla-icons/src/common/BookOpen.tsx +++ /dev/null @@ -1,30 +0,0 @@ -/** - * Copyright (c) 2024-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ -// N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; -const BookOpen = (props: Props) => ( - - - - -); -export default BookOpen; diff --git a/packages/ndla-icons/src/common/BookOutlined.tsx b/packages/ndla-icons/src/common/BookOutlined.tsx deleted file mode 100644 index 2651fe6915..0000000000 --- a/packages/ndla-icons/src/common/BookOutlined.tsx +++ /dev/null @@ -1,15 +0,0 @@ -/** - * Copyright (c) 2024-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ -// N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; -const BookOutlined = (props: Props) => ( - - - -); -export default BookOutlined; diff --git a/packages/ndla-icons/src/common/Comment.tsx b/packages/ndla-icons/src/common/Comment.tsx deleted file mode 100644 index 64fdbdee48..0000000000 --- a/packages/ndla-icons/src/common/Comment.tsx +++ /dev/null @@ -1,26 +0,0 @@ -/** - * Copyright (c) 2021-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ -// N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; -const Comment = (props: Props) => ( - - - - -); -export default Comment; diff --git a/packages/ndla-icons/src/common/Download.tsx b/packages/ndla-icons/src/common/Download.tsx deleted file mode 100644 index 25a9ea6b67..0000000000 --- a/packages/ndla-icons/src/common/Download.tsx +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Copyright (c) 2021-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ -// N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; -const Download = (props: Props) => ( - - - - -); -export default Download; diff --git a/packages/ndla-icons/src/common/Email.tsx b/packages/ndla-icons/src/common/Email.tsx deleted file mode 100644 index cae8883411..0000000000 --- a/packages/ndla-icons/src/common/Email.tsx +++ /dev/null @@ -1,18 +0,0 @@ -/** - * Copyright (c) 2021-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ -// N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; -const Email = (props: Props) => ( - - - -); -export default Email; diff --git a/packages/ndla-icons/src/common/EmailOutline.tsx b/packages/ndla-icons/src/common/EmailOutline.tsx deleted file mode 100644 index 59893ebc10..0000000000 --- a/packages/ndla-icons/src/common/EmailOutline.tsx +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Copyright (c) 2021-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ -// N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; -const EmailOutline = (props: Props) => ( - - - -); -export default EmailOutline; diff --git a/packages/ndla-icons/src/common/ExclamationMark.tsx b/packages/ndla-icons/src/common/ExclamationMark.tsx deleted file mode 100644 index d95ab424fd..0000000000 --- a/packages/ndla-icons/src/common/ExclamationMark.tsx +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Copyright (c) 2021-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ -// N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; -const ExclamationMark = (props: Props) => ( - - - - - -); -export default ExclamationMark; diff --git a/packages/ndla-icons/src/common/Facebook.tsx b/packages/ndla-icons/src/common/Facebook.tsx deleted file mode 100644 index 281fa45add..0000000000 --- a/packages/ndla-icons/src/common/Facebook.tsx +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Copyright (c) 2021-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ -// N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; -const Facebook = (props: Props) => ( - - - -); -export default Facebook; diff --git a/packages/ndla-icons/src/common/FacebookFilled.tsx b/packages/ndla-icons/src/common/FacebookFilled.tsx deleted file mode 100644 index fdb9a9677c..0000000000 --- a/packages/ndla-icons/src/common/FacebookFilled.tsx +++ /dev/null @@ -1,20 +0,0 @@ -/** - * Copyright (c) 2021-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ -// N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; -const FacebookFilled = (props: Props) => ( - - - -); -export default FacebookFilled; diff --git a/packages/ndla-icons/src/common/FileDocumentOutline.tsx b/packages/ndla-icons/src/common/FileDocumentOutline.tsx deleted file mode 100644 index 2db145ba63..0000000000 --- a/packages/ndla-icons/src/common/FileDocumentOutline.tsx +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Copyright (c) 2021-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ -// N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; -const FileDocumentOutline = (props: Props) => ( - - - -); -export default FileDocumentOutline; diff --git a/packages/ndla-icons/src/common/Home.tsx b/packages/ndla-icons/src/common/Home.tsx deleted file mode 100644 index 187dce27c0..0000000000 --- a/packages/ndla-icons/src/common/Home.tsx +++ /dev/null @@ -1,15 +0,0 @@ -/** - * Copyright (c) 2021-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ -// N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; -const Home = (props: Props) => ( - - - -); -export default Home; diff --git a/packages/ndla-icons/src/common/Information.tsx b/packages/ndla-icons/src/common/Information.tsx deleted file mode 100644 index 5b1179a145..0000000000 --- a/packages/ndla-icons/src/common/Information.tsx +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Copyright (c) 2021-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ -// N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; -const Information = (props: Props) => ( - - - -); -export default Information; diff --git a/packages/ndla-icons/src/common/InformationOutline.tsx b/packages/ndla-icons/src/common/InformationOutline.tsx deleted file mode 100644 index 6a36cb4d3f..0000000000 --- a/packages/ndla-icons/src/common/InformationOutline.tsx +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Copyright (c) 2021-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ -// N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; -const InformationOutline = (props: Props) => ( - - - -); -export default InformationOutline; diff --git a/packages/ndla-icons/src/common/Insights.tsx b/packages/ndla-icons/src/common/Insights.tsx deleted file mode 100644 index 441b7b4a60..0000000000 --- a/packages/ndla-icons/src/common/Insights.tsx +++ /dev/null @@ -1,15 +0,0 @@ -/** - * Copyright (c) 2021-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ -// N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; -const Insights = (props: Props) => ( - - - -); -export default Insights; diff --git a/packages/ndla-icons/src/common/Instagram.tsx b/packages/ndla-icons/src/common/Instagram.tsx deleted file mode 100644 index a8801f4456..0000000000 --- a/packages/ndla-icons/src/common/Instagram.tsx +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Copyright (c) 2021-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ -// N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; -const Instagram = (props: Props) => ( - - - -); -export default Instagram; diff --git a/packages/ndla-icons/src/common/Language.tsx b/packages/ndla-icons/src/common/Language.tsx deleted file mode 100644 index aafaf19180..0000000000 --- a/packages/ndla-icons/src/common/Language.tsx +++ /dev/null @@ -1,16 +0,0 @@ -/** - * Copyright (c) 2024-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ -// N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; -const Language = (props: Props) => ( - - - - -); -export default Language; diff --git a/packages/ndla-icons/src/common/Launch.tsx b/packages/ndla-icons/src/common/Launch.tsx deleted file mode 100644 index 5f519cad2a..0000000000 --- a/packages/ndla-icons/src/common/Launch.tsx +++ /dev/null @@ -1,16 +0,0 @@ -/** - * Copyright (c) 2021-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ -// N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; -const Launch = (props: Props) => ( - - - - -); -export default Launch; diff --git a/packages/ndla-icons/src/common/Link.tsx b/packages/ndla-icons/src/common/Link.tsx deleted file mode 100644 index 968a494dc3..0000000000 --- a/packages/ndla-icons/src/common/Link.tsx +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Copyright (c) 2021-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ -// N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; -const Link = (props: Props) => ( - - - - -); -export default Link; diff --git a/packages/ndla-icons/src/common/LinkedIn.tsx b/packages/ndla-icons/src/common/LinkedIn.tsx deleted file mode 100644 index 2ec4ed428b..0000000000 --- a/packages/ndla-icons/src/common/LinkedIn.tsx +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Copyright (c) 2021-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ -// N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; -const LinkedIn = (props: Props) => ( - - - -); -export default LinkedIn; diff --git a/packages/ndla-icons/src/common/LogIn.tsx b/packages/ndla-icons/src/common/LogIn.tsx deleted file mode 100644 index 00826803ca..0000000000 --- a/packages/ndla-icons/src/common/LogIn.tsx +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Copyright (c) 2021-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ -// N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; -const LogIn = (props: Props) => ( - - - - -); -export default LogIn; diff --git a/packages/ndla-icons/src/common/Menu.tsx b/packages/ndla-icons/src/common/Menu.tsx deleted file mode 100644 index cd40e0bf8d..0000000000 --- a/packages/ndla-icons/src/common/Menu.tsx +++ /dev/null @@ -1,16 +0,0 @@ -/** - * Copyright (c) 2021-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ -// N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; -const Menu = (props: Props) => ( - - - - -); -export default Menu; diff --git a/packages/ndla-icons/src/common/Person.tsx b/packages/ndla-icons/src/common/Person.tsx deleted file mode 100644 index 8e6be81b0d..0000000000 --- a/packages/ndla-icons/src/common/Person.tsx +++ /dev/null @@ -1,16 +0,0 @@ -/** - * Copyright (c) 2021-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ -// N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; -const Person = (props: Props) => ( - - - - -); -export default Person; diff --git a/packages/ndla-icons/src/common/PersonOutlined.tsx b/packages/ndla-icons/src/common/PersonOutlined.tsx deleted file mode 100644 index 510fc288b2..0000000000 --- a/packages/ndla-icons/src/common/PersonOutlined.tsx +++ /dev/null @@ -1,15 +0,0 @@ -/** - * Copyright (c) 2021-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ -// N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; -const PersonOutlined = (props: Props) => ( - - - -); -export default PersonOutlined; diff --git a/packages/ndla-icons/src/common/Pin.tsx b/packages/ndla-icons/src/common/Pin.tsx deleted file mode 100644 index 52517ed953..0000000000 --- a/packages/ndla-icons/src/common/Pin.tsx +++ /dev/null @@ -1,19 +0,0 @@ -/** - * Copyright (c) 2021-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ -// N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; -const Pin = (props: Props) => ( - - - - -); -export default Pin; diff --git a/packages/ndla-icons/src/common/Podcast.tsx b/packages/ndla-icons/src/common/Podcast.tsx deleted file mode 100644 index 36b073fdb6..0000000000 --- a/packages/ndla-icons/src/common/Podcast.tsx +++ /dev/null @@ -1,16 +0,0 @@ -/** - * Copyright (c) 2021-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ -// N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; -const Podcast = (props: Props) => ( - - - - -); -export default Podcast; diff --git a/packages/ndla-icons/src/common/Report.tsx b/packages/ndla-icons/src/common/Report.tsx deleted file mode 100644 index d5c35d0ceb..0000000000 --- a/packages/ndla-icons/src/common/Report.tsx +++ /dev/null @@ -1,15 +0,0 @@ -/** - * Copyright (c) 2024-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ -// N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; -const Report = (props: Props) => ( - - - -); -export default Report; diff --git a/packages/ndla-icons/src/common/RssFeed.tsx b/packages/ndla-icons/src/common/RssFeed.tsx deleted file mode 100644 index 9d6eada0eb..0000000000 --- a/packages/ndla-icons/src/common/RssFeed.tsx +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Copyright (c) 2021-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ -// N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; -const RssFeed = (props: Props) => ( - - - - - -); -export default RssFeed; diff --git a/packages/ndla-icons/src/common/Search.tsx b/packages/ndla-icons/src/common/Search.tsx deleted file mode 100644 index 683a0ec239..0000000000 --- a/packages/ndla-icons/src/common/Search.tsx +++ /dev/null @@ -1,15 +0,0 @@ -/** - * Copyright (c) 2021-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ -// N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; -const Search = (props: Props) => ( - - - -); -export default Search; diff --git a/packages/ndla-icons/src/common/Share.tsx b/packages/ndla-icons/src/common/Share.tsx deleted file mode 100644 index 58a9a026ae..0000000000 --- a/packages/ndla-icons/src/common/Share.tsx +++ /dev/null @@ -1,15 +0,0 @@ -/** - * Copyright (c) 2021-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ -// N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; -const Share = (props: Props) => ( - - - -); -export default Share; diff --git a/packages/ndla-icons/src/common/TagOutlined.tsx b/packages/ndla-icons/src/common/TagOutlined.tsx deleted file mode 100644 index d77209c90a..0000000000 --- a/packages/ndla-icons/src/common/TagOutlined.tsx +++ /dev/null @@ -1,15 +0,0 @@ -/** - * Copyright (c) 2021-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ -// N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; -const TagOutlined = (props: Props) => ( - - - -); -export default TagOutlined; diff --git a/packages/ndla-icons/src/common/Time.tsx b/packages/ndla-icons/src/common/Time.tsx deleted file mode 100644 index 86557afed7..0000000000 --- a/packages/ndla-icons/src/common/Time.tsx +++ /dev/null @@ -1,15 +0,0 @@ -/** - * Copyright (c) 2021-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ -// N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; -const Time = (props: Props) => ( - - - -); -export default Time; diff --git a/packages/ndla-icons/src/common/Twitter.tsx b/packages/ndla-icons/src/common/Twitter.tsx deleted file mode 100644 index 446f39db8f..0000000000 --- a/packages/ndla-icons/src/common/Twitter.tsx +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Copyright (c) 2021-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ -// N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; -const Twitter = (props: Props) => ( - - - -); -export default Twitter; diff --git a/packages/ndla-icons/src/common/VolumeUp.tsx b/packages/ndla-icons/src/common/VolumeUp.tsx deleted file mode 100644 index 0cbdfb0c1e..0000000000 --- a/packages/ndla-icons/src/common/VolumeUp.tsx +++ /dev/null @@ -1,15 +0,0 @@ -/** - * Copyright (c) 2024-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ -// N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; -const VolumeUp = (props: Props) => ( - - - -); -export default VolumeUp; diff --git a/packages/ndla-icons/src/common/WarningOutline.tsx b/packages/ndla-icons/src/common/WarningOutline.tsx deleted file mode 100644 index 1b9a8cf403..0000000000 --- a/packages/ndla-icons/src/common/WarningOutline.tsx +++ /dev/null @@ -1,15 +0,0 @@ -/** - * Copyright (c) 2021-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ -// N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; -const WarningOutline = (props: Props) => ( - - - -); -export default WarningOutline; diff --git a/packages/ndla-icons/src/common/Youtube.tsx b/packages/ndla-icons/src/common/Youtube.tsx deleted file mode 100644 index 4697673c66..0000000000 --- a/packages/ndla-icons/src/common/Youtube.tsx +++ /dev/null @@ -1,28 +0,0 @@ -/** - * Copyright (c) 2021-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ -// N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; -const Youtube = (props: Props) => ( - - - - - - - - - - -); -export default Youtube; diff --git a/packages/ndla-icons/src/common/index.ts b/packages/ndla-icons/src/common/index.ts deleted file mode 100644 index 46598a5bdd..0000000000 --- a/packages/ndla-icons/src/common/index.ts +++ /dev/null @@ -1,157 +0,0 @@ -/** - * Copyright (c) 2021-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ - -// N.B! AUTOGENERATED FILE. DO NOT EDIT -export { default as AccountCircleFill } from "./AccountCircleFill"; -export { default as AccountCircleLine } from "./AccountCircleLine"; -export { default as Additional } from "./Additional"; -export { default as AdminFill } from "./AdminFill"; -export { default as AdminLine } from "./AdminLine"; -export { default as AdminPanelSettings } from "./AdminPanelSettings"; -export { default as AdminPanelSettingsFilled } from "./AdminPanelSettingsFilled"; -export { default as Alarm } from "./Alarm"; -export { default as AlertFill } from "./AlertFill"; -export { default as AlertLine } from "./AlertLine"; -export { default as Announcement } from "./Announcement"; -export { default as ArrowDownShortLine } from "./ArrowDownShortLine"; -export { default as ArrowDropDown } from "./ArrowDropDown"; -export { default as ArrowDropDownRounded } from "./ArrowDropDownRounded"; -export { default as ArrowLeftLine } from "./ArrowLeftLine"; -export { default as ArrowLeftShortLine } from "./ArrowLeftShortLine"; -export { default as ArrowRightLine } from "./ArrowRightLine"; -export { default as ArrowRightShortLine } from "./ArrowRightShortLine"; -export { default as ArrowUpShortLine } from "./ArrowUpShortLine"; -export { default as Audio } from "./Audio"; -export { default as Back } from "./Back"; -export { default as Bell } from "./Bell"; -export { default as BellOutlined } from "./BellOutlined"; -export { default as Book } from "./Book"; -export { default as BookOpen } from "./BookOpen"; -export { default as BookOpenFill } from "./BookOpenFill"; -export { default as BookOpenLine } from "./BookOpenLine"; -export { default as BookOutlined } from "./BookOutlined"; -export { default as BookReadFill } from "./BookReadFill"; -export { default as BookReadLine } from "./BookReadLine"; -export { default as BroadcastFill } from "./BroadcastFill"; -export { default as BroadcastLine } from "./BroadcastLine"; -export { default as ChatHeartFill } from "./ChatHeartFill"; -export { default as ChatHeartLine } from "./ChatHeartLine"; -export { default as CircleFill } from "./CircleFill"; -export { default as Comment } from "./Comment"; -export { default as CompassFill } from "./CompassFill"; -export { default as CompassLine } from "./CompassLine"; -export { default as CornerDownLeftLine } from "./CornerDownLeftLine"; -export { default as Download } from "./Download"; -export { default as DownloadLine } from "./DownloadLine"; -export { default as Email } from "./Email"; -export { default as EmailOutline } from "./EmailOutline"; -export { default as ErrorWarningFill } from "./ErrorWarningFill"; -export { default as ErrorWarningLine } from "./ErrorWarningLine"; -export { default as ExclamationMark } from "./ExclamationMark"; -export { default as ExternalLinkLine } from "./ExternalLinkLine"; -export { default as Facebook } from "./Facebook"; -export { default as FacebookCircleFill } from "./FacebookCircleFill"; -export { default as FacebookCircleLine } from "./FacebookCircleLine"; -export { default as FacebookFilled } from "./FacebookFilled"; -export { default as Feide } from "./Feide"; -export { default as FileDocumentOutline } from "./FileDocumentOutline"; -export { default as FileEditFill } from "./FileEditFill"; -export { default as FileEditLine } from "./FileEditLine"; -export { default as FilePdfFill } from "./FilePdfFill"; -export { default as FilePdfLine } from "./FilePdfLine"; -export { default as FileTextFill } from "./FileTextFill"; -export { default as FileTextLine } from "./FileTextLine"; -export { default as Forum } from "./Forum"; -export { default as ForumOutlined } from "./ForumOutlined"; -export { default as HashTag } from "./HashTag"; -export { default as HeadphoneFill } from "./HeadphoneFill"; -export { default as HeadphoneLine } from "./HeadphoneLine"; -export { default as Home } from "./Home"; -export { default as HomeFill } from "./HomeFill"; -export { default as HomeLine } from "./HomeLine"; -export { default as Information } from "./Information"; -export { default as InformationFill } from "./InformationFill"; -export { default as InformationLine } from "./InformationLine"; -export { default as InformationOutline } from "./InformationOutline"; -export { default as Insights } from "./Insights"; -export { default as Instagram } from "./Instagram"; -export { default as InstagramFill } from "./InstagramFill"; -export { default as InstagramLine } from "./InstagramLine"; -export { default as Language } from "./Language"; -export { default as Launch } from "./Launch"; -export { default as LineChartLine } from "./LineChartLine"; -export { default as Link } from "./Link"; -export { default as LinkedIn } from "./LinkedIn"; -export { default as LinkedinBoxFill } from "./LinkedinBoxFill"; -export { default as LinkedinBoxLine } from "./LinkedinBoxLine"; -export { default as LockFill } from "./LockFill"; -export { default as LockLine } from "./LockLine"; -export { default as LockUnlockedFill } from "./LockUnlockedFill"; -export { default as LockUnlockedLine } from "./LockUnlockedLine"; -export { default as LogIn } from "./LogIn"; -export { default as LoginBoxLine } from "./LoginBoxLine"; -export { default as LogoutBoxRightLine } from "./LogoutBoxRightLine"; -export { default as MailFill } from "./MailFill"; -export { default as MailLine } from "./MailLine"; -export { default as MegaphoneFill } from "./MegaphoneFill"; -export { default as MegaphoneLine } from "./MegaphoneLine"; -export { default as Menu } from "./Menu"; -export { default as MessageFill } from "./MessageFill"; -export { default as MessageLine } from "./MessageLine"; -export { default as NotificationFill } from "./NotificationFill"; -export { default as NotificationLine } from "./NotificationLine"; -export { default as PanoramaPhotosphere } from "./PanoramaPhotosphere"; -export { default as PauseLine } from "./PauseLine"; -export { default as Person } from "./Person"; -export { default as PersonOutlined } from "./PersonOutlined"; -export { default as Pin } from "./Pin"; -export { default as PlayCircleFill } from "./PlayCircleFill"; -export { default as PlayCircleLine } from "./PlayCircleLine"; -export { default as PlayFill } from "./PlayFill"; -export { default as PlayLine } from "./PlayLine"; -export { default as Podcast } from "./Podcast"; -export { default as PresentationFill } from "./PresentationFill"; -export { default as PresentationLine } from "./PresentationLine"; -export { default as PushpinFill } from "./PushpinFill"; -export { default as PushpinLine } from "./PushpinLine"; -export { default as QuestionAnswerFill } from "./QuestionAnswerFill"; -export { default as QuestionAnswerLine } from "./QuestionAnswerLine"; -export { default as QuestionFill } from "./QuestionFill"; -export { default as QuestionLine } from "./QuestionLine"; -export { default as Report } from "./Report"; -export { default as RouteFill } from "./RouteFill"; -export { default as RouteLine } from "./RouteLine"; -export { default as RssFeed } from "./RssFeed"; -export { default as RssFill } from "./RssFill"; -export { default as RssLine } from "./RssLine"; -export { default as Search } from "./Search"; -export { default as SearchFill } from "./SearchFill"; -export { default as SearchLine } from "./SearchLine"; -export { default as Share } from "./Share"; -export { default as ShareBoxLine } from "./ShareBoxLine"; -export { default as ShareFill } from "./ShareFill"; -export { default as ShareLine } from "./ShareLine"; -export { default as ShieldUserFill } from "./ShieldUserFill"; -export { default as ShieldUserLine } from "./ShieldUserLine"; -export { default as SpamFill } from "./SpamFill"; -export { default as SpamLine } from "./SpamLine"; -export { default as TagOutlined } from "./TagOutlined"; -export { default as Time } from "./Time"; -export { default as TimeFill } from "./TimeFill"; -export { default as TimeLine } from "./TimeLine"; -export { default as Twitter } from "./Twitter"; -export { default as UserFill } from "./UserFill"; -export { default as UserLine } from "./UserLine"; -export { default as VoicePrintLine } from "./VoicePrintLine"; -export { default as VolumeUp } from "./VolumeUp"; -export { default as VolumeUpFill } from "./VolumeUpFill"; -export { default as VolumeUpLine } from "./VolumeUpLine"; -export { default as WarningOutline } from "./WarningOutline"; -export { default as Youtube } from "./Youtube"; -export { default as YoutubeFill } from "./YoutubeFill"; -export { default as YoutubeLine } from "./YoutubeLine"; diff --git a/packages/ndla-icons/src/contentType/HorizontalMenu.tsx b/packages/ndla-icons/src/contentType/HorizontalMenu.tsx deleted file mode 100644 index 8df1c78ada..0000000000 --- a/packages/ndla-icons/src/contentType/HorizontalMenu.tsx +++ /dev/null @@ -1,16 +0,0 @@ -/** - * Copyright (c) 2024-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ -// N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; -const HorizontalMenu = (props: Props) => ( - - - - -); -export default HorizontalMenu; diff --git a/packages/ndla-icons/src/contentType/LearningPath.tsx b/packages/ndla-icons/src/contentType/LearningPath.tsx deleted file mode 100644 index 4b0495f3ff..0000000000 --- a/packages/ndla-icons/src/contentType/LearningPath.tsx +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Copyright (c) 2021-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ -// N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; -const LearningPath = (props: Props) => ( - - - - -); -export default LearningPath; diff --git a/packages/ndla-icons/src/contentType/SharedResource.tsx b/packages/ndla-icons/src/contentType/SharedResource.tsx deleted file mode 100644 index ff2a4aabba..0000000000 --- a/packages/ndla-icons/src/contentType/SharedResource.tsx +++ /dev/null @@ -1,18 +0,0 @@ -/** - * Copyright (c) 2024-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ -// N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; -const SharedResource = (props: Props) => ( - - - - - - -); -export default SharedResource; diff --git a/packages/ndla-icons/src/contentType/Subject.tsx b/packages/ndla-icons/src/contentType/Subject.tsx deleted file mode 100644 index d47a983580..0000000000 --- a/packages/ndla-icons/src/contentType/Subject.tsx +++ /dev/null @@ -1,15 +0,0 @@ -/** - * Copyright (c) 2021-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ -// N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; -const Subject = (props: Props) => ( - - - -); -export default Subject; diff --git a/packages/ndla-icons/src/contentType/SubjectMaterial.tsx b/packages/ndla-icons/src/contentType/SubjectMaterial.tsx deleted file mode 100644 index d7f1f87683..0000000000 --- a/packages/ndla-icons/src/contentType/SubjectMaterial.tsx +++ /dev/null @@ -1,16 +0,0 @@ -/** - * Copyright (c) 2021-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ -// N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; -const SubjectMaterial = (props: Props) => ( - - - - -); -export default SubjectMaterial; diff --git a/packages/ndla-icons/src/contentType/TasksAndActivities.tsx b/packages/ndla-icons/src/contentType/TasksAndActivities.tsx deleted file mode 100644 index 5b5e63639d..0000000000 --- a/packages/ndla-icons/src/contentType/TasksAndActivities.tsx +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Copyright (c) 2024-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ -// N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; -const TasksAndActivities = (props: Props) => ( - - - - - - -); -export default TasksAndActivities; diff --git a/packages/ndla-icons/src/contentType/index.ts b/packages/ndla-icons/src/contentType/index.ts deleted file mode 100644 index 782865acf7..0000000000 --- a/packages/ndla-icons/src/contentType/index.ts +++ /dev/null @@ -1,23 +0,0 @@ -/** - * Copyright (c) 2021-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ - -// N.B! AUTOGENERATED FILE. DO NOT EDIT -export { default as FolderUserFill } from "./FolderUserFill"; -export { default as FolderUserLine } from "./FolderUserLine"; -export { default as HorizontalMenu } from "./HorizontalMenu"; -export { default as LearningPath } from "./LearningPath"; -export { default as MenuSearchFill } from "./MenuSearchFill"; -export { default as MenuSearchLine } from "./MenuSearchLine"; -export { default as MoreFill } from "./MoreFill"; -export { default as MoreLine } from "./MoreLine"; -export { default as MoreVerticalFill } from "./MoreVerticalFill"; -export { default as MoreVerticalLine } from "./MoreVerticalLine"; -export { default as SharedResource } from "./SharedResource"; -export { default as Subject } from "./Subject"; -export { default as SubjectMaterial } from "./SubjectMaterial"; -export { default as TasksAndActivities } from "./TasksAndActivities"; diff --git a/packages/ndla-icons/src/editor/AlertCircle.tsx b/packages/ndla-icons/src/editor/AlertCircle.tsx deleted file mode 100644 index d935c83dbe..0000000000 --- a/packages/ndla-icons/src/editor/AlertCircle.tsx +++ /dev/null @@ -1,15 +0,0 @@ -/** - * Copyright (c) 2024-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ -// N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; -const AlertCircle = (props: Props) => ( - - - -); -export default AlertCircle; diff --git a/packages/ndla-icons/src/editor/ArrowExpand.tsx b/packages/ndla-icons/src/editor/ArrowExpand.tsx deleted file mode 100644 index dfef036471..0000000000 --- a/packages/ndla-icons/src/editor/ArrowExpand.tsx +++ /dev/null @@ -1,15 +0,0 @@ -/** - * Copyright (c) 2024-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ -// N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; -const ArrowExpand = (props: Props) => ( - - - -); -export default ArrowExpand; diff --git a/packages/ndla-icons/src/editor/BlogPost.tsx b/packages/ndla-icons/src/editor/BlogPost.tsx deleted file mode 100644 index 629963289c..0000000000 --- a/packages/ndla-icons/src/editor/BlogPost.tsx +++ /dev/null @@ -1,15 +0,0 @@ -/** - * Copyright (c) 2024-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ -// N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; -const BlogPost = (props: Props) => ( - - - -); -export default BlogPost; diff --git a/packages/ndla-icons/src/editor/Calendar.tsx b/packages/ndla-icons/src/editor/Calendar.tsx deleted file mode 100644 index 96a38b2096..0000000000 --- a/packages/ndla-icons/src/editor/Calendar.tsx +++ /dev/null @@ -1,16 +0,0 @@ -/** - * Copyright (c) 2021-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ -// N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; -const Calendar = (props: Props) => ( - - - - -); -export default Calendar; diff --git a/packages/ndla-icons/src/editor/Camera.tsx b/packages/ndla-icons/src/editor/Camera.tsx deleted file mode 100644 index b027a77d4a..0000000000 --- a/packages/ndla-icons/src/editor/Camera.tsx +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Copyright (c) 2021-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ -// N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; -const Camera = (props: Props) => ( - - - - - -); -export default Camera; diff --git a/packages/ndla-icons/src/editor/Code.tsx b/packages/ndla-icons/src/editor/Code.tsx deleted file mode 100644 index 4d2810a01e..0000000000 --- a/packages/ndla-icons/src/editor/Code.tsx +++ /dev/null @@ -1,16 +0,0 @@ -/** - * Copyright (c) 2021-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ -// N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; -const Code = (props: Props) => ( - - - - -); -export default Code; diff --git a/packages/ndla-icons/src/editor/Concept.tsx b/packages/ndla-icons/src/editor/Concept.tsx deleted file mode 100644 index 73fd555742..0000000000 --- a/packages/ndla-icons/src/editor/Concept.tsx +++ /dev/null @@ -1,20 +0,0 @@ -/** - * Copyright (c) 2021-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ -// N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; -const Concept = (props: Props) => ( - - - - -); -export default Concept; diff --git a/packages/ndla-icons/src/editor/Copyright.tsx b/packages/ndla-icons/src/editor/Copyright.tsx deleted file mode 100644 index a15a03a042..0000000000 --- a/packages/ndla-icons/src/editor/Copyright.tsx +++ /dev/null @@ -1,15 +0,0 @@ -/** - * Copyright (c) 2021-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ -// N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; -const Copyright = (props: Props) => ( - - - -); -export default Copyright; diff --git a/packages/ndla-icons/src/editor/Crop.tsx b/packages/ndla-icons/src/editor/Crop.tsx deleted file mode 100644 index 5a19f54cc6..0000000000 --- a/packages/ndla-icons/src/editor/Crop.tsx +++ /dev/null @@ -1,15 +0,0 @@ -/** - * Copyright (c) 2021-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ -// N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; -const Crop = (props: Props) => ( - - - -); -export default Crop; diff --git a/packages/ndla-icons/src/editor/Done.tsx b/packages/ndla-icons/src/editor/Done.tsx deleted file mode 100644 index 1dc58dc0f2..0000000000 --- a/packages/ndla-icons/src/editor/Done.tsx +++ /dev/null @@ -1,16 +0,0 @@ -/** - * Copyright (c) 2021-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ -// N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; -const Done = (props: Props) => ( - - - - -); -export default Done; diff --git a/packages/ndla-icons/src/editor/DragVertical.tsx b/packages/ndla-icons/src/editor/DragVertical.tsx deleted file mode 100644 index b41e60800b..0000000000 --- a/packages/ndla-icons/src/editor/DragVertical.tsx +++ /dev/null @@ -1,15 +0,0 @@ -/** - * Copyright (c) 2021-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ -// N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; -const DragVertical = (props: Props) => ( - - - -); -export default DragVertical; diff --git a/packages/ndla-icons/src/editor/Expandable.tsx b/packages/ndla-icons/src/editor/Expandable.tsx deleted file mode 100644 index 51e11b8a8b..0000000000 --- a/packages/ndla-icons/src/editor/Expandable.tsx +++ /dev/null @@ -1,16 +0,0 @@ -/** - * Copyright (c) 2021-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ -// N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; -const Expandable = (props: Props) => ( - - - - -); -export default Expandable; diff --git a/packages/ndla-icons/src/editor/ExpandableBox.tsx b/packages/ndla-icons/src/editor/ExpandableBox.tsx deleted file mode 100644 index 43d97f6593..0000000000 --- a/packages/ndla-icons/src/editor/ExpandableBox.tsx +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Copyright (c) 2021-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ -// N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; -const ExpandableBox = (props: Props) => ( - - - - - - -); -export default ExpandableBox; diff --git a/packages/ndla-icons/src/editor/Eye.tsx b/packages/ndla-icons/src/editor/Eye.tsx deleted file mode 100644 index 71f2b69c3e..0000000000 --- a/packages/ndla-icons/src/editor/Eye.tsx +++ /dev/null @@ -1,15 +0,0 @@ -/** - * Copyright (c) 2021-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ -// N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; -const Eye = (props: Props) => ( - - - -); -export default Eye; diff --git a/packages/ndla-icons/src/editor/FactBoxMaterial.tsx b/packages/ndla-icons/src/editor/FactBoxMaterial.tsx deleted file mode 100644 index 7bce1a8d34..0000000000 --- a/packages/ndla-icons/src/editor/FactBoxMaterial.tsx +++ /dev/null @@ -1,15 +0,0 @@ -/** - * Copyright (c) 2021-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ -// N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; -const FactBoxMaterial = (props: Props) => ( - - - -); -export default FactBoxMaterial; diff --git a/packages/ndla-icons/src/editor/FocalPoint.tsx b/packages/ndla-icons/src/editor/FocalPoint.tsx deleted file mode 100644 index dbf5b0bea8..0000000000 --- a/packages/ndla-icons/src/editor/FocalPoint.tsx +++ /dev/null @@ -1,16 +0,0 @@ -/** - * Copyright (c) 2021-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ -// N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; -const FocalPoint = (props: Props) => ( - - - - -); -export default FocalPoint; diff --git a/packages/ndla-icons/src/editor/FormatList.tsx b/packages/ndla-icons/src/editor/FormatList.tsx deleted file mode 100644 index 626cecb2b9..0000000000 --- a/packages/ndla-icons/src/editor/FormatList.tsx +++ /dev/null @@ -1,15 +0,0 @@ -/** - * Copyright (c) 2021-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ -// N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; -const FormatList = (props: Props) => ( - - - -); -export default FormatList; diff --git a/packages/ndla-icons/src/editor/Framed.tsx b/packages/ndla-icons/src/editor/Framed.tsx deleted file mode 100644 index 8ef1b9e8d8..0000000000 --- a/packages/ndla-icons/src/editor/Framed.tsx +++ /dev/null @@ -1,15 +0,0 @@ -/** - * Copyright (c) 2021-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ -// N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; -const Framed = (props: Props) => ( - - - -); -export default Framed; diff --git a/packages/ndla-icons/src/editor/Globe.tsx b/packages/ndla-icons/src/editor/Globe.tsx deleted file mode 100644 index 4c9557ed44..0000000000 --- a/packages/ndla-icons/src/editor/Globe.tsx +++ /dev/null @@ -1,16 +0,0 @@ -/** - * Copyright (c) 2021-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ -// N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; -const Globe = (props: Props) => ( - - - - -); -export default Globe; diff --git a/packages/ndla-icons/src/editor/Grid.tsx b/packages/ndla-icons/src/editor/Grid.tsx deleted file mode 100644 index 7a7cb396a9..0000000000 --- a/packages/ndla-icons/src/editor/Grid.tsx +++ /dev/null @@ -1,15 +0,0 @@ -/** - * Copyright (c) 2021-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ -// N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; -const Grid = (props: Props) => ( - - - -); -export default Grid; diff --git a/packages/ndla-icons/src/editor/ImageSmall.tsx b/packages/ndla-icons/src/editor/ImageSmall.tsx deleted file mode 100644 index 1a5bec6533..0000000000 --- a/packages/ndla-icons/src/editor/ImageSmall.tsx +++ /dev/null @@ -1,15 +0,0 @@ -/** - * Copyright (c) 2021-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ -// N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; -const ImageSmall = (props: Props) => ( - - - -); -export default ImageSmall; diff --git a/packages/ndla-icons/src/editor/ImageXsmall.tsx b/packages/ndla-icons/src/editor/ImageXsmall.tsx deleted file mode 100644 index c92a0791da..0000000000 --- a/packages/ndla-icons/src/editor/ImageXsmall.tsx +++ /dev/null @@ -1,15 +0,0 @@ -/** - * Copyright (c) 2021-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ -// N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; -const ImageXsmall = (props: Props) => ( - - - -); -export default ImageXsmall; diff --git a/packages/ndla-icons/src/editor/ImageXxSmall.tsx b/packages/ndla-icons/src/editor/ImageXxSmall.tsx deleted file mode 100644 index 1710de9c41..0000000000 --- a/packages/ndla-icons/src/editor/ImageXxSmall.tsx +++ /dev/null @@ -1,15 +0,0 @@ -/** - * Copyright (c) 2021-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ -// N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; -const ImageXxSmall = (props: Props) => ( - - - -); -export default ImageXxSmall; diff --git a/packages/ndla-icons/src/editor/InProgress.tsx b/packages/ndla-icons/src/editor/InProgress.tsx deleted file mode 100644 index 8a107da388..0000000000 --- a/packages/ndla-icons/src/editor/InProgress.tsx +++ /dev/null @@ -1,18 +0,0 @@ -/** - * Copyright (c) 2021-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ -// N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; -const InProgress = (props: Props) => ( - - - -); -export default InProgress; diff --git a/packages/ndla-icons/src/editor/Keyhole.tsx b/packages/ndla-icons/src/editor/Keyhole.tsx deleted file mode 100644 index 4afdc32eae..0000000000 --- a/packages/ndla-icons/src/editor/Keyhole.tsx +++ /dev/null @@ -1,19 +0,0 @@ -/** - * Copyright (c) 2021-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ -// N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; -const Keyhole = (props: Props) => ( - - - - - - - -); -export default Keyhole; diff --git a/packages/ndla-icons/src/editor/Link.tsx b/packages/ndla-icons/src/editor/Link.tsx deleted file mode 100644 index 5daa4da357..0000000000 --- a/packages/ndla-icons/src/editor/Link.tsx +++ /dev/null @@ -1,15 +0,0 @@ -/** - * Copyright (c) 2021-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ -// N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; -const Link = (props: Props) => ( - - - -); -export default Link; diff --git a/packages/ndla-icons/src/editor/ListCircle.tsx b/packages/ndla-icons/src/editor/ListCircle.tsx deleted file mode 100644 index a030a60eab..0000000000 --- a/packages/ndla-icons/src/editor/ListCircle.tsx +++ /dev/null @@ -1,15 +0,0 @@ -/** - * Copyright (c) 2021-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ -// N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; -const ListCircle = (props: Props) => ( - - - -); -export default ListCircle; diff --git a/packages/ndla-icons/src/editor/ListNumbered.tsx b/packages/ndla-icons/src/editor/ListNumbered.tsx deleted file mode 100644 index bf3ef9703e..0000000000 --- a/packages/ndla-icons/src/editor/ListNumbered.tsx +++ /dev/null @@ -1,15 +0,0 @@ -/** - * Copyright (c) 2021-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ -// N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; -const ListNumbered = (props: Props) => ( - - - -); -export default ListNumbered; diff --git a/packages/ndla-icons/src/editor/Math.tsx b/packages/ndla-icons/src/editor/Math.tsx deleted file mode 100644 index d483b3c672..0000000000 --- a/packages/ndla-icons/src/editor/Math.tsx +++ /dev/null @@ -1,15 +0,0 @@ -/** - * Copyright (c) 2024-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ -// N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; -const Math = (props: Props) => ( - - - -); -export default Math; diff --git a/packages/ndla-icons/src/editor/PlayBoxOutline.tsx b/packages/ndla-icons/src/editor/PlayBoxOutline.tsx deleted file mode 100644 index f415c56bae..0000000000 --- a/packages/ndla-icons/src/editor/PlayBoxOutline.tsx +++ /dev/null @@ -1,15 +0,0 @@ -/** - * Copyright (c) 2021-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ -// N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; -const PlayBoxOutline = (props: Props) => ( - - - -); -export default PlayBoxOutline; diff --git a/packages/ndla-icons/src/editor/PresentationPlay.tsx b/packages/ndla-icons/src/editor/PresentationPlay.tsx deleted file mode 100644 index 4f92089a7d..0000000000 --- a/packages/ndla-icons/src/editor/PresentationPlay.tsx +++ /dev/null @@ -1,15 +0,0 @@ -/** - * Copyright (c) 2021-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ -// N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; -const PresentationPlay = (props: Props) => ( - - - -); -export default PresentationPlay; diff --git a/packages/ndla-icons/src/editor/PublicDomain.tsx b/packages/ndla-icons/src/editor/PublicDomain.tsx deleted file mode 100644 index e911f74536..0000000000 --- a/packages/ndla-icons/src/editor/PublicDomain.tsx +++ /dev/null @@ -1,15 +0,0 @@ -/** - * Copyright (c) 2021-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ -// N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; -const PublicDomain = (props: Props) => ( - - - -); -export default PublicDomain; diff --git a/packages/ndla-icons/src/editor/RelatedArticle.tsx b/packages/ndla-icons/src/editor/RelatedArticle.tsx deleted file mode 100644 index 445bbca6ac..0000000000 --- a/packages/ndla-icons/src/editor/RelatedArticle.tsx +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Copyright (c) 2021-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ -// N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; -const RelatedArticle = (props: Props) => ( - - - -); -export default RelatedArticle; diff --git a/packages/ndla-icons/src/editor/Restore.tsx b/packages/ndla-icons/src/editor/Restore.tsx deleted file mode 100644 index 94a9680435..0000000000 --- a/packages/ndla-icons/src/editor/Restore.tsx +++ /dev/null @@ -1,15 +0,0 @@ -/** - * Copyright (c) 2021-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ -// N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; -const Restore = (props: Props) => ( - - - -); -export default Restore; diff --git a/packages/ndla-icons/src/editor/Settings.tsx b/packages/ndla-icons/src/editor/Settings.tsx deleted file mode 100644 index 5a92d3b6e3..0000000000 --- a/packages/ndla-icons/src/editor/Settings.tsx +++ /dev/null @@ -1,16 +0,0 @@ -/** - * Copyright (c) 2021-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ -// N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; -const Settings = (props: Props) => ( - - - - -); -export default Settings; diff --git a/packages/ndla-icons/src/editor/SquareAudio.tsx b/packages/ndla-icons/src/editor/SquareAudio.tsx deleted file mode 100644 index 6ea27bb256..0000000000 --- a/packages/ndla-icons/src/editor/SquareAudio.tsx +++ /dev/null @@ -1,16 +0,0 @@ -/** - * Copyright (c) 2021-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ -// N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; -const SquareAudio = (props: Props) => ( - - - - -); -export default SquareAudio; diff --git a/packages/ndla-icons/src/editor/Star.tsx b/packages/ndla-icons/src/editor/Star.tsx deleted file mode 100644 index ab4f48e72f..0000000000 --- a/packages/ndla-icons/src/editor/Star.tsx +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Copyright (c) 2021-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ -// N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; -const Star = (props: Props) => ( - - - - - -); -export default Star; diff --git a/packages/ndla-icons/src/editor/SubjectMatter.tsx b/packages/ndla-icons/src/editor/SubjectMatter.tsx deleted file mode 100644 index aefe160937..0000000000 --- a/packages/ndla-icons/src/editor/SubjectMatter.tsx +++ /dev/null @@ -1,16 +0,0 @@ -/** - * Copyright (c) 2021-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ -// N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; -const SubjectMatter = (props: Props) => ( - - - - -); -export default SubjectMatter; diff --git a/packages/ndla-icons/src/editor/TableMaterial.tsx b/packages/ndla-icons/src/editor/TableMaterial.tsx deleted file mode 100644 index 681931045f..0000000000 --- a/packages/ndla-icons/src/editor/TableMaterial.tsx +++ /dev/null @@ -1,15 +0,0 @@ -/** - * Copyright (c) 2021-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ -// N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; -const TableMaterial = (props: Props) => ( - - - -); -export default TableMaterial; diff --git a/packages/ndla-icons/src/editor/Taxonomy.tsx b/packages/ndla-icons/src/editor/Taxonomy.tsx deleted file mode 100644 index e8c2f6c7a9..0000000000 --- a/packages/ndla-icons/src/editor/Taxonomy.tsx +++ /dev/null @@ -1,15 +0,0 @@ -/** - * Copyright (c) 2021-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ -// N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; -const Taxonomy = (props: Props) => ( - - - -); -export default Taxonomy; diff --git a/packages/ndla-icons/src/editor/Video.tsx b/packages/ndla-icons/src/editor/Video.tsx deleted file mode 100644 index 04e9f26f4f..0000000000 --- a/packages/ndla-icons/src/editor/Video.tsx +++ /dev/null @@ -1,15 +0,0 @@ -/** - * Copyright (c) 2021-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ -// N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; -const Video = (props: Props) => ( - - - -); -export default Video; diff --git a/packages/ndla-icons/src/editor/Warning.tsx b/packages/ndla-icons/src/editor/Warning.tsx deleted file mode 100644 index 2f46d65b53..0000000000 --- a/packages/ndla-icons/src/editor/Warning.tsx +++ /dev/null @@ -1,16 +0,0 @@ -/** - * Copyright (c) 2021-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ -// N.B! AUTOGENERATED FILE. DO NOT EDIT; -import Icon, { Props } from "../Icon"; -const Warning = (props: Props) => ( - - - - -); -export default Warning; diff --git a/packages/ndla-icons/src/editor/index.ts b/packages/ndla-icons/src/editor/index.ts deleted file mode 100644 index dabcaf1647..0000000000 --- a/packages/ndla-icons/src/editor/index.ts +++ /dev/null @@ -1,121 +0,0 @@ -/** - * Copyright (c) 2021-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ - -// N.B! AUTOGENERATED FILE. DO NOT EDIT -export { default as AlertCircle } from "./AlertCircle"; -export { default as AlignCenter } from "./AlignCenter"; -export { default as AlignLeft } from "./AlignLeft"; -export { default as AlignRight } from "./AlignRight"; -export { default as ArrowExpand } from "./ArrowExpand"; -export { default as BlogPost } from "./BlogPost"; -export { default as Bold } from "./Bold"; -export { default as BrushLine } from "./BrushLine"; -export { default as CalculatorFill } from "./CalculatorFill"; -export { default as CalculatorLine } from "./CalculatorLine"; -export { default as Calendar } from "./Calendar"; -export { default as CalendarFill } from "./CalendarFill"; -export { default as CalendarLine } from "./CalendarLine"; -export { default as Camera } from "./Camera"; -export { default as CameraFill } from "./CameraFill"; -export { default as CameraLine } from "./CameraLine"; -export { default as ChatLine } from "./ChatLine"; -export { default as CheckLine } from "./CheckLine"; -export { default as CheckboxCircleFill } from "./CheckboxCircleFill"; -export { default as CheckboxCircleLine } from "./CheckboxCircleLine"; -export { default as CheckboxFill } from "./CheckboxFill"; -export { default as CheckboxLine } from "./CheckboxLine"; -export { default as CircleLine } from "./CircleLine"; -export { default as Code } from "./Code"; -export { default as CodeView } from "./CodeView"; -export { default as Concept } from "./Concept"; -export { default as Copyright } from "./Copyright"; -export { default as CopyrightFill } from "./CopyrightFill"; -export { default as CopyrightLine } from "./CopyrightLine"; -export { default as Crop } from "./Crop"; -export { default as CropFill } from "./CropFill"; -export { default as CropLine } from "./CropLine"; -export { default as Done } from "./Done"; -export { default as DoorLockFill } from "./DoorLockFill"; -export { default as DoorLockLine } from "./DoorLockLine"; -export { default as DragVertical } from "./DragVertical"; -export { default as Draggable } from "./Draggable"; -export { default as ExpandDiagonalLine } from "./ExpandDiagonalLine"; -export { default as ExpandUpDownLine } from "./ExpandUpDownLine"; -export { default as Expandable } from "./Expandable"; -export { default as ExpandableBox } from "./ExpandableBox"; -export { default as Eye } from "./Eye"; -export { default as EyeFill } from "./EyeFill"; -export { default as EyeLine } from "./EyeLine"; -export { default as FactBoxMaterial } from "./FactBoxMaterial"; -export { default as FileListFill } from "./FileListFill"; -export { default as FileListLine } from "./FileListLine"; -export { default as FocalPoint } from "./FocalPoint"; -export { default as FolderFill } from "./FolderFill"; -export { default as FolderLine } from "./FolderLine"; -export { default as FormatList } from "./FormatList"; -export { default as Framed } from "./Framed"; -export { default as GlobalFill } from "./GlobalFill"; -export { default as GlobalLine } from "./GlobalLine"; -export { default as Globe } from "./Globe"; -export { default as Grid } from "./Grid"; -export { default as H5P } from "./H5P"; -export { default as ImageFill } from "./ImageFill"; -export { default as ImageLine } from "./ImageLine"; -export { default as ImageSmall } from "./ImageSmall"; -export { default as ImageXsmall } from "./ImageXsmall"; -export { default as ImageXxSmall } from "./ImageXxSmall"; -export { default as InProgress } from "./InProgress"; -export { default as Italic } from "./Italic"; -export { default as Keyhole } from "./Keyhole"; -export { default as LayoutColumnLine } from "./LayoutColumnLine"; -export { default as Link } from "./Link"; -export { default as LinkMedium } from "./LinkMedium"; -export { default as ListAlphabetical } from "./ListAlphabetical"; -export { default as ListCircle } from "./ListCircle"; -export { default as ListNumbered } from "./ListNumbered"; -export { default as ListOrdered } from "./ListOrdered"; -export { default as ListUnordered } from "./ListUnordered"; -export { default as Math } from "./Math"; -export { default as MovieFill } from "./MovieFill"; -export { default as MovieLine } from "./MovieLine"; -export { default as PlayBoxOutline } from "./PlayBoxOutline"; -export { default as PresentationPlay } from "./PresentationPlay"; -export { default as PublicDomain } from "./PublicDomain"; -export { default as QuestionnaireFill } from "./QuestionnaireFill"; -export { default as QuestionnaireLine } from "./QuestionnaireLine"; -export { default as Quote } from "./Quote"; -export { default as RelatedArticle } from "./RelatedArticle"; -export { default as Restore } from "./Restore"; -export { default as SearchContent } from "./SearchContent"; -export { default as SearchMedia } from "./SearchMedia"; -export { default as Settings } from "./Settings"; -export { default as SettingsFill } from "./SettingsFill"; -export { default as SettingsLine } from "./SettingsLine"; -export { default as SlideshowFill } from "./SlideshowFill"; -export { default as SlideshowLine } from "./SlideshowLine"; -export { default as SquareAudio } from "./SquareAudio"; -export { default as SquareFill } from "./SquareFill"; -export { default as SquareLine } from "./SquareLine"; -export { default as Star } from "./Star"; -export { default as StarFill } from "./StarFill"; -export { default as StarLine } from "./StarLine"; -export { default as StickyNoteAddFill } from "./StickyNoteAddFill"; -export { default as StickyNoteAddLine } from "./StickyNoteAddLine"; -export { default as SubjectMatter } from "./SubjectMatter"; -export { default as Subscript } from "./Subscript"; -export { default as Superscript } from "./Superscript"; -export { default as TableFill } from "./TableFill"; -export { default as TableLine } from "./TableLine"; -export { default as TableMaterial } from "./TableMaterial"; -export { default as Taxonomy } from "./Taxonomy"; -export { default as Underline } from "./Underline"; -export { default as UploadCloudFill } from "./UploadCloudFill"; -export { default as UploadCloudLine } from "./UploadCloudLine"; -export { default as UploadLine } from "./UploadLine"; -export { default as Video } from "./Video"; -export { default as Warning } from "./Warning"; diff --git a/packages/ndla-icons/svg/action/Back15.svg b/packages/ndla-icons/svg/action/Back15.svg deleted file mode 100644 index d0229760c4..0000000000 --- a/packages/ndla-icons/svg/action/Back15.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/packages/ndla-icons/svg/action/Copy.svg b/packages/ndla-icons/svg/action/Copy.svg deleted file mode 100644 index d3dfb7b2ef..0000000000 --- a/packages/ndla-icons/svg/action/Copy.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/packages/ndla-icons/svg/action/ExpandLess.svg b/packages/ndla-icons/svg/action/ExpandLess.svg deleted file mode 100644 index 1d882e7ec5..0000000000 --- a/packages/ndla-icons/svg/action/ExpandLess.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/packages/ndla-icons/svg/action/ExpandMore.svg b/packages/ndla-icons/svg/action/ExpandMore.svg deleted file mode 100644 index 947336cae1..0000000000 --- a/packages/ndla-icons/svg/action/ExpandMore.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/packages/ndla-icons/svg/action/FileCompare.svg b/packages/ndla-icons/svg/action/FileCompare.svg deleted file mode 100644 index cd78d5a530..0000000000 --- a/packages/ndla-icons/svg/action/FileCompare.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/packages/ndla-icons/svg/action/Forward15.svg b/packages/ndla-icons/svg/action/Forward15.svg deleted file mode 100644 index b8e745528d..0000000000 --- a/packages/ndla-icons/svg/action/Forward15.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/packages/ndla-icons/svg/action/HeartOutline.svg b/packages/ndla-icons/svg/action/HeartOutline.svg deleted file mode 100644 index b528fbbef4..0000000000 --- a/packages/ndla-icons/svg/action/HeartOutline.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/packages/ndla-icons/svg/action/List.svg b/packages/ndla-icons/svg/action/List.svg deleted file mode 100644 index c9da45d77f..0000000000 --- a/packages/ndla-icons/svg/action/List.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/packages/ndla-icons/svg/action/MenuBook.svg b/packages/ndla-icons/svg/action/MenuBook.svg deleted file mode 100644 index 9a4afee002..0000000000 --- a/packages/ndla-icons/svg/action/MenuBook.svg +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/packages/ndla-icons/svg/action/Minus.svg b/packages/ndla-icons/svg/action/Minus.svg deleted file mode 100644 index e5f1f14ba1..0000000000 --- a/packages/ndla-icons/svg/action/Minus.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/packages/ndla-icons/svg/action/RemoveCircle.svg b/packages/ndla-icons/svg/action/RemoveCircle.svg deleted file mode 100644 index 3c1f3ab11d..0000000000 --- a/packages/ndla-icons/svg/action/RemoveCircle.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/packages/ndla-icons/svg/action/RightArrow.svg b/packages/ndla-icons/svg/action/RightArrow.svg deleted file mode 100644 index 0b8ea0e40a..0000000000 --- a/packages/ndla-icons/svg/action/RightArrow.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/packages/ndla-icons/svg/common/AdminPanelSettings.svg b/packages/ndla-icons/svg/common/AdminPanelSettings.svg deleted file mode 100644 index 01d431a10e..0000000000 --- a/packages/ndla-icons/svg/common/AdminPanelSettings.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - \ No newline at end of file diff --git a/packages/ndla-icons/svg/common/AdminPanelSettingsFilled.svg b/packages/ndla-icons/svg/common/AdminPanelSettingsFilled.svg deleted file mode 100644 index 8624c21a0c..0000000000 --- a/packages/ndla-icons/svg/common/AdminPanelSettingsFilled.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - \ No newline at end of file diff --git a/packages/ndla-icons/svg/common/Alarm.svg b/packages/ndla-icons/svg/common/Alarm.svg deleted file mode 100644 index b1faafdf05..0000000000 --- a/packages/ndla-icons/svg/common/Alarm.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/packages/ndla-icons/svg/common/Announcement.svg b/packages/ndla-icons/svg/common/Announcement.svg deleted file mode 100644 index 924f4822f4..0000000000 --- a/packages/ndla-icons/svg/common/Announcement.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - \ No newline at end of file diff --git a/packages/ndla-icons/svg/common/ArrowDropDown.svg b/packages/ndla-icons/svg/common/ArrowDropDown.svg deleted file mode 100644 index 72aea10609..0000000000 --- a/packages/ndla-icons/svg/common/ArrowDropDown.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/packages/ndla-icons/svg/common/ArrowDropDownRounded.svg b/packages/ndla-icons/svg/common/ArrowDropDownRounded.svg deleted file mode 100644 index a7d93cab1d..0000000000 --- a/packages/ndla-icons/svg/common/ArrowDropDownRounded.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/packages/ndla-icons/svg/common/Audio.svg b/packages/ndla-icons/svg/common/Audio.svg deleted file mode 100644 index 68d89b4826..0000000000 --- a/packages/ndla-icons/svg/common/Audio.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/packages/ndla-icons/svg/common/Back.svg b/packages/ndla-icons/svg/common/Back.svg deleted file mode 100644 index 78ee6fc11e..0000000000 --- a/packages/ndla-icons/svg/common/Back.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/packages/ndla-icons/svg/common/Bell.svg b/packages/ndla-icons/svg/common/Bell.svg deleted file mode 100644 index 73e7813dfb..0000000000 --- a/packages/ndla-icons/svg/common/Bell.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - \ No newline at end of file diff --git a/packages/ndla-icons/svg/common/BellOutlined.svg b/packages/ndla-icons/svg/common/BellOutlined.svg deleted file mode 100644 index c2272115ce..0000000000 --- a/packages/ndla-icons/svg/common/BellOutlined.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - \ No newline at end of file diff --git a/packages/ndla-icons/svg/common/Book.svg b/packages/ndla-icons/svg/common/Book.svg deleted file mode 100644 index 81343bcad5..0000000000 --- a/packages/ndla-icons/svg/common/Book.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - \ No newline at end of file diff --git a/packages/ndla-icons/svg/common/BookOpen.svg b/packages/ndla-icons/svg/common/BookOpen.svg deleted file mode 100644 index 46938793ed..0000000000 --- a/packages/ndla-icons/svg/common/BookOpen.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/packages/ndla-icons/svg/common/BookOutlined.svg b/packages/ndla-icons/svg/common/BookOutlined.svg deleted file mode 100644 index 5b9bfa84d9..0000000000 --- a/packages/ndla-icons/svg/common/BookOutlined.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - \ No newline at end of file diff --git a/packages/ndla-icons/svg/common/Comment.svg b/packages/ndla-icons/svg/common/Comment.svg deleted file mode 100644 index bcb9384584..0000000000 --- a/packages/ndla-icons/svg/common/Comment.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/packages/ndla-icons/svg/common/Download.svg b/packages/ndla-icons/svg/common/Download.svg deleted file mode 100644 index 4f2f1dc007..0000000000 --- a/packages/ndla-icons/svg/common/Download.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/packages/ndla-icons/svg/common/Email.svg b/packages/ndla-icons/svg/common/Email.svg deleted file mode 100644 index c43c01bdb1..0000000000 --- a/packages/ndla-icons/svg/common/Email.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/packages/ndla-icons/svg/common/EmailOutline.svg b/packages/ndla-icons/svg/common/EmailOutline.svg deleted file mode 100644 index 176e0d573b..0000000000 --- a/packages/ndla-icons/svg/common/EmailOutline.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/packages/ndla-icons/svg/common/ExclamationMark.svg b/packages/ndla-icons/svg/common/ExclamationMark.svg deleted file mode 100644 index c90e7672a8..0000000000 --- a/packages/ndla-icons/svg/common/ExclamationMark.svg +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/packages/ndla-icons/svg/common/ExternalLinkLine.svg b/packages/ndla-icons/svg/common/ExternalLinkLine.svg deleted file mode 100644 index 9449f5aed1..0000000000 --- a/packages/ndla-icons/svg/common/ExternalLinkLine.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/packages/ndla-icons/svg/common/Facebook.svg b/packages/ndla-icons/svg/common/Facebook.svg deleted file mode 100644 index e52b6a9913..0000000000 --- a/packages/ndla-icons/svg/common/Facebook.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/packages/ndla-icons/svg/common/FacebookFilled.svg b/packages/ndla-icons/svg/common/FacebookFilled.svg deleted file mode 100644 index 20230e6c3d..0000000000 --- a/packages/ndla-icons/svg/common/FacebookFilled.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/packages/ndla-icons/svg/common/FileDocumentOutline.svg b/packages/ndla-icons/svg/common/FileDocumentOutline.svg deleted file mode 100644 index 10e14dadc7..0000000000 --- a/packages/ndla-icons/svg/common/FileDocumentOutline.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/packages/ndla-icons/svg/common/Home.svg b/packages/ndla-icons/svg/common/Home.svg deleted file mode 100644 index a3a075af08..0000000000 --- a/packages/ndla-icons/svg/common/Home.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/packages/ndla-icons/svg/common/Information.svg b/packages/ndla-icons/svg/common/Information.svg deleted file mode 100644 index 354b39c8ae..0000000000 --- a/packages/ndla-icons/svg/common/Information.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/packages/ndla-icons/svg/common/InformationOutline.svg b/packages/ndla-icons/svg/common/InformationOutline.svg deleted file mode 100644 index 7b1fee1054..0000000000 --- a/packages/ndla-icons/svg/common/InformationOutline.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/packages/ndla-icons/svg/common/Insights.svg b/packages/ndla-icons/svg/common/Insights.svg deleted file mode 100644 index 7c7048b28e..0000000000 --- a/packages/ndla-icons/svg/common/Insights.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/packages/ndla-icons/svg/common/Instagram.svg b/packages/ndla-icons/svg/common/Instagram.svg deleted file mode 100644 index 54ee1d0d79..0000000000 --- a/packages/ndla-icons/svg/common/Instagram.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/packages/ndla-icons/svg/common/InstagramLine.svg b/packages/ndla-icons/svg/common/InstagramLine.svg deleted file mode 100644 index f2acf6174b..0000000000 --- a/packages/ndla-icons/svg/common/InstagramLine.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/packages/ndla-icons/svg/common/Language.svg b/packages/ndla-icons/svg/common/Language.svg deleted file mode 100644 index f0433c4b53..0000000000 --- a/packages/ndla-icons/svg/common/Language.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/packages/ndla-icons/svg/common/Launch.svg b/packages/ndla-icons/svg/common/Launch.svg deleted file mode 100644 index d04299c43f..0000000000 --- a/packages/ndla-icons/svg/common/Launch.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/packages/ndla-icons/svg/common/Link.svg b/packages/ndla-icons/svg/common/Link.svg deleted file mode 100644 index 00c6eb18cf..0000000000 --- a/packages/ndla-icons/svg/common/Link.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/packages/ndla-icons/svg/common/LinkedIn.svg b/packages/ndla-icons/svg/common/LinkedIn.svg deleted file mode 100644 index adf8e0cf98..0000000000 --- a/packages/ndla-icons/svg/common/LinkedIn.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/packages/ndla-icons/svg/common/LogIn.svg b/packages/ndla-icons/svg/common/LogIn.svg deleted file mode 100644 index 22fdf07739..0000000000 --- a/packages/ndla-icons/svg/common/LogIn.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/packages/ndla-icons/svg/common/Menu.svg b/packages/ndla-icons/svg/common/Menu.svg deleted file mode 100644 index 77f1cee126..0000000000 --- a/packages/ndla-icons/svg/common/Menu.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/packages/ndla-icons/svg/common/Person.svg b/packages/ndla-icons/svg/common/Person.svg deleted file mode 100644 index 06572c0114..0000000000 --- a/packages/ndla-icons/svg/common/Person.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/packages/ndla-icons/svg/common/PersonOutlined.svg b/packages/ndla-icons/svg/common/PersonOutlined.svg deleted file mode 100644 index 613ae6fcf7..0000000000 --- a/packages/ndla-icons/svg/common/PersonOutlined.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/packages/ndla-icons/svg/common/Pin.svg b/packages/ndla-icons/svg/common/Pin.svg deleted file mode 100644 index 1656b5f6b6..0000000000 --- a/packages/ndla-icons/svg/common/Pin.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/packages/ndla-icons/svg/common/Podcast.svg b/packages/ndla-icons/svg/common/Podcast.svg deleted file mode 100644 index fb081fc04d..0000000000 --- a/packages/ndla-icons/svg/common/Podcast.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/packages/ndla-icons/svg/common/Report.svg b/packages/ndla-icons/svg/common/Report.svg deleted file mode 100644 index 1ca3d96794..0000000000 --- a/packages/ndla-icons/svg/common/Report.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/packages/ndla-icons/svg/common/RssFeed.svg b/packages/ndla-icons/svg/common/RssFeed.svg deleted file mode 100644 index 0fa98802ae..0000000000 --- a/packages/ndla-icons/svg/common/RssFeed.svg +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/packages/ndla-icons/svg/common/Search.svg b/packages/ndla-icons/svg/common/Search.svg deleted file mode 100644 index 35c05ba165..0000000000 --- a/packages/ndla-icons/svg/common/Search.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/packages/ndla-icons/svg/common/Share.svg b/packages/ndla-icons/svg/common/Share.svg deleted file mode 100644 index d5fdb41b11..0000000000 --- a/packages/ndla-icons/svg/common/Share.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/packages/ndla-icons/svg/common/TagOutlined.svg b/packages/ndla-icons/svg/common/TagOutlined.svg deleted file mode 100644 index 72bc9b1b23..0000000000 --- a/packages/ndla-icons/svg/common/TagOutlined.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/packages/ndla-icons/svg/common/Time.svg b/packages/ndla-icons/svg/common/Time.svg deleted file mode 100644 index 23cd94fe69..0000000000 --- a/packages/ndla-icons/svg/common/Time.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/packages/ndla-icons/svg/common/Twitter.svg b/packages/ndla-icons/svg/common/Twitter.svg deleted file mode 100644 index 4e48b46c80..0000000000 --- a/packages/ndla-icons/svg/common/Twitter.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/packages/ndla-icons/svg/common/VolumeUp.svg b/packages/ndla-icons/svg/common/VolumeUp.svg deleted file mode 100644 index 00d29a61a1..0000000000 --- a/packages/ndla-icons/svg/common/VolumeUp.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/packages/ndla-icons/svg/common/WarningOutline.svg b/packages/ndla-icons/svg/common/WarningOutline.svg deleted file mode 100644 index 60244c2a94..0000000000 --- a/packages/ndla-icons/svg/common/WarningOutline.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/packages/ndla-icons/svg/common/Youtube.svg b/packages/ndla-icons/svg/common/Youtube.svg deleted file mode 100644 index cdda693963..0000000000 --- a/packages/ndla-icons/svg/common/Youtube.svg +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - diff --git a/packages/ndla-icons/svg/contentType/HorizontalMenu.svg b/packages/ndla-icons/svg/contentType/HorizontalMenu.svg deleted file mode 100644 index 6379f99757..0000000000 --- a/packages/ndla-icons/svg/contentType/HorizontalMenu.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/packages/ndla-icons/svg/contentType/LearningPath.svg b/packages/ndla-icons/svg/contentType/LearningPath.svg deleted file mode 100644 index 4d45236ba5..0000000000 --- a/packages/ndla-icons/svg/contentType/LearningPath.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/packages/ndla-icons/svg/contentType/SharedResource.svg b/packages/ndla-icons/svg/contentType/SharedResource.svg deleted file mode 100644 index c7164f95d2..0000000000 --- a/packages/ndla-icons/svg/contentType/SharedResource.svg +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/packages/ndla-icons/svg/contentType/Subject.svg b/packages/ndla-icons/svg/contentType/Subject.svg deleted file mode 100644 index 18c5b572fa..0000000000 --- a/packages/ndla-icons/svg/contentType/Subject.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/packages/ndla-icons/svg/contentType/SubjectMaterial.svg b/packages/ndla-icons/svg/contentType/SubjectMaterial.svg deleted file mode 100644 index 2d599a9904..0000000000 --- a/packages/ndla-icons/svg/contentType/SubjectMaterial.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/packages/ndla-icons/svg/contentType/TasksAndActivities.svg b/packages/ndla-icons/svg/contentType/TasksAndActivities.svg deleted file mode 100644 index 6614d51ea3..0000000000 --- a/packages/ndla-icons/svg/contentType/TasksAndActivities.svg +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/packages/ndla-icons/svg/editor/AlertCircle.svg b/packages/ndla-icons/svg/editor/AlertCircle.svg deleted file mode 100644 index 8eac4c2ec8..0000000000 --- a/packages/ndla-icons/svg/editor/AlertCircle.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - \ No newline at end of file diff --git a/packages/ndla-icons/svg/editor/AlignCenter.svg b/packages/ndla-icons/svg/editor/AlignCenter.svg deleted file mode 100644 index e4df7d1f2d..0000000000 --- a/packages/ndla-icons/svg/editor/AlignCenter.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/packages/ndla-icons/svg/editor/AlignLeft.svg b/packages/ndla-icons/svg/editor/AlignLeft.svg deleted file mode 100644 index 14b3f9950e..0000000000 --- a/packages/ndla-icons/svg/editor/AlignLeft.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/packages/ndla-icons/svg/editor/AlignRight.svg b/packages/ndla-icons/svg/editor/AlignRight.svg deleted file mode 100644 index 669d0a2af6..0000000000 --- a/packages/ndla-icons/svg/editor/AlignRight.svg +++ /dev/null @@ -1 +0,0 @@ - diff --git a/packages/ndla-icons/svg/editor/ArrowExpand.svg b/packages/ndla-icons/svg/editor/ArrowExpand.svg deleted file mode 100644 index f6b869f5ed..0000000000 --- a/packages/ndla-icons/svg/editor/ArrowExpand.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - \ No newline at end of file diff --git a/packages/ndla-icons/svg/editor/BlogPost.svg b/packages/ndla-icons/svg/editor/BlogPost.svg deleted file mode 100644 index a93f53eb84..0000000000 --- a/packages/ndla-icons/svg/editor/BlogPost.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - \ No newline at end of file diff --git a/packages/ndla-icons/svg/editor/Calendar.svg b/packages/ndla-icons/svg/editor/Calendar.svg deleted file mode 100644 index 91f54d9639..0000000000 --- a/packages/ndla-icons/svg/editor/Calendar.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/packages/ndla-icons/svg/editor/Camera.svg b/packages/ndla-icons/svg/editor/Camera.svg deleted file mode 100644 index 778122803d..0000000000 --- a/packages/ndla-icons/svg/editor/Camera.svg +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/packages/ndla-icons/svg/editor/Code.svg b/packages/ndla-icons/svg/editor/Code.svg deleted file mode 100644 index 7291b29bc0..0000000000 --- a/packages/ndla-icons/svg/editor/Code.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/packages/ndla-icons/svg/editor/Concept.svg b/packages/ndla-icons/svg/editor/Concept.svg deleted file mode 100644 index 69a91f8377..0000000000 --- a/packages/ndla-icons/svg/editor/Concept.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/packages/ndla-icons/svg/editor/Copyright.svg b/packages/ndla-icons/svg/editor/Copyright.svg deleted file mode 100644 index c3f9f2b214..0000000000 --- a/packages/ndla-icons/svg/editor/Copyright.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/packages/ndla-icons/svg/editor/Crop.svg b/packages/ndla-icons/svg/editor/Crop.svg deleted file mode 100644 index 94843f96da..0000000000 --- a/packages/ndla-icons/svg/editor/Crop.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/packages/ndla-icons/svg/editor/Done.svg b/packages/ndla-icons/svg/editor/Done.svg deleted file mode 100644 index 764e750df6..0000000000 --- a/packages/ndla-icons/svg/editor/Done.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/packages/ndla-icons/svg/editor/DragVertical.svg b/packages/ndla-icons/svg/editor/DragVertical.svg deleted file mode 100644 index 539a408d90..0000000000 --- a/packages/ndla-icons/svg/editor/DragVertical.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/packages/ndla-icons/svg/editor/Expandable.svg b/packages/ndla-icons/svg/editor/Expandable.svg deleted file mode 100644 index 9a1339e1d2..0000000000 --- a/packages/ndla-icons/svg/editor/Expandable.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/packages/ndla-icons/svg/editor/ExpandableBox.svg b/packages/ndla-icons/svg/editor/ExpandableBox.svg deleted file mode 100644 index d550aaa224..0000000000 --- a/packages/ndla-icons/svg/editor/ExpandableBox.svg +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/packages/ndla-icons/svg/editor/Eye.svg b/packages/ndla-icons/svg/editor/Eye.svg deleted file mode 100644 index f586d91e87..0000000000 --- a/packages/ndla-icons/svg/editor/Eye.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/packages/ndla-icons/svg/editor/FactBoxMaterial.svg b/packages/ndla-icons/svg/editor/FactBoxMaterial.svg deleted file mode 100644 index c9afe42524..0000000000 --- a/packages/ndla-icons/svg/editor/FactBoxMaterial.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/packages/ndla-icons/svg/editor/FocalPoint.svg b/packages/ndla-icons/svg/editor/FocalPoint.svg deleted file mode 100644 index e8c77a9d1c..0000000000 --- a/packages/ndla-icons/svg/editor/FocalPoint.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/packages/ndla-icons/svg/editor/FormatList.svg b/packages/ndla-icons/svg/editor/FormatList.svg deleted file mode 100644 index 726a067ceb..0000000000 --- a/packages/ndla-icons/svg/editor/FormatList.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/packages/ndla-icons/svg/editor/Framed.svg b/packages/ndla-icons/svg/editor/Framed.svg deleted file mode 100644 index 5803a2cb48..0000000000 --- a/packages/ndla-icons/svg/editor/Framed.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/packages/ndla-icons/svg/editor/Globe.svg b/packages/ndla-icons/svg/editor/Globe.svg deleted file mode 100644 index ff0309459e..0000000000 --- a/packages/ndla-icons/svg/editor/Globe.svg +++ /dev/null @@ -1,6 +0,0 @@ - - - - \ No newline at end of file diff --git a/packages/ndla-icons/svg/editor/Grid.svg b/packages/ndla-icons/svg/editor/Grid.svg deleted file mode 100644 index 283f8af1de..0000000000 --- a/packages/ndla-icons/svg/editor/Grid.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/packages/ndla-icons/svg/editor/H5P.svg b/packages/ndla-icons/svg/editor/H5P.svg deleted file mode 100644 index eeb3574b4b..0000000000 --- a/packages/ndla-icons/svg/editor/H5P.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/packages/ndla-icons/svg/editor/ImageSmall.svg b/packages/ndla-icons/svg/editor/ImageSmall.svg deleted file mode 100644 index 49d44511e6..0000000000 --- a/packages/ndla-icons/svg/editor/ImageSmall.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/packages/ndla-icons/svg/editor/ImageXsmall.svg b/packages/ndla-icons/svg/editor/ImageXsmall.svg deleted file mode 100644 index ecd368e2ca..0000000000 --- a/packages/ndla-icons/svg/editor/ImageXsmall.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/packages/ndla-icons/svg/editor/ImageXxSmall.svg b/packages/ndla-icons/svg/editor/ImageXxSmall.svg deleted file mode 100644 index cea93f45de..0000000000 --- a/packages/ndla-icons/svg/editor/ImageXxSmall.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/packages/ndla-icons/svg/editor/InProgress.svg b/packages/ndla-icons/svg/editor/InProgress.svg deleted file mode 100644 index b42aebcde2..0000000000 --- a/packages/ndla-icons/svg/editor/InProgress.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/packages/ndla-icons/svg/editor/Keyhole.svg b/packages/ndla-icons/svg/editor/Keyhole.svg deleted file mode 100644 index 6b0f26de28..0000000000 --- a/packages/ndla-icons/svg/editor/Keyhole.svg +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/packages/ndla-icons/svg/editor/Link.svg b/packages/ndla-icons/svg/editor/Link.svg deleted file mode 100644 index bb8b9ce956..0000000000 --- a/packages/ndla-icons/svg/editor/Link.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/packages/ndla-icons/svg/editor/ListCircle.svg b/packages/ndla-icons/svg/editor/ListCircle.svg deleted file mode 100644 index 23ac847ee1..0000000000 --- a/packages/ndla-icons/svg/editor/ListCircle.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/packages/ndla-icons/svg/editor/ListNumbered.svg b/packages/ndla-icons/svg/editor/ListNumbered.svg deleted file mode 100644 index f4ecf48eaa..0000000000 --- a/packages/ndla-icons/svg/editor/ListNumbered.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/packages/ndla-icons/svg/editor/Math.svg b/packages/ndla-icons/svg/editor/Math.svg deleted file mode 100644 index 0c5f865079..0000000000 --- a/packages/ndla-icons/svg/editor/Math.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/packages/ndla-icons/svg/editor/PlayBoxOutline.svg b/packages/ndla-icons/svg/editor/PlayBoxOutline.svg deleted file mode 100644 index b13441f0b8..0000000000 --- a/packages/ndla-icons/svg/editor/PlayBoxOutline.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/packages/ndla-icons/svg/editor/PresentationPlay.svg b/packages/ndla-icons/svg/editor/PresentationPlay.svg deleted file mode 100644 index 7a122481f5..0000000000 --- a/packages/ndla-icons/svg/editor/PresentationPlay.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/packages/ndla-icons/svg/editor/PublicDomain.svg b/packages/ndla-icons/svg/editor/PublicDomain.svg deleted file mode 100644 index 6a6ee2728f..0000000000 --- a/packages/ndla-icons/svg/editor/PublicDomain.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/packages/ndla-icons/svg/editor/RelatedArticle.svg b/packages/ndla-icons/svg/editor/RelatedArticle.svg deleted file mode 100644 index 312cb20e99..0000000000 --- a/packages/ndla-icons/svg/editor/RelatedArticle.svg +++ /dev/null @@ -1,2 +0,0 @@ - - \ No newline at end of file diff --git a/packages/ndla-icons/svg/editor/Restore.svg b/packages/ndla-icons/svg/editor/Restore.svg deleted file mode 100644 index cd1409cf8d..0000000000 --- a/packages/ndla-icons/svg/editor/Restore.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/packages/ndla-icons/svg/editor/Settings.svg b/packages/ndla-icons/svg/editor/Settings.svg deleted file mode 100644 index 67bdc175bb..0000000000 --- a/packages/ndla-icons/svg/editor/Settings.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/packages/ndla-icons/svg/editor/SquareAudio.svg b/packages/ndla-icons/svg/editor/SquareAudio.svg deleted file mode 100644 index 13e32df6b5..0000000000 --- a/packages/ndla-icons/svg/editor/SquareAudio.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/packages/ndla-icons/svg/editor/Star.svg b/packages/ndla-icons/svg/editor/Star.svg deleted file mode 100644 index 16ca46a7d1..0000000000 --- a/packages/ndla-icons/svg/editor/Star.svg +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/packages/ndla-icons/svg/editor/SubjectMatter.svg b/packages/ndla-icons/svg/editor/SubjectMatter.svg deleted file mode 100644 index 57ef52bce3..0000000000 --- a/packages/ndla-icons/svg/editor/SubjectMatter.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/packages/ndla-icons/svg/editor/TableMaterial.svg b/packages/ndla-icons/svg/editor/TableMaterial.svg deleted file mode 100644 index 961cc932f5..0000000000 --- a/packages/ndla-icons/svg/editor/TableMaterial.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/packages/ndla-icons/svg/editor/Taxonomy.svg b/packages/ndla-icons/svg/editor/Taxonomy.svg deleted file mode 100644 index 847cf173a4..0000000000 --- a/packages/ndla-icons/svg/editor/Taxonomy.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/packages/ndla-icons/svg/editor/Video.svg b/packages/ndla-icons/svg/editor/Video.svg deleted file mode 100644 index 2659ae32c6..0000000000 --- a/packages/ndla-icons/svg/editor/Video.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/packages/ndla-icons/svg/editor/Warning.svg b/packages/ndla-icons/svg/editor/Warning.svg deleted file mode 100644 index 09b7e53976..0000000000 --- a/packages/ndla-icons/svg/editor/Warning.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/packages/ndla-icons/tsconfig.build.json b/packages/ndla-icons/tsconfig.build.json deleted file mode 100644 index bdb104388c..0000000000 --- a/packages/ndla-icons/tsconfig.build.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "../../tsconfig.build.json", - "compilerOptions": { - "baseUrl": "./", - "declarationDir": "./lib", - "rootDir": "./src" - }, - "include": ["./src"] -} diff --git a/packages/ndla-image-search/package.json b/packages/ndla-image-search/package.json index b90811cb29..5fce57455f 100644 --- a/packages/ndla-image-search/package.json +++ b/packages/ndla-image-search/package.json @@ -1,6 +1,6 @@ { "name": "@ndla/image-search", - "version": "11.0.61-alpha.0", + "version": "11.0.70-alpha.0", "description": "A simple library for searching images from NDLA", "license": "GPL-3.0", "main": "lib/index.js", @@ -30,12 +30,12 @@ "@ndla/licenses": "workspace:^", "@ndla/primitives": "workspace:^", "@ndla/styled-system": "workspace:^", - "pretty-bytes": "^5.6.0" + "@ndla/util": "workspace:^" }, "devDependencies": { "@ndla/preset-panda": "workspace:^", "@ndla/types-backend": "^0.2.86", - "@pandacss/dev": "^0.46.0" + "@pandacss/dev": "^0.48.0" }, "peerDependencies": { "react": ">= 18", diff --git a/packages/ndla-image-search/src/ImageMeta.tsx b/packages/ndla-image-search/src/ImageMeta.tsx index ed88d0c549..41e22a18d7 100644 --- a/packages/ndla-image-search/src/ImageMeta.tsx +++ b/packages/ndla-image-search/src/ImageMeta.tsx @@ -6,19 +6,25 @@ * */ -import prettyBytes from "pretty-bytes"; +import { useMemo } from "react"; import { Text } from "@ndla/primitives"; -import { IImageDimensions } from "@ndla/types-backend/image-api"; +import type { IImageDimensions } from "@ndla/types-backend/image-api"; +import { humanFileSize } from "@ndla/util"; interface Props { contentType: string; fileSize: number; imageDimensions?: IImageDimensions; + locale: string; } -const ImageMeta = ({ contentType, fileSize, imageDimensions }: Props) => { +const ImageMeta = ({ contentType, fileSize, imageDimensions, locale }: Props) => { + const prettySize = useMemo(() => { + return humanFileSize(fileSize, locale); + }, [fileSize, locale]); + const dimensions = imageDimensions ? ` - ${imageDimensions.width}x${imageDimensions.height} px` : ""; - return {`${contentType} - ${prettyBytes(fileSize)}${dimensions}`}; + return {`${contentType} - ${prettySize}${dimensions}`}; }; export default ImageMeta; diff --git a/packages/ndla-image-search/src/ImageSearch.stories.tsx b/packages/ndla-image-search/src/ImageSearch.stories.tsx index 9f604631d6..cef07ab438 100644 --- a/packages/ndla-image-search/src/ImageSearch.stories.tsx +++ b/packages/ndla-image-search/src/ImageSearch.stories.tsx @@ -6,8 +6,8 @@ * */ -import { Meta, StoryFn } from "@storybook/react"; -import { IImageMetaInformationV3, ISearchResultV3 } from "@ndla/types-backend/image-api"; +import type { Meta, StoryFn } from "@storybook/react"; +import type { IImageMetaInformationV3, ISearchResultV3 } from "@ndla/types-backend/image-api"; import ImageSearch from "./ImageSearch"; export default { diff --git a/packages/ndla-image-search/src/ImageSearch.tsx b/packages/ndla-image-search/src/ImageSearch.tsx index d6be09e375..a10f926e9d 100644 --- a/packages/ndla-image-search/src/ImageSearch.tsx +++ b/packages/ndla-image-search/src/ImageSearch.tsx @@ -6,8 +6,8 @@ * */ -import { ChangeEvent, ReactNode, KeyboardEvent, useEffect, useState, FormEvent } from "react"; -import { ArrowLeftShortLine, ArrowRightShortLine, SearchLine } from "@ndla/icons/common"; +import { type ChangeEvent, type ReactNode, type KeyboardEvent, useEffect, useState } from "react"; +import { ArrowLeftShortLine, ArrowRightShortLine, SearchLine } from "@ndla/icons"; import { Button, IconButton, @@ -19,10 +19,10 @@ import { PaginationPrevTrigger, PaginationRoot, Text, - PaginationRootProps, + type PaginationRootProps, } from "@ndla/primitives"; import { styled } from "@ndla/styled-system/jsx"; -import { IImageMetaInformationV3, ISearchResultV3, ISearchParams } from "@ndla/types-backend/image-api"; +import type { IImageMetaInformationV3, ISearchResultV3, ISearchParams } from "@ndla/types-backend/image-api"; import ImageSearchResult from "./ImageSearchResult"; const ImageSearchWrapper = styled("div", { @@ -103,7 +103,7 @@ interface Props { onImageSelect: (image: IImageMetaInformationV3) => void; searchImages: (query: string | undefined, page: number | undefined) => Promise; fetchImage: (id: number) => Promise; - onError: (err: any) => void; + onError?: (err: any) => void; locale: string; noResults?: ReactNode; checkboxAction?: (image: IImageMetaInformationV3) => void; @@ -141,7 +141,7 @@ const ImageSearch = ({ setSelectedImage(result); }) .catch((err) => { - onError(err); + onError?.(err); }); } }; @@ -168,7 +168,7 @@ const ImageSearch = ({ setSearching(false); }) .catch((err) => { - onError(err); + onError?.(err); setSearching(false); }); }; @@ -211,7 +211,7 @@ const ImageSearch = ({ - {noResultsFound && noResults} + {!!noResultsFound && noResults} {searchResult?.results.map((image) => ( {!!image.tags.tags.length && ( @@ -202,7 +201,7 @@ const PreviewImage = ({ id, image, onSelectImage, showCheckbox, translations, lo - {showCheckbox && ( + {!!showCheckbox && ( setSaveAsMetaImage((prev) => !prev)}> diff --git a/packages/ndla-licenses/package.json b/packages/ndla-licenses/package.json index 86a56a3c9b..5c0fac2461 100644 --- a/packages/ndla-licenses/package.json +++ b/packages/ndla-licenses/package.json @@ -1,6 +1,6 @@ { "name": "@ndla/licenses", - "version": "8.0.3-alpha.0", + "version": "8.0.5-alpha.0", "description": "A simple library for retrieving license information for NDLA", "license": "GPL-3.0", "main": "lib/index.js", diff --git a/packages/ndla-licenses/src/__tests__/CCRel-test.ts b/packages/ndla-licenses/src/__tests__/CCRel-test.ts index abf285c817..ba9f6c26aa 100644 --- a/packages/ndla-licenses/src/__tests__/CCRel-test.ts +++ b/packages/ndla-licenses/src/__tests__/CCRel-test.ts @@ -16,7 +16,7 @@ test("microData/getResourceTypeNamespace when type video should return video nam }); test("microData/getResourceTypeNamespace when unknown type should return null", () => { - //@ts-expect-error + //@ts-expect-error - This tests for an unknown type const namespace = getResourceTypeNamespace("UNKNOWN"); expect(namespace).toBe(null); }); diff --git a/packages/ndla-licenses/src/getCopyString.ts b/packages/ndla-licenses/src/getCopyString.ts index f982c74dc7..f1773e2306 100644 --- a/packages/ndla-licenses/src/getCopyString.ts +++ b/packages/ndla-licenses/src/getCopyString.ts @@ -7,7 +7,7 @@ */ import { getLicenseByAbbreviation } from "."; -import { Contributor, CopyrightType } from "./contributorTypes"; +import type { Contributor, CopyrightType } from "./contributorTypes"; export const getLicenseCredits = (copyright?: { creators?: Contributor[]; diff --git a/packages/ndla-licenses/src/licenseRights.ts b/packages/ndla-licenses/src/licenseRights.ts index 05853b14bd..767ed8a458 100644 --- a/packages/ndla-licenses/src/licenseRights.ts +++ b/packages/ndla-licenses/src/licenseRights.ts @@ -6,7 +6,7 @@ * */ -import { isLocale, Locale, RightLocaleInfo, RightType } from "./types"; +import { isLocale, type Locale, type RightLocaleInfo, type RightType } from "./types"; // License rights export const BY = "by"; // Attribution diff --git a/packages/ndla-licenses/src/licenses.ts b/packages/ndla-licenses/src/licenses.ts index f089244b46..606a01be83 100644 --- a/packages/ndla-licenses/src/licenses.ts +++ b/packages/ndla-licenses/src/licenses.ts @@ -7,7 +7,7 @@ */ import { BY, SA, NC, ND, PD, CC0, COPYRIGHTED, CC, NA, VERSION } from "./licenseRights"; -import { getLocaleOrDefault, LicenseType, LicenseLocaleType, Locale } from "./types"; +import { getLocaleOrDefault, type LicenseType, type LicenseLocaleType, type Locale } from "./types"; const freeUseNB = "Offentlig eie"; const freeUseNN = "Offentleg eige"; diff --git a/packages/ndla-licenses/src/modelRelease.ts b/packages/ndla-licenses/src/modelRelease.ts index f1acb90be1..4027abbdb1 100644 --- a/packages/ndla-licenses/src/modelRelease.ts +++ b/packages/ndla-licenses/src/modelRelease.ts @@ -6,7 +6,7 @@ * */ -import { getLocaleOrDefault, Locale } from "./types"; +import { getLocaleOrDefault, type Locale } from "./types"; // TODO: Try to improve type safety diff --git a/packages/ndla-modal/README.md b/packages/ndla-modal/README.md deleted file mode 100644 index 469e54ceab..0000000000 --- a/packages/ndla-modal/README.md +++ /dev/null @@ -1,19 +0,0 @@ -# ndla-modal - -Modal component - -## Installation - -```sh -$ yarn ndla-modal -``` - -## Usage - -### Modal with logic for scroll lock and focus-trap. - -```js -import Modal from "@ndla/modal"; - -; -``` diff --git a/packages/ndla-modal/package.json b/packages/ndla-modal/package.json deleted file mode 100644 index ed1b59ce27..0000000000 --- a/packages/ndla-modal/package.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "name": "@ndla/modal", - "version": "8.0.42-alpha.0", - "description": "A smart Modal NDLA", - "license": "GPL-3.0", - "main": "lib/index.js", - "module": "es/index.js", - "types": "lib/index.d.ts", - "sideEffects": false, - "scripts": { - "build": "node ../../scripts/build.js package", - "build:types": "tsc -p tsconfig.build.json", - "prepublish": "yarn build:types" - }, - "repository": { - "type": "git", - "url": "https://github.com/NDLANO/frontend-packages.git/ndla-ui/" - }, - "keywords": [ - "ndla" - ], - "author": "ndla@knowit.no", - "files": [ - "lib", - "es" - ], - "dependencies": { - "@ndla/core": "^5.0.2", - "@ndla/icons": "^8.0.42-alpha.0", - "@radix-ui/react-dialog": "^1.0.5" - }, - "peerDependencies": { - "@emotion/react": "^11.10.4", - "@emotion/styled": "^11.10.4", - "react": ">= 16.8.0", - "react-dom": ">= 16.8.0", - "react-i18next": "^14.1.1" - }, - "publishConfig": { - "access": "public" - }, - "gitHead": "c2e2628a2dddfcca03f25548474243ffcd13595e" -} diff --git a/packages/ndla-modal/src/Drawer.stories.tsx b/packages/ndla-modal/src/Drawer.stories.tsx deleted file mode 100644 index 0d7ad89366..0000000000 --- a/packages/ndla-modal/src/Drawer.stories.tsx +++ /dev/null @@ -1,81 +0,0 @@ -/** - * Copyright (c) 2023-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ - -import { useEffect, useState } from "react"; -import { Meta, StoryFn } from "@storybook/react"; -import { ButtonV2 } from "@ndla/button"; -import Drawer from "./Drawer"; -import { Modal, ModalTrigger } from "./Modal"; -import ModalBody from "./ModalBody"; -import ModalCloseButton from "./ModalCloseButton"; -import ModalHeader from "./ModalHeader"; -import ModalTitle from "./ModalTitle"; - -const meta: Meta = { - title: "Components/Drawer", - tags: ["autodocs"], - component: Drawer, - parameters: { - docs: { - controls: { - include: ["animation", "animationDuration", "size", "position", "modalMargin", "expands"], - }, - }, - }, - args: { - animationDuration: 300, - size: "normal", - modalMargin: "none", - expands: false, - }, -}; - -export default meta; - -export const Uncontrolled: StoryFn = ({ ...args }) => { - return ( - - - Åpne - - - - Opened - - - - - ); -}; - -export const Controlled: StoryFn = () => { - const [isOpen, setIsOpen] = useState(false); - - useEffect(() => { - if (isOpen) { - setTimeout(() => setIsOpen(false), 10000); - } - }, [isOpen]); - - return ( - - - Åpne - - - - Opened - - - -

    This modal will be closed by an external useEffect in 10 seconds

    - - - - ); -}; diff --git a/packages/ndla-modal/src/Drawer.tsx b/packages/ndla-modal/src/Drawer.tsx deleted file mode 100644 index 499e5f32f9..0000000000 --- a/packages/ndla-modal/src/Drawer.tsx +++ /dev/null @@ -1,23 +0,0 @@ -/** - * Copyright (c) 2022-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ - -import { ModalContent } from "./Modal"; -import { ModalSizeType, DrawerPosition, ModalSize, ModalContentProps } from "./types"; - -interface Props extends Omit { - size?: ModalSize; - position?: DrawerPosition; -} - -const Drawer = ({ size = "normal", position = "left", ...rest }: Props) => { - const modalSize: ModalSizeType = - position === "bottom" || position === "top" ? { width: "full", height: size } : { height: "full", width: size }; - return ; -}; - -export default Drawer; diff --git a/packages/ndla-modal/src/Modal.stories.tsx b/packages/ndla-modal/src/Modal.stories.tsx deleted file mode 100644 index 9a682fc820..0000000000 --- a/packages/ndla-modal/src/Modal.stories.tsx +++ /dev/null @@ -1,118 +0,0 @@ -/** - * Copyright (c) 2023-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ - -import { useEffect, useState } from "react"; -import { Meta, StoryFn } from "@storybook/react"; -import { ButtonV2 } from "@ndla/button"; -import { Modal, ModalContent, ModalTrigger } from "./Modal"; -import ModalBody from "./ModalBody"; -import ModalCloseButton from "./ModalCloseButton"; -import ModalHeader from "./ModalHeader"; -import ModalTitle from "./ModalTitle"; -import { ModalContentProps } from "./types"; - -const meta: Meta = { - title: "Components/Modal", - tags: ["autodocs"], - component: ModalContent, - parameters: { - docs: { - controls: { - include: ["animation", "animationDuration", "size", "position", "modalMargin", "expands"], - }, - }, - }, - args: { - animationDuration: 300, - animation: "zoom", - size: "normal", - position: "center", - modalMargin: "none", - expands: false, - }, -}; - -export default meta; - -export const Story: StoryFn = (args) => { - return ( - - - Åpne - - - - Tittel - - - Hello - - - ); -}; - -Story.storyName = "Modal"; - -export const Controlled: StoryFn = () => { - const [isOpen, setIsOpen] = useState(false); - - useEffect(() => { - if (isOpen) { - setTimeout(() => setIsOpen(false), 10000); - } - }, [isOpen]); - - return ( - - - Åpne - - - - Opened - - - -

    This modal will be closed by an external useEffect in 10 seconds

    -
    -
    -
    - ); -}; - -export const Uncontrolled: StoryFn = () => { - return ( - - - Åpne - - - - Opened - - - - - ); -}; - -export const CustomHeightAndWidth: StoryFn = () => { - return ( - - - Åpne - - - - Opened - - - - - ); -}; diff --git a/packages/ndla-modal/src/Modal.tsx b/packages/ndla-modal/src/Modal.tsx deleted file mode 100644 index 55be61d4bb..0000000000 --- a/packages/ndla-modal/src/Modal.tsx +++ /dev/null @@ -1,192 +0,0 @@ -/** - * Copyright (c) 2023-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ -import { CSSProperties, ReactNode, Ref, forwardRef, useMemo } from "react"; -import styled from "@emotion/styled"; -import { Content, DialogProps, DialogTriggerProps, Overlay, Portal, Root, Trigger } from "@radix-ui/react-dialog"; -import { breakpoints, colors, mq, spacing, stackOrder } from "@ndla/core"; -import { modalAnimations, overlayAnimations, positionStyles, sizeStyles } from "./modalStyles"; -import { ModalContentProps } from "./types"; - -const StyledOverlay = styled.div` - position: fixed; - inset: 0; - background: rgba(1, 1, 1, 0.3); - z-index: ${stackOrder.modal - stackOrder.offsetSingle}; - ${overlayAnimations}; - animation-duration: var(--duration); - animation-timing-function: ease-in-out; - &[data-state="open"] { - animation-name: overlayFadeIn; - } - &[data-state="closed"] { - animation-name: overlayFadeOut; - } -`; - -const DialogContent = styled(Content)` - --margin: 0px; - position: fixed; - inset: 0; - margin: auto; - z-index: ${stackOrder.modal}; - height: min-content; - max-height: 85%; - max-width: 95%; - overflow-y: auto; - background-color: ${colors.white}; - ${mq.range({ from: breakpoints.tablet })} { - &[data-margin="small"] { - --margin: ${spacing.normal}; - } - } - padding-bottom: env(safe-area-inset-bottom); - padding-top: env(safe-area-inset-top); - padding-left: env(safe-area-inset-left); - padding-right: env(safe-area-inset-right); - ${modalAnimations}; - animation-duration: var(--duration); - animation-fill-mode: forwards; - animation-timing-function: ease-in-out; - - ${positionStyles}; - ${sizeStyles}; - &[data-expands="true"] { - width: min-content; - height: min-content; - max-width: 100%; - max-height: 100%; - } - &[data-animation-name="fade"] { - &[data-state="open"] { - animation-name: modalFadeIn; - } - &[data-state="closed"] { - animation-name: modalFadeOut; - } - } - &[data-animation-name="zoom"] { - &[data-state="open"] { - animation-name: modalZoomIn; - } - &[data-state="closed"] { - animation-name: modalZoomOut; - } - } - &[data-animation-name="subtle"] { - &[data-state="open"] { - animation-name: modalSubtleIn; - } - &[data-state="closed"] { - animation-name: modalSubtleOut; - } - } - &[data-animation-name="slideIn"][data-position="top"] { - &[data-state="open"] { - animation-name: modalSlideTopIn; - } - &[data-state="closed"] { - animation-name: modalSlideTopOut; - } - } - &[data-animation-name="slideIn"][data-position="right"] { - &[data-state="open"] { - animation-name: modalSlideRightIn; - } - &[data-state="closed"] { - animation-name: modalSlideRightOut; - } - } - &[data-animation-name="slideIn"][data-position="bottom"] { - &[data-state="open"] { - animation-name: modalSlideBottomIn; - } - &[data-state="closed"] { - animation-name: modalSlideBottomOut; - } - } - &[data-animation-name="slideIn"][data-position="left"] { - &[data-state="open"] { - animation-name: modalSlideLeftIn; - } - &[data-state="closed"] { - animation-name: modalSlideLeftOut; - } - } - ${mq.range({ until: breakpoints.tablet })} { - min-width: 100%; - min-height: 100%; - } -`; - -const StyledDialog = styled(Root)` - position: fixed; - inset: 0; - width: 100vw; - z-index: ${stackOrder.modal}; -`; - -export const Modal = ({ children, ...rest }: DialogProps) => { - return {children}; -}; - -interface ModalTriggerProps extends DialogTriggerProps { - children: ReactNode; -} - -export const ModalTrigger = forwardRef(({ children, ...rest }: ModalTriggerProps, ref: Ref) => { - return ( - - {children} - - ); -}); - -export const ModalContent = ({ - children, - modalMargin = "small", - position = "center", - size: sizeProp = "normal", - animationDuration = 400, - animation = "zoom", - expands, - forceOverlay, - ...rest -}: ModalContentProps) => { - const styledVars = useMemo( - () => ({ "--duration": `${animationDuration}ms` }) as unknown as CSSProperties, - [animationDuration], - ); - const { size, height, width }: Record = useMemo(() => { - return typeof sizeProp === "string" ? { size: sizeProp } : sizeProp; - }, [sizeProp]); - - return ( - - {forceOverlay ? ( - - ) : ( - - - - )} - - {children} - - - ); -}; diff --git a/packages/ndla-modal/src/ModalBody.tsx b/packages/ndla-modal/src/ModalBody.tsx deleted file mode 100644 index 2570abeb45..0000000000 --- a/packages/ndla-modal/src/ModalBody.tsx +++ /dev/null @@ -1,67 +0,0 @@ -/** - * Copyright (c) 2016-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ - -import { ReactNode } from "react"; -import styled from "@emotion/styled"; -import { spacing, breakpoints, mq, colors } from "@ndla/core"; - -const StyledModalBody = styled.div` - &.slide-in-left { - animation-name: fadeInLeft; - animation-duration: 500ms; - } - padding: ${spacing.normal} ${spacing.normal} ${spacing.large} ${spacing.normal}; - &.no-padding { - padding: 0 !important; - } - &.no-padding-buttom { - padding-bottom: 0 !important; - } - &.no-side-padding-mobile { - ${mq.range({ until: breakpoints.mobileWide })} { - padding-left: 0 !important; - padding-right: 0 !important; - } - } - h2 { - margin: ${spacing.large} 0 0; - + p { - margin-top: ${spacing.small} / 2; - } - } - ol { - padding: 0; - > li { - margin-left: ${spacing.large} + ${spacing.normal}; - } - } - hr { - position: static; - border: 0; - height: 1px; - background: ${colors.brand.tertiary}; - margin: 0; - &:before { - content: none; - } - } -`; - -interface Props { - children?: ReactNode; - modifier?: string; - className?: string; -} - -const ModalBody = ({ children, modifier, className }: Props) => ( - - {children} - -); - -export default ModalBody; diff --git a/packages/ndla-modal/src/ModalCloseButton.tsx b/packages/ndla-modal/src/ModalCloseButton.tsx deleted file mode 100644 index 3e0abad802..0000000000 --- a/packages/ndla-modal/src/ModalCloseButton.tsx +++ /dev/null @@ -1,50 +0,0 @@ -/** - * Copyright (c) 2016-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ - -import { ReactNode } from "react"; -import { useTranslation } from "react-i18next"; -import styled from "@emotion/styled"; - -import { Close } from "@radix-ui/react-dialog"; -import { colors } from "@ndla/core"; -import { CloseLine } from "@ndla/icons/action"; - -interface Props { - children?: ReactNode; - title?: string; -} - -const StyledButton = styled.button` - background-color: transparent; - border: none; - display: flex; - color: ${colors.brand.primary}; - cursor: pointer; - &:hover { - color: ${colors.brand.grey}; - } -`; - -const StyledCross = styled(CloseLine)` - height: 24px; - width: 24px; -`; - -const ModalClose = ({ children, title }: Props) => { - const { t } = useTranslation(); - if (children) return {children}; - return ( - - - - - - ); -}; - -export default ModalClose; diff --git a/packages/ndla-modal/src/ModalHeader.tsx b/packages/ndla-modal/src/ModalHeader.tsx deleted file mode 100644 index 4f725eb12c..0000000000 --- a/packages/ndla-modal/src/ModalHeader.tsx +++ /dev/null @@ -1,38 +0,0 @@ -/** - * Copyright (c) 2022-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ - -import { HTMLProps, ReactNode } from "react"; -import styled from "@emotion/styled"; -import { colors, fonts, spacing } from "@ndla/core"; - -interface Props extends Omit, "as"> { - children?: ReactNode; -} - -const Wrapper = styled.div` - display: flex; - flex-direction: row; - justify-content: flex-end; - padding: ${spacing.normal}; - h1 { - margin: 0; - flex-grow: 1; - font-weight: ${fonts.weight.bold}; - ${fonts.sizes("22px", 1.2)}; - color: ${colors.text.primary}; - } -`; -const ModalHeader = ({ children, ...rest }: Props) => { - return ( - - {children} - - ); -}; - -export default ModalHeader; diff --git a/packages/ndla-modal/src/ModalTitle.tsx b/packages/ndla-modal/src/ModalTitle.tsx deleted file mode 100644 index 8f18925f08..0000000000 --- a/packages/ndla-modal/src/ModalTitle.tsx +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Copyright (c) 2023-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ - -import { ElementType } from "react"; -import { Title, DialogTitleProps } from "@radix-ui/react-dialog"; - -interface Props { - as?: ElementType; -} - -const ModalTitle = ({ as: Element = "h1", ...rest }: DialogTitleProps & Props) => { - return ( - - <Element {...rest} /> - - ); -}; - -export default ModalTitle; diff --git a/packages/ndla-modal/src/index.ts b/packages/ndla-modal/src/index.ts deleted file mode 100644 index 9c25c6b1c9..0000000000 --- a/packages/ndla-modal/src/index.ts +++ /dev/null @@ -1,23 +0,0 @@ -/** - * Copyright (c) 2016-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ - -export { default as ModalBody } from "./ModalBody"; -export { default as ModalCloseButton } from "./ModalCloseButton"; -export { default as ModalHeader } from "./ModalHeader"; -export { default as Drawer } from "./Drawer"; -export { Modal, ModalTrigger, ModalContent } from "./Modal"; -export { default as ModalTitle } from "./ModalTitle"; -export type { - ModalSize, - ModalContentProps, - ModalPosition, - ModalSizeType, - ModalAnimation, - ModalMargin, - DrawerPosition, -} from "./types"; diff --git a/packages/ndla-modal/src/modalStyles.ts b/packages/ndla-modal/src/modalStyles.ts deleted file mode 100644 index d028addeb8..0000000000 --- a/packages/ndla-modal/src/modalStyles.ts +++ /dev/null @@ -1,234 +0,0 @@ -/** - * Copyright (c) 2022-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ - -import { css } from "@emotion/react"; - -export const positionStyles = css` - &[data-position="top"] { - top: var(--margin); - bottom: unset; - } - &[data-position="bottom"] { - bottom: var(--margin); - top: unset; - } - &[data-position="left"] { - left: var(--margin); - right: unset; - } - &[data-position="right"] { - right: var(--margin); - left: unset; - } -`; - -export const sizeStyles = css` - &[data-size="full"] { - min-height: 100%; - min-width: 100%; - inset: 0; - } - &[data-width="xsmall"], - &[data-size="xsmall"] { - width: 300px; - } - &[data-width="small"], - &[data-size="small"] { - width: 500px; - } - &[data-width="normal"], - &[data-size="normal"] { - width: 700px; - } - &[data-width="large"], - &[data-size="large"] { - width: 1100px; - } - &[data-width="full"] { - width: 100%; - min-width: 100%; - left: 0; - right: 0; - } - &[data-height="xsmall"] { - height: 300px; - } - &[data-height="small"] { - height: 500px; - } - &[data-height="normal"] { - height: 700px; - } - &[data-height="large"] { - height: 1100px; - } - &[data-height="full"] { - height: 100%; - min-height: 100%; - top: 0; - bottom: 0; - } -`; - -export const overlayAnimations = css` - @keyframes overlayFadeIn { - from { - opacity: 0; - } - to { - opacity: 1; - } - } - @keyframes overlayFadeOut { - from { - opacity: 1; - } - to { - opacity: 0; - } - } -`; - -export const modalAnimations = css` - @keyframes modalFadeIn { - from { - opacity: 0; - } - to { - opacity: 1; - } - } - @keyframes modalFadeOut { - from { - opacity: 1; - } - to { - opacity: 0; - } - } - @keyframes modalZoomIn { - from { - opacity: 0; - transform: translateY(40px); - } - to { - opacity: 1; - transform: translateY(0px); - } - } - @keyframes modalZoomOut { - from { - opacity: 1; - transform: translateY(0px); - } - to { - opacity: 0; - transform: translateY(40px); - } - } - @keyframes modalSubtleIn { - from { - opacity: 0; - transform: translateY(13px); - } - to { - opacity: 1; - transform: translateY(0px); - } - } - @keyframes modalSubtleOut { - from { - opacity: 1; - transform: translateY(0px); - } - to { - opacity: 0; - transform: translateY(13px); - } - } - @keyframes modalSlideLeftIn { - from { - opacity: 0; - transform: translateX(-100%); - } - to { - opacity: 1; - transform: translateX(0%); - } - } - @keyframes modalSlideLeftOut { - from { - opacity: 1; - transform: translateX(0%); - } - to { - opacity: 0; - transform: translateX(-100%); - } - } - @keyframes modalSlideRightIn { - from { - opacity: 0; - transform: translateX(100%); - } - to { - opacity: 1; - transform: translateX(0%); - } - } - @keyframes modalSlideRightOut { - from { - opacity: 1; - transform: translateX(0%); - } - to { - opacity: 0; - transform: translateX(-100%); - } - } - @keyframes modalSlideTopIn { - from { - opacity: 0; - transform: translateY(-100%); - } - to { - opacity: 1; - transform: translateY(0%); - } - } - @keyframes modalSlideTopOut { - from { - opacity: 1; - transform: translateY(0%); - } - to { - opacity: 0; - transform: translateY(-100%); - } - } - @keyframes modalSlideBottomIn { - from { - opacity: 0; - transform: translateY(100%); - } - to { - opacity: 1; - transform: translateY(0%); - } - } - @keyframes modalSlideBottomOut { - from { - opacity: 1; - transform: translateY(0%); - } - to { - opacity: 0; - transform: translateY(100%); - } - } -`; diff --git a/packages/ndla-modal/src/types.ts b/packages/ndla-modal/src/types.ts deleted file mode 100644 index f69c48ef48..0000000000 --- a/packages/ndla-modal/src/types.ts +++ /dev/null @@ -1,46 +0,0 @@ -/** - * Copyright (c) 2022-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ - -import { ReactNode } from "react"; -import { keyframes } from "@emotion/react"; -import { DialogContentProps } from "@radix-ui/react-dialog"; - -export type ModalSize = "xsmall" | "small" | "normal" | "large" | "full"; -export type ModalSizeType = ModalSize | { width: ModalSize; height: ModalSize }; -export type ModalPosition = "top" | "center" | "bottom" | "left" | "right"; -export type ModalMargin = "none" | "small"; - -export type DrawerPosition = "top" | "bottom" | "left" | "right"; - -export interface ModalContentProps extends DialogContentProps { - animation?: ModalAnimation; - animationDuration?: number; - children: ReactNode; - /** - * Can be either a string or an object with height and width properties. - * Allow string values are `xsmall | small | normal | large | full`. This applies both - * for the string variant and the object variant - */ - size?: ModalSizeType; - position?: ModalPosition; - modalMargin?: ModalMargin; - expands?: boolean; - forceOverlay?: boolean; -} - -export interface Animation { - in: ReturnType; - out: ReturnType; -} - -export interface DirectionalAnimation extends Partial> { - default: Animation; - type: "directional"; -} - -export type ModalAnimation = "fade" | "zoom" | "subtle" | "slideIn"; diff --git a/packages/ndla-modal/tsconfig.build.json b/packages/ndla-modal/tsconfig.build.json deleted file mode 100644 index bdb104388c..0000000000 --- a/packages/ndla-modal/tsconfig.build.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "../../tsconfig.build.json", - "compilerOptions": { - "baseUrl": "./", - "declarationDir": "./lib", - "rootDir": "./src" - }, - "include": ["./src"] -} diff --git a/packages/ndla-scripts/.eslintrc.cjs b/packages/ndla-scripts/.eslintrc.cjs deleted file mode 100644 index d097ca8675..0000000000 --- a/packages/ndla-scripts/.eslintrc.cjs +++ /dev/null @@ -1,8 +0,0 @@ -module.exports = { - env: { - node: true, - }, - rules: { - 'no-console': 0, - }, -}; diff --git a/packages/ndla-scripts/package.json b/packages/ndla-scripts/package.json index 09fbef338d..99d7e38d3c 100644 --- a/packages/ndla-scripts/package.json +++ b/packages/ndla-scripts/package.json @@ -1,6 +1,6 @@ { "name": "@ndla/scripts", - "version": "2.1.2", + "version": "2.1.4", "description": "Scripts for ndla.", "license": "GPL-3.0", "exports": "./src/index.js", diff --git a/packages/ndla-scripts/src/run-script.js b/packages/ndla-scripts/src/run-script.js index 4c3a859a15..e8833a6715 100644 --- a/packages/ndla-scripts/src/run-script.js +++ b/packages/ndla-scripts/src/run-script.js @@ -6,6 +6,8 @@ * */ +/* eslint-disable no-console */ + import { join, dirname } from "path"; import spawn from "cross-spawn"; import glob from "glob"; diff --git a/packages/ndla-scripts/src/scripts/vercel-github.js b/packages/ndla-scripts/src/scripts/vercel-github.js index 84c14e37ae..ceb2ff47d8 100644 --- a/packages/ndla-scripts/src/scripts/vercel-github.js +++ b/packages/ndla-scripts/src/scripts/vercel-github.js @@ -11,6 +11,8 @@ * Forked/Inspired by: https://github.com/kentcdodds/glamorous-website/blob/master/other/now-travis */ +/* eslint-disable no-console */ + import { inspect } from "util"; import spawn from "cross-spawn-promise"; import normalizeUrl from "normalize-url"; diff --git a/packages/ndla-tracker/.eslintrc.js b/packages/ndla-tracker/.eslintrc.js deleted file mode 100644 index 3c2d19c4a9..0000000000 --- a/packages/ndla-tracker/.eslintrc.js +++ /dev/null @@ -1,16 +0,0 @@ -/** - * Copyright (c) 2018-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ - -module.exports = { - env: { - node: true, - }, - rules: { - "no-restricted-globals": 0, - }, -}; diff --git a/packages/ndla-tracker/package.json b/packages/ndla-tracker/package.json index a4716069b7..f4d52ede6f 100644 --- a/packages/ndla-tracker/package.json +++ b/packages/ndla-tracker/package.json @@ -1,6 +1,6 @@ { "name": "@ndla/tracker", - "version": "5.0.11-alpha.0", + "version": "5.0.14-alpha.0", "description": "A simple library for tracking NDLA applications", "license": "GPL-3.0", "main": "lib/index.js", @@ -28,15 +28,14 @@ "types" ], "peerDependencies": { - "react": ">= 16.8.0", - "react-helmet-async": "^1.3.0", + "react": ">= 19.0.0", "react-router-dom": ">= 5.0.0" }, "publishConfig": { "access": "public" }, "dependencies": { - "@ndla/util": "^5.0.0-alpha.0", + "@ndla/util": "^5.0.3-alpha.0", "tiny-warning": "^1.0.3" } } diff --git a/packages/ndla-tracker/src/HelmetWithTracker.tsx b/packages/ndla-tracker/src/HelmetWithTracker.tsx index 5dc049b6df..00457d7bc0 100644 --- a/packages/ndla-tracker/src/HelmetWithTracker.tsx +++ b/packages/ndla-tracker/src/HelmetWithTracker.tsx @@ -6,8 +6,7 @@ * */ -import { ReactNode, useEffect } from "react"; -import { Helmet } from "react-helmet-async"; +import { type ReactNode, useEffect } from "react"; import warning from "tiny-warning"; import { usePrevious } from "@ndla/util"; import useTracker from "./useTracker"; @@ -38,7 +37,12 @@ const HelmetWithTracker = ({ title, children }: Props) => { } }, [hasTracked, previousTitle, title, trackPageView]); - return {children}; + return ( + <> + {title} + {children} + + ); }; export default HelmetWithTracker; diff --git a/packages/ndla-ui/package.json b/packages/ndla-ui/package.json index 451751a3ce..ac28371bdc 100644 --- a/packages/ndla-ui/package.json +++ b/packages/ndla-ui/package.json @@ -1,6 +1,6 @@ { "name": "@ndla/ui", - "version": "56.0.69-alpha.0", + "version": "56.0.78-alpha.0", "description": "UI component library for NDLA", "license": "GPL-3.0", "main": "lib/index.js", @@ -32,14 +32,14 @@ "types" ], "dependencies": { - "@ndla/core": "^5.0.2", - "@ndla/icons": "^8.0.42-alpha.0", - "@ndla/licenses": "^8.0.3-alpha.0", + "@ndla/core": "^5.0.3", + "@ndla/icons": "^8.0.48-alpha.0", + "@ndla/licenses": "^8.0.5-alpha.0", "@ndla/primitives": "workspace:^", - "@ndla/safelink": "^7.0.54-alpha.0", + "@ndla/safelink": "^7.0.63-alpha.0", "@ndla/styled-system": "workspace:^", - "@ndla/util": "^5.0.0-alpha.0", - "html-react-parser": "^5.1.8", + "@ndla/util": "^5.0.3-alpha.0", + "html-react-parser": "^5.1.19", "i18next-browser-languagedetector": "^7.1.0" }, "peerDependencies": { @@ -52,8 +52,8 @@ "devDependencies": { "@ndla/preset-panda": "workspace:^", "@ndla/types-backend": "^0.2.86", - "@ndla/types-embed": "^5.0.4-alpha.0", - "@pandacss/dev": "^0.46.0" + "@ndla/types-embed": "^5.0.5-alpha.0", + "@pandacss/dev": "^0.48.0" }, "publishConfig": { "access": "public" diff --git a/packages/ndla-ui/src/Article/Article.tsx b/packages/ndla-ui/src/Article/Article.tsx index 6285f283d8..54087ca2eb 100644 --- a/packages/ndla-ui/src/Article/Article.tsx +++ b/packages/ndla-ui/src/Article/Article.tsx @@ -6,16 +6,16 @@ * */ -import { ComponentPropsWithRef, ReactNode, forwardRef } from "react"; +import { type ComponentPropsWithRef, type ReactNode, forwardRef } from "react"; import { ark, type HTMLArkProps } from "@ark-ui/react"; import { Heading, Text } from "@ndla/primitives"; import { cx } from "@ndla/styled-system/css"; import { Stack, styled } from "@ndla/styled-system/jsx"; -import { JsxStyleProps } from "@ndla/styled-system/types"; +import type { JsxStyleProps } from "@ndla/styled-system/types"; +import { ContentTypeBadge } from ".."; import { ArticleByline } from "./ArticleByline"; -import { ContentTypeBadgeNew } from ".."; -import { ContentType } from "../ContentTypeBadge/ContentTypeBadgeNew"; -import { Article as ArticleType } from "../types"; +import { type ContentType } from "../ContentTypeBadge/ContentTypeBadge"; +import type { Article as ArticleType } from "../types"; const StyledArticleContent = styled(ark.section, {}, { baseComponent: true }); @@ -135,7 +135,7 @@ export const ArticleTitle = ({ {(!!contentType || !!heartButton) && ( - {!!contentType && {contentTypeLabel}} + {!!contentType && {contentTypeLabel}} {heartButton} )} @@ -200,7 +200,6 @@ export const Article = ({ authors={authors} suppliers={copyright?.rightsholders} published={published} - license={copyright?.license?.license ?? ""} licenseBox={licenseBox} /> {children} diff --git a/packages/ndla-ui/src/Article/ArticleByline.stories.tsx b/packages/ndla-ui/src/Article/ArticleByline.stories.tsx index 1b18ee28d7..19d0f60d3d 100644 --- a/packages/ndla-ui/src/Article/ArticleByline.stories.tsx +++ b/packages/ndla-ui/src/Article/ArticleByline.stories.tsx @@ -6,7 +6,7 @@ * */ -import { Meta, StoryFn, StoryObj } from "@storybook/react"; +import type { Meta, StoryFn, StoryObj } from "@storybook/react"; import { ArticleByline } from "./ArticleByline"; @@ -23,7 +23,6 @@ export default { args: { authors: [{ name: "Frida Forfatter" }, { name: "Fred Forfatter" }], published: "21.06.2018", - license: "CC BY-SA", }, } as Meta; @@ -36,7 +35,6 @@ ArticleBylineStory.storyName = "ArticleByline"; export const SeveralAuthors: StoryObj = { args: { published: "21.06.2018", - license: "CC BY-SA", authors: [{ name: "Frida Forfatter" }, { name: "Ida Illustratør" }, { name: "Fred Forfatter" }], }, }; @@ -44,7 +42,6 @@ export const SeveralAuthors: StoryObj = { export const WithoutCreators: StoryObj = { args: { published: "21.06.2018", - license: "CC BY-SA", authors: [], }, }; diff --git a/packages/ndla-ui/src/Article/ArticleByline.tsx b/packages/ndla-ui/src/Article/ArticleByline.tsx index 433ba4e124..4361c14929 100644 --- a/packages/ndla-ui/src/Article/ArticleByline.tsx +++ b/packages/ndla-ui/src/Article/ArticleByline.tsx @@ -6,25 +6,23 @@ * */ -import { TFunction } from "i18next"; -import { ReactNode, forwardRef, useCallback, useEffect, useState } from "react"; +import type { TFunction } from "i18next"; +import { type ReactNode, forwardRef, useCallback, useEffect, useState } from "react"; import { useTranslation } from "react-i18next"; import { useLocation } from "react-router-dom"; -import { ArrowDownShortLine } from "@ndla/icons/common"; -import { getLicenseByAbbreviation } from "@ndla/licenses"; +import { ArrowDownShortLine } from "@ndla/icons"; import { AccordionItem, AccordionItemContent, AccordionItemIndicator, - AccordionItemProps, + type AccordionItemProps, AccordionItemTrigger, AccordionRoot, Heading, } from "@ndla/primitives"; import { styled } from "@ndla/styled-system/jsx"; import { ArticleFootNotes } from "./ArticleFootNotes"; -import { LicenseLink } from "../LicenseByline/LicenseLink"; -import { FootNote } from "../types"; +import type { FootNote } from "../types"; const Wrapper = styled("div", { base: { @@ -39,12 +37,15 @@ const Wrapper = styled("div", { const TextWrapper = styled("div", { base: { display: "flex", - flexDirection: "column-reverse", + flexDirection: "column", gap: "3xsmall", width: "100%", justifyContent: "space-between", paddingBlock: "xsmall", textStyle: "body.medium", + '& [data-contributors="false"]': { + marginInlineStart: "auto", + }, }, variants: { learningpath: { @@ -70,9 +71,7 @@ type Props = { authors?: AuthorProps[]; suppliers?: SupplierProps[]; published?: string; - license?: string; licenseBox?: ReactNode; - locale?: string; footnotes?: FootNote[]; displayByline?: boolean; bylineType?: "article" | "learningPath"; @@ -102,13 +101,6 @@ const getSuppliersText = (suppliers: SupplierProps[], t: TFunction) => { }); }; -const LicenseWrapper = styled("div", { - base: { - display: "flex", - gap: "xsmall", - }, -}); - const StyledAccordionRoot = styled(AccordionRoot, { base: { paddingBlockStart: "xxlarge", @@ -122,10 +114,8 @@ export const ArticleByline = ({ authors = [], suppliers = [], footnotes, - license: licenseString, licenseBox, published, - locale, displayByline = true, bylineType = "article", }: Props) => { @@ -156,29 +146,24 @@ export const ArticleByline = ({ return () => window.removeEventListener("hashchange", onHashChange); }, [onHashChange]); - const license = licenseString && getLicenseByAbbreviation(licenseString, locale); - const showPrimaryContributors = suppliers.length > 0 || authors.length > 0; return ( - {displayByline && ( + {!!displayByline && ( - - {license && } - {showPrimaryContributors && ( - //eslint-disable-next-line react/no-unknown-property - - {authors.length > 0 && - `${t("article.authorsLabel", { - names: renderContributors(authors, t), - interpolation: { escapeValue: false }, - })}. `} - {getSuppliersText(suppliers, t)} - - )} - -
    + {!!showPrimaryContributors && ( + //eslint-disable-next-line react/no-unknown-property + + {authors.length > 0 && + `${t("article.authorsLabel", { + names: renderContributors(authors, t), + interpolation: { escapeValue: false }, + })}. `} + {getSuppliersText(suppliers, t)} + + )} +
    {t(`${bylineType}.lastUpdated`)} {published}
    @@ -213,14 +198,16 @@ export const ArticleBylineAccordionItem = forwardRef { return ( - - -

    {accordionTitle}

    -
    - - - -
    + +

    + + {accordionTitle} + + + + +

    +
    {children}
    ); diff --git a/packages/ndla-ui/src/Article/ArticleFootNotes.tsx b/packages/ndla-ui/src/Article/ArticleFootNotes.tsx index 0aa08f96f0..f70903d1cd 100644 --- a/packages/ndla-ui/src/Article/ArticleFootNotes.tsx +++ b/packages/ndla-ui/src/Article/ArticleFootNotes.tsx @@ -8,7 +8,7 @@ import { Text } from "@ndla/primitives"; import { styled } from "@ndla/styled-system/jsx"; -import { FootNote as FootNoteType } from "../types"; +import type { FootNote as FootNoteType } from "../types"; const citeDetailString = (description: string | undefined) => (description ? `${description}. ` : ""); diff --git a/packages/ndla-ui/src/AudioPlayer/AudiPlayer.stories.tsx b/packages/ndla-ui/src/AudioPlayer/AudiPlayer.stories.tsx index 35cfe374a6..e79cfa18c6 100644 --- a/packages/ndla-ui/src/AudioPlayer/AudiPlayer.stories.tsx +++ b/packages/ndla-ui/src/AudioPlayer/AudiPlayer.stories.tsx @@ -6,7 +6,7 @@ * */ -import { Meta, StoryObj } from "@storybook/react"; +import type { Meta, StoryObj } from "@storybook/react"; import AudioPlayer from "./AudioPlayer"; const TextVersion = ( <> diff --git a/packages/ndla-ui/src/AudioPlayer/AudioPlayer.tsx b/packages/ndla-ui/src/AudioPlayer/AudioPlayer.tsx index 51e63fe31b..a802382622 100644 --- a/packages/ndla-ui/src/AudioPlayer/AudioPlayer.tsx +++ b/packages/ndla-ui/src/AudioPlayer/AudioPlayer.tsx @@ -6,7 +6,7 @@ * */ -import { ReactNode, useId, useMemo, useState } from "react"; +import { type ReactNode, useId, useMemo, useState } from "react"; import { useTranslation } from "react-i18next"; import { Heading, Text, Button } from "@ndla/primitives"; import { SafeLink } from "@ndla/safelink"; @@ -84,6 +84,7 @@ const TitleWrapper = styled("div", { display: "flex", flexDirection: "column", gap: "xsmall", + fontFamily: "sans", tabletWide: { width: "100%", flexDirection: "row", @@ -185,7 +186,7 @@ const AudioPlayer = ({ src, title, subtitle, speech, description, img, textVersi return ( - {img && ( + {!!img && ( {img.alt} @@ -200,7 +201,7 @@ const AudioPlayer = ({ src, title, subtitle, speech, description, img, textVersi
    {!!textVersion && !img && textVersionButton} - {description && ( + {!!description && ( {showFullDescription || description.length < DESCRIPTION_MAX_LENGTH ? description diff --git a/packages/ndla-ui/src/AudioPlayer/Controls.tsx b/packages/ndla-ui/src/AudioPlayer/Controls.tsx index 1c6b33e4bd..a3fb3311dc 100644 --- a/packages/ndla-ui/src/AudioPlayer/Controls.tsx +++ b/packages/ndla-ui/src/AudioPlayer/Controls.tsx @@ -9,11 +9,10 @@ import { useEffect, useRef, useState } from "react"; import { useTranslation } from "react-i18next"; import { type SliderValueChangeDetails, createListCollection } from "@ark-ui/react"; -import { Replay15Line, Forward15Line } from "@ndla/icons/action"; -import { PlayFill, PauseLine, VolumeUpFill } from "@ndla/icons/common"; -import { CheckLine } from "@ndla/icons/editor"; +import { Replay15Line, Forward15Line, PlayFill, PauseLine, VolumeUpFill, CheckLine } from "@ndla/icons"; import { Button, + FieldRoot, IconButton, PopoverContent, PopoverRoot, @@ -24,7 +23,6 @@ import { SelectItemIndicator, SelectItemText, SelectLabel, - SelectPositioner, SelectRoot, SelectTrigger, SliderControl, @@ -37,7 +35,6 @@ import { Text, } from "@ndla/primitives"; import { styled } from "@ndla/styled-system/jsx"; -import { visuallyHidden } from "@ndla/styled-system/patterns"; const ControlsWrapper = styled("div", { base: { @@ -102,6 +99,8 @@ const ProgressWrapper = styled("div", { const StyledText = styled(Text, { base: { minWidth: "xxlarge", + flexShrink: "0", + textAlign: "center", }, }); @@ -278,6 +277,7 @@ const Controls = ({ src, title }: Props) => { }) } > + {t("audio.progressBar")} @@ -291,25 +291,25 @@ const Controls = ({ src, title }: Props) => {
    -{formatTime(remainingTime)}
    - setSpeedValue(parseFloat(details.value[0]))} - positioning={{ placement: "top" }} - > - {t("audio.controls.selectSpeed")} - - - - {`${speedValue}x`} - - - - + + setSpeedValue(parseFloat(details.value[0]))} + positioning={{ placement: "top" }} + > + {t("audio.controls.selectSpeed")} + + + + {`${speedValue}x`} + + + {speedValues.items.map((speed) => ( @@ -320,8 +320,8 @@ const Controls = ({ src, title }: Props) => { ))} - - + + @@ -338,7 +338,7 @@ const Controls = ({ src, title }: Props) => { step={1} onValueChange={handleVolumeSliderChange} > - {t("audio.controls.adjustVolume")} + {t("audio.controls.adjustVolume")} diff --git a/packages/ndla-ui/src/AudioPlayer/SpeechControl.tsx b/packages/ndla-ui/src/AudioPlayer/SpeechControl.tsx index cabf0d22ce..a10cb54444 100644 --- a/packages/ndla-ui/src/AudioPlayer/SpeechControl.tsx +++ b/packages/ndla-ui/src/AudioPlayer/SpeechControl.tsx @@ -8,7 +8,7 @@ import { useRef } from "react"; import { useTranslation } from "react-i18next"; -import { VolumeUpFill } from "@ndla/icons/common"; +import { VolumeUpFill } from "@ndla/icons"; import { TooltipRoot, TooltipTrigger, TooltipContent, IconButton } from "@ndla/primitives"; type Props = { diff --git a/packages/ndla-ui/src/Breadcrumb/Breadcrumb.stories.tsx b/packages/ndla-ui/src/Breadcrumb/Breadcrumb.stories.tsx index b675b9b838..b44f447a14 100644 --- a/packages/ndla-ui/src/Breadcrumb/Breadcrumb.stories.tsx +++ b/packages/ndla-ui/src/Breadcrumb/Breadcrumb.stories.tsx @@ -6,7 +6,7 @@ * */ -import { Meta, StoryObj } from "@storybook/react"; +import type { Meta, StoryObj } from "@storybook/react"; import Breadcrumb from "./Breadcrumb"; const items = [ diff --git a/packages/ndla-ui/src/Breadcrumb/Breadcrumb.tsx b/packages/ndla-ui/src/Breadcrumb/Breadcrumb.tsx index 7af75c6ecb..4c6a7ddbfc 100644 --- a/packages/ndla-ui/src/Breadcrumb/Breadcrumb.tsx +++ b/packages/ndla-ui/src/Breadcrumb/Breadcrumb.tsx @@ -6,10 +6,10 @@ * */ -import { ReactNode } from "react"; +import { type ReactNode } from "react"; import { useTranslation } from "react-i18next"; import { styled } from "@ndla/styled-system/jsx"; -import BreadcrumbItem, { IndexedBreadcrumbItem, SimpleBreadcrumbItem } from "./BreadcrumbItem"; +import BreadcrumbItem, { type IndexedBreadcrumbItem, type SimpleBreadcrumbItem } from "./BreadcrumbItem"; interface Props { items: SimpleBreadcrumbItem[]; diff --git a/packages/ndla-ui/src/Breadcrumb/BreadcrumbItem.tsx b/packages/ndla-ui/src/Breadcrumb/BreadcrumbItem.tsx index eeb6ec4bf2..7fa1b908a3 100644 --- a/packages/ndla-ui/src/Breadcrumb/BreadcrumbItem.tsx +++ b/packages/ndla-ui/src/Breadcrumb/BreadcrumbItem.tsx @@ -6,8 +6,8 @@ * */ -import { useRef, useImperativeHandle, ReactNode, forwardRef } from "react"; -import { ArrowRightShortLine } from "@ndla/icons/common"; +import { useRef, useImperativeHandle, type ReactNode, forwardRef } from "react"; +import { ArrowRightShortLine } from "@ndla/icons"; import { SafeLink } from "@ndla/safelink"; import { styled } from "@ndla/styled-system/jsx"; @@ -51,7 +51,7 @@ interface Props { } const BreadcrumbItem = forwardRef(({ renderItem, renderSeparator, item, totalCount }, ref) => { - const liRef = useRef(); + const liRef = useRef(null); useImperativeHandle(ref, () => ({ setMaxWidth: (maxWidth: number) => { diff --git a/packages/ndla-ui/src/Breadcrumb/HomeBreadcrumb.stories.tsx b/packages/ndla-ui/src/Breadcrumb/HomeBreadcrumb.stories.tsx index 4bff318a69..1694ca900e 100644 --- a/packages/ndla-ui/src/Breadcrumb/HomeBreadcrumb.stories.tsx +++ b/packages/ndla-ui/src/Breadcrumb/HomeBreadcrumb.stories.tsx @@ -6,7 +6,7 @@ * */ -import { Meta, StoryObj } from "@storybook/react"; +import type { Meta, StoryObj } from "@storybook/react"; import HomeBreadcrumb from "./HomeBreadcrumb"; const items = [ diff --git a/packages/ndla-ui/src/Breadcrumb/HomeBreadcrumb.tsx b/packages/ndla-ui/src/Breadcrumb/HomeBreadcrumb.tsx index f91f0798c8..11180e318b 100644 --- a/packages/ndla-ui/src/Breadcrumb/HomeBreadcrumb.tsx +++ b/packages/ndla-ui/src/Breadcrumb/HomeBreadcrumb.tsx @@ -6,11 +6,11 @@ * */ -import { ArrowRightShortLine, HomeLine } from "@ndla/icons/common"; +import { ArrowRightShortLine, HomeLine } from "@ndla/icons"; import { SafeLink } from "@ndla/safelink"; import { styled } from "@ndla/styled-system/jsx"; import Breadcrumb from "./Breadcrumb"; -import { IndexedBreadcrumbItem, SimpleBreadcrumbItem } from "./BreadcrumbItem"; +import type { IndexedBreadcrumbItem, SimpleBreadcrumbItem } from "./BreadcrumbItem"; const StyledSafeLink = styled(SafeLink, { base: { diff --git a/packages/ndla-ui/src/CampaignBlock/CampaignBlock.stories.tsx b/packages/ndla-ui/src/CampaignBlock/CampaignBlock.stories.tsx index 27bc3be025..cbd0b5aa50 100644 --- a/packages/ndla-ui/src/CampaignBlock/CampaignBlock.stories.tsx +++ b/packages/ndla-ui/src/CampaignBlock/CampaignBlock.stories.tsx @@ -6,7 +6,7 @@ * */ -import { Meta, StoryObj } from "@storybook/react"; +import type { Meta, StoryObj } from "@storybook/react"; import CampaignBlock from "./CampaignBlock"; export default { diff --git a/packages/ndla-ui/src/CampaignBlock/CampaignBlock.tsx b/packages/ndla-ui/src/CampaignBlock/CampaignBlock.tsx index 2abd74ea05..b966905866 100644 --- a/packages/ndla-ui/src/CampaignBlock/CampaignBlock.tsx +++ b/packages/ndla-ui/src/CampaignBlock/CampaignBlock.tsx @@ -7,13 +7,13 @@ */ import parse from "html-react-parser"; -import { ReactNode } from "react"; -import { ArrowRightLine } from "@ndla/icons/common"; +import { type ReactNode } from "react"; +import { ArrowRightLine } from "@ndla/icons"; import { Text } from "@ndla/primitives"; import { SafeLinkButton } from "@ndla/safelink"; import { styled } from "@ndla/styled-system/jsx"; -import { CampaignBlockEmbedData } from "@ndla/types-embed"; -import { HeadingLevel } from "../types"; +import type { CampaignBlockEmbedData } from "@ndla/types-embed"; +import type { HeadingLevel } from "../types"; import { getPossiblyRelativeUrl } from "../utils/relativeUrl"; interface Image { diff --git a/packages/ndla-ui/src/CodeBlock/CodeBlock.stories.tsx b/packages/ndla-ui/src/CodeBlock/CodeBlock.stories.tsx index e08edd9053..345d00461c 100644 --- a/packages/ndla-ui/src/CodeBlock/CodeBlock.stories.tsx +++ b/packages/ndla-ui/src/CodeBlock/CodeBlock.stories.tsx @@ -6,7 +6,7 @@ * */ -import { Meta, StoryFn, StoryObj } from "@storybook/react"; +import type { Meta, StoryFn, StoryObj } from "@storybook/react"; import CodeBlock from "./CodeBlock"; export default { diff --git a/packages/ndla-ui/src/CodeBlock/CodeBlock.tsx b/packages/ndla-ui/src/CodeBlock/CodeBlock.tsx index 069c2a5fee..8c096bcf93 100644 --- a/packages/ndla-ui/src/CodeBlock/CodeBlock.tsx +++ b/packages/ndla-ui/src/CodeBlock/CodeBlock.tsx @@ -9,7 +9,7 @@ import { type ComponentPropsWithRef, forwardRef, useMemo } from "react"; import { cx } from "@ndla/styled-system/css"; import { styled } from "@ndla/styled-system/jsx"; -import { type JsxStyleProps } from "@ndla/styled-system/types"; +import type { JsxStyleProps } from "@ndla/styled-system/types"; interface Props extends JsxStyleProps, ComponentPropsWithRef<"pre"> { highlightedCode: string; diff --git a/packages/ndla-ui/src/Concept/Concept.stories.tsx b/packages/ndla-ui/src/Concept/Concept.stories.tsx index f1ecae3085..38f9f4fb92 100644 --- a/packages/ndla-ui/src/Concept/Concept.stories.tsx +++ b/packages/ndla-ui/src/Concept/Concept.stories.tsx @@ -6,8 +6,8 @@ * */ -import { Meta, StoryObj } from "@storybook/react"; -import { ConceptData } from "@ndla/types-embed"; +import type { Meta, StoryObj } from "@storybook/react"; +import type { ConceptData } from "@ndla/types-embed"; import { Concept } from "./Concept"; const visualElementData: ConceptData["visualElement"] = { diff --git a/packages/ndla-ui/src/Concept/Concept.tsx b/packages/ndla-ui/src/Concept/Concept.tsx index 53d87d972a..9335d6213d 100644 --- a/packages/ndla-ui/src/Concept/Concept.tsx +++ b/packages/ndla-ui/src/Concept/Concept.tsx @@ -6,11 +6,11 @@ * */ -import { ComponentPropsWithRef, ReactNode, forwardRef } from "react"; +import { type ComponentPropsWithRef, type ReactNode, forwardRef } from "react"; import { Figure } from "@ndla/primitives"; import { styled } from "@ndla/styled-system/jsx"; -import { IDraftCopyright as ConceptCopyright } from "@ndla/types-backend/concept-api"; -import { ConceptVisualElementMeta } from "@ndla/types-embed"; +import type { IDraftCopyright as ConceptCopyright } from "@ndla/types-backend/concept-api"; +import type { ConceptVisualElementMeta } from "@ndla/types-embed"; import { BrightcoveEmbed, ExternalEmbed, H5pEmbed, IframeEmbed, ImageEmbed } from "../Embed"; import { EmbedByline } from "../LicenseByline/EmbedByline"; import { licenseAttributes } from "../utils/licenseAttributes"; @@ -69,7 +69,7 @@ export const Concept = forwardRef( ) : visualElement?.resource === "external" ? ( ) : null} - {copyright && } + {!!copyright && } ); }, diff --git a/packages/ndla-ui/src/ContactBlock/ContactBlock.stories.tsx b/packages/ndla-ui/src/ContactBlock/ContactBlock.stories.tsx index 71998485c9..563a3772b3 100644 --- a/packages/ndla-ui/src/ContactBlock/ContactBlock.stories.tsx +++ b/packages/ndla-ui/src/ContactBlock/ContactBlock.stories.tsx @@ -6,7 +6,7 @@ * */ -import { Meta, StoryFn } from "@storybook/react"; +import type { Meta, StoryFn } from "@storybook/react"; import { ContactBlock } from "./ContactBlock"; export default { diff --git a/packages/ndla-ui/src/ContactBlock/ContactBlock.tsx b/packages/ndla-ui/src/ContactBlock/ContactBlock.tsx index 446f468fa1..3595ef7d6b 100644 --- a/packages/ndla-ui/src/ContactBlock/ContactBlock.tsx +++ b/packages/ndla-ui/src/ContactBlock/ContactBlock.tsx @@ -9,8 +9,8 @@ import { useTranslation } from "react-i18next"; import { Text } from "@ndla/primitives"; import { styled } from "@ndla/styled-system/jsx"; -import { SystemStyleObject } from "@ndla/styled-system/types"; -import { IImageMetaInformationV3 } from "@ndla/types-backend/image-api"; +import type { SystemStyleObject } from "@ndla/styled-system/types"; +import type { IImageMetaInformationV3 } from "@ndla/types-backend/image-api"; import { LicenseContainerContent } from "../LicenseByline/EmbedByline"; export type ContactBlockBackground = "strong" | "moderate" | "subtle"; @@ -180,7 +180,7 @@ export const ContactBlock = ({ {description} - {image && ( + {!!image && ( ; - -export const ImageOrVideo: StoryObj = { - args: { - width: 1000, - height: 750, - children: ( - <> - - - - - - - - ), - }, -}; - -export const Article: StoryObj = { - args: { - width: 1000, - height: 1050, - children: ( - <> - - - - - - - - - - - ), - }, -}; diff --git a/packages/ndla-ui/src/ContentLoader/index.tsx b/packages/ndla-ui/src/ContentLoader/index.tsx deleted file mode 100644 index 4dadeacfa4..0000000000 --- a/packages/ndla-ui/src/ContentLoader/index.tsx +++ /dev/null @@ -1,73 +0,0 @@ -/** - * Copyright (c) 2018-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ - -import { ReactNode, SVGProps } from "react"; -import { uuid } from "@ndla/util"; - -interface Props extends Omit, "viewBox"> { - children?: ReactNode; - primaryColor?: string; - secondaryColor?: string; - viewBox?: string | null; -} - -const ContentLoader = ({ - children, - width = 400, - height = 130, - preserveAspectRatio = "xMidYMid meet", - className = "", - primaryColor = "#f0f0f0", - secondaryColor = "#e0e0e0", - speed = 2, - viewBox: viewBoxProp, - ...rest -}: Props) => { - const idClip = uuid(); - const idGradient = uuid(); - const viewBox = viewBoxProp === undefined ? `0 0 ${width} ${height}` : viewBoxProp; - - return ( - - - - - {children} - - - - - - - - - - - - - - - ); -}; - -export default ContentLoader; diff --git a/packages/ndla-ui/src/ContentTypeBadge/ContentTypeBadge.stories.tsx b/packages/ndla-ui/src/ContentTypeBadge/ContentTypeBadge.stories.tsx index ab5a57d514..44cf539621 100644 --- a/packages/ndla-ui/src/ContentTypeBadge/ContentTypeBadge.stories.tsx +++ b/packages/ndla-ui/src/ContentTypeBadge/ContentTypeBadge.stories.tsx @@ -1,80 +1,75 @@ /** - * Copyright (c) 2023-present, NDLA. + * Copyright (c) 2024-present, NDLA. * * This source code is licensed under the GPLv3 license found in the * LICENSE file in the root directory of this source tree. * */ -import { Meta, StoryFn, StoryObj } from "@storybook/react"; -import { styled } from "@ndla/styled-system/jsx"; +import { useTranslation } from "react-i18next"; +import type { Meta, StoryFn, StoryObj } from "@storybook/react"; +import { MovieLine } from "@ndla/icons"; +import { HStack, styled } from "@ndla/styled-system/jsx"; import { ContentTypeBadge } from "./ContentTypeBadge"; -import * as contentTypes from "../model/ContentType"; export default { title: "Components/ContentTypeBadge", + component: ContentTypeBadge, tags: ["autodocs"], parameters: { inlineStories: true, }, args: { - size: "small", - border: true, - type: "subject-material", - background: true, - title: "I'm a badge", - }, - argTypes: { - children: { control: false }, + contentType: "subject-material", }, - component: ContentTypeBadge, -} as Meta; +} satisfies Meta; export const Default: StoryObj = {}; -export const Sizes: StoryFn = ({ ...args }) => ( - <> - - - - - -); - -export const NoBorder: StoryObj = { - args: { - border: false, +const StyledHStack = styled(HStack, { + base: { + flexWrap: "wrap", }, -}; +}); -export const NoBackground: StoryObj = { - args: { - background: false, - }, -}; +export const AllBadges: StoryFn = () => ( + + + + + + + + + + + + + + + + + + + + + +); -const BadgesWrapper = styled("div", { +const StyledContentTypeBadge = styled(ContentTypeBadge, { base: { display: "flex", + gap: "4xsmall", alignItems: "center", - gap: "xsmall", }, }); -export const AllBadges: StoryFn = ({ ...args }) => ( - - - - - - - - - - - - - - - -); +export const ContentOverride: StoryFn = () => { + const { t } = useTranslation(); + return ( + + + {t("contentTypes.video")} + + ); +}; diff --git a/packages/ndla-ui/src/ContentTypeBadge/ContentTypeBadge.tsx b/packages/ndla-ui/src/ContentTypeBadge/ContentTypeBadge.tsx index 4afb36e55f..d05930265a 100644 --- a/packages/ndla-ui/src/ContentTypeBadge/ContentTypeBadge.tsx +++ b/packages/ndla-ui/src/ContentTypeBadge/ContentTypeBadge.tsx @@ -1,227 +1,79 @@ /** - * Copyright (c) 2018-present, NDLA. + * Copyright (c) 2024-present, NDLA. * * This source code is licensed under the GPLv3 license found in the * LICENSE file in the root directory of this source tree. * */ -import { CSSProperties, ComponentPropsWithoutRef, useMemo } from "react"; - -import { colors } from "@ndla/core"; -import { BookmarkLine, SubtractLine } from "@ndla/icons/action"; -import { BookReadFill, ShareFill, VoicePrintLine } from "@ndla/icons/common"; -import { MenuSearchLine, LearningPath, SharedResource, TasksAndActivities } from "@ndla/icons/contentType"; -import { ChatLine, FileListLine, LinkMedium, ImageLine, MovieLine } from "@ndla/icons/editor"; -import { styled } from "@ndla/styled-system/jsx"; - +import { forwardRef } from "react"; +import { useTranslation } from "react-i18next"; +import { Badge, type BadgeProps, type BadgeVariant } from "@ndla/primitives"; import * as contentTypes from "../model/ContentType"; -// TODO: Remove this component - -interface Props extends ComponentPropsWithoutRef<"div"> { - size?: "xx-small" | "x-small" | "small" | "large"; - type: string; - title?: string; - background?: boolean; - border?: boolean; - className?: string; +export interface ContentTypeBadgeProps extends Omit { + contentType: ContentType | undefined; } -const StyledContentTypeBadge = styled("div", { - base: { - display: "inline-flex", - alignItems: "center", - justifyContent: "center", - borderRadius: "100%", - color: "var(--icon-color)", - }, - defaultVariants: { - size: "small", - border: true, - background: false, - }, - variants: { - size: { - "xx-small": { - width: "20px", - height: "20px", - border: "1px solid", - "& svg": { - width: "10px", - height: "10px", - }, - }, - "x-small": { - width: "20px", - height: "20px", - border: "1px solid", - tablet: { - height: "26px", - width: "26px", - }, - "& svg": { - width: "10px", - height: "10px", - tablet: { - width: "12px", - height: "12px", - }, - }, - }, - small: { - width: "34px", - height: "34px", - }, - large: { - width: "50px", - height: "50px", - "& svg": { - width: "25px", - height: "25px", - }, - }, - }, - border: { - true: { - border: "2px solid", - borderColor: "var(--icon-color)", - }, - false: {}, - }, - background: { - true: { - backgroundColor: "var(--background-color)", - }, - }, - }, -}); +export type StrictContentType = + | typeof contentTypes.SUBJECT_MATERIAL + | typeof contentTypes.TASKS_AND_ACTIVITIES + | typeof contentTypes.ASSESSMENT_RESOURCES + | typeof contentTypes.SUBJECT + | typeof contentTypes.SOURCE_MATERIAL + | typeof contentTypes.LEARNING_PATH + | typeof contentTypes.TOPIC + | typeof contentTypes.MULTIDISCIPLINARY + | typeof contentTypes.CONCEPT + | typeof contentTypes.EXTERNAL + | typeof contentTypes.IMAGE + | typeof contentTypes.AUDIO + | typeof contentTypes.VIDEO + | typeof contentTypes.MISSING + | typeof contentTypes.PODCAST + | typeof contentTypes.GLOSS + | typeof contentTypes.PROGRAMME + | typeof contentTypes.PODCAST_SERIES + | typeof contentTypes.FRONTPAGE_ARTICLE; -const iconMap = { - [contentTypes.SUBJECT_MATERIAL]: { - icon: FileListLine, - iconColor: colors.subjectMaterial.dark, - backgroundColor: colors.subjectMaterial.light, - }, - [contentTypes.TASKS_AND_ACTIVITIES]: { - icon: TasksAndActivities, - iconColor: colors.tasksAndActivities.dark, - backgroundColor: colors.tasksAndActivities.light, - }, - [contentTypes.ASSESSMENT_RESOURCES]: { - icon: MenuSearchLine, - iconColor: colors.assessmentResource.dark, - backgroundColor: colors.assessmentResource.light, - }, - [contentTypes.SUBJECT]: { - icon: BookReadFill, - iconColor: colors.subject.dark, - backgroundColor: colors.subject.light, - }, - [contentTypes.SOURCE_MATERIAL]: { - icon: SharedResource, - iconColor: colors.sourceMaterial.dark, - backgroundColor: colors.sourceMaterial.light, - }, - [contentTypes.LEARNING_PATH]: { - icon: LearningPath, - iconColor: colors.learningPath.dark, - backgroundColor: colors.learningPath.light, - }, - [contentTypes.TOPIC]: { - icon: BookmarkLine, - iconColor: colors.subject.dark, - backgroundColor: colors.subject.light, - }, - [contentTypes.MULTIDISCIPLINARY]: { - icon: ShareFill, - backgroundColor: "#b9b37b", - }, - [contentTypes.CONCEPT]: { - icon: ChatLine, - iconColor: colors.concept.text, - backgroundColor: colors.concept.light, - }, - [contentTypes.EXTERNAL]: { - icon: LinkMedium, - iconColor: colors.external.dark, - backgroundColor: colors.external.light, - }, - [contentTypes.resourceEmbedTypeMapping.image]: { - icon: ImageLine, - iconColor: colors.brand.grey, - backgroundColor: colors.brand.greyLight, - }, - [contentTypes.resourceEmbedTypeMapping.audio]: { - icon: VoicePrintLine, - iconColor: colors.brand.grey, - backgroundColor: colors.brand.greyLight, - }, - [contentTypes.resourceEmbedTypeMapping.video]: { - icon: MovieLine, - iconColor: colors.brand.grey, - backgroundColor: colors.brand.greyLight, - }, - [contentTypes.MISSING]: { - icon: SubtractLine, - iconColor: colors.brand.grey, - backgroundColor: colors.brand.greyLight, - }, -} as const; - -export const ContentTypeBadge = ({ - type, - background, - title, - size = "small", - border = true, - className, - ...rest -}: Props) => { - const { Icon, style } = useMemo(() => { - const fromMap = iconMap[type]; - const style = { - "--icon-color": fromMap.iconColor, - "--background-color": fromMap.backgroundColor, - } as CSSProperties; - return { Icon: fromMap.icon, style }; - }, [type]); +export type ContentType = + | StrictContentType + // This allows for us to fallback to string without getting a ts error, while still keeping intellisense + | (string & {}); - return ( - - - - ); +export const contentTypeToBadgeVariantMap: Record = { + [contentTypes.SUBJECT_MATERIAL]: "brand1", + [contentTypes.TASKS_AND_ACTIVITIES]: "brand2", + [contentTypes.ASSESSMENT_RESOURCES]: "brand2", + [contentTypes.SUBJECT]: "neutral", + [contentTypes.SOURCE_MATERIAL]: "brand1", + [contentTypes.LEARNING_PATH]: "brand3", + [contentTypes.TOPIC]: "neutral", + [contentTypes.MULTIDISCIPLINARY]: "neutral", + [contentTypes.CONCEPT]: "brand1", + [contentTypes.EXTERNAL]: "brand2", + [contentTypes.IMAGE]: "brand1", + [contentTypes.AUDIO]: "brand1", + [contentTypes.PODCAST]: "brand1", + [contentTypes.VIDEO]: "brand1", + [contentTypes.MISSING]: "neutral", + [contentTypes.PODCAST_SERIES]: "brand1", + [contentTypes.GLOSS]: "brand1", + [contentTypes.PROGRAMME]: "neutral", + [contentTypes.FRONTPAGE_ARTICLE]: "brand2", }; -export const SubjectMaterialBadge = (props: Omit) => ( - -); -export const TasksAndActivitiesBadge = (props: Omit) => ( - -); -export const AssessmentResourcesBadge = (props: Omit) => ( - -); -export const SubjectBadge = (props: Omit) => ; -export const SourceMaterialBadge = (props: Omit) => ( - -); -export const LearningPathBadge = (props: Omit) => ( - -); -export const MultidisciplinaryTopicBadge = (props: Omit) => ( - +export const ContentTypeBadge = forwardRef( + ({ contentType, children, ...props }, ref) => { + const { t } = useTranslation(); + return ( + + {children ?? t(`contentTypes.${contentType}`)} + + ); + }, ); -export const ConceptBadge = (props: Omit) => ; diff --git a/packages/ndla-ui/src/ContentTypeBadge/ContentTypeBadgeNew.stories.tsx b/packages/ndla-ui/src/ContentTypeBadge/ContentTypeBadgeNew.stories.tsx deleted file mode 100644 index 0ae51a2158..0000000000 --- a/packages/ndla-ui/src/ContentTypeBadge/ContentTypeBadgeNew.stories.tsx +++ /dev/null @@ -1,70 +0,0 @@ -/** - * Copyright (c) 2024-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ - -import { useTranslation } from "react-i18next"; -import { Meta, StoryFn, StoryObj } from "@storybook/react"; -import { MovieLine } from "@ndla/icons/editor"; -import { HStack, styled } from "@ndla/styled-system/jsx"; -import { ContentTypeBadge } from "./ContentTypeBadgeNew"; - -export default { - title: "Components/ContentTypeBadgeNew", - component: ContentTypeBadge, - tags: ["autodocs"], - parameters: { - inlineStories: true, - }, - args: { - contentType: "subject-material", - }, -} satisfies Meta; - -export const Default: StoryObj = {}; - -const StyledHStack = styled(HStack, { - base: { - flexWrap: "wrap", - }, -}); - -export const AllBadges: StoryFn = () => ( - - - - - - - - - - - - - - - - -); - -const StyledContentTypeBadge = styled(ContentTypeBadge, { - base: { - display: "flex", - gap: "4xsmall", - alignItems: "center", - }, -}); - -export const ContentOverride: StoryFn = () => { - const { t } = useTranslation(); - return ( - - - {t("contentTypes.video")} - - ); -}; diff --git a/packages/ndla-ui/src/ContentTypeBadge/ContentTypeBadgeNew.tsx b/packages/ndla-ui/src/ContentTypeBadge/ContentTypeBadgeNew.tsx deleted file mode 100644 index 01a3bf0197..0000000000 --- a/packages/ndla-ui/src/ContentTypeBadge/ContentTypeBadgeNew.tsx +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Copyright (c) 2024-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ - -import { forwardRef } from "react"; -import { useTranslation } from "react-i18next"; -import { Badge, BadgeProps, type BadgeVariant } from "@ndla/primitives"; -import * as contentTypes from "../model/ContentType"; - -export interface ContentTypeBadgeProps extends Omit { - contentType: ContentType | undefined; -} - -export type StrictContentType = - | typeof contentTypes.SUBJECT_MATERIAL - | typeof contentTypes.TASKS_AND_ACTIVITIES - | typeof contentTypes.ASSESSMENT_RESOURCES - | typeof contentTypes.SUBJECT - | typeof contentTypes.SOURCE_MATERIAL - | typeof contentTypes.LEARNING_PATH - | typeof contentTypes.TOPIC - | typeof contentTypes.MULTIDISCIPLINARY - | typeof contentTypes.CONCEPT - | typeof contentTypes.EXTERNAL - | typeof contentTypes.IMAGE - | typeof contentTypes.AUDIO - | typeof contentTypes.VIDEO - | typeof contentTypes.MISSING - | typeof contentTypes.PODCAST; - -export type ContentType = - | StrictContentType - // This allows for us to fallback to string without getting a ts error, while still keeping intellisense - | (string & {}); - -export const contentTypeToBadgeVariantMap: Record = { - [contentTypes.SUBJECT_MATERIAL]: "brand1", - [contentTypes.TASKS_AND_ACTIVITIES]: "brand2", - [contentTypes.ASSESSMENT_RESOURCES]: "brand2", - [contentTypes.SUBJECT]: "neutral", - [contentTypes.SOURCE_MATERIAL]: "brand1", - [contentTypes.LEARNING_PATH]: "brand3", - [contentTypes.TOPIC]: "neutral", - [contentTypes.MULTIDISCIPLINARY]: "neutral", - [contentTypes.CONCEPT]: "brand1", - [contentTypes.EXTERNAL]: "brand2", - [contentTypes.IMAGE]: "brand1", - [contentTypes.AUDIO]: "brand1", - [contentTypes.PODCAST]: "brand1", - [contentTypes.VIDEO]: "brand1", - [contentTypes.MISSING]: "neutral", -}; - -export const ContentTypeBadge = forwardRef( - ({ contentType, children, ...props }, ref) => { - const { t } = useTranslation(); - return ( - - {children ?? t(`contentTypes.${contentType}`)} - - ); - }, -); diff --git a/packages/ndla-ui/src/ContentTypeBadge/index.ts b/packages/ndla-ui/src/ContentTypeBadge/index.ts deleted file mode 100644 index 9ee8d9a625..0000000000 --- a/packages/ndla-ui/src/ContentTypeBadge/index.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Copyright (c) 2018-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ - -import { ContentTypeBadge } from "./ContentTypeBadge"; - -export { - SubjectMaterialBadge, - TasksAndActivitiesBadge, - AssessmentResourcesBadge, - SubjectBadge, - SourceMaterialBadge, - LearningPathBadge, - ConceptBadge, -} from "./ContentTypeBadge"; - -export default ContentTypeBadge; diff --git a/packages/ndla-ui/src/ContentTypeBlockQuote/ContentTypeBlockQuote.tsx b/packages/ndla-ui/src/ContentTypeBlockQuote/ContentTypeBlockQuote.tsx index dfc8d43170..16a8409b7d 100644 --- a/packages/ndla-ui/src/ContentTypeBlockQuote/ContentTypeBlockQuote.tsx +++ b/packages/ndla-ui/src/ContentTypeBlockQuote/ContentTypeBlockQuote.tsx @@ -7,8 +7,8 @@ */ import { forwardRef } from "react"; -import { BlockQuote, BlockQuoteProps, BlockQuoteVariantProps } from "@ndla/primitives"; -import { ContentType } from "../ContentTypeBadge/ContentTypeBadgeNew"; +import { BlockQuote, type BlockQuoteProps, type BlockQuoteVariantProps } from "@ndla/primitives"; +import type { ContentType } from "../ContentTypeBadge/ContentTypeBadge"; export type ContentTypeBlockQuoteVariant = "colored" | "neutral"; diff --git a/packages/ndla-ui/src/ContentTypeFramedContent/ContentTypeFramedContent.tsx b/packages/ndla-ui/src/ContentTypeFramedContent/ContentTypeFramedContent.tsx index a174d19a70..887a8c2b8e 100644 --- a/packages/ndla-ui/src/ContentTypeFramedContent/ContentTypeFramedContent.tsx +++ b/packages/ndla-ui/src/ContentTypeFramedContent/ContentTypeFramedContent.tsx @@ -7,8 +7,8 @@ */ import { forwardRef } from "react"; -import { FramedContent, FramedContentProps, FramedContentVariantProps } from "@ndla/primitives"; -import { ContentType } from ".."; +import { FramedContent, type FramedContentProps, type FramedContentVariantProps } from "@ndla/primitives"; +import type { ContentType } from ".."; const contentTypeToVariantMapping = { "subject-material": "brand1", diff --git a/packages/ndla-ui/src/ContentTypeHero/ContentTypeHero.stories.tsx b/packages/ndla-ui/src/ContentTypeHero/ContentTypeHero.stories.tsx index d85f7ca3af..cfab208fa5 100644 --- a/packages/ndla-ui/src/ContentTypeHero/ContentTypeHero.stories.tsx +++ b/packages/ndla-ui/src/ContentTypeHero/ContentTypeHero.stories.tsx @@ -6,7 +6,7 @@ * */ -import { Meta, StoryFn } from "@storybook/react"; +import type { Meta, StoryFn } from "@storybook/react"; import { HeroBackground, HeroContent, PageContent, Text } from "@ndla/primitives"; import { styled } from "@ndla/styled-system/jsx"; import { ContentTypeHero } from "./ContentTypeHero"; diff --git a/packages/ndla-ui/src/ContentTypeHero/ContentTypeHero.tsx b/packages/ndla-ui/src/ContentTypeHero/ContentTypeHero.tsx index b07815b1cc..e80c700a64 100644 --- a/packages/ndla-ui/src/ContentTypeHero/ContentTypeHero.tsx +++ b/packages/ndla-ui/src/ContentTypeHero/ContentTypeHero.tsx @@ -7,8 +7,8 @@ */ import { forwardRef } from "react"; -import { Hero, HeroProps, HeroVariant } from "@ndla/primitives"; -import { ContentType } from "../ContentTypeBadge/ContentTypeBadgeNew"; +import { Hero, type HeroProps, type HeroVariant } from "@ndla/primitives"; +import type { ContentType } from "../ContentTypeBadge/ContentTypeBadge"; import * as contentTypes from "../model/ContentType"; export const contentTypeToHeroMap: Record = { @@ -29,6 +29,12 @@ export const contentTypeToHeroMap: Record = { [contentTypes.PODCAST]: "primary", [contentTypes.VIDEO]: "primary", [contentTypes.MISSING]: "neutral", + [contentTypes.GLOSS]: "brand1Moderate", + // this will never happen + [contentTypes.PROGRAMME]: "primary", + // this will never happen + [contentTypes.PODCAST_SERIES]: "primary", + [contentTypes.FRONTPAGE_ARTICLE]: "primary", }; export interface ContentTypeHeroProps extends HeroProps { diff --git a/packages/ndla-ui/src/CopyParagraphButton/CopyParagraphButton.tsx b/packages/ndla-ui/src/CopyParagraphButton/CopyParagraphButton.tsx index dab95f55aa..2a62c90f1f 100644 --- a/packages/ndla-ui/src/CopyParagraphButton/CopyParagraphButton.tsx +++ b/packages/ndla-ui/src/CopyParagraphButton/CopyParagraphButton.tsx @@ -6,9 +6,9 @@ * */ -import { ReactNode, useCallback, useEffect, useMemo, useState } from "react"; +import { type ReactNode, useCallback, useEffect, useMemo, useState } from "react"; import { useTranslation } from "react-i18next"; -import { LinkMedium } from "@ndla/icons/editor"; +import { LinkMedium } from "@ndla/icons"; import { IconButton } from "@ndla/primitives"; import { styled } from "@ndla/styled-system/jsx"; import { copyTextToClipboard } from "@ndla/util"; diff --git a/packages/ndla-ui/src/Embed/AudioEmbed.stories.tsx b/packages/ndla-ui/src/Embed/AudioEmbed.stories.tsx index afff02afa7..164f3e85b5 100644 --- a/packages/ndla-ui/src/Embed/AudioEmbed.stories.tsx +++ b/packages/ndla-ui/src/Embed/AudioEmbed.stories.tsx @@ -6,9 +6,9 @@ * */ -import { Meta, StoryObj } from "@storybook/react"; +import type { Meta, StoryObj } from "@storybook/react"; import { PageContent } from "@ndla/primitives"; -import { AudioEmbedData, AudioMeta } from "@ndla/types-embed"; +import type { AudioEmbedData, AudioMeta } from "@ndla/types-embed"; import AudioEmbed from "./AudioEmbed"; import { ArticleContent, ArticleWrapper } from "../Article"; diff --git a/packages/ndla-ui/src/Embed/AudioEmbed.tsx b/packages/ndla-ui/src/Embed/AudioEmbed.tsx index 34745c276d..25e912b000 100644 --- a/packages/ndla-ui/src/Embed/AudioEmbed.tsx +++ b/packages/ndla-ui/src/Embed/AudioEmbed.tsx @@ -7,9 +7,9 @@ */ import { Figure } from "@ndla/primitives"; -import { AudioMetaData } from "@ndla/types-embed"; +import type { AudioMetaData } from "@ndla/types-embed"; import EmbedErrorPlaceholder from "./EmbedErrorPlaceholder"; -import { Author } from "./ImageEmbed"; +import type { Author } from "./ImageEmbed"; import AudioPlayer from "../AudioPlayer"; import { EmbedByline } from "../LicenseByline"; import { licenseAttributes } from "../utils/licenseAttributes"; diff --git a/packages/ndla-ui/src/Embed/BrightcoveEmbed.stories.tsx b/packages/ndla-ui/src/Embed/BrightcoveEmbed.stories.tsx index 1791051cd6..2c66a2ec3a 100644 --- a/packages/ndla-ui/src/Embed/BrightcoveEmbed.stories.tsx +++ b/packages/ndla-ui/src/Embed/BrightcoveEmbed.stories.tsx @@ -6,9 +6,9 @@ * */ -import { Meta, StoryObj } from "@storybook/react"; +import type { Meta, StoryObj } from "@storybook/react"; import { PageContent } from "@ndla/primitives"; -import { BrightcoveData, BrightcoveEmbedData, BrightcoveMetaData } from "@ndla/types-embed"; +import type { BrightcoveData, BrightcoveEmbedData, BrightcoveMetaData } from "@ndla/types-embed"; import BrightcoveEmbed from "./BrightcoveEmbed"; import { ArticleContent, ArticleWrapper } from "../Article"; diff --git a/packages/ndla-ui/src/Embed/BrightcoveEmbed.tsx b/packages/ndla-ui/src/Embed/BrightcoveEmbed.tsx index 1659b2bb86..4e2bfb4ca0 100644 --- a/packages/ndla-ui/src/Embed/BrightcoveEmbed.tsx +++ b/packages/ndla-ui/src/Embed/BrightcoveEmbed.tsx @@ -11,9 +11,9 @@ import { useEffect, useMemo, useRef, useState } from "react"; import { useTranslation } from "react-i18next"; import { Button, Figure } from "@ndla/primitives"; import { styled } from "@ndla/styled-system/jsx"; -import { BrightcoveEmbedData, BrightcoveMetaData, BrightcoveVideoSource } from "@ndla/types-embed"; +import type { BrightcoveEmbedData, BrightcoveMetaData, BrightcoveVideoSource } from "@ndla/types-embed"; import EmbedErrorPlaceholder from "./EmbedErrorPlaceholder"; -import { RenderContext } from "./types"; +import type { RenderContext } from "./types"; import { EmbedByline } from "../LicenseByline"; import { licenseAttributes } from "../utils/licenseAttributes"; diff --git a/packages/ndla-ui/src/Embed/CodeEmbed.stories.tsx b/packages/ndla-ui/src/Embed/CodeEmbed.stories.tsx index 42fbd3c0ef..a83cd7eb9c 100644 --- a/packages/ndla-ui/src/Embed/CodeEmbed.stories.tsx +++ b/packages/ndla-ui/src/Embed/CodeEmbed.stories.tsx @@ -6,7 +6,7 @@ * */ -import { Meta, StoryObj } from "@storybook/react"; +import type { Meta, StoryObj } from "@storybook/react"; import type { CodeEmbedData, CodeMetaData } from "@ndla/types-embed"; import CodeEmbed from "./CodeEmbed"; diff --git a/packages/ndla-ui/src/Embed/CodeEmbed.tsx b/packages/ndla-ui/src/Embed/CodeEmbed.tsx index 51430072f9..03e3459134 100644 --- a/packages/ndla-ui/src/Embed/CodeEmbed.tsx +++ b/packages/ndla-ui/src/Embed/CodeEmbed.tsx @@ -8,15 +8,14 @@ import { useEffect, useState } from "react"; import { useTranslation } from "react-i18next"; -import { FileCopyLine } from "@ndla/icons/action"; -import { CheckLine } from "@ndla/icons/editor"; +import { FileCopyLine, CheckLine } from "@ndla/icons"; import { Button, Figure } from "@ndla/primitives"; import { styled } from "@ndla/styled-system/jsx"; -import { CodeMetaData } from "@ndla/types-embed"; +import type { CodeMetaData } from "@ndla/types-embed"; import { copyTextToClipboard } from "@ndla/util"; import EmbedErrorPlaceholder from "./EmbedErrorPlaceholder"; import { CodeBlock, codeLanguageOptions } from "../CodeBlock"; -import { ICodeLangugeOption } from "../CodeBlock/codeLanguageOptions"; +import type { ICodeLangugeOption } from "../CodeBlock/codeLanguageOptions"; interface Props { embed: CodeMetaData; diff --git a/packages/ndla-ui/src/Embed/ConceptEmbed.stories.tsx b/packages/ndla-ui/src/Embed/ConceptEmbed.stories.tsx index a61cb3c799..5a3c9f30cf 100644 --- a/packages/ndla-ui/src/Embed/ConceptEmbed.stories.tsx +++ b/packages/ndla-ui/src/Embed/ConceptEmbed.stories.tsx @@ -6,9 +6,9 @@ * */ -import { Meta, StoryObj } from "@storybook/react"; +import type { Meta, StoryObj } from "@storybook/react"; import { PageContent } from "@ndla/primitives"; -import { ConceptData, ConceptEmbedData } from "@ndla/types-embed"; +import type { ConceptData, ConceptEmbedData } from "@ndla/types-embed"; import { ConceptEmbed } from "./ConceptEmbed"; import { ArticleContent, ArticleWrapper } from "../Article"; diff --git a/packages/ndla-ui/src/Embed/ConceptEmbed.tsx b/packages/ndla-ui/src/Embed/ConceptEmbed.tsx index c71258c42a..342df61a31 100644 --- a/packages/ndla-ui/src/Embed/ConceptEmbed.tsx +++ b/packages/ndla-ui/src/Embed/ConceptEmbed.tsx @@ -11,12 +11,12 @@ import { forwardRef, useMemo, useRef } from "react"; import { Portal } from "@ark-ui/react"; import { PopoverContent, PopoverRoot, PopoverTrigger } from "@ndla/primitives"; import { styled } from "@ndla/styled-system/jsx"; -import { ConceptMetaData } from "@ndla/types-embed"; +import type { ConceptMetaData } from "@ndla/types-embed"; import { ConceptInlineTriggerButton } from "./ConceptInlineTriggerButton"; import EmbedErrorPlaceholder from "./EmbedErrorPlaceholder"; import { GlossEmbed } from "./GlossEmbed"; -import { RenderContext } from "./types"; -import { Concept, ConceptProps } from "../Concept/Concept"; +import type { RenderContext } from "./types"; +import { Concept, type ConceptProps } from "../Concept/Concept"; interface BaseProps { renderContext?: RenderContext; diff --git a/packages/ndla-ui/src/Embed/ContentLinkEmbed.tsx b/packages/ndla-ui/src/Embed/ContentLinkEmbed.tsx index a11e2f49be..7a1ed84cc2 100644 --- a/packages/ndla-ui/src/Embed/ContentLinkEmbed.tsx +++ b/packages/ndla-ui/src/Embed/ContentLinkEmbed.tsx @@ -6,10 +6,10 @@ * */ -import { ReactNode } from "react"; +import type { ReactNode } from "react"; import { useTranslation } from "react-i18next"; import { Text } from "@ndla/primitives"; -import { ContentLinkMetaData } from "@ndla/types-embed"; +import type { ContentLinkMetaData } from "@ndla/types-embed"; interface Props { embed: ContentLinkMetaData; diff --git a/packages/ndla-ui/src/Embed/CopyrightEmbed.tsx b/packages/ndla-ui/src/Embed/CopyrightEmbed.tsx index 39c299ceae..4532a0072d 100644 --- a/packages/ndla-ui/src/Embed/CopyrightEmbed.tsx +++ b/packages/ndla-ui/src/Embed/CopyrightEmbed.tsx @@ -6,9 +6,9 @@ * */ -import { ReactNode } from "react"; +import type { ReactNode } from "react"; import { styled } from "@ndla/styled-system/jsx"; -import { CopyrightMetaData } from "@ndla/types-embed"; +import type { CopyrightMetaData } from "@ndla/types-embed"; import { EmbedByline } from "../LicenseByline"; interface Props { diff --git a/packages/ndla-ui/src/Embed/EmbedErrorPlaceholder.tsx b/packages/ndla-ui/src/Embed/EmbedErrorPlaceholder.tsx index 0c57d82bc6..1d43d972af 100644 --- a/packages/ndla-ui/src/Embed/EmbedErrorPlaceholder.tsx +++ b/packages/ndla-ui/src/Embed/EmbedErrorPlaceholder.tsx @@ -6,12 +6,12 @@ * */ -import { ReactNode } from "react"; -import { Report } from "@ndla/icons/common"; +import { type ReactNode } from "react"; +import { ErrorWarningLine } from "@ndla/icons"; import { Figure, type FigureFloat, type FigureSize } from "@ndla/primitives"; import { styled } from "@ndla/styled-system/jsx"; import { EmbedByline } from "../LicenseByline"; -import { EmbedBylineErrorProps } from "../LicenseByline/EmbedByline"; +import { type EmbedBylineErrorProps } from "../LicenseByline/EmbedByline"; interface Props { type: EmbedBylineErrorProps["type"]; @@ -51,7 +51,7 @@ const EmbedErrorPlaceholder = ({ type, children, figureType, float }: Props) => {children ?? ( - + )} diff --git a/packages/ndla-ui/src/Embed/EmbedWrapper.tsx b/packages/ndla-ui/src/Embed/EmbedWrapper.tsx index e62f3a8b9b..fdd32a5070 100644 --- a/packages/ndla-ui/src/Embed/EmbedWrapper.tsx +++ b/packages/ndla-ui/src/Embed/EmbedWrapper.tsx @@ -10,7 +10,7 @@ import { forwardRef } from "react"; import { ark, type HTMLArkProps } from "@ark-ui/react"; import { css, cva } from "@ndla/styled-system/css"; import { styled } from "@ndla/styled-system/jsx"; -import { JsxStyleProps, RecipeVariantProps } from "@ndla/styled-system/types"; +import type { JsxStyleProps, RecipeVariantProps } from "@ndla/styled-system/types"; const embedWrapperRecipe = cva({ base: { diff --git a/packages/ndla-ui/src/Embed/ExternalEmbed.stories.tsx b/packages/ndla-ui/src/Embed/ExternalEmbed.stories.tsx index 384a594dfd..f131205e89 100644 --- a/packages/ndla-ui/src/Embed/ExternalEmbed.stories.tsx +++ b/packages/ndla-ui/src/Embed/ExternalEmbed.stories.tsx @@ -6,9 +6,9 @@ * */ -import { Meta, StoryObj } from "@storybook/react"; +import type { Meta, StoryObj } from "@storybook/react"; import { PageContent } from "@ndla/primitives"; -import { OembedEmbedData, OembedData } from "@ndla/types-embed"; +import type { OembedEmbedData, OembedData } from "@ndla/types-embed"; import ExternalEmbed from "./ExternalEmbed"; import { ArticleWrapper, ArticleContent } from "../Article"; diff --git a/packages/ndla-ui/src/Embed/ExternalEmbed.tsx b/packages/ndla-ui/src/Embed/ExternalEmbed.tsx index 4a6f2f3736..ff57727db3 100644 --- a/packages/ndla-ui/src/Embed/ExternalEmbed.tsx +++ b/packages/ndla-ui/src/Embed/ExternalEmbed.tsx @@ -10,7 +10,7 @@ import { useEffect, useRef } from "react"; import { useTranslation } from "react-i18next"; import { Figure } from "@ndla/primitives"; import { styled } from "@ndla/styled-system/jsx"; -import { OembedMetaData } from "@ndla/types-embed"; +import type { OembedMetaData } from "@ndla/types-embed"; import EmbedErrorPlaceholder from "./EmbedErrorPlaceholder"; import { ResourceBox } from "../ResourceBox"; diff --git a/packages/ndla-ui/src/Embed/FootnoteEmbed.stories.tsx b/packages/ndla-ui/src/Embed/FootnoteEmbed.stories.tsx index 68d2983981..19b3fb9f00 100644 --- a/packages/ndla-ui/src/Embed/FootnoteEmbed.stories.tsx +++ b/packages/ndla-ui/src/Embed/FootnoteEmbed.stories.tsx @@ -6,8 +6,8 @@ * */ -import { Meta, StoryFn, StoryObj } from "@storybook/react"; -import { FootnoteData, FootnoteEmbedData } from "@ndla/types-embed"; +import type { Meta, StoryFn, StoryObj } from "@storybook/react"; +import type { FootnoteData, FootnoteEmbedData } from "@ndla/types-embed"; import FootnoteEmbed from "./FootnoteEmbed"; import { ArticleByline } from "../Article"; diff --git a/packages/ndla-ui/src/Embed/FootnoteEmbed.tsx b/packages/ndla-ui/src/Embed/FootnoteEmbed.tsx index 789b8dcbe9..b9336aa788 100644 --- a/packages/ndla-ui/src/Embed/FootnoteEmbed.tsx +++ b/packages/ndla-ui/src/Embed/FootnoteEmbed.tsx @@ -8,7 +8,7 @@ import { useTranslation } from "react-i18next"; import { styled } from "@ndla/styled-system/jsx"; -import { FootnoteMetaData } from "@ndla/types-embed"; +import type { FootnoteMetaData } from "@ndla/types-embed"; interface Props { embed: FootnoteMetaData; diff --git a/packages/ndla-ui/src/Embed/GlossEmbed.stories.tsx b/packages/ndla-ui/src/Embed/GlossEmbed.stories.tsx index f7b37fe2a5..2c50f646dc 100644 --- a/packages/ndla-ui/src/Embed/GlossEmbed.stories.tsx +++ b/packages/ndla-ui/src/Embed/GlossEmbed.stories.tsx @@ -6,8 +6,8 @@ * */ -import { Meta, StoryObj } from "@storybook/react"; -import { ConceptData, ConceptEmbedData } from "@ndla/types-embed"; +import type { Meta, StoryObj } from "@storybook/react"; +import type { ConceptData, ConceptEmbedData } from "@ndla/types-embed"; import { GlossEmbed } from "./GlossEmbed"; const glossBlockEmbedData: ConceptEmbedData = { diff --git a/packages/ndla-ui/src/Embed/GlossEmbed.tsx b/packages/ndla-ui/src/Embed/GlossEmbed.tsx index 9c28611ea3..66c97933ba 100644 --- a/packages/ndla-ui/src/Embed/GlossEmbed.tsx +++ b/packages/ndla-ui/src/Embed/GlossEmbed.tsx @@ -10,7 +10,7 @@ import { useRef } from "react"; import { Portal } from "@ark-ui/react"; import { Figure, PopoverContent, PopoverRoot, PopoverTrigger } from "@ndla/primitives"; import { styled } from "@ndla/styled-system/jsx"; -import { ConceptMetaData } from "@ndla/types-embed"; +import type { ConceptMetaData } from "@ndla/types-embed"; import { ConceptInlineTriggerButton } from "./ConceptInlineTriggerButton"; import EmbedErrorPlaceholder from "./EmbedErrorPlaceholder"; import { Gloss } from "../Gloss"; diff --git a/packages/ndla-ui/src/Embed/H5pEmbed.stories.tsx b/packages/ndla-ui/src/Embed/H5pEmbed.stories.tsx index 70000d6184..9233517d62 100644 --- a/packages/ndla-ui/src/Embed/H5pEmbed.stories.tsx +++ b/packages/ndla-ui/src/Embed/H5pEmbed.stories.tsx @@ -6,9 +6,9 @@ * */ -import { Meta, StoryObj } from "@storybook/react"; +import type { Meta, StoryObj } from "@storybook/react"; import { PageContent } from "@ndla/primitives"; -import { H5pEmbedData, H5pData } from "@ndla/types-embed"; +import type { H5pEmbedData, H5pData } from "@ndla/types-embed"; import H5pEmbed from "./H5pEmbed"; import { ArticleWrapper, ArticleContent } from "../Article"; diff --git a/packages/ndla-ui/src/Embed/H5pEmbed.tsx b/packages/ndla-ui/src/Embed/H5pEmbed.tsx index ce05d96c8f..42705031ff 100644 --- a/packages/ndla-ui/src/Embed/H5pEmbed.tsx +++ b/packages/ndla-ui/src/Embed/H5pEmbed.tsx @@ -8,7 +8,7 @@ import { Figure } from "@ndla/primitives"; import { styled } from "@ndla/styled-system/jsx"; -import { H5pMetaData } from "@ndla/types-embed"; +import type { H5pMetaData } from "@ndla/types-embed"; import EmbedErrorPlaceholder from "./EmbedErrorPlaceholder"; interface Props { diff --git a/packages/ndla-ui/src/Embed/IframeEmbed.stories.tsx b/packages/ndla-ui/src/Embed/IframeEmbed.stories.tsx index 463cd0b7fd..499e082dc1 100644 --- a/packages/ndla-ui/src/Embed/IframeEmbed.stories.tsx +++ b/packages/ndla-ui/src/Embed/IframeEmbed.stories.tsx @@ -6,9 +6,9 @@ * */ -import { Meta, StoryObj } from "@storybook/react"; +import type { Meta, StoryObj } from "@storybook/react"; import { PageContent } from "@ndla/primitives"; -import { IframeData, IframeEmbedData } from "@ndla/types-embed"; +import type { IframeData, IframeEmbedData } from "@ndla/types-embed"; import IframeEmbed from "./IframeEmbed"; import { ArticleWrapper, ArticleContent } from "../Article"; diff --git a/packages/ndla-ui/src/Embed/IframeEmbed.tsx b/packages/ndla-ui/src/Embed/IframeEmbed.tsx index b821e413e2..5afa146ace 100644 --- a/packages/ndla-ui/src/Embed/IframeEmbed.tsx +++ b/packages/ndla-ui/src/Embed/IframeEmbed.tsx @@ -10,7 +10,7 @@ import { useEffect, useRef } from "react"; import { useTranslation } from "react-i18next"; import { Figure } from "@ndla/primitives"; import { styled } from "@ndla/styled-system/jsx"; -import { IframeMetaData } from "@ndla/types-embed"; +import type { IframeMetaData } from "@ndla/types-embed"; import EmbedErrorPlaceholder from "./EmbedErrorPlaceholder"; import { ResourceBox } from "../ResourceBox"; diff --git a/packages/ndla-ui/src/Embed/ImageEmbed.stories.tsx b/packages/ndla-ui/src/Embed/ImageEmbed.stories.tsx index 955ae06c95..bd9aa6b508 100644 --- a/packages/ndla-ui/src/Embed/ImageEmbed.stories.tsx +++ b/packages/ndla-ui/src/Embed/ImageEmbed.stories.tsx @@ -6,12 +6,12 @@ * */ -import { ReactNode } from "react"; -import { Meta, StoryFn, StoryObj } from "@storybook/react"; +import type { ReactNode } from "react"; +import type { Meta, StoryFn, StoryObj } from "@storybook/react"; import { PageContent, Text } from "@ndla/primitives"; import { styled } from "@ndla/styled-system/jsx"; -import { IImageMetaInformationV3 } from "@ndla/types-backend/image-api"; -import { ImageEmbedData } from "@ndla/types-embed"; +import type { IImageMetaInformationV3 } from "@ndla/types-backend/image-api"; +import type { ImageEmbedData } from "@ndla/types-embed"; import ImageEmbed from "./ImageEmbed"; import { ArticleWrapper, ArticleContent } from "../Article"; import { Grid } from "../Grid"; diff --git a/packages/ndla-ui/src/Embed/ImageEmbed.tsx b/packages/ndla-ui/src/Embed/ImageEmbed.tsx index b6d0cca5ed..a2d0480c57 100644 --- a/packages/ndla-ui/src/Embed/ImageEmbed.tsx +++ b/packages/ndla-ui/src/Embed/ImageEmbed.tsx @@ -7,14 +7,14 @@ */ import parse from "html-react-parser"; -import { ReactNode, useMemo, useState } from "react"; +import { type ReactNode, useMemo, useState } from "react"; import { useTranslation } from "react-i18next"; -import { AddLine } from "@ndla/icons/action"; -import { Figure, FigureSize, FigureVariantProps, Image } from "@ndla/primitives"; +import { AddLine } from "@ndla/icons"; +import { Figure, type FigureSize, type FigureVariantProps, Image } from "@ndla/primitives"; import { styled } from "@ndla/styled-system/jsx"; -import { ImageEmbedData, ImageMetaData } from "@ndla/types-embed"; +import type { ImageEmbedData, ImageMetaData } from "@ndla/types-embed"; import EmbedErrorPlaceholder from "./EmbedErrorPlaceholder"; -import { RenderContext } from "./types"; +import type { RenderContext } from "./types"; import { EmbedByline } from "../LicenseByline"; import { licenseAttributes } from "../utils/licenseAttributes"; @@ -43,8 +43,6 @@ export const getLicenseCredits = (copyright?: { }; }; -export const errorSvgSrc = `data:image/svg+xml;charset=UTF-8,%3Csvg fill='%238A8888' height='400' viewBox='0 0 24 12' width='100%25' xmlns='http://www.w3.org/2000/svg' style='background-color: %23EFF0F2'%3E%3Cpath d='M0 0h24v24H0V0z' fill='none'/%3E%3Cpath transform='scale(0.3) translate(28, 8.5)' d='M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z'/%3E%3C/svg%3E`; - const getFigureProps = (size?: string, float?: string): FigureVariantProps => { const actualFloat = float === "left" ? "left" : float === "right" ? "right" : undefined; const replacedSize = size?.replace("-hide-byline", "") ?? "full"; diff --git a/packages/ndla-ui/src/Embed/InlineTriggerButton.tsx b/packages/ndla-ui/src/Embed/InlineTriggerButton.tsx index 45c6c4ffa9..16ac821888 100644 --- a/packages/ndla-ui/src/Embed/InlineTriggerButton.tsx +++ b/packages/ndla-ui/src/Embed/InlineTriggerButton.tsx @@ -6,7 +6,7 @@ * */ -import { ComponentPropsWithRef, KeyboardEvent, forwardRef, useCallback, useRef } from "react"; +import { type ComponentPropsWithRef, type KeyboardEvent, forwardRef, useCallback, useRef } from "react"; import { styled } from "@ndla/styled-system/jsx"; import { composeRefs } from "@ndla/util"; diff --git a/packages/ndla-ui/src/Embed/RelatedContentEmbed.stories.tsx b/packages/ndla-ui/src/Embed/RelatedContentEmbed.stories.tsx index 2d35d81d8a..056d48cdc4 100644 --- a/packages/ndla-ui/src/Embed/RelatedContentEmbed.stories.tsx +++ b/packages/ndla-ui/src/Embed/RelatedContentEmbed.stories.tsx @@ -6,9 +6,9 @@ * */ -import { Meta, StoryObj } from "@storybook/react"; +import type { Meta, StoryObj } from "@storybook/react"; import { PageContent } from "@ndla/primitives"; -import { RelatedContentMetaData } from "@ndla/types-embed"; +import type { RelatedContentMetaData } from "@ndla/types-embed"; import RelatedContentEmbed from "./RelatedContentEmbed"; import { ArticleWrapper, ArticleContent } from "../Article"; import RelatedArticleList from "../RelatedArticleList"; diff --git a/packages/ndla-ui/src/Embed/RelatedContentEmbed.tsx b/packages/ndla-ui/src/Embed/RelatedContentEmbed.tsx index 49f6e68975..5baa38e151 100644 --- a/packages/ndla-ui/src/Embed/RelatedContentEmbed.tsx +++ b/packages/ndla-ui/src/Embed/RelatedContentEmbed.tsx @@ -7,7 +7,7 @@ */ import { useTranslation } from "react-i18next"; -import { RelatedContentMetaData } from "@ndla/types-embed"; +import type { RelatedContentMetaData } from "@ndla/types-embed"; import { contentTypeMapping } from "../model/ContentType"; import { RelatedArticle } from "../RelatedArticleList/RelatedArticleList"; @@ -21,7 +21,7 @@ interface Props { const RelatedContentEmbed = ({ embed, isOembed, subject, ndlaFrontendDomain }: Props) => { const { t } = useTranslation(); if (embed.status === "error") { - return <>; + return null; } const { data, embedData } = embed; @@ -55,7 +55,7 @@ const RelatedContentEmbed = ({ embed, isOembed, subject, ndlaFrontendDomain }: P /> ); } - return <>; + return null; }; export default RelatedContentEmbed; diff --git a/packages/ndla-ui/src/Embed/UnknownEmbed.tsx b/packages/ndla-ui/src/Embed/UnknownEmbed.tsx index 32e3a2a952..b28fb5be83 100644 --- a/packages/ndla-ui/src/Embed/UnknownEmbed.tsx +++ b/packages/ndla-ui/src/Embed/UnknownEmbed.tsx @@ -8,7 +8,7 @@ import { useTranslation } from "react-i18next"; import { Text } from "@ndla/primitives"; -import { MetaData } from "@ndla/types-embed"; +import type { MetaData } from "@ndla/types-embed"; interface Props { embed: MetaData; diff --git a/packages/ndla-ui/src/Embed/UuDisclaimerEmbed.stories.tsx b/packages/ndla-ui/src/Embed/UuDisclaimerEmbed.stories.tsx index a4839ed8e1..9101cb9fa2 100644 --- a/packages/ndla-ui/src/Embed/UuDisclaimerEmbed.stories.tsx +++ b/packages/ndla-ui/src/Embed/UuDisclaimerEmbed.stories.tsx @@ -6,9 +6,9 @@ * */ -import { Meta, StoryObj } from "@storybook/react"; +import type { Meta, StoryObj } from "@storybook/react"; import { ExpandableBox, ExpandableBoxSummary, FramedContent, PageContent } from "@ndla/primitives"; -import { UuDisclaimerEmbedData } from "@ndla/types-embed"; +import type { UuDisclaimerEmbedData } from "@ndla/types-embed"; import H5pEmbed from "./H5pEmbed"; import IframeEmbed from "./IframeEmbed"; import UuDisclaimerEmbed from "./UuDisclaimerEmbed"; diff --git a/packages/ndla-ui/src/Embed/UuDisclaimerEmbed.tsx b/packages/ndla-ui/src/Embed/UuDisclaimerEmbed.tsx index 5e4553a4f0..b1b44bfc7d 100644 --- a/packages/ndla-ui/src/Embed/UuDisclaimerEmbed.tsx +++ b/packages/ndla-ui/src/Embed/UuDisclaimerEmbed.tsx @@ -6,12 +6,12 @@ * */ -import { ReactNode } from "react"; -import { InformationLine } from "@ndla/icons/common"; +import { type ReactNode } from "react"; +import { InformationLine } from "@ndla/icons"; import { MessageBox } from "@ndla/primitives"; import { SafeLink } from "@ndla/safelink"; import { styled } from "@ndla/styled-system/jsx"; -import { UuDisclaimerMetaData } from "@ndla/types-embed"; +import type { UuDisclaimerMetaData } from "@ndla/types-embed"; interface Props { embed: UuDisclaimerMetaData; diff --git a/packages/ndla-ui/src/Embed/types.ts b/packages/ndla-ui/src/Embed/types.ts index 8372b5048d..2bf95321cf 100644 --- a/packages/ndla-ui/src/Embed/types.ts +++ b/packages/ndla-ui/src/Embed/types.ts @@ -6,9 +6,9 @@ * */ -import { ElementType } from "react"; -import { IImageMetaInformationV3 } from "@ndla/types-backend/image-api"; -import { EmbedMetaData } from "@ndla/types-embed"; +import type { ElementType } from "react"; +import type { IImageMetaInformationV3 } from "@ndla/types-backend/image-api"; +import type { EmbedMetaData } from "@ndla/types-embed"; export type HeartButtonType = ElementType<{ embed: Extract; diff --git a/packages/ndla-ui/src/ErrorMessage/ErrorMessage.stories.tsx b/packages/ndla-ui/src/ErrorMessage/ErrorMessage.stories.tsx index 9c99eeab5e..03a6096b88 100644 --- a/packages/ndla-ui/src/ErrorMessage/ErrorMessage.stories.tsx +++ b/packages/ndla-ui/src/ErrorMessage/ErrorMessage.stories.tsx @@ -6,9 +6,9 @@ * */ -import { Meta, StoryFn, StoryObj } from "@storybook/react"; +import type { Meta, StoryFn, StoryObj } from "@storybook/react"; import ErrorMessage from "./ErrorMessage"; -//@ts-ignore +// @ts-expect-error - It exists. import Oops from "../../../../images/oops.gif"; /** diff --git a/packages/ndla-ui/src/ErrorMessage/ErrorMessage.tsx b/packages/ndla-ui/src/ErrorMessage/ErrorMessage.tsx index c7ff34e439..c3ff624e5e 100644 --- a/packages/ndla-ui/src/ErrorMessage/ErrorMessage.tsx +++ b/packages/ndla-ui/src/ErrorMessage/ErrorMessage.tsx @@ -6,7 +6,7 @@ * */ -import { ReactNode } from "react"; +import { type ReactNode } from "react"; import { Text } from "@ndla/primitives"; import { SafeLink } from "@ndla/safelink"; import { styled } from "@ndla/styled-system/jsx"; @@ -76,27 +76,27 @@ interface Props { } export const ErrorMessage = ({ children, messages, illustration, illustrationElement, customElement }: Props) => ( - {illustration && ( + {!!illustration && ( {illustration.altText} )} - {illustrationElement && {illustrationElement}} + {!!illustrationElement && {illustrationElement}}

    {messages.title}

    - {messages.description && {messages.description}} - {customElement && {customElement}} - {messages.linksTitle &&

    {messages.linksTitle}

    } - {messages.back && ( + {!!messages.description && {messages.description}} + {!!customElement && {customElement}} + {!!messages.linksTitle &&

    {messages.linksTitle}

    } + {!!messages.back && ( window.history.back()}> {messages.back} )} - {messages.goToFrontPage && ( + {!!messages.goToFrontPage && ( {messages.goToFrontPage} )} - {messages.logInFailed && ( + {!!messages.logInFailed && ( {messages.logInFailed} diff --git a/packages/ndla-ui/src/ErrorMessage/ErrorResourceAccessDenied.tsx b/packages/ndla-ui/src/ErrorMessage/ErrorResourceAccessDenied.tsx index 02ecf1464c..5e96144a17 100644 --- a/packages/ndla-ui/src/ErrorMessage/ErrorResourceAccessDenied.tsx +++ b/packages/ndla-ui/src/ErrorMessage/ErrorResourceAccessDenied.tsx @@ -7,7 +7,7 @@ */ import { useTranslation } from "react-i18next"; -import { PresentationLine, LoginBoxLine } from "@ndla/icons/common"; +import { PresentationLine, LoginBoxLine } from "@ndla/icons"; import { Button } from "@ndla/primitives"; import { styled } from "@ndla/styled-system/jsx"; import ErrorMessage from "./ErrorMessage"; diff --git a/packages/ndla-ui/src/FactBox/FactBox.tsx b/packages/ndla-ui/src/FactBox/FactBox.tsx index fd8bc6b383..18b775e44c 100644 --- a/packages/ndla-ui/src/FactBox/FactBox.tsx +++ b/packages/ndla-ui/src/FactBox/FactBox.tsx @@ -6,9 +6,18 @@ * */ -import { ComponentProps, ReactNode, forwardRef, useCallback, useEffect, useId, useMemo, useState } from "react"; +import { + type ComponentProps, + type ReactNode, + forwardRef, + useCallback, + useEffect, + useId, + useMemo, + useState, +} from "react"; import { useTranslation } from "react-i18next"; -import { ArrowDownShortLine } from "@ndla/icons/common"; +import { ArrowDownShortLine } from "@ndla/icons"; import { IconButton } from "@ndla/primitives"; import { styled } from "@ndla/styled-system/jsx"; @@ -120,7 +129,7 @@ const FactBox = forwardRef( // TODO: Remove this hack when we upgrade to React 19. const inertAttribute = useMemo(() => { return state === "closed" ? { inert: "" } : {}; - }, [state]); + }, [state]) as { inert?: boolean }; useEffect(() => { if (open !== undefined) { diff --git a/packages/ndla-ui/src/FactBox/Factbox.stories.tsx b/packages/ndla-ui/src/FactBox/Factbox.stories.tsx index 1e8b516c9b..cdf393df2a 100644 --- a/packages/ndla-ui/src/FactBox/Factbox.stories.tsx +++ b/packages/ndla-ui/src/FactBox/Factbox.stories.tsx @@ -6,7 +6,7 @@ * */ -import { Meta, StoryObj } from "@storybook/react"; +import type { Meta, StoryObj } from "@storybook/react"; import { Button, Heading, UnOrderedList, OrderedList } from "@ndla/primitives"; import FactBox from "./FactBox"; diff --git a/packages/ndla-ui/src/FileList/File.tsx b/packages/ndla-ui/src/FileList/File.tsx index e16f009bca..a1354dd8b8 100644 --- a/packages/ndla-ui/src/FileList/File.tsx +++ b/packages/ndla-ui/src/FileList/File.tsx @@ -6,9 +6,9 @@ * */ -import { ComponentPropsWithRef, forwardRef } from "react"; +import { type ComponentPropsWithRef, forwardRef } from "react"; import { useTranslation } from "react-i18next"; -import { DownloadLine } from "@ndla/icons/common"; +import { DownloadLine } from "@ndla/icons"; import { Text } from "@ndla/primitives"; import { SafeLink } from "@ndla/safelink"; import { HStack, styled } from "@ndla/styled-system/jsx"; diff --git a/packages/ndla-ui/src/FileList/FileList.stories.tsx b/packages/ndla-ui/src/FileList/FileList.stories.tsx index 83591c6bbe..31e523ea90 100644 --- a/packages/ndla-ui/src/FileList/FileList.stories.tsx +++ b/packages/ndla-ui/src/FileList/FileList.stories.tsx @@ -6,9 +6,8 @@ * */ -import { Meta, StoryFn, StoryObj } from "@storybook/react"; -import { PencilFill, DeleteBinLine } from "@ndla/icons/action"; -import { DragVertical } from "@ndla/icons/editor"; +import type { Meta, StoryFn, StoryObj } from "@storybook/react"; +import { PencilFill, DeleteBinLine, Draggable } from "@ndla/icons"; import { IconButton } from "@ndla/primitives"; import { HStack, styled } from "@ndla/styled-system/jsx"; import { File } from "./File"; @@ -151,7 +150,7 @@ export const FilesWithDragHandle: StoryObj = {
      - + diff --git a/packages/ndla-ui/src/FileList/FileList.tsx b/packages/ndla-ui/src/FileList/FileList.tsx index 74254e0952..c150a3b029 100644 --- a/packages/ndla-ui/src/FileList/FileList.tsx +++ b/packages/ndla-ui/src/FileList/FileList.tsx @@ -6,7 +6,7 @@ * */ -import { ComponentPropsWithoutRef } from "react"; +import { type ComponentPropsWithoutRef } from "react"; import { ark } from "@ark-ui/react"; import { styled } from "@ndla/styled-system/jsx"; diff --git a/packages/ndla-ui/src/Gloss/Gloss.stories.tsx b/packages/ndla-ui/src/Gloss/Gloss.stories.tsx index a0f870970e..0ff9ac06bf 100644 --- a/packages/ndla-ui/src/Gloss/Gloss.stories.tsx +++ b/packages/ndla-ui/src/Gloss/Gloss.stories.tsx @@ -6,7 +6,7 @@ * */ -import { Meta, StoryObj, StoryFn } from "@storybook/react"; +import type { Meta, StoryObj, StoryFn } from "@storybook/react"; import Gloss from "./Gloss"; import GlossExample from "./GlossExample"; import { wordClass } from "../model/WordClass"; diff --git a/packages/ndla-ui/src/Gloss/Gloss.tsx b/packages/ndla-ui/src/Gloss/Gloss.tsx index d5e28491f8..3ff6016ea2 100644 --- a/packages/ndla-ui/src/Gloss/Gloss.tsx +++ b/packages/ndla-ui/src/Gloss/Gloss.tsx @@ -9,7 +9,7 @@ import { useMemo } from "react"; import { useTranslation } from "react-i18next"; import { AccordionItemTrigger } from "@ark-ui/react"; -import { ArrowDownShortLine } from "@ndla/icons/common"; +import { ArrowDownShortLine } from "@ndla/icons"; import { AccordionItem, AccordionItemContent, @@ -19,7 +19,7 @@ import { Text, } from "@ndla/primitives"; import { styled } from "@ndla/styled-system/jsx"; -import { type StyledVariantProps } from "@ndla/styled-system/types"; +import type { StyledVariantProps } from "@ndla/styled-system/types"; import type { IGlossData, IGlossExample } from "@ndla/types-backend/concept-api"; import GlossExample from "./GlossExample"; import SpeechControl from "../AudioPlayer/SpeechControl"; @@ -131,7 +131,7 @@ const Gloss = ({ title, glossData, audio, exampleIds, exampleLangs, variant }: P {glossData.gloss} - {glossData.transcriptions.traditional && ( + {!!glossData.transcriptions.traditional && ( )} - {glossData.transcriptions.pinyin && ( + {!!glossData.transcriptions.pinyin && ( )} - {glossData.wordClass && ( + {!!glossData.wordClass && ( {t(`wordClass.${glossData.wordClass}`).toLowerCase()} )} - {audio?.src && } + {!!audio?.src && } diff --git a/packages/ndla-ui/src/Gloss/GlossExample.tsx b/packages/ndla-ui/src/Gloss/GlossExample.tsx index 80daef29d0..cfba630aa9 100644 --- a/packages/ndla-ui/src/Gloss/GlossExample.tsx +++ b/packages/ndla-ui/src/Gloss/GlossExample.tsx @@ -9,7 +9,7 @@ import { Fragment } from "react"; import { Text } from "@ndla/primitives"; import { styled } from "@ndla/styled-system/jsx"; -import { IGlossExample } from "@ndla/types-backend/concept-api"; +import type { IGlossExample } from "@ndla/types-backend/concept-api"; interface Props { examples: IGlossExample[]; diff --git a/packages/ndla-ui/src/Grid/Grid.stories.tsx b/packages/ndla-ui/src/Grid/Grid.stories.tsx index cdac0a05ac..8b831cbd5a 100644 --- a/packages/ndla-ui/src/Grid/Grid.stories.tsx +++ b/packages/ndla-ui/src/Grid/Grid.stories.tsx @@ -6,7 +6,7 @@ * */ -import { Meta, StoryFn } from "@storybook/react"; +import type { Meta, StoryFn } from "@storybook/react"; import { PageContent } from "@ndla/primitives"; import { ArticleContent, ArticleWrapper } from "@ndla/ui"; import { Grid } from "./Grid"; @@ -64,8 +64,11 @@ export const GridPitchStory: StoryFn = ({ ...args }) => { const items = new Array(columns).fill(
      diff --git a/packages/ndla-ui/src/Grid/Grid.tsx b/packages/ndla-ui/src/Grid/Grid.tsx index 9a12266878..c3cfc8b49e 100644 --- a/packages/ndla-ui/src/Grid/Grid.tsx +++ b/packages/ndla-ui/src/Grid/Grid.tsx @@ -6,7 +6,7 @@ * */ -import { ReactNode } from "react"; +import { type ReactNode } from "react"; import { styled } from "@ndla/styled-system/jsx"; const GridContainer = styled("div", { diff --git a/packages/ndla-ui/src/Grid/GridParallaxItem.tsx b/packages/ndla-ui/src/Grid/GridParallaxItem.tsx index 06212a3041..9a97dce407 100644 --- a/packages/ndla-ui/src/Grid/GridParallaxItem.tsx +++ b/packages/ndla-ui/src/Grid/GridParallaxItem.tsx @@ -6,7 +6,7 @@ * */ -import { HTMLAttributes } from "react"; +import { type HTMLAttributes } from "react"; import { styled } from "@ndla/styled-system/jsx"; const StyledGridParallaxItem = styled("div", { diff --git a/packages/ndla-ui/src/KeyFigure/KeyFigure.stories.tsx b/packages/ndla-ui/src/KeyFigure/KeyFigure.stories.tsx index d3e9e23ae5..16bf53bd54 100644 --- a/packages/ndla-ui/src/KeyFigure/KeyFigure.stories.tsx +++ b/packages/ndla-ui/src/KeyFigure/KeyFigure.stories.tsx @@ -6,8 +6,8 @@ * */ -import { Meta, StoryFn, StoryObj } from "@storybook/react"; -import KeyFigure from "./KeyFigure"; +import type { Meta, StoryObj } from "@storybook/react"; +import KeyFigure, { type Props } from "./KeyFigure"; const args = { title: "22 000+", @@ -24,7 +24,7 @@ export default { args, } as Meta; -export const Plain: StoryFn = ({ ...args }) => { +export const Plain = ({ ...args }: Props) => { return ; }; diff --git a/packages/ndla-ui/src/KeyFigure/KeyFigure.tsx b/packages/ndla-ui/src/KeyFigure/KeyFigure.tsx index 1ed86ba5c8..8c2347f64b 100644 --- a/packages/ndla-ui/src/KeyFigure/KeyFigure.tsx +++ b/packages/ndla-ui/src/KeyFigure/KeyFigure.tsx @@ -45,7 +45,7 @@ const SubTitleWrapper = styled("div", { }, }); -interface Props { +export interface Props { image?: { src?: string; alt?: string; @@ -57,7 +57,7 @@ interface Props { const KeyFigure = ({ image, title, subtitle }: Props) => { return ( - {image && } + {!!image && } {parse(title)} {parse(subtitle)} diff --git a/packages/ndla-ui/src/Layout/OneColumn.tsx b/packages/ndla-ui/src/Layout/OneColumn.tsx deleted file mode 100644 index ae7e9148ff..0000000000 --- a/packages/ndla-ui/src/Layout/OneColumn.tsx +++ /dev/null @@ -1,44 +0,0 @@ -/** - * Copyright (c) 2016-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ - -import { styled } from "@ndla/styled-system/jsx"; - -// TODO: This is a rewrite of our old layout. Refactor this. -export const OneColumn = styled("div", { - base: { - marginLeft: "auto", - marginRight: "auto", - width: "100%", - paddingLeft: "18px", - paddingRight: "18px", - mobileWide: { - paddingLeft: "medium", - paddingRight: "medium", - }, - _after: { - content: '""!', - display: "block!", - clear: "both!", - }, - }, - defaultVariants: { - wide: false, - }, - variants: { - wide: { - true: { - maxWidth: "1150px", - }, - false: { - maxWidth: "1024px", - }, - }, - }, -}); - -export default OneColumn; diff --git a/packages/ndla-ui/src/Layout/PageContainer.tsx b/packages/ndla-ui/src/Layout/PageContainer.tsx deleted file mode 100644 index e22e30ae88..0000000000 --- a/packages/ndla-ui/src/Layout/PageContainer.tsx +++ /dev/null @@ -1,33 +0,0 @@ -/** - * Copyright (c) 2016-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ - -import { styled } from "@ndla/styled-system/jsx"; - -// TODO: Refactor this. It's a rewrite of our old layout. -export const PageContainer = styled("div", { - base: { - minHeight: "100vh", - display: "flex", - flexDirection: "column", - }, - defaultVariants: { - backgroundWide: false, - }, - variants: { - backgroundWide: { - true: { - tablet: { - backgroundColor: "#f8f8f8", - }, - }, - false: {}, - }, - }, -}); - -export default PageContainer; diff --git a/packages/ndla-ui/src/Layout/index.ts b/packages/ndla-ui/src/Layout/index.ts deleted file mode 100644 index 5a7ad780a4..0000000000 --- a/packages/ndla-ui/src/Layout/index.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * Copyright (c) 2016-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ - -export { default as OneColumn } from "./OneColumn"; -export { default as PageContainer } from "./PageContainer"; diff --git a/packages/ndla-ui/src/LicenseByline/EmbedByline.stories.tsx b/packages/ndla-ui/src/LicenseByline/EmbedByline.stories.tsx index 1889d8c3f2..28eb65177b 100644 --- a/packages/ndla-ui/src/LicenseByline/EmbedByline.stories.tsx +++ b/packages/ndla-ui/src/LicenseByline/EmbedByline.stories.tsx @@ -6,7 +6,7 @@ * */ -import { Meta, StoryFn, StoryObj } from "@storybook/react"; +import type { Meta, StoryFn, StoryObj } from "@storybook/react"; import { EmbedByline } from "./EmbedByline"; export default { diff --git a/packages/ndla-ui/src/LicenseByline/EmbedByline.tsx b/packages/ndla-ui/src/LicenseByline/EmbedByline.tsx index 2a44556827..0f30572945 100644 --- a/packages/ndla-ui/src/LicenseByline/EmbedByline.tsx +++ b/packages/ndla-ui/src/LicenseByline/EmbedByline.tsx @@ -6,17 +6,17 @@ * */ -import { Dispatch, ReactNode, SetStateAction, useState } from "react"; +import { type Dispatch, type ReactNode, type SetStateAction, useState } from "react"; import { useTranslation } from "react-i18next"; -import { AlertLine } from "@ndla/icons/common"; +import { AlertLine } from "@ndla/icons"; import { getLicenseByAbbreviation, getLicenseCredits } from "@ndla/licenses"; import { Button, Text } from "@ndla/primitives"; import { styled } from "@ndla/styled-system/jsx"; -import { ICopyright as ArticleCopyright } from "@ndla/types-backend/article-api"; -import { ICopyright as AudioCopyright } from "@ndla/types-backend/audio-api"; -import { IDraftCopyright as ConceptCopyright } from "@ndla/types-backend/concept-api"; -import { ICopyright as ImageCopyright } from "@ndla/types-backend/image-api"; -import { BrightcoveCopyright } from "@ndla/types-embed"; +import type { ICopyright as ArticleCopyright } from "@ndla/types-backend/article-api"; +import type { ICopyright as AudioCopyright } from "@ndla/types-backend/audio-api"; +import type { IDraftCopyright as ConceptCopyright } from "@ndla/types-backend/concept-api"; +import type { ICopyright as ImageCopyright } from "@ndla/types-backend/image-api"; +import type { BrightcoveCopyright } from "@ndla/types-embed"; import { LicenseLink } from "./LicenseLink"; interface BaseProps { @@ -141,7 +141,7 @@ export const EmbedByline = ({ type, description, children, visibleAlt, hideCopyr {!hideByline && (
      - {hideCopyright && description} + {!!hideCopyright && description} {!hideCopyright && ( {description} @@ -209,7 +209,7 @@ const StyledButton = styled(Button, { interface LicenseDescriptionProps { children?: ReactNode; - isOpen: Boolean; + isOpen: boolean; setIsOpen: Dispatch>; } diff --git a/packages/ndla-ui/src/LicenseByline/LicenseLink.tsx b/packages/ndla-ui/src/LicenseByline/LicenseLink.tsx index 51b07f7a32..52d07eb3b6 100644 --- a/packages/ndla-ui/src/LicenseByline/LicenseLink.tsx +++ b/packages/ndla-ui/src/LicenseByline/LicenseLink.tsx @@ -7,8 +7,8 @@ */ import { forwardRef } from "react"; -import { LicenseLocaleType } from "@ndla/licenses"; -import { SafeLink, SafeLinkProps } from "@ndla/safelink"; +import type { LicenseLocaleType } from "@ndla/licenses"; +import { SafeLink, type SafeLinkProps } from "@ndla/safelink"; import { styled } from "@ndla/styled-system/jsx"; interface Props extends Omit { diff --git a/packages/ndla-ui/src/LinkBlock/LinkBlock.stories.tsx b/packages/ndla-ui/src/LinkBlock/LinkBlock.stories.tsx index a8b9ea84bb..9d2612af99 100644 --- a/packages/ndla-ui/src/LinkBlock/LinkBlock.stories.tsx +++ b/packages/ndla-ui/src/LinkBlock/LinkBlock.stories.tsx @@ -6,7 +6,7 @@ * */ -import { Meta, StoryObj, StoryFn } from "@storybook/react"; +import type { Meta, StoryObj, StoryFn } from "@storybook/react"; import { LinkBlockSection } from "."; import LinkBlock from "./LinkBlock"; diff --git a/packages/ndla-ui/src/LinkBlock/LinkBlock.tsx b/packages/ndla-ui/src/LinkBlock/LinkBlock.tsx index 877362c28f..88b80f48c9 100644 --- a/packages/ndla-ui/src/LinkBlock/LinkBlock.tsx +++ b/packages/ndla-ui/src/LinkBlock/LinkBlock.tsx @@ -8,12 +8,11 @@ import parse from "html-react-parser"; import { useMemo } from "react"; -import { ArrowRightLine } from "@ndla/icons/common"; -import { CalendarLine } from "@ndla/icons/editor"; +import { ArrowRightLine, CalendarLine } from "@ndla/icons"; import { Heading } from "@ndla/primitives"; import { SafeLink } from "@ndla/safelink"; import { styled } from "@ndla/styled-system/jsx"; -import { LinkBlockEmbedData } from "@ndla/types-embed"; +import type { LinkBlockEmbedData } from "@ndla/types-embed"; import { getPossiblyRelativeUrl } from "../utils/relativeUrl"; const InfoWrapper = styled("div", { @@ -78,7 +77,7 @@ const LinkBlock = ({ title, articleLanguage, date, url, path }: Props) => { const formattedDate = useMemo(() => { if (!date) return null; return new Intl.DateTimeFormat(articleLanguage, { - timeZone: "UTC", + timeZone: "CET", day: "2-digit", month: "long", year: "numeric", @@ -90,7 +89,7 @@ const LinkBlock = ({ title, articleLanguage, date, url, path }: Props) => {

      {parse(title)}

      - {date && ( + {!!date && ( {formattedDate} diff --git a/packages/ndla-ui/src/LinkBlock/LinkBlockSection.tsx b/packages/ndla-ui/src/LinkBlock/LinkBlockSection.tsx index 950bed28c3..ed110ad8db 100644 --- a/packages/ndla-ui/src/LinkBlock/LinkBlockSection.tsx +++ b/packages/ndla-ui/src/LinkBlock/LinkBlockSection.tsx @@ -6,7 +6,7 @@ * */ -import { Children, HTMLAttributes, ReactNode } from "react"; +import { Children, type HTMLAttributes, type ReactNode } from "react"; import { styled } from "@ndla/styled-system/jsx"; interface Props extends HTMLAttributes { diff --git a/packages/ndla-ui/src/Pitch/Pitch.stories.tsx b/packages/ndla-ui/src/Pitch/Pitch.stories.tsx index 5b04a6c6c1..cb86caa210 100644 --- a/packages/ndla-ui/src/Pitch/Pitch.stories.tsx +++ b/packages/ndla-ui/src/Pitch/Pitch.stories.tsx @@ -6,9 +6,9 @@ * */ -import { Meta, StoryFn } from "@storybook/react"; +import type { Meta } from "@storybook/react"; import { PageContent } from "@ndla/primitives"; -import { Pitch, Props } from "./Pitch"; +import { Pitch, type Props } from "./Pitch"; import { ArticleContent, ArticleWrapper } from "../Article"; import { Grid } from "../Grid"; @@ -41,7 +41,7 @@ export default { ], } as Meta; -export const Default: StoryFn = ({ ...args }) => { +export const Default = ({ ...args }: Props) => { return (
      diff --git a/packages/ndla-ui/src/RelatedArticleList/RelatedArticleList.tsx b/packages/ndla-ui/src/RelatedArticleList/RelatedArticleList.tsx index d773b7cb47..43180e434e 100644 --- a/packages/ndla-ui/src/RelatedArticleList/RelatedArticleList.tsx +++ b/packages/ndla-ui/src/RelatedArticleList/RelatedArticleList.tsx @@ -6,16 +6,16 @@ * */ -import { Children, ComponentPropsWithoutRef, ReactNode, useMemo, useState } from "react"; +import { Children, type ComponentPropsWithoutRef, type ReactElement, type ReactNode, useMemo, useState } from "react"; import { useTranslation } from "react-i18next"; -import { ExternalLinkLine } from "@ndla/icons/common"; +import { ExternalLinkLine } from "@ndla/icons"; import { CardContent, CardHeading, CardRoot, Text, Heading, Button } from "@ndla/primitives"; import { SafeLink } from "@ndla/safelink"; import { styled } from "@ndla/styled-system/jsx"; import { linkOverlay } from "@ndla/styled-system/patterns"; -import { ContentTypeBadge } from "../ContentTypeBadge/ContentTypeBadgeNew"; +import { ContentTypeBadge } from "../ContentTypeBadge/ContentTypeBadge"; import { contentTypes } from "../model/ContentType"; -import { HeadingLevel } from "../types"; +import type { HeadingLevel } from "../types"; interface RelatedArticleProps { title: string; @@ -108,7 +108,7 @@ const StyledButton = styled(Button, { }); interface Props extends ComponentPropsWithoutRef<"section"> { - children?: JSX.Element[]; + children?: ReactElement[]; articleCount?: number; headingLevel?: HeadingLevel; headingButtons?: ReactNode; diff --git a/packages/ndla-ui/src/ResourceBox/ResourceBox.tsx b/packages/ndla-ui/src/ResourceBox/ResourceBox.tsx index 828234db8c..d2f38e93eb 100644 --- a/packages/ndla-ui/src/ResourceBox/ResourceBox.tsx +++ b/packages/ndla-ui/src/ResourceBox/ResourceBox.tsx @@ -7,7 +7,7 @@ */ import { breakpoints } from "@ndla/core"; -import { ShareBoxLine } from "@ndla/icons/common"; +import { ShareBoxLine } from "@ndla/icons"; import { Heading, Image, Text } from "@ndla/primitives"; import { SafeLinkButton } from "@ndla/safelink"; import { styled } from "@ndla/styled-system/jsx"; diff --git a/packages/ndla-ui/src/TagSelector/TagSelector.stories.tsx b/packages/ndla-ui/src/TagSelector/TagSelector.stories.tsx index d034902c8f..266705a75a 100644 --- a/packages/ndla-ui/src/TagSelector/TagSelector.stories.tsx +++ b/packages/ndla-ui/src/TagSelector/TagSelector.stories.tsx @@ -9,16 +9,13 @@ import { useState } from "react"; import { type ComboboxInputValueChangeDetails, createListCollection } from "@ark-ui/react"; -import { Meta, StoryFn } from "@storybook/react"; -import { CloseLine } from "@ndla/icons/action"; -import { ArrowDownShortLine } from "@ndla/icons/common"; -import { CheckLine } from "@ndla/icons/editor"; +import type { Meta, StoryFn } from "@storybook/react"; +import { CloseLine, ArrowDownShortLine, CheckLine } from "@ndla/icons"; import { ComboboxContent, ComboboxItem, ComboboxItemIndicator, ComboboxItemText, - ComboboxPositioner, IconButton, Input, InputContainer, @@ -95,18 +92,16 @@ export const Default: StoryFn = ({ translations, ...args - - - {options.map((item) => ( - - {item} - - - - - ))} - - + + {options.map((item) => ( + + {item} + + + + + ))} + ); }; diff --git a/packages/ndla-ui/src/TagSelector/TagSelector.tsx b/packages/ndla-ui/src/TagSelector/TagSelector.tsx index b9e72fc6d6..b4b4e1a8f7 100644 --- a/packages/ndla-ui/src/TagSelector/TagSelector.tsx +++ b/packages/ndla-ui/src/TagSelector/TagSelector.tsx @@ -7,29 +7,28 @@ */ import { forwardRef, useEffect, useId, useRef } from "react"; -import type { CollectionItem } from "@ark-ui/react"; -import { useTagsInputContext, useComboboxContext } from "@ark-ui/react"; -import { CloseLine } from "@ndla/icons/action"; +import { type CollectionItem, useTagsInputContext, useComboboxContext } from "@ark-ui/react"; +import { CloseLine } from "@ndla/icons"; import { ComboboxClearTrigger, ComboboxControl, - ComboboxControlProps, + type ComboboxControlProps, ComboboxInput, - ComboboxInputProps, + type ComboboxInputProps, ComboboxLabel, ComboboxRoot, - ComboboxRootProps, + type ComboboxRootProps, ComboboxTrigger, TagsInputControl, - TagsInputControlProps, + type TagsInputControlProps, TagsInputInput, - TagsInputInputProps, + type TagsInputInputProps, TagsInputItem, TagsInputItemDeleteTrigger, TagsInputItemPreview, TagsInputItemText, TagsInputRoot, - TagsInputRootProps, + type TagsInputRootProps, TagsInputItemInput, } from "@ndla/primitives"; import { contains } from "@ndla/util"; diff --git a/packages/ndla-ui/src/ZendeskButton/ZendeskButton.tsx b/packages/ndla-ui/src/ZendeskButton/ZendeskButton.tsx index 7e1fd62405..cef1b571a1 100644 --- a/packages/ndla-ui/src/ZendeskButton/ZendeskButton.tsx +++ b/packages/ndla-ui/src/ZendeskButton/ZendeskButton.tsx @@ -7,7 +7,7 @@ */ import { forwardRef, useState } from "react"; -import { Button, ButtonProps } from "@ndla/primitives"; +import { Button, type ButtonProps } from "@ndla/primitives"; // TODO: Let's consider abandoning `disabled` on the button here. It should instead just open/close the widget based on its current state. diff --git a/packages/ndla-ui/src/i18n/formatNestedMessages.ts b/packages/ndla-ui/src/i18n/formatNestedMessages.ts index f95ab60f83..30bca28023 100644 --- a/packages/ndla-ui/src/i18n/formatNestedMessages.ts +++ b/packages/ndla-ui/src/i18n/formatNestedMessages.ts @@ -21,7 +21,6 @@ export const formatNestedMessages = ( ) => { const messages = formattedMessages; - // eslint-disable-next-line Object.keys(phrases).forEach((key) => { const value = phrases[key]; if ({}.hasOwnProperty.call(phrases, key)) { diff --git a/packages/ndla-ui/src/i18n/useComponentTranslations.ts b/packages/ndla-ui/src/i18n/useComponentTranslations.ts index 568b370938..1900693f15 100644 --- a/packages/ndla-ui/src/i18n/useComponentTranslations.ts +++ b/packages/ndla-ui/src/i18n/useComponentTranslations.ts @@ -9,7 +9,7 @@ import { useTranslation } from "react-i18next"; import type { CollectionItem } from "@ark-ui/react"; import type { ComboboxRootProps, PaginationRootProps, TagsInputRootProps } from "@ndla/primitives"; -import { TagSelectorRootProps } from "../TagSelector/TagSelector"; +import { type TagSelectorRootProps } from "../TagSelector/TagSelector"; type DeepPartial = { [K in keyof T]?: T[K] extends object ? DeepPartial : T[K]; diff --git a/packages/ndla-ui/src/index.ts b/packages/ndla-ui/src/index.ts index 5037b6e934..f41daca04f 100644 --- a/packages/ndla-ui/src/index.ts +++ b/packages/ndla-ui/src/index.ts @@ -54,8 +54,6 @@ export { export { getPossiblyRelativeUrl } from "./utils/relativeUrl"; -export { default as ContentLoader } from "./ContentLoader"; - export { default as RelatedArticleList, RelatedArticle } from "./RelatedArticleList"; export { ErrorResourceAccessDenied, default as ErrorMessage } from "./ErrorMessage"; @@ -94,24 +92,8 @@ export { useVideoSearchTranslations, } from "./i18n"; -export { OneColumn, PageContainer } from "./Layout"; - -export { - default as ContentTypeBadge, - SubjectMaterialBadge, - TasksAndActivitiesBadge, - AssessmentResourcesBadge, - LearningPathBadge, - SubjectBadge, - SourceMaterialBadge, - ConceptBadge, -} from "./ContentTypeBadge"; - -export type { ContentTypeBadgeProps, StrictContentType, ContentType } from "./ContentTypeBadge/ContentTypeBadgeNew"; -export { - ContentTypeBadge as ContentTypeBadgeNew, - contentTypeToBadgeVariantMap, -} from "./ContentTypeBadge/ContentTypeBadgeNew"; +export type { ContentTypeBadgeProps, StrictContentType, ContentType } from "./ContentTypeBadge/ContentTypeBadge"; +export { ContentTypeBadge, contentTypeToBadgeVariantMap } from "./ContentTypeBadge/ContentTypeBadge"; export { ContentTypeBlockQuote } from "./ContentTypeBlockQuote/ContentTypeBlockQuote"; export { type ContentTypeBlockQuoteVariant } from "./ContentTypeBlockQuote/ContentTypeBlockQuote"; diff --git a/packages/ndla-ui/src/locale/messages-en.ts b/packages/ndla-ui/src/locale/messages-en.ts index fc4e931823..72216c09e1 100644 --- a/packages/ndla-ui/src/locale/messages-en.ts +++ b/packages/ndla-ui/src/locale/messages-en.ts @@ -556,6 +556,7 @@ const messages = { blog: "Blog", tips: "Tips to students", vacancies: "Vacancies", + contact: "Contact us", }, otherLanguages: "Other languages", }, @@ -580,6 +581,10 @@ const messages = { video: "Video", missing: "Unknown", external: "External", + gloss: "Gloss", + programme: "Programme", + "podcast-series": "Podcast series", + "frontpage-article": "About NDLA article", }, modal: { closeModal: "Close", @@ -822,6 +827,7 @@ const messages = { pause: "Pause", download: "Download audio", reuse: "Use audio", + progressBar: "Progress bar", error: { url: "Error loading the audio.", caption: "Sorry, an error occurred while loading the audio.", diff --git a/packages/ndla-ui/src/locale/messages-nb.ts b/packages/ndla-ui/src/locale/messages-nb.ts index d66a0c4e6e..99e88dd211 100644 --- a/packages/ndla-ui/src/locale/messages-nb.ts +++ b/packages/ndla-ui/src/locale/messages-nb.ts @@ -557,6 +557,7 @@ const messages = { blog: "Fagblogg", tips: "Tips til elever", vacancies: "Ledige stillinger", + contact: "Kontakt oss", }, otherLanguages: "Andre språk", }, @@ -581,6 +582,10 @@ const messages = { video: "Video", missing: "Ukjent", external: "Ekstern", + gloss: "Glose", + programme: "Programfag", + "podcast-series": "Podkast-serie", + "frontpage-article": "Om NDLA-artikkel", }, modal: { closeModal: "Lukk", @@ -823,6 +828,7 @@ const messages = { pause: "Pause", download: "Last ned lydfil", reuse: "Bruk lydfil", + progressBar: "Fremdriftsindikator", error: { url: "Feil ved lasting av lydfil.", caption: "Beklager, en feil oppstod ved lasting av lydfil.", diff --git a/packages/ndla-ui/src/locale/messages-nn.ts b/packages/ndla-ui/src/locale/messages-nn.ts index b10c3baa51..4dff84bf78 100644 --- a/packages/ndla-ui/src/locale/messages-nn.ts +++ b/packages/ndla-ui/src/locale/messages-nn.ts @@ -557,6 +557,7 @@ const messages = { blog: "Fagblogg", tips: "Tips til elevar", vacancies: "Ledige stillingar", + contact: "Kontakt oss", }, otherLanguages: "Andre språk", }, @@ -581,6 +582,10 @@ const messages = { video: "Video", missing: "Ukjent", external: "Ekstern", + gloss: "Glose", + programme: "Programfag", + "podcast-series": "Podkast-serie", + "frontpage-article": "Om NDLA-artikkel", }, modal: { closeModal: "Lukk", @@ -823,6 +828,7 @@ const messages = { pause: "Pause", download: "Last ned lydfil", reuse: "Bruk lydfil", + progressBar: "Framdriftsindikator", error: { url: "Feil ved lasting av lydfil.", caption: "Orsak, ein feil oppstod ved lasting av lydfil.", diff --git a/packages/ndla-ui/src/locale/messages-se.ts b/packages/ndla-ui/src/locale/messages-se.ts index 7f01e06ed3..b0cc2da75c 100644 --- a/packages/ndla-ui/src/locale/messages-se.ts +++ b/packages/ndla-ui/src/locale/messages-se.ts @@ -558,6 +558,7 @@ const messages = { blog: "Fágablogga", tips: "Cavgileapmi ohppiide", vacancies: "Rabas virggit", + contact: "Kontakt oss", }, otherLanguages: "Andre språk", }, @@ -582,6 +583,10 @@ const messages = { video: "Video", missing: "Ukjent", external: "Ekstern", + gloss: "Glose", + programme: "Programfag", + "podcast-series": "Podkast-serie", + "frontpage-article": "Om NDLA-artikkel", }, modal: { closeModal: "Govčča", @@ -824,6 +829,7 @@ const messages = { pause: "Boatkke", download: "Viečča jietnafiilla", reuse: "Geavat jietnafiilla", + progressBar: "Fremdriftsindikator", error: { url: "Boasttuvuohta jietnafiilla viežžamis.", caption: "Šállošat, boasttuvuohta čuožžilii jietnafiilla viežžamis.", diff --git a/packages/ndla-ui/src/locale/messages-sma.ts b/packages/ndla-ui/src/locale/messages-sma.ts index ef38545857..9794014eb0 100644 --- a/packages/ndla-ui/src/locale/messages-sma.ts +++ b/packages/ndla-ui/src/locale/messages-sma.ts @@ -560,6 +560,7 @@ const messages = { blog: "Faageblogge", tips: "Tipsh learoehkidie", vacancies: "Gaavnoes barkoeh", + contact: "Kontakt oss", }, otherLanguages: "Andre språk", }, @@ -584,6 +585,10 @@ const messages = { video: "Video", missing: "Ukjent", external: "Ekstern", + gloss: "Glose", + programme: "Programfag", + "podcast-series": "Podkast-serie", + "frontpage-article": "Om NDLA-artikkel", }, modal: { closeModal: "Dahph", @@ -826,6 +831,7 @@ const messages = { pause: "Pause", download: "Veedtjh tjoeje-fijlem", reuse: "Nuhtjh tjoeje-fijlem", + progressBar: "Fremdriftsindikator", error: { url: "Fiejlie tjoeje-veedtjemisnie.", caption: "Gaatesjen, fiejlie sjïdti tjoeje-veedtjemisnie.", diff --git a/packages/ndla-ui/src/model/ContentType.ts b/packages/ndla-ui/src/model/ContentType.ts index d441371e01..c531490699 100644 --- a/packages/ndla-ui/src/model/ContentType.ts +++ b/packages/ndla-ui/src/model/ContentType.ts @@ -21,6 +21,10 @@ export const IMAGE = "image"; export const VIDEO = "video"; export const AUDIO = "audio"; export const PODCAST = "podcast"; +export const GLOSS = "gloss"; +export const PROGRAMME = "programme"; +export const PODCAST_SERIES = "podcast-series"; +export const FRONTPAGE_ARTICLE = "frontpage-article"; export const contentTypes = { SUBJECT_MATERIAL, @@ -34,6 +38,8 @@ export const contentTypes = { CONCEPT, EXTERNAL, MISSING, + PROGRAMME, + PODCAST_SERIES, }; export const RESOURCE_TYPE_LEARNING_PATH = "urn:resourcetype:learningPath"; @@ -51,6 +57,8 @@ export const contentTypeMapping: Record = { [RESOURCE_TYPE_SOURCE_MATERIAL]: SOURCE_MATERIAL, [RESOURCE_TYPE_CONCEPT]: CONCEPT, [MULTIDISCIPLINARY]: MULTIDISCIPLINARY, + [TOPIC]: TOPIC, + [FRONTPAGE_ARTICLE]: FRONTPAGE_ARTICLE, default: SUBJECT_MATERIAL, }; @@ -60,4 +68,5 @@ export const resourceEmbedTypeMapping: Record = { concept: "concept", audio: "audio", podcast: "podcast", + gloss: "gloss", }; diff --git a/packages/ndla-ui/src/types.ts b/packages/ndla-ui/src/types.ts index 10b7065d65..7c2ad9fb60 100644 --- a/packages/ndla-ui/src/types.ts +++ b/packages/ndla-ui/src/types.ts @@ -6,7 +6,7 @@ * */ -import { ReactNode } from "react"; +import { type ReactNode } from "react"; export type HeadingLevel = "h1" | "h2" | "h3" | "h4" | "h5" | "h6"; diff --git a/packages/ndla-video-search/package.json b/packages/ndla-video-search/package.json index ecf6798977..1ba27035f7 100644 --- a/packages/ndla-video-search/package.json +++ b/packages/ndla-video-search/package.json @@ -1,6 +1,6 @@ { "name": "@ndla/video-search", - "version": "8.0.58-alpha.0", + "version": "8.0.67-alpha.0", "description": "A simple library for searching NDLA videos", "license": "GPL-3.0", "main": "lib/index.js", @@ -33,8 +33,8 @@ }, "devDependencies": { "@ndla/preset-panda": "workspace:^", - "@ndla/types-embed": "^5.0.4-alpha.0", - "@pandacss/dev": "^0.46.0" + "@ndla/types-embed": "^5.0.5-alpha.0", + "@pandacss/dev": "^0.48.0" }, "peerDependencies": { "react": ">= 18", diff --git a/packages/ndla-video-search/src/VideoListItem.tsx b/packages/ndla-video-search/src/VideoListItem.tsx index 1afa9e5f8c..006908bc0b 100644 --- a/packages/ndla-video-search/src/VideoListItem.tsx +++ b/packages/ndla-video-search/src/VideoListItem.tsx @@ -7,13 +7,12 @@ */ import { useState } from "react"; -import { CloseLine } from "@ndla/icons/action"; -import { PanoramaPhotosphere } from "@ndla/icons/common"; -import { getLicenseByNBTitle, LicenseLocaleType } from "@ndla/licenses"; +import { CloseLine, PanoramaPhotosphere } from "@ndla/icons"; +import { getLicenseByNBTitle, type LicenseLocaleType } from "@ndla/licenses"; import { Image, Text, ListItemContent, ListItemRoot, Button, IconButton } from "@ndla/primitives"; import { styled } from "@ndla/styled-system/jsx"; -import { BrightcoveApiType } from "@ndla/types-embed"; -import { VideoTranslations } from "./VideoSearch"; +import type { BrightcoveApiType } from "@ndla/types-embed"; +import type { VideoTranslations } from "./VideoSearch"; const ButtonWrapper = styled("div", { base: { @@ -143,7 +142,7 @@ export const VideoListItem = ({ video, onVideoSelect, translations, locale }: Vi - {isPreviewing && ( + {!!isPreviewing && (
      )} - {isLoading && } - {existsMoreVideos && } + {!!isLoading && } + {!!existsMoreVideos && } ); }; diff --git a/packages/ndla-video-search/src/VideoSearch.stories.tsx b/packages/ndla-video-search/src/VideoSearch.stories.tsx index c1222336bf..b26ef13e5a 100644 --- a/packages/ndla-video-search/src/VideoSearch.stories.tsx +++ b/packages/ndla-video-search/src/VideoSearch.stories.tsx @@ -6,11 +6,10 @@ * */ -import { StoryFn } from "@storybook/react"; -import { BrightcoveApiType } from "@ndla/types-embed"; -import { VideoSearch, VideoQueryType } from "./VideoSearch"; -//@ts-ignore -import { firstBrightcoveList, secondBrightcoveList } from "../../../dummydata"; +import type { StoryFn } from "@storybook/react"; +import type { BrightcoveApiType } from "@ndla/types-embed"; +import { VideoSearch, type VideoQueryType } from "./VideoSearch"; +import { firstBrightcoveList, secondBrightcoveList } from "../../../dummydata/mockBrightcove"; const firstDummyData = firstBrightcoveList as unknown as BrightcoveApiType[]; const secondDummyData = secondBrightcoveList as unknown as BrightcoveApiType[]; diff --git a/packages/ndla-video-search/src/VideoSearch.tsx b/packages/ndla-video-search/src/VideoSearch.tsx index dd6e28a2c8..a58fe43a8a 100644 --- a/packages/ndla-video-search/src/VideoSearch.tsx +++ b/packages/ndla-video-search/src/VideoSearch.tsx @@ -6,11 +6,11 @@ * */ -import { ChangeEvent, useCallback, useEffect, useState, KeyboardEvent } from "react"; -import { SearchLine } from "@ndla/icons/common"; +import { type ChangeEvent, useCallback, useEffect, useState, type KeyboardEvent } from "react"; +import { SearchLine } from "@ndla/icons"; import { IconButton, Input } from "@ndla/primitives"; import { styled } from "@ndla/styled-system/jsx"; -import { BrightcoveApiType } from "@ndla/types-embed"; +import type { BrightcoveApiType } from "@ndla/types-embed"; import { VideoResultList } from "./VideoResultList"; export interface VideoTranslations { diff --git a/packages/preset-panda/package.json b/packages/preset-panda/package.json index 585f26f99b..25310bca38 100644 --- a/packages/preset-panda/package.json +++ b/packages/preset-panda/package.json @@ -1,6 +1,6 @@ { "name": "@ndla/preset-panda", - "version": "0.0.44", + "version": "0.0.48", "description": "Panda preset for NDLA.", "license": "GPL-3.0", "main": "lib/index.js", @@ -32,7 +32,7 @@ ], "devDependencies": { "@ndla/core": "workspace:^", - "@pandacss/dev": "^0.46.0" + "@pandacss/dev": "^0.48.0" }, "publishConfig": { "access": "public" diff --git a/packages/preset-panda/panda.config.ts b/packages/preset-panda/panda.config.ts index ad8bdc7550..7c24aeab45 100644 --- a/packages/preset-panda/panda.config.ts +++ b/packages/preset-panda/panda.config.ts @@ -7,7 +7,7 @@ */ import { defineConfig } from "@pandacss/dev"; -import { ArtifactContent, Artifact } from "@pandacss/types"; +import type { ArtifactContent, Artifact, ArtifactId } from "@pandacss/types"; import preset from "./src"; import { forwardCssPropPlugin } from "./src/plugins/forwardCssPropPlugin"; @@ -51,8 +51,7 @@ export default defineConfig({ }); acc.push({ - //@ts-ignore - id: artifact.id + "-types", + id: (artifact.id + "-types") as ArtifactId, dir: artifact.dir?.map((path, index) => (index === 1 ? path.replace("/src", "/lib") : path)), files: typeFiles, }); diff --git a/packages/preset-panda/src/boxShadows.stories.tsx b/packages/preset-panda/src/boxShadows.stories.tsx index a998db6fce..276a1c9fbe 100644 --- a/packages/preset-panda/src/boxShadows.stories.tsx +++ b/packages/preset-panda/src/boxShadows.stories.tsx @@ -6,10 +6,10 @@ * */ -import { Meta, StoryFn } from "@storybook/react"; +import type { Meta, StoryFn } from "@storybook/react"; import { css } from "@ndla/styled-system/css"; import { styled } from "@ndla/styled-system/jsx"; -import { ShadowToken } from "@ndla/styled-system/tokens"; +import type { ShadowToken } from "@ndla/styled-system/tokens"; const ShadowsContainer = styled("div", { base: { diff --git a/packages/preset-panda/src/breakpoints.stories.tsx b/packages/preset-panda/src/breakpoints.stories.tsx index 23f8656124..651981fba3 100644 --- a/packages/preset-panda/src/breakpoints.stories.tsx +++ b/packages/preset-panda/src/breakpoints.stories.tsx @@ -6,10 +6,10 @@ * */ -import { Meta, StoryFn } from "@storybook/react"; +import type { Meta, StoryFn } from "@storybook/react"; import { css } from "@ndla/styled-system/css"; import { styled } from "@ndla/styled-system/jsx"; -import { SizeToken } from "@ndla/styled-system/tokens"; +import type { SizeToken } from "@ndla/styled-system/tokens"; const BreakpointsContainer = styled("div", { base: { diff --git a/packages/preset-panda/src/colors.stories.tsx b/packages/preset-panda/src/colors.stories.tsx index ffd4c896de..8eb126fe07 100644 --- a/packages/preset-panda/src/colors.stories.tsx +++ b/packages/preset-panda/src/colors.stories.tsx @@ -6,12 +6,12 @@ * */ -import { ReactNode } from "react"; -import { Meta, StoryFn } from "@storybook/react"; +import type { ReactNode } from "react"; +import type { Meta, StoryFn } from "@storybook/react"; import { Heading, Text } from "@ndla/primitives"; import { css } from "@ndla/styled-system/css"; import { styled } from "@ndla/styled-system/jsx"; -import { ColorToken, token } from "@ndla/styled-system/tokens"; +import { type ColorToken, token } from "@ndla/styled-system/tokens"; const StyledColorBlocks = styled("div", { base: { @@ -29,12 +29,12 @@ interface ColorBlocksProps { const ColorBlocks = ({ title, description, children }: ColorBlocksProps) => (
      - {title && ( + {!!title && (

      {title}

      )} - {description && {description}} + {!!description && {description}} {children}
      ); @@ -254,6 +254,10 @@ export const SemanticColors: StoryFn = () => ( + + + + @@ -263,6 +267,7 @@ export const SemanticColors: StoryFn = () => ( +
      ); diff --git a/packages/preset-panda/src/plugins/__tests__/forwardCssProp-test.tsx b/packages/preset-panda/src/plugins/__tests__/forwardCssProp-test.tsx index 4b61488c07..f75ce46361 100644 --- a/packages/preset-panda/src/plugins/__tests__/forwardCssProp-test.tsx +++ b/packages/preset-panda/src/plugins/__tests__/forwardCssProp-test.tsx @@ -7,11 +7,11 @@ */ import React, { forwardRef } from "react"; -import { ark, HTMLArkProps } from "@ark-ui/react"; +import { ark, type HTMLArkProps } from "@ark-ui/react"; import { render } from "@testing-library/react"; import { css } from "@ndla/styled-system/css"; import { styled } from "@ndla/styled-system/jsx"; -import { JsxStyleProps } from "@ndla/styled-system/types"; +import type { JsxStyleProps } from "@ndla/styled-system/types"; describe("CSS prop forwarding", () => { test("Should have a sane default", () => { diff --git a/packages/preset-panda/src/plugins/forwardCssPropPlugin.ts b/packages/preset-panda/src/plugins/forwardCssPropPlugin.ts index 8873faeb5f..e33a8e1aed 100644 --- a/packages/preset-panda/src/plugins/forwardCssPropPlugin.ts +++ b/packages/preset-panda/src/plugins/forwardCssPropPlugin.ts @@ -6,7 +6,7 @@ * */ -import { CodegenPrepareHookArgs, PandaPlugin } from "@pandacss/types"; +import type { CodegenPrepareHookArgs, PandaPlugin } from "@pandacss/types"; const supportedJsxFrameworks = ["react"]; diff --git a/packages/preset-panda/src/radii.stories.tsx b/packages/preset-panda/src/radii.stories.tsx index 22fab5f123..9b77ed9cca 100644 --- a/packages/preset-panda/src/radii.stories.tsx +++ b/packages/preset-panda/src/radii.stories.tsx @@ -6,9 +6,9 @@ * */ -import { Meta, StoryFn } from "@storybook/react"; +import type { Meta, StoryFn } from "@storybook/react"; import { styled } from "@ndla/styled-system/jsx"; -import { RadiusToken } from "@ndla/styled-system/tokens"; +import type { RadiusToken } from "@ndla/styled-system/tokens"; const RadiiContainer = styled("div", { base: { diff --git a/packages/preset-panda/src/semanticTokens.ts b/packages/preset-panda/src/semanticTokens.ts index 6e223ac4c2..825894dc83 100644 --- a/packages/preset-panda/src/semanticTokens.ts +++ b/packages/preset-panda/src/semanticTokens.ts @@ -215,6 +215,10 @@ export const semanticTokens = defineSemanticTokens({ hover: { value: "{colors.pink.300}" }, active: { value: "{colors.pink.500}" }, }, + subtle: { + DEFAULT: { value: "{colors.grey.50}" }, + selected: { value: "{colors.grey.100}" }, + }, }, stroke: { default: { value: "{colors.primary}" }, @@ -225,6 +229,7 @@ export const semanticTokens = defineSemanticTokens({ warning: { value: "{colors.yellow.1200}" }, error: { value: "{colors.pink.800}" }, disabled: { value: "{colors.grey.300}" }, + discrete: { value: "{colors.grey.300}" }, }, }, }); diff --git a/packages/preset-panda/src/spacing.stories.tsx b/packages/preset-panda/src/spacing.stories.tsx index 2c64b17270..ae736f40ae 100644 --- a/packages/preset-panda/src/spacing.stories.tsx +++ b/packages/preset-panda/src/spacing.stories.tsx @@ -6,10 +6,10 @@ * */ -import { Meta, StoryFn } from "@storybook/react"; +import type { Meta, StoryFn } from "@storybook/react"; import { css } from "@ndla/styled-system/css"; import { styled } from "@ndla/styled-system/jsx"; -import { SizeToken, token } from "@ndla/styled-system/tokens"; +import { type SizeToken, token } from "@ndla/styled-system/tokens"; const SizesContainer = styled("div", { base: { diff --git a/packages/primitives/package.json b/packages/primitives/package.json index f5b045e779..aabfeac975 100644 --- a/packages/primitives/package.json +++ b/packages/primitives/package.json @@ -1,6 +1,6 @@ { "name": "@ndla/primitives", - "version": "1.0.53-alpha.0", + "version": "1.0.62-alpha.0", "description": "Primitive components for NDLA.", "license": "GPL-3.0", "main": "lib/index.js", @@ -30,11 +30,11 @@ "dependencies": { "@ark-ui/react": "^4.1.2", "@ndla/styled-system": "workspace:^", - "@ndla/util": "^5.0.0-alpha.0" + "@ndla/util": "^5.0.3-alpha.0" }, "devDependencies": { "@ndla/preset-panda": "workspace:^", - "@pandacss/dev": "^0.46.0" + "@pandacss/dev": "^0.48.0" }, "peerDependencies": { "react": ">= 18", diff --git a/packages/primitives/src/Accordion.stories.tsx b/packages/primitives/src/Accordion.stories.tsx index 66ea6c4e3e..8e9c7d05a5 100644 --- a/packages/primitives/src/Accordion.stories.tsx +++ b/packages/primitives/src/Accordion.stories.tsx @@ -7,8 +7,8 @@ */ import { Accordion } from "@ark-ui/react"; -import { Meta, StoryFn, StoryObj } from "@storybook/react"; -import { ArrowDownShortLine } from "@ndla/icons/common"; +import type { Meta, StoryFn, StoryObj } from "@storybook/react"; +import { ArrowDownShortLine } from "@ndla/icons"; import { styled } from "@ndla/styled-system/jsx"; import { AccordionItem, diff --git a/packages/primitives/src/Accordion.tsx b/packages/primitives/src/Accordion.tsx index d4323ab6bc..cf7b051ec7 100644 --- a/packages/primitives/src/Accordion.tsx +++ b/packages/primitives/src/Accordion.tsx @@ -8,7 +8,7 @@ import { Accordion, accordionAnatomy } from "@ark-ui/react"; import { sva } from "@ndla/styled-system/css"; -import { JsxStyleProps, RecipeVariantProps } from "@ndla/styled-system/types"; +import type { JsxStyleProps, RecipeVariantProps } from "@ndla/styled-system/types"; import { createStyleContext } from "./createStyleContext"; const accordionRecipe = sva({ diff --git a/packages/primitives/src/ArticleDefinitionList.stories.tsx b/packages/primitives/src/ArticleDefinitionList.stories.tsx index ed7ac26157..8e61c9064c 100644 --- a/packages/primitives/src/ArticleDefinitionList.stories.tsx +++ b/packages/primitives/src/ArticleDefinitionList.stories.tsx @@ -6,7 +6,7 @@ * */ -import { Meta, StoryFn } from "@storybook/react"; +import type { Meta, StoryFn } from "@storybook/react"; import { DefinitionList } from "./ArticleLists"; export default { diff --git a/packages/primitives/src/ArticleLists.tsx b/packages/primitives/src/ArticleLists.tsx index 2cda325149..d2cd22c2f6 100644 --- a/packages/primitives/src/ArticleLists.tsx +++ b/packages/primitives/src/ArticleLists.tsx @@ -6,11 +6,11 @@ * */ -import { CSSProperties, forwardRef, useMemo } from "react"; -import { HTMLArkProps, ark } from "@ark-ui/react"; +import { type CSSProperties, forwardRef, useMemo } from "react"; +import { type HTMLArkProps, ark } from "@ark-ui/react"; import { css, cva } from "@ndla/styled-system/css"; import { styled } from "@ndla/styled-system/jsx"; -import { JsxStyleProps, RecipeVariantProps } from "@ndla/styled-system/types"; +import type { JsxStyleProps, RecipeVariantProps } from "@ndla/styled-system/types"; const LIST_ITEM = "& > li"; const LETTER_LIST = "& > ol[data-variant='letters']"; diff --git a/packages/primitives/src/ArticleOrderedList.stories.tsx b/packages/primitives/src/ArticleOrderedList.stories.tsx index 0c8b37f22b..0707b9d42c 100644 --- a/packages/primitives/src/ArticleOrderedList.stories.tsx +++ b/packages/primitives/src/ArticleOrderedList.stories.tsx @@ -6,7 +6,7 @@ * */ -import { Meta, StoryFn, StoryObj } from "@storybook/react"; +import type { Meta, StoryFn, StoryObj } from "@storybook/react"; import { ArticleContent, ArticleWrapper } from "@ndla/ui"; import { OrderedList } from "./ArticleLists"; import { BlockQuote } from "./BlockQuote"; diff --git a/packages/primitives/src/ArticleUnorderedList.stories.tsx b/packages/primitives/src/ArticleUnorderedList.stories.tsx index c9bdba12f9..94d5f6e50d 100644 --- a/packages/primitives/src/ArticleUnorderedList.stories.tsx +++ b/packages/primitives/src/ArticleUnorderedList.stories.tsx @@ -6,7 +6,7 @@ * */ -import { Meta, StoryFn } from "@storybook/react"; +import type { Meta, StoryFn } from "@storybook/react"; import { ArticleContent, ArticleWrapper } from "@ndla/ui"; import { UnOrderedList } from "./ArticleLists"; import { BlockQuote } from "./BlockQuote"; diff --git a/packages/primitives/src/Badge.stories.tsx b/packages/primitives/src/Badge.stories.tsx index a20e1f7d19..b576fed840 100644 --- a/packages/primitives/src/Badge.stories.tsx +++ b/packages/primitives/src/Badge.stories.tsx @@ -6,7 +6,7 @@ * */ -import { Meta, StoryObj } from "@storybook/react"; +import type { Meta, StoryObj } from "@storybook/react"; import { Badge } from "./Badge"; export default { @@ -18,6 +18,7 @@ export default { }, args: { colorTheme: "neutral", + size: "medium", children: "Kjernestoff", }, render: ({ children, ...args }) => {children}, @@ -45,3 +46,31 @@ export const Brand3: StoryObj = { children: "Læringssti", }, }; + +export const Success: StoryObj = { + args: { + colorTheme: "success", + children: "Endret", + }, +}; + +export const Warning: StoryObj = { + args: { + colorTheme: "warning", + children: "Noe skurrer...", + }, +}; + +export const Danger: StoryObj = { + args: { + colorTheme: "danger", + children: "Pass på!", + }, +}; + +export const SmallSize: StoryObj = { + args: { + size: "small", + children: "Fagstoff", + }, +}; diff --git a/packages/primitives/src/Badge.tsx b/packages/primitives/src/Badge.tsx index 029722eb5a..c360acd0d1 100644 --- a/packages/primitives/src/Badge.tsx +++ b/packages/primitives/src/Badge.tsx @@ -8,9 +8,9 @@ import { forwardRef } from "react"; import { type HTMLArkProps, ark } from "@ark-ui/react"; -import { RecipeVariantProps, css, cva } from "@ndla/styled-system/css"; +import { type RecipeVariantProps, css, cva } from "@ndla/styled-system/css"; import { styled } from "@ndla/styled-system/jsx"; -import { JsxStyleProps } from "@ndla/styled-system/types"; +import type { JsxStyleProps } from "@ndla/styled-system/types"; const badgeRecipe = cva({ base: { @@ -18,13 +18,21 @@ const badgeRecipe = cva({ borderRadius: "xsmall", border: "1px solid", width: "fit-content", - textStyle: "label.medium", color: "text.default", }, defaultVariants: { colorTheme: "neutral", + size: "medium", }, variants: { + size: { + small: { + textStyle: "label.small", + }, + medium: { + textStyle: "label.medium", + }, + }, colorTheme: { brand1: { backgroundColor: "surface.brand.1.moderate", @@ -42,6 +50,18 @@ const badgeRecipe = cva({ backgroundColor: "surface.infoSubtle", borderColor: "stroke.default", }, + danger: { + backgroundColor: "surface.dangerSubtle", + borderColor: "surface.danger", + }, + success: { + backgroundColor: "surface.successSubtle", + borderColor: "surface.success", + }, + warning: { + backgroundColor: "surface.warningSubtle", + borderColor: "surface.warning", + }, }, }, }); @@ -54,6 +74,6 @@ export type BadgeProps = HTMLArkProps<"div"> & JsxStyleProps & BadgeVariantProps const StyledBadge = styled(ark.div, {}, { baseComponent: true }); -export const Badge = forwardRef(({ colorTheme, css: cssProp, ...props }, ref) => ( - +export const Badge = forwardRef(({ colorTheme, size, css: cssProp, ...props }, ref) => ( + )); diff --git a/packages/primitives/src/BlockQuote.stories.tsx b/packages/primitives/src/BlockQuote.stories.tsx index 8ffb502324..63d0e9c9fb 100644 --- a/packages/primitives/src/BlockQuote.stories.tsx +++ b/packages/primitives/src/BlockQuote.stories.tsx @@ -6,7 +6,7 @@ * */ -import { Meta, StoryObj } from "@storybook/react"; +import type { Meta, StoryObj } from "@storybook/react"; import { BlockQuote } from "./BlockQuote"; import { Text } from "./Text"; diff --git a/packages/primitives/src/BlockQuote.tsx b/packages/primitives/src/BlockQuote.tsx index f1f9c806fc..ad68265075 100644 --- a/packages/primitives/src/BlockQuote.tsx +++ b/packages/primitives/src/BlockQuote.tsx @@ -7,10 +7,10 @@ */ import { forwardRef } from "react"; -import { HTMLArkProps, ark } from "@ark-ui/react"; -import { RecipeVariantProps, css, cva } from "@ndla/styled-system/css"; +import { type HTMLArkProps, ark } from "@ark-ui/react"; +import { type RecipeVariantProps, css, cva } from "@ndla/styled-system/css"; import { styled } from "@ndla/styled-system/jsx"; -import { JsxStyleProps } from "@ndla/styled-system/types"; +import type { JsxStyleProps } from "@ndla/styled-system/types"; const blockQuoteRecipe = cva({ base: { diff --git a/packages/primitives/src/Button.stories.tsx b/packages/primitives/src/Button.stories.tsx index 519e530caa..8f1bd59bf9 100644 --- a/packages/primitives/src/Button.stories.tsx +++ b/packages/primitives/src/Button.stories.tsx @@ -6,9 +6,8 @@ * */ -import { Meta, StoryFn, StoryObj } from "@storybook/react"; -import { FileCopyLine } from "@ndla/icons/action"; -import { ArrowRightLine } from "@ndla/icons/common"; +import type { Meta, StoryFn, StoryObj } from "@storybook/react"; +import { FileCopyLine, ArrowRightLine } from "@ndla/icons"; import { styled } from "@ndla/styled-system/jsx"; import { Button } from "./Button"; diff --git a/packages/primitives/src/Button.tsx b/packages/primitives/src/Button.tsx index 49c36bd144..6a60d22280 100644 --- a/packages/primitives/src/Button.tsx +++ b/packages/primitives/src/Button.tsx @@ -6,11 +6,11 @@ * */ -import { ReactNode, forwardRef } from "react"; -import { HTMLArkProps, ark } from "@ark-ui/react"; -import { RecipeVariantProps, css, cva } from "@ndla/styled-system/css"; +import { type ReactNode, forwardRef } from "react"; +import { type HTMLArkProps, ark } from "@ark-ui/react"; +import { type RecipeVariantProps, css, cva } from "@ndla/styled-system/css"; import { styled } from "@ndla/styled-system/jsx"; -import { JsxStyleProps, RecipeVariant } from "@ndla/styled-system/types"; +import type { JsxStyleProps, RecipeVariant } from "@ndla/styled-system/types"; import { Spinner } from "./Spinner"; export const buttonBaseRecipe = cva({ @@ -70,6 +70,9 @@ export const buttonBaseRecipe = cva({ boxShadow: "inset 0 0 0 var(--shadow-width, 3px) var(--shadow-color), inset 0px 0px 0px calc(var(--shadow-width, 3px) * 2) currentcolor", }, + _on: { + background: "surface.action.selected", + }, }, secondary: { color: "text.strong", @@ -81,6 +84,9 @@ export const buttonBaseRecipe = cva({ _active: { background: "surface.actionSubtle.hover.strong", }, + _on: { + background: "surface.actionSubtle.active", + }, }, tertiary: { color: "text.strong", @@ -96,6 +102,10 @@ export const buttonBaseRecipe = cva({ borderColor: "stroke.default", background: "surface.actionSubtle.hover.strong", }, + _on: { + background: "surface.actionSubtle.active", + boxShadow: "inset 0 0 0 1px var(--shadow-color)", + }, }, clear: { background: "transparent", diff --git a/packages/primitives/src/Card/Card.stories.tsx b/packages/primitives/src/Card/Card.stories.tsx index 55a9494789..245ec422c0 100644 --- a/packages/primitives/src/Card/Card.stories.tsx +++ b/packages/primitives/src/Card/Card.stories.tsx @@ -6,7 +6,7 @@ * */ -import { Meta, StoryFn } from "@storybook/react"; +import type { Meta, StoryFn } from "@storybook/react"; import { Badge, Text } from "@ndla/primitives"; import { SafeLink } from "@ndla/safelink"; import { styled } from "@ndla/styled-system/jsx"; diff --git a/packages/primitives/src/Checkbox.stories.tsx b/packages/primitives/src/Checkbox.stories.tsx index 6352644bb8..732666d83a 100644 --- a/packages/primitives/src/Checkbox.stories.tsx +++ b/packages/primitives/src/Checkbox.stories.tsx @@ -7,8 +7,8 @@ */ import { useState } from "react"; -import { Meta, StoryFn, StoryObj } from "@storybook/react"; -import { CheckLine } from "@ndla/icons/editor"; +import type { Meta, StoryFn, StoryObj } from "@storybook/react"; +import { CheckLine } from "@ndla/icons"; import { CheckboxControl, CheckboxGroup, diff --git a/packages/primitives/src/Checkbox.tsx b/packages/primitives/src/Checkbox.tsx index b3020baed1..e649311ac3 100644 --- a/packages/primitives/src/Checkbox.tsx +++ b/packages/primitives/src/Checkbox.tsx @@ -8,9 +8,9 @@ import { Checkbox, checkboxAnatomy } from "@ark-ui/react"; import { sva } from "@ndla/styled-system/css"; -import { JsxStyleProps, RecipeVariantProps } from "@ndla/styled-system/types"; +import type { JsxStyleProps, RecipeVariantProps } from "@ndla/styled-system/types"; import { createStyleContext } from "./createStyleContext"; -import { Text, TextProps } from "./Text"; +import { Text, type TextProps } from "./Text"; const checkboxRecipe = sva({ slots: checkboxAnatomy.keys(), diff --git a/packages/primitives/src/Combobox.stories.tsx b/packages/primitives/src/Combobox.stories.tsx index 4f0cfe21cd..70c7e49bc4 100644 --- a/packages/primitives/src/Combobox.stories.tsx +++ b/packages/primitives/src/Combobox.stories.tsx @@ -8,10 +8,8 @@ import { useState } from "react"; import { Portal, createListCollection, type ComboboxInputValueChangeDetails } from "@ark-ui/react"; -import { Meta, StoryFn } from "@storybook/react"; -import { CloseLine } from "@ndla/icons/action"; -import { ArrowDownShortLine } from "@ndla/icons/common"; -import { CheckLine } from "@ndla/icons/editor"; +import type { Meta, StoryFn } from "@storybook/react"; +import { CloseLine, ArrowDownShortLine, CheckLine } from "@ndla/icons"; import { Flex } from "@ndla/styled-system/jsx"; import { IconButton } from "./Button"; import { @@ -25,7 +23,6 @@ import { ComboboxItemIndicator, ComboboxItemText, ComboboxLabel, - ComboboxPositioner, ComboboxRoot, ComboboxTrigger, } from "./Combobox"; @@ -33,7 +30,7 @@ import { FieldRoot } from "./Field"; import { FieldErrorMessage } from "./FieldErrorMessage"; import { Input, InputContainer } from "./Input"; import { ListItemContent, ListItemHeading, ListItemImage, ListItemRoot } from "./ListItem/ListItem"; -import { AdvancedItem, advancedItems, europeanCountries } from "./storybookHelpers/data"; +import { type AdvancedItem, advancedItems, europeanCountries } from "./storybookHelpers/data"; import { Text } from "./Text"; const meta: Meta = { @@ -82,18 +79,16 @@ export const Default: StoryFn = (args) => { - - - {items.map((item) => ( - - {item.label} - - - - - ))} - - + + {items.map((item) => ( + + {item.label} + + + + + ))} + ); @@ -130,18 +125,16 @@ export const Disabled: StoryFn = (args) => { - - - {items.map((item) => ( - - {item.label} - - - - - ))} - - + + {items.map((item) => ( + + {item.label} + + + + + ))} + ); @@ -182,18 +175,16 @@ export const DisabledItems: StoryFn = (args) => { - - - {items.map((item) => ( - - {item.label} - - - - - ))} - - + + {items.map((item) => ( + + {item.label} + + + + + ))} + ); @@ -230,28 +221,26 @@ export const Advanced: StoryFn = (args) => { - - - {items.map((item) => ( - - - - - - - {item.label} - - {item.description} - - - - - - - - ))} - - + + {items.map((item) => ( + + + + + + + {item.label} + + {item.description} + + + + + + + + ))} + ); @@ -300,25 +289,23 @@ export const Grouped: StoryFn = (args) => { - - - {Object.entries(groupedItems) - .filter(([_, value]) => !!value.length) - .map(([key, value], index) => ( - - {key} - {value.map((item) => ( - - {item.label} - - - - - ))} - - ))} - - + + {Object.entries(groupedItems) + .filter(([, value]) => !!value.length) + .map(([key, value], index) => ( + + {key} + {value.map((item) => ( + + {item.label} + + + + + ))} + + ))} + ); @@ -366,18 +353,16 @@ export const WithField: StoryFn = (args) => { - - - {items.map((item) => ( - - {item.label} - - - - - ))} - - + + {items.map((item) => ( + + {item.label} + + + + + ))} + diff --git a/packages/primitives/src/Combobox.tsx b/packages/primitives/src/Combobox.tsx index 6764af6f92..dab82768f9 100644 --- a/packages/primitives/src/Combobox.tsx +++ b/packages/primitives/src/Combobox.tsx @@ -6,12 +6,13 @@ * */ -import { Assign, Combobox, comboboxAnatomy } from "@ark-ui/react"; +import { forwardRef } from "react"; +import { type Assign, Combobox, comboboxAnatomy } from "@ark-ui/react"; import { sva } from "@ndla/styled-system/css"; -import { JsxStyleProps, RecipeVariantProps } from "@ndla/styled-system/types"; +import type { JsxStyleProps, RecipeVariantProps } from "@ndla/styled-system/types"; import { createStyleContext } from "./createStyleContext"; import { Label } from "./Label"; -import { Text, TextProps } from "./Text"; +import { Text, type TextProps } from "./Text"; const comboboxRecipe = sva({ slots: comboboxAnatomy.keys(), @@ -32,7 +33,7 @@ const comboboxRecipe = sva({ zIndex: "dropdown", background: "surface.default", overflowY: "auto", - maxHeight: "surface.xsmall", + maxHeight: "min(token(spacing.surface.xsmall), 45vh)", _open: { animation: "fade-shift-in 0.25s ease-out", _motionReduce: { @@ -174,9 +175,19 @@ export const ComboboxClearTrigger = withContext(Combobox.Content, "content", { - baseComponent: true, -}); +export const ComboboxContentStandalone = withContext( + Combobox.Content, + "content", + { + baseComponent: true, + }, +); + +export const ComboboxContent = forwardRef((props, ref) => ( + + + +)); export type ComboboxControlProps = Combobox.ControlProps & JsxStyleProps; @@ -244,7 +255,7 @@ export const ComboboxItemText = ({ ...props }: ComboboxItemTextProps) => ( - +
      {children}
      diff --git a/packages/primitives/src/Dialog.stories.tsx b/packages/primitives/src/Dialog.stories.tsx index ce7e7ae73b..6d449d6b88 100644 --- a/packages/primitives/src/Dialog.stories.tsx +++ b/packages/primitives/src/Dialog.stories.tsx @@ -8,8 +8,8 @@ import { useEffect, useState } from "react"; import { Portal } from "@ark-ui/react"; -import { Meta, StoryFn } from "@storybook/react"; -import { CloseLine } from "@ndla/icons/action"; +import type { Meta, StoryFn } from "@storybook/react"; +import { CloseLine } from "@ndla/icons"; import { styled } from "@ndla/styled-system/jsx"; import { Button, IconButton } from "./Button"; import { diff --git a/packages/primitives/src/Dialog.tsx b/packages/primitives/src/Dialog.tsx index 22fe1054ee..3531428b73 100644 --- a/packages/primitives/src/Dialog.tsx +++ b/packages/primitives/src/Dialog.tsx @@ -8,11 +8,11 @@ import { forwardRef } from "react"; import { Dialog, dialogAnatomy } from "@ark-ui/react"; -import { RecipeVariantProps, sva } from "@ndla/styled-system/css"; +import { type RecipeVariantProps, sva } from "@ndla/styled-system/css"; import { styled } from "@ndla/styled-system/jsx"; -import { JsxStyleProps } from "@ndla/styled-system/types"; +import type { JsxStyleProps } from "@ndla/styled-system/types"; import { createStyleContext } from "./createStyleContext"; -import { Heading, Text, TextProps } from "./Text"; +import { Heading, Text, type TextProps } from "./Text"; const dialogRecipe = sva({ slots: dialogAnatomy.keys(), diff --git a/packages/primitives/src/ErrorMessage/ErrorMessage.stories.tsx b/packages/primitives/src/ErrorMessage/ErrorMessage.stories.tsx index 9a8c8e7811..4a26bdf793 100644 --- a/packages/primitives/src/ErrorMessage/ErrorMessage.stories.tsx +++ b/packages/primitives/src/ErrorMessage/ErrorMessage.stories.tsx @@ -6,8 +6,8 @@ * */ -import { Meta, StoryObj } from "@storybook/react"; -import { LoginBoxLine, PresentationLine } from "@ndla/icons/common"; +import type { Meta, StoryObj } from "@storybook/react"; +import { LoginBoxLine, PresentationLine } from "@ndla/icons"; import { SafeLink } from "@ndla/safelink"; import { ErrorMessageActions, @@ -16,7 +16,7 @@ import { ErrorMessageRoot, ErrorMessageTitle, } from "./ErrorMessage"; -//@ts-ignore +//@ts-expect-error - It exists. import Oops from "../../../../images/oops.gif"; import { Button } from "../Button"; diff --git a/packages/primitives/src/ErrorMessage/ErrorMessage.tsx b/packages/primitives/src/ErrorMessage/ErrorMessage.tsx index 9a1ed6485b..c05cb1456c 100644 --- a/packages/primitives/src/ErrorMessage/ErrorMessage.tsx +++ b/packages/primitives/src/ErrorMessage/ErrorMessage.tsx @@ -7,11 +7,11 @@ */ import { forwardRef } from "react"; -import { HTMLArkProps, ark } from "@ark-ui/react"; +import { type HTMLArkProps, ark } from "@ark-ui/react"; import { sva } from "@ndla/styled-system/css"; -import { JsxStyleProps } from "@ndla/styled-system/types"; +import type { JsxStyleProps } from "@ndla/styled-system/types"; import { createStyleContext } from "../createStyleContext"; -import { Heading, Text, TextProps } from "../Text"; +import { Heading, Text, type TextProps } from "../Text"; const errorMessageRecipe = sva({ slots: ["root", "content", "actions", "title", "description"], diff --git a/packages/primitives/src/ExpandableBox.stories.tsx b/packages/primitives/src/ExpandableBox.stories.tsx index 38e73b52b1..a8492293bf 100644 --- a/packages/primitives/src/ExpandableBox.stories.tsx +++ b/packages/primitives/src/ExpandableBox.stories.tsx @@ -6,7 +6,7 @@ * */ -import { Meta, StoryFn, StoryObj } from "@storybook/react"; +import type { Meta, StoryFn, StoryObj } from "@storybook/react"; import { ExpandableBox, ExpandableBoxSummary } from "./ExpandableBox"; import { Heading } from "./Text"; diff --git a/packages/primitives/src/ExpandableBox.tsx b/packages/primitives/src/ExpandableBox.tsx index 5f8d102c30..080a377f56 100644 --- a/packages/primitives/src/ExpandableBox.tsx +++ b/packages/primitives/src/ExpandableBox.tsx @@ -7,9 +7,9 @@ */ import { forwardRef } from "react"; -import { HTMLArkProps, ark } from "@ark-ui/react"; +import { type HTMLArkProps, ark } from "@ark-ui/react"; import { styled } from "@ndla/styled-system/jsx"; -import { JsxStyleProps } from "@ndla/styled-system/types"; +import type { JsxStyleProps } from "@ndla/styled-system/types"; export type ExpandableBoxProps = HTMLArkProps<"details"> & JsxStyleProps; diff --git a/packages/primitives/src/Field.tsx b/packages/primitives/src/Field.tsx index eed4c12664..dc73332aa8 100644 --- a/packages/primitives/src/Field.tsx +++ b/packages/primitives/src/Field.tsx @@ -8,7 +8,7 @@ import { Field, Fieldset } from "@ark-ui/react"; import { styled } from "@ndla/styled-system/jsx"; -import { SystemStyleObject } from "@ndla/styled-system/types"; +import type { SystemStyleObject } from "@ndla/styled-system/types"; const rootStyle: SystemStyleObject = { display: "flex", diff --git a/packages/primitives/src/Figure.stories.tsx b/packages/primitives/src/Figure.stories.tsx index e797864d76..779ba7b10b 100644 --- a/packages/primitives/src/Figure.stories.tsx +++ b/packages/primitives/src/Figure.stories.tsx @@ -6,7 +6,7 @@ * */ -import { ReactNode } from "react"; +import { type ReactNode } from "react"; import type { Meta, StoryObj } from "@storybook/react"; import { styled } from "@ndla/styled-system/jsx"; import { Figure } from "./Figure"; diff --git a/packages/primitives/src/Figure.tsx b/packages/primitives/src/Figure.tsx index f9c3fc1b4a..a63bb1f2b1 100644 --- a/packages/primitives/src/Figure.tsx +++ b/packages/primitives/src/Figure.tsx @@ -7,10 +7,10 @@ */ import { forwardRef } from "react"; -import { HTMLArkProps, ark } from "@ark-ui/react"; -import { RecipeVariantProps, css, cva } from "@ndla/styled-system/css"; +import { type HTMLArkProps, ark } from "@ark-ui/react"; +import { type RecipeVariantProps, css, cva } from "@ndla/styled-system/css"; import { styled } from "@ndla/styled-system/jsx"; -import { JsxStyleProps, RecipeVariant } from "@ndla/styled-system/types"; +import type { JsxStyleProps, RecipeVariant } from "@ndla/styled-system/types"; const figureRecipe = cva({ base: { diff --git a/packages/primitives/src/FileUpload.stories.tsx b/packages/primitives/src/FileUpload.stories.tsx index 6b75bb605b..a02e33e51a 100644 --- a/packages/primitives/src/FileUpload.stories.tsx +++ b/packages/primitives/src/FileUpload.stories.tsx @@ -7,10 +7,8 @@ */ import { useState } from "react"; -import { Meta, StoryFn } from "@storybook/react"; -import { DeleteBinLine } from "@ndla/icons/action"; -import { FileDocumentOutline } from "@ndla/icons/common"; -import { UploadCloudLine } from "@ndla/icons/editor"; +import type { Meta, StoryFn } from "@storybook/react"; +import { DeleteBinLine, FileTextLine, UploadCloudLine } from "@ndla/icons"; import { Button, IconButton } from "./Button"; import { FieldRoot } from "./Field"; import { FieldErrorMessage } from "./FieldErrorMessage"; @@ -61,7 +59,7 @@ export const Default: StoryFn = (args) => ( - + @@ -114,7 +112,7 @@ export const MaxThreeFiles: StoryFn = (args) => ( - + @@ -152,7 +150,7 @@ export const OnlyImages: StoryFn = (args) => ( - + @@ -190,7 +188,7 @@ export const OnlyFilesBetween1MbAnd4Mb: StoryFn = (args) - + @@ -228,7 +226,7 @@ export const Disabled: StoryFn = (args) => ( - + @@ -276,7 +274,7 @@ export const WithField: StoryFn = (args) => { - + diff --git a/packages/primitives/src/FileUpload.tsx b/packages/primitives/src/FileUpload.tsx index f802c3a79c..7a85bcf305 100644 --- a/packages/primitives/src/FileUpload.tsx +++ b/packages/primitives/src/FileUpload.tsx @@ -7,12 +7,12 @@ */ import { forwardRef } from "react"; -import { Assign, FileUpload, fileUploadAnatomy } from "@ark-ui/react"; -import { RecipeVariantProps, sva } from "@ndla/styled-system/css"; -import { JsxStyleProps } from "@ndla/styled-system/types"; +import { type Assign, FileUpload, fileUploadAnatomy } from "@ark-ui/react"; +import { type RecipeVariantProps, sva } from "@ndla/styled-system/css"; +import type { JsxStyleProps } from "@ndla/styled-system/types"; import { createStyleContext } from "./createStyleContext"; import { Label } from "./Label"; -import { TextProps, Text } from "./Text"; +import { type TextProps, Text } from "./Text"; const fileUploadRecipe = sva({ slots: fileUploadAnatomy.keys(), diff --git a/packages/primitives/src/FramedContent.stories.tsx b/packages/primitives/src/FramedContent.stories.tsx index 1e95bc1dfa..c0642fb005 100644 --- a/packages/primitives/src/FramedContent.stories.tsx +++ b/packages/primitives/src/FramedContent.stories.tsx @@ -6,7 +6,7 @@ * */ -import { Meta, StoryObj } from "@storybook/react"; +import type { Meta, StoryObj } from "@storybook/react"; import { ArticleWrapper, ArticleContent } from "@ndla/ui"; import { FramedContent } from "./FramedContent"; import { PageContent } from "./Layout/PageContent"; diff --git a/packages/primitives/src/FramedContent.tsx b/packages/primitives/src/FramedContent.tsx index f31dac686b..633bae9615 100644 --- a/packages/primitives/src/FramedContent.tsx +++ b/packages/primitives/src/FramedContent.tsx @@ -7,10 +7,10 @@ */ import { forwardRef } from "react"; -import { HTMLArkProps, ark } from "@ark-ui/react"; +import { type HTMLArkProps, ark } from "@ark-ui/react"; import { css, cva } from "@ndla/styled-system/css"; import { styled } from "@ndla/styled-system/jsx"; -import { JsxStyleProps, RecipeVariantProps } from "@ndla/styled-system/types"; +import type { JsxStyleProps, RecipeVariantProps } from "@ndla/styled-system/types"; const framedContentRecipe = cva({ base: { diff --git a/packages/primitives/src/Hero.stories.tsx b/packages/primitives/src/Hero.stories.tsx index 3a6309096e..bd752d8ea0 100644 --- a/packages/primitives/src/Hero.stories.tsx +++ b/packages/primitives/src/Hero.stories.tsx @@ -6,7 +6,7 @@ * */ -import { Meta, StoryFn } from "@storybook/react"; +import type { Meta, StoryFn } from "@storybook/react"; import { styled } from "@ndla/styled-system/jsx"; import { Hero, HeroBackground, HeroContent } from "./Hero"; import { PageContent } from "./Layout/PageContent"; diff --git a/packages/primitives/src/Hero.tsx b/packages/primitives/src/Hero.tsx index 5a35d82624..95fcf58a3f 100644 --- a/packages/primitives/src/Hero.tsx +++ b/packages/primitives/src/Hero.tsx @@ -8,7 +8,7 @@ import { type HTMLArkProps, ark } from "@ark-ui/react"; import { type RecipeVariantProps, sva } from "@ndla/styled-system/css"; -import { type JsxStyleProps } from "@ndla/styled-system/types"; +import type { JsxStyleProps } from "@ndla/styled-system/types"; import { createStyleContext } from "./createStyleContext"; const heroRecipe = sva({ diff --git a/packages/primitives/src/IconButton.stories.tsx b/packages/primitives/src/IconButton.stories.tsx index 9d094ad719..c38a933eee 100644 --- a/packages/primitives/src/IconButton.stories.tsx +++ b/packages/primitives/src/IconButton.stories.tsx @@ -6,8 +6,8 @@ * */ -import { Meta, StoryFn, StoryObj } from "@storybook/react"; -import { CloseLine } from "@ndla/icons/action"; +import type { Meta, StoryFn, StoryObj } from "@storybook/react"; +import { CloseLine } from "@ndla/icons"; import { css } from "@ndla/styled-system/css"; import { IconButton } from "./Button"; diff --git a/packages/primitives/src/Image.stories.tsx b/packages/primitives/src/Image.stories.tsx index 3169fb55c4..36fd8e6fc2 100644 --- a/packages/primitives/src/Image.stories.tsx +++ b/packages/primitives/src/Image.stories.tsx @@ -6,8 +6,8 @@ * */ -import { Meta, StoryObj } from "@storybook/react"; -import { Image, ImageCrop, ImageFocalPoint, Img, Picture } from "./Image"; +import type { Meta, StoryObj } from "@storybook/react"; +import { Image, type ImageCrop, type ImageFocalPoint, Img, Picture } from "./Image"; export default { title: "Primitives/Image", diff --git a/packages/primitives/src/Image.tsx b/packages/primitives/src/Image.tsx index 1550ed9760..d74a486f8e 100644 --- a/packages/primitives/src/Image.tsx +++ b/packages/primitives/src/Image.tsx @@ -6,10 +6,10 @@ * */ -import { ComponentPropsWithRef, ReactNode, forwardRef } from "react"; +import { type ComponentPropsWithRef, type ReactNode, forwardRef } from "react"; import { ark } from "@ark-ui/react"; import { styled } from "@ndla/styled-system/jsx"; -import { JsxStyleProps, StyledVariantProps } from "@ndla/styled-system/types"; +import type { JsxStyleProps, StyledVariantProps } from "@ndla/styled-system/types"; export interface ImageCrop { startX: number; @@ -155,7 +155,6 @@ export interface ImageProps extends JsxStyleProps, ComponentPropsWithRef<"img">, export const Image = forwardRef( ( { - children, srcSet: srcSetProp, crop, focalPoint, diff --git a/packages/primitives/src/Input.stories.tsx b/packages/primitives/src/Input.stories.tsx index 0e0ae618e1..d140258b9f 100644 --- a/packages/primitives/src/Input.stories.tsx +++ b/packages/primitives/src/Input.stories.tsx @@ -7,9 +7,8 @@ */ import { useState } from "react"; -import { Meta, StoryFn } from "@storybook/react"; -import { SearchLine } from "@ndla/icons/common"; -import { CheckboxCircleFill } from "@ndla/icons/editor"; +import type { Meta, StoryFn } from "@storybook/react"; +import { SearchLine, CheckboxCircleFill } from "@ndla/icons"; import { FieldRoot, FieldsetRoot } from "./Field"; import { FieldErrorMessage, FieldsetErrorText } from "./FieldErrorMessage"; import { FieldHelper, FieldsetHelper } from "./FieldHelper"; diff --git a/packages/primitives/src/Input.tsx b/packages/primitives/src/Input.tsx index cbb16395c1..e400195840 100644 --- a/packages/primitives/src/Input.tsx +++ b/packages/primitives/src/Input.tsx @@ -7,10 +7,10 @@ */ import { createContext, forwardRef, useCallback, useContext, useEffect, useRef } from "react"; -import { Field, HTMLArkProps, ark } from "@ark-ui/react"; +import { Field, type HTMLArkProps, ark } from "@ark-ui/react"; import { css, cva } from "@ndla/styled-system/css"; import { styled } from "@ndla/styled-system/jsx"; -import { JsxStyleProps, type RecipeVariantProps } from "@ndla/styled-system/types"; +import type { JsxStyleProps, RecipeVariantProps } from "@ndla/styled-system/types"; import { composeRefs } from "@ndla/util"; interface InputContextType {} diff --git a/packages/primitives/src/Label.tsx b/packages/primitives/src/Label.tsx index e3fa1bd8eb..839c1985b2 100644 --- a/packages/primitives/src/Label.tsx +++ b/packages/primitives/src/Label.tsx @@ -7,11 +7,11 @@ */ import { forwardRef } from "react"; -import { Field, Fieldset, HTMLArkProps, ark } from "@ark-ui/react"; +import { Field, Fieldset, type HTMLArkProps, ark } from "@ark-ui/react"; import { css } from "@ndla/styled-system/css"; import { styled } from "@ndla/styled-system/jsx"; -import { JsxStyleProps } from "@ndla/styled-system/types"; -import { TextProps } from "./Text"; +import type { JsxStyleProps } from "@ndla/styled-system/types"; +import { type TextProps } from "./Text"; const StyledLegend = styled( ark.legend, diff --git a/packages/primitives/src/Layout/PageContainer.tsx b/packages/primitives/src/Layout/PageContainer.tsx new file mode 100644 index 0000000000..42441f96b0 --- /dev/null +++ b/packages/primitives/src/Layout/PageContainer.tsx @@ -0,0 +1,49 @@ +/** + * Copyright (c) 2024-present, NDLA. + * + * This source code is licensed under the GPLv3 license found in the + * LICENSE file in the root directory of this source tree. + * + */ + +import { forwardRef } from "react"; +import { type HTMLArkProps } from "@ark-ui/react"; +import { css, cva } from "@ndla/styled-system/css"; +import type { JsxStyleProps, RecipeVariantProps } from "@ndla/styled-system/types"; +import { PageContent, type PageContentVariantProps } from "./PageContent"; + +const pageContainerRecipe = cva({ + defaultVariants: { + padding: "medium", + }, + variants: { + padding: { + none: {}, + small: { + paddingBlockStart: "medium", + paddingBlockEnd: "5xlarge", + }, + medium: { + paddingBlockStart: "xxlarge", + paddingBlockEnd: "5xlarge", + }, + large: { + paddingBlockStart: "4xlarge", + paddingBlockEnd: "5xlarge", + }, + }, + }, +}); + +export type PageContainerVariantProps = RecipeVariantProps; + +export type PageContainerProps = HTMLArkProps<"div"> & + JsxStyleProps & + PageContentVariantProps & + PageContainerVariantProps; + +export const PageContainer = forwardRef( + ({ padding, css: cssProp, ...props }, ref) => ( + + ), +); diff --git a/packages/primitives/src/Layout/PageContent.tsx b/packages/primitives/src/Layout/PageContent.tsx index 300aa2ca19..8cd94a4487 100644 --- a/packages/primitives/src/Layout/PageContent.tsx +++ b/packages/primitives/src/Layout/PageContent.tsx @@ -7,10 +7,10 @@ */ import { forwardRef } from "react"; -import { HTMLArkProps, ark } from "@ark-ui/react"; +import { type HTMLArkProps, ark } from "@ark-ui/react"; import { css, cva } from "@ndla/styled-system/css"; import { styled } from "@ndla/styled-system/jsx"; -import { JsxStyleProps, RecipeVariantProps } from "@ndla/styled-system/types"; +import type { JsxStyleProps, RecipeVariantProps } from "@ndla/styled-system/types"; const pageRecipe = cva({ base: { diff --git a/packages/primitives/src/ListItem/ListItem.stories.tsx b/packages/primitives/src/ListItem/ListItem.stories.tsx index df49a654e7..bd8431b6ff 100644 --- a/packages/primitives/src/ListItem/ListItem.stories.tsx +++ b/packages/primitives/src/ListItem/ListItem.stories.tsx @@ -6,17 +6,15 @@ * */ -import { Meta, StoryFn, StoryObj } from "@storybook/react"; -import { PencilFill, DeleteBinLine } from "@ndla/icons/action"; -import { Share } from "@ndla/icons/common"; -import { HorizontalMenu } from "@ndla/icons/contentType"; +import type { Meta, StoryFn, StoryObj } from "@storybook/react"; +import { PencilFill, DeleteBinLine, ShareLine, MoreLine } from "@ndla/icons"; import { SafeLink } from "@ndla/safelink"; import { styled } from "@ndla/styled-system/jsx"; import { linkOverlay } from "@ndla/styled-system/patterns"; -import { ListItemContent, ListItemHeading, ListItemImage, ListItemRoot, ListItemVariantProps } from "./ListItem"; +import { ListItemContent, ListItemHeading, ListItemImage, ListItemRoot, type ListItemVariantProps } from "./ListItem"; import { Badge } from "../Badge"; import { IconButton } from "../Button"; -import { MenuContent, MenuItem, MenuPositioner, MenuRoot, MenuTrigger } from "../Menu"; +import { MenuContent, MenuItem, MenuRoot, MenuTrigger } from "../Menu"; import { Text } from "../Text"; export default { @@ -57,7 +55,7 @@ export const Brand2: StoryObj = { }, }; -export const NonInteractive: StoryFn = (args) => ( +export const NonInteractive: StoryFn = () => ( @@ -109,25 +107,23 @@ const ListComponent = ({ - + - - - - - Rediger - - - - Slett - - - - Del - - - + + + + Rediger + + + + Slett + + + + Del + + diff --git a/packages/primitives/src/Menu.stories.tsx b/packages/primitives/src/Menu.stories.tsx index faa4745734..990092d3f7 100644 --- a/packages/primitives/src/Menu.stories.tsx +++ b/packages/primitives/src/Menu.stories.tsx @@ -7,10 +7,16 @@ */ import { Portal } from "@ark-ui/react"; -import { Meta, StoryFn } from "@storybook/react"; -import { FileCopyLine, CloseLine, PencilFill, DeleteBinLine } from "@ndla/icons/action"; -import { ArrowRightShortLine, ShareFill } from "@ndla/icons/common"; -import { SettingsLine } from "@ndla/icons/editor"; +import type { Meta, StoryFn } from "@storybook/react"; +import { + FileCopyLine, + CloseLine, + PencilFill, + DeleteBinLine, + ArrowRightShortLine, + ShareFill, + SettingsLine, +} from "@ndla/icons"; import { HStack, styled } from "@ndla/styled-system/jsx"; import { Button } from "./Button"; import { @@ -18,7 +24,6 @@ import { MenuItem, MenuItemGroup, MenuItemGroupLabel, - MenuPositioner, MenuRoot, MenuTrigger, MenuTriggerItem, @@ -42,8 +47,47 @@ export const Default: StoryFn = (args) => ( - - + + + + Rediger + + + + Del + + + + + Gå til delt mappe + + + + + Kopier lenke til mappen + + + + Avslutt deling + + + + Slett + + + + +); + +export const Grouped: StoryFn = (args) => ( + + + + + + + + Mappehandlinger Rediger @@ -52,70 +96,27 @@ export const Default: StoryFn = (args) => ( Del - - - - Gå til delt mappe - - - - - Kopier lenke til mappen + + + Slett Avslutt deling - - - Slett + + + Handlinger + + + Gå til delt mappe - - - - -); - -export const Grouped: StoryFn = (args) => ( - - - - - - - - - Mappehandlinger - - - Rediger - - - - Del - - - - Slett - - - - Avslutt deling - - - - Handlinger - - - Gå til delt mappe - - - - Kopier lenke til mappen - - - - + + + Kopier lenke til mappen + + + ); @@ -126,55 +127,51 @@ export const Nested: StoryFn = (args) => ( - - - - Handlinger - - - Gå til delt mappe - - - - Kopier lenke til mappen - - - - - - - Mappehandlinger - - - - - - - - Mappehandlinger - - - Rediger - - - - Del - - - - Slett - - - - Avslutt deling - - - - - - - - + + + Handlinger + + + Gå til delt mappe + + + + Kopier lenke til mappen + + + + + + + Mappehandlinger + + + + + + + Mappehandlinger + + + Rediger + + + + Del + + + + Slett + + + + Avslutt deling + + + + + + ); diff --git a/packages/primitives/src/Menu.tsx b/packages/primitives/src/Menu.tsx index d1dcfd6513..f738d4fb53 100644 --- a/packages/primitives/src/Menu.tsx +++ b/packages/primitives/src/Menu.tsx @@ -9,9 +9,9 @@ import { forwardRef } from "react"; import { Menu, menuAnatomy } from "@ark-ui/react"; import { css, cva, sva } from "@ndla/styled-system/css"; -import { JsxStyleProps, RecipeVariantProps, SystemStyleObject } from "@ndla/styled-system/types"; +import type { JsxStyleProps, RecipeVariantProps, SystemStyleObject } from "@ndla/styled-system/types"; import { createStyleContext } from "./createStyleContext"; -import { Text, TextProps } from "./Text"; +import { Text, type TextProps } from "./Text"; const itemStyle: SystemStyleObject = css.raw({ display: "flex", @@ -145,9 +145,19 @@ export const MenuRoot = ({ lazyMount = true, unmountOnExit = true, ...props }: M ); -export const MenuContent = withContext(Menu.Content, "content", { - baseComponent: true, -}); +export const MenuContentStandalone = withContext( + Menu.Content, + "content", + { + baseComponent: true, + }, +); + +export const MenuContent = forwardRef((props, ref) => ( + + + +)); const InternalMenuItemGroupLabel = withContext( Menu.ItemGroupLabel, diff --git a/packages/primitives/src/MessageBox.stories.tsx b/packages/primitives/src/MessageBox.stories.tsx index c8b1ae0c12..27a3765ff2 100644 --- a/packages/primitives/src/MessageBox.stories.tsx +++ b/packages/primitives/src/MessageBox.stories.tsx @@ -6,8 +6,8 @@ * */ -import { Meta, StoryObj } from "@storybook/react"; -import { InformationLine } from "@ndla/icons/common"; +import type { Meta, StoryObj } from "@storybook/react"; +import { InformationLine } from "@ndla/icons"; import { css } from "@ndla/styled-system/css"; import { MessageBox } from "./MessageBox"; import { Text } from "./Text"; diff --git a/packages/primitives/src/MessageBox.tsx b/packages/primitives/src/MessageBox.tsx index 21f9df6f1a..777bd0a08e 100644 --- a/packages/primitives/src/MessageBox.tsx +++ b/packages/primitives/src/MessageBox.tsx @@ -7,10 +7,10 @@ */ import { forwardRef } from "react"; -import { HTMLArkProps, ark } from "@ark-ui/react"; +import { type HTMLArkProps, ark } from "@ark-ui/react"; import { css, cva } from "@ndla/styled-system/css"; import { styled } from "@ndla/styled-system/jsx"; -import { JsxStyleProps, RecipeVariantProps } from "@ndla/styled-system/types"; +import type { JsxStyleProps, RecipeVariantProps } from "@ndla/styled-system/types"; const messageBoxRecipe = cva({ base: { diff --git a/packages/primitives/src/NdlaLogo.stories.tsx b/packages/primitives/src/NdlaLogo.stories.tsx index 825cb63285..420804db87 100644 --- a/packages/primitives/src/NdlaLogo.stories.tsx +++ b/packages/primitives/src/NdlaLogo.stories.tsx @@ -6,7 +6,7 @@ * */ -import { Meta, StoryFn, StoryObj } from "@storybook/react"; +import type { Meta, StoryFn, StoryObj } from "@storybook/react"; import { NdlaLogoEn, NdlaLogoNb, NdlaLogoText } from "./NdlaLogo"; /** diff --git a/packages/primitives/src/NdlaLogo.tsx b/packages/primitives/src/NdlaLogo.tsx index 1a18d3b41c..02af8c3250 100644 --- a/packages/primitives/src/NdlaLogo.tsx +++ b/packages/primitives/src/NdlaLogo.tsx @@ -6,16 +6,21 @@ * */ -import { ComponentPropsWithoutRef } from "react"; +import { type ComponentPropsWithoutRef } from "react"; import { css } from "@ndla/styled-system/css"; import { styled } from "@ndla/styled-system/jsx"; -import { ColorToken } from "@ndla/styled-system/tokens"; -import { JsxStyleProps } from "@ndla/styled-system/types"; +import type { ColorToken } from "@ndla/styled-system/tokens"; +import type { JsxStyleProps } from "@ndla/styled-system/types"; export type LogoProps = ComponentPropsWithoutRef<"svg"> & { color?: ColorToken } & JsxStyleProps; -const BaseSvg = ({ color = "primary", css: cssProp, ...props }: LogoProps) => ( - +const BaseSvg = ({ color = "primary", "aria-hidden": ariaHidden = true, css: cssProp, ...props }: LogoProps) => ( + ); export const NdlaLogoEn = (props: LogoProps) => ( diff --git a/packages/primitives/src/Pagination.stories.tsx b/packages/primitives/src/Pagination.stories.tsx index 570c62e048..f6fbe5f494 100644 --- a/packages/primitives/src/Pagination.stories.tsx +++ b/packages/primitives/src/Pagination.stories.tsx @@ -7,8 +7,8 @@ */ import { PaginationContext } from "@ark-ui/react"; -import { Meta, StoryObj } from "@storybook/react"; -import { ArrowLeftShortLine, ArrowRightShortLine } from "@ndla/icons/common"; +import type { Meta, StoryObj } from "@storybook/react"; +import { ArrowLeftShortLine, ArrowRightShortLine } from "@ndla/icons"; import { Button } from "./Button"; import { PaginationEllipsis, diff --git a/packages/primitives/src/Pagination.tsx b/packages/primitives/src/Pagination.tsx index fc7749baf7..4a8484b61e 100644 --- a/packages/primitives/src/Pagination.tsx +++ b/packages/primitives/src/Pagination.tsx @@ -8,7 +8,7 @@ import { Pagination, paginationAnatomy } from "@ark-ui/react"; import { sva } from "@ndla/styled-system/css"; -import { JsxStyleProps } from "@ndla/styled-system/types"; +import type { JsxStyleProps } from "@ndla/styled-system/types"; import { createStyleContext } from "./createStyleContext"; const paginationRecipe = sva({ diff --git a/packages/primitives/src/Popover.stories.tsx b/packages/primitives/src/Popover.stories.tsx index 89ff2720c8..eb6264c6cf 100644 --- a/packages/primitives/src/Popover.stories.tsx +++ b/packages/primitives/src/Popover.stories.tsx @@ -7,7 +7,7 @@ */ import { Portal } from "@ark-ui/react"; -import { Meta, StoryFn, StoryObj } from "@storybook/react"; +import type { Meta, StoryFn, StoryObj } from "@storybook/react"; import { Button } from "./Button"; import { PopoverContent, diff --git a/packages/primitives/src/Popover.tsx b/packages/primitives/src/Popover.tsx index 2874cc43e5..4c6cdb8424 100644 --- a/packages/primitives/src/Popover.tsx +++ b/packages/primitives/src/Popover.tsx @@ -9,9 +9,9 @@ import { forwardRef } from "react"; import { Popover, popoverAnatomy } from "@ark-ui/react"; import { sva } from "@ndla/styled-system/css"; -import { JsxStyleProps } from "@ndla/styled-system/types"; +import type { JsxStyleProps } from "@ndla/styled-system/types"; import { createStyleContext } from "./createStyleContext"; -import { Heading, TextProps } from "./Text"; +import { Heading, type TextProps } from "./Text"; const popoverRecipe = sva({ slots: popoverAnatomy.keys(), diff --git a/packages/primitives/src/RadioGroup.stories.tsx b/packages/primitives/src/RadioGroup.stories.tsx index 403a76b9ab..4dced331c7 100644 --- a/packages/primitives/src/RadioGroup.stories.tsx +++ b/packages/primitives/src/RadioGroup.stories.tsx @@ -6,7 +6,7 @@ * */ -import { Meta, StoryObj } from "@storybook/react"; +import type { Meta, StoryObj } from "@storybook/react"; import { RadioGroupItem, RadioGroupItemControl, diff --git a/packages/primitives/src/RadioGroup.tsx b/packages/primitives/src/RadioGroup.tsx index 6f0b742bf6..7eacb802a0 100644 --- a/packages/primitives/src/RadioGroup.tsx +++ b/packages/primitives/src/RadioGroup.tsx @@ -9,10 +9,9 @@ import { forwardRef } from "react"; import { RadioGroup, radioGroupAnatomy } from "@ark-ui/react"; import { sva } from "@ndla/styled-system/css"; -import { JsxStyleProps } from "@ndla/styled-system/types"; +import type { JsxStyleProps } from "@ndla/styled-system/types"; import { createStyleContext } from "./createStyleContext"; -import { Label } from "./Label"; -import { Text, TextProps } from "./Text"; +import { Text, type TextProps } from "./Text"; const radioGroupRecipe = sva({ slots: radioGroupAnatomy.keys(), @@ -142,9 +141,11 @@ export const InternalRadioGroupLabel = withContext( - ({ textStyle = "label.large", children, ...props }, ref) => ( - - + ({ textStyle = "label.large", fontWeight = "bold", children, ...props }, ref) => ( + + + {children} + ), ); diff --git a/packages/primitives/src/Select.stories.tsx b/packages/primitives/src/Select.stories.tsx index 6a1353dd41..99692f0978 100644 --- a/packages/primitives/src/Select.stories.tsx +++ b/packages/primitives/src/Select.stories.tsx @@ -8,10 +8,8 @@ import { useState } from "react"; import { Portal, createListCollection } from "@ark-ui/react"; -import { Meta, StoryFn } from "@storybook/react"; -import { CloseLine } from "@ndla/icons/action"; -import { ArrowDownShortLine } from "@ndla/icons/common"; -import { CheckLine } from "@ndla/icons/editor"; +import type { Meta, StoryFn } from "@storybook/react"; +import { CloseLine, ArrowDownShortLine, CheckLine } from "@ndla/icons"; import { css } from "@ndla/styled-system/css"; import { HStack } from "@ndla/styled-system/jsx"; import { Button, IconButton } from "./Button"; @@ -39,7 +37,6 @@ import { SelectItemIndicator, SelectItemText, SelectLabel, - SelectPositioner, SelectRoot, SelectTrigger, SelectValueText, @@ -72,18 +69,16 @@ export const Default: StoryFn = ({ ...args }) => { - - - {measurements.map((measurement) => ( - - {measurement.label} - - - - - ))} - - + + {measurements.map((measurement) => ( + + {measurement.label} + + + + + ))} + ); @@ -104,18 +99,16 @@ export const Disabled: StoryFn = ({ ...args }) => { - - - {measurements.map((measurement) => ( - - {measurement.label} - - - - - ))} - - + + {measurements.map((measurement) => ( + + {measurement.label} + + + + + ))} + ); @@ -139,18 +132,16 @@ export const DisabledItems: StoryFn = ({ ...args }) => { - - - {withDisabled.map((measurement) => ( - - {measurement.label} - - - - - ))} - - + + {withDisabled.map((measurement) => ( + + {measurement.label} + + + + + ))} + ); @@ -182,23 +173,21 @@ export const Grouped: StoryFn = ({ ...args }) => { - - - {Object.entries(groupedCountries).map(([letter, countries]) => ( - - {letter} - {countries.map((country) => ( - - {country.label} - - - - - ))} - - ))} - - + + {Object.entries(groupedCountries).map(([letter, countries]) => ( + + {letter} + {countries.map((country) => ( + + {country.label} + + + + + ))} + + ))} + ); @@ -219,23 +208,21 @@ export const Multiple: StoryFn = ({ ...args }) => { - - - {Object.entries(groupedCountries).map(([letter, countries]) => ( - - {letter} - {countries.map((country) => ( - - {country.label} - - - - - ))} - - ))} - - + + {Object.entries(groupedCountries).map(([letter, countries]) => ( + + {letter} + {countries.map((country) => ( + + {country.label} + + + + + ))} + + ))} + ); @@ -270,23 +257,21 @@ export const MultipleTruncated: StoryFn = ({ ...args }) => { - - - {Object.entries(groupedCountries).map(([letter, countries]) => ( - - {letter} - {countries.map((country) => ( - - {country.label} - - - - - ))} - - ))} - - + + {Object.entries(groupedCountries).map(([letter, countries]) => ( + + {letter} + {countries.map((country) => ( + + {country.label} + + + + + ))} + + ))} + ); @@ -312,23 +297,21 @@ export const WithClearButton: StoryFn = ({ ...args }) => { - - - {Object.entries(groupedCountries).map(([letter, countries]) => ( - - {letter} - {countries.map((country) => ( - - {country.label} - - - - - ))} - - ))} - - + + {Object.entries(groupedCountries).map(([letter, countries]) => ( + + {letter} + {countries.map((country) => ( + + {country.label} + + + + + ))} + + ))} + ); @@ -372,18 +355,16 @@ export const InDialog: StoryFn = ({ ...args }) => { - - - {measurements.map((measurement) => ( - - {measurement.label} - - - - - ))} - - + + {measurements.map((measurement) => ( + + {measurement.label} + + + + + ))} + @@ -428,18 +409,16 @@ export const WithField: StoryFn = ({ ...args }) => { - - - {measurements.map((measurement) => ( - - {measurement.label} - - - - - ))} - - + + {measurements.map((measurement) => ( + + {measurement.label} + + + + + ))} + diff --git a/packages/primitives/src/Select.tsx b/packages/primitives/src/Select.tsx index 499cc49157..6e05b5b66f 100644 --- a/packages/primitives/src/Select.tsx +++ b/packages/primitives/src/Select.tsx @@ -9,10 +9,10 @@ import { forwardRef } from "react"; import { Select, selectAnatomy } from "@ark-ui/react"; import { sva } from "@ndla/styled-system/css"; -import { JsxStyleProps } from "@ndla/styled-system/types"; +import type { JsxStyleProps } from "@ndla/styled-system/types"; import { createStyleContext } from "./createStyleContext"; import { Label } from "./Label"; -import { TextProps } from "./Text"; +import { type TextProps } from "./Text"; const selectRecipe = sva({ slots: selectAnatomy.keys(), @@ -37,7 +37,7 @@ const selectRecipe = sva({ boxShadow: "large", padding: "xsmall", overflowY: "auto", - maxHeight: "surface.xsmall", + maxHeight: "min(token(spacing.surface.xsmall), 45vh)", _focusVisible: { outlineOffset: "-1", }, @@ -163,12 +163,18 @@ export const SelectClearTrigger = withContext( +export const SelectContentStandalone = withContext( Select.Content, "content", { baseComponent: true }, ); +export const SelectContent = forwardRef((props, ref) => ( + + + +)); + export const SelectControl = withContext( Select.Control, "control", diff --git a/packages/primitives/src/Skeleton.stories.tsx b/packages/primitives/src/Skeleton.stories.tsx index bff25c4aea..a0a0c8e96b 100644 --- a/packages/primitives/src/Skeleton.stories.tsx +++ b/packages/primitives/src/Skeleton.stories.tsx @@ -7,7 +7,7 @@ */ import { useEffect, useState } from "react"; -import { Meta, StoryFn, StoryObj } from "@storybook/react"; +import type { Meta, StoryFn, StoryObj } from "@storybook/react"; import { Circle, Stack } from "@ndla/styled-system/jsx"; import { Button } from "./Button"; import { Skeleton } from "./Skeleton"; diff --git a/packages/primitives/src/Skeleton.tsx b/packages/primitives/src/Skeleton.tsx index ee891700dc..bcd114e1d5 100644 --- a/packages/primitives/src/Skeleton.tsx +++ b/packages/primitives/src/Skeleton.tsx @@ -6,9 +6,9 @@ * */ -import { HTMLArkProps, ark } from "@ark-ui/react"; +import { type HTMLArkProps, ark } from "@ark-ui/react"; import { styled } from "@ndla/styled-system/jsx"; -import { JsxStyleProps } from "@ndla/styled-system/types"; +import type { JsxStyleProps } from "@ndla/styled-system/types"; export const Skeleton = styled( ark.div, diff --git a/packages/primitives/src/Slider.stories.tsx b/packages/primitives/src/Slider.stories.tsx index 348731d221..2fcff9dc12 100644 --- a/packages/primitives/src/Slider.stories.tsx +++ b/packages/primitives/src/Slider.stories.tsx @@ -6,7 +6,7 @@ * */ -import { Meta, StoryObj } from "@storybook/react"; +import type { Meta, StoryObj } from "@storybook/react"; import { SliderControl, SliderHiddenInput, diff --git a/packages/primitives/src/Slider.tsx b/packages/primitives/src/Slider.tsx index cec704cd85..8281bda777 100644 --- a/packages/primitives/src/Slider.tsx +++ b/packages/primitives/src/Slider.tsx @@ -8,10 +8,10 @@ import { Slider, sliderAnatomy } from "@ark-ui/react"; import { sva } from "@ndla/styled-system/css"; -import { JsxStyleProps } from "@ndla/styled-system/types"; +import type { JsxStyleProps } from "@ndla/styled-system/types"; import { createStyleContext } from "./createStyleContext"; import { Label } from "./Label"; -import { TextProps } from "./Text"; +import { type TextProps } from "./Text"; const sliderRecipe = sva({ slots: sliderAnatomy.keys(), diff --git a/packages/primitives/src/Spinner.stories.tsx b/packages/primitives/src/Spinner.stories.tsx index aa015a564c..cd488980c8 100644 --- a/packages/primitives/src/Spinner.stories.tsx +++ b/packages/primitives/src/Spinner.stories.tsx @@ -6,7 +6,7 @@ * */ -import { Meta, StoryObj } from "@storybook/react"; +import type { Meta, StoryObj } from "@storybook/react"; import { Spinner } from "./Spinner"; export default { diff --git a/packages/primitives/src/Spinner.tsx b/packages/primitives/src/Spinner.tsx index 3ef1e24bc8..d2835391c4 100644 --- a/packages/primitives/src/Spinner.tsx +++ b/packages/primitives/src/Spinner.tsx @@ -7,10 +7,10 @@ */ import { forwardRef } from "react"; -import { HTMLArkProps, ark } from "@ark-ui/react"; -import { RecipeVariantProps, css, cva } from "@ndla/styled-system/css"; +import { type HTMLArkProps, ark } from "@ark-ui/react"; +import { type RecipeVariantProps, css, cva } from "@ndla/styled-system/css"; import { styled } from "@ndla/styled-system/jsx"; -import { JsxStyleProps } from "@ndla/styled-system/types"; +import type { JsxStyleProps } from "@ndla/styled-system/types"; export const spinnerRecipe = cva({ base: { diff --git a/packages/primitives/src/Switch.stories.tsx b/packages/primitives/src/Switch.stories.tsx index 2d65978d4e..85af153221 100644 --- a/packages/primitives/src/Switch.stories.tsx +++ b/packages/primitives/src/Switch.stories.tsx @@ -7,7 +7,7 @@ */ import { useState } from "react"; -import { Meta, StoryFn } from "@storybook/react"; +import type { Meta, StoryFn } from "@storybook/react"; import { FieldRoot } from "./Field"; import { FieldErrorMessage } from "./FieldErrorMessage"; import { FieldHelper } from "./FieldHelper"; diff --git a/packages/primitives/src/Switch.tsx b/packages/primitives/src/Switch.tsx index d56d84a5c1..9aa372340e 100644 --- a/packages/primitives/src/Switch.tsx +++ b/packages/primitives/src/Switch.tsx @@ -7,10 +7,10 @@ */ import { Switch, switchAnatomy } from "@ark-ui/react"; -import { RecipeVariantProps, sva } from "@ndla/styled-system/css"; -import { JsxStyleProps } from "@ndla/styled-system/types"; +import { type RecipeVariantProps, sva } from "@ndla/styled-system/css"; +import type { JsxStyleProps } from "@ndla/styled-system/types"; import { createStyleContext } from "./createStyleContext"; -import { Text, TextProps } from "./Text"; +import { Text, type TextProps } from "./Text"; const switchRecipe = sva({ slots: switchAnatomy.keys(), diff --git a/packages/primitives/src/Table.stories.tsx b/packages/primitives/src/Table.stories.tsx index eee2b96281..ad6c8bb005 100644 --- a/packages/primitives/src/Table.stories.tsx +++ b/packages/primitives/src/Table.stories.tsx @@ -6,7 +6,7 @@ * */ -import { Meta, StoryFn } from "@storybook/react"; +import type { Meta, StoryFn } from "@storybook/react"; import { Table } from "./Table"; /** diff --git a/packages/primitives/src/Table.tsx b/packages/primitives/src/Table.tsx index 56811979c9..52ff5dd4d2 100644 --- a/packages/primitives/src/Table.tsx +++ b/packages/primitives/src/Table.tsx @@ -6,9 +6,9 @@ * */ -import { HTMLArkProps, ark } from "@ark-ui/react"; +import { type HTMLArkProps, ark } from "@ark-ui/react"; import { styled } from "@ndla/styled-system/jsx"; -import { JsxStyleProps } from "@ndla/styled-system/types"; +import type { JsxStyleProps } from "@ndla/styled-system/types"; export type TableProps = HTMLArkProps<"table"> & JsxStyleProps; @@ -64,6 +64,7 @@ export const Table = styled( display: "table-cell", paddingInline: "xsmall", paddingBlock: "3xsmall", + minWidth: "large", "&[data-align='center']": { textAlign: "center", }, @@ -76,5 +77,6 @@ export const Table = styled( }, }, }, - { baseComponent: true }, + // TODO: Chrome doesn't support automatically making overflowed elements tabbable yet. Revisit this in a year or two + { baseComponent: true, defaultProps: { tabIndex: 0 } }, ); diff --git a/packages/primitives/src/Tabs.stories.tsx b/packages/primitives/src/Tabs.stories.tsx index c2a4ee19d6..dfd29b6181 100644 --- a/packages/primitives/src/Tabs.stories.tsx +++ b/packages/primitives/src/Tabs.stories.tsx @@ -6,7 +6,7 @@ * */ -import { Meta, StoryObj } from "@storybook/react"; +import type { Meta, StoryObj } from "@storybook/react"; import { Button } from "./Button"; import { TabsContent, TabsIndicator, TabsList, TabsRoot, TabsTrigger } from "./Tabs"; import { Heading, Text } from "./Text"; diff --git a/packages/primitives/src/Tabs.tsx b/packages/primitives/src/Tabs.tsx index d2a7664e53..8fbb698ca6 100644 --- a/packages/primitives/src/Tabs.tsx +++ b/packages/primitives/src/Tabs.tsx @@ -7,8 +7,8 @@ */ import { Tabs } from "@ark-ui/react"; -import { RecipeVariantProps, cx, sva } from "@ndla/styled-system/css"; -import { JsxStyleProps } from "@ndla/styled-system/types"; +import { type RecipeVariantProps, cx, sva } from "@ndla/styled-system/css"; +import type { JsxStyleProps } from "@ndla/styled-system/types"; import { createStyleContext } from "./createStyleContext"; const tabsRecipe = sva({ diff --git a/packages/primitives/src/TagsInput.stories.tsx b/packages/primitives/src/TagsInput.stories.tsx index 58dd996210..b4f4a6c9bc 100644 --- a/packages/primitives/src/TagsInput.stories.tsx +++ b/packages/primitives/src/TagsInput.stories.tsx @@ -8,8 +8,8 @@ import { useState } from "react"; import { TagsInputContext } from "@ark-ui/react"; -import { Meta, StoryFn } from "@storybook/react"; -import { CloseLine } from "@ndla/icons/action"; +import type { Meta, StoryFn } from "@storybook/react"; +import { CloseLine } from "@ndla/icons"; import { HStack } from "@ndla/styled-system/jsx"; import { IconButton } from "./Button"; import { FieldRoot } from "./Field"; diff --git a/packages/primitives/src/TagsInput.tsx b/packages/primitives/src/TagsInput.tsx index dff4048818..e51757a33c 100644 --- a/packages/primitives/src/TagsInput.tsx +++ b/packages/primitives/src/TagsInput.tsx @@ -9,10 +9,10 @@ import { forwardRef } from "react"; import { TagsInput, tagsInputAnatomy } from "@ark-ui/react"; import { sva } from "@ndla/styled-system/css"; -import { JsxStyleProps } from "@ndla/styled-system/types"; +import type { JsxStyleProps } from "@ndla/styled-system/types"; import { createStyleContext } from "./createStyleContext"; import { Label } from "./Label"; -import { TextProps } from "./Text"; +import { type TextProps } from "./Text"; const tagsInputRecipe = sva({ slots: tagsInputAnatomy.keys(), diff --git a/packages/primitives/src/Text.stories.tsx b/packages/primitives/src/Text.stories.tsx index e230f5a382..f9ca958835 100644 --- a/packages/primitives/src/Text.stories.tsx +++ b/packages/primitives/src/Text.stories.tsx @@ -6,7 +6,7 @@ * */ -import { Meta, StoryFn, StoryObj } from "@storybook/react"; +import type { Meta, StoryFn, StoryObj } from "@storybook/react"; import { css } from "@ndla/styled-system/css"; import { styled } from "@ndla/styled-system/jsx"; import { Heading, Text } from "./Text"; diff --git a/packages/primitives/src/Text.tsx b/packages/primitives/src/Text.tsx index 3c5197688f..44b3aacb56 100644 --- a/packages/primitives/src/Text.tsx +++ b/packages/primitives/src/Text.tsx @@ -7,12 +7,11 @@ */ import { forwardRef } from "react"; -import { HTMLArkProps, ark } from "@ark-ui/react"; +import { type HTMLArkProps, ark } from "@ark-ui/react"; import { css } from "@ndla/styled-system/css"; import { styled } from "@ndla/styled-system/jsx"; -import { ColorToken, FontWeightToken } from "@ndla/styled-system/tokens"; -import { JsxStyleProps } from "@ndla/styled-system/types"; -import type { UtilityValues } from "@ndla/styled-system/types"; +import type { ColorToken, FontWeightToken } from "@ndla/styled-system/tokens"; +import type { JsxStyleProps, UtilityValues } from "@ndla/styled-system/types"; export interface TextProps { textStyle?: UtilityValues["textStyle"]; diff --git a/packages/primitives/src/TextArea.stories.tsx b/packages/primitives/src/TextArea.stories.tsx index b3e8ef9c1d..3e29b2c547 100644 --- a/packages/primitives/src/TextArea.stories.tsx +++ b/packages/primitives/src/TextArea.stories.tsx @@ -7,9 +7,8 @@ */ import { useState } from "react"; -import { Meta, StoryFn } from "@storybook/react"; -import { SearchLine } from "@ndla/icons/common"; -import { CheckboxCircleFill } from "@ndla/icons/editor"; +import type { Meta, StoryFn } from "@storybook/react"; +import { SearchLine, CheckboxCircleFill } from "@ndla/icons"; import { FieldRoot } from "./Field"; import { FieldErrorMessage } from "./FieldErrorMessage"; import { FieldHelper } from "./FieldHelper"; diff --git a/packages/primitives/src/Toast.stories.tsx b/packages/primitives/src/Toast.stories.tsx index af0408fbef..8892608f2e 100644 --- a/packages/primitives/src/Toast.stories.tsx +++ b/packages/primitives/src/Toast.stories.tsx @@ -7,8 +7,8 @@ */ import { Portal, Toaster, createToaster } from "@ark-ui/react"; -import { Meta, StoryFn } from "@storybook/react"; -import { CloseLine } from "@ndla/icons/action"; +import type { Meta, StoryFn } from "@storybook/react"; +import { CloseLine } from "@ndla/icons"; import { styled } from "@ndla/styled-system/jsx"; import { Button, IconButton } from "./Button"; import { ToastCloseTrigger, ToastDescription, ToastRoot, ToastTitle } from "./Toast"; diff --git a/packages/primitives/src/Toast.tsx b/packages/primitives/src/Toast.tsx index ebb877cd18..4592138986 100644 --- a/packages/primitives/src/Toast.tsx +++ b/packages/primitives/src/Toast.tsx @@ -8,9 +8,9 @@ import { Toast, toastAnatomy } from "@ark-ui/react"; import { sva } from "@ndla/styled-system/css"; -import { JsxStyleProps, RecipeVariantProps } from "@ndla/styled-system/types"; +import type { JsxStyleProps, RecipeVariantProps } from "@ndla/styled-system/types"; import { createStyleContext } from "./createStyleContext"; -import { Text, TextProps } from "./Text"; +import { Text, type TextProps } from "./Text"; const toastRecipe = sva({ slots: toastAnatomy.keys(), diff --git a/packages/primitives/src/ToggleGroup.stories.tsx b/packages/primitives/src/ToggleGroup.stories.tsx index f4f113343e..d8f068146a 100644 --- a/packages/primitives/src/ToggleGroup.stories.tsx +++ b/packages/primitives/src/ToggleGroup.stories.tsx @@ -6,9 +6,10 @@ * */ -import { Meta, StoryFn } from "@storybook/react"; -import { Bold, Italic, Link, ListAlphabetical, ListCircle, ListNumbered } from "@ndla/icons/editor"; +import type { Meta, StoryFn } from "@storybook/react"; +import { Bold, Italic, LinkMedium, ListAlphabetical, ListUnordered, ListOrdered } from "@ndla/icons"; import { HStack, styled } from "@ndla/styled-system/jsx"; +import { IconButton } from "./Button"; import { ToggleGroupRoot, ToggleGroupItem } from "./ToggleGroup"; export default { @@ -20,20 +21,30 @@ export default { export const Primary: StoryFn = ({ ...args }) => { return ( - - + + + + - - + + + + - - + + + + - - + + + + - - + + + + ); @@ -42,20 +53,30 @@ export const Primary: StoryFn = ({ ...args }) => { export const Secondary: StoryFn = ({ ...args }) => { return ( - - + + + + - - + + + + - - + + + + - - + + + + - - + + + + ); @@ -64,20 +85,30 @@ export const Secondary: StoryFn = ({ ...args }) => { export const Tertiary: StoryFn = ({ ...args }) => { return ( - - + + + + - - + + + + - - + + + + - - + + + + - - + + + + ); @@ -86,14 +117,20 @@ export const Tertiary: StoryFn = ({ ...args }) => { export const ToggleMultiple: StoryFn = ({ ...args }) => { return ( - - - - - - - - + + + + + + + + + + + + + + ); @@ -113,27 +150,39 @@ export const MultipleGroups: StoryFn = () => { return ( - - + + + + - - + + + + - - + + + + - - + + + + - - + + + + - - + + + + @@ -143,20 +192,30 @@ export const MultipleGroups: StoryFn = () => { export const InitialActive: StoryFn = () => { return ( - - + + + + - - + + + + - - + + + + - - + + + + - - + + + + ); diff --git a/packages/primitives/src/ToggleGroup.tsx b/packages/primitives/src/ToggleGroup.tsx index 9d0e4be537..e5e0a5e3c8 100644 --- a/packages/primitives/src/ToggleGroup.tsx +++ b/packages/primitives/src/ToggleGroup.tsx @@ -6,11 +6,9 @@ * */ -import { forwardRef } from "react"; import { toggleGroupAnatomy, ToggleGroup } from "@ark-ui/react"; -import { RecipeVariantProps, css, cva, sva } from "@ndla/styled-system/css"; -import { JsxStyleProps } from "@ndla/styled-system/types"; -import { IconButton, IconButtonProps } from "./Button"; +import { type RecipeVariantProps, sva } from "@ndla/styled-system/css"; +import type { JsxStyleProps } from "@ndla/styled-system/types"; import { createStyleContext } from "./createStyleContext"; const toggleGroupRecipe = sva({ @@ -24,32 +22,6 @@ const toggleGroupRecipe = sva({ }, }); -const toggleGroupItemRecipe = cva({ - defaultVariants: { - variant: "primary", - }, - variants: { - variant: { - primary: { - _on: { - background: "surface.action.selected", - }, - }, - secondary: { - _on: { - background: "surface.actionSubtle.active", - }, - }, - tertiary: { - _on: { - background: "surface.actionSubtle.active", - boxShadow: "inset 0 0 0 1px var(--shadow-color)", - }, - }, - }, - }, -}); - const { withProvider, withContext } = createStyleContext(toggleGroupRecipe); export type ToggleGroupVariantProps = RecipeVariantProps; @@ -59,21 +31,8 @@ export const ToggleGroupRoot = withProvider; +export type ToggleGroupItemProps = ToggleGroup.ItemProps & JsxStyleProps; -export type ToggleGroupItemProps = ToggleGroup.ItemProps & IconButtonProps & ToggleGroupItemVariantProps; - -const InternalToggleGroupItem = withContext(ToggleGroup.Item, "item"); - -export const ToggleGroupItem = forwardRef( - ({ children, variant, css: cssProp, ...props }, ref) => ( - - {children} - - ), -); +export const ToggleGroupItem = withContext(ToggleGroup.Item, "item", { + baseComponent: true, +}); diff --git a/packages/primitives/src/Tooltip.stories.tsx b/packages/primitives/src/Tooltip.stories.tsx index 40a1992f81..14bb2b1582 100644 --- a/packages/primitives/src/Tooltip.stories.tsx +++ b/packages/primitives/src/Tooltip.stories.tsx @@ -7,7 +7,7 @@ */ import { Portal } from "@ark-ui/react"; -import { Meta, StoryFn } from "@storybook/react"; +import type { Meta, StoryFn } from "@storybook/react"; import { Button } from "./Button"; import { TooltipArrow, diff --git a/packages/primitives/src/Tooltip.tsx b/packages/primitives/src/Tooltip.tsx index f43b6abc5f..d1fa7f9a80 100644 --- a/packages/primitives/src/Tooltip.tsx +++ b/packages/primitives/src/Tooltip.tsx @@ -9,7 +9,7 @@ import { forwardRef } from "react"; import { Tooltip, tooltipAnatomy } from "@ark-ui/react"; import { sva } from "@ndla/styled-system/css"; -import { JsxStyleProps } from "@ndla/styled-system/types"; +import type { JsxStyleProps } from "@ndla/styled-system/types"; import { createStyleContext } from "./createStyleContext"; const tooltipRecipe = sva({ diff --git a/packages/primitives/src/Tree/Tree.stories.tsx b/packages/primitives/src/Tree/Tree.stories.tsx index 567ccd277e..20a462e6b3 100644 --- a/packages/primitives/src/Tree/Tree.stories.tsx +++ b/packages/primitives/src/Tree/Tree.stories.tsx @@ -6,9 +6,8 @@ * */ -import { Meta, StoryFn } from "@storybook/react"; -import { ArrowRightShortLine } from "@ndla/icons/common"; -import { CheckLine, FolderLine } from "@ndla/icons/editor"; +import type { Meta, StoryFn } from "@storybook/react"; +import { ArrowRightShortLine, CheckLine, FolderLine } from "@ndla/icons"; import { HStack } from "@ndla/styled-system/jsx"; import { Tree, diff --git a/packages/primitives/src/Tree/Tree.tsx b/packages/primitives/src/Tree/Tree.tsx index a462246ac6..2d87c35da0 100644 --- a/packages/primitives/src/Tree/Tree.tsx +++ b/packages/primitives/src/Tree/Tree.tsx @@ -9,9 +9,9 @@ import { forwardRef } from "react"; import { TreeView, treeViewAnatomy } from "@ark-ui/react"; import { sva } from "@ndla/styled-system/css"; -import { JsxStyleProps } from "@ndla/styled-system/types"; +import type { JsxStyleProps } from "@ndla/styled-system/types"; import { createStyleContext } from "../createStyleContext"; -import { Text, TextProps } from "../Text"; +import { Text, type TextProps } from "../Text"; const treeRecipe = sva({ slots: treeViewAnatomy.keys(), diff --git a/packages/primitives/src/__tests__/createStyleContext-test.tsx b/packages/primitives/src/__tests__/createStyleContext-test.tsx index de9f7af261..afd5f619c4 100644 --- a/packages/primitives/src/__tests__/createStyleContext-test.tsx +++ b/packages/primitives/src/__tests__/createStyleContext-test.tsx @@ -6,12 +6,12 @@ * */ -import React, { ComponentPropsWithRef, ReactNode, forwardRef } from "react"; -import { HTMLArkProps, ark } from "@ark-ui/react"; +import React, { type ComponentPropsWithRef, type ReactNode, forwardRef } from "react"; +import { type HTMLArkProps, ark } from "@ark-ui/react"; import { render } from "@testing-library/react"; import { css, sva } from "@ndla/styled-system/css"; import { styled } from "@ndla/styled-system/jsx"; -import { JsxStyleProps } from "@ndla/styled-system/types"; +import type { JsxStyleProps } from "@ndla/styled-system/types"; import { createStyleContext } from "../createStyleContext"; const svaA = sva({ diff --git a/packages/primitives/src/createStyleContext.tsx b/packages/primitives/src/createStyleContext.tsx index eed2e370df..6a0cede5a5 100644 --- a/packages/primitives/src/createStyleContext.tsx +++ b/packages/primitives/src/createStyleContext.tsx @@ -17,7 +17,7 @@ import { } from "react"; import { css } from "@ndla/styled-system/css"; import { styled } from "@ndla/styled-system/jsx"; -import { StyledComponent, SystemStyleObject, WithCss } from "@ndla/styled-system/types"; +import type { StyledComponent, SystemStyleObject, WithCss } from "@ndla/styled-system/types"; type Props = Record; type Recipe = { diff --git a/packages/primitives/src/index.ts b/packages/primitives/src/index.ts index fdc04f3448..bf170f560a 100644 --- a/packages/primitives/src/index.ts +++ b/packages/primitives/src/index.ts @@ -36,13 +36,10 @@ export { Button, IconButton, buttonBaseRecipe, buttonRecipe, iconButtonRecipe } export type { CardRootProps, CardVariantProps } from "./Card/Card"; export { CardRoot, CardHeading, CardContent, CardImage } from "./Card/Card"; +export { createStyleContext } from "./createStyleContext"; + export { ToggleGroupRoot, ToggleGroupItem } from "./ToggleGroup"; -export type { - ToggleGroupRootProps, - ToggleGroupVariantProps, - ToggleGroupItemProps, - ToggleGroupItemVariantProps, -} from "./ToggleGroup"; +export type { ToggleGroupRootProps, ToggleGroupVariantProps, ToggleGroupItemProps } from "./ToggleGroup"; export type { CheckboxVariantProps, CheckboxRootProps } from "./Checkbox"; @@ -76,6 +73,7 @@ export { ComboboxRoot, ComboboxClearTrigger, ComboboxContent, + ComboboxContentStandalone, ComboboxControl, ComboboxInput, ComboboxItemGroupLabel, @@ -116,6 +114,7 @@ export { ErrorMessageTitle, } from "./ErrorMessage/ErrorMessage"; +export { useFieldContext } from "@ark-ui/react"; export { FieldRoot, FieldsetRoot } from "./Field"; export type { FieldErrorMessageProps, FieldsetErrorTextProps } from "./FieldErrorMessage"; @@ -163,6 +162,9 @@ export { Label, FieldLabel, Legend, FieldsetLegend } from "./Label"; export type { ListItemVariantProps, ListItemProps } from "./ListItem/ListItem"; export { ListItemRoot, ListItemHeading, ListItemContent, ListItemImage } from "./ListItem/ListItem"; +export type { PageContainerVariantProps, PageContainerProps } from "./Layout/PageContainer"; +export { PageContainer } from "./Layout/PageContainer"; + export type { PageContentVariantProps } from "./Layout/PageContent"; export { PageContent, BleedPageContent } from "./Layout/PageContent"; @@ -238,6 +240,7 @@ export { SelectItemText, SelectLabel, SelectPositioner, + SelectContentStandalone, SelectTrigger, SelectValueText, SelectList, diff --git a/packages/safelink/package.json b/packages/safelink/package.json index f12a7e3027..70831dd0c3 100644 --- a/packages/safelink/package.json +++ b/packages/safelink/package.json @@ -1,6 +1,6 @@ { "name": "@ndla/safelink", - "version": "7.0.54-alpha.0", + "version": "7.0.63-alpha.0", "description": "SafeLink component for NDLA", "license": "GPL-3.0", "main": "lib/index.js", @@ -32,7 +32,7 @@ }, "devDependencies": { "@ndla/preset-panda": "workspace:^", - "@pandacss/dev": "^0.46.0" + "@pandacss/dev": "^0.48.0" }, "peerDependencies": { "react": ">= 18", diff --git a/packages/safelink/src/SafeLink.stories.tsx b/packages/safelink/src/SafeLink.stories.tsx index 1705d46946..d0a82add78 100644 --- a/packages/safelink/src/SafeLink.stories.tsx +++ b/packages/safelink/src/SafeLink.stories.tsx @@ -6,7 +6,7 @@ * */ -import { Meta, StoryObj } from "@storybook/react"; +import type { Meta, StoryObj } from "@storybook/react"; import { MissingRouterContext } from "./MissingRouterContext"; import { SafeLink } from "./SafeLink"; diff --git a/packages/safelink/src/SafeLink.tsx b/packages/safelink/src/SafeLink.tsx index a603fc8c2b..13b6ad2a7b 100644 --- a/packages/safelink/src/SafeLink.tsx +++ b/packages/safelink/src/SafeLink.tsx @@ -6,10 +6,10 @@ * */ -import { forwardRef, HTMLAttributes, MutableRefObject, ReactNode, useContext } from "react"; -import { Link, LinkProps } from "react-router-dom"; +import { forwardRef, type HTMLAttributes, type MutableRefObject, type ReactNode, useContext } from "react"; +import { Link, type LinkProps } from "react-router-dom"; import { styled } from "@ndla/styled-system/jsx"; -import { JsxStyleProps } from "@ndla/styled-system/types"; +import type { JsxStyleProps } from "@ndla/styled-system/types"; import { MissingRouterContext } from "./MissingRouterContext"; const oldNdlaRegex = /(.*)\/?node\/(\d+).*/; @@ -21,7 +21,6 @@ const isExternalLink = (to?: LinkProps["to"]) => export const isOldNdlaLink = (to?: LinkProps["to"]) => typeof to === "string" && to.match(oldNdlaRegex) !== null; type Props = { - showNewWindowIcon?: boolean; ref?: MutableRefObject; asAnchor?: boolean; children?: ReactNode; @@ -36,7 +35,7 @@ const StyledLink = styled(Link, {}, { baseComponent: true }); // Fallback to normal link if app is missing RouterContext, link is external or is old ndla link export const SafeLink = forwardRef( - ({ to, replace, disabled, unstyled, children, showNewWindowIcon, tabIndex, asAnchor, ...rest }, ref) => { + ({ to, replace, disabled, unstyled, children, tabIndex, asAnchor, ...rest }, ref) => { const isMissingRouterContext = useContext(MissingRouterContext); const unstyledProps = unstyled ? { "data-unstyled": "" } : {}; diff --git a/packages/safelink/src/SafeLinkButton.stories.tsx b/packages/safelink/src/SafeLinkButton.stories.tsx index 6aa1545917..c1861fbb80 100644 --- a/packages/safelink/src/SafeLinkButton.stories.tsx +++ b/packages/safelink/src/SafeLinkButton.stories.tsx @@ -6,7 +6,7 @@ * */ -import { Meta, StoryObj } from "@storybook/react"; +import type { Meta, StoryObj } from "@storybook/react"; import { MissingRouterContext } from "./MissingRouterContext"; import { SafeLinkButton } from "./SafeLinkButton"; @@ -35,7 +35,6 @@ export const Disabled: StoryObj = { export const ExternalLink: StoryObj = { args: { to: "https://example.com", - showNewWindowIcon: true, target: "_blank", }, }; diff --git a/packages/safelink/src/SafeLinkButton.tsx b/packages/safelink/src/SafeLinkButton.tsx index fbf61e229e..e8b94f4b85 100644 --- a/packages/safelink/src/SafeLinkButton.tsx +++ b/packages/safelink/src/SafeLinkButton.tsx @@ -6,10 +6,10 @@ * */ -import { forwardRef, ReactNode } from "react"; -import { buttonBaseRecipe, buttonRecipe, ButtonVariantProps } from "@ndla/primitives"; +import { forwardRef, type ReactNode } from "react"; +import { buttonBaseRecipe, buttonRecipe, type ButtonVariantProps } from "@ndla/primitives"; import { css } from "@ndla/styled-system/css"; -import { SafeLink, SafeLinkProps } from "./SafeLink"; +import { SafeLink, type SafeLinkProps } from "./SafeLink"; export interface SafeLinkButtonProps extends SafeLinkProps, ButtonVariantProps { children: ReactNode; diff --git a/packages/safelink/src/SafeLinkIconButton.stories.tsx b/packages/safelink/src/SafeLinkIconButton.stories.tsx index 2ffdeb8bd5..4682547540 100644 --- a/packages/safelink/src/SafeLinkIconButton.stories.tsx +++ b/packages/safelink/src/SafeLinkIconButton.stories.tsx @@ -6,8 +6,8 @@ * */ -import { Meta, StoryObj } from "@storybook/react"; -import { UserLine } from "@ndla/icons/common"; +import type { Meta, StoryObj } from "@storybook/react"; +import { UserLine } from "@ndla/icons"; import { MissingRouterContext } from "./MissingRouterContext"; import { SafeLinkIconButton } from "./SafeLinkIconButton"; diff --git a/packages/safelink/src/SafeLinkIconButton.tsx b/packages/safelink/src/SafeLinkIconButton.tsx index 8828ea4b8d..5a956c8cee 100644 --- a/packages/safelink/src/SafeLinkIconButton.tsx +++ b/packages/safelink/src/SafeLinkIconButton.tsx @@ -6,10 +6,10 @@ * */ -import { forwardRef, ReactNode } from "react"; -import { buttonBaseRecipe, iconButtonRecipe, IconButtonVariantProps } from "@ndla/primitives"; +import { forwardRef, type ReactNode } from "react"; +import { buttonBaseRecipe, iconButtonRecipe, type IconButtonVariantProps } from "@ndla/primitives"; import { css } from "@ndla/styled-system/css"; -import { SafeLink, SafeLinkProps } from "./SafeLink"; +import { SafeLink, type SafeLinkProps } from "./SafeLink"; export interface SafeLinkIconButtonProps extends SafeLinkProps, IconButtonVariantProps { children: ReactNode; diff --git a/packages/safelink/src/__tests__/SafeLink-test.tsx b/packages/safelink/src/__tests__/SafeLink-test.tsx index 70bc233246..fafca15e1b 100644 --- a/packages/safelink/src/__tests__/SafeLink-test.tsx +++ b/packages/safelink/src/__tests__/SafeLink-test.tsx @@ -8,7 +8,7 @@ /* eslint-env jest */ -import React, { ReactNode } from "react"; +import React, { type ReactNode } from "react"; import { StaticRouter } from "react-router-dom/server.js"; import { render } from "@testing-library/react"; import "@testing-library/jest-dom"; diff --git a/packages/styled-system/package.json b/packages/styled-system/package.json index 7d0b900089..dbc4c7891a 100644 --- a/packages/styled-system/package.json +++ b/packages/styled-system/package.json @@ -1,7 +1,7 @@ { "name": "@ndla/styled-system", "description": "Styled System for NDLA", - "version": "0.0.27", + "version": "0.0.29", "repository": { "type": "git", "url": "https://github.com/NDLANO/frontend-packages.git", @@ -19,7 +19,7 @@ "react-dom": ">= 18" }, "devDependencies": { - "@pandacss/dev": "^0.46.0" + "@pandacss/dev": "^0.48.0" }, "files": [ "*" diff --git a/packages/styled-system/src/tokens/index.js b/packages/styled-system/src/tokens/index.js index 7feed78c51..d3278b6ac6 100644 --- a/packages/styled-system/src/tokens/index.js +++ b/packages/styled-system/src/tokens/index.js @@ -1583,6 +1583,14 @@ const tokens = { "value": "var(--colors-pink-500)", "variable": "var(--colors-surface-error-subtle-active)" }, + "colors.surface.subtle": { + "value": "var(--colors-grey-50)", + "variable": "var(--colors-surface-subtle)" + }, + "colors.surface.subtle.selected": { + "value": "var(--colors-grey-100)", + "variable": "var(--colors-surface-subtle-selected)" + }, "colors.stroke.default": { "value": "var(--colors-primary)", "variable": "var(--colors-stroke-default)" @@ -1615,6 +1623,10 @@ const tokens = { "value": "var(--colors-grey-300)", "variable": "var(--colors-stroke-disabled)" }, + "colors.stroke.discrete": { + "value": "var(--colors-grey-300)", + "variable": "var(--colors-stroke-discrete)" + }, "spacing.-1": { "value": "calc(var(--spacing-1) * -1)", "variable": "var(--spacing-1)" @@ -2423,9 +2435,17 @@ const tokens = { "value": "var(--colors-color-palette-error-subtle-active)", "variable": "var(--colors-color-palette-error-subtle-active)" }, + "colors.colorPalette.subtle.selected": { + "value": "var(--colors-color-palette-subtle-selected)", + "variable": "var(--colors-color-palette-subtle-selected)" + }, "colors.colorPalette.info": { "value": "var(--colors-color-palette-info)", "variable": "var(--colors-color-palette-info)" + }, + "colors.colorPalette.discrete": { + "value": "var(--colors-color-palette-discrete)", + "variable": "var(--colors-color-palette-discrete)" } } diff --git a/packages/styled-system/src/tokens/tokens.d.ts b/packages/styled-system/src/tokens/tokens.d.ts index 6e74565bd4..1de083a830 100644 --- a/packages/styled-system/src/tokens/tokens.d.ts +++ b/packages/styled-system/src/tokens/tokens.d.ts @@ -1,9 +1,9 @@ /* eslint-disable */ -export type Token = "colors.grey.50" | "colors.grey.100" | "colors.grey.200" | "colors.grey.300" | "colors.grey.400" | "colors.grey.500" | "colors.grey.600" | "colors.grey.700" | "colors.grey.800" | "colors.grey.900" | "colors.grey.950" | "colors.blue.50" | "colors.blue.100" | "colors.blue.200" | "colors.blue.300" | "colors.blue.400" | "colors.blue.500" | "colors.blue.600" | "colors.blue.700" | "colors.blue.800" | "colors.blue.900" | "colors.blue.950" | "colors.purple.50" | "colors.purple.100" | "colors.purple.200" | "colors.purple.300" | "colors.purple.400" | "colors.purple.500" | "colors.purple.600" | "colors.purple.700" | "colors.purple.800" | "colors.purple.900" | "colors.purple.950" | "colors.yellow.50" | "colors.yellow.100" | "colors.yellow.200" | "colors.yellow.300" | "colors.yellow.400" | "colors.yellow.500" | "colors.yellow.600" | "colors.yellow.700" | "colors.yellow.800" | "colors.yellow.900" | "colors.yellow.950" | "colors.yellow.1000" | "colors.yellow.1100" | "colors.yellow.1200" | "colors.yellow.1300" | "colors.yellow.1400" | "colors.green.50" | "colors.green.100" | "colors.green.200" | "colors.green.300" | "colors.green.400" | "colors.green.500" | "colors.green.600" | "colors.green.700" | "colors.green.800" | "colors.green.900" | "colors.green.950" | "colors.pink.50" | "colors.pink.100" | "colors.pink.200" | "colors.pink.300" | "colors.pink.400" | "colors.pink.500" | "colors.pink.600" | "colors.pink.700" | "colors.pink.800" | "colors.pink.900" | "colors.pink.950" | "colors.white" | "colors.primary" | "easings.default" | "easings.emphasized-in" | "easings.emphasized-out" | "easings.pulse" | "durations.superFast" | "durations.fast" | "durations.normal" | "durations.slow" | "durations.infinite" | "radii.sharp" | "radii.xsmall" | "radii.small" | "radii.medium" | "radii.large" | "radii.full" | "spacing.1" | "spacing.2" | "spacing.3" | "spacing.4" | "spacing.5" | "spacing.6" | "spacing.7" | "spacing.8" | "spacing.9" | "spacing.10" | "spacing.11" | "spacing.12" | "spacing.13" | "spacing.14" | "spacing.15" | "spacing.16" | "spacing.17" | "spacing.18" | "spacing.19" | "spacing.20" | "spacing.22" | "spacing.24" | "spacing.26" | "spacing.28" | "spacing.32" | "spacing.36" | "spacing.40" | "spacing.44" | "spacing.48" | "spacing.50" | "spacing.60" | "spacing.72" | "spacing.75" | "spacing.100" | "spacing.150" | "spacing.200" | "spacing.250" | "spacing.300" | "spacing.350" | "spacing.400" | "spacing.500" | "spacing.550" | "sizes.1" | "sizes.2" | "sizes.3" | "sizes.4" | "sizes.5" | "sizes.6" | "sizes.7" | "sizes.8" | "sizes.9" | "sizes.10" | "sizes.11" | "sizes.12" | "sizes.13" | "sizes.14" | "sizes.15" | "sizes.16" | "sizes.17" | "sizes.18" | "sizes.19" | "sizes.20" | "sizes.22" | "sizes.24" | "sizes.26" | "sizes.28" | "sizes.32" | "sizes.36" | "sizes.40" | "sizes.44" | "sizes.48" | "sizes.50" | "sizes.60" | "sizes.72" | "sizes.75" | "sizes.100" | "sizes.150" | "sizes.200" | "sizes.250" | "sizes.300" | "sizes.350" | "sizes.400" | "sizes.500" | "sizes.550" | "sizes.breakpoint-mobile" | "sizes.breakpoint-mobileWide" | "sizes.breakpoint-tablet" | "sizes.breakpoint-tabletWide" | "sizes.breakpoint-desktop" | "sizes.breakpoint-wide" | "sizes.breakpoint-ultraWide" | "lineHeights.xxsmall" | "lineHeights.xsmall" | "lineHeights.small" | "lineHeights.medium" | "lineHeights.large" | "lineHeights.xlarge" | "lineHeights.xxlarge" | "lineHeights.3xlarge" | "lineHeights.4xlarge" | "fontWeights.light" | "fontWeights.normal" | "fontWeights.semibold" | "fontWeights.bold" | "fontSizes.xxsmall" | "fontSizes.xsmall" | "fontSizes.small" | "fontSizes.medium" | "fontSizes.large" | "fontSizes.xlarge" | "fontSizes.xxlarge" | "fontSizes.3xlarge" | "fontSizes.4xlarge" | "fonts.sans" | "fonts.serif" | "fonts.code" | "animations.spin" | "animations.collapse-in" | "animations.collapse-out" | "animations.fade-shift-in" | "animations.fade-shift-out" | "animations.backdrop-in" | "animations.backdrop-out" | "animations.dialog-in" | "animations.dialog-out" | "animations.drawer-in-left" | "animations.drawer-out-left" | "animations.drawer-in-right" | "animations.drawer-out-right" | "animations.drawer-in-bottom" | "animations.drawer-out-bottom" | "animations.drawer-in-top" | "animations.drawer-out-top" | "animations.skeleton-pulse" | "shadows.xsmall" | "shadows.small" | "shadows.medium" | "shadows.large" | "shadows.xlarge" | "shadows.full" | "shadows.inner" | "shadows.innerTop" | "shadows.innerRight" | "zIndex.hide" | "zIndex.base" | "zIndex.docked" | "zIndex.dropdown" | "zIndex.sticky" | "zIndex.banner" | "zIndex.overlay" | "zIndex.modal" | "zIndex.alertModalOverlay" | "zIndex.alertModal" | "zIndex.popover" | "zIndex.skipLink" | "zIndex.toast" | "zIndex.tooltip" | "breakpoints.mobile" | "breakpoints.mobileWide" | "breakpoints.tablet" | "breakpoints.tabletWide" | "breakpoints.desktop" | "breakpoints.wide" | "breakpoints.ultraWide" | "spacing.5xsmall" | "spacing.4xsmall" | "spacing.3xsmall" | "spacing.xxsmall" | "spacing.xsmall" | "spacing.small" | "spacing.medium" | "spacing.large" | "spacing.xlarge" | "spacing.xxlarge" | "spacing.3xlarge" | "spacing.4xlarge" | "spacing.5xlarge" | "spacing.surface.4xsmall" | "spacing.surface.3xsmall" | "spacing.surface.xxsmall" | "spacing.surface.xsmall" | "spacing.surface.small" | "spacing.surface.medium" | "spacing.surface.large" | "spacing.surface.xlarge" | "spacing.surface.xxlarge" | "spacing.surface.3xlarge" | "spacing.surface.4xlarge" | "sizes.5xsmall" | "sizes.4xsmall" | "sizes.3xsmall" | "sizes.xxsmall" | "sizes.xsmall" | "sizes.small" | "sizes.medium" | "sizes.large" | "sizes.xlarge" | "sizes.xxlarge" | "sizes.3xlarge" | "sizes.4xlarge" | "sizes.5xlarge" | "sizes.surface.4xsmall" | "sizes.surface.3xsmall" | "sizes.surface.xxsmall" | "sizes.surface.xsmall" | "sizes.surface.small" | "sizes.surface.medium" | "sizes.surface.large" | "sizes.surface.xlarge" | "sizes.surface.xxlarge" | "sizes.surface.3xlarge" | "sizes.surface.4xlarge" | "sizes.surface.pageMax" | "sizes.surface.contentMax" | "sizes.surface.articleMax" | "sizes.surface.wideMax" | "colors.background.default" | "colors.background.subtle" | "colors.background.strong" | "colors.text.default" | "colors.text.subtle" | "colors.text.strong" | "colors.text.action" | "colors.text.onAction" | "colors.text.link" | "colors.text.linkVisited" | "colors.text.error" | "colors.text.disabled" | "colors.icon.default" | "colors.icon.strong" | "colors.icon.onAction" | "colors.icon.subtle" | "colors.surface.brand.1" | "colors.surface.brand.1.subtle" | "colors.surface.brand.1.moderate" | "colors.surface.brand.1.strong" | "colors.surface.brand.2" | "colors.surface.brand.2.subtle" | "colors.surface.brand.2.moderate" | "colors.surface.brand.2.bold" | "colors.surface.brand.2.strong" | "colors.surface.brand.3" | "colors.surface.brand.3.subtle" | "colors.surface.brand.3.moderate" | "colors.surface.brand.3.strong" | "colors.surface.brand.4" | "colors.surface.brand.4.subtle" | "colors.surface.brand.4.moderate" | "colors.surface.brand.4.strong" | "colors.surface.brand.5" | "colors.surface.brand.5.subtle" | "colors.surface.brand.5.moderate" | "colors.surface.brand.5.strong" | "colors.surface.default" | "colors.surface.hover" | "colors.surface.active" | "colors.surface.selected" | "colors.surface.disabled" | "colors.surface.disabled.subtle" | "colors.surface.disabled.strong" | "colors.surface.infoSubtle" | "colors.surface.infoSubtle.hover" | "colors.surface.infoSubtle.active" | "colors.surface.action" | "colors.surface.action.hover" | "colors.surface.action.active" | "colors.surface.action.selected" | "colors.surface.action.myNdla" | "colors.surface.action.myNdla.hover" | "colors.surface.action.myNdla.current" | "colors.surface.action.brand.1" | "colors.surface.action.brand.1.hover" | "colors.surface.action.brand.1.active" | "colors.surface.action.brand.1.selected" | "colors.surface.action.brand.2" | "colors.surface.action.brand.2.hover" | "colors.surface.action.brand.2.selected" | "colors.surface.actionSubtle" | "colors.surface.actionSubtle.hover" | "colors.surface.actionSubtle.hover.strong" | "colors.surface.actionSubtle.active" | "colors.surface.actionSubtle.selected" | "colors.surface.success" | "colors.surface.success.hover" | "colors.surface.success.selected" | "colors.surface.success.active" | "colors.surface.successSubtle" | "colors.surface.successSubtle.hover" | "colors.surface.successSubtle.active" | "colors.surface.warning" | "colors.surface.warning.hover" | "colors.surface.warning.active" | "colors.surface.warningSubtle" | "colors.surface.warningSubtle.hover" | "colors.surface.warningSubtle.active" | "colors.surface.danger" | "colors.surface.danger.hover" | "colors.surface.danger.selected" | "colors.surface.danger.active" | "colors.surface.dangerSubtle" | "colors.surface.dangerSubtle.hover" | "colors.surface.dangerSubtle.active" | "colors.surface.error" | "colors.surface.error.hover" | "colors.surface.error.active" | "colors.surface.errorSubtle" | "colors.surface.errorSubtle.hover" | "colors.surface.errorSubtle.active" | "colors.stroke.default" | "colors.stroke.hover" | "colors.stroke.subtle" | "colors.stroke.success" | "colors.stroke.info" | "colors.stroke.warning" | "colors.stroke.error" | "colors.stroke.disabled" | "spacing.-1" | "spacing.-2" | "spacing.-3" | "spacing.-4" | "spacing.-5" | "spacing.-6" | "spacing.-7" | "spacing.-8" | "spacing.-9" | "spacing.-10" | "spacing.-11" | "spacing.-12" | "spacing.-13" | "spacing.-14" | "spacing.-15" | "spacing.-16" | "spacing.-17" | "spacing.-18" | "spacing.-19" | "spacing.-20" | "spacing.-22" | "spacing.-24" | "spacing.-26" | "spacing.-28" | "spacing.-32" | "spacing.-36" | "spacing.-40" | "spacing.-44" | "spacing.-48" | "spacing.-50" | "spacing.-60" | "spacing.-72" | "spacing.-75" | "spacing.-100" | "spacing.-150" | "spacing.-200" | "spacing.-250" | "spacing.-300" | "spacing.-350" | "spacing.-400" | "spacing.-500" | "spacing.-550" | "spacing.-5xsmall" | "spacing.-4xsmall" | "spacing.-3xsmall" | "spacing.-xxsmall" | "spacing.-xsmall" | "spacing.-small" | "spacing.-medium" | "spacing.-large" | "spacing.-xlarge" | "spacing.-xxlarge" | "spacing.-3xlarge" | "spacing.-4xlarge" | "spacing.-5xlarge" | "spacing.surface.-4xsmall" | "spacing.surface.-3xsmall" | "spacing.surface.-xxsmall" | "spacing.surface.-xsmall" | "spacing.surface.-small" | "spacing.surface.-medium" | "spacing.surface.-large" | "spacing.surface.-xlarge" | "spacing.surface.-xxlarge" | "spacing.surface.-3xlarge" | "spacing.surface.-4xlarge" | "colors.colorPalette.50" | "colors.colorPalette.100" | "colors.colorPalette.200" | "colors.colorPalette.300" | "colors.colorPalette.400" | "colors.colorPalette.500" | "colors.colorPalette.600" | "colors.colorPalette.700" | "colors.colorPalette.800" | "colors.colorPalette.900" | "colors.colorPalette.950" | "colors.colorPalette.1000" | "colors.colorPalette.1100" | "colors.colorPalette.1200" | "colors.colorPalette.1300" | "colors.colorPalette.1400" | "colors.colorPalette" | "colors.colorPalette.default" | "colors.colorPalette.subtle" | "colors.colorPalette.strong" | "colors.colorPalette.action" | "colors.colorPalette.onAction" | "colors.colorPalette.link" | "colors.colorPalette.linkVisited" | "colors.colorPalette.error" | "colors.colorPalette.disabled" | "colors.colorPalette.brand.1" | "colors.colorPalette.1" | "colors.colorPalette.brand.1.subtle" | "colors.colorPalette.1.subtle" | "colors.colorPalette.brand.1.moderate" | "colors.colorPalette.1.moderate" | "colors.colorPalette.moderate" | "colors.colorPalette.brand.1.strong" | "colors.colorPalette.1.strong" | "colors.colorPalette.brand.2" | "colors.colorPalette.2" | "colors.colorPalette.brand.2.subtle" | "colors.colorPalette.2.subtle" | "colors.colorPalette.brand.2.moderate" | "colors.colorPalette.2.moderate" | "colors.colorPalette.brand.2.bold" | "colors.colorPalette.2.bold" | "colors.colorPalette.bold" | "colors.colorPalette.brand.2.strong" | "colors.colorPalette.2.strong" | "colors.colorPalette.brand.3" | "colors.colorPalette.3" | "colors.colorPalette.brand.3.subtle" | "colors.colorPalette.3.subtle" | "colors.colorPalette.brand.3.moderate" | "colors.colorPalette.3.moderate" | "colors.colorPalette.brand.3.strong" | "colors.colorPalette.3.strong" | "colors.colorPalette.brand.4" | "colors.colorPalette.4" | "colors.colorPalette.brand.4.subtle" | "colors.colorPalette.4.subtle" | "colors.colorPalette.brand.4.moderate" | "colors.colorPalette.4.moderate" | "colors.colorPalette.brand.4.strong" | "colors.colorPalette.4.strong" | "colors.colorPalette.brand.5" | "colors.colorPalette.5" | "colors.colorPalette.brand.5.subtle" | "colors.colorPalette.5.subtle" | "colors.colorPalette.brand.5.moderate" | "colors.colorPalette.5.moderate" | "colors.colorPalette.brand.5.strong" | "colors.colorPalette.5.strong" | "colors.colorPalette.hover" | "colors.colorPalette.active" | "colors.colorPalette.selected" | "colors.colorPalette.disabled.subtle" | "colors.colorPalette.disabled.strong" | "colors.colorPalette.infoSubtle" | "colors.colorPalette.infoSubtle.hover" | "colors.colorPalette.infoSubtle.active" | "colors.colorPalette.action.hover" | "colors.colorPalette.action.active" | "colors.colorPalette.action.selected" | "colors.colorPalette.action.myNdla" | "colors.colorPalette.myNdla" | "colors.colorPalette.action.myNdla.hover" | "colors.colorPalette.myNdla.hover" | "colors.colorPalette.action.myNdla.current" | "colors.colorPalette.myNdla.current" | "colors.colorPalette.current" | "colors.colorPalette.action.brand.1" | "colors.colorPalette.action.brand.1.hover" | "colors.colorPalette.brand.1.hover" | "colors.colorPalette.1.hover" | "colors.colorPalette.action.brand.1.active" | "colors.colorPalette.brand.1.active" | "colors.colorPalette.1.active" | "colors.colorPalette.action.brand.1.selected" | "colors.colorPalette.brand.1.selected" | "colors.colorPalette.1.selected" | "colors.colorPalette.action.brand.2" | "colors.colorPalette.action.brand.2.hover" | "colors.colorPalette.brand.2.hover" | "colors.colorPalette.2.hover" | "colors.colorPalette.action.brand.2.selected" | "colors.colorPalette.brand.2.selected" | "colors.colorPalette.2.selected" | "colors.colorPalette.actionSubtle" | "colors.colorPalette.actionSubtle.hover" | "colors.colorPalette.actionSubtle.hover.strong" | "colors.colorPalette.hover.strong" | "colors.colorPalette.actionSubtle.active" | "colors.colorPalette.actionSubtle.selected" | "colors.colorPalette.success" | "colors.colorPalette.success.hover" | "colors.colorPalette.success.selected" | "colors.colorPalette.success.active" | "colors.colorPalette.successSubtle" | "colors.colorPalette.successSubtle.hover" | "colors.colorPalette.successSubtle.active" | "colors.colorPalette.warning" | "colors.colorPalette.warning.hover" | "colors.colorPalette.warning.active" | "colors.colorPalette.warningSubtle" | "colors.colorPalette.warningSubtle.hover" | "colors.colorPalette.warningSubtle.active" | "colors.colorPalette.danger" | "colors.colorPalette.danger.hover" | "colors.colorPalette.danger.selected" | "colors.colorPalette.danger.active" | "colors.colorPalette.dangerSubtle" | "colors.colorPalette.dangerSubtle.hover" | "colors.colorPalette.dangerSubtle.active" | "colors.colorPalette.error.hover" | "colors.colorPalette.error.active" | "colors.colorPalette.errorSubtle" | "colors.colorPalette.errorSubtle.hover" | "colors.colorPalette.errorSubtle.active" | "colors.colorPalette.info" +export type Token = "colors.grey.50" | "colors.grey.100" | "colors.grey.200" | "colors.grey.300" | "colors.grey.400" | "colors.grey.500" | "colors.grey.600" | "colors.grey.700" | "colors.grey.800" | "colors.grey.900" | "colors.grey.950" | "colors.blue.50" | "colors.blue.100" | "colors.blue.200" | "colors.blue.300" | "colors.blue.400" | "colors.blue.500" | "colors.blue.600" | "colors.blue.700" | "colors.blue.800" | "colors.blue.900" | "colors.blue.950" | "colors.purple.50" | "colors.purple.100" | "colors.purple.200" | "colors.purple.300" | "colors.purple.400" | "colors.purple.500" | "colors.purple.600" | "colors.purple.700" | "colors.purple.800" | "colors.purple.900" | "colors.purple.950" | "colors.yellow.50" | "colors.yellow.100" | "colors.yellow.200" | "colors.yellow.300" | "colors.yellow.400" | "colors.yellow.500" | "colors.yellow.600" | "colors.yellow.700" | "colors.yellow.800" | "colors.yellow.900" | "colors.yellow.950" | "colors.yellow.1000" | "colors.yellow.1100" | "colors.yellow.1200" | "colors.yellow.1300" | "colors.yellow.1400" | "colors.green.50" | "colors.green.100" | "colors.green.200" | "colors.green.300" | "colors.green.400" | "colors.green.500" | "colors.green.600" | "colors.green.700" | "colors.green.800" | "colors.green.900" | "colors.green.950" | "colors.pink.50" | "colors.pink.100" | "colors.pink.200" | "colors.pink.300" | "colors.pink.400" | "colors.pink.500" | "colors.pink.600" | "colors.pink.700" | "colors.pink.800" | "colors.pink.900" | "colors.pink.950" | "colors.white" | "colors.primary" | "easings.default" | "easings.emphasized-in" | "easings.emphasized-out" | "easings.pulse" | "durations.superFast" | "durations.fast" | "durations.normal" | "durations.slow" | "durations.infinite" | "radii.sharp" | "radii.xsmall" | "radii.small" | "radii.medium" | "radii.large" | "radii.full" | "spacing.1" | "spacing.2" | "spacing.3" | "spacing.4" | "spacing.5" | "spacing.6" | "spacing.7" | "spacing.8" | "spacing.9" | "spacing.10" | "spacing.11" | "spacing.12" | "spacing.13" | "spacing.14" | "spacing.15" | "spacing.16" | "spacing.17" | "spacing.18" | "spacing.19" | "spacing.20" | "spacing.22" | "spacing.24" | "spacing.26" | "spacing.28" | "spacing.32" | "spacing.36" | "spacing.40" | "spacing.44" | "spacing.48" | "spacing.50" | "spacing.60" | "spacing.72" | "spacing.75" | "spacing.100" | "spacing.150" | "spacing.200" | "spacing.250" | "spacing.300" | "spacing.350" | "spacing.400" | "spacing.500" | "spacing.550" | "sizes.1" | "sizes.2" | "sizes.3" | "sizes.4" | "sizes.5" | "sizes.6" | "sizes.7" | "sizes.8" | "sizes.9" | "sizes.10" | "sizes.11" | "sizes.12" | "sizes.13" | "sizes.14" | "sizes.15" | "sizes.16" | "sizes.17" | "sizes.18" | "sizes.19" | "sizes.20" | "sizes.22" | "sizes.24" | "sizes.26" | "sizes.28" | "sizes.32" | "sizes.36" | "sizes.40" | "sizes.44" | "sizes.48" | "sizes.50" | "sizes.60" | "sizes.72" | "sizes.75" | "sizes.100" | "sizes.150" | "sizes.200" | "sizes.250" | "sizes.300" | "sizes.350" | "sizes.400" | "sizes.500" | "sizes.550" | "sizes.breakpoint-mobile" | "sizes.breakpoint-mobileWide" | "sizes.breakpoint-tablet" | "sizes.breakpoint-tabletWide" | "sizes.breakpoint-desktop" | "sizes.breakpoint-wide" | "sizes.breakpoint-ultraWide" | "lineHeights.xxsmall" | "lineHeights.xsmall" | "lineHeights.small" | "lineHeights.medium" | "lineHeights.large" | "lineHeights.xlarge" | "lineHeights.xxlarge" | "lineHeights.3xlarge" | "lineHeights.4xlarge" | "fontWeights.light" | "fontWeights.normal" | "fontWeights.semibold" | "fontWeights.bold" | "fontSizes.xxsmall" | "fontSizes.xsmall" | "fontSizes.small" | "fontSizes.medium" | "fontSizes.large" | "fontSizes.xlarge" | "fontSizes.xxlarge" | "fontSizes.3xlarge" | "fontSizes.4xlarge" | "fonts.sans" | "fonts.serif" | "fonts.code" | "animations.spin" | "animations.collapse-in" | "animations.collapse-out" | "animations.fade-shift-in" | "animations.fade-shift-out" | "animations.backdrop-in" | "animations.backdrop-out" | "animations.dialog-in" | "animations.dialog-out" | "animations.drawer-in-left" | "animations.drawer-out-left" | "animations.drawer-in-right" | "animations.drawer-out-right" | "animations.drawer-in-bottom" | "animations.drawer-out-bottom" | "animations.drawer-in-top" | "animations.drawer-out-top" | "animations.skeleton-pulse" | "shadows.xsmall" | "shadows.small" | "shadows.medium" | "shadows.large" | "shadows.xlarge" | "shadows.full" | "shadows.inner" | "shadows.innerTop" | "shadows.innerRight" | "zIndex.hide" | "zIndex.base" | "zIndex.docked" | "zIndex.dropdown" | "zIndex.sticky" | "zIndex.banner" | "zIndex.overlay" | "zIndex.modal" | "zIndex.alertModalOverlay" | "zIndex.alertModal" | "zIndex.popover" | "zIndex.skipLink" | "zIndex.toast" | "zIndex.tooltip" | "breakpoints.mobile" | "breakpoints.mobileWide" | "breakpoints.tablet" | "breakpoints.tabletWide" | "breakpoints.desktop" | "breakpoints.wide" | "breakpoints.ultraWide" | "spacing.5xsmall" | "spacing.4xsmall" | "spacing.3xsmall" | "spacing.xxsmall" | "spacing.xsmall" | "spacing.small" | "spacing.medium" | "spacing.large" | "spacing.xlarge" | "spacing.xxlarge" | "spacing.3xlarge" | "spacing.4xlarge" | "spacing.5xlarge" | "spacing.surface.4xsmall" | "spacing.surface.3xsmall" | "spacing.surface.xxsmall" | "spacing.surface.xsmall" | "spacing.surface.small" | "spacing.surface.medium" | "spacing.surface.large" | "spacing.surface.xlarge" | "spacing.surface.xxlarge" | "spacing.surface.3xlarge" | "spacing.surface.4xlarge" | "sizes.5xsmall" | "sizes.4xsmall" | "sizes.3xsmall" | "sizes.xxsmall" | "sizes.xsmall" | "sizes.small" | "sizes.medium" | "sizes.large" | "sizes.xlarge" | "sizes.xxlarge" | "sizes.3xlarge" | "sizes.4xlarge" | "sizes.5xlarge" | "sizes.surface.4xsmall" | "sizes.surface.3xsmall" | "sizes.surface.xxsmall" | "sizes.surface.xsmall" | "sizes.surface.small" | "sizes.surface.medium" | "sizes.surface.large" | "sizes.surface.xlarge" | "sizes.surface.xxlarge" | "sizes.surface.3xlarge" | "sizes.surface.4xlarge" | "sizes.surface.pageMax" | "sizes.surface.contentMax" | "sizes.surface.articleMax" | "sizes.surface.wideMax" | "colors.background.default" | "colors.background.subtle" | "colors.background.strong" | "colors.text.default" | "colors.text.subtle" | "colors.text.strong" | "colors.text.action" | "colors.text.onAction" | "colors.text.link" | "colors.text.linkVisited" | "colors.text.error" | "colors.text.disabled" | "colors.icon.default" | "colors.icon.strong" | "colors.icon.onAction" | "colors.icon.subtle" | "colors.surface.brand.1" | "colors.surface.brand.1.subtle" | "colors.surface.brand.1.moderate" | "colors.surface.brand.1.strong" | "colors.surface.brand.2" | "colors.surface.brand.2.subtle" | "colors.surface.brand.2.moderate" | "colors.surface.brand.2.bold" | "colors.surface.brand.2.strong" | "colors.surface.brand.3" | "colors.surface.brand.3.subtle" | "colors.surface.brand.3.moderate" | "colors.surface.brand.3.strong" | "colors.surface.brand.4" | "colors.surface.brand.4.subtle" | "colors.surface.brand.4.moderate" | "colors.surface.brand.4.strong" | "colors.surface.brand.5" | "colors.surface.brand.5.subtle" | "colors.surface.brand.5.moderate" | "colors.surface.brand.5.strong" | "colors.surface.default" | "colors.surface.hover" | "colors.surface.active" | "colors.surface.selected" | "colors.surface.disabled" | "colors.surface.disabled.subtle" | "colors.surface.disabled.strong" | "colors.surface.infoSubtle" | "colors.surface.infoSubtle.hover" | "colors.surface.infoSubtle.active" | "colors.surface.action" | "colors.surface.action.hover" | "colors.surface.action.active" | "colors.surface.action.selected" | "colors.surface.action.myNdla" | "colors.surface.action.myNdla.hover" | "colors.surface.action.myNdla.current" | "colors.surface.action.brand.1" | "colors.surface.action.brand.1.hover" | "colors.surface.action.brand.1.active" | "colors.surface.action.brand.1.selected" | "colors.surface.action.brand.2" | "colors.surface.action.brand.2.hover" | "colors.surface.action.brand.2.selected" | "colors.surface.actionSubtle" | "colors.surface.actionSubtle.hover" | "colors.surface.actionSubtle.hover.strong" | "colors.surface.actionSubtle.active" | "colors.surface.actionSubtle.selected" | "colors.surface.success" | "colors.surface.success.hover" | "colors.surface.success.selected" | "colors.surface.success.active" | "colors.surface.successSubtle" | "colors.surface.successSubtle.hover" | "colors.surface.successSubtle.active" | "colors.surface.warning" | "colors.surface.warning.hover" | "colors.surface.warning.active" | "colors.surface.warningSubtle" | "colors.surface.warningSubtle.hover" | "colors.surface.warningSubtle.active" | "colors.surface.danger" | "colors.surface.danger.hover" | "colors.surface.danger.selected" | "colors.surface.danger.active" | "colors.surface.dangerSubtle" | "colors.surface.dangerSubtle.hover" | "colors.surface.dangerSubtle.active" | "colors.surface.error" | "colors.surface.error.hover" | "colors.surface.error.active" | "colors.surface.errorSubtle" | "colors.surface.errorSubtle.hover" | "colors.surface.errorSubtle.active" | "colors.surface.subtle" | "colors.surface.subtle.selected" | "colors.stroke.default" | "colors.stroke.hover" | "colors.stroke.subtle" | "colors.stroke.success" | "colors.stroke.info" | "colors.stroke.warning" | "colors.stroke.error" | "colors.stroke.disabled" | "colors.stroke.discrete" | "spacing.-1" | "spacing.-2" | "spacing.-3" | "spacing.-4" | "spacing.-5" | "spacing.-6" | "spacing.-7" | "spacing.-8" | "spacing.-9" | "spacing.-10" | "spacing.-11" | "spacing.-12" | "spacing.-13" | "spacing.-14" | "spacing.-15" | "spacing.-16" | "spacing.-17" | "spacing.-18" | "spacing.-19" | "spacing.-20" | "spacing.-22" | "spacing.-24" | "spacing.-26" | "spacing.-28" | "spacing.-32" | "spacing.-36" | "spacing.-40" | "spacing.-44" | "spacing.-48" | "spacing.-50" | "spacing.-60" | "spacing.-72" | "spacing.-75" | "spacing.-100" | "spacing.-150" | "spacing.-200" | "spacing.-250" | "spacing.-300" | "spacing.-350" | "spacing.-400" | "spacing.-500" | "spacing.-550" | "spacing.-5xsmall" | "spacing.-4xsmall" | "spacing.-3xsmall" | "spacing.-xxsmall" | "spacing.-xsmall" | "spacing.-small" | "spacing.-medium" | "spacing.-large" | "spacing.-xlarge" | "spacing.-xxlarge" | "spacing.-3xlarge" | "spacing.-4xlarge" | "spacing.-5xlarge" | "spacing.surface.-4xsmall" | "spacing.surface.-3xsmall" | "spacing.surface.-xxsmall" | "spacing.surface.-xsmall" | "spacing.surface.-small" | "spacing.surface.-medium" | "spacing.surface.-large" | "spacing.surface.-xlarge" | "spacing.surface.-xxlarge" | "spacing.surface.-3xlarge" | "spacing.surface.-4xlarge" | "colors.colorPalette.50" | "colors.colorPalette.100" | "colors.colorPalette.200" | "colors.colorPalette.300" | "colors.colorPalette.400" | "colors.colorPalette.500" | "colors.colorPalette.600" | "colors.colorPalette.700" | "colors.colorPalette.800" | "colors.colorPalette.900" | "colors.colorPalette.950" | "colors.colorPalette.1000" | "colors.colorPalette.1100" | "colors.colorPalette.1200" | "colors.colorPalette.1300" | "colors.colorPalette.1400" | "colors.colorPalette" | "colors.colorPalette.default" | "colors.colorPalette.subtle" | "colors.colorPalette.strong" | "colors.colorPalette.action" | "colors.colorPalette.onAction" | "colors.colorPalette.link" | "colors.colorPalette.linkVisited" | "colors.colorPalette.error" | "colors.colorPalette.disabled" | "colors.colorPalette.brand.1" | "colors.colorPalette.1" | "colors.colorPalette.brand.1.subtle" | "colors.colorPalette.1.subtle" | "colors.colorPalette.brand.1.moderate" | "colors.colorPalette.1.moderate" | "colors.colorPalette.moderate" | "colors.colorPalette.brand.1.strong" | "colors.colorPalette.1.strong" | "colors.colorPalette.brand.2" | "colors.colorPalette.2" | "colors.colorPalette.brand.2.subtle" | "colors.colorPalette.2.subtle" | "colors.colorPalette.brand.2.moderate" | "colors.colorPalette.2.moderate" | "colors.colorPalette.brand.2.bold" | "colors.colorPalette.2.bold" | "colors.colorPalette.bold" | "colors.colorPalette.brand.2.strong" | "colors.colorPalette.2.strong" | "colors.colorPalette.brand.3" | "colors.colorPalette.3" | "colors.colorPalette.brand.3.subtle" | "colors.colorPalette.3.subtle" | "colors.colorPalette.brand.3.moderate" | "colors.colorPalette.3.moderate" | "colors.colorPalette.brand.3.strong" | "colors.colorPalette.3.strong" | "colors.colorPalette.brand.4" | "colors.colorPalette.4" | "colors.colorPalette.brand.4.subtle" | "colors.colorPalette.4.subtle" | "colors.colorPalette.brand.4.moderate" | "colors.colorPalette.4.moderate" | "colors.colorPalette.brand.4.strong" | "colors.colorPalette.4.strong" | "colors.colorPalette.brand.5" | "colors.colorPalette.5" | "colors.colorPalette.brand.5.subtle" | "colors.colorPalette.5.subtle" | "colors.colorPalette.brand.5.moderate" | "colors.colorPalette.5.moderate" | "colors.colorPalette.brand.5.strong" | "colors.colorPalette.5.strong" | "colors.colorPalette.hover" | "colors.colorPalette.active" | "colors.colorPalette.selected" | "colors.colorPalette.disabled.subtle" | "colors.colorPalette.disabled.strong" | "colors.colorPalette.infoSubtle" | "colors.colorPalette.infoSubtle.hover" | "colors.colorPalette.infoSubtle.active" | "colors.colorPalette.action.hover" | "colors.colorPalette.action.active" | "colors.colorPalette.action.selected" | "colors.colorPalette.action.myNdla" | "colors.colorPalette.myNdla" | "colors.colorPalette.action.myNdla.hover" | "colors.colorPalette.myNdla.hover" | "colors.colorPalette.action.myNdla.current" | "colors.colorPalette.myNdla.current" | "colors.colorPalette.current" | "colors.colorPalette.action.brand.1" | "colors.colorPalette.action.brand.1.hover" | "colors.colorPalette.brand.1.hover" | "colors.colorPalette.1.hover" | "colors.colorPalette.action.brand.1.active" | "colors.colorPalette.brand.1.active" | "colors.colorPalette.1.active" | "colors.colorPalette.action.brand.1.selected" | "colors.colorPalette.brand.1.selected" | "colors.colorPalette.1.selected" | "colors.colorPalette.action.brand.2" | "colors.colorPalette.action.brand.2.hover" | "colors.colorPalette.brand.2.hover" | "colors.colorPalette.2.hover" | "colors.colorPalette.action.brand.2.selected" | "colors.colorPalette.brand.2.selected" | "colors.colorPalette.2.selected" | "colors.colorPalette.actionSubtle" | "colors.colorPalette.actionSubtle.hover" | "colors.colorPalette.actionSubtle.hover.strong" | "colors.colorPalette.hover.strong" | "colors.colorPalette.actionSubtle.active" | "colors.colorPalette.actionSubtle.selected" | "colors.colorPalette.success" | "colors.colorPalette.success.hover" | "colors.colorPalette.success.selected" | "colors.colorPalette.success.active" | "colors.colorPalette.successSubtle" | "colors.colorPalette.successSubtle.hover" | "colors.colorPalette.successSubtle.active" | "colors.colorPalette.warning" | "colors.colorPalette.warning.hover" | "colors.colorPalette.warning.active" | "colors.colorPalette.warningSubtle" | "colors.colorPalette.warningSubtle.hover" | "colors.colorPalette.warningSubtle.active" | "colors.colorPalette.danger" | "colors.colorPalette.danger.hover" | "colors.colorPalette.danger.selected" | "colors.colorPalette.danger.active" | "colors.colorPalette.dangerSubtle" | "colors.colorPalette.dangerSubtle.hover" | "colors.colorPalette.dangerSubtle.active" | "colors.colorPalette.error.hover" | "colors.colorPalette.error.active" | "colors.colorPalette.errorSubtle" | "colors.colorPalette.errorSubtle.hover" | "colors.colorPalette.errorSubtle.active" | "colors.colorPalette.subtle.selected" | "colors.colorPalette.info" | "colors.colorPalette.discrete" -export type ColorPalette = "grey" | "blue" | "purple" | "yellow" | "green" | "pink" | "white" | "primary" | "background" | "text" | "icon" | "surface" | "surface.brand.1" | "surface.brand" | "surface.brand.2" | "surface.brand.3" | "surface.brand.4" | "surface.brand.5" | "surface.disabled" | "surface.infoSubtle" | "surface.action" | "surface.action.myNdla" | "surface.action.brand.1" | "surface.action.brand" | "surface.action.brand.2" | "surface.actionSubtle" | "surface.actionSubtle.hover" | "surface.success" | "surface.successSubtle" | "surface.warning" | "surface.warningSubtle" | "surface.danger" | "surface.dangerSubtle" | "surface.error" | "surface.errorSubtle" | "stroke" +export type ColorPalette = "grey" | "blue" | "purple" | "yellow" | "green" | "pink" | "white" | "primary" | "background" | "text" | "icon" | "surface" | "surface.brand.1" | "surface.brand" | "surface.brand.2" | "surface.brand.3" | "surface.brand.4" | "surface.brand.5" | "surface.disabled" | "surface.infoSubtle" | "surface.action" | "surface.action.myNdla" | "surface.action.brand.1" | "surface.action.brand" | "surface.action.brand.2" | "surface.actionSubtle" | "surface.actionSubtle.hover" | "surface.success" | "surface.successSubtle" | "surface.warning" | "surface.warningSubtle" | "surface.danger" | "surface.dangerSubtle" | "surface.error" | "surface.errorSubtle" | "surface.subtle" | "stroke" -export type ColorToken = "grey.50" | "grey.100" | "grey.200" | "grey.300" | "grey.400" | "grey.500" | "grey.600" | "grey.700" | "grey.800" | "grey.900" | "grey.950" | "blue.50" | "blue.100" | "blue.200" | "blue.300" | "blue.400" | "blue.500" | "blue.600" | "blue.700" | "blue.800" | "blue.900" | "blue.950" | "purple.50" | "purple.100" | "purple.200" | "purple.300" | "purple.400" | "purple.500" | "purple.600" | "purple.700" | "purple.800" | "purple.900" | "purple.950" | "yellow.50" | "yellow.100" | "yellow.200" | "yellow.300" | "yellow.400" | "yellow.500" | "yellow.600" | "yellow.700" | "yellow.800" | "yellow.900" | "yellow.950" | "yellow.1000" | "yellow.1100" | "yellow.1200" | "yellow.1300" | "yellow.1400" | "green.50" | "green.100" | "green.200" | "green.300" | "green.400" | "green.500" | "green.600" | "green.700" | "green.800" | "green.900" | "green.950" | "pink.50" | "pink.100" | "pink.200" | "pink.300" | "pink.400" | "pink.500" | "pink.600" | "pink.700" | "pink.800" | "pink.900" | "pink.950" | "white" | "primary" | "background.default" | "background.subtle" | "background.strong" | "text.default" | "text.subtle" | "text.strong" | "text.action" | "text.onAction" | "text.link" | "text.linkVisited" | "text.error" | "text.disabled" | "icon.default" | "icon.strong" | "icon.onAction" | "icon.subtle" | "surface.brand.1" | "surface.brand.1.subtle" | "surface.brand.1.moderate" | "surface.brand.1.strong" | "surface.brand.2" | "surface.brand.2.subtle" | "surface.brand.2.moderate" | "surface.brand.2.bold" | "surface.brand.2.strong" | "surface.brand.3" | "surface.brand.3.subtle" | "surface.brand.3.moderate" | "surface.brand.3.strong" | "surface.brand.4" | "surface.brand.4.subtle" | "surface.brand.4.moderate" | "surface.brand.4.strong" | "surface.brand.5" | "surface.brand.5.subtle" | "surface.brand.5.moderate" | "surface.brand.5.strong" | "surface.default" | "surface.hover" | "surface.active" | "surface.selected" | "surface.disabled" | "surface.disabled.subtle" | "surface.disabled.strong" | "surface.infoSubtle" | "surface.infoSubtle.hover" | "surface.infoSubtle.active" | "surface.action" | "surface.action.hover" | "surface.action.active" | "surface.action.selected" | "surface.action.myNdla" | "surface.action.myNdla.hover" | "surface.action.myNdla.current" | "surface.action.brand.1" | "surface.action.brand.1.hover" | "surface.action.brand.1.active" | "surface.action.brand.1.selected" | "surface.action.brand.2" | "surface.action.brand.2.hover" | "surface.action.brand.2.selected" | "surface.actionSubtle" | "surface.actionSubtle.hover" | "surface.actionSubtle.hover.strong" | "surface.actionSubtle.active" | "surface.actionSubtle.selected" | "surface.success" | "surface.success.hover" | "surface.success.selected" | "surface.success.active" | "surface.successSubtle" | "surface.successSubtle.hover" | "surface.successSubtle.active" | "surface.warning" | "surface.warning.hover" | "surface.warning.active" | "surface.warningSubtle" | "surface.warningSubtle.hover" | "surface.warningSubtle.active" | "surface.danger" | "surface.danger.hover" | "surface.danger.selected" | "surface.danger.active" | "surface.dangerSubtle" | "surface.dangerSubtle.hover" | "surface.dangerSubtle.active" | "surface.error" | "surface.error.hover" | "surface.error.active" | "surface.errorSubtle" | "surface.errorSubtle.hover" | "surface.errorSubtle.active" | "stroke.default" | "stroke.hover" | "stroke.subtle" | "stroke.success" | "stroke.info" | "stroke.warning" | "stroke.error" | "stroke.disabled" | "colorPalette.50" | "colorPalette.100" | "colorPalette.200" | "colorPalette.300" | "colorPalette.400" | "colorPalette.500" | "colorPalette.600" | "colorPalette.700" | "colorPalette.800" | "colorPalette.900" | "colorPalette.950" | "colorPalette.1000" | "colorPalette.1100" | "colorPalette.1200" | "colorPalette.1300" | "colorPalette.1400" | "colorPalette" | "colorPalette.default" | "colorPalette.subtle" | "colorPalette.strong" | "colorPalette.action" | "colorPalette.onAction" | "colorPalette.link" | "colorPalette.linkVisited" | "colorPalette.error" | "colorPalette.disabled" | "colorPalette.brand.1" | "colorPalette.1" | "colorPalette.brand.1.subtle" | "colorPalette.1.subtle" | "colorPalette.brand.1.moderate" | "colorPalette.1.moderate" | "colorPalette.moderate" | "colorPalette.brand.1.strong" | "colorPalette.1.strong" | "colorPalette.brand.2" | "colorPalette.2" | "colorPalette.brand.2.subtle" | "colorPalette.2.subtle" | "colorPalette.brand.2.moderate" | "colorPalette.2.moderate" | "colorPalette.brand.2.bold" | "colorPalette.2.bold" | "colorPalette.bold" | "colorPalette.brand.2.strong" | "colorPalette.2.strong" | "colorPalette.brand.3" | "colorPalette.3" | "colorPalette.brand.3.subtle" | "colorPalette.3.subtle" | "colorPalette.brand.3.moderate" | "colorPalette.3.moderate" | "colorPalette.brand.3.strong" | "colorPalette.3.strong" | "colorPalette.brand.4" | "colorPalette.4" | "colorPalette.brand.4.subtle" | "colorPalette.4.subtle" | "colorPalette.brand.4.moderate" | "colorPalette.4.moderate" | "colorPalette.brand.4.strong" | "colorPalette.4.strong" | "colorPalette.brand.5" | "colorPalette.5" | "colorPalette.brand.5.subtle" | "colorPalette.5.subtle" | "colorPalette.brand.5.moderate" | "colorPalette.5.moderate" | "colorPalette.brand.5.strong" | "colorPalette.5.strong" | "colorPalette.hover" | "colorPalette.active" | "colorPalette.selected" | "colorPalette.disabled.subtle" | "colorPalette.disabled.strong" | "colorPalette.infoSubtle" | "colorPalette.infoSubtle.hover" | "colorPalette.infoSubtle.active" | "colorPalette.action.hover" | "colorPalette.action.active" | "colorPalette.action.selected" | "colorPalette.action.myNdla" | "colorPalette.myNdla" | "colorPalette.action.myNdla.hover" | "colorPalette.myNdla.hover" | "colorPalette.action.myNdla.current" | "colorPalette.myNdla.current" | "colorPalette.current" | "colorPalette.action.brand.1" | "colorPalette.action.brand.1.hover" | "colorPalette.brand.1.hover" | "colorPalette.1.hover" | "colorPalette.action.brand.1.active" | "colorPalette.brand.1.active" | "colorPalette.1.active" | "colorPalette.action.brand.1.selected" | "colorPalette.brand.1.selected" | "colorPalette.1.selected" | "colorPalette.action.brand.2" | "colorPalette.action.brand.2.hover" | "colorPalette.brand.2.hover" | "colorPalette.2.hover" | "colorPalette.action.brand.2.selected" | "colorPalette.brand.2.selected" | "colorPalette.2.selected" | "colorPalette.actionSubtle" | "colorPalette.actionSubtle.hover" | "colorPalette.actionSubtle.hover.strong" | "colorPalette.hover.strong" | "colorPalette.actionSubtle.active" | "colorPalette.actionSubtle.selected" | "colorPalette.success" | "colorPalette.success.hover" | "colorPalette.success.selected" | "colorPalette.success.active" | "colorPalette.successSubtle" | "colorPalette.successSubtle.hover" | "colorPalette.successSubtle.active" | "colorPalette.warning" | "colorPalette.warning.hover" | "colorPalette.warning.active" | "colorPalette.warningSubtle" | "colorPalette.warningSubtle.hover" | "colorPalette.warningSubtle.active" | "colorPalette.danger" | "colorPalette.danger.hover" | "colorPalette.danger.selected" | "colorPalette.danger.active" | "colorPalette.dangerSubtle" | "colorPalette.dangerSubtle.hover" | "colorPalette.dangerSubtle.active" | "colorPalette.error.hover" | "colorPalette.error.active" | "colorPalette.errorSubtle" | "colorPalette.errorSubtle.hover" | "colorPalette.errorSubtle.active" | "colorPalette.info" +export type ColorToken = "grey.50" | "grey.100" | "grey.200" | "grey.300" | "grey.400" | "grey.500" | "grey.600" | "grey.700" | "grey.800" | "grey.900" | "grey.950" | "blue.50" | "blue.100" | "blue.200" | "blue.300" | "blue.400" | "blue.500" | "blue.600" | "blue.700" | "blue.800" | "blue.900" | "blue.950" | "purple.50" | "purple.100" | "purple.200" | "purple.300" | "purple.400" | "purple.500" | "purple.600" | "purple.700" | "purple.800" | "purple.900" | "purple.950" | "yellow.50" | "yellow.100" | "yellow.200" | "yellow.300" | "yellow.400" | "yellow.500" | "yellow.600" | "yellow.700" | "yellow.800" | "yellow.900" | "yellow.950" | "yellow.1000" | "yellow.1100" | "yellow.1200" | "yellow.1300" | "yellow.1400" | "green.50" | "green.100" | "green.200" | "green.300" | "green.400" | "green.500" | "green.600" | "green.700" | "green.800" | "green.900" | "green.950" | "pink.50" | "pink.100" | "pink.200" | "pink.300" | "pink.400" | "pink.500" | "pink.600" | "pink.700" | "pink.800" | "pink.900" | "pink.950" | "white" | "primary" | "background.default" | "background.subtle" | "background.strong" | "text.default" | "text.subtle" | "text.strong" | "text.action" | "text.onAction" | "text.link" | "text.linkVisited" | "text.error" | "text.disabled" | "icon.default" | "icon.strong" | "icon.onAction" | "icon.subtle" | "surface.brand.1" | "surface.brand.1.subtle" | "surface.brand.1.moderate" | "surface.brand.1.strong" | "surface.brand.2" | "surface.brand.2.subtle" | "surface.brand.2.moderate" | "surface.brand.2.bold" | "surface.brand.2.strong" | "surface.brand.3" | "surface.brand.3.subtle" | "surface.brand.3.moderate" | "surface.brand.3.strong" | "surface.brand.4" | "surface.brand.4.subtle" | "surface.brand.4.moderate" | "surface.brand.4.strong" | "surface.brand.5" | "surface.brand.5.subtle" | "surface.brand.5.moderate" | "surface.brand.5.strong" | "surface.default" | "surface.hover" | "surface.active" | "surface.selected" | "surface.disabled" | "surface.disabled.subtle" | "surface.disabled.strong" | "surface.infoSubtle" | "surface.infoSubtle.hover" | "surface.infoSubtle.active" | "surface.action" | "surface.action.hover" | "surface.action.active" | "surface.action.selected" | "surface.action.myNdla" | "surface.action.myNdla.hover" | "surface.action.myNdla.current" | "surface.action.brand.1" | "surface.action.brand.1.hover" | "surface.action.brand.1.active" | "surface.action.brand.1.selected" | "surface.action.brand.2" | "surface.action.brand.2.hover" | "surface.action.brand.2.selected" | "surface.actionSubtle" | "surface.actionSubtle.hover" | "surface.actionSubtle.hover.strong" | "surface.actionSubtle.active" | "surface.actionSubtle.selected" | "surface.success" | "surface.success.hover" | "surface.success.selected" | "surface.success.active" | "surface.successSubtle" | "surface.successSubtle.hover" | "surface.successSubtle.active" | "surface.warning" | "surface.warning.hover" | "surface.warning.active" | "surface.warningSubtle" | "surface.warningSubtle.hover" | "surface.warningSubtle.active" | "surface.danger" | "surface.danger.hover" | "surface.danger.selected" | "surface.danger.active" | "surface.dangerSubtle" | "surface.dangerSubtle.hover" | "surface.dangerSubtle.active" | "surface.error" | "surface.error.hover" | "surface.error.active" | "surface.errorSubtle" | "surface.errorSubtle.hover" | "surface.errorSubtle.active" | "surface.subtle" | "surface.subtle.selected" | "stroke.default" | "stroke.hover" | "stroke.subtle" | "stroke.success" | "stroke.info" | "stroke.warning" | "stroke.error" | "stroke.disabled" | "stroke.discrete" | "colorPalette.50" | "colorPalette.100" | "colorPalette.200" | "colorPalette.300" | "colorPalette.400" | "colorPalette.500" | "colorPalette.600" | "colorPalette.700" | "colorPalette.800" | "colorPalette.900" | "colorPalette.950" | "colorPalette.1000" | "colorPalette.1100" | "colorPalette.1200" | "colorPalette.1300" | "colorPalette.1400" | "colorPalette" | "colorPalette.default" | "colorPalette.subtle" | "colorPalette.strong" | "colorPalette.action" | "colorPalette.onAction" | "colorPalette.link" | "colorPalette.linkVisited" | "colorPalette.error" | "colorPalette.disabled" | "colorPalette.brand.1" | "colorPalette.1" | "colorPalette.brand.1.subtle" | "colorPalette.1.subtle" | "colorPalette.brand.1.moderate" | "colorPalette.1.moderate" | "colorPalette.moderate" | "colorPalette.brand.1.strong" | "colorPalette.1.strong" | "colorPalette.brand.2" | "colorPalette.2" | "colorPalette.brand.2.subtle" | "colorPalette.2.subtle" | "colorPalette.brand.2.moderate" | "colorPalette.2.moderate" | "colorPalette.brand.2.bold" | "colorPalette.2.bold" | "colorPalette.bold" | "colorPalette.brand.2.strong" | "colorPalette.2.strong" | "colorPalette.brand.3" | "colorPalette.3" | "colorPalette.brand.3.subtle" | "colorPalette.3.subtle" | "colorPalette.brand.3.moderate" | "colorPalette.3.moderate" | "colorPalette.brand.3.strong" | "colorPalette.3.strong" | "colorPalette.brand.4" | "colorPalette.4" | "colorPalette.brand.4.subtle" | "colorPalette.4.subtle" | "colorPalette.brand.4.moderate" | "colorPalette.4.moderate" | "colorPalette.brand.4.strong" | "colorPalette.4.strong" | "colorPalette.brand.5" | "colorPalette.5" | "colorPalette.brand.5.subtle" | "colorPalette.5.subtle" | "colorPalette.brand.5.moderate" | "colorPalette.5.moderate" | "colorPalette.brand.5.strong" | "colorPalette.5.strong" | "colorPalette.hover" | "colorPalette.active" | "colorPalette.selected" | "colorPalette.disabled.subtle" | "colorPalette.disabled.strong" | "colorPalette.infoSubtle" | "colorPalette.infoSubtle.hover" | "colorPalette.infoSubtle.active" | "colorPalette.action.hover" | "colorPalette.action.active" | "colorPalette.action.selected" | "colorPalette.action.myNdla" | "colorPalette.myNdla" | "colorPalette.action.myNdla.hover" | "colorPalette.myNdla.hover" | "colorPalette.action.myNdla.current" | "colorPalette.myNdla.current" | "colorPalette.current" | "colorPalette.action.brand.1" | "colorPalette.action.brand.1.hover" | "colorPalette.brand.1.hover" | "colorPalette.1.hover" | "colorPalette.action.brand.1.active" | "colorPalette.brand.1.active" | "colorPalette.1.active" | "colorPalette.action.brand.1.selected" | "colorPalette.brand.1.selected" | "colorPalette.1.selected" | "colorPalette.action.brand.2" | "colorPalette.action.brand.2.hover" | "colorPalette.brand.2.hover" | "colorPalette.2.hover" | "colorPalette.action.brand.2.selected" | "colorPalette.brand.2.selected" | "colorPalette.2.selected" | "colorPalette.actionSubtle" | "colorPalette.actionSubtle.hover" | "colorPalette.actionSubtle.hover.strong" | "colorPalette.hover.strong" | "colorPalette.actionSubtle.active" | "colorPalette.actionSubtle.selected" | "colorPalette.success" | "colorPalette.success.hover" | "colorPalette.success.selected" | "colorPalette.success.active" | "colorPalette.successSubtle" | "colorPalette.successSubtle.hover" | "colorPalette.successSubtle.active" | "colorPalette.warning" | "colorPalette.warning.hover" | "colorPalette.warning.active" | "colorPalette.warningSubtle" | "colorPalette.warningSubtle.hover" | "colorPalette.warningSubtle.active" | "colorPalette.danger" | "colorPalette.danger.hover" | "colorPalette.danger.selected" | "colorPalette.danger.active" | "colorPalette.dangerSubtle" | "colorPalette.dangerSubtle.hover" | "colorPalette.dangerSubtle.active" | "colorPalette.error.hover" | "colorPalette.error.active" | "colorPalette.errorSubtle" | "colorPalette.errorSubtle.hover" | "colorPalette.errorSubtle.active" | "colorPalette.subtle.selected" | "colorPalette.info" | "colorPalette.discrete" export type EasingToken = "default" | "emphasized-in" | "emphasized-out" | "pulse" @@ -48,4 +48,4 @@ export type Tokens = { breakpoints: BreakpointToken } & { [token: string]: never } -export type TokenCategory = "aspectRatios" | "zIndex" | "opacity" | "colors" | "fonts" | "fontSizes" | "fontWeights" | "lineHeights" | "letterSpacings" | "sizes" | "shadows" | "spacing" | "radii" | "borders" | "borderWidths" | "durations" | "easings" | "animations" | "blurs" | "gradients" | "breakpoints" | "assets" \ No newline at end of file +export type TokenCategory = "aspectRatios" | "zIndex" | "opacity" | "colors" | "fonts" | "fontSizes" | "fontWeights" | "lineHeights" | "letterSpacings" | "sizes" | "cursor" | "shadows" | "spacing" | "radii" | "borders" | "borderWidths" | "durations" | "easings" | "animations" | "blurs" | "gradients" | "breakpoints" | "assets" \ No newline at end of file diff --git a/packages/styled-system/src/types/prop-type.d.ts b/packages/styled-system/src/types/prop-type.d.ts index aea197fbc8..7607f821ec 100644 --- a/packages/styled-system/src/types/prop-type.d.ts +++ b/packages/styled-system/src/types/prop-type.d.ts @@ -21,10 +21,6 @@ export interface UtilityValues { hideBelow: Tokens["breakpoints"]; flexBasis: Tokens["sizes"] | "1/2" | "1/3" | "2/3" | "1/4" | "2/4" | "3/4" | "1/5" | "2/5" | "3/5" | "4/5" | "1/6" | "2/6" | "3/6" | "4/6" | "5/6" | "1/12" | "2/12" | "3/12" | "4/12" | "5/12" | "6/12" | "7/12" | "8/12" | "9/12" | "10/12" | "11/12" | "full"; flex: "1" | "auto" | "initial" | "none"; - gridTemplateColumns: "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12"; - gridTemplateRows: "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12"; - gridColumn: "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "full"; - gridRow: "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "full"; gridAutoColumns: "min" | "max" | "fr"; gridAutoRows: "min" | "max" | "fr"; gap: Tokens["spacing"]; @@ -184,7 +180,7 @@ export interface UtilityValues { srOnly: boolean; debug: boolean; containerName: CssProperties["containerName"]; - colorPalette: "grey" | "blue" | "purple" | "yellow" | "green" | "pink" | "white" | "primary" | "background" | "text" | "icon" | "surface" | "surface.brand.1" | "surface.brand" | "surface.brand.2" | "surface.brand.3" | "surface.brand.4" | "surface.brand.5" | "surface.disabled" | "surface.infoSubtle" | "surface.action" | "surface.action.myNdla" | "surface.action.brand.1" | "surface.action.brand" | "surface.action.brand.2" | "surface.actionSubtle" | "surface.actionSubtle.hover" | "surface.success" | "surface.successSubtle" | "surface.warning" | "surface.warningSubtle" | "surface.danger" | "surface.dangerSubtle" | "surface.error" | "surface.errorSubtle" | "stroke"; + colorPalette: "grey" | "blue" | "purple" | "yellow" | "green" | "pink" | "white" | "primary" | "background" | "text" | "icon" | "surface" | "surface.brand.1" | "surface.brand" | "surface.brand.2" | "surface.brand.3" | "surface.brand.4" | "surface.brand.5" | "surface.disabled" | "surface.infoSubtle" | "surface.action" | "surface.action.myNdla" | "surface.action.brand.1" | "surface.action.brand" | "surface.action.brand.2" | "surface.actionSubtle" | "surface.actionSubtle.hover" | "surface.success" | "surface.successSubtle" | "surface.warning" | "surface.warningSubtle" | "surface.danger" | "surface.dangerSubtle" | "surface.error" | "surface.errorSubtle" | "surface.subtle" | "stroke"; textStyle: "heading.large" | "heading.medium" | "heading.small" | "title.large" | "title.medium" | "title.small" | "body.article" | "body.articleLink" | "body.link" | "body.xlarge" | "body.large" | "body.medium" | "body.small" | "label.large" | "label.medium" | "label.small" | "label.xsmall"; } diff --git a/packages/styled-system/src/types/static-css.d.ts b/packages/styled-system/src/types/static-css.d.ts index 28f1cc687d..354d9d3932 100644 --- a/packages/styled-system/src/types/static-css.d.ts +++ b/packages/styled-system/src/types/static-css.d.ts @@ -1,14 +1,17 @@ /* eslint-disable */ -interface WithConditions { +interface ConditionOptions { /** - * The css conditions to generate for the rule. + * The conditions to generate for the rule. * @example ['hover', 'focus'] */ conditions?: string[] + /** + * Whether to generate responsive styles for the rule. + */ responsive?: boolean } -export interface CssRule extends WithConditions { +export interface CssRule extends ConditionOptions { /** * The css properties to generate utilities for. * @example ['margin', 'padding'] @@ -22,7 +25,9 @@ interface RecipeRuleVariants { [variant: string]: boolean | string[] } -export type RecipeRule = '*' | (RecipeRuleVariants & WithConditions) +export type RecipeRuleObject = RecipeRuleVariants & ConditionOptions +export type RecipeRule = '*' | RecipeRuleObject + export type PatternRule = '*' | CssRule export interface StaticCssOptions { diff --git a/packages/styled-system/src/types/style-props.d.ts b/packages/styled-system/src/types/style-props.d.ts index 35d6ddd74b..6305e55d25 100644 --- a/packages/styled-system/src/types/style-props.d.ts +++ b/packages/styled-system/src/types/style-props.d.ts @@ -2793,7 +2793,7 @@ gridAutoRows?: ConditionalValue +gridColumn?: ConditionalValue /** * The **`grid-column-end`** CSS property specifies a grid item's end position within the grid column by contributing a line, a span, or nothing (automatic) to its grid placement, thereby specifying the block-end edge of its grid area. * @@ -2835,7 +2835,7 @@ gridColumnStart?: ConditionalValue * * @see https://developer.mozilla.org/docs/Web/CSS/grid-row */ -gridRow?: ConditionalValue +gridRow?: ConditionalValue /** * The **`grid-row-end`** CSS property specifies a grid item's end position within the grid row by contributing a line, a span, or nothing (automatic) to its grid placement, thereby specifying the inline-end edge of its grid area. * @@ -2904,7 +2904,7 @@ gridTemplateAreas?: ConditionalValue +gridTemplateColumns?: ConditionalValue /** * The **`grid-template-rows`** CSS property defines the line names and track sizing functions of the grid rows. * @@ -2918,7 +2918,7 @@ gridTemplateColumns?: ConditionalValue +gridTemplateRows?: ConditionalValue /** * The **`hanging-punctuation`** CSS property specifies whether a punctuation mark should hang at the start or end of a line of text. Hanging punctuation may be placed outside the line box. * diff --git a/packages/types-embed/package.json b/packages/types-embed/package.json index 379675e361..cab25f91a2 100644 --- a/packages/types-embed/package.json +++ b/packages/types-embed/package.json @@ -1,6 +1,6 @@ { "name": "@ndla/types-embed", - "version": "5.0.4-alpha.0", + "version": "5.0.5-alpha.0", "description": "Types used for NDLA embeds", "license": "GPL-3.0", "types": "lib/index.d.ts", diff --git a/packages/types-embed/src/audioTypes.ts b/packages/types-embed/src/audioTypes.ts index 03d41935ea..f2b3782760 100644 --- a/packages/types-embed/src/audioTypes.ts +++ b/packages/types-embed/src/audioTypes.ts @@ -6,9 +6,9 @@ * */ -import { IAudioMetaInformation } from "@ndla/types-backend/audio-api"; -import { IImageMetaInformationV3 } from "@ndla/types-backend/image-api"; -import { MetaData } from "."; +import type { IAudioMetaInformation } from "@ndla/types-backend/audio-api"; +import type { IImageMetaInformationV3 } from "@ndla/types-backend/image-api"; +import type { MetaData } from "."; export type AudioEmbedData = { resource: "audio"; diff --git a/packages/types-embed/src/brightcoveTypes.ts b/packages/types-embed/src/brightcoveTypes.ts index 5dc6cb0612..fcefb98778 100644 --- a/packages/types-embed/src/brightcoveTypes.ts +++ b/packages/types-embed/src/brightcoveTypes.ts @@ -6,7 +6,7 @@ * */ -import { MetaData } from "."; +import type { MetaData } from "."; export type BrightcoveEmbedData = { resource: "brightcove"; diff --git a/packages/types-embed/src/campaignBlockTypes.ts b/packages/types-embed/src/campaignBlockTypes.ts index f6c6f71767..a5a139a14a 100644 --- a/packages/types-embed/src/campaignBlockTypes.ts +++ b/packages/types-embed/src/campaignBlockTypes.ts @@ -6,8 +6,8 @@ * */ -import { IImageMetaInformationV3 } from "@ndla/types-backend/image-api"; -import { MetaData } from "."; +import type { IImageMetaInformationV3 } from "@ndla/types-backend/image-api"; +import type { MetaData } from "."; export interface CampaignBlockEmbedData { resource: "campaign-block"; diff --git a/packages/types-embed/src/codeTypes.ts b/packages/types-embed/src/codeTypes.ts index 93e3c1922a..c4cfe560cb 100644 --- a/packages/types-embed/src/codeTypes.ts +++ b/packages/types-embed/src/codeTypes.ts @@ -6,7 +6,7 @@ * */ -import { MetaData } from "."; +import type { MetaData } from "."; export interface CodeEmbedData { resource: "code-block"; diff --git a/packages/types-embed/src/commentTypes.ts b/packages/types-embed/src/commentTypes.ts index 7f1a2ded1b..7df76a8f81 100644 --- a/packages/types-embed/src/commentTypes.ts +++ b/packages/types-embed/src/commentTypes.ts @@ -5,7 +5,7 @@ * LICENSE file in the root directory of this source tree. * */ -import { MetaData } from "."; +import type { MetaData } from "."; export interface CommentEmbedData { resource: "comment"; diff --git a/packages/types-embed/src/conceptTypes.ts b/packages/types-embed/src/conceptTypes.ts index 49960c5274..49d760a991 100644 --- a/packages/types-embed/src/conceptTypes.ts +++ b/packages/types-embed/src/conceptTypes.ts @@ -6,8 +6,8 @@ * */ -import { IConcept } from "@ndla/types-backend/concept-api"; -import { +import type { IConcept } from "@ndla/types-backend/concept-api"; +import type { AudioEmbedData, AudioMetaData, BrightcoveEmbedData, @@ -16,9 +16,9 @@ import { IframeMetaData, MetaData, } from "."; -import { OembedEmbedData, OembedMetaData } from "./externalTypes"; -import { H5pEmbedData, H5pMetaData } from "./h5pTypes"; -import { ImageEmbedData, ImageMetaData } from "./imageTypes"; +import type { OembedEmbedData, OembedMetaData } from "./externalTypes"; +import type { H5pEmbedData, H5pMetaData } from "./h5pTypes"; +import type { ImageEmbedData, ImageMetaData } from "./imageTypes"; export interface ConceptEmbedData { resource: "concept"; diff --git a/packages/types-embed/src/contactBlockTypes.ts b/packages/types-embed/src/contactBlockTypes.ts index b8733f758c..f85a7b29b6 100644 --- a/packages/types-embed/src/contactBlockTypes.ts +++ b/packages/types-embed/src/contactBlockTypes.ts @@ -6,8 +6,8 @@ * */ -import { IImageMetaInformationV3 } from "@ndla/types-backend/image-api"; -import { MetaData } from "."; +import type { IImageMetaInformationV3 } from "@ndla/types-backend/image-api"; +import type { MetaData } from "."; export interface ContactBlockEmbedData { resource: "contact-block"; jobTitle: string; diff --git a/packages/types-embed/src/contentLinkTypes.ts b/packages/types-embed/src/contentLinkTypes.ts index e5eaf600fa..a3340ff177 100644 --- a/packages/types-embed/src/contentLinkTypes.ts +++ b/packages/types-embed/src/contentLinkTypes.ts @@ -6,7 +6,7 @@ * */ -import { MetaData } from "."; +import type { MetaData } from "."; export interface ContentLinkEmbedData { resource: "content-link"; diff --git a/packages/types-embed/src/copyrightTypes.ts b/packages/types-embed/src/copyrightTypes.ts index 581ecab78b..1127072cbd 100644 --- a/packages/types-embed/src/copyrightTypes.ts +++ b/packages/types-embed/src/copyrightTypes.ts @@ -6,8 +6,8 @@ * */ -import { ICopyright } from "@ndla/types-backend/article-api"; -import { MetaData } from "."; +import type { ICopyright } from "@ndla/types-backend/article-api"; +import type { MetaData } from "."; export interface CopyrightEmbedData { resource: "copyright"; diff --git a/packages/types-embed/src/externalTypes.ts b/packages/types-embed/src/externalTypes.ts index fb695119fa..ee1abd3c06 100644 --- a/packages/types-embed/src/externalTypes.ts +++ b/packages/types-embed/src/externalTypes.ts @@ -6,8 +6,8 @@ * */ -import { IImageMetaInformationV3 } from "@ndla/types-backend/image-api"; -import { MetaData, OembedProxyResponse } from "."; +import type { IImageMetaInformationV3 } from "@ndla/types-backend/image-api"; +import type { MetaData, OembedProxyResponse } from "."; export interface OembedEmbedData { resource: "external"; diff --git a/packages/types-embed/src/fileTypes.ts b/packages/types-embed/src/fileTypes.ts index 31ad450cdf..52d449c001 100644 --- a/packages/types-embed/src/fileTypes.ts +++ b/packages/types-embed/src/fileTypes.ts @@ -6,7 +6,7 @@ * */ -import { MetaData } from "."; +import type { MetaData } from "."; export interface FileEmbedData { resource: "file"; diff --git a/packages/types-embed/src/footnoteTypes.ts b/packages/types-embed/src/footnoteTypes.ts index ae5adf7919..adfba16608 100644 --- a/packages/types-embed/src/footnoteTypes.ts +++ b/packages/types-embed/src/footnoteTypes.ts @@ -6,7 +6,7 @@ * */ -import { MetaData } from "."; +import type { MetaData } from "."; export interface FootnoteEmbedData { resource: "footnote"; diff --git a/packages/types-embed/src/h5pTypes.ts b/packages/types-embed/src/h5pTypes.ts index 1177e6418b..f2caac9883 100644 --- a/packages/types-embed/src/h5pTypes.ts +++ b/packages/types-embed/src/h5pTypes.ts @@ -6,7 +6,7 @@ * */ -import { MetaData, OembedProxyResponse } from "."; +import type { MetaData, OembedProxyResponse } from "."; export interface H5pEmbedData { resource: "h5p"; diff --git a/packages/types-embed/src/iframeTypes.ts b/packages/types-embed/src/iframeTypes.ts index 7c5207a931..d9dff38eb9 100644 --- a/packages/types-embed/src/iframeTypes.ts +++ b/packages/types-embed/src/iframeTypes.ts @@ -6,8 +6,8 @@ * */ -import { IImageMetaInformationV3 } from "@ndla/types-backend/image-api"; -import { MetaData } from "."; +import type { IImageMetaInformationV3 } from "@ndla/types-backend/image-api"; +import type { MetaData } from "."; export interface IframeEmbedData { resource: "iframe"; diff --git a/packages/types-embed/src/imageTypes.ts b/packages/types-embed/src/imageTypes.ts index 2c2a65e480..d14f9127ec 100644 --- a/packages/types-embed/src/imageTypes.ts +++ b/packages/types-embed/src/imageTypes.ts @@ -6,8 +6,8 @@ * */ -import { ICopyright, IImageMetaInformationV3 } from "@ndla/types-backend/image-api"; -import { MetaData } from "."; +import type { ICopyright, IImageMetaInformationV3 } from "@ndla/types-backend/image-api"; +import type { MetaData } from "."; export interface ImageEmbedData { resource: "image"; diff --git a/packages/types-embed/src/index.ts b/packages/types-embed/src/index.ts index 7da5973c49..c552682031 100644 --- a/packages/types-embed/src/index.ts +++ b/packages/types-embed/src/index.ts @@ -6,8 +6,8 @@ * */ -import { AudioMetaData, AudioEmbedData, AudioMeta } from "./audioTypes"; -import { +import type { AudioMetaData, AudioEmbedData, AudioMeta } from "./audioTypes"; +import type { BrightcoveData, BrightcoveEmbedData, BrightcoveMetaData, @@ -15,23 +15,23 @@ import { BrightcoveApiType, BrightcoveCopyright, } from "./brightcoveTypes"; -import { CampaignBlockEmbedData, CampaignBlockMeta, CampaignBlockMetaData } from "./campaignBlockTypes"; -import { CodeEmbedData, CodeMetaData } from "./codeTypes"; -import { CommentEmbedData, CommentMetaData } from "./commentTypes"; -import { +import type { CampaignBlockEmbedData, CampaignBlockMeta, CampaignBlockMetaData } from "./campaignBlockTypes"; +import type { CodeEmbedData, CodeMetaData } from "./codeTypes"; +import type { CommentEmbedData, CommentMetaData } from "./commentTypes"; +import type { ConceptData, ConceptEmbedData, ConceptMetaData, ConceptVisualElement, ConceptVisualElementMeta, } from "./conceptTypes"; -import { ContactBlockEmbedData, ContactBlockMetaData } from "./contactBlockTypes"; -import { ContentLinkData, ContentLinkEmbedData, ContentLinkMetaData } from "./contentLinkTypes"; -import { CopyrightEmbedData, CopyrightMetaData } from "./copyrightTypes"; -import { OembedEmbedData, OembedMetaData, OembedData } from "./externalTypes"; -import { FileEmbedData, FileMetaData } from "./fileTypes"; -import { FootnoteData, FootnoteEmbedData, FootnoteMetaData } from "./footnoteTypes"; -import { +import type { ContactBlockEmbedData, ContactBlockMetaData } from "./contactBlockTypes"; +import type { ContentLinkData, ContentLinkEmbedData, ContentLinkMetaData } from "./contentLinkTypes"; +import type { CopyrightEmbedData, CopyrightMetaData } from "./copyrightTypes"; +import type { OembedEmbedData, OembedMetaData, OembedData } from "./externalTypes"; +import type { FileEmbedData, FileMetaData } from "./fileTypes"; +import type { FootnoteData, FootnoteEmbedData, FootnoteMetaData } from "./footnoteTypes"; +import type { H5pMetaData, H5pEmbedData, OembedProxyData, @@ -41,13 +41,18 @@ import { H5pInfo, H5pData, } from "./h5pTypes"; -import { IframeMetaData, IframeEmbedData, IframeData } from "./iframeTypes"; -import { ImageEmbedData, ImageMetaData } from "./imageTypes"; -import { KeyFigureEmbedData, KeyFigureMeta, KeyFigureMetaData } from "./keyFigureTypes"; -import { LinkBlockEmbedData, LinkBlockMetaData } from "./linkBlockTypes"; -import { PitchEmbedData, PitchMetaData, PitchMeta } from "./pitchTypes"; -import { RelatedContentData, RelatedContentEmbedData, RelatedContentMetaData } from "./relatedContentTypes"; -import { DisclaimerLink, UuDisclaimerData, UuDisclaimerEmbedData, UuDisclaimerMetaData } from "./uuDisclaimerTypes"; +import type { IframeMetaData, IframeEmbedData, IframeData } from "./iframeTypes"; +import type { ImageEmbedData, ImageMetaData } from "./imageTypes"; +import type { KeyFigureEmbedData, KeyFigureMeta, KeyFigureMetaData } from "./keyFigureTypes"; +import type { LinkBlockEmbedData, LinkBlockMetaData } from "./linkBlockTypes"; +import type { PitchEmbedData, PitchMetaData, PitchMeta } from "./pitchTypes"; +import type { RelatedContentData, RelatedContentEmbedData, RelatedContentMetaData } from "./relatedContentTypes"; +import type { + DisclaimerLink, + UuDisclaimerData, + UuDisclaimerEmbedData, + UuDisclaimerMetaData, +} from "./uuDisclaimerTypes"; export type EmbedData = | AudioEmbedData diff --git a/packages/types-embed/src/keyFigureTypes.ts b/packages/types-embed/src/keyFigureTypes.ts index da97d9e41f..537ec17372 100644 --- a/packages/types-embed/src/keyFigureTypes.ts +++ b/packages/types-embed/src/keyFigureTypes.ts @@ -6,8 +6,8 @@ * */ -import { IImageMetaInformationV3 } from "@ndla/types-backend/image-api"; -import { MetaData } from "."; +import type { IImageMetaInformationV3 } from "@ndla/types-backend/image-api"; +import type { MetaData } from "."; export type KeyFigureEmbedData = { resource: "key-figure"; diff --git a/packages/types-embed/src/linkBlockTypes.ts b/packages/types-embed/src/linkBlockTypes.ts index c9d700d815..95572f3c35 100644 --- a/packages/types-embed/src/linkBlockTypes.ts +++ b/packages/types-embed/src/linkBlockTypes.ts @@ -6,7 +6,7 @@ * */ -import { MetaData } from "."; +import type { MetaData } from "."; export interface LinkBlockEmbedData { resource: "link-block"; diff --git a/packages/types-embed/src/pitchTypes.ts b/packages/types-embed/src/pitchTypes.ts index c2fcef5da7..265f0416fd 100644 --- a/packages/types-embed/src/pitchTypes.ts +++ b/packages/types-embed/src/pitchTypes.ts @@ -6,8 +6,8 @@ * */ -import { IImageMetaInformationV3 } from "@ndla/types-backend/image-api"; -import { MetaData } from "."; +import type { IImageMetaInformationV3 } from "@ndla/types-backend/image-api"; +import type { MetaData } from "."; export type PitchEmbedData = { resource: "pitch"; diff --git a/packages/types-embed/src/relatedContentTypes.ts b/packages/types-embed/src/relatedContentTypes.ts index d31c23a86e..eadfea6c40 100644 --- a/packages/types-embed/src/relatedContentTypes.ts +++ b/packages/types-embed/src/relatedContentTypes.ts @@ -6,10 +6,10 @@ * */ -import { IArticleV2 } from "@ndla/types-backend/article-api"; -import { IArticle } from "@ndla/types-backend/draft-api"; -import { Node } from "@ndla/types-taxonomy"; -import { MetaData } from "."; +import type { IArticleV2 } from "@ndla/types-backend/article-api"; +import type { IArticle } from "@ndla/types-backend/draft-api"; +import type { Node } from "@ndla/types-taxonomy"; +import type { MetaData } from "."; export interface RelatedContentEmbedData { resource: "related-content"; diff --git a/packages/types-embed/src/uuDisclaimerTypes.ts b/packages/types-embed/src/uuDisclaimerTypes.ts index b06867c7d1..bf1b870ab5 100644 --- a/packages/types-embed/src/uuDisclaimerTypes.ts +++ b/packages/types-embed/src/uuDisclaimerTypes.ts @@ -6,7 +6,7 @@ * */ -import { MetaData } from "."; +import type { MetaData } from "."; export interface DisclaimerLink { text: string; diff --git a/packages/util/package.json b/packages/util/package.json index 4a9683f7d2..78c35c41bc 100644 --- a/packages/util/package.json +++ b/packages/util/package.json @@ -1,6 +1,6 @@ { "name": "@ndla/util", - "version": "5.0.0-alpha.0", + "version": "5.0.3-alpha.0", "description": "Collection of util functions used by NDLA", "license": "GPL-3.0", "main": "lib/index.js", diff --git a/packages/util/src/__tests__/humanFileSize-test.ts b/packages/util/src/__tests__/humanFileSize-test.ts new file mode 100644 index 0000000000..0dc7ab19a0 --- /dev/null +++ b/packages/util/src/__tests__/humanFileSize-test.ts @@ -0,0 +1,33 @@ +/** + * Copyright (c) 2024-present, NDLA. + * + * This source code is licensed under the GPLv3 license found in the + * LICENSE file in the root directory of this source tree. + * + */ + +import { humanFileSize } from "../humanFileSize"; + +describe("humanFileSize", () => { + it("handles bytes", () => { + expect(humanFileSize(250, "nb")).toEqual("250 B"); + }); + + it("handles kilobytes", () => { + expect(humanFileSize(1000, "nb")).toEqual("1 kB"); + }); + + it("handles megabytes", () => { + expect(humanFileSize(1000000, "nb")).toEqual("1 MB"); + }); + + it("handles border values", () => { + expect(humanFileSize(999999, "nb")).toEqual("1 000 kB"); + expect(humanFileSize(1000000, "nb")).toEqual("1 MB"); + expect(humanFileSize(1001000, "nb")).toEqual("1 MB"); + }); + + it("rounds to two decimal places", () => { + expect(humanFileSize(1234567, "nb")).toEqual("1,23 MB"); + }); +}); diff --git a/packages/util/src/composeRefs.ts b/packages/util/src/composeRefs.ts index a637c81613..17d2eb84d3 100644 --- a/packages/util/src/composeRefs.ts +++ b/packages/util/src/composeRefs.ts @@ -6,7 +6,7 @@ * */ -import { MutableRefObject, Ref } from "react"; +import type { MutableRefObject, Ref } from "react"; type PossibleRef = Ref | undefined; diff --git a/packages/util/src/getComponentName.ts b/packages/util/src/getComponentName.ts index 113fd28ca1..12c2870b4c 100644 --- a/packages/util/src/getComponentName.ts +++ b/packages/util/src/getComponentName.ts @@ -6,7 +6,7 @@ * */ -import { ComponentClass } from "react"; +import type { ComponentClass } from "react"; const getComponentName = (component: ComponentClass) => component.displayName || component.name || "Component"; export default getComponentName; diff --git a/packages/util/src/humanFileSize.ts b/packages/util/src/humanFileSize.ts new file mode 100644 index 0000000000..2a66f2e219 --- /dev/null +++ b/packages/util/src/humanFileSize.ts @@ -0,0 +1,29 @@ +/** + * Copyright (c) 2024-present, NDLA. + * + * This source code is licensed under the GPLv3 license found in the + * LICENSE file in the root directory of this source tree. + * + */ + +// Code taken from https://stackoverflow.com/questions/10420352/converting-file-size-in-bytes-to-human-readable-string/72596863#72596863 + +const UNITS = ["byte", "kilobyte", "megabyte", "gigabyte", "terabyte", "petabyte"]; +const BYTES_PER_KB = 1000; + +export const humanFileSize = (sizeBytes: number | bigint, locale: string): string => { + let size = Math.abs(Number(sizeBytes)); + + let u = 0; + while (size >= BYTES_PER_KB && u < UNITS.length - 1) { + size /= BYTES_PER_KB; + ++u; + } + + return new Intl.NumberFormat(locale, { + style: "unit", + unit: UNITS[u], + unitDisplay: "short", + maximumFractionDigits: 2, + }).format(size); +}; diff --git a/packages/util/src/index.ts b/packages/util/src/index.ts index 59aad49c89..685fe27da0 100644 --- a/packages/util/src/index.ts +++ b/packages/util/src/index.ts @@ -24,4 +24,5 @@ export { default as usePrevious } from "./usePrevious"; export { composeRefs } from "./composeRefs"; export { polymorphicForwardRef } from "./polymorphicForwardRef"; export { contains } from "./contains"; +export { humanFileSize } from "./humanFileSize"; export type { PolymorphicProps } from "./polymorphicForwardRef"; diff --git a/packages/util/src/nossr/NoSSR.tsx b/packages/util/src/nossr/NoSSR.tsx index cd42ba7b74..274ad8c434 100644 --- a/packages/util/src/nossr/NoSSR.tsx +++ b/packages/util/src/nossr/NoSSR.tsx @@ -5,7 +5,7 @@ * LICENSE file in the root directory of this source tree. * */ -import { ReactNode, useEffect, useState } from "react"; +import { type ReactNode, useEffect, useState } from "react"; interface Props { children: ReactNode; @@ -24,10 +24,10 @@ const NoSSR = ({ children, fallback = null }: Props) => { }, []); if (!mounted) { - return <>{fallback}; + return fallback; } - return <>{children}; + return children; }; export default NoSSR; diff --git a/packages/util/src/nossr/withNoSSR.tsx b/packages/util/src/nossr/withNoSSR.tsx index bc5d2c8ec4..9616252695 100644 --- a/packages/util/src/nossr/withNoSSR.tsx +++ b/packages/util/src/nossr/withNoSSR.tsx @@ -6,7 +6,7 @@ * */ -import { ReactNode, ComponentType } from "react"; +import type { ReactNode, ComponentType } from "react"; import NoSSR from "./NoSSR"; /** Basic HoC to wrap your component in `NoSSR`, see `NoSSR.tsx` */ diff --git a/packages/util/src/polymorphicForwardRef.ts b/packages/util/src/polymorphicForwardRef.ts index 50ac97fdfc..5d7776077d 100644 --- a/packages/util/src/polymorphicForwardRef.ts +++ b/packages/util/src/polymorphicForwardRef.ts @@ -6,7 +6,7 @@ * */ -import { ComponentPropsWithRef, ElementType, forwardRef } from "react"; +import { type ComponentPropsWithRef, type ElementType, forwardRef } from "react"; type DistributiveOmit = T extends any ? Omit : never; diff --git a/packages/util/src/printPage.ts b/packages/util/src/printPage.ts index 975a03a8ff..05c5c9d2b2 100644 --- a/packages/util/src/printPage.ts +++ b/packages/util/src/printPage.ts @@ -11,16 +11,38 @@ function closePrint(this: any) { } function setPrint(this: any) { - this.contentWindow.__container__ = this; - this.contentWindow.onbeforeunload = closePrint; - this.contentWindow.onafterprint = closePrint; - this.contentWindow.focus(); // Required for IE - setTimeout(() => this.contentWindow.print(), 2000); + const iframeWindow = this.contentWindow; + iframeWindow.__container__ = this; + iframeWindow.onbeforeunload = closePrint; + iframeWindow.onafterprint = closePrint; + + // Wait until the content is fully ready to print + if (isContentReady(iframeWindow.document)) { + iframeWindow.focus(); + iframeWindow.print(); + } else { + // If content isn't ready, use MutationObserver to wait for it + const observer = new MutationObserver((_, obs) => { + if (isContentReady(iframeWindow.document)) { + obs.disconnect(); // Stop observing + iframeWindow.focus(); + iframeWindow.print(); + } + }); + + observer.observe(iframeWindow.document, { childList: true, subtree: true }); + } +} + +function isContentReady(doc: Document): boolean { + // Logic to determine if the iframe's content is ready + return doc.readyState === "complete"; } export function printPage(url: string) { const iframe = document.createElement("iframe"); iframe.onload = setPrint; iframe.src = url; + iframe.style.visibility = "hidden"; document.body.appendChild(iframe); } diff --git a/packages/util/src/resizeObserver.ts b/packages/util/src/resizeObserver.ts index 574b950891..9ec0fbf84b 100644 --- a/packages/util/src/resizeObserver.ts +++ b/packages/util/src/resizeObserver.ts @@ -32,7 +32,6 @@ function fallbackResizeObserver(element: HTMLElement, handler: (el: HTMLElement) } function resizeObserverWrapper(element: HTMLElement, handler: (el: HTMLElement) => void): () => void { - // @ts-ignore ResizeObserver let resizeObserver: ResizeObserver | null = new ResizeObserver(() => { handler(element); }); @@ -51,7 +50,6 @@ function resizeObserverWrapper(element: HTMLElement, handler: (el: HTMLElement) * @returns a callback function which removes the resize listner */ export function resizeObserver(element: HTMLElement, handler: (el: HTMLElement) => void): () => void { - // @ts-ignore ResizeObserver if (typeof ResizeObserver === "function") { return resizeObserverWrapper(element, handler); } diff --git a/packages/util/src/useForwardedRef.ts b/packages/util/src/useForwardedRef.ts index eaef3dedd5..f04ec1e10f 100644 --- a/packages/util/src/useForwardedRef.ts +++ b/packages/util/src/useForwardedRef.ts @@ -6,7 +6,7 @@ * */ -import { ForwardedRef, useEffect, useRef } from "react"; +import { type ForwardedRef, useEffect, useRef } from "react"; const useForwardedRef = (ref?: ForwardedRef) => { const innerRef = useRef(null); diff --git a/packages/util/src/uuid.ts b/packages/util/src/uuid.ts index 4a2be9a040..b6d972d6b4 100644 --- a/packages/util/src/uuid.ts +++ b/packages/util/src/uuid.ts @@ -6,12 +6,13 @@ * */ +// TODO: Remove this function. We can use the uuid package if we really need it function uuid(a?: number): string { if (a) { return (a ^ ((Math.random() * 16) >> (a / 4))).toString(16); } - // @ts-ignore + // @ts-expect-error - Magic return ([1e7] + -1e3 + -4e3 + -8e3 + -1e11).replace(/[018]/g, uuid); } diff --git a/scripts/.eslintrc.js b/scripts/.eslintrc.js deleted file mode 100644 index 89adcb225f..0000000000 --- a/scripts/.eslintrc.js +++ /dev/null @@ -1,8 +0,0 @@ -module.exports = { - env: { - node: true, - }, - rules: { - "no-console": 0, - }, -}; diff --git a/scripts/build.js b/scripts/build.js index 5e26c37dea..b490793d4b 100644 --- a/scripts/build.js +++ b/scripts/build.js @@ -118,25 +118,9 @@ function buildNodePackage(p) { process.stdout.write(adjustToTerminalWidth(`${path.basename(p)}`)); - const skipEmotion = - p.endsWith("primitives") || - p.endsWith("preset-panda") || - p.endsWith("icons") || - p.endsWith("safelink") || - p.endsWith("ui") || - p.endsWith("audio-search") || - p.endsWith("image-search") || - p.endsWith("video-search") || - p.endsWith("util") || - p.endsWith("error-reporter") || - p.endsWith("tracker") || - p.endsWith("article-converter"); - - const presets = skipEmotion - ? ["@babel/preset-typescript", ["@babel/preset-react", { runtime: "automatic" }]] - : ["@babel/preset-typescript", ["@babel/preset-react", { runtime: "automatic", importSource: "@emotion/react" }]]; - - const plugins = skipEmotion ? [] : [...babelOptions.plugins]; + const presets = ["@babel/preset-typescript", ["@babel/preset-react", { runtime: "automatic" }]]; + + const plugins = []; files.forEach((file) => { buildFile(file, "es", { silent: true, override: { presets: [esPresetEnv].concat(presets), plugins } }); diff --git a/scripts/createTsIconComponents.mjs b/scripts/createTsIconComponents.mjs index 6c7dec6cc4..0a49f9a1cc 100644 --- a/scripts/createTsIconComponents.mjs +++ b/scripts/createTsIconComponents.mjs @@ -11,15 +11,15 @@ import { join, dirname } from "path"; import { transform } from "@svgr/core"; const __dirname = dirname(new URL(import.meta.url).pathname); -const rootDir = join(__dirname, "..", "packages", "ndla-icons"); +const rootDir = join(__dirname, "..", "packages", "icons"); const today = new Date(new Date().setHours(0, 0, 0, 0)); const copyright = await readFile(join(__dirname, "..", "COPYRIGHT"), "utf-8"); const autoNotice = `// N.B! AUTOGENERATED FILE. DO NOT EDIT`; -const imports = `import Icon, { Props } from '../Icon'`; +const imports = `import Icon, { type Props } from '../Icon'`; -const allFileNames = await readdir(`${rootDir}/svg`, { recursive: true }); +const allFileNames = await readdir(`${rootDir}/svg`); const svgFiles = allFileNames.filter((file) => file.endsWith(".svg")); const allFiles = await Promise.all( svgFiles.map(async (filename) => { @@ -31,8 +31,7 @@ const allFiles = await Promise.all( ); const filePromises = allFiles.map(async ({ filename, file, ctime, mtime }) => { if (mtime && mtime < today) return; - const [folderName, iconName] = filename.split("/"); - const componentName = iconName.split(".")[0]; + const componentName = filename.split(".")[0]; const regexPattern = /(\d{4})-/g; // This finds the year so we can replace it with current year in the .tsx file const component = await transform( file, @@ -85,30 +84,17 @@ const filePromises = allFiles.map(async ({ filename, file, ctime, mtime }) => { `; }, }, - { componentName, filePath: `${rootDir}/src/${folderName}/${componentName}.tsx` }, + { componentName, filePath: `${rootDir}/src/icons/${componentName}.tsx` }, ); const componentWithIcon = component.replace("", ""); - await writeFile(`${rootDir}/src/${folderName}/${componentName}.tsx`, componentWithIcon); + await writeFile(`${rootDir}/src/icons/${componentName}.tsx`, componentWithIcon); }); -const packages = svgFiles.reduce((acc, file) => { - const [packageName, icon] = file.split("/"); - if (!acc[packageName]) { - acc[packageName] = [icon]; - } else { - acc[packageName].push(icon); - } - return acc; -}, {}); - -const indexPromises = Object.entries(packages).map(async ([packageName, icons]) => { - const exports = icons - .map((icon) => `export { default as ${icon.split(".")[0]} } from "./${icon.split(".")[0]}";`) - .join("\n"); - const file = `${copyright}\n${autoNotice}\n${exports}\n`; - await writeFile(`${rootDir}/src/${packageName}/index.ts`, file); -}); +const exports = svgFiles + .map((icon) => `export { default as ${icon.split(".")[0]} } from "./${icon.split(".")[0]}";`) + .join("\n"); +const file = `${copyright}\n${autoNotice}\n${exports}\n`; +await writeFile(`${rootDir}/src/icons/index.ts`, file); await Promise.all(filePromises); -await Promise.all(indexPromises); diff --git a/stories/article/FigureImage.tsx b/stories/article/FigureImage.tsx deleted file mode 100644 index ab0b6fb48e..0000000000 --- a/stories/article/FigureImage.tsx +++ /dev/null @@ -1,138 +0,0 @@ -/** - * Copyright (c) 2018-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ - -import { IImageMetaInformationV3 } from "@ndla/types-backend/image-api"; -import { ImageEmbedData, ImageMetaData } from "@ndla/types-embed"; - -import { ImageEmbed } from "@ndla/ui"; - -interface Props { - embedData?: Partial>; - error?: boolean; - type?: "default" | "math"; -} - -const metaData: IImageMetaInformationV3 = { - id: "4025", - metaUrl: "https://api.test.ndla.no/image-api/v3/images/4025", - title: { title: "Markedsundersøkelse", language: "und" }, - alttext: { - alttext: "Stor hånd med forstørrelsesglass over liten mann med snakkeboble. Illustrasjon.", - language: "und", - }, - copyright: { - license: { - license: "CC-BY-NC-SA-4.0", - description: "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International", - url: "https://creativecommons.org/licenses/by-nc-sa/4.0/", - }, - origin: "http://www.scanpix.no", - creators: [{ type: "Originator", name: "Gary Waters" }], - processors: [], - rightsholders: [ - { type: "Supplier", name: "Corbis" }, - { type: "Supplier", name: "NTB scanpix" }, - ], - processed: false, - }, - tags: { tags: [], language: "nb" }, - caption: { caption: "", language: "nb" }, - supportedLanguages: ["und"], - created: "2019-06-17T13:15:40.000Z", - createdBy: "r0gHb9Xg3li4yyXv0QSGQczV3bviakrT", - modelRelease: "not-set", - editorNotes: [], - image: { - fileName: "/42-45210905.jpg", - size: 119513, - contentType: "image/jpeg", - imageUrl: "https://api.test.ndla.no/image-api/raw/42-45210905.jpg", - dimensions: { width: 1000, height: 883 }, - language: "und", - }, -}; - -const mathMetaData: IImageMetaInformationV3 = { - id: "42078", - metaUrl: "https://api.test.ndla.no/image-api/v3/images/42078", - title: { title: "Løsning oppg 2.2 a", language: "und" }, - alttext: { alttext: "", language: "nb" }, - copyright: { - license: { - license: "CC-BY-NC-SA-4.0", - description: "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International", - url: "https://creativecommons.org/licenses/by-nc-sa/4.0/", - }, - origin: "https://www.geogebra.org/", - creators: [{ type: "Originator", name: "Bjarne Skurdal" }], - processors: [], - rightsholders: [], - processed: false, - }, - tags: { tags: ["geogebra", "functions", "graph"], language: "und" }, - caption: { caption: "", language: "nb" }, - supportedLanguages: ["und"], - created: "2018-12-19T13:08:37.000Z", - createdBy: "r0gHb9Xg3li4yyXv0QSGQczV3bviakrT", - modelRelease: "not-set", - editorNotes: [], - image: { - fileName: "/oppg_2_2_a_vekstfart_spraknoytral.png", - size: 356053, - contentType: "image/png", - imageUrl: "https://api.test.ndla.no/image-api/raw/oppg_2_2_a_vekstfart_spraknoytral.png", - dimensions: { width: 3000, height: 1656 }, - language: "und", - }, -}; - -const defaultImageEmbedData: ImageEmbedData = { - resource: "image", - resourceId: "61181", - size: "full", - align: "", - alt: "Stor hånd med forstørrelsesglass over liten mann med snakkeboble. Illustrasjon.", - caption: "", - url: "https://api.test.ndla.no/image-api/v2/images/4025", -}; - -const mathImageEmbedData: ImageEmbedData = { - resource: "image", - resourceId: "61181", - size: "full", - align: "", - alt: "Tenåringsjente med lyse fletter slenger på håret. Foto. ", - caption: "Modellklarert.", - url: "https://api.test.ndla.no/image-api/v2/images/61181", -}; - -const FigureImage = ({ embedData, type = "default", error }: Props) => { - const embed: ImageMetaData = error - ? { - resource: "image", - status: "error", - message: "Failed to fetch image", - embedData: { - ...(type === "default" ? defaultImageEmbedData : mathImageEmbedData), - ...embedData, - }, - } - : { - resource: "image", - embedData: { - ...(type === "default" ? defaultImageEmbedData : mathImageEmbedData), - ...embedData, - }, - data: type === "default" ? metaData : mathMetaData, - status: "success", - }; - - return ; -}; - -export default FigureImage; diff --git a/stories/basicStyles/colors.stories.tsx b/stories/basicStyles/colors.stories.tsx deleted file mode 100644 index 48c56382fa..0000000000 --- a/stories/basicStyles/colors.stories.tsx +++ /dev/null @@ -1,202 +0,0 @@ -/** - * Copyright (c) 2023-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ - -import { ReactNode } from "react"; -import styled from "@emotion/styled"; -import { Meta, StoryFn } from "@storybook/react"; -import { colors, spacing } from "@ndla/core"; - -interface Props { - color: string; - name: string; -} - -const StyledColorBlocks = styled.div` - display: flex; - flex-wrap: wrap; - gap: ${spacing.small}; -`; - -interface ColorBlocksProps { - title?: string; - description?: string; - children: ReactNode; -} - -const ColorBlocks = ({ title, description, children }: ColorBlocksProps) => ( -
      - {title &&

      {title}

      } - {description &&

      {description}

      } - {children} -
      -); - -const StyledColorBlock = styled.div` - & > p { - margin: 0px; - } -`; - -const ColorBlock = ({ color, name }: Props) => { - return ( - -
      -

      {name}

      -

      {color}

      - - ); -}; - -export default { - title: "Base Styles/Colors", - tags: ["autodocs"], - component: ColorBlocks, - parameters: { - inlineStories: true, - }, -} as Meta; - -/** - *Fargene til NDLA er laget for å skape god lesbarhet og flyt for brukerne. Fargene skal alltid benyttes i design av brukergrensesnitt. Fargene skal ikke brukes på redaksjonelt innhold som for eksempel illustrasjoner og elementer inne i H5P. Ved bruk av farger i design skal det alltid være nok kontrast mellom elementer som f.eks bakgrunn og tekst. Fargene skal til enhver tid oppfylle alle standarder for WCAG (Web Content Accessibility Guidelines). Verktøy for å kontrollere kontrast mellom tekst og bakgrunn finnes her: https://webaim.org/resources/contrastchecker/ - */ -export const PrimaryColors: StoryFn = () => ( - - - - - - - - - -); - -/** - * For å skape hierarki i innholdet finnes det to farger for tekst og systemikoner. Vektleggingen skjer i samhandling med stillingen av typografien. Når teksten eller ikonet er klikkbare linker skal man bruke NDLA-blå farge. Hvit tekst blir brukt på f.eks knapper og navigasjonselementer med mørke bagrunner. Fargen og størrelsen på teksten skal til enhver tid kombineres med bakgrunner med nok kontrast og som oppfyller krav til WCAG: Verktøy for å teste kontrast mellom tekst og bakgrunn finnes her: https://webaim.org/resources/contrastchecker/ - */ -export const TextAndSystemIcons: StoryFn = () => ( - - - - - - - - - -); - -export const NeutralColors: StoryFn = () => ( - - - - - - - - -); - -export const BackgroundColors: StoryFn = () => ( - - - - - - - -); - -/** - * Innholdstyper har to farger, en mørk og en lys, knyttet til seg. Den lyse fargen er brukt på bakgrunner og den mørke er brukt på ikonet tilknyttet innholdstypen. Noen av innholdstypene har en tredje farge. Dette da det er behov for en egen bakgrunnsfarge på ikonet og en annen på bakgrunnen i artikkelmalen. - * - * Fargene er lette og duse i uttrykket for å la selve innholdet få fokus og poppe. I tillegg skaper fargene tilhørighet og gjenkjennbarhet til innholdstypen. - */ -export const ContentTypeColors: StoryFn = () => ( -
      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      -); - -export const NDLAFilm: StoryFn = () => ( - - - - - - -); - -/** - * Supportfargene er valgt fordi de er konvensjonelle i sin kontekst. Selv om vi anerkjenner at det er kulturelle forskjeller har enkelte farger iboende betydning for et stort flertall brukere. For eksempel bruker vi rødt til å kommunisere en feil og grønt for suksess. Brukes med opacity 30% på hvit bakgrunn. - */ -export const Support: StoryFn = () => ( - - - - - - - - - - - -); diff --git a/stories/basicStyles/quotes.stories.tsx b/stories/basicStyles/quotes.stories.tsx deleted file mode 100644 index cf887fdbbd..0000000000 --- a/stories/basicStyles/quotes.stories.tsx +++ /dev/null @@ -1,43 +0,0 @@ -/** - * Copyright (c) 2016-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ - -import { Meta, StoryFn } from "@storybook/react"; -import { StoryBody, StoryIntro } from "../wrappers"; - -const meta: Meta = { - title: "Base styles/Quotations", -}; - -export default meta; - -export const Quotations: StoryFn = () => ( -
      - -

      - Sitater som strekker seg inntil tre linjer i vanlig linjelengde kan markeres med «». Sitater som - strekker seg over tre linjer i vanlig linjelengde taes ut som et blokksitat. -

      -
      - -

      Eksempel på blokksitat

      -
      - Vi elsker alle Noora i Skam. Vi ser opp til henne, vi vil være henne, og hun viser oss at det å tre ut av den - typiske sildestimen alle absolutt skal følge, er kult.
      - (Jente 19 år, Si;D, Aftenposten 23. mai 2016) -
      -

      Sitat i liste

      -
      -
        -
      1. Første
      2. -
      3. Andre
      4. -
      5. Tredje
      6. -
      -
      -
      -
      -); diff --git a/stories/basicStyles/spacing.stories.tsx b/stories/basicStyles/spacing.stories.tsx deleted file mode 100644 index 07bf56b918..0000000000 --- a/stories/basicStyles/spacing.stories.tsx +++ /dev/null @@ -1,64 +0,0 @@ -/** - * Copyright (c) 2023-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ - -import styled from "@emotion/styled"; -import { Meta, StoryFn } from "@storybook/react"; -import { colors, spacing } from "@ndla/core"; - -const Wrapper = styled.div` - display: flex; - flex-wrap: wrap; - align-items: center; - gap: ${spacing.small}; - p { - margin: 0px; - } - div { - display: flex; - flex-direction: column; - align-items: center; - } -`; - -const Block = styled.div` - background-color: ${colors.brand.primary}; - color: ${colors.white}; - text-align: center; - width: min-content; -`; - -const SpacingBlock = ({ name }: { name: keyof typeof spacing }) => ( -
      -

      {name}

      - -

      {spacing[name]}

      -
      -); - -export default { - title: "Base styles/Spacing", - tags: ["autodocs"], - parameters: { - inlineStories: true, - }, -} as Meta; - -export const Default: StoryFn = () => ( - - - - - - - - - - - - -); diff --git a/stories/licenseDescriptions.stories.tsx b/stories/licenseDescriptions.stories.tsx index 5c1e7a3e3a..4d5c4afb60 100644 --- a/stories/licenseDescriptions.stories.tsx +++ b/stories/licenseDescriptions.stories.tsx @@ -7,7 +7,7 @@ */ import { useState } from "react"; -import { Meta, StoryFn } from "@storybook/react"; +import type { Meta, StoryFn } from "@storybook/react"; import { ALL_ABBREVIATIONS, getLicenseByAbbreviation } from "@ndla/licenses"; import { Table, diff --git a/stories/ndlaUrls.stories.tsx b/stories/ndlaUrls.stories.tsx index 1b7e371dbe..68f6548a65 100644 --- a/stories/ndlaUrls.stories.tsx +++ b/stories/ndlaUrls.stories.tsx @@ -6,11 +6,11 @@ * */ -import { Meta, StoryFn } from "@storybook/react"; -import { NdlaLogoText } from "@ndla/primitives"; +import type { Meta, StoryFn } from "@storybook/react"; +import { PageContent } from "@ndla/primitives"; import { SafeLink } from "@ndla/safelink"; -import { OneColumn, PageContainer } from "@ndla/ui"; -import { StoryBody } from "./wrappers"; +import { styled } from "@ndla/styled-system/jsx"; +import { ArticleContent, ArticleWrapper } from "@ndla/ui"; export default { title: "NDLA urls", @@ -19,61 +19,66 @@ export default { }, } as Meta; +const StyledPageContent = styled(PageContent, { + base: { + paddingBlockEnd: "xxlarge", + }, +}); + export const NDLAUrls: StoryFn = () => ( - -
      - -
      - + + + +

      Lenker i NDLA

      -
      -
      - -

      NDLA.no

      -

      - Produksjon: -
      - https://ndla.no -

      -

      - Staging: -
      - https://staging.ndla.no -

      -

      - Test: -
      - https://test.ndla.no -

      -

      Editorial (ED)

      -

      - Produksjon: -
      - https://ed.ndla.no -

      -

      - Staging: -
      - https://ed.staging.ndla.no -

      -

      - Test: -
      - https://ed.test.ndla.no -

      -

      API

      -

      - API dokumentasjon (Swagger): +

      NDLA.no

      +

      + Produksjon: +
      + https://ndla.no +

      +

      + Staging: +
      + https://staging.ndla.no +

      +

      + Test: +
      + https://test.ndla.no +

      +

      Editorial (ED)

      +

      + Produksjon: +
      + https://ed.ndla.no +

      +

      + Staging: +
      + https://ed.staging.ndla.no +

      +

      + Test: +
      + https://ed.test.ndla.no +

      +

      API

      +

      + API dokumentasjon (Swagger): +
      + https://api.ndla.no/ +

      +

      Design

      + + Komponenter (Figma) +
      - https://api.ndla.no/ -

      -

      Design

      - Komponenter (Figma) -
      - Sider (Figma) -
      -
      -
      + Sider (Figma) + + + + ); NDLAUrls.storyName = "NDLA urls"; diff --git a/stories/welcome.stories.tsx b/stories/welcome.stories.tsx index e62176bf32..ab7e331ee9 100644 --- a/stories/welcome.stories.tsx +++ b/stories/welcome.stories.tsx @@ -6,9 +6,10 @@ * */ -import { Meta, StoryFn } from "@storybook/react"; -import { NdlaLogoText } from "@ndla/primitives"; -import { ArticleWrapper, ArticleContent, PageContainer } from "@ndla/ui"; +import type { Meta, StoryFn } from "@storybook/react"; +import { NdlaLogoText, PageContent } from "@ndla/primitives"; +import { styled } from "@ndla/styled-system/jsx"; +import { ArticleWrapper, ArticleContent } from "@ndla/ui"; export default { title: "Welcome", @@ -17,92 +18,102 @@ export default { }, } as Meta; +const StyledPageContent = styled(PageContent, { + base: { + paddingBlockEnd: "xxlarge", + }, +}); + +const HeaderWrapper = styled("div", { + base: { + display: "flex", + flexDirection: "column", + alignItems: "center", + }, +}); + export const Welcome: StoryFn = () => ( - + -
      - -

      Designmanual

      -
      -

      - - NB: Grunnet overgang til ny profil er komponenter i ferd med å bli byttet ut med nyere versjoner, og vil - derfor ikke se helt korrekte ut her. - -

      -

      Hva designmanualen er, og hva den ikke er

      -

      - Designmanualen inneholder retningslinjer for formatering, visuelt uttrykk, interaksjon og innholdselementer. -

      -

      - En del lenker, knapper og lignende funksjonalitet har foreløpig ikke reelt innhold. De er ment som eksempler - til videre utvikling oppimot APIer og reelt innhold på nye ndla.no. Etter hvert som innholdselementer utvikles - videre med reell funksjonalitet, kan de tas inn i designmanualen og erstatte de gamle elementene. -

      -

      - Den er ikke en brukermanual for innholdsproduksjon. Råd og retningslinjer for produksjon av innhold ligger i{" "} - - kvalitet i NDLA. - -

      -

      Hvordan bruke designmanualen?

      -

      - Designmanual er for produksjon av teknisk innhold. Den består av hovedsakelig to deler: et CSS-bibliotek som - styler de mest brukte HTML-elementene, og et komponent-bibliotek for{" "} - React. Den er også publisert på{" "} - npm. -

      -

      Hente inn prosjekt direkte via npm

      - npm install @ndla/ui --save -
      - yarn add @ndla/ui -S -

      Fonter

      -

      - Vi henter fonter ved hjelp av Fontsource. Installer - fontene du trenger, og importer deretter fontene du trenger i inngangspunktet til appen. -

      -

      Følgende fonter tas i bruk:

      - import '@fontsource/source-sans-pro/index.css'; -
      - import '@fontsource/source-sans-pro/400-italic.css'; -
      - import '@fontsource/source-sans-pro/300.css'; -
      - import '@fontsource/source-sans-pro/300-italic.css'; -
      - import '@fontsource/source-sans-pro/600.css'; -
      - import '@fontsource/source-sans-pro/700.css'; -
      - import '@fontsource/source-code-pro/index.css'; -
      - import '@fontsource/source-code-pro/400-italic.css'; -
      - import '@fontsource/source-code-pro/700.css'; -
      - import '@fontsource/source-serif-pro/index.css'; -
      - import '@fontsource/source-serif-pro/400-italic.css'; -
      - import '@fontsource/source-serif-pro/700.css'; -

      Hente inn stilark

      - @import '^@ndla/ui/lib/all.css'; -
      - Eller -
      - @import '~@ndla/core/scss/core'; -
      - @import '~@ndla/ui/src/main'; -
      - Osv. +
      + + +

      Designmanual

      +
      +

      + + NB: Grunnet overgang til ny profil er komponenter i ferd med å bli byttet ut med nyere versjoner, og vil + derfor ikke se helt korrekte ut her. + +

      +

      Hva designmanualen er, og hva den ikke er

      +

      + Designmanualen inneholder retningslinjer for formatering, visuelt uttrykk, interaksjon og innholdselementer. +

      +

      + En del lenker, knapper og lignende funksjonalitet har foreløpig ikke reelt innhold. De er ment som eksempler + til videre utvikling oppimot APIer og reelt innhold på nye ndla.no. Etter hvert som innholdselementer + utvikles videre med reell funksjonalitet, kan de tas inn i designmanualen og erstatte de gamle elementene. +

      +

      + Den er ikke en brukermanual for innholdsproduksjon. Råd og retningslinjer for produksjon av innhold ligger i{" "} + + kvalitet i NDLA. + +

      +

      Hvordan bruke designmanualen?

      +

      + Designmanual er for produksjon av teknisk innhold. Den består av hovedsakelig to deler: et CSS-bibliotek som + styler de mest brukte HTML-elementene, og et komponent-bibliotek for{" "} + React. Den er også publisert på{" "} + npm. +

      +

      Hente inn prosjekt direkte via npm

      + npm install @ndla/ui --save +
      + yarn add @ndla/ui -S +

      Fonter

      +

      + Vi henter fonter ved hjelp av Fontsource. Installer + fontene du trenger, og importer deretter fontene du trenger i inngangspunktet til appen. +

      +

      Følgende fonter tas i bruk:

      + import '@fontsource/source-sans-pro/index.css'; +
      + import '@fontsource/source-sans-pro/400-italic.css'; +
      + import '@fontsource/source-sans-pro/300.css'; +
      + import '@fontsource/source-sans-pro/300-italic.css'; +
      + import '@fontsource/source-sans-pro/600.css'; +
      + import '@fontsource/source-sans-pro/700.css'; +
      + import '@fontsource/source-code-pro/index.css'; +
      + import '@fontsource/source-code-pro/400-italic.css'; +
      + import '@fontsource/source-code-pro/700.css'; +
      + import '@fontsource/source-serif-pro/index.css'; +
      + import '@fontsource/source-serif-pro/400-italic.css'; +
      + import '@fontsource/source-serif-pro/700.css'; +

      Hente inn stilark

      + @import '^@ndla/ui/lib/all.css'; +
      + Eller +
      + @import '~@ndla/core/scss/core'; +
      + @import '~@ndla/ui/src/main'; +
      + Osv. +
      -
      + ); diff --git a/stories/wrappers/StoryBody.tsx b/stories/wrappers/StoryBody.tsx deleted file mode 100644 index 5d9f02c8ba..0000000000 --- a/stories/wrappers/StoryBody.tsx +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Copyright (c) 2016-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ - -import { ReactNode } from "react"; -import { OneColumn, ArticleWrapper, ArticleContent } from "@ndla/ui"; - -interface Props { - children?: ReactNode; -} - -const StoryBody = ({ children }: Props) => ( - - - {children} - - -); - -export default StoryBody; diff --git a/stories/wrappers/StoryIntro.tsx b/stories/wrappers/StoryIntro.tsx deleted file mode 100644 index 4d23b1999d..0000000000 --- a/stories/wrappers/StoryIntro.tsx +++ /dev/null @@ -1,47 +0,0 @@ -/** - * Copyright (c) 2016-present, NDLA. - * - * This source code is licensed under the GPLv3 license found in the - * LICENSE file in the root directory of this source tree. - * - */ - -import { ReactNode } from "react"; -import styled from "@emotion/styled"; -import { colors, spacing } from "@ndla/core"; -import { OneColumn, ArticleWrapper, ArticleContent } from "@ndla/ui"; - -const StoryIntroSection = styled.section` - background: ${colors.brand.light}; - padding: ${spacing.small}; - margin-bottom: ${spacing.normal}; - a:not([class]) { - color: ${colors.brand.primary}; - a:not([class]) { - color: ${colors.white}; - box-shadow: inset 0 -1px 0 rgba(${colors.white}, 0.6); - transition: box-shadow 0.2s ease; - text-decoration: none; - } - } -`; - -interface Props { - title?: string; - children?: ReactNode; -} - -const StoryIntro = ({ title, children }: Props) => ( - - - - -

      {title}

      - {children} -
      -
      -
      -
      -); - -export default StoryIntro; diff --git a/stories/wrappers/index.ts b/stories/wrappers/index.ts deleted file mode 100644 index d7aa31003d..0000000000 --- a/stories/wrappers/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export { default as StoryBody } from "./StoryBody"; -export { default as StoryIntro } from "./StoryIntro"; diff --git a/tsconfig.json b/tsconfig.json index dfb01722c1..96e2e710c5 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,44 +1,40 @@ { "compilerOptions": { "baseUrl": ".", - "target": "es5", + "target": "es2022", "esModuleInterop": true, "jsx": "react-jsx", "isolatedModules": true, "strict": true, "allowJs": true, "moduleResolution": "Bundler", + "moduleDetection": "force", "module": "preserve", "noLib": false, - // TODO: Remove this once @storybook/theming fixes their type issues "skipLibCheck": true, "noEmit": true, "sourceMap": true, + "verbatimModuleSyntax": true, "lib": ["ES2023", "esnext.asynciterable", "dom"], "types": ["jest", "node"], "paths": { "@ndla/article-converter": ["./packages/article-converter/src"], - "@ndla/button": ["./packages/button/src"], - "@ndla/core": ["./packages/core/src"], - "@ndla/dropdown-menu": ["./packages/dropdown-menu/src"], - "@ndla/hooks": ["./packages/hooks/src"], "@ndla/audio-search": ["./packages/ndla-audio-search/src"], + "@ndla/core": ["./packages/core/src"], "@ndla/error-reporter": ["./packages/ndla-error-reporter/src"], - "@ndla/icons": ["./packages/ndla-icons/src"], - "@ndla/icons/*": ["./packages/ndla-icons/src/*"], + "@ndla/hooks": ["./packages/hooks/src"], + "@ndla/icons": ["./packages/icons/src"], "@ndla/image-search": ["./packages/ndla-image-search/src"], "@ndla/licenses": ["./packages/ndla-licenses/src"], - "@ndla/modal": ["./packages/ndla-modal/src"], - "@ndla/tracker": ["./packages/ndla-tracker/src"], - "@ndla/ui": ["./packages/ndla-ui/src"], - "@ndla/video-search": ["./packages/ndla-video-search/src"], - "@ndla/safelink": ["./packages/safelink/src"], - "@ndla/types-embed": ["./packages/types-embed/src"], - "@ndla/util": ["./packages/util/src"], "@ndla/preset-panda": ["./packages/preset-panda/src"], "@ndla/primitives": ["./packages/primitives/src"], + "@ndla/safelink": ["./packages/safelink/src"], "@ndla/styled-system": ["./packages/styled-system/src"], - "*": ["node_modules"] + "@ndla/tracker": ["./packages/ndla-tracker/src"], + "@ndla/types-embed": ["./packages/types-embed/src"], + "@ndla/ui": ["./packages/ndla-ui/src"], + "@ndla/util": ["./packages/util/src"], + "@ndla/video-search": ["./packages/ndla-video-search/src"] } }, "include": ["./packages/**/*", "./stories/**/*", "./dummydata/**/*", ".storybook/**/*"], diff --git a/yarn.lock b/yarn.lock index f6ec7250c9..10e7449aa2 100644 --- a/yarn.lock +++ b/yarn.lock @@ -12,10 +12,10 @@ __metadata: languageName: node linkType: hard -"@adobe/css-tools@npm:^4.3.1": - version: 4.3.2 - resolution: "@adobe/css-tools@npm:4.3.2" - checksum: 10c0/296a03dd29f227c60500d2da8c7f64991fecf1d8b456ce2b4adb8cec7363d9c08b5b03f1463673fc8cbfe54b538745588e7a13c736d2dd14a80c01a20f127f39 +"@adobe/css-tools@npm:^4.4.0": + version: 4.4.1 + resolution: "@adobe/css-tools@npm:4.4.1" + checksum: 10c0/1a68ad9af490f45fce7b6e50dd2d8ac0c546d74431649c0d42ee4ceb1a9fa057fae0a7ef1e148effa12d84ec00ed71869ebfe0fb1dcdcc80bfcb6048c12abcc0 languageName: node linkType: hard @@ -107,7 +107,7 @@ __metadata: languageName: node linkType: hard -"@babel/core@npm:^7.11.6, @babel/core@npm:^7.12.3, @babel/core@npm:^7.18.9, @babel/core@npm:^7.21.3, @babel/core@npm:^7.25.2, @babel/core@npm:^7.26.0": +"@babel/core@npm:^7.11.6, @babel/core@npm:^7.12.3, @babel/core@npm:^7.18.9, @babel/core@npm:^7.21.3, @babel/core@npm:^7.26.0": version: 7.26.0 resolution: "@babel/core@npm:7.26.0" dependencies: @@ -130,20 +130,6 @@ __metadata: languageName: node linkType: hard -"@babel/eslint-parser@npm:^7.23.10": - version: 7.23.10 - resolution: "@babel/eslint-parser@npm:7.23.10" - dependencies: - "@nicolo-ribaudo/eslint-scope-5-internals": "npm:5.1.1-v1" - eslint-visitor-keys: "npm:^2.1.0" - semver: "npm:^6.3.1" - peerDependencies: - "@babel/core": ^7.11.0 - eslint: ^7.5.0 || ^8.0.0 - checksum: 10c0/dfc091d44c86c72658d53abe66c778f7aa436672d66ae99a0b72857c968defed4749c18d2d3a35b1f61c77a193761ae7a71997dbe43c4c7cffcf945bd106bd67 - languageName: node - linkType: hard - "@babel/generator@npm:^7.25.9, @babel/generator@npm:^7.26.0, @babel/generator@npm:^7.7.2": version: 7.26.2 resolution: "@babel/generator@npm:7.26.2" @@ -244,7 +230,7 @@ __metadata: languageName: node linkType: hard -"@babel/helper-module-imports@npm:^7.16.7, @babel/helper-module-imports@npm:^7.25.9": +"@babel/helper-module-imports@npm:^7.25.9": version: 7.25.9 resolution: "@babel/helper-module-imports@npm:7.25.9" dependencies: @@ -1111,7 +1097,7 @@ __metadata: languageName: node linkType: hard -"@babel/plugin-transform-react-jsx-self@npm:^7.24.7": +"@babel/plugin-transform-react-jsx-self@npm:^7.25.9": version: 7.25.9 resolution: "@babel/plugin-transform-react-jsx-self@npm:7.25.9" dependencies: @@ -1122,7 +1108,7 @@ __metadata: languageName: node linkType: hard -"@babel/plugin-transform-react-jsx-source@npm:^7.24.7": +"@babel/plugin-transform-react-jsx-source@npm:^7.25.9": version: 7.25.9 resolution: "@babel/plugin-transform-react-jsx-source@npm:7.25.9" dependencies: @@ -1436,12 +1422,12 @@ __metadata: languageName: node linkType: hard -"@babel/runtime@npm:^7.12.5, @babel/runtime@npm:^7.13.10, @babel/runtime@npm:^7.17.8, @babel/runtime@npm:^7.18.3, @babel/runtime@npm:^7.19.4, @babel/runtime@npm:^7.23.2, @babel/runtime@npm:^7.23.9, @babel/runtime@npm:^7.7.6, @babel/runtime@npm:^7.8.4, @babel/runtime@npm:^7.9.2": - version: 7.24.5 - resolution: "@babel/runtime@npm:7.24.5" +"@babel/runtime@npm:^7.12.5, @babel/runtime@npm:^7.17.8, @babel/runtime@npm:^7.19.4, @babel/runtime@npm:^7.23.2, @babel/runtime@npm:^7.23.9, @babel/runtime@npm:^7.7.6, @babel/runtime@npm:^7.8.4": + version: 7.26.0 + resolution: "@babel/runtime@npm:7.26.0" dependencies: regenerator-runtime: "npm:^0.14.0" - checksum: 10c0/05730e43e8ba6550eae9fd4fb5e7d9d3cb91140379425abcb2a1ff9cebad518a280d82c4c4b0f57ada26a863106ac54a748d90c775790c0e2cd0ddd85ccdf346 + checksum: 10c0/12c01357e0345f89f4f7e8c0e81921f2a3e3e101f06e8eaa18a382b517376520cd2fa8c237726eb094dab25532855df28a7baaf1c26342b52782f6936b07c287 languageName: node linkType: hard @@ -1577,180 +1563,31 @@ __metadata: languageName: node linkType: hard -"@emotion/babel-plugin@npm:^11.12.0": - version: 11.12.0 - resolution: "@emotion/babel-plugin@npm:11.12.0" - dependencies: - "@babel/helper-module-imports": "npm:^7.16.7" - "@babel/runtime": "npm:^7.18.3" - "@emotion/hash": "npm:^0.9.2" - "@emotion/memoize": "npm:^0.9.0" - "@emotion/serialize": "npm:^1.2.0" - babel-plugin-macros: "npm:^3.1.0" - convert-source-map: "npm:^1.5.0" - escape-string-regexp: "npm:^4.0.0" - find-root: "npm:^1.1.0" - source-map: "npm:^0.5.7" - stylis: "npm:4.2.0" - checksum: 10c0/930ff6f8768b0c24d05896ad696be20e1c65f32ed61fb5c1488f571120a947ef0a2cf69187b17114cc76e7886f771fac150876ed7b5341324fec2377185d6573 - languageName: node - linkType: hard - -"@emotion/cache@npm:^11.13.0": - version: 11.13.1 - resolution: "@emotion/cache@npm:11.13.1" - dependencies: - "@emotion/memoize": "npm:^0.9.0" - "@emotion/sheet": "npm:^1.4.0" - "@emotion/utils": "npm:^1.4.0" - "@emotion/weak-memoize": "npm:^0.4.0" - stylis: "npm:4.2.0" - checksum: 10c0/321e97d8980885737de13b47e41fd4febfbd83086f10c620f865fcbddb29b8fe198adec7e1c69cc7b137638ea9242d7c475c57f954f7ca229157fa92e368f473 - languageName: node - linkType: hard - -"@emotion/css-prettifier@npm:^1.1.4": - version: 1.1.4 - resolution: "@emotion/css-prettifier@npm:1.1.4" - dependencies: - "@emotion/memoize": "npm:^0.9.0" - stylis: "npm:4.2.0" - checksum: 10c0/6e77721314bb3ac2e418d463f4e6ce51947680aa992522aaad1d513590819a18750659e6e1a7e6943f907b689027257679300af9dbe1a151df542297bd11eafc - languageName: node - linkType: hard - -"@emotion/hash@npm:^0.9.2": - version: 0.9.2 - resolution: "@emotion/hash@npm:0.9.2" - checksum: 10c0/0dc254561a3cc0a06a10bbce7f6a997883fd240c8c1928b93713f803a2e9153a257a488537012efe89dbe1246f2abfe2add62cdb3471a13d67137fcb808e81c2 - languageName: node - linkType: hard - -"@emotion/is-prop-valid@npm:^1.3.0": +"@emnapi/core@npm:^1.1.0": version: 1.3.1 - resolution: "@emotion/is-prop-valid@npm:1.3.1" - dependencies: - "@emotion/memoize": "npm:^0.9.0" - checksum: 10c0/123215540c816ff510737ec68dcc499c53ea4deb0bb6c2c27c03ed21046e2e69f6ad07a7a174d271c6cfcbcc9ea44e1763e0cf3875c92192f7689216174803cd - languageName: node - linkType: hard - -"@emotion/jest@npm:^11.13.0": - version: 11.13.0 - resolution: "@emotion/jest@npm:11.13.0" - dependencies: - "@babel/runtime": "npm:^7.18.3" - "@emotion/css-prettifier": "npm:^1.1.4" - chalk: "npm:^4.1.0" - specificity: "npm:^0.4.1" - stylis: "npm:4.2.0" - peerDependencies: - "@types/jest": ^26.0.14 || ^27.0.0 || ^28.0.0 || ^29.0.0 - enzyme-to-json: ^3.2.1 - peerDependenciesMeta: - "@types/jest": - optional: true - enzyme-to-json: - optional: true - checksum: 10c0/cd91ad01001e9fff443d33fe9321de91d7b415da466707ee7786d5e5a785d48f6d2917d6deeef8f1f796617d805a2a705d053b6b7bbf67ef7ccf691384f0517c - languageName: node - linkType: hard - -"@emotion/memoize@npm:^0.9.0": - version: 0.9.0 - resolution: "@emotion/memoize@npm:0.9.0" - checksum: 10c0/13f474a9201c7f88b543e6ea42f55c04fb2fdc05e6c5a3108aced2f7e7aa7eda7794c56bba02985a46d8aaa914fcdde238727a98341a96e2aec750d372dadd15 - languageName: node - linkType: hard - -"@emotion/react@npm:^11.13.3": - version: 11.13.3 - resolution: "@emotion/react@npm:11.13.3" + resolution: "@emnapi/core@npm:1.3.1" dependencies: - "@babel/runtime": "npm:^7.18.3" - "@emotion/babel-plugin": "npm:^11.12.0" - "@emotion/cache": "npm:^11.13.0" - "@emotion/serialize": "npm:^1.3.1" - "@emotion/use-insertion-effect-with-fallbacks": "npm:^1.1.0" - "@emotion/utils": "npm:^1.4.0" - "@emotion/weak-memoize": "npm:^0.4.0" - hoist-non-react-statics: "npm:^3.3.1" - peerDependencies: - react: ">=16.8.0" - peerDependenciesMeta: - "@types/react": - optional: true - checksum: 10c0/a55e770b9ea35de5d35db05a7ad40a4a3f442809fa8e4fabaf56da63ac9444f09aaf691c4e75a1455dc388991ab0c0ab4e253ce67c5836f27513e45ebd01b673 + "@emnapi/wasi-threads": "npm:1.0.1" + tslib: "npm:^2.4.0" + checksum: 10c0/d3be1044ad704e2c486641bc18908523490f28c7d38bd12d9c1d4ce37d39dae6c4aecd2f2eaf44c6e3bd90eaf04e0591acc440b1b038cdf43cce078a355a0ea0 languageName: node linkType: hard -"@emotion/serialize@npm:^1.2.0, @emotion/serialize@npm:^1.3.0, @emotion/serialize@npm:^1.3.1": - version: 1.3.2 - resolution: "@emotion/serialize@npm:1.3.2" +"@emnapi/runtime@npm:^1.1.0": + version: 1.3.1 + resolution: "@emnapi/runtime@npm:1.3.1" dependencies: - "@emotion/hash": "npm:^0.9.2" - "@emotion/memoize": "npm:^0.9.0" - "@emotion/unitless": "npm:^0.10.0" - "@emotion/utils": "npm:^1.4.1" - csstype: "npm:^3.0.2" - checksum: 10c0/b4873b643721d28b4450f9d77b71e6c8d0109e6825c54fc79e649d2fa438fe4080d2fa696ec8fda421b8e713fcd42306d6197b6121ddd2486ffab8e4b6311ce0 - languageName: node - linkType: hard - -"@emotion/sheet@npm:^1.4.0": - version: 1.4.0 - resolution: "@emotion/sheet@npm:1.4.0" - checksum: 10c0/3ca72d1650a07d2fbb7e382761b130b4a887dcd04e6574b2d51ce578791240150d7072a9bcb4161933abbcd1e38b243a6fb4464a7fe991d700c17aa66bb5acc7 + tslib: "npm:^2.4.0" + checksum: 10c0/060ffede50f1b619c15083312b80a9e62a5b0c87aa8c1b54854c49766c9d69f8d1d3d87bd963a647071263a320db41b25eaa50b74d6a80dcc763c23dbeaafd6c languageName: node linkType: hard -"@emotion/styled@npm:^11.13.0": - version: 11.13.0 - resolution: "@emotion/styled@npm:11.13.0" +"@emnapi/wasi-threads@npm:1.0.1": + version: 1.0.1 + resolution: "@emnapi/wasi-threads@npm:1.0.1" dependencies: - "@babel/runtime": "npm:^7.18.3" - "@emotion/babel-plugin": "npm:^11.12.0" - "@emotion/is-prop-valid": "npm:^1.3.0" - "@emotion/serialize": "npm:^1.3.0" - "@emotion/use-insertion-effect-with-fallbacks": "npm:^1.1.0" - "@emotion/utils": "npm:^1.4.0" - peerDependencies: - "@emotion/react": ^11.0.0-rc.0 - react: ">=16.8.0" - peerDependenciesMeta: - "@types/react": - optional: true - checksum: 10c0/5e2cc85c8a2f6e7bd012731cf0b6da3aef5906225e87e8d4a5c19da50572e24d9aaf92615aa36aa863f0fe6b62a121033356e1cad62617c48bfdaa2c3cf0d8a4 - languageName: node - linkType: hard - -"@emotion/unitless@npm:^0.10.0": - version: 0.10.0 - resolution: "@emotion/unitless@npm:0.10.0" - checksum: 10c0/150943192727b7650eb9a6851a98034ddb58a8b6958b37546080f794696141c3760966ac695ab9af97efe10178690987aee4791f9f0ad1ff76783cdca83c1d49 - languageName: node - linkType: hard - -"@emotion/use-insertion-effect-with-fallbacks@npm:^1.1.0": - version: 1.1.0 - resolution: "@emotion/use-insertion-effect-with-fallbacks@npm:1.1.0" - peerDependencies: - react: ">=16.8.0" - checksum: 10c0/a883480f3a7139fb4a43e71d3114ca57e2b7ae5ff204e05cd9e59251a113773b8f64eb75d3997726250aca85eb73447638c8f51930734bdd16b96762b65e58c3 - languageName: node - linkType: hard - -"@emotion/utils@npm:^1.4.0, @emotion/utils@npm:^1.4.1": - version: 1.4.1 - resolution: "@emotion/utils@npm:1.4.1" - checksum: 10c0/f4704e0bdf48062fd6eb9c64771c88f521aab1e108a48cb23d65b6438597c63a6945301cef4c43611e79e0e76a304ec5481c31025ea8f573d7ad5423d747602c - languageName: node - linkType: hard - -"@emotion/weak-memoize@npm:^0.4.0": - version: 0.4.0 - resolution: "@emotion/weak-memoize@npm:0.4.0" - checksum: 10c0/64376af11f1266042d03b3305c30b7502e6084868e33327e944b539091a472f089db307af69240f7188f8bc6b319276fd7b141a36613f1160d73d12a60f6ca1a + tslib: "npm:^2.4.0" + checksum: 10c0/1e0c8036b8d53e9b07cc9acf021705ef6c86ab6b13e1acda7fffaf541a2d3565072afb92597419173ced9ea14f6bf32fce149106e669b5902b825e8b499e5c6c languageName: node linkType: hard @@ -1761,13 +1598,6 @@ __metadata: languageName: node linkType: hard -"@esbuild/aix-ppc64@npm:0.21.5": - version: 0.21.5 - resolution: "@esbuild/aix-ppc64@npm:0.21.5" - conditions: os=aix & cpu=ppc64 - languageName: node - linkType: hard - "@esbuild/aix-ppc64@npm:0.24.0": version: 0.24.0 resolution: "@esbuild/aix-ppc64@npm:0.24.0" @@ -1782,13 +1612,6 @@ __metadata: languageName: node linkType: hard -"@esbuild/android-arm64@npm:0.21.5": - version: 0.21.5 - resolution: "@esbuild/android-arm64@npm:0.21.5" - conditions: os=android & cpu=arm64 - languageName: node - linkType: hard - "@esbuild/android-arm64@npm:0.24.0": version: 0.24.0 resolution: "@esbuild/android-arm64@npm:0.24.0" @@ -1803,13 +1626,6 @@ __metadata: languageName: node linkType: hard -"@esbuild/android-arm@npm:0.21.5": - version: 0.21.5 - resolution: "@esbuild/android-arm@npm:0.21.5" - conditions: os=android & cpu=arm - languageName: node - linkType: hard - "@esbuild/android-arm@npm:0.24.0": version: 0.24.0 resolution: "@esbuild/android-arm@npm:0.24.0" @@ -1824,13 +1640,6 @@ __metadata: languageName: node linkType: hard -"@esbuild/android-x64@npm:0.21.5": - version: 0.21.5 - resolution: "@esbuild/android-x64@npm:0.21.5" - conditions: os=android & cpu=x64 - languageName: node - linkType: hard - "@esbuild/android-x64@npm:0.24.0": version: 0.24.0 resolution: "@esbuild/android-x64@npm:0.24.0" @@ -1845,13 +1654,6 @@ __metadata: languageName: node linkType: hard -"@esbuild/darwin-arm64@npm:0.21.5": - version: 0.21.5 - resolution: "@esbuild/darwin-arm64@npm:0.21.5" - conditions: os=darwin & cpu=arm64 - languageName: node - linkType: hard - "@esbuild/darwin-arm64@npm:0.24.0": version: 0.24.0 resolution: "@esbuild/darwin-arm64@npm:0.24.0" @@ -1866,13 +1668,6 @@ __metadata: languageName: node linkType: hard -"@esbuild/darwin-x64@npm:0.21.5": - version: 0.21.5 - resolution: "@esbuild/darwin-x64@npm:0.21.5" - conditions: os=darwin & cpu=x64 - languageName: node - linkType: hard - "@esbuild/darwin-x64@npm:0.24.0": version: 0.24.0 resolution: "@esbuild/darwin-x64@npm:0.24.0" @@ -1887,13 +1682,6 @@ __metadata: languageName: node linkType: hard -"@esbuild/freebsd-arm64@npm:0.21.5": - version: 0.21.5 - resolution: "@esbuild/freebsd-arm64@npm:0.21.5" - conditions: os=freebsd & cpu=arm64 - languageName: node - linkType: hard - "@esbuild/freebsd-arm64@npm:0.24.0": version: 0.24.0 resolution: "@esbuild/freebsd-arm64@npm:0.24.0" @@ -1908,13 +1696,6 @@ __metadata: languageName: node linkType: hard -"@esbuild/freebsd-x64@npm:0.21.5": - version: 0.21.5 - resolution: "@esbuild/freebsd-x64@npm:0.21.5" - conditions: os=freebsd & cpu=x64 - languageName: node - linkType: hard - "@esbuild/freebsd-x64@npm:0.24.0": version: 0.24.0 resolution: "@esbuild/freebsd-x64@npm:0.24.0" @@ -1929,13 +1710,6 @@ __metadata: languageName: node linkType: hard -"@esbuild/linux-arm64@npm:0.21.5": - version: 0.21.5 - resolution: "@esbuild/linux-arm64@npm:0.21.5" - conditions: os=linux & cpu=arm64 - languageName: node - linkType: hard - "@esbuild/linux-arm64@npm:0.24.0": version: 0.24.0 resolution: "@esbuild/linux-arm64@npm:0.24.0" @@ -1950,13 +1724,6 @@ __metadata: languageName: node linkType: hard -"@esbuild/linux-arm@npm:0.21.5": - version: 0.21.5 - resolution: "@esbuild/linux-arm@npm:0.21.5" - conditions: os=linux & cpu=arm - languageName: node - linkType: hard - "@esbuild/linux-arm@npm:0.24.0": version: 0.24.0 resolution: "@esbuild/linux-arm@npm:0.24.0" @@ -1971,13 +1738,6 @@ __metadata: languageName: node linkType: hard -"@esbuild/linux-ia32@npm:0.21.5": - version: 0.21.5 - resolution: "@esbuild/linux-ia32@npm:0.21.5" - conditions: os=linux & cpu=ia32 - languageName: node - linkType: hard - "@esbuild/linux-ia32@npm:0.24.0": version: 0.24.0 resolution: "@esbuild/linux-ia32@npm:0.24.0" @@ -1992,13 +1752,6 @@ __metadata: languageName: node linkType: hard -"@esbuild/linux-loong64@npm:0.21.5": - version: 0.21.5 - resolution: "@esbuild/linux-loong64@npm:0.21.5" - conditions: os=linux & cpu=loong64 - languageName: node - linkType: hard - "@esbuild/linux-loong64@npm:0.24.0": version: 0.24.0 resolution: "@esbuild/linux-loong64@npm:0.24.0" @@ -2013,13 +1766,6 @@ __metadata: languageName: node linkType: hard -"@esbuild/linux-mips64el@npm:0.21.5": - version: 0.21.5 - resolution: "@esbuild/linux-mips64el@npm:0.21.5" - conditions: os=linux & cpu=mips64el - languageName: node - linkType: hard - "@esbuild/linux-mips64el@npm:0.24.0": version: 0.24.0 resolution: "@esbuild/linux-mips64el@npm:0.24.0" @@ -2034,13 +1780,6 @@ __metadata: languageName: node linkType: hard -"@esbuild/linux-ppc64@npm:0.21.5": - version: 0.21.5 - resolution: "@esbuild/linux-ppc64@npm:0.21.5" - conditions: os=linux & cpu=ppc64 - languageName: node - linkType: hard - "@esbuild/linux-ppc64@npm:0.24.0": version: 0.24.0 resolution: "@esbuild/linux-ppc64@npm:0.24.0" @@ -2055,13 +1794,6 @@ __metadata: languageName: node linkType: hard -"@esbuild/linux-riscv64@npm:0.21.5": - version: 0.21.5 - resolution: "@esbuild/linux-riscv64@npm:0.21.5" - conditions: os=linux & cpu=riscv64 - languageName: node - linkType: hard - "@esbuild/linux-riscv64@npm:0.24.0": version: 0.24.0 resolution: "@esbuild/linux-riscv64@npm:0.24.0" @@ -2076,13 +1808,6 @@ __metadata: languageName: node linkType: hard -"@esbuild/linux-s390x@npm:0.21.5": - version: 0.21.5 - resolution: "@esbuild/linux-s390x@npm:0.21.5" - conditions: os=linux & cpu=s390x - languageName: node - linkType: hard - "@esbuild/linux-s390x@npm:0.24.0": version: 0.24.0 resolution: "@esbuild/linux-s390x@npm:0.24.0" @@ -2097,13 +1822,6 @@ __metadata: languageName: node linkType: hard -"@esbuild/linux-x64@npm:0.21.5": - version: 0.21.5 - resolution: "@esbuild/linux-x64@npm:0.21.5" - conditions: os=linux & cpu=x64 - languageName: node - linkType: hard - "@esbuild/linux-x64@npm:0.24.0": version: 0.24.0 resolution: "@esbuild/linux-x64@npm:0.24.0" @@ -2118,13 +1836,6 @@ __metadata: languageName: node linkType: hard -"@esbuild/netbsd-x64@npm:0.21.5": - version: 0.21.5 - resolution: "@esbuild/netbsd-x64@npm:0.21.5" - conditions: os=netbsd & cpu=x64 - languageName: node - linkType: hard - "@esbuild/netbsd-x64@npm:0.24.0": version: 0.24.0 resolution: "@esbuild/netbsd-x64@npm:0.24.0" @@ -2146,13 +1857,6 @@ __metadata: languageName: node linkType: hard -"@esbuild/openbsd-x64@npm:0.21.5": - version: 0.21.5 - resolution: "@esbuild/openbsd-x64@npm:0.21.5" - conditions: os=openbsd & cpu=x64 - languageName: node - linkType: hard - "@esbuild/openbsd-x64@npm:0.24.0": version: 0.24.0 resolution: "@esbuild/openbsd-x64@npm:0.24.0" @@ -2167,13 +1871,6 @@ __metadata: languageName: node linkType: hard -"@esbuild/sunos-x64@npm:0.21.5": - version: 0.21.5 - resolution: "@esbuild/sunos-x64@npm:0.21.5" - conditions: os=sunos & cpu=x64 - languageName: node - linkType: hard - "@esbuild/sunos-x64@npm:0.24.0": version: 0.24.0 resolution: "@esbuild/sunos-x64@npm:0.24.0" @@ -2188,13 +1885,6 @@ __metadata: languageName: node linkType: hard -"@esbuild/win32-arm64@npm:0.21.5": - version: 0.21.5 - resolution: "@esbuild/win32-arm64@npm:0.21.5" - conditions: os=win32 & cpu=arm64 - languageName: node - linkType: hard - "@esbuild/win32-arm64@npm:0.24.0": version: 0.24.0 resolution: "@esbuild/win32-arm64@npm:0.24.0" @@ -2209,13 +1899,6 @@ __metadata: languageName: node linkType: hard -"@esbuild/win32-ia32@npm:0.21.5": - version: 0.21.5 - resolution: "@esbuild/win32-ia32@npm:0.21.5" - conditions: os=win32 & cpu=ia32 - languageName: node - linkType: hard - "@esbuild/win32-ia32@npm:0.24.0": version: 0.24.0 resolution: "@esbuild/win32-ia32@npm:0.24.0" @@ -2230,13 +1913,6 @@ __metadata: languageName: node linkType: hard -"@esbuild/win32-x64@npm:0.21.5": - version: 0.21.5 - resolution: "@esbuild/win32-x64@npm:0.21.5" - conditions: os=win32 & cpu=x64 - languageName: node - linkType: hard - "@esbuild/win32-x64@npm:0.24.0": version: 0.24.0 resolution: "@esbuild/win32-x64@npm:0.24.0" @@ -2255,34 +1931,68 @@ __metadata: languageName: node linkType: hard -"@eslint-community/regexpp@npm:^4.5.1, @eslint-community/regexpp@npm:^4.6.1": - version: 4.6.2 - resolution: "@eslint-community/regexpp@npm:4.6.2" - checksum: 10c0/da800788298f8419f4c4e04eaa4e3c97e7f57537e822e7b150de662e420e3d437816b863e490807bd0b00e715b0989f9d8864bf54357cbcfa84e4255b910789d +"@eslint-community/regexpp@npm:^4.10.0, @eslint-community/regexpp@npm:^4.12.1": + version: 4.12.1 + resolution: "@eslint-community/regexpp@npm:4.12.1" + checksum: 10c0/a03d98c246bcb9109aec2c08e4d10c8d010256538dcb3f56610191607214523d4fb1b00aa81df830b6dffb74c5fa0be03642513a289c567949d3e550ca11cdf6 languageName: node linkType: hard -"@eslint/eslintrc@npm:^2.1.4": - version: 2.1.4 - resolution: "@eslint/eslintrc@npm:2.1.4" +"@eslint/config-array@npm:^0.19.0": + version: 0.19.0 + resolution: "@eslint/config-array@npm:0.19.0" + dependencies: + "@eslint/object-schema": "npm:^2.1.4" + debug: "npm:^4.3.1" + minimatch: "npm:^3.1.2" + checksum: 10c0/def23c6c67a8f98dc88f1b87e17a5668e5028f5ab9459661aabfe08e08f2acd557474bbaf9ba227be0921ae4db232c62773dbb7739815f8415678eb8f592dbf5 + languageName: node + linkType: hard + +"@eslint/core@npm:^0.9.0": + version: 0.9.0 + resolution: "@eslint/core@npm:0.9.0" + checksum: 10c0/6d8e8e0991cef12314c49425d8d2d9394f5fb1a36753ff82df7c03185a4646cb7c8736cf26638a4a714782cedf4b23cfc17667d282d3e5965b3920a0e7ce20d4 + languageName: node + linkType: hard + +"@eslint/eslintrc@npm:^3.2.0": + version: 3.2.0 + resolution: "@eslint/eslintrc@npm:3.2.0" dependencies: ajv: "npm:^6.12.4" debug: "npm:^4.3.2" - espree: "npm:^9.6.0" - globals: "npm:^13.19.0" + espree: "npm:^10.0.1" + globals: "npm:^14.0.0" ignore: "npm:^5.2.0" import-fresh: "npm:^3.2.1" js-yaml: "npm:^4.1.0" minimatch: "npm:^3.1.2" strip-json-comments: "npm:^3.1.1" - checksum: 10c0/32f67052b81768ae876c84569ffd562491ec5a5091b0c1e1ca1e0f3c24fb42f804952fdd0a137873bc64303ba368a71ba079a6f691cee25beee9722d94cc8573 + checksum: 10c0/43867a07ff9884d895d9855edba41acf325ef7664a8df41d957135a81a477ff4df4196f5f74dc3382627e5cc8b7ad6b815c2cea1b58f04a75aced7c43414ab8b + languageName: node + linkType: hard + +"@eslint/js@npm:9.15.0": + version: 9.15.0 + resolution: "@eslint/js@npm:9.15.0" + checksum: 10c0/56552966ab1aa95332f70d0e006db5746b511c5f8b5e0c6a9b2d6764ff6d964e0b2622731877cbc4e3f0e74c5b39191290d5f48147be19175292575130d499ab + languageName: node + linkType: hard + +"@eslint/object-schema@npm:^2.1.4": + version: 2.1.4 + resolution: "@eslint/object-schema@npm:2.1.4" + checksum: 10c0/e9885532ea70e483fb007bf1275968b05bb15ebaa506d98560c41a41220d33d342e19023d5f2939fed6eb59676c1bda5c847c284b4b55fce521d282004da4dda languageName: node linkType: hard -"@eslint/js@npm:8.57.0": - version: 8.57.0 - resolution: "@eslint/js@npm:8.57.0" - checksum: 10c0/9a518bb8625ba3350613903a6d8c622352ab0c6557a59fe6ff6178bf882bf57123f9d92aa826ee8ac3ee74b9c6203fe630e9ee00efb03d753962dcf65ee4bd94 +"@eslint/plugin-kit@npm:^0.2.3": + version: 0.2.3 + resolution: "@eslint/plugin-kit@npm:0.2.3" + dependencies: + levn: "npm:^0.4.1" + checksum: 10c0/89a8035976bb1780e3fa8ffe682df013bd25f7d102d991cecd3b7c297f4ce8c1a1b6805e76dd16465b5353455b670b545eff2b4ec3133e0eab81a5f9e99bd90f languageName: node linkType: hard @@ -2302,7 +2012,7 @@ __metadata: languageName: node linkType: hard -"@floating-ui/dom@npm:1.6.11, @floating-ui/dom@npm:^1.2.7": +"@floating-ui/dom@npm:1.6.11": version: 1.6.11 resolution: "@floating-ui/dom@npm:1.6.11" dependencies: @@ -2312,18 +2022,6 @@ __metadata: languageName: node linkType: hard -"@floating-ui/react-dom@npm:^2.0.0": - version: 2.0.0 - resolution: "@floating-ui/react-dom@npm:2.0.0" - dependencies: - "@floating-ui/dom": "npm:^1.2.7" - peerDependencies: - react: ">=16.8.0" - react-dom: ">=16.8.0" - checksum: 10c0/57be5b9547b5d65f7b475923c2844fabf1b0aa0fe4cbdf1e36f673389ac19e5ffa045a186d3cb4364256482d8b408eee8018fb0208793a0bb8d925d8eae9cd7f - languageName: node - linkType: hard - "@floating-ui/utils@npm:^0.2.5, @floating-ui/utils@npm:^0.2.8": version: 0.2.8 resolution: "@floating-ui/utils@npm:0.2.8" @@ -2352,21 +2050,20 @@ __metadata: languageName: node linkType: hard -"@gar/promisify@npm:^1.1.3": - version: 1.1.3 - resolution: "@gar/promisify@npm:1.1.3" - checksum: 10c0/0b3c9958d3cd17f4add3574975e3115ae05dc7f1298a60810414b16f6f558c137b5fb3cd3905df380bacfd955ec13f67c1e6710cbb5c246a7e8d65a8289b2bff +"@humanfs/core@npm:^0.19.1": + version: 0.19.1 + resolution: "@humanfs/core@npm:0.19.1" + checksum: 10c0/aa4e0152171c07879b458d0e8a704b8c3a89a8c0541726c6b65b81e84fd8b7564b5d6c633feadc6598307d34564bd53294b533491424e8e313d7ab6c7bc5dc67 languageName: node linkType: hard -"@humanwhocodes/config-array@npm:^0.11.14": - version: 0.11.14 - resolution: "@humanwhocodes/config-array@npm:0.11.14" +"@humanfs/node@npm:^0.16.6": + version: 0.16.6 + resolution: "@humanfs/node@npm:0.16.6" dependencies: - "@humanwhocodes/object-schema": "npm:^2.0.2" - debug: "npm:^4.3.1" - minimatch: "npm:^3.0.5" - checksum: 10c0/66f725b4ee5fdd8322c737cb5013e19fac72d4d69c8bf4b7feb192fcb83442b035b92186f8e9497c220e58b2d51a080f28a73f7899bc1ab288c3be172c467541 + "@humanfs/core": "npm:^0.19.1" + "@humanwhocodes/retry": "npm:^0.3.0" + checksum: 10c0/8356359c9f60108ec204cbd249ecd0356667359b2524886b357617c4a7c3b6aace0fd5a369f63747b926a762a88f8a25bc066fa1778508d110195ce7686243e1 languageName: node linkType: hard @@ -2377,10 +2074,17 @@ __metadata: languageName: node linkType: hard -"@humanwhocodes/object-schema@npm:^2.0.2": - version: 2.0.2 - resolution: "@humanwhocodes/object-schema@npm:2.0.2" - checksum: 10c0/6fd83dc320231d71c4541d0244051df61f301817e9f9da9fd4cb7e44ec8aacbde5958c1665b0c419401ab935114fdf532a6ad5d4e7294b1af2f347dd91a6983f +"@humanwhocodes/retry@npm:^0.3.0": + version: 0.3.1 + resolution: "@humanwhocodes/retry@npm:0.3.1" + checksum: 10c0/f0da1282dfb45e8120480b9e2e275e2ac9bbe1cf016d046fdad8e27cc1285c45bb9e711681237944445157b430093412b4446c1ab3fc4bb037861b5904101d3b + languageName: node + linkType: hard + +"@humanwhocodes/retry@npm:^0.4.1": + version: 0.4.1 + resolution: "@humanwhocodes/retry@npm:0.4.1" + checksum: 10c0/be7bb6841c4c01d0b767d9bb1ec1c9359ee61421ce8ba66c249d035c5acdfd080f32d55a5c9e859cdd7868788b8935774f65b2caf24ec0b7bd7bf333791f063b languageName: node linkType: hard @@ -2423,6 +2127,13 @@ __metadata: languageName: node linkType: hard +"@isaacs/string-locale-compare@npm:^1.1.0": + version: 1.1.0 + resolution: "@isaacs/string-locale-compare@npm:1.1.0" + checksum: 10c0/d67226ff7ac544a495c77df38187e69e0e3a0783724777f86caadafb306e2155dc3b5787d5927916ddd7fb4a53561ac8f705448ac3235d18ea60da5854829fdf + languageName: node + linkType: hard + "@istanbuljs/load-nyc-config@npm:^1.0.0": version: 1.1.0 resolution: "@istanbuljs/load-nyc-config@npm:1.1.0" @@ -2673,21 +2384,19 @@ __metadata: languageName: node linkType: hard -"@joshwooding/vite-plugin-react-docgen-typescript@npm:0.3.0": - version: 0.3.0 - resolution: "@joshwooding/vite-plugin-react-docgen-typescript@npm:0.3.0" +"@joshwooding/vite-plugin-react-docgen-typescript@npm:0.4.2": + version: 0.4.2 + resolution: "@joshwooding/vite-plugin-react-docgen-typescript@npm:0.4.2" dependencies: - glob: "npm:^7.2.0" - glob-promise: "npm:^4.2.0" magic-string: "npm:^0.27.0" react-docgen-typescript: "npm:^2.2.2" peerDependencies: typescript: ">= 4.3.x" - vite: ^3.0.0 || ^4.0.0 || ^5.0.0 + vite: ^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 peerDependenciesMeta: typescript: optional: true - checksum: 10c0/31098ad8fcc2440437534599c111d9f2951dd74821e8ba46c521b969bae4c918d830b7bb0484efbad29a51711bb62d3bc623d5a1ed5b1695b5b5594ea9dd4ca0 + checksum: 10c0/355d13ad92a9da786b561a25250e6c94a8e51d235ced345e54ebfe709abc45ab60c2a8d06599df6ec0441fba01720f189883429943cb62dff9a4c31b59f0939c languageName: node linkType: hard @@ -2743,36 +2452,83 @@ __metadata: languageName: node linkType: hard -"@lerna/child-process@npm:7.1.4": - version: 7.1.4 - resolution: "@lerna/child-process@npm:7.1.4" - dependencies: - chalk: "npm:^4.1.0" - execa: "npm:^5.0.0" - strong-log-transformer: "npm:^2.1.0" - checksum: 10c0/a3eccf27a54e9f9ef23ec99a50a4dda258225751c8dc57e7e45dd22999b7e742eeadda42a347700a2382f046182b1065ec995dc4cc56ecd2c9d1d96505c16f6b - languageName: node - linkType: hard - -"@lerna/create@npm:7.1.4": - version: 7.1.4 - resolution: "@lerna/create@npm:7.1.4" +"@lerna/create@npm:8.1.9": + version: 8.1.9 + resolution: "@lerna/create@npm:8.1.9" dependencies: - "@lerna/child-process": "npm:7.1.4" - dedent: "npm:0.7.0" - fs-extra: "npm:^11.1.1" - init-package-json: "npm:5.0.0" - npm-package-arg: "npm:8.1.1" + "@npmcli/arborist": "npm:7.5.4" + "@npmcli/package-json": "npm:5.2.0" + "@npmcli/run-script": "npm:8.1.0" + "@nx/devkit": "npm:>=17.1.2 < 21" + "@octokit/plugin-enterprise-rest": "npm:6.0.1" + "@octokit/rest": "npm:19.0.11" + aproba: "npm:2.0.0" + byte-size: "npm:8.1.1" + chalk: "npm:4.1.0" + clone-deep: "npm:4.0.1" + cmd-shim: "npm:6.0.3" + color-support: "npm:1.1.3" + columnify: "npm:1.6.0" + console-control-strings: "npm:^1.1.0" + conventional-changelog-core: "npm:5.0.1" + conventional-recommended-bump: "npm:7.0.1" + cosmiconfig: "npm:9.0.0" + dedent: "npm:1.5.3" + execa: "npm:5.0.0" + fs-extra: "npm:^11.2.0" + get-stream: "npm:6.0.0" + git-url-parse: "npm:14.0.0" + glob-parent: "npm:6.0.2" + globby: "npm:11.1.0" + graceful-fs: "npm:4.2.11" + has-unicode: "npm:2.0.1" + ini: "npm:^1.3.8" + init-package-json: "npm:6.0.3" + inquirer: "npm:^8.2.4" + is-ci: "npm:3.0.1" + is-stream: "npm:2.0.0" + js-yaml: "npm:4.1.0" + libnpmpublish: "npm:9.0.9" + load-json-file: "npm:6.2.0" + lodash: "npm:^4.17.21" + make-dir: "npm:4.0.0" + minimatch: "npm:3.0.5" + multimatch: "npm:5.0.0" + node-fetch: "npm:2.6.7" + npm-package-arg: "npm:11.0.2" + npm-packlist: "npm:8.0.2" + npm-registry-fetch: "npm:^17.1.0" + nx: "npm:>=17.1.2 < 21" + p-map: "npm:4.0.0" + p-map-series: "npm:2.1.0" + p-queue: "npm:6.6.2" p-reduce: "npm:^2.1.0" - pacote: "npm:^15.2.0" + pacote: "npm:^18.0.6" pify: "npm:5.0.0" + read-cmd-shim: "npm:4.0.0" + resolve-from: "npm:5.0.0" + rimraf: "npm:^4.4.1" semver: "npm:^7.3.4" + set-blocking: "npm:^2.0.0" + signal-exit: "npm:3.0.7" slash: "npm:^3.0.0" + ssri: "npm:^10.0.6" + string-width: "npm:^4.2.3" + strip-ansi: "npm:^6.0.1" + strong-log-transformer: "npm:2.1.0" + tar: "npm:6.2.1" + temp-dir: "npm:1.0.0" + upath: "npm:2.0.1" + uuid: "npm:^10.0.0" validate-npm-package-license: "npm:^3.0.4" - validate-npm-package-name: "npm:5.0.0" - yargs-parser: "npm:20.2.4" - checksum: 10c0/1c7dbf999029df91bee6867edc96f736b785067bef4d52227d3366ad18bbb448e467069d0e119909ac7aeb4365a2234ed923940a1592cb0f553cfb0c9e2085d5 - languageName: node + validate-npm-package-name: "npm:5.0.1" + wide-align: "npm:1.1.5" + write-file-atomic: "npm:5.0.1" + write-pkg: "npm:4.0.0" + yargs: "npm:17.7.2" + yargs-parser: "npm:21.1.1" + checksum: 10c0/f050e79c0bd982c6fdf9b7347275a94cc80f7a6599094f1cf114c10d5373c21afac9bd1a5c0b2ca400e6aaf18da883c384dfd6e5c84a186a2c09c912bf9b2238 + languageName: node linkType: hard "@mapbox/node-pre-gyp@npm:^1.0.5": @@ -2806,15 +2562,26 @@ __metadata: languageName: node linkType: hard +"@napi-rs/wasm-runtime@npm:0.2.4": + version: 0.2.4 + resolution: "@napi-rs/wasm-runtime@npm:0.2.4" + dependencies: + "@emnapi/core": "npm:^1.1.0" + "@emnapi/runtime": "npm:^1.1.0" + "@tybys/wasm-util": "npm:^0.9.0" + checksum: 10c0/1040de49b2ef509db207e2517465dbf7fb3474f20e8ec32897672a962ff4f59872385666dac61dc9dbeae3cae5dad265d8dc3865da756adeb07d1634c67b03a1 + languageName: node + linkType: hard + "@ndla/article-converter@workspace:packages/article-converter": version: 0.0.0-use.local resolution: "@ndla/article-converter@workspace:packages/article-converter" dependencies: "@ndla/primitives": "workspace:^" "@ndla/types-backend": "npm:^0.2.86" - "@ndla/types-embed": "npm:^5.0.4-alpha.0" - "@ndla/ui": "npm:^56.0.69-alpha.0" - html-react-parser: "npm:^5.1.8" + "@ndla/types-embed": "npm:^5.0.5-alpha.0" + "@ndla/ui": "npm:^56.0.78-alpha.0" + html-react-parser: "npm:^5.1.19" peerDependencies: i18next: ">= 23.11.5" react: ">= 16.8.0" @@ -2834,30 +2601,14 @@ __metadata: "@ndla/primitives": "workspace:^" "@ndla/styled-system": "workspace:^" "@ndla/types-backend": "npm:^0.2.86" - "@pandacss/dev": "npm:^0.46.0" + "@pandacss/dev": "npm:^0.48.0" peerDependencies: react: ">= 18" react-dom: ">= 18" languageName: unknown linkType: soft -"@ndla/button@workspace:packages/button": - version: 0.0.0-use.local - resolution: "@ndla/button@workspace:packages/button" - dependencies: - "@ndla/core": "npm:^5.0.2" - "@ndla/dropdown-menu": "npm:^1.0.40-alpha.0" - "@ndla/icons": "npm:^8.0.42-alpha.0" - peerDependencies: - "@emotion/react": ^11.10.4 - "@emotion/styled": ^11.10.4 - react: ">= 16.8.0" - react-dom: ">= 16.8.0" - react-i18next: ^14.1.1 - languageName: unknown - linkType: soft - -"@ndla/core@npm:^5.0.2, @ndla/core@workspace:^, @ndla/core@workspace:packages/core": +"@ndla/core@npm:^5.0.3, @ndla/core@workspace:^, @ndla/core@workspace:packages/core": version: 0.0.0-use.local resolution: "@ndla/core@workspace:packages/core" dependencies: @@ -2866,25 +2617,11 @@ __metadata: languageName: unknown linkType: soft -"@ndla/dropdown-menu@npm:^1.0.40-alpha.0, @ndla/dropdown-menu@workspace:packages/dropdown-menu": - version: 0.0.0-use.local - resolution: "@ndla/dropdown-menu@workspace:packages/dropdown-menu" - dependencies: - "@ndla/core": "npm:^5.0.2" - "@radix-ui/react-dropdown-menu": "npm:^2.0.6" - "@radix-ui/react-slot": "npm:^1.0.2" - peerDependencies: - "@emotion/styled": ^11.10.4 - react: ">= 16.8.0" - react-dom: ">= 16.8.0" - languageName: unknown - linkType: soft - "@ndla/error-reporter@workspace:packages/ndla-error-reporter": version: 0.0.0-use.local resolution: "@ndla/error-reporter@workspace:packages/ndla-error-reporter" dependencies: - "@ndla/util": "npm:^5.0.0-alpha.0" + "@ndla/util": "npm:^5.0.3-alpha.0" isomorphic-fetch: "npm:^3.0.0" nock: "npm:^13.3.3" raven-js: "npm:^3.22.3" @@ -2901,13 +2638,13 @@ __metadata: languageName: unknown linkType: soft -"@ndla/icons@npm:^8.0.42-alpha.0, @ndla/icons@workspace:^, @ndla/icons@workspace:packages/ndla-icons": +"@ndla/icons@npm:^8.0.48-alpha.0, @ndla/icons@workspace:^, @ndla/icons@workspace:packages/icons": version: 0.0.0-use.local - resolution: "@ndla/icons@workspace:packages/ndla-icons" + resolution: "@ndla/icons@workspace:packages/icons" dependencies: "@ndla/preset-panda": "workspace:^" "@ndla/styled-system": "workspace:^" - "@pandacss/dev": "npm:^0.46.0" + "@pandacss/dev": "npm:^0.48.0" peerDependencies: react: ">= 18" react-dom: ">= 18" @@ -2924,42 +2661,26 @@ __metadata: "@ndla/primitives": "workspace:^" "@ndla/styled-system": "workspace:^" "@ndla/types-backend": "npm:^0.2.86" - "@pandacss/dev": "npm:^0.46.0" - pretty-bytes: "npm:^5.6.0" + "@ndla/util": "workspace:^" + "@pandacss/dev": "npm:^0.48.0" peerDependencies: react: ">= 18" react-dom: ">= 18" languageName: unknown linkType: soft -"@ndla/licenses@npm:^8.0.3-alpha.0, @ndla/licenses@workspace:^, @ndla/licenses@workspace:packages/ndla-licenses": +"@ndla/licenses@npm:^8.0.5-alpha.0, @ndla/licenses@workspace:^, @ndla/licenses@workspace:packages/ndla-licenses": version: 0.0.0-use.local resolution: "@ndla/licenses@workspace:packages/ndla-licenses" languageName: unknown linkType: soft -"@ndla/modal@workspace:packages/ndla-modal": - version: 0.0.0-use.local - resolution: "@ndla/modal@workspace:packages/ndla-modal" - dependencies: - "@ndla/core": "npm:^5.0.2" - "@ndla/icons": "npm:^8.0.42-alpha.0" - "@radix-ui/react-dialog": "npm:^1.0.5" - peerDependencies: - "@emotion/react": ^11.10.4 - "@emotion/styled": ^11.10.4 - react: ">= 16.8.0" - react-dom: ">= 16.8.0" - react-i18next: ^14.1.1 - languageName: unknown - linkType: soft - "@ndla/preset-panda@workspace:^, @ndla/preset-panda@workspace:packages/preset-panda": version: 0.0.0-use.local resolution: "@ndla/preset-panda@workspace:packages/preset-panda" dependencies: "@ndla/core": "workspace:^" - "@pandacss/dev": "npm:^0.46.0" + "@pandacss/dev": "npm:^0.48.0" languageName: unknown linkType: soft @@ -2970,22 +2691,22 @@ __metadata: "@ark-ui/react": "npm:^4.1.2" "@ndla/preset-panda": "workspace:^" "@ndla/styled-system": "workspace:^" - "@ndla/util": "npm:^5.0.0-alpha.0" - "@pandacss/dev": "npm:^0.46.0" + "@ndla/util": "npm:^5.0.3-alpha.0" + "@pandacss/dev": "npm:^0.48.0" peerDependencies: react: ">= 18" react-dom: ">= 18" languageName: unknown linkType: soft -"@ndla/safelink@npm:^7.0.54-alpha.0, @ndla/safelink@workspace:packages/safelink": +"@ndla/safelink@npm:^7.0.63-alpha.0, @ndla/safelink@workspace:packages/safelink": version: 0.0.0-use.local resolution: "@ndla/safelink@workspace:packages/safelink" dependencies: "@ndla/preset-panda": "workspace:^" "@ndla/primitives": "workspace:^" "@ndla/styled-system": "workspace:^" - "@pandacss/dev": "npm:^0.46.0" + "@pandacss/dev": "npm:^0.48.0" peerDependencies: react: ">= 18" react-dom: ">= 18" @@ -3011,7 +2732,7 @@ __metadata: version: 0.0.0-use.local resolution: "@ndla/styled-system@workspace:packages/styled-system" dependencies: - "@pandacss/dev": "npm:^0.46.0" + "@pandacss/dev": "npm:^0.48.0" peerDependencies: react: ">= 18" react-dom: ">= 18" @@ -3022,11 +2743,10 @@ __metadata: version: 0.0.0-use.local resolution: "@ndla/tracker@workspace:packages/ndla-tracker" dependencies: - "@ndla/util": "npm:^5.0.0-alpha.0" + "@ndla/util": "npm:^5.0.3-alpha.0" tiny-warning: "npm:^1.0.3" peerDependencies: - react: ">= 16.8.0" - react-helmet-async: ^1.3.0 + react: ">= 19.0.0" react-router-dom: ">= 5.0.0" languageName: unknown linkType: soft @@ -3038,7 +2758,7 @@ __metadata: languageName: node linkType: hard -"@ndla/types-embed@npm:^5.0.4-alpha.0, @ndla/types-embed@workspace:packages/types-embed": +"@ndla/types-embed@npm:^5.0.5-alpha.0, @ndla/types-embed@workspace:packages/types-embed": version: 0.0.0-use.local resolution: "@ndla/types-embed@workspace:packages/types-embed" dependencies: @@ -3054,22 +2774,22 @@ __metadata: languageName: node linkType: hard -"@ndla/ui@npm:^56.0.69-alpha.0, @ndla/ui@workspace:packages/ndla-ui": +"@ndla/ui@npm:^56.0.78-alpha.0, @ndla/ui@workspace:packages/ndla-ui": version: 0.0.0-use.local resolution: "@ndla/ui@workspace:packages/ndla-ui" dependencies: - "@ndla/core": "npm:^5.0.2" - "@ndla/icons": "npm:^8.0.42-alpha.0" - "@ndla/licenses": "npm:^8.0.3-alpha.0" + "@ndla/core": "npm:^5.0.3" + "@ndla/icons": "npm:^8.0.48-alpha.0" + "@ndla/licenses": "npm:^8.0.5-alpha.0" "@ndla/preset-panda": "workspace:^" "@ndla/primitives": "workspace:^" - "@ndla/safelink": "npm:^7.0.54-alpha.0" + "@ndla/safelink": "npm:^7.0.63-alpha.0" "@ndla/styled-system": "workspace:^" "@ndla/types-backend": "npm:^0.2.86" - "@ndla/types-embed": "npm:^5.0.4-alpha.0" - "@ndla/util": "npm:^5.0.0-alpha.0" - "@pandacss/dev": "npm:^0.46.0" - html-react-parser: "npm:^5.1.8" + "@ndla/types-embed": "npm:^5.0.5-alpha.0" + "@ndla/util": "npm:^5.0.3-alpha.0" + "@pandacss/dev": "npm:^0.48.0" + html-react-parser: "npm:^5.1.19" i18next-browser-languagedetector: "npm:^7.1.0" peerDependencies: i18next: ^23.11.5 @@ -3080,7 +2800,7 @@ __metadata: languageName: unknown linkType: soft -"@ndla/util@npm:^5.0.0-alpha.0, @ndla/util@workspace:packages/util": +"@ndla/util@npm:^5.0.3-alpha.0, @ndla/util@workspace:^, @ndla/util@workspace:packages/util": version: 0.0.0-use.local resolution: "@ndla/util@workspace:packages/util" peerDependencies: @@ -3097,23 +2817,14 @@ __metadata: "@ndla/preset-panda": "workspace:^" "@ndla/primitives": "workspace:^" "@ndla/styled-system": "workspace:^" - "@ndla/types-embed": "npm:^5.0.4-alpha.0" - "@pandacss/dev": "npm:^0.46.0" + "@ndla/types-embed": "npm:^5.0.5-alpha.0" + "@pandacss/dev": "npm:^0.48.0" peerDependencies: react: ">= 18" react-dom: ">= 18" languageName: unknown linkType: soft -"@nicolo-ribaudo/eslint-scope-5-internals@npm:5.1.1-v1": - version: 5.1.1-v1 - resolution: "@nicolo-ribaudo/eslint-scope-5-internals@npm:5.1.1-v1" - dependencies: - eslint-scope: "npm:5.1.1" - checksum: 10c0/75dda3e623b8ad7369ca22552d6beee337a814b2d0e8a32d23edd13fcb65c8082b32c5d86e436f3860dd7ade30d91d5db55d4ef9a08fb5a976c718ecc0d88a74 - languageName: node - linkType: hard - "@nodelib/fs.scandir@npm:2.1.5": version: 2.1.5 resolution: "@nodelib/fs.scandir@npm:2.1.5" @@ -3131,7 +2842,7 @@ __metadata: languageName: node linkType: hard -"@nodelib/fs.walk@npm:^1.2.3, @nodelib/fs.walk@npm:^1.2.8": +"@nodelib/fs.walk@npm:^1.2.3": version: 1.2.8 resolution: "@nodelib/fs.walk@npm:1.2.8" dependencies: @@ -3154,60 +2865,118 @@ __metadata: languageName: node linkType: hard -"@npmcli/fs@npm:^2.1.0": - version: 2.1.2 - resolution: "@npmcli/fs@npm:2.1.2" +"@npmcli/arborist@npm:7.5.4": + version: 7.5.4 + resolution: "@npmcli/arborist@npm:7.5.4" dependencies: - "@gar/promisify": "npm:^1.1.3" - semver: "npm:^7.3.5" - checksum: 10c0/c50d087733d0d8df23be24f700f104b19922a28677aa66fdbe06ff6af6431cc4a5bb1e27683cbc661a5dafa9bafdc603e6a0378121506dfcd394b2b6dd76a187 + "@isaacs/string-locale-compare": "npm:^1.1.0" + "@npmcli/fs": "npm:^3.1.1" + "@npmcli/installed-package-contents": "npm:^2.1.0" + "@npmcli/map-workspaces": "npm:^3.0.2" + "@npmcli/metavuln-calculator": "npm:^7.1.1" + "@npmcli/name-from-folder": "npm:^2.0.0" + "@npmcli/node-gyp": "npm:^3.0.0" + "@npmcli/package-json": "npm:^5.1.0" + "@npmcli/query": "npm:^3.1.0" + "@npmcli/redact": "npm:^2.0.0" + "@npmcli/run-script": "npm:^8.1.0" + bin-links: "npm:^4.0.4" + cacache: "npm:^18.0.3" + common-ancestor-path: "npm:^1.0.1" + hosted-git-info: "npm:^7.0.2" + json-parse-even-better-errors: "npm:^3.0.2" + json-stringify-nice: "npm:^1.1.4" + lru-cache: "npm:^10.2.2" + minimatch: "npm:^9.0.4" + nopt: "npm:^7.2.1" + npm-install-checks: "npm:^6.2.0" + npm-package-arg: "npm:^11.0.2" + npm-pick-manifest: "npm:^9.0.1" + npm-registry-fetch: "npm:^17.0.1" + pacote: "npm:^18.0.6" + parse-conflict-json: "npm:^3.0.0" + proc-log: "npm:^4.2.0" + proggy: "npm:^2.0.0" + promise-all-reject-late: "npm:^1.0.0" + promise-call-limit: "npm:^3.0.1" + read-package-json-fast: "npm:^3.0.2" + semver: "npm:^7.3.7" + ssri: "npm:^10.0.6" + treeverse: "npm:^3.0.0" + walk-up-path: "npm:^3.0.1" + bin: + arborist: bin/index.js + checksum: 10c0/22417b804872e68b6486187bb769eabef7245c5d3fa055d5473f84a7088580543235f34af3047a0e9b357e70fccd768e8ef5c6c8664ed6909f659d07607ad955 languageName: node linkType: hard -"@npmcli/fs@npm:^3.1.0": - version: 3.1.0 - resolution: "@npmcli/fs@npm:3.1.0" +"@npmcli/fs@npm:^3.1.0, @npmcli/fs@npm:^3.1.1": + version: 3.1.1 + resolution: "@npmcli/fs@npm:3.1.1" dependencies: semver: "npm:^7.3.5" - checksum: 10c0/162b4a0b8705cd6f5c2470b851d1dc6cd228c86d2170e1769d738c1fbb69a87160901411c3c035331e9e99db72f1f1099a8b734bf1637cc32b9a5be1660e4e1e + checksum: 10c0/c37a5b4842bfdece3d14dfdb054f73fe15ed2d3da61b34ff76629fb5b1731647c49166fd2a8bf8b56fcfa51200382385ea8909a3cbecdad612310c114d3f6c99 languageName: node linkType: hard -"@npmcli/git@npm:^4.0.0": - version: 4.1.0 - resolution: "@npmcli/git@npm:4.1.0" +"@npmcli/git@npm:^5.0.0": + version: 5.0.8 + resolution: "@npmcli/git@npm:5.0.8" dependencies: - "@npmcli/promise-spawn": "npm:^6.0.0" - lru-cache: "npm:^7.4.4" - npm-pick-manifest: "npm:^8.0.0" - proc-log: "npm:^3.0.0" + "@npmcli/promise-spawn": "npm:^7.0.0" + ini: "npm:^4.1.3" + lru-cache: "npm:^10.0.1" + npm-pick-manifest: "npm:^9.0.0" + proc-log: "npm:^4.0.0" promise-inflight: "npm:^1.0.1" promise-retry: "npm:^2.0.1" semver: "npm:^7.3.5" - which: "npm:^3.0.0" - checksum: 10c0/78591ba8f03de3954a5b5b83533455696635a8f8140c74038685fec4ee28674783a5b34a3d43840b2c5f9aa37fd0dce57eaf4ef136b52a8ec2ee183af2e40724 + which: "npm:^4.0.0" + checksum: 10c0/892441c968404950809c7b515a93b78167ea1db2252f259f390feae22a2c5477f3e1629e105e19a084c05afc56e585bf3f13c2f13b54a06bfd6786f0c8429532 languageName: node linkType: hard -"@npmcli/installed-package-contents@npm:^2.0.1": - version: 2.0.2 - resolution: "@npmcli/installed-package-contents@npm:2.0.2" +"@npmcli/installed-package-contents@npm:^2.0.1, @npmcli/installed-package-contents@npm:^2.1.0": + version: 2.1.0 + resolution: "@npmcli/installed-package-contents@npm:2.1.0" dependencies: npm-bundled: "npm:^3.0.0" npm-normalize-package-bin: "npm:^3.0.0" bin: - installed-package-contents: lib/index.js - checksum: 10c0/03efadb365997e3b54d1d1ea30ef3555729a68939ab2b7b7800a4a2750afb53da222f52be36bd7c44950434c3e26cbe7be28dac093efdf7b1bbe9e025ab62a07 + installed-package-contents: bin/index.js + checksum: 10c0/f5ecba0d45fc762f3e0d5def29fbfabd5d55e8147b01ae0a101769245c2e0038bc82a167836513a98aaed0a15c3d81fcdb232056bb8a962972a432533e518fce languageName: node linkType: hard -"@npmcli/move-file@npm:^2.0.0": - version: 2.0.1 - resolution: "@npmcli/move-file@npm:2.0.1" +"@npmcli/map-workspaces@npm:^3.0.2": + version: 3.0.6 + resolution: "@npmcli/map-workspaces@npm:3.0.6" dependencies: - mkdirp: "npm:^1.0.4" - rimraf: "npm:^3.0.2" - checksum: 10c0/11b2151e6d1de6f6eb23128de5aa8a429fd9097d839a5190cb77aa47a6b627022c42d50fa7c47a00f1c9f8f0c1560092b09b061855d293fa0741a2a94cfb174d + "@npmcli/name-from-folder": "npm:^2.0.0" + glob: "npm:^10.2.2" + minimatch: "npm:^9.0.0" + read-package-json-fast: "npm:^3.0.0" + checksum: 10c0/6bfcf8ca05ab9ddc2bd19c0fd91e9982f03cc6e67b0c03f04ba4d2f29b7d83f96e759c0f8f1f4b6dbe3182272483643a0d1269788352edd0c883d6fbfa2f3f14 + languageName: node + linkType: hard + +"@npmcli/metavuln-calculator@npm:^7.1.1": + version: 7.1.1 + resolution: "@npmcli/metavuln-calculator@npm:7.1.1" + dependencies: + cacache: "npm:^18.0.0" + json-parse-even-better-errors: "npm:^3.0.0" + pacote: "npm:^18.0.0" + proc-log: "npm:^4.1.0" + semver: "npm:^7.3.5" + checksum: 10c0/27402cab124bb1fca56af7549f730c38c0ab40de60cbef6264a4193c26c2d28cefb2adac29ed27f368031795704f9f8fe0c547c4c8cb0c0fa94d72330d56ac80 + languageName: node + linkType: hard + +"@npmcli/name-from-folder@npm:^2.0.0": + version: 2.0.0 + resolution: "@npmcli/name-from-folder@npm:2.0.0" + checksum: 10c0/1aa551771d98ab366d4cb06b33efd3bb62b609942f6d9c3bb667c10e5bb39a223d3e330022bc980a44402133e702ae67603862099ac8254dad11f90e77409827 languageName: node linkType: hard @@ -3218,130 +2987,159 @@ __metadata: languageName: node linkType: hard -"@npmcli/promise-spawn@npm:^6.0.0, @npmcli/promise-spawn@npm:^6.0.1": - version: 6.0.2 - resolution: "@npmcli/promise-spawn@npm:6.0.2" +"@npmcli/package-json@npm:5.2.0": + version: 5.2.0 + resolution: "@npmcli/package-json@npm:5.2.0" dependencies: - which: "npm:^3.0.0" - checksum: 10c0/d0696b8d9f7e16562cd1e520e4919000164be042b5c9998a45b4e87d41d9619fcecf2a343621c6fa85ed2671cbe87ab07e381a7faea4e5132c371dbb05893f31 + "@npmcli/git": "npm:^5.0.0" + glob: "npm:^10.2.2" + hosted-git-info: "npm:^7.0.0" + json-parse-even-better-errors: "npm:^3.0.0" + normalize-package-data: "npm:^6.0.0" + proc-log: "npm:^4.0.0" + semver: "npm:^7.5.3" + checksum: 10c0/bdce8c7eed0dee1d272bf8ba500c4bce6d8ed2b4dd2ce43075d3ba02ffd3bb70c46dbcf8b3a35e19d9492d039b720dc3a4b30d1a2ddc30b7918e1d5232faa1f7 languageName: node linkType: hard -"@npmcli/run-script@npm:6.0.2, @npmcli/run-script@npm:^6.0.0": - version: 6.0.2 - resolution: "@npmcli/run-script@npm:6.0.2" +"@npmcli/package-json@npm:^5.0.0, @npmcli/package-json@npm:^5.1.0": + version: 5.2.1 + resolution: "@npmcli/package-json@npm:5.2.1" dependencies: - "@npmcli/node-gyp": "npm:^3.0.0" - "@npmcli/promise-spawn": "npm:^6.0.0" - node-gyp: "npm:^9.0.0" - read-package-json-fast: "npm:^3.0.0" - which: "npm:^3.0.0" - checksum: 10c0/8c6ab2895eb6a2f24b1cd85dc934edae2d1c02af3acfc383655857f3893ed133d393876add800600d2e1702f8b62133d7cf8da00d81a1c885cc6029ef9e8e691 + "@npmcli/git": "npm:^5.0.0" + glob: "npm:^10.2.2" + hosted-git-info: "npm:^7.0.0" + json-parse-even-better-errors: "npm:^3.0.0" + normalize-package-data: "npm:^6.0.0" + proc-log: "npm:^4.0.0" + semver: "npm:^7.5.3" + checksum: 10c0/b852e31e3121a0afe5fa20bbf4faa701a59dbc9d9dd7141f7fd57b8e919ce22c1285dcdfea490851fe410fa0f7bc9c397cafba0d268aaa53420a12d7c561dde1 languageName: node linkType: hard -"@nrwl/devkit@npm:16.5.3": - version: 16.5.3 - resolution: "@nrwl/devkit@npm:16.5.3" +"@npmcli/promise-spawn@npm:^7.0.0": + version: 7.0.2 + resolution: "@npmcli/promise-spawn@npm:7.0.2" dependencies: - "@nx/devkit": "npm:16.5.3" - checksum: 10c0/760c36de122998b19ccbdc01e0d028592f88c40275b2e83d3939672de01ee60d5afe50e63d4f2ba66e7fc1170801e0a03d802cde7c7230844c679abfc0fb1b04 + which: "npm:^4.0.0" + checksum: 10c0/8f2af5bc2c1b1ccfb9bcd91da8873ab4723616d8bd5af877c0daa40b1e2cbfa4afb79e052611284179cae918c945a1b99ae1c565d78a355bec1a461011e89f71 languageName: node linkType: hard -"@nrwl/tao@npm:16.5.3": - version: 16.5.3 - resolution: "@nrwl/tao@npm:16.5.3" +"@npmcli/query@npm:^3.1.0": + version: 3.1.0 + resolution: "@npmcli/query@npm:3.1.0" dependencies: - nx: "npm:16.5.3" - bin: - tao: index.js - checksum: 10c0/13697e8dd9d92c2cc31c89c12a3c10afa19deac1f147fe202e797f4958279ac27b77efb24419a9be8c5a6ef8c999b19415d002a8dfc55ced9d380e4a4b1b2972 + postcss-selector-parser: "npm:^6.0.10" + checksum: 10c0/9a099677dd188a2d9eb7a49e32c69d315b09faea59e851b7c2013b5bda915a38434efa7295565c40a1098916c06ebfa1840f68d831180e36842f48c24f4c5186 + languageName: node + linkType: hard + +"@npmcli/redact@npm:^2.0.0": + version: 2.0.1 + resolution: "@npmcli/redact@npm:2.0.1" + checksum: 10c0/5f346f7ef224b44c90009939f93c446a865a3d9e5a7ebe0246cdb0ebd03219de3962ee6c6e9197298d8c6127ea33535e8c44814276e4941394dc1cdf1f30f6bc + languageName: node + linkType: hard + +"@npmcli/run-script@npm:8.1.0, @npmcli/run-script@npm:^8.0.0, @npmcli/run-script@npm:^8.1.0": + version: 8.1.0 + resolution: "@npmcli/run-script@npm:8.1.0" + dependencies: + "@npmcli/node-gyp": "npm:^3.0.0" + "@npmcli/package-json": "npm:^5.0.0" + "@npmcli/promise-spawn": "npm:^7.0.0" + node-gyp: "npm:^10.0.0" + proc-log: "npm:^4.0.0" + which: "npm:^4.0.0" + checksum: 10c0/f9f40ecff0406a9ce1b77c9f714fc7c71b561289361efc6e2e0e48ca2d630aa98d277cbbf269750f9467a40eaaac79e78766d67c458046aa9507c8c354650fee languageName: node linkType: hard -"@nx/devkit@npm:16.5.3, @nx/devkit@npm:>=16.5.1 < 17": - version: 16.5.3 - resolution: "@nx/devkit@npm:16.5.3" +"@nx/devkit@npm:>=17.1.2 < 21": + version: 20.1.3 + resolution: "@nx/devkit@npm:20.1.3" dependencies: - "@nrwl/devkit": "npm:16.5.3" ejs: "npm:^3.1.7" + enquirer: "npm:~2.3.6" ignore: "npm:^5.0.4" - semver: "npm:7.5.3" + minimatch: "npm:9.0.3" + semver: "npm:^7.5.3" tmp: "npm:~0.2.1" tslib: "npm:^2.3.0" + yargs-parser: "npm:21.1.1" peerDependencies: - nx: ">= 15 <= 17" - checksum: 10c0/e7659c72b92e6e53db6089ab4c644df28e625512366bb89b8aab1e857fb1ff13c40bc3935bd750f68f429d327b469ee08e20249d248db6ded7df51ac27a5aca8 + nx: ">= 19 <= 21" + checksum: 10c0/bec452fc1444303523d7e4714c2695b715f006670f501d181fca8f8e346dc2cd7583aa9026730a5e022bb9c067e310b8f7a8c86ccd6aa9538802f3816a474c84 languageName: node linkType: hard -"@nx/nx-darwin-arm64@npm:16.5.3": - version: 16.5.3 - resolution: "@nx/nx-darwin-arm64@npm:16.5.3" +"@nx/nx-darwin-arm64@npm:20.1.4": + version: 20.1.4 + resolution: "@nx/nx-darwin-arm64@npm:20.1.4" conditions: os=darwin & cpu=arm64 languageName: node linkType: hard -"@nx/nx-darwin-x64@npm:16.5.3": - version: 16.5.3 - resolution: "@nx/nx-darwin-x64@npm:16.5.3" +"@nx/nx-darwin-x64@npm:20.1.4": + version: 20.1.4 + resolution: "@nx/nx-darwin-x64@npm:20.1.4" conditions: os=darwin & cpu=x64 languageName: node linkType: hard -"@nx/nx-freebsd-x64@npm:16.5.3": - version: 16.5.3 - resolution: "@nx/nx-freebsd-x64@npm:16.5.3" +"@nx/nx-freebsd-x64@npm:20.1.4": + version: 20.1.4 + resolution: "@nx/nx-freebsd-x64@npm:20.1.4" conditions: os=freebsd & cpu=x64 languageName: node linkType: hard -"@nx/nx-linux-arm-gnueabihf@npm:16.5.3": - version: 16.5.3 - resolution: "@nx/nx-linux-arm-gnueabihf@npm:16.5.3" +"@nx/nx-linux-arm-gnueabihf@npm:20.1.4": + version: 20.1.4 + resolution: "@nx/nx-linux-arm-gnueabihf@npm:20.1.4" conditions: os=linux & cpu=arm languageName: node linkType: hard -"@nx/nx-linux-arm64-gnu@npm:16.5.3": - version: 16.5.3 - resolution: "@nx/nx-linux-arm64-gnu@npm:16.5.3" +"@nx/nx-linux-arm64-gnu@npm:20.1.4": + version: 20.1.4 + resolution: "@nx/nx-linux-arm64-gnu@npm:20.1.4" conditions: os=linux & cpu=arm64 & libc=glibc languageName: node linkType: hard -"@nx/nx-linux-arm64-musl@npm:16.5.3": - version: 16.5.3 - resolution: "@nx/nx-linux-arm64-musl@npm:16.5.3" +"@nx/nx-linux-arm64-musl@npm:20.1.4": + version: 20.1.4 + resolution: "@nx/nx-linux-arm64-musl@npm:20.1.4" conditions: os=linux & cpu=arm64 & libc=musl languageName: node linkType: hard -"@nx/nx-linux-x64-gnu@npm:16.5.3": - version: 16.5.3 - resolution: "@nx/nx-linux-x64-gnu@npm:16.5.3" +"@nx/nx-linux-x64-gnu@npm:20.1.4": + version: 20.1.4 + resolution: "@nx/nx-linux-x64-gnu@npm:20.1.4" conditions: os=linux & cpu=x64 & libc=glibc languageName: node linkType: hard -"@nx/nx-linux-x64-musl@npm:16.5.3": - version: 16.5.3 - resolution: "@nx/nx-linux-x64-musl@npm:16.5.3" +"@nx/nx-linux-x64-musl@npm:20.1.4": + version: 20.1.4 + resolution: "@nx/nx-linux-x64-musl@npm:20.1.4" conditions: os=linux & cpu=x64 & libc=musl languageName: node linkType: hard -"@nx/nx-win32-arm64-msvc@npm:16.5.3": - version: 16.5.3 - resolution: "@nx/nx-win32-arm64-msvc@npm:16.5.3" +"@nx/nx-win32-arm64-msvc@npm:20.1.4": + version: 20.1.4 + resolution: "@nx/nx-win32-arm64-msvc@npm:20.1.4" conditions: os=win32 & cpu=arm64 languageName: node linkType: hard -"@nx/nx-win32-x64-msvc@npm:16.5.3": - version: 16.5.3 - resolution: "@nx/nx-win32-x64-msvc@npm:16.5.3" +"@nx/nx-win32-x64-msvc@npm:20.1.4": + version: 20.1.4 + resolution: "@nx/nx-win32-x64-msvc@npm:20.1.4" conditions: os=win32 & cpu=x64 languageName: node linkType: hard @@ -3516,133 +3314,133 @@ __metadata: languageName: node linkType: hard -"@pandacss/config@npm:0.46.0, @pandacss/config@npm:^0.46.0": - version: 0.46.0 - resolution: "@pandacss/config@npm:0.46.0" +"@pandacss/config@npm:0.48.0, @pandacss/config@npm:^0.48.0": + version: 0.48.0 + resolution: "@pandacss/config@npm:0.48.0" dependencies: - "@pandacss/logger": "npm:0.46.0" - "@pandacss/preset-base": "npm:0.46.0" - "@pandacss/preset-panda": "npm:0.46.0" - "@pandacss/shared": "npm:0.46.0" - "@pandacss/types": "npm:0.46.0" + "@pandacss/logger": "npm:0.48.0" + "@pandacss/preset-base": "npm:0.48.0" + "@pandacss/preset-panda": "npm:0.48.0" + "@pandacss/shared": "npm:0.48.0" + "@pandacss/types": "npm:0.48.0" bundle-n-require: "npm:1.1.1" escalade: "npm:3.1.2" merge-anything: "npm:5.1.7" microdiff: "npm:1.3.2" typescript: "npm:5.3.3" - checksum: 10c0/4a097e6df2e1a3dab6818ff2a6f84305e47d960329eacf26e27ea4edc7fd1cfc4c7cacab8209ec7807a0301859f360701be5476e66b83974f60b9cfbee8e5083 + checksum: 10c0/2547087d0df4004a7a26dbdb673d873e193dbbea61daa32b13ce86460d572b04f003dcd807422ad8772a52a3e5660006af452956cc9aa3dc45461ad6c613b587 languageName: node linkType: hard -"@pandacss/core@npm:0.46.0, @pandacss/core@npm:^0.46.0": - version: 0.46.0 - resolution: "@pandacss/core@npm:0.46.0" +"@pandacss/core@npm:0.48.0, @pandacss/core@npm:^0.48.0": + version: 0.48.0 + resolution: "@pandacss/core@npm:0.48.0" dependencies: "@csstools/postcss-cascade-layers": "npm:4.0.6" - "@pandacss/is-valid-prop": "npm:^0.46.0" - "@pandacss/logger": "npm:0.46.0" - "@pandacss/shared": "npm:0.46.0" - "@pandacss/token-dictionary": "npm:0.46.0" - "@pandacss/types": "npm:0.46.0" + "@pandacss/is-valid-prop": "npm:^0.48.0" + "@pandacss/logger": "npm:0.48.0" + "@pandacss/shared": "npm:0.48.0" + "@pandacss/token-dictionary": "npm:0.48.0" + "@pandacss/types": "npm:0.48.0" browserslist: "npm:4.23.3" hookable: "npm:5.5.3" lightningcss: "npm:1.25.1" lodash.merge: "npm:4.6.2" outdent: "npm:0.8.0" - postcss: "npm:8.4.45" - postcss-discard-duplicates: "npm:7.0.0" + postcss: "npm:8.4.49" + postcss-discard-duplicates: "npm:7.0.1" postcss-discard-empty: "npm:7.0.0" - postcss-merge-rules: "npm:7.0.2" - postcss-minify-selectors: "npm:7.0.2" + postcss-merge-rules: "npm:7.0.4" + postcss-minify-selectors: "npm:7.0.4" postcss-nested: "npm:6.0.1" postcss-normalize-whitespace: "npm:7.0.0" - postcss-selector-parser: "npm:6.1.1" + postcss-selector-parser: "npm:6.1.2" ts-pattern: "npm:5.0.8" - checksum: 10c0/ccbb25710a74bb94e7fd43e9bb4cb35891294006c8425ba51dd8fbb28ecd94b353be19f1e1f1aa9a2c869ee9ad3026fb68a79ad57c5cb346f631edbc1c02371c + checksum: 10c0/8a3430f059dc70d4f6e2f766dce00eae3223390003b1f97a391622c59551fbd22ba7d50938930af2ffb01a63f67adc6076635534693f10a6dc294fd130ba4d0d languageName: node linkType: hard -"@pandacss/dev@npm:^0.46.0": - version: 0.46.0 - resolution: "@pandacss/dev@npm:0.46.0" +"@pandacss/dev@npm:^0.48.0": + version: 0.48.0 + resolution: "@pandacss/dev@npm:0.48.0" dependencies: "@clack/prompts": "npm:0.7.0" - "@pandacss/config": "npm:0.46.0" - "@pandacss/logger": "npm:0.46.0" - "@pandacss/node": "npm:0.46.0" - "@pandacss/postcss": "npm:0.46.0" - "@pandacss/preset-panda": "npm:0.46.0" - "@pandacss/shared": "npm:0.46.0" - "@pandacss/token-dictionary": "npm:0.46.0" - "@pandacss/types": "npm:0.46.0" + "@pandacss/config": "npm:0.48.0" + "@pandacss/logger": "npm:0.48.0" + "@pandacss/node": "npm:0.48.0" + "@pandacss/postcss": "npm:0.48.0" + "@pandacss/preset-panda": "npm:0.48.0" + "@pandacss/shared": "npm:0.48.0" + "@pandacss/token-dictionary": "npm:0.48.0" + "@pandacss/types": "npm:0.48.0" cac: "npm:6.7.14" bin: panda: bin.js pandacss: bin.js - checksum: 10c0/46c94fa25e736e409c4c8c92e80f6e6bd32267e29298673f653adb4213e909d9d5736dab8cdfc3419847a1fbbb19e3084a996614bef1b820d7d63e4ef131a5fd + checksum: 10c0/bbd169a396f2b5ae351d8242c15a31144a7c4074bae45d6622330fd904f91b015745ee5c78346deaa42a51c8d8aa6e33dc7bc75ffd1cc1278adc82856021d0d0 languageName: node linkType: hard -"@pandacss/extractor@npm:0.46.0": - version: 0.46.0 - resolution: "@pandacss/extractor@npm:0.46.0" +"@pandacss/extractor@npm:0.48.0": + version: 0.48.0 + resolution: "@pandacss/extractor@npm:0.48.0" dependencies: - "@pandacss/shared": "npm:0.46.0" + "@pandacss/shared": "npm:0.48.0" ts-evaluator: "npm:1.2.0" ts-morph: "npm:21.0.1" - checksum: 10c0/c7f567d7989f9966a7212c84e226f0568d9bd7cdaa54d910b8402c85efee0d1d9e7905766563badf4334e7f2b48982e3d51c0567a65c935382465a6d4eaa59e9 + checksum: 10c0/9972c99ce2657f027af9d7e0a4140a9a936d6f378541ae06f2aa244d299e3a5c4f4f6bdb98e164d69776204750c4f945ddc32feadd300042c7223259c1b7969e languageName: node linkType: hard -"@pandacss/generator@npm:0.46.0": - version: 0.46.0 - resolution: "@pandacss/generator@npm:0.46.0" +"@pandacss/generator@npm:0.48.0": + version: 0.48.0 + resolution: "@pandacss/generator@npm:0.48.0" dependencies: - "@pandacss/core": "npm:0.46.0" - "@pandacss/is-valid-prop": "npm:^0.46.0" - "@pandacss/logger": "npm:0.46.0" - "@pandacss/shared": "npm:0.46.0" - "@pandacss/token-dictionary": "npm:0.46.0" - "@pandacss/types": "npm:0.46.0" + "@pandacss/core": "npm:0.48.0" + "@pandacss/is-valid-prop": "npm:^0.48.0" + "@pandacss/logger": "npm:0.48.0" + "@pandacss/shared": "npm:0.48.0" + "@pandacss/token-dictionary": "npm:0.48.0" + "@pandacss/types": "npm:0.48.0" javascript-stringify: "npm:2.1.0" outdent: "npm: ^0.8.0" pluralize: "npm:8.0.0" - postcss: "npm:8.4.45" + postcss: "npm:8.4.49" ts-pattern: "npm:5.0.8" - checksum: 10c0/e834267fe01277d9ed38286e86860cd894d5cffafc2445647bbe9f2a1e27e99881ba35d523a147854b79370e8adfec8db9cbc8bc13fe0fe1e9578ab6eb014931 + checksum: 10c0/e9fb203f45f7b91069d9f8d49162b12eca891042a9f2a4ad9261f374673e3af0489177b06bd2dff1ec873f8e7385799c5772708c41c8734267dc4e1851c2d0bb languageName: node linkType: hard -"@pandacss/is-valid-prop@npm:^0.46.0": - version: 0.46.0 - resolution: "@pandacss/is-valid-prop@npm:0.46.0" - checksum: 10c0/21790aa818267bc6224c70a9c3d259e3c1e6264912f317afb4ca3b6b176a52d520eb270942c15a2c7e5daffd0719300fe6e80a6d0f87fd5a2253d4d3e0f99050 +"@pandacss/is-valid-prop@npm:^0.48.0": + version: 0.48.0 + resolution: "@pandacss/is-valid-prop@npm:0.48.0" + checksum: 10c0/92debf4b2cdef0fe63bb2ecb54e6b3390124edefc29223830abf88fc7a6252096925dbac217114fc86091ebc1dd743923e0ab22935e8719f134424a2158fce1b languageName: node linkType: hard -"@pandacss/logger@npm:0.46.0, @pandacss/logger@npm:^0.46.0": - version: 0.46.0 - resolution: "@pandacss/logger@npm:0.46.0" +"@pandacss/logger@npm:0.48.0, @pandacss/logger@npm:^0.48.0": + version: 0.48.0 + resolution: "@pandacss/logger@npm:0.48.0" dependencies: - "@pandacss/types": "npm:0.46.0" + "@pandacss/types": "npm:0.48.0" kleur: "npm:4.1.5" - checksum: 10c0/5235e01f3204e76daa10d8b7f4b01614c228288e21029715d8616e026b2bb923987f440160acd321590de9f1615aca0a64e0080197e77d695fef343a8e5a30c3 + checksum: 10c0/e71cddbf75afdce2c43d1d10899b10d31741130c376509ee8e715dc27cead682ada4e08aea33bd809b6f4ddb036614f9580d8689654339e2b913c8f8af9031ad languageName: node linkType: hard -"@pandacss/node@npm:0.46.0": - version: 0.46.0 - resolution: "@pandacss/node@npm:0.46.0" +"@pandacss/node@npm:0.48.0": + version: 0.48.0 + resolution: "@pandacss/node@npm:0.48.0" dependencies: - "@pandacss/config": "npm:0.46.0" - "@pandacss/core": "npm:0.46.0" - "@pandacss/extractor": "npm:0.46.0" - "@pandacss/generator": "npm:0.46.0" - "@pandacss/logger": "npm:0.46.0" - "@pandacss/parser": "npm:0.46.0" - "@pandacss/shared": "npm:0.46.0" - "@pandacss/token-dictionary": "npm:0.46.0" - "@pandacss/types": "npm:0.46.0" + "@pandacss/config": "npm:0.48.0" + "@pandacss/core": "npm:0.48.0" + "@pandacss/extractor": "npm:0.48.0" + "@pandacss/generator": "npm:0.48.0" + "@pandacss/logger": "npm:0.48.0" + "@pandacss/parser": "npm:0.48.0" + "@pandacss/shared": "npm:0.48.0" + "@pandacss/token-dictionary": "npm:0.48.0" + "@pandacss/types": "npm:0.48.0" browserslist: "npm:4.23.3" chokidar: "npm:3.6.0" fast-glob: "npm:3.3.2" @@ -3658,95 +3456,84 @@ __metadata: perfect-debounce: "npm:1.0.0" pkg-types: "npm:1.0.3" pluralize: "npm:8.0.0" - postcss: "npm:8.4.45" + postcss: "npm:8.4.49" prettier: "npm:3.2.5" ts-morph: "npm:21.0.1" ts-pattern: "npm:5.0.8" tsconfck: "npm:3.0.2" - checksum: 10c0/13f67c9068d861445e284cc05729872486ab5b9404f40d75e5697e67156de3d1bc4266d700f7db9d5ea5a8ce801cb33377d526bee201e9d3d526431b75d0b160 + checksum: 10c0/dc80329e314f93d272656e1ba1d3742eff28921556c1f8a8c3f382ef47d884f1b55e3830d5d156d0adc1386983da2b0117136fe6a5655b80adc7aa10fa4bdffa languageName: node linkType: hard -"@pandacss/parser@npm:0.46.0": - version: 0.46.0 - resolution: "@pandacss/parser@npm:0.46.0" +"@pandacss/parser@npm:0.48.0": + version: 0.48.0 + resolution: "@pandacss/parser@npm:0.48.0" dependencies: - "@pandacss/config": "npm:^0.46.0" - "@pandacss/core": "npm:^0.46.0" - "@pandacss/extractor": "npm:0.46.0" - "@pandacss/logger": "npm:0.46.0" - "@pandacss/shared": "npm:0.46.0" - "@pandacss/types": "npm:0.46.0" + "@pandacss/config": "npm:^0.48.0" + "@pandacss/core": "npm:^0.48.0" + "@pandacss/extractor": "npm:0.48.0" + "@pandacss/logger": "npm:0.48.0" + "@pandacss/shared": "npm:0.48.0" + "@pandacss/types": "npm:0.48.0" "@vue/compiler-sfc": "npm:3.4.19" - magic-string: "npm:0.30.11" + magic-string: "npm:0.30.12" ts-morph: "npm:21.0.1" ts-pattern: "npm:5.0.8" - checksum: 10c0/89eacaecf63ea1ac0f8c40296e2345523e0481f49ed7e5432463d8e8b908441de723db476292c3a08b41e3b32c93bae9c5c8d1f3c8c003e72fbb0b2907d34791 + checksum: 10c0/13cd1991a5f053c2d40b644bfd72926ff8942b806a0d7dadcd6eade5c11394b6fccd3ea04826234b6e647d28ec449f4520fc721e4b222b58a5447147c9a3552c languageName: node linkType: hard -"@pandacss/postcss@npm:0.46.0": - version: 0.46.0 - resolution: "@pandacss/postcss@npm:0.46.0" +"@pandacss/postcss@npm:0.48.0": + version: 0.48.0 + resolution: "@pandacss/postcss@npm:0.48.0" dependencies: - "@pandacss/node": "npm:0.46.0" - postcss: "npm:8.4.45" - checksum: 10c0/945ce252e9b3e715d5c5939d76339eecc1807479a01b567f04ec697e950ffad55cbc0f22d41e9474b4cba0a5af250ac99a31945b002ff007beb2031b1c08e513 + "@pandacss/node": "npm:0.48.0" + postcss: "npm:8.4.49" + checksum: 10c0/2b09af3cc9dd42d77b3c1cac77b28a0ee488862b15bfd6fb6525628fccbe070323e5841db6278598dc7737728ba28880e0a188366a3474dce8099da607853508 languageName: node linkType: hard -"@pandacss/preset-base@npm:0.46.0": - version: 0.46.0 - resolution: "@pandacss/preset-base@npm:0.46.0" +"@pandacss/preset-base@npm:0.48.0": + version: 0.48.0 + resolution: "@pandacss/preset-base@npm:0.48.0" dependencies: - "@pandacss/types": "npm:0.46.0" - checksum: 10c0/66ba22cea17ed4170767e1fa60dd5ca868ecaa4a15e93d41ec4d8d19b1b9c815dfdcf2bccf81f89329b4208bc50e3c9b2d71d26187881e4bfdc16299d7ca7d38 + "@pandacss/types": "npm:0.48.0" + checksum: 10c0/d87c1ff8a325619450a6d35359d356b3b8015cc3f4b8dee78bdec571439142903ad6c54255ee6cc4ac0d9c2b08285e05cc82b94d6e2397116f340c146ac63bfd languageName: node linkType: hard -"@pandacss/preset-panda@npm:0.46.0": - version: 0.46.0 - resolution: "@pandacss/preset-panda@npm:0.46.0" +"@pandacss/preset-panda@npm:0.48.0": + version: 0.48.0 + resolution: "@pandacss/preset-panda@npm:0.48.0" dependencies: - "@pandacss/types": "npm:0.46.0" - checksum: 10c0/fbe0ea3b8bca75f4c3acbd881b0e9ab2168b3f692467cd9cecb03aa2d3b0d30a9c0e184e8403b962b97a559ed65e1ac4a88a41a99bc661fed2348f750f28ecb4 + "@pandacss/types": "npm:0.48.0" + checksum: 10c0/471fefb80384924e4d06b46b75d87fff83f4a1accc6bb496f077980f47a12ff6e4a5381c8371b44d6206e7e6bc05a41e7bccd76885ed9db4a174aab1568032e2 languageName: node linkType: hard -"@pandacss/shared@npm:0.46.0": - version: 0.46.0 - resolution: "@pandacss/shared@npm:0.46.0" - checksum: 10c0/a73f9c35c3bd59e530d1d818d800f0c30ea0f6ff9015b70e87e58667ea313792fd1cb9adccb349cc5f458c4f1a2fe5ab78a2d788157fe9a51540037807bd265a +"@pandacss/shared@npm:0.48.0": + version: 0.48.0 + resolution: "@pandacss/shared@npm:0.48.0" + checksum: 10c0/beb5a3be659f0e3cc10fd81f0c948a6168c59916ebe5c9841a4cfe4f19c979d236d469b9f5eb330fbbec4cede21a2cfe14db592e567338039abf291833dd8967 languageName: node linkType: hard -"@pandacss/token-dictionary@npm:0.46.0": - version: 0.46.0 - resolution: "@pandacss/token-dictionary@npm:0.46.0" +"@pandacss/token-dictionary@npm:0.48.0": + version: 0.48.0 + resolution: "@pandacss/token-dictionary@npm:0.48.0" dependencies: - "@pandacss/logger": "npm:^0.46.0" - "@pandacss/shared": "npm:0.46.0" - "@pandacss/types": "npm:0.46.0" + "@pandacss/logger": "npm:^0.48.0" + "@pandacss/shared": "npm:0.48.0" + "@pandacss/types": "npm:0.48.0" ts-pattern: "npm:5.0.8" - checksum: 10c0/fdaf2291b15cedc38d4062383de62c891091188ed28d2cecc5a9cab8d2ca454339e60257569dcd43038b1e23c1c5a982f606254b999337dc8c4c2cf7272b91e5 - languageName: node - linkType: hard - -"@pandacss/types@npm:0.46.0": - version: 0.46.0 - resolution: "@pandacss/types@npm:0.46.0" - checksum: 10c0/8364e6123642b0241a295ca705238a785417b3d53efa15de7dc28b40dc9513c57d22acc094608f5b9cf1582e2840799b2384c92be553e5c45d8c1af64e5a52be + checksum: 10c0/386fba0811f98c70dbf367df386ddf7d68cd192378a6c383d28a1ceb91e91243b5026a0d0417ba850b032e1d044dd4ea363b3e15f4c5c80f5c920d322327071f languageName: node linkType: hard -"@parcel/watcher@npm:2.0.4": - version: 2.0.4 - resolution: "@parcel/watcher@npm:2.0.4" - dependencies: - node-addon-api: "npm:^3.2.1" - node-gyp: "npm:latest" - node-gyp-build: "npm:^4.3.0" - checksum: 10c0/7c7e8fa2879371135039cf6559122808fc37d436701dd804f3e0b4897d5690a2c92c73795ad4a015d8715990bfb4226dc6d14fea429522fcb5662ce370508e8d +"@pandacss/types@npm:0.48.0": + version: 0.48.0 + resolution: "@pandacss/types@npm:0.48.0" + checksum: 10c0/e38ee375ee3b7f72de5eee5eea2f256442a16e0655d36a78c154ce625546709d58fda2cde9e7330666c9f829b3cd9dfca0f7a454fe37f8d231228c8eb25e9bd2 languageName: node linkType: hard @@ -3757,513 +3544,6 @@ __metadata: languageName: node linkType: hard -"@radix-ui/primitive@npm:1.0.1": - version: 1.0.1 - resolution: "@radix-ui/primitive@npm:1.0.1" - dependencies: - "@babel/runtime": "npm:^7.13.10" - checksum: 10c0/912216455537db3ca77f3e7f70174fb2b454fbd4a37a0acb7cfadad9ab6131abdfb787472242574460a3c301edf45738340cc84f6717982710082840fde7d916 - languageName: node - linkType: hard - -"@radix-ui/react-arrow@npm:1.0.3": - version: 1.0.3 - resolution: "@radix-ui/react-arrow@npm:1.0.3" - dependencies: - "@babel/runtime": "npm:^7.13.10" - "@radix-ui/react-primitive": "npm:1.0.3" - peerDependencies: - "@types/react": "*" - "@types/react-dom": "*" - react: ^16.8 || ^17.0 || ^18.0 - react-dom: ^16.8 || ^17.0 || ^18.0 - peerDependenciesMeta: - "@types/react": - optional: true - "@types/react-dom": - optional: true - checksum: 10c0/c931f6d7e0bac50fd1654a0303a303aff74a68a13a33a851a43a7c88677b53a92ca6557920b9105144a3002f899ce888437d20ddd7803a5c716edac99587626d - languageName: node - linkType: hard - -"@radix-ui/react-collection@npm:1.0.3": - version: 1.0.3 - resolution: "@radix-ui/react-collection@npm:1.0.3" - dependencies: - "@babel/runtime": "npm:^7.13.10" - "@radix-ui/react-compose-refs": "npm:1.0.1" - "@radix-ui/react-context": "npm:1.0.1" - "@radix-ui/react-primitive": "npm:1.0.3" - "@radix-ui/react-slot": "npm:1.0.2" - peerDependencies: - "@types/react": "*" - "@types/react-dom": "*" - react: ^16.8 || ^17.0 || ^18.0 - react-dom: ^16.8 || ^17.0 || ^18.0 - peerDependenciesMeta: - "@types/react": - optional: true - "@types/react-dom": - optional: true - checksum: 10c0/cefa56383d7451ca79e4bd5a29aaeef6c205a04297213efd149aaead82fc8cde4fb8298e20e6b3613e5696e43f814fb4489805428f6604834fb31f73c6725fa8 - languageName: node - linkType: hard - -"@radix-ui/react-compose-refs@npm:1.0.1": - version: 1.0.1 - resolution: "@radix-ui/react-compose-refs@npm:1.0.1" - dependencies: - "@babel/runtime": "npm:^7.13.10" - peerDependencies: - "@types/react": "*" - react: ^16.8 || ^17.0 || ^18.0 - peerDependenciesMeta: - "@types/react": - optional: true - checksum: 10c0/be06f8dab35b5a1bffa7a5982fb26218ddade1acb751288333e3b89d7b4a7dfb5a6371be83876dac0ec2ebe0866d295e8618b778608e1965342986ea448040ec - languageName: node - linkType: hard - -"@radix-ui/react-context@npm:1.0.1": - version: 1.0.1 - resolution: "@radix-ui/react-context@npm:1.0.1" - dependencies: - "@babel/runtime": "npm:^7.13.10" - peerDependencies: - "@types/react": "*" - react: ^16.8 || ^17.0 || ^18.0 - peerDependenciesMeta: - "@types/react": - optional: true - checksum: 10c0/3de5761b32cc70cd61715527f29d8c699c01ab28c195ced972ccbc7025763a373a68f18c9f948c7a7b922e469fd2df7fee5f7536e3f7bad44ffc06d959359333 - languageName: node - linkType: hard - -"@radix-ui/react-dialog@npm:^1.0.5": - version: 1.0.5 - resolution: "@radix-ui/react-dialog@npm:1.0.5" - dependencies: - "@babel/runtime": "npm:^7.13.10" - "@radix-ui/primitive": "npm:1.0.1" - "@radix-ui/react-compose-refs": "npm:1.0.1" - "@radix-ui/react-context": "npm:1.0.1" - "@radix-ui/react-dismissable-layer": "npm:1.0.5" - "@radix-ui/react-focus-guards": "npm:1.0.1" - "@radix-ui/react-focus-scope": "npm:1.0.4" - "@radix-ui/react-id": "npm:1.0.1" - "@radix-ui/react-portal": "npm:1.0.4" - "@radix-ui/react-presence": "npm:1.0.1" - "@radix-ui/react-primitive": "npm:1.0.3" - "@radix-ui/react-slot": "npm:1.0.2" - "@radix-ui/react-use-controllable-state": "npm:1.0.1" - aria-hidden: "npm:^1.1.1" - react-remove-scroll: "npm:2.5.5" - peerDependencies: - "@types/react": "*" - "@types/react-dom": "*" - react: ^16.8 || ^17.0 || ^18.0 - react-dom: ^16.8 || ^17.0 || ^18.0 - peerDependenciesMeta: - "@types/react": - optional: true - "@types/react-dom": - optional: true - checksum: 10c0/c5b3069397379e79857a3203f3ead4d12d87736b59899f02a63e620a07dd1e6704e15523926cdf8e39afe1c945a7ff0f2533c5ea5be1e17c3114820300a51133 - languageName: node - linkType: hard - -"@radix-ui/react-direction@npm:1.0.1": - version: 1.0.1 - resolution: "@radix-ui/react-direction@npm:1.0.1" - dependencies: - "@babel/runtime": "npm:^7.13.10" - peerDependencies: - "@types/react": "*" - react: ^16.8 || ^17.0 || ^18.0 - peerDependenciesMeta: - "@types/react": - optional: true - checksum: 10c0/b1a45b4d1d5070ca3b5864b920f6c6210c962bdb519abb62b38b1baef9d06737dc3d8ecdb61860b7504a735235a539652f5977c7299ec021da84e6b0f64d988a - languageName: node - linkType: hard - -"@radix-ui/react-dismissable-layer@npm:1.0.5": - version: 1.0.5 - resolution: "@radix-ui/react-dismissable-layer@npm:1.0.5" - dependencies: - "@babel/runtime": "npm:^7.13.10" - "@radix-ui/primitive": "npm:1.0.1" - "@radix-ui/react-compose-refs": "npm:1.0.1" - "@radix-ui/react-primitive": "npm:1.0.3" - "@radix-ui/react-use-callback-ref": "npm:1.0.1" - "@radix-ui/react-use-escape-keydown": "npm:1.0.3" - peerDependencies: - "@types/react": "*" - "@types/react-dom": "*" - react: ^16.8 || ^17.0 || ^18.0 - react-dom: ^16.8 || ^17.0 || ^18.0 - peerDependenciesMeta: - "@types/react": - optional: true - "@types/react-dom": - optional: true - checksum: 10c0/7e4308867aecfb07b506330c1964d94a52247ab9453725613cd326762aa13e483423c250f107219c131b0449600eb8d1576ce3159c2b96e8c978f75e46062cb2 - languageName: node - linkType: hard - -"@radix-ui/react-dropdown-menu@npm:^2.0.6": - version: 2.0.6 - resolution: "@radix-ui/react-dropdown-menu@npm:2.0.6" - dependencies: - "@babel/runtime": "npm:^7.13.10" - "@radix-ui/primitive": "npm:1.0.1" - "@radix-ui/react-compose-refs": "npm:1.0.1" - "@radix-ui/react-context": "npm:1.0.1" - "@radix-ui/react-id": "npm:1.0.1" - "@radix-ui/react-menu": "npm:2.0.6" - "@radix-ui/react-primitive": "npm:1.0.3" - "@radix-ui/react-use-controllable-state": "npm:1.0.1" - peerDependencies: - "@types/react": "*" - "@types/react-dom": "*" - react: ^16.8 || ^17.0 || ^18.0 - react-dom: ^16.8 || ^17.0 || ^18.0 - peerDependenciesMeta: - "@types/react": - optional: true - "@types/react-dom": - optional: true - checksum: 10c0/525cab53547d2ce2904518b1f66b62179d656c57c8d6dd7dbe863cc05025d8bad535f44011e2735b07fc500579c3d64d89a9a39593d4c8f91f31052d75b729e1 - languageName: node - linkType: hard - -"@radix-ui/react-focus-guards@npm:1.0.1": - version: 1.0.1 - resolution: "@radix-ui/react-focus-guards@npm:1.0.1" - dependencies: - "@babel/runtime": "npm:^7.13.10" - peerDependencies: - "@types/react": "*" - react: ^16.8 || ^17.0 || ^18.0 - peerDependenciesMeta: - "@types/react": - optional: true - checksum: 10c0/d5fd4e5aa9d9a87c8ad490b3b4992d6f1d9eddf18e56df2a2bcf8744c4332b275d73377fd193df3e6ba0ad9608dc497709beca5c64de2b834d5f5350b3c9a272 - languageName: node - linkType: hard - -"@radix-ui/react-focus-scope@npm:1.0.4": - version: 1.0.4 - resolution: "@radix-ui/react-focus-scope@npm:1.0.4" - dependencies: - "@babel/runtime": "npm:^7.13.10" - "@radix-ui/react-compose-refs": "npm:1.0.1" - "@radix-ui/react-primitive": "npm:1.0.3" - "@radix-ui/react-use-callback-ref": "npm:1.0.1" - peerDependencies: - "@types/react": "*" - "@types/react-dom": "*" - react: ^16.8 || ^17.0 || ^18.0 - react-dom: ^16.8 || ^17.0 || ^18.0 - peerDependenciesMeta: - "@types/react": - optional: true - "@types/react-dom": - optional: true - checksum: 10c0/2fce0bafcab4e16cf4ed7560bda40654223f3d0add6b231e1c607433030c14e6249818b444b7b58ee7a6ff6bbf8e192c9c81d22c3a5c88c2daade9d1f881b5be - languageName: node - linkType: hard - -"@radix-ui/react-id@npm:1.0.1": - version: 1.0.1 - resolution: "@radix-ui/react-id@npm:1.0.1" - dependencies: - "@babel/runtime": "npm:^7.13.10" - "@radix-ui/react-use-layout-effect": "npm:1.0.1" - peerDependencies: - "@types/react": "*" - react: ^16.8 || ^17.0 || ^18.0 - peerDependenciesMeta: - "@types/react": - optional: true - checksum: 10c0/e2859ca58bea171c956098ace7ecf615cf9432f58a118b779a14720746b3adcf0351c36c75de131548672d3cd290ca238198acbd33b88dc4706f98312e9317ad - languageName: node - linkType: hard - -"@radix-ui/react-menu@npm:2.0.6": - version: 2.0.6 - resolution: "@radix-ui/react-menu@npm:2.0.6" - dependencies: - "@babel/runtime": "npm:^7.13.10" - "@radix-ui/primitive": "npm:1.0.1" - "@radix-ui/react-collection": "npm:1.0.3" - "@radix-ui/react-compose-refs": "npm:1.0.1" - "@radix-ui/react-context": "npm:1.0.1" - "@radix-ui/react-direction": "npm:1.0.1" - "@radix-ui/react-dismissable-layer": "npm:1.0.5" - "@radix-ui/react-focus-guards": "npm:1.0.1" - "@radix-ui/react-focus-scope": "npm:1.0.4" - "@radix-ui/react-id": "npm:1.0.1" - "@radix-ui/react-popper": "npm:1.1.3" - "@radix-ui/react-portal": "npm:1.0.4" - "@radix-ui/react-presence": "npm:1.0.1" - "@radix-ui/react-primitive": "npm:1.0.3" - "@radix-ui/react-roving-focus": "npm:1.0.4" - "@radix-ui/react-slot": "npm:1.0.2" - "@radix-ui/react-use-callback-ref": "npm:1.0.1" - aria-hidden: "npm:^1.1.1" - react-remove-scroll: "npm:2.5.5" - peerDependencies: - "@types/react": "*" - "@types/react-dom": "*" - react: ^16.8 || ^17.0 || ^18.0 - react-dom: ^16.8 || ^17.0 || ^18.0 - peerDependenciesMeta: - "@types/react": - optional: true - "@types/react-dom": - optional: true - checksum: 10c0/06926fa59cb8f5614f2e1a085ea1cbf09631ae28fb6e5d6e6d2a0a84d24979e3aca311cdb19dfdb254c1823ff85fd5250c29d4463f8f7622dd523e35df3fce1d - languageName: node - linkType: hard - -"@radix-ui/react-popper@npm:1.1.3": - version: 1.1.3 - resolution: "@radix-ui/react-popper@npm:1.1.3" - dependencies: - "@babel/runtime": "npm:^7.13.10" - "@floating-ui/react-dom": "npm:^2.0.0" - "@radix-ui/react-arrow": "npm:1.0.3" - "@radix-ui/react-compose-refs": "npm:1.0.1" - "@radix-ui/react-context": "npm:1.0.1" - "@radix-ui/react-primitive": "npm:1.0.3" - "@radix-ui/react-use-callback-ref": "npm:1.0.1" - "@radix-ui/react-use-layout-effect": "npm:1.0.1" - "@radix-ui/react-use-rect": "npm:1.0.1" - "@radix-ui/react-use-size": "npm:1.0.1" - "@radix-ui/rect": "npm:1.0.1" - peerDependencies: - "@types/react": "*" - "@types/react-dom": "*" - react: ^16.8 || ^17.0 || ^18.0 - react-dom: ^16.8 || ^17.0 || ^18.0 - peerDependenciesMeta: - "@types/react": - optional: true - "@types/react-dom": - optional: true - checksum: 10c0/a38c374ec65dd8d7c604af7151e96faec1743828d859dc4892e720c1803a7e1562add26aec2ddf2091defae4e15d989c028032ea481419e38c4693b3f12545c3 - languageName: node - linkType: hard - -"@radix-ui/react-portal@npm:1.0.4": - version: 1.0.4 - resolution: "@radix-ui/react-portal@npm:1.0.4" - dependencies: - "@babel/runtime": "npm:^7.13.10" - "@radix-ui/react-primitive": "npm:1.0.3" - peerDependencies: - "@types/react": "*" - "@types/react-dom": "*" - react: ^16.8 || ^17.0 || ^18.0 - react-dom: ^16.8 || ^17.0 || ^18.0 - peerDependenciesMeta: - "@types/react": - optional: true - "@types/react-dom": - optional: true - checksum: 10c0/fed32f8148b833fe852fb5e2f859979ffdf2fb9a9ef46583b9b52915d764ad36ba5c958a64e61d23395628ccc09d678229ee94cd112941e8fe2575021f820c29 - languageName: node - linkType: hard - -"@radix-ui/react-presence@npm:1.0.1": - version: 1.0.1 - resolution: "@radix-ui/react-presence@npm:1.0.1" - dependencies: - "@babel/runtime": "npm:^7.13.10" - "@radix-ui/react-compose-refs": "npm:1.0.1" - "@radix-ui/react-use-layout-effect": "npm:1.0.1" - peerDependencies: - "@types/react": "*" - "@types/react-dom": "*" - react: ^16.8 || ^17.0 || ^18.0 - react-dom: ^16.8 || ^17.0 || ^18.0 - peerDependenciesMeta: - "@types/react": - optional: true - "@types/react-dom": - optional: true - checksum: 10c0/90780618b265fe794a8f1ddaa5bfd3c71a1127fa79330a14d32722e6265b44452a9dd36efe4e769129d33e57f979f6b8713e2cbf2e2755326aa3b0f337185b6e - languageName: node - linkType: hard - -"@radix-ui/react-primitive@npm:1.0.3": - version: 1.0.3 - resolution: "@radix-ui/react-primitive@npm:1.0.3" - dependencies: - "@babel/runtime": "npm:^7.13.10" - "@radix-ui/react-slot": "npm:1.0.2" - peerDependencies: - "@types/react": "*" - "@types/react-dom": "*" - react: ^16.8 || ^17.0 || ^18.0 - react-dom: ^16.8 || ^17.0 || ^18.0 - peerDependenciesMeta: - "@types/react": - optional: true - "@types/react-dom": - optional: true - checksum: 10c0/67a66ff8898a5e7739eda228ab6f5ce808858da1dce967014138d87e72b6bbfc93dc1467c706d98d1a2b93bf0b6e09233d1a24d31c78227b078444c1a69c42be - languageName: node - linkType: hard - -"@radix-ui/react-roving-focus@npm:1.0.4": - version: 1.0.4 - resolution: "@radix-ui/react-roving-focus@npm:1.0.4" - dependencies: - "@babel/runtime": "npm:^7.13.10" - "@radix-ui/primitive": "npm:1.0.1" - "@radix-ui/react-collection": "npm:1.0.3" - "@radix-ui/react-compose-refs": "npm:1.0.1" - "@radix-ui/react-context": "npm:1.0.1" - "@radix-ui/react-direction": "npm:1.0.1" - "@radix-ui/react-id": "npm:1.0.1" - "@radix-ui/react-primitive": "npm:1.0.3" - "@radix-ui/react-use-callback-ref": "npm:1.0.1" - "@radix-ui/react-use-controllable-state": "npm:1.0.1" - peerDependencies: - "@types/react": "*" - "@types/react-dom": "*" - react: ^16.8 || ^17.0 || ^18.0 - react-dom: ^16.8 || ^17.0 || ^18.0 - peerDependenciesMeta: - "@types/react": - optional: true - "@types/react-dom": - optional: true - checksum: 10c0/61e3ddfd1647e64fba855434ff41e8e7ba707244fe8841f78c450fbdce525383b64259279475615d030dbf1625cbffd8eeebee72d91bf6978794f5dbcf887fc0 - languageName: node - linkType: hard - -"@radix-ui/react-slot@npm:1.0.2, @radix-ui/react-slot@npm:^1.0.2": - version: 1.0.2 - resolution: "@radix-ui/react-slot@npm:1.0.2" - dependencies: - "@babel/runtime": "npm:^7.13.10" - "@radix-ui/react-compose-refs": "npm:1.0.1" - peerDependencies: - "@types/react": "*" - react: ^16.8 || ^17.0 || ^18.0 - peerDependenciesMeta: - "@types/react": - optional: true - checksum: 10c0/3af6ea4891e6fa8091e666802adffe7718b3cd390a10fa9229a5f40f8efded9f3918ea01b046103d93923d41cc32119505ebb6bde76cad07a87b6cf4f2119347 - languageName: node - linkType: hard - -"@radix-ui/react-use-callback-ref@npm:1.0.1": - version: 1.0.1 - resolution: "@radix-ui/react-use-callback-ref@npm:1.0.1" - dependencies: - "@babel/runtime": "npm:^7.13.10" - peerDependencies: - "@types/react": "*" - react: ^16.8 || ^17.0 || ^18.0 - peerDependenciesMeta: - "@types/react": - optional: true - checksum: 10c0/331b432be1edc960ca148637ae6087220873ee828ceb13bd155926ef8f49e862812de5b379129f6aaefcd11be53715f3237e6caa9a33d9c0abfff43f3ba58938 - languageName: node - linkType: hard - -"@radix-ui/react-use-controllable-state@npm:1.0.1": - version: 1.0.1 - resolution: "@radix-ui/react-use-controllable-state@npm:1.0.1" - dependencies: - "@babel/runtime": "npm:^7.13.10" - "@radix-ui/react-use-callback-ref": "npm:1.0.1" - peerDependencies: - "@types/react": "*" - react: ^16.8 || ^17.0 || ^18.0 - peerDependenciesMeta: - "@types/react": - optional: true - checksum: 10c0/29b069dbf09e48bca321af6272574ad0fc7283174e7d092731a10663fe00c0e6b4bde5e1b5ea67725fe48dcbe8026e7ff0d69d42891c62cbb9ca408498171fbe - languageName: node - linkType: hard - -"@radix-ui/react-use-escape-keydown@npm:1.0.3": - version: 1.0.3 - resolution: "@radix-ui/react-use-escape-keydown@npm:1.0.3" - dependencies: - "@babel/runtime": "npm:^7.13.10" - "@radix-ui/react-use-callback-ref": "npm:1.0.1" - peerDependencies: - "@types/react": "*" - react: ^16.8 || ^17.0 || ^18.0 - peerDependenciesMeta: - "@types/react": - optional: true - checksum: 10c0/3c94c78902dcb40b60083ee2184614f45c95a189178f52d89323b467bd04bcf5fdb1bc4d43debecd7f0b572c3843c7e04edbcb56f40a4b4b43936fb2770fb8ad - languageName: node - linkType: hard - -"@radix-ui/react-use-layout-effect@npm:1.0.1": - version: 1.0.1 - resolution: "@radix-ui/react-use-layout-effect@npm:1.0.1" - dependencies: - "@babel/runtime": "npm:^7.13.10" - peerDependencies: - "@types/react": "*" - react: ^16.8 || ^17.0 || ^18.0 - peerDependenciesMeta: - "@types/react": - optional: true - checksum: 10c0/13cd0c38395c5838bc9a18238020d3bcf67fb340039e6d1cbf438be1b91d64cf6900b78121f3dc9219faeb40dcc7b523ce0f17e4a41631655690e5a30a40886a - languageName: node - linkType: hard - -"@radix-ui/react-use-rect@npm:1.0.1": - version: 1.0.1 - resolution: "@radix-ui/react-use-rect@npm:1.0.1" - dependencies: - "@babel/runtime": "npm:^7.13.10" - "@radix-ui/rect": "npm:1.0.1" - peerDependencies: - "@types/react": "*" - react: ^16.8 || ^17.0 || ^18.0 - peerDependenciesMeta: - "@types/react": - optional: true - checksum: 10c0/94c5ab31dfd3678c0cb77a30025e82b3a287577c1a8674b0d703a36d27434bc9c59790e0bebf57ed153f0b8e0d8c3b9675fc9787b9eac525a09abcda8fa9e7eb - languageName: node - linkType: hard - -"@radix-ui/react-use-size@npm:1.0.1": - version: 1.0.1 - resolution: "@radix-ui/react-use-size@npm:1.0.1" - dependencies: - "@babel/runtime": "npm:^7.13.10" - "@radix-ui/react-use-layout-effect": "npm:1.0.1" - peerDependencies: - "@types/react": "*" - react: ^16.8 || ^17.0 || ^18.0 - peerDependenciesMeta: - "@types/react": - optional: true - checksum: 10c0/b109a4b3781781c4dc641a1173f0a6fcb0b0f7b2d7cdba5848a46070c9fb4e518909a46c20a3c2efbc78737c64859c59ead837f2940e8c8394d1c503ef58773b - languageName: node - linkType: hard - -"@radix-ui/rect@npm:1.0.1": - version: 1.0.1 - resolution: "@radix-ui/rect@npm:1.0.1" - dependencies: - "@babel/runtime": "npm:^7.13.10" - checksum: 10c0/4c5159661340acc31b11e1f2ebd87a1521d39bfa287544dd2cd75b399539a4b625d38a1501c90ceae21fcca18ed164b0c3735817ff140ae334098192c110e571 - languageName: node - linkType: hard - "@rollup/pluginutils@npm:^4.0.0": version: 4.2.1 resolution: "@rollup/pluginutils@npm:4.2.1" @@ -4290,132 +3570,194 @@ __metadata: languageName: node linkType: hard -"@rollup/rollup-android-arm-eabi@npm:4.22.1": - version: 4.22.1 - resolution: "@rollup/rollup-android-arm-eabi@npm:4.22.1" +"@rollup/rollup-android-arm-eabi@npm:4.28.0": + version: 4.28.0 + resolution: "@rollup/rollup-android-arm-eabi@npm:4.28.0" conditions: os=android & cpu=arm languageName: node linkType: hard -"@rollup/rollup-android-arm64@npm:4.22.1": - version: 4.22.1 - resolution: "@rollup/rollup-android-arm64@npm:4.22.1" +"@rollup/rollup-android-arm64@npm:4.28.0": + version: 4.28.0 + resolution: "@rollup/rollup-android-arm64@npm:4.28.0" conditions: os=android & cpu=arm64 languageName: node linkType: hard -"@rollup/rollup-darwin-arm64@npm:4.22.1": - version: 4.22.1 - resolution: "@rollup/rollup-darwin-arm64@npm:4.22.1" +"@rollup/rollup-darwin-arm64@npm:4.28.0": + version: 4.28.0 + resolution: "@rollup/rollup-darwin-arm64@npm:4.28.0" conditions: os=darwin & cpu=arm64 languageName: node linkType: hard -"@rollup/rollup-darwin-x64@npm:4.22.1": - version: 4.22.1 - resolution: "@rollup/rollup-darwin-x64@npm:4.22.1" +"@rollup/rollup-darwin-x64@npm:4.28.0": + version: 4.28.0 + resolution: "@rollup/rollup-darwin-x64@npm:4.28.0" conditions: os=darwin & cpu=x64 languageName: node linkType: hard -"@rollup/rollup-linux-arm-gnueabihf@npm:4.22.1": - version: 4.22.1 - resolution: "@rollup/rollup-linux-arm-gnueabihf@npm:4.22.1" +"@rollup/rollup-freebsd-arm64@npm:4.28.0": + version: 4.28.0 + resolution: "@rollup/rollup-freebsd-arm64@npm:4.28.0" + conditions: os=freebsd & cpu=arm64 + languageName: node + linkType: hard + +"@rollup/rollup-freebsd-x64@npm:4.28.0": + version: 4.28.0 + resolution: "@rollup/rollup-freebsd-x64@npm:4.28.0" + conditions: os=freebsd & cpu=x64 + languageName: node + linkType: hard + +"@rollup/rollup-linux-arm-gnueabihf@npm:4.28.0": + version: 4.28.0 + resolution: "@rollup/rollup-linux-arm-gnueabihf@npm:4.28.0" conditions: os=linux & cpu=arm & libc=glibc languageName: node linkType: hard -"@rollup/rollup-linux-arm-musleabihf@npm:4.22.1": - version: 4.22.1 - resolution: "@rollup/rollup-linux-arm-musleabihf@npm:4.22.1" +"@rollup/rollup-linux-arm-musleabihf@npm:4.28.0": + version: 4.28.0 + resolution: "@rollup/rollup-linux-arm-musleabihf@npm:4.28.0" conditions: os=linux & cpu=arm & libc=musl languageName: node linkType: hard -"@rollup/rollup-linux-arm64-gnu@npm:4.22.1": - version: 4.22.1 - resolution: "@rollup/rollup-linux-arm64-gnu@npm:4.22.1" +"@rollup/rollup-linux-arm64-gnu@npm:4.28.0": + version: 4.28.0 + resolution: "@rollup/rollup-linux-arm64-gnu@npm:4.28.0" conditions: os=linux & cpu=arm64 & libc=glibc languageName: node linkType: hard -"@rollup/rollup-linux-arm64-musl@npm:4.22.1": - version: 4.22.1 - resolution: "@rollup/rollup-linux-arm64-musl@npm:4.22.1" +"@rollup/rollup-linux-arm64-musl@npm:4.28.0": + version: 4.28.0 + resolution: "@rollup/rollup-linux-arm64-musl@npm:4.28.0" conditions: os=linux & cpu=arm64 & libc=musl languageName: node linkType: hard -"@rollup/rollup-linux-powerpc64le-gnu@npm:4.22.1": - version: 4.22.1 - resolution: "@rollup/rollup-linux-powerpc64le-gnu@npm:4.22.1" +"@rollup/rollup-linux-powerpc64le-gnu@npm:4.28.0": + version: 4.28.0 + resolution: "@rollup/rollup-linux-powerpc64le-gnu@npm:4.28.0" conditions: os=linux & cpu=ppc64 & libc=glibc languageName: node linkType: hard -"@rollup/rollup-linux-riscv64-gnu@npm:4.22.1": - version: 4.22.1 - resolution: "@rollup/rollup-linux-riscv64-gnu@npm:4.22.1" +"@rollup/rollup-linux-riscv64-gnu@npm:4.28.0": + version: 4.28.0 + resolution: "@rollup/rollup-linux-riscv64-gnu@npm:4.28.0" conditions: os=linux & cpu=riscv64 & libc=glibc languageName: node linkType: hard -"@rollup/rollup-linux-s390x-gnu@npm:4.22.1": - version: 4.22.1 - resolution: "@rollup/rollup-linux-s390x-gnu@npm:4.22.1" +"@rollup/rollup-linux-s390x-gnu@npm:4.28.0": + version: 4.28.0 + resolution: "@rollup/rollup-linux-s390x-gnu@npm:4.28.0" conditions: os=linux & cpu=s390x & libc=glibc languageName: node linkType: hard -"@rollup/rollup-linux-x64-gnu@npm:4.22.1": - version: 4.22.1 - resolution: "@rollup/rollup-linux-x64-gnu@npm:4.22.1" +"@rollup/rollup-linux-x64-gnu@npm:4.28.0": + version: 4.28.0 + resolution: "@rollup/rollup-linux-x64-gnu@npm:4.28.0" conditions: os=linux & cpu=x64 & libc=glibc languageName: node linkType: hard -"@rollup/rollup-linux-x64-musl@npm:4.22.1": - version: 4.22.1 - resolution: "@rollup/rollup-linux-x64-musl@npm:4.22.1" +"@rollup/rollup-linux-x64-musl@npm:4.28.0": + version: 4.28.0 + resolution: "@rollup/rollup-linux-x64-musl@npm:4.28.0" conditions: os=linux & cpu=x64 & libc=musl languageName: node linkType: hard -"@rollup/rollup-win32-arm64-msvc@npm:4.22.1": - version: 4.22.1 - resolution: "@rollup/rollup-win32-arm64-msvc@npm:4.22.1" +"@rollup/rollup-win32-arm64-msvc@npm:4.28.0": + version: 4.28.0 + resolution: "@rollup/rollup-win32-arm64-msvc@npm:4.28.0" conditions: os=win32 & cpu=arm64 languageName: node linkType: hard -"@rollup/rollup-win32-ia32-msvc@npm:4.22.1": - version: 4.22.1 - resolution: "@rollup/rollup-win32-ia32-msvc@npm:4.22.1" +"@rollup/rollup-win32-ia32-msvc@npm:4.28.0": + version: 4.28.0 + resolution: "@rollup/rollup-win32-ia32-msvc@npm:4.28.0" conditions: os=win32 & cpu=ia32 languageName: node linkType: hard -"@rollup/rollup-win32-x64-msvc@npm:4.22.1": - version: 4.22.1 - resolution: "@rollup/rollup-win32-x64-msvc@npm:4.22.1" +"@rollup/rollup-win32-x64-msvc@npm:4.28.0": + version: 4.28.0 + resolution: "@rollup/rollup-win32-x64-msvc@npm:4.28.0" conditions: os=win32 & cpu=x64 languageName: node linkType: hard -"@sigstore/protobuf-specs@npm:^0.1.0": - version: 0.1.0 - resolution: "@sigstore/protobuf-specs@npm:0.1.0" - checksum: 10c0/fa373952653d4ea32c593f754cf04c56a57287c7357e830c9ded10c47318fe8e9ec82900109e63f60380828145928ec67f4a6229fc73da45b9771a3139e82f8f +"@rtsao/scc@npm:^1.1.0": + version: 1.1.0 + resolution: "@rtsao/scc@npm:1.1.0" + checksum: 10c0/b5bcfb0d87f7d1c1c7c0f7693f53b07866ed9fec4c34a97a8c948fb9a7c0082e416ce4d3b60beb4f5e167cbe04cdeefbf6771320f3ede059b9ce91188c409a5b languageName: node linkType: hard -"@sigstore/tuf@npm:^1.0.1": - version: 1.0.2 - resolution: "@sigstore/tuf@npm:1.0.2" +"@sigstore/bundle@npm:^2.3.2": + version: 2.3.2 + resolution: "@sigstore/bundle@npm:2.3.2" + dependencies: + "@sigstore/protobuf-specs": "npm:^0.3.2" + checksum: 10c0/872a95928236bd9950a2ecc66af1c60a82f6b482a62a20d0f817392d568a60739a2432cad70449ac01e44e9eaf85822d6d9ebc6ade6cb3e79a7d62226622eb5d + languageName: node + linkType: hard + +"@sigstore/core@npm:^1.0.0, @sigstore/core@npm:^1.1.0": + version: 1.1.0 + resolution: "@sigstore/core@npm:1.1.0" + checksum: 10c0/3b3420c1bd17de0371e1ac7c8f07a2cbcd24d6b49ace5bbf2b63f559ee08c4a80622a4d1c0ae42f2c9872166e9cb111f33f78bff763d47e5ef1efc62b8e457ea + languageName: node + linkType: hard + +"@sigstore/protobuf-specs@npm:^0.3.2": + version: 0.3.2 + resolution: "@sigstore/protobuf-specs@npm:0.3.2" + checksum: 10c0/108eed419181ff599763f2d28ff5087e7bce9d045919de548677520179fe77fb2e2b7290216c93c7a01bdb2972b604bf44599273c991bbdf628fbe1b9b70aacb + languageName: node + linkType: hard + +"@sigstore/sign@npm:^2.3.2": + version: 2.3.2 + resolution: "@sigstore/sign@npm:2.3.2" + dependencies: + "@sigstore/bundle": "npm:^2.3.2" + "@sigstore/core": "npm:^1.0.0" + "@sigstore/protobuf-specs": "npm:^0.3.2" + make-fetch-happen: "npm:^13.0.1" + proc-log: "npm:^4.2.0" + promise-retry: "npm:^2.0.1" + checksum: 10c0/a1e7908f3e4898f04db4d713fa10ddb3ae4f851592c9b554f1269073211e1417528b5088ecee60f27039fde5a5426ae573481d77cfd7e4395d2a0ddfcf5f365f + languageName: node + linkType: hard + +"@sigstore/tuf@npm:^2.3.4": + version: 2.3.4 + resolution: "@sigstore/tuf@npm:2.3.4" dependencies: - "@sigstore/protobuf-specs": "npm:^0.1.0" - tuf-js: "npm:^1.1.7" - checksum: 10c0/de76e20e6c131b118aa721c62efa1f7512ecbe3d94044770ddc06edb5d78be79fef0da1b81b69c2b012ed6fd2ace0fe0080e5dbdc40703d170de550188befb34 + "@sigstore/protobuf-specs": "npm:^0.3.2" + tuf-js: "npm:^2.2.1" + checksum: 10c0/97839882d787196517933df5505fae4634975807cc7adcd1783c7840c2a9729efb83ada47556ec326d544b9cb0d1851af990dc46eebb5fe7ea17bf7ce1fc0b8c + languageName: node + linkType: hard + +"@sigstore/verify@npm:^1.2.1": + version: 1.2.1 + resolution: "@sigstore/verify@npm:1.2.1" + dependencies: + "@sigstore/bundle": "npm:^2.3.2" + "@sigstore/core": "npm:^1.1.0" + "@sigstore/protobuf-specs": "npm:^0.3.2" + checksum: 10c0/af06580a8d5357c31259da1ac7323137054e0ac41e933278d95a4bc409a4463620125cb4c00b502f6bc32fdd68c2293019391b0d31ed921ee3852a9e84358628 languageName: node linkType: hard @@ -4451,21 +3793,21 @@ __metadata: languageName: node linkType: hard -"@storybook/addon-a11y@npm:^8.4.0": - version: 8.4.0 - resolution: "@storybook/addon-a11y@npm:8.4.0" +"@storybook/addon-a11y@npm:^8.4.7": + version: 8.4.7 + resolution: "@storybook/addon-a11y@npm:8.4.7" dependencies: - "@storybook/addon-highlight": "npm:8.4.0" + "@storybook/addon-highlight": "npm:8.4.7" axe-core: "npm:^4.2.0" peerDependencies: - storybook: ^8.4.0 - checksum: 10c0/458de1d4461f10b46936afbd71d63ba9550eb5d34a875dd622fa67e62542f0eb03e76ca8af5045da815a8e05756402c056be43092062d48e0278404a9b37b62a + storybook: ^8.4.7 + checksum: 10c0/d00c65b8e256dfc283774562e0ff3cabbd8b9f3fbe619eb23d2c9951d7b075cf29fe8bdb57d3f05756f649bee8b04dfbed6389e852632b40f748cb6c8bba8896 languageName: node linkType: hard -"@storybook/addon-actions@npm:8.4.0": - version: 8.4.0 - resolution: "@storybook/addon-actions@npm:8.4.0" +"@storybook/addon-actions@npm:8.4.7": + version: 8.4.7 + resolution: "@storybook/addon-actions@npm:8.4.7" dependencies: "@storybook/global": "npm:^5.0.0" "@types/uuid": "npm:^9.0.1" @@ -4473,149 +3815,149 @@ __metadata: polished: "npm:^4.2.2" uuid: "npm:^9.0.0" peerDependencies: - storybook: ^8.4.0 - checksum: 10c0/26ee043879a598a2917cb8aadcd895e22a6d39daa887c414f7097c6e3bda0cea9e894b75702a0c6ad24b4ff42e685f48aba9e75943645c65b73e12056ef74379 + storybook: ^8.4.7 + checksum: 10c0/411be60f358101291cbd4ff8e5ddbac58fa0583c95338b82b410dc030a73632b654eaf7004b421c7e309cf0bfa709c4f93728b943e1b59dcfff5a249686501c1 languageName: node linkType: hard -"@storybook/addon-backgrounds@npm:8.4.0": - version: 8.4.0 - resolution: "@storybook/addon-backgrounds@npm:8.4.0" +"@storybook/addon-backgrounds@npm:8.4.7": + version: 8.4.7 + resolution: "@storybook/addon-backgrounds@npm:8.4.7" dependencies: "@storybook/global": "npm:^5.0.0" memoizerific: "npm:^1.11.3" ts-dedent: "npm:^2.0.0" peerDependencies: - storybook: ^8.4.0 - checksum: 10c0/d34bf49721db95feecd7aef4ef191b33048c823c75d371a3662394ed530c31e93702447daaf00e73d88840c0397c492f22a61a433e9dbaf3b0f95e2d335e844a + storybook: ^8.4.7 + checksum: 10c0/d22c4acd1d99f616865dde11c70b444a0aac7fe7623904479a29a0142b504f284ddc2407eacfd1203c3b0856e5497e7902eb86e287516364c7735b90e224bbcb languageName: node linkType: hard -"@storybook/addon-controls@npm:8.4.0": - version: 8.4.0 - resolution: "@storybook/addon-controls@npm:8.4.0" +"@storybook/addon-controls@npm:8.4.7": + version: 8.4.7 + resolution: "@storybook/addon-controls@npm:8.4.7" dependencies: "@storybook/global": "npm:^5.0.0" dequal: "npm:^2.0.2" ts-dedent: "npm:^2.0.0" peerDependencies: - storybook: ^8.4.0 - checksum: 10c0/9bf0a48180c3688eaf6ae0ceb0012d86b1bc33501e53c63774f26db1c32ead4c14978723d43a0f894ece1ba5cf7ab644280fb8644d5e318f7bb52a88ff1c30e9 + storybook: ^8.4.7 + checksum: 10c0/900c71d172e9f75a1c39a87de1d411890fcea012586be02e3293c705c500a3a62a2bdecb10c11ba9c9f6117706dfbc34aaa40d2ca8e8a9d7b8a6a739d6a73e0c languageName: node linkType: hard -"@storybook/addon-docs@npm:8.4.0, @storybook/addon-docs@npm:^8.4.0": - version: 8.4.0 - resolution: "@storybook/addon-docs@npm:8.4.0" +"@storybook/addon-docs@npm:8.4.7, @storybook/addon-docs@npm:^8.4.7": + version: 8.4.7 + resolution: "@storybook/addon-docs@npm:8.4.7" dependencies: "@mdx-js/react": "npm:^3.0.0" - "@storybook/blocks": "npm:8.4.0" - "@storybook/csf-plugin": "npm:8.4.0" - "@storybook/react-dom-shim": "npm:8.4.0" + "@storybook/blocks": "npm:8.4.7" + "@storybook/csf-plugin": "npm:8.4.7" + "@storybook/react-dom-shim": "npm:8.4.7" react: "npm:^16.8.0 || ^17.0.0 || ^18.0.0" react-dom: "npm:^16.8.0 || ^17.0.0 || ^18.0.0" ts-dedent: "npm:^2.0.0" peerDependencies: - storybook: ^8.4.0 - checksum: 10c0/4286a387c5b1edc5cfaad5727e42a560a329bdcf966e23ccb3ca31680e6564ef3a1f74e7e717d5839dcb95872319392feb4ed65f96c92ed7171c8a73482d363d + storybook: ^8.4.7 + checksum: 10c0/0eb1854ddb6dbef1b32f89746944ee7a16db986403fe0a3712f43d39faa6335e0bce4ac21a8c20d09955ae73cccd1962f3b45037ab1144f61c1317d686e8695f languageName: node linkType: hard -"@storybook/addon-essentials@npm:^8.4.0": - version: 8.4.0 - resolution: "@storybook/addon-essentials@npm:8.4.0" +"@storybook/addon-essentials@npm:^8.4.7": + version: 8.4.7 + resolution: "@storybook/addon-essentials@npm:8.4.7" dependencies: - "@storybook/addon-actions": "npm:8.4.0" - "@storybook/addon-backgrounds": "npm:8.4.0" - "@storybook/addon-controls": "npm:8.4.0" - "@storybook/addon-docs": "npm:8.4.0" - "@storybook/addon-highlight": "npm:8.4.0" - "@storybook/addon-measure": "npm:8.4.0" - "@storybook/addon-outline": "npm:8.4.0" - "@storybook/addon-toolbars": "npm:8.4.0" - "@storybook/addon-viewport": "npm:8.4.0" + "@storybook/addon-actions": "npm:8.4.7" + "@storybook/addon-backgrounds": "npm:8.4.7" + "@storybook/addon-controls": "npm:8.4.7" + "@storybook/addon-docs": "npm:8.4.7" + "@storybook/addon-highlight": "npm:8.4.7" + "@storybook/addon-measure": "npm:8.4.7" + "@storybook/addon-outline": "npm:8.4.7" + "@storybook/addon-toolbars": "npm:8.4.7" + "@storybook/addon-viewport": "npm:8.4.7" ts-dedent: "npm:^2.0.0" peerDependencies: - storybook: ^8.4.0 - checksum: 10c0/f2909089c13d6d16658e5e4f59d41995bea74d0e318f1263541af960a8ad795887d0cebbc37197e8b532373965225d41a12ede727be023cd079ed7a6940e666a + storybook: ^8.4.7 + checksum: 10c0/82ddd8424dfd5bf0ef44cee6a320f8395c63678bc0d4566307b2c68bd83c39f6bd447fb421681e3ab581c35c9d991207b01bebf20269c083931f581bb4651d6d languageName: node linkType: hard -"@storybook/addon-highlight@npm:8.4.0": - version: 8.4.0 - resolution: "@storybook/addon-highlight@npm:8.4.0" +"@storybook/addon-highlight@npm:8.4.7": + version: 8.4.7 + resolution: "@storybook/addon-highlight@npm:8.4.7" dependencies: "@storybook/global": "npm:^5.0.0" peerDependencies: - storybook: ^8.4.0 - checksum: 10c0/8f5e09f03593cd4c7e2ff0f17680b31b3c764103cd302f20a9e1ec8f1e02fccb51445b5b3640eaefeb412ff868bf03951ffd8edaa3ada03ef2b3d90aabd3bfd8 + storybook: ^8.4.7 + checksum: 10c0/2256b880d1f83c86c64287988bd4f4b76a8e1990f2a2a080a322994a9a8e553013fc21b7503c218ec394a880c1b72b131975e6eeadec6accb7eb35d3cb85a6ce languageName: node linkType: hard -"@storybook/addon-links@npm:^8.4.0": - version: 8.4.0 - resolution: "@storybook/addon-links@npm:8.4.0" +"@storybook/addon-links@npm:^8.4.7": + version: 8.4.7 + resolution: "@storybook/addon-links@npm:8.4.7" dependencies: "@storybook/csf": "npm:^0.1.11" "@storybook/global": "npm:^5.0.0" ts-dedent: "npm:^2.0.0" peerDependencies: react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0-beta - storybook: ^8.4.0 + storybook: ^8.4.7 peerDependenciesMeta: react: optional: true - checksum: 10c0/d2c29c9cb30362a0922b20190f36e9b1869eef3254ccafc9fcc5e58ac3a2c15599da9d84ab4db9e5253aa85813e0aa409042afe6ef4d62d7a4454bf74af66b5b + checksum: 10c0/475d3231ac6c6531cfa5d01e8816b90cbf51e993c1575fa7bf541540bf76af52d7f1087e929b87d771ce41ae4fd7762df1e25c9d8543200630f8618d85b16520 languageName: node linkType: hard -"@storybook/addon-measure@npm:8.4.0": - version: 8.4.0 - resolution: "@storybook/addon-measure@npm:8.4.0" +"@storybook/addon-measure@npm:8.4.7": + version: 8.4.7 + resolution: "@storybook/addon-measure@npm:8.4.7" dependencies: "@storybook/global": "npm:^5.0.0" tiny-invariant: "npm:^1.3.1" peerDependencies: - storybook: ^8.4.0 - checksum: 10c0/946d7b02a77181007ea47ffd1ba54c10194748e2f219a4391aee5dc91ca6e76b8395fdb4533135f9592b57a2ef1532bc7729ef1b79dc1650181e87eafa467c3f + storybook: ^8.4.7 + checksum: 10c0/a9e87c91cbcade2d0059cdc471e8ba479ad6d9dee0c2558c3b706e37d58b4cb3d986924ea0ff623aa791300ee2a8d2429e8fb3ef32eeec9d49861f8677815ac2 languageName: node linkType: hard -"@storybook/addon-outline@npm:8.4.0": - version: 8.4.0 - resolution: "@storybook/addon-outline@npm:8.4.0" +"@storybook/addon-outline@npm:8.4.7": + version: 8.4.7 + resolution: "@storybook/addon-outline@npm:8.4.7" dependencies: "@storybook/global": "npm:^5.0.0" ts-dedent: "npm:^2.0.0" peerDependencies: - storybook: ^8.4.0 - checksum: 10c0/cf40b83ac66524374d9dfc4d8ab871bdea8c0a36042173158f2786abe4b7b1c6d4b54a2d8aa48cc424bb29ee20006e6460190d9ab9e488e8f95b546e47f376f3 + storybook: ^8.4.7 + checksum: 10c0/13e8579ad1e9c8e338a66935331764351d9681e177469c7be72bc8383d6ab0441a783b2089ac3a730979d9a97c347800a47769b1f1ab5b4dfd7fc31f29e1709f languageName: node linkType: hard -"@storybook/addon-toolbars@npm:8.4.0": - version: 8.4.0 - resolution: "@storybook/addon-toolbars@npm:8.4.0" +"@storybook/addon-toolbars@npm:8.4.7": + version: 8.4.7 + resolution: "@storybook/addon-toolbars@npm:8.4.7" peerDependencies: - storybook: ^8.4.0 - checksum: 10c0/bbe9f2cd207a55cb2b71b959f6f13a37841dcadc0d3151e14eb95bb3e26f0637236db20d9c7b52138fddecca742746068851f78c7d7a7aa47544e07096861a2d + storybook: ^8.4.7 + checksum: 10c0/1c315d5ad07291f35ad780ef69fbd6570a582c008ab911cf14bff84061546b9ea1373d1127213844652d73a47c3011d28c1ad08d465fc120969c133dabfe7638 languageName: node linkType: hard -"@storybook/addon-viewport@npm:8.4.0": - version: 8.4.0 - resolution: "@storybook/addon-viewport@npm:8.4.0" +"@storybook/addon-viewport@npm:8.4.7": + version: 8.4.7 + resolution: "@storybook/addon-viewport@npm:8.4.7" dependencies: memoizerific: "npm:^1.11.3" peerDependencies: - storybook: ^8.4.0 - checksum: 10c0/1c4b2cdd9dbf3a7fd3b857fbf86417f23670d534a747da2695a6e77d3d032a5b45791d3045cce2d57c7a1b5be01c10368e14144d2ae2b3f41be3fe69338fe212 + storybook: ^8.4.7 + checksum: 10c0/4dec3b59be1f3b99d3c9eaab695a7e346d975b772f6691f8286005d78a13a204c5680c6c8733ae83060c7639b56efed9f3580cee7413834ac6595b56345183ef languageName: node linkType: hard -"@storybook/blocks@npm:8.4.0": - version: 8.4.0 - resolution: "@storybook/blocks@npm:8.4.0" +"@storybook/blocks@npm:8.4.7": + version: 8.4.7 + resolution: "@storybook/blocks@npm:8.4.7" dependencies: "@storybook/csf": "npm:^0.1.11" "@storybook/icons": "npm:^1.2.12" @@ -4623,42 +3965,42 @@ __metadata: peerDependencies: react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0-beta react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0-beta - storybook: ^8.4.0 + storybook: ^8.4.7 peerDependenciesMeta: react: optional: true react-dom: optional: true - checksum: 10c0/2a64e1b17911c2afc175955eabbe763b5010782e1ba48c2f5179c76c35733b63c95cda517c391de69ce20767c168daafa9cbda5b7f7ff5a847b453ca430f265a + checksum: 10c0/1cb87811f9c7bad087dca752fb0d6483c237cb5776abea59cb555d8fce9ca14f4d5487725f5d8679a49f7e3f38bbe84189703498a31f2a9aa306f9fb3c8e65c8 languageName: node linkType: hard -"@storybook/builder-vite@npm:8.4.0, @storybook/builder-vite@npm:^8.4.0": - version: 8.4.0 - resolution: "@storybook/builder-vite@npm:8.4.0" +"@storybook/builder-vite@npm:8.4.7": + version: 8.4.7 + resolution: "@storybook/builder-vite@npm:8.4.7" dependencies: - "@storybook/csf-plugin": "npm:8.4.0" + "@storybook/csf-plugin": "npm:8.4.7" browser-assert: "npm:^1.2.1" ts-dedent: "npm:^2.0.0" peerDependencies: - storybook: ^8.4.0 - vite: ^4.0.0 || ^5.0.0 - checksum: 10c0/76da5c41431d2bce122ebf72cefa707eccb1ddca6114a60699e64565799993fcbb2f361ffa74e9ac5766f20c8fdb8c3d3f6eedb1a13f91732fb41db9c6252450 + storybook: ^8.4.7 + vite: ^4.0.0 || ^5.0.0 || ^6.0.0 + checksum: 10c0/138651b9042356972580a121eb3116c745f9fbc8b188ae0a5e543070dc54fcb6c1f14d35bc0cd1294ee763993a5f0e3a30cbe92508e74d183fed04a4d4125591 languageName: node linkType: hard -"@storybook/components@npm:^8.4.0": - version: 8.4.0 - resolution: "@storybook/components@npm:8.4.0" +"@storybook/components@npm:8.4.7": + version: 8.4.7 + resolution: "@storybook/components@npm:8.4.7" peerDependencies: - storybook: ^8.4.0 - checksum: 10c0/6fba19e0ca5b556d09f3783a37125263805cad86660de18d5003f63592c8046180ecf829206a83280416057f91504faeb9b9aaef0b0d7db37f952a4c138db980 + storybook: ^8.2.0 || ^8.3.0-0 || ^8.4.0-0 || ^8.5.0-0 || ^8.6.0-0 + checksum: 10c0/7c1eb12fe2310a306f3c2f77a499c3a0caeb4694d4af8dde418f3b2d2ac8a3549b3f56cdc4629b9c15d79177c72e8668dd781a71bf257948f799b0e9cba201fa languageName: node linkType: hard -"@storybook/core@npm:8.4.0": - version: 8.4.0 - resolution: "@storybook/core@npm:8.4.0" +"@storybook/core@npm:8.4.7": + version: 8.4.7 + resolution: "@storybook/core@npm:8.4.7" dependencies: "@storybook/csf": "npm:^0.1.11" better-opn: "npm:^3.0.2" @@ -4676,18 +4018,18 @@ __metadata: peerDependenciesMeta: prettier: optional: true - checksum: 10c0/0363e7f45d8345e03529d8460f347d75ec533092c22f1a676b095252e75a0d3a8aed7e72d7b34bb1b52e07aea2c687b3e5313974207eb1fd0b90fea1ee44509a + checksum: 10c0/0943ea7cd092739834ae4347cb46c66aa1c238ee9494af60345364f11568ee60d6290875a593808cd7aeb79715ae27365c2448e6ae5c644e316cd194af184755 languageName: node linkType: hard -"@storybook/csf-plugin@npm:8.4.0": - version: 8.4.0 - resolution: "@storybook/csf-plugin@npm:8.4.0" +"@storybook/csf-plugin@npm:8.4.7": + version: 8.4.7 + resolution: "@storybook/csf-plugin@npm:8.4.7" dependencies: unplugin: "npm:^1.3.1" peerDependencies: - storybook: ^8.4.0 - checksum: 10c0/60f7f68a2b017f566dc589e9bbdcc4237fa7bdf7a82c99967595c8fd71a502dd5fd0f41fb2761fa7cabc171d44483de457a96cb1978fc63e0723cd15aba4608c + storybook: ^8.4.7 + checksum: 10c0/da38e2422e474e323e237e569b3dd678af77d975a4a08fa36108e66c9228858e510246628e18b013bd859a4e674c1a3d0072952a71dac0d7058e03e7c3417b3f languageName: node linkType: hard @@ -4717,43 +4059,43 @@ __metadata: languageName: node linkType: hard -"@storybook/manager-api@npm:^8.4.0": - version: 8.4.0 - resolution: "@storybook/manager-api@npm:8.4.0" +"@storybook/manager-api@npm:8.4.7": + version: 8.4.7 + resolution: "@storybook/manager-api@npm:8.4.7" peerDependencies: - storybook: ^8.4.0 - checksum: 10c0/819257b2b919a0a37b6f66fc0006d97f62157e8c8451257b3ed42455f64c60f76c4adf02641770bfeb3ade806698bac8892d4b5ae8620af532007c902eea2c32 + storybook: ^8.2.0 || ^8.3.0-0 || ^8.4.0-0 || ^8.5.0-0 || ^8.6.0-0 + checksum: 10c0/a3aeed441a2cca1a8fac73336a853b389a00a1e7dbbbbcd54492a90f2f12f86e976235fd1272f27a606532fb7e0f82dec3f7ecd1f2b87b03ffa74b667830152a languageName: node linkType: hard -"@storybook/preview-api@npm:^8.4.0": - version: 8.4.0 - resolution: "@storybook/preview-api@npm:8.4.0" +"@storybook/preview-api@npm:8.4.7": + version: 8.4.7 + resolution: "@storybook/preview-api@npm:8.4.7" peerDependencies: - storybook: ^8.4.0 - checksum: 10c0/9571df165e7d2deb26e4362867b3278d9d2de7ed83a9d7c32a27e3225e4c0681a442e513fc39c99636c73145c227c394faca1403edfcf68d804666852199e79c + storybook: ^8.2.0 || ^8.3.0-0 || ^8.4.0-0 || ^8.5.0-0 || ^8.6.0-0 + checksum: 10c0/86e8dd8e46b20a4cab99655ded093a76ae5a2b2b9ab03af57292022c8143d76e0f76a137f8768b8f6847fd1b522abf3dee8504f0ba5ff16b5779120d3875967c languageName: node linkType: hard -"@storybook/react-dom-shim@npm:8.4.0": - version: 8.4.0 - resolution: "@storybook/react-dom-shim@npm:8.4.0" +"@storybook/react-dom-shim@npm:8.4.7": + version: 8.4.7 + resolution: "@storybook/react-dom-shim@npm:8.4.7" peerDependencies: react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0-beta react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0-beta - storybook: ^8.4.0 - checksum: 10c0/8bdb2bf29cd7732fb5b78ab2ab49f6ab5fb313396dac3df558ce0611aee66259264bf0f3cc5bddf52f8bdad82269db39643ae9517e97ae6fe6fe7aa17a3c1832 + storybook: ^8.4.7 + checksum: 10c0/5db1306c844a36264587836860d17f3fd44e5981a2417e66ccb0699d2b05364736f29df2ebc605ae19a7f7b9b9d6a19845771c3052b167ce27702e20337cd334 languageName: node linkType: hard -"@storybook/react-vite@npm:^8.4.0": - version: 8.4.0 - resolution: "@storybook/react-vite@npm:8.4.0" +"@storybook/react-vite@npm:^8.4.7": + version: 8.4.7 + resolution: "@storybook/react-vite@npm:8.4.7" dependencies: - "@joshwooding/vite-plugin-react-docgen-typescript": "npm:0.3.0" + "@joshwooding/vite-plugin-react-docgen-typescript": "npm:0.4.2" "@rollup/pluginutils": "npm:^5.0.2" - "@storybook/builder-vite": "npm:8.4.0" - "@storybook/react": "npm:8.4.0" + "@storybook/builder-vite": "npm:8.4.7" + "@storybook/react": "npm:8.4.7" find-up: "npm:^5.0.0" magic-string: "npm:^0.30.0" react-docgen: "npm:^7.0.0" @@ -4762,43 +4104,43 @@ __metadata: peerDependencies: react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0-beta react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0-beta - storybook: ^8.4.0 - vite: ^4.0.0 || ^5.0.0 - checksum: 10c0/ee2eda314134cc08a464fce1b05f3f28c75f14361fd6616769b3d098e78482d7a3419a660d607ad4c592a92cf8c951532dc81cf581025227dbde48612bd9a76c + storybook: ^8.4.7 + vite: ^4.0.0 || ^5.0.0 || ^6.0.0 + checksum: 10c0/105d967cc7aa9168b60723b6325d1d011836a2d6a5b9a4e45a13a64ccae26b7794fb3eb70042ab4b4af2af705078e34250c834bfe305c090b3dd22cf67301978 languageName: node linkType: hard -"@storybook/react@npm:8.4.0, @storybook/react@npm:^8.4.0": - version: 8.4.0 - resolution: "@storybook/react@npm:8.4.0" +"@storybook/react@npm:8.4.7": + version: 8.4.7 + resolution: "@storybook/react@npm:8.4.7" dependencies: - "@storybook/components": "npm:^8.4.0" + "@storybook/components": "npm:8.4.7" "@storybook/global": "npm:^5.0.0" - "@storybook/manager-api": "npm:^8.4.0" - "@storybook/preview-api": "npm:^8.4.0" - "@storybook/react-dom-shim": "npm:8.4.0" - "@storybook/theming": "npm:^8.4.0" + "@storybook/manager-api": "npm:8.4.7" + "@storybook/preview-api": "npm:8.4.7" + "@storybook/react-dom-shim": "npm:8.4.7" + "@storybook/theming": "npm:8.4.7" peerDependencies: - "@storybook/test": 8.4.0 + "@storybook/test": 8.4.7 react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0-beta react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0-beta - storybook: ^8.4.0 + storybook: ^8.4.7 typescript: ">= 4.2.x" peerDependenciesMeta: "@storybook/test": optional: true typescript: optional: true - checksum: 10c0/9928a06bcb9e8b0070cf30f1b9de1e5a3648879584b885c19d6abb8eff629253e3f7a18aa4becf119bfd358573419a9e1a1151b5f8b8bd29b7df5a42c2529834 + checksum: 10c0/9ca588446171491458e9adb5f9cf69b17517feddb4edd876da495843a45fa48a9c9272d4823090546e24a78dd7a93f1dcedef96257054383eb5678bfae6ccc09 languageName: node linkType: hard -"@storybook/theming@npm:^8.4.0": - version: 8.4.0 - resolution: "@storybook/theming@npm:8.4.0" +"@storybook/theming@npm:8.4.7": + version: 8.4.7 + resolution: "@storybook/theming@npm:8.4.7" peerDependencies: - storybook: ^8.4.0 - checksum: 10c0/70333803b3d59967b23d34674869ba446d1aaa1af9538de12f28ba2e1a7d701f97099be979e817edf79c97f5698a0a8f5766184da33b707876f8f8006115ac37 + storybook: ^8.2.0 || ^8.3.0-0 || ^8.4.0-0 || ^8.5.0-0 || ^8.6.0-0 + checksum: 10c0/20a4975478063cea616ce6ab6b1e9ec181af1424280678ed74dc5afc15b828c043e843696a1643601331c4fd266169ec4bcc5bb43fd2f1f3c01c0e21443a658a languageName: node linkType: hard @@ -4963,63 +4305,54 @@ __metadata: languageName: node linkType: hard -"@testing-library/dom@npm:^9.0.0": - version: 9.3.0 - resolution: "@testing-library/dom@npm:9.3.0" +"@testing-library/dom@npm:^10.4.0": + version: 10.4.0 + resolution: "@testing-library/dom@npm:10.4.0" dependencies: "@babel/code-frame": "npm:^7.10.4" "@babel/runtime": "npm:^7.12.5" "@types/aria-query": "npm:^5.0.1" - aria-query: "npm:^5.0.0" + aria-query: "npm:5.3.0" chalk: "npm:^4.1.0" dom-accessibility-api: "npm:^0.5.9" lz-string: "npm:^1.5.0" pretty-format: "npm:^27.0.2" - checksum: 10c0/c5f9b6cf6ddf31e4556961d5ec8a6d700b953df3181860355e9506efe8825d40952286ab392b2f6aeb5cbaebf2f022562ef168c34f730f88d7c977e63ac41d82 + checksum: 10c0/0352487720ecd433400671e773df0b84b8268fb3fe8e527cdfd7c11b1365b398b4e0eddba6e7e0c85e8d615f48257753283fccec41f6b986fd6c85f15eb5f84f languageName: node linkType: hard -"@testing-library/jest-dom@npm:^6.1.5": - version: 6.1.5 - resolution: "@testing-library/jest-dom@npm:6.1.5" +"@testing-library/jest-dom@npm:^6.6.3": + version: 6.6.3 + resolution: "@testing-library/jest-dom@npm:6.6.3" dependencies: - "@adobe/css-tools": "npm:^4.3.1" - "@babel/runtime": "npm:^7.9.2" + "@adobe/css-tools": "npm:^4.4.0" aria-query: "npm:^5.0.0" chalk: "npm:^3.0.0" css.escape: "npm:^1.5.1" - dom-accessibility-api: "npm:^0.5.6" - lodash: "npm:^4.17.15" + dom-accessibility-api: "npm:^0.6.3" + lodash: "npm:^4.17.21" redent: "npm:^3.0.0" - peerDependencies: - "@jest/globals": ">= 28" - "@types/jest": ">= 28" - jest: ">= 28" - vitest: ">= 0.32" - peerDependenciesMeta: - "@jest/globals": - optional: true - "@types/jest": - optional: true - jest: - optional: true - vitest: - optional: true - checksum: 10c0/f3643a56fcd970b5c7e8fd10faf3c4817d8ab0e74fb1198d726643bdc5ac675ceaac3b0068c5b4fbad254470e8f98ed50028741de875a29ceaa2f854570979c9 + checksum: 10c0/5566b6c0b7b0709bc244aec3aa3dc9e5f4663e8fb2b99d8cd456fc07279e59db6076cbf798f9d3099a98fca7ef4cd50e4e1f4c4dec5a60a8fad8d24a638a5bf6 languageName: node linkType: hard -"@testing-library/react@npm:14.1.2": - version: 14.1.2 - resolution: "@testing-library/react@npm:14.1.2" +"@testing-library/react@npm:16.1.0": + version: 16.1.0 + resolution: "@testing-library/react@npm:16.1.0" dependencies: "@babel/runtime": "npm:^7.12.5" - "@testing-library/dom": "npm:^9.0.0" - "@types/react-dom": "npm:^18.0.0" peerDependencies: - react: ^18.0.0 - react-dom: ^18.0.0 - checksum: 10c0/b5b0990d3aa0ea8b37c55804e0d5d584fc638a5c7d4df90da9a0fdb00bc981b27b6991468b2dc719982a5d0b0107a41596063ce51ad519eeab47b22bc04d6779 + "@testing-library/dom": ^10.0.0 + "@types/react": ^18.0.0 || ^19.0.0 + "@types/react-dom": ^18.0.0 || ^19.0.0 + react: ^18.0.0 || ^19.0.0 + react-dom: ^18.0.0 || ^19.0.0 + peerDependenciesMeta: + "@types/react": + optional: true + "@types/react-dom": + optional: true + checksum: 10c0/8451dcc76ba0d4f3504af78f2a4aacc13117691f4b7a3c279f3e047d5ea817ff686496ad53e7f65f6183112aef2be3f318af609b1f5d666eed42b1014d1c68d5 languageName: node linkType: hard @@ -5089,27 +4422,36 @@ __metadata: languageName: node linkType: hard -"@tufjs/canonical-json@npm:1.0.0": - version: 1.0.0 - resolution: "@tufjs/canonical-json@npm:1.0.0" - checksum: 10c0/6d28fdfa1fe22cc6a3ff41de8bf74c46dee6d4ff00e8a33519d84e060adaaa04bbdaf17fbcd102511fbdd5e4b8d2a67341c9aaf0cd641be1aea386442f4b1e88 +"@tufjs/canonical-json@npm:2.0.0": + version: 2.0.0 + resolution: "@tufjs/canonical-json@npm:2.0.0" + checksum: 10c0/52c5ffaef1483ed5c3feedfeba26ca9142fa386eea54464e70ff515bd01c5e04eab05d01eff8c2593291dcaf2397ca7d9c512720e11f52072b04c47a5c279415 languageName: node linkType: hard -"@tufjs/models@npm:1.0.4": - version: 1.0.4 - resolution: "@tufjs/models@npm:1.0.4" +"@tufjs/models@npm:2.0.1": + version: 2.0.1 + resolution: "@tufjs/models@npm:2.0.1" dependencies: - "@tufjs/canonical-json": "npm:1.0.0" - minimatch: "npm:^9.0.0" - checksum: 10c0/99bcfa6ecd642861a21e4874c4a687bb57f7c2ab7e10c6756b576c2fa4a6f2be3d21ba8e76334f11ea2846949b514b10fa59584aaee0a100e09e9263114b635b + "@tufjs/canonical-json": "npm:2.0.0" + minimatch: "npm:^9.0.4" + checksum: 10c0/ad9e82fd921954501fd90ed34ae062254637595577ad13fdc1e076405c0ea5ee7d8aebad09e63032972fd92b07f1786c15b24a195a171fc8ac470ca8e2ffbcc4 + languageName: node + linkType: hard + +"@tybys/wasm-util@npm:^0.9.0": + version: 0.9.0 + resolution: "@tybys/wasm-util@npm:0.9.0" + dependencies: + tslib: "npm:^2.4.0" + checksum: 10c0/f9fde5c554455019f33af6c8215f1a1435028803dc2a2825b077d812bed4209a1a64444a4ca0ce2ea7e1175c8d88e2f9173a36a33c199e8a5c671aa31de8242d languageName: node linkType: hard "@types/aria-query@npm:^5.0.1": - version: 5.0.1 - resolution: "@types/aria-query@npm:5.0.1" - checksum: 10c0/bc9e40ce37bd3a1654948778c7829bd55aea1bc5f2cd06fcf6cd650b07bb388995799e9aab6e2d93a6cf55dcba3b85c155f7ba93adefcc7c2e152fc6057061b5 + version: 5.0.4 + resolution: "@types/aria-query@npm:5.0.4" + checksum: 10c0/dc667bc6a3acc7bba2bccf8c23d56cb1f2f4defaa704cfef595437107efaa972d3b3db9ec1d66bc2711bfc35086821edd32c302bffab36f2e79b97f312069f08 languageName: node linkType: hard @@ -5170,20 +4512,10 @@ __metadata: languageName: node linkType: hard -"@types/estree@npm:1.0.5, @types/estree@npm:^1.0.0": - version: 1.0.5 - resolution: "@types/estree@npm:1.0.5" - checksum: 10c0/b3b0e334288ddb407c7b3357ca67dbee75ee22db242ca7c56fe27db4e1a31989cb8af48a84dd401deb787fe10cc6b2ab1ee82dc4783be87ededbe3d53c79c70d - languageName: node - linkType: hard - -"@types/glob@npm:^7.1.3": - version: 7.2.0 - resolution: "@types/glob@npm:7.2.0" - dependencies: - "@types/minimatch": "npm:*" - "@types/node": "npm:*" - checksum: 10c0/a8eb5d5cb5c48fc58c7ca3ff1e1ddf771ee07ca5043da6e4871e6757b4472e2e73b4cfef2644c38983174a4bc728c73f8da02845c28a1212f98cabd293ecae98 +"@types/estree@npm:1.0.6, @types/estree@npm:^1.0.0, @types/estree@npm:^1.0.6": + version: 1.0.6 + resolution: "@types/estree@npm:1.0.6" + checksum: 10c0/cdfd751f6f9065442cd40957c07fd80361c962869aa853c1c2fd03e101af8b9389d8ff4955a43a6fcfa223dd387a089937f95be0f3eec21ca527039fd2d9859a languageName: node linkType: hard @@ -5232,13 +4564,13 @@ __metadata: languageName: node linkType: hard -"@types/jest@npm:^29.5.10": - version: 29.5.10 - resolution: "@types/jest@npm:29.5.10" +"@types/jest@npm:^29.5.14": + version: 29.5.14 + resolution: "@types/jest@npm:29.5.14" dependencies: expect: "npm:^29.0.0" pretty-format: "npm:^29.0.0" - checksum: 10c0/b46171d59d12a5f69bbe710f65eaf59a8073337c6b4a67dff8158575caec53f1c61f8a7d645b34d6ac3c4ea398acd30f0c5d1c4a131c0c918798019264a3397d + checksum: 10c0/18e0712d818890db8a8dab3d91e9ea9f7f19e3f83c2e50b312f557017dc81466207a71f3ed79cf4428e813ba939954fa26ffa0a9a7f153181ba174581b1c2aed languageName: node linkType: hard @@ -5253,10 +4585,10 @@ __metadata: languageName: node linkType: hard -"@types/json-schema@npm:^7.0.12, @types/json-schema@npm:^7.0.6": - version: 7.0.12 - resolution: "@types/json-schema@npm:7.0.12" - checksum: 10c0/2c39946ae321fe42d085c61a85872a81bbee70f9b2054ad344e8811dfc478fdbaf1ebf5f2989bb87c895ba2dfc3b1dcba85db11e467bbcdc023708814207791c +"@types/json-schema@npm:^7.0.15, @types/json-schema@npm:^7.0.6": + version: 7.0.15 + resolution: "@types/json-schema@npm:7.0.15" + checksum: 10c0/a996a745e6c5d60292f36731dd41341339d4eeed8180bb09226e5c8d23759067692b1d88e5d91d72ee83dfc00d3aca8e7bd43ea120516c17922cbcb7c3e252db languageName: node linkType: hard @@ -5290,13 +4622,6 @@ __metadata: languageName: node linkType: hard -"@types/minimatch@npm:*": - version: 5.1.2 - resolution: "@types/minimatch@npm:5.1.2" - checksum: 10c0/83cf1c11748891b714e129de0585af4c55dd4c2cafb1f1d5233d79246e5e1e19d1b5ad9e8db449667b3ffa2b6c80125c429dbee1054e9efb45758dbc4e118562 - languageName: node - linkType: hard - "@types/minimatch@npm:^3.0.3": version: 3.0.5 resolution: "@types/minimatch@npm:3.0.5" @@ -5350,36 +4675,21 @@ __metadata: languageName: node linkType: hard -"@types/parse-json@npm:^4.0.0": - version: 4.0.0 - resolution: "@types/parse-json@npm:4.0.0" - checksum: 10c0/1d3012ab2fcdad1ba313e1d065b737578f6506c8958e2a7a5bdbdef517c7e930796cb1599ee067d5dee942fb3a764df64b5eef7e9ae98548d776e86dcffba985 - languageName: node - linkType: hard - -"@types/prop-types@npm:*": - version: 15.7.3 - resolution: "@types/prop-types@npm:15.7.3" - checksum: 10c0/511aac811bfdba9dd1c463d6e502d852bb2196048cf861fbf48a97d883dd32c1c44ad2127a18dbb49733d9ad0aafd445d673eb50d5547ca843106835f67b5877 - languageName: node - linkType: hard - -"@types/react-dom@npm:^18.0.0, @types/react-dom@npm:^18.3.0": - version: 18.3.0 - resolution: "@types/react-dom@npm:18.3.0" +"@types/react-dom@npm:^19.0.1": + version: 19.0.1 + resolution: "@types/react-dom@npm:19.0.1" dependencies: "@types/react": "npm:*" - checksum: 10c0/6c90d2ed72c5a0e440d2c75d99287e4b5df3e7b011838cdc03ae5cd518ab52164d86990e73246b9d812eaf02ec351d74e3b4f5bd325bf341e13bf980392fd53b + checksum: 10c0/fb40069a7c5c70475155dff91d25ff5a51226c14d45c8ad55894480366876426981c8be63ef322486af879bb220bf48443f2344c1a89cb75a47a1a761acee9d3 languageName: node linkType: hard -"@types/react@npm:*, @types/react@npm:^18.3.2": - version: 18.3.2 - resolution: "@types/react@npm:18.3.2" +"@types/react@npm:*, @types/react@npm:^19.0.0": + version: 19.0.0 + resolution: "@types/react@npm:19.0.0" dependencies: - "@types/prop-types": "npm:*" csstype: "npm:^3.0.2" - checksum: 10c0/9fb2f1fcf7e889ee4ea7c3c5978df595c66e770e5fd3a245dbdd2589b9b911524c11dab25a6275d8af4e336e4cb5fa850d447884b84c335a187a338c89df99ba + checksum: 10c0/d7753ec27c5fa48f3aab97d7d4e9e33ad62bbff761a421bfc56c7b403fab9e3ed266d47793e44311ca2f0034e8ae428cea4aecbe1c542b418cfe72a520eab931 languageName: node linkType: hard @@ -5390,13 +4700,6 @@ __metadata: languageName: node linkType: hard -"@types/semver@npm:^7.5.0": - version: 7.5.0 - resolution: "@types/semver@npm:7.5.0" - checksum: 10c0/ca4ba4642b5972b6e88e73c5bc02bbaceb8d76bce71748d86e3e95042d4e5a44603113a1dcd2cb9b73ad6f91f6e4ab73185eb41bbfc9c73b11f0ed3db3b7443a - languageName: node - linkType: hard - "@types/stack-utils@npm:^2.0.0": version: 2.0.0 resolution: "@types/stack-utils@npm:2.0.0" @@ -5434,133 +4737,124 @@ __metadata: languageName: node linkType: hard -"@typescript-eslint/eslint-plugin@npm:^7.1.1": - version: 7.1.1 - resolution: "@typescript-eslint/eslint-plugin@npm:7.1.1" +"@typescript-eslint/eslint-plugin@npm:8.15.0": + version: 8.15.0 + resolution: "@typescript-eslint/eslint-plugin@npm:8.15.0" dependencies: - "@eslint-community/regexpp": "npm:^4.5.1" - "@typescript-eslint/scope-manager": "npm:7.1.1" - "@typescript-eslint/type-utils": "npm:7.1.1" - "@typescript-eslint/utils": "npm:7.1.1" - "@typescript-eslint/visitor-keys": "npm:7.1.1" - debug: "npm:^4.3.4" + "@eslint-community/regexpp": "npm:^4.10.0" + "@typescript-eslint/scope-manager": "npm:8.15.0" + "@typescript-eslint/type-utils": "npm:8.15.0" + "@typescript-eslint/utils": "npm:8.15.0" + "@typescript-eslint/visitor-keys": "npm:8.15.0" graphemer: "npm:^1.4.0" - ignore: "npm:^5.2.4" + ignore: "npm:^5.3.1" natural-compare: "npm:^1.4.0" - semver: "npm:^7.5.4" - ts-api-utils: "npm:^1.0.1" + ts-api-utils: "npm:^1.3.0" peerDependencies: - "@typescript-eslint/parser": ^7.0.0 - eslint: ^8.56.0 + "@typescript-eslint/parser": ^8.0.0 || ^8.0.0-alpha.0 + eslint: ^8.57.0 || ^9.0.0 peerDependenciesMeta: typescript: optional: true - checksum: 10c0/041799604176bbee01f6ff029c5e2fcf1196db2737ba219a20b095f095dc0064ea425d15dd6dc22eaef294daa838209601ec7bc19317258dfa89a13afb8126ba + checksum: 10c0/90ef10cc7d37a81abec4f4a3ffdfc3a0da8e99d949e03c75437e96e8ab2e896e34b85ab64718690180a7712581031b8611c5d8e7666d6ed4d60b9ace834d58e3 languageName: node linkType: hard -"@typescript-eslint/parser@npm:^7.1.1": - version: 7.1.1 - resolution: "@typescript-eslint/parser@npm:7.1.1" +"@typescript-eslint/parser@npm:8.15.0": + version: 8.15.0 + resolution: "@typescript-eslint/parser@npm:8.15.0" dependencies: - "@typescript-eslint/scope-manager": "npm:7.1.1" - "@typescript-eslint/types": "npm:7.1.1" - "@typescript-eslint/typescript-estree": "npm:7.1.1" - "@typescript-eslint/visitor-keys": "npm:7.1.1" + "@typescript-eslint/scope-manager": "npm:8.15.0" + "@typescript-eslint/types": "npm:8.15.0" + "@typescript-eslint/typescript-estree": "npm:8.15.0" + "@typescript-eslint/visitor-keys": "npm:8.15.0" debug: "npm:^4.3.4" peerDependencies: - eslint: ^8.56.0 + eslint: ^8.57.0 || ^9.0.0 peerDependenciesMeta: typescript: optional: true - checksum: 10c0/84eb44f3767aaa1d7b26176348c89bd6732bc711f7f24186b1354eba95bf9e9c65b5675838772b831391210e525ff1f3bd4b51a3130ec35413aa362920effc57 + checksum: 10c0/19c25aea0dc51faa758701a5319a89950fd30494d9d645db8ced84fb60714c5e7d4b51fc4ee8ccb07ddefec88c51ee307ee7e49addd6330ee8f3e7ee9ba329fc languageName: node linkType: hard -"@typescript-eslint/scope-manager@npm:7.1.1": - version: 7.1.1 - resolution: "@typescript-eslint/scope-manager@npm:7.1.1" +"@typescript-eslint/scope-manager@npm:8.15.0": + version: 8.15.0 + resolution: "@typescript-eslint/scope-manager@npm:8.15.0" dependencies: - "@typescript-eslint/types": "npm:7.1.1" - "@typescript-eslint/visitor-keys": "npm:7.1.1" - checksum: 10c0/a955c8529f24945d448b95982d06b5f15a74fc5df97307f5821d55e9861d6c26d61cbd118c1ca41634164ed1d4f6c74fcb8388761341c49e6902a6fb72036afc + "@typescript-eslint/types": "npm:8.15.0" + "@typescript-eslint/visitor-keys": "npm:8.15.0" + checksum: 10c0/c27dfdcea4100cc2d6fa967f857067cbc93155b55e648f9f10887a1b9372bb76cf864f7c804f3fa48d7868d9461cdef10bcea3dab7637d5337e8aa8042dc08b9 languageName: node linkType: hard -"@typescript-eslint/type-utils@npm:7.1.1": - version: 7.1.1 - resolution: "@typescript-eslint/type-utils@npm:7.1.1" +"@typescript-eslint/type-utils@npm:8.15.0": + version: 8.15.0 + resolution: "@typescript-eslint/type-utils@npm:8.15.0" dependencies: - "@typescript-eslint/typescript-estree": "npm:7.1.1" - "@typescript-eslint/utils": "npm:7.1.1" + "@typescript-eslint/typescript-estree": "npm:8.15.0" + "@typescript-eslint/utils": "npm:8.15.0" debug: "npm:^4.3.4" - ts-api-utils: "npm:^1.0.1" + ts-api-utils: "npm:^1.3.0" peerDependencies: - eslint: ^8.56.0 + eslint: ^8.57.0 || ^9.0.0 peerDependenciesMeta: typescript: optional: true - checksum: 10c0/6f19dc383718cce42ed7262d134f5f0221bcbf225fea28975cd714c90e57d861608d5187c7ad731f6281813f94b00f22282a99a8a852167366064abc6e256341 + checksum: 10c0/20f09c79c83b38a962cf7eff10d47a2c01bcc0bab7bf6d762594221cd89023ef8c7aec26751c47b524f53f5c8d38bba55a282529b3df82d5f5ab4350496316f9 languageName: node linkType: hard -"@typescript-eslint/types@npm:7.1.1": - version: 7.1.1 - resolution: "@typescript-eslint/types@npm:7.1.1" - checksum: 10c0/2bef95ec0c60e67fada336db3e82fac2be16c21a9e54fc45c7aeda3291abcceefa12aa970025db88bc2b3e113b1e70abd7f89c2a651c16b816dff1a0c46e7907 +"@typescript-eslint/types@npm:8.15.0": + version: 8.15.0 + resolution: "@typescript-eslint/types@npm:8.15.0" + checksum: 10c0/84abc6fd954aff13822a76ac49efdcb90a55c0025c20eee5d8cebcfb68faff33b79bbc711ea524e0209cecd90c5ee3a5f92babc7083c081d3a383a0710264a41 languageName: node linkType: hard -"@typescript-eslint/typescript-estree@npm:7.1.1": - version: 7.1.1 - resolution: "@typescript-eslint/typescript-estree@npm:7.1.1" +"@typescript-eslint/typescript-estree@npm:8.15.0": + version: 8.15.0 + resolution: "@typescript-eslint/typescript-estree@npm:8.15.0" dependencies: - "@typescript-eslint/types": "npm:7.1.1" - "@typescript-eslint/visitor-keys": "npm:7.1.1" + "@typescript-eslint/types": "npm:8.15.0" + "@typescript-eslint/visitor-keys": "npm:8.15.0" debug: "npm:^4.3.4" - globby: "npm:^11.1.0" + fast-glob: "npm:^3.3.2" is-glob: "npm:^4.0.3" - minimatch: "npm:9.0.3" - semver: "npm:^7.5.4" - ts-api-utils: "npm:^1.0.1" + minimatch: "npm:^9.0.4" + semver: "npm:^7.6.0" + ts-api-utils: "npm:^1.3.0" peerDependenciesMeta: typescript: optional: true - checksum: 10c0/2cec9d21cfe46e523a6d29aff554e5450edf1ee30ce9cf644ee8f1f5e1cfd44b94afb3632db97a949c86c4a392ae80f264d56d8747b2b0fdbe5c54139433366a + checksum: 10c0/3af5c129532db3575349571bbf64d32aeccc4f4df924ac447f5d8f6af8b387148df51965eb2c9b99991951d3dadef4f2509d7ce69bf34a2885d013c040762412 languageName: node linkType: hard -"@typescript-eslint/utils@npm:7.1.1": - version: 7.1.1 - resolution: "@typescript-eslint/utils@npm:7.1.1" +"@typescript-eslint/utils@npm:8.15.0": + version: 8.15.0 + resolution: "@typescript-eslint/utils@npm:8.15.0" dependencies: "@eslint-community/eslint-utils": "npm:^4.4.0" - "@types/json-schema": "npm:^7.0.12" - "@types/semver": "npm:^7.5.0" - "@typescript-eslint/scope-manager": "npm:7.1.1" - "@typescript-eslint/types": "npm:7.1.1" - "@typescript-eslint/typescript-estree": "npm:7.1.1" - semver: "npm:^7.5.4" + "@typescript-eslint/scope-manager": "npm:8.15.0" + "@typescript-eslint/types": "npm:8.15.0" + "@typescript-eslint/typescript-estree": "npm:8.15.0" peerDependencies: - eslint: ^8.56.0 - checksum: 10c0/3e70834c5b49e4643ec8da63fa2acaab54283a566af2cedcd4c2f4210833a59bf71c459dde69e738115633c7de9f1339130552ff246e8e1bb4db26910685408b + eslint: ^8.57.0 || ^9.0.0 + peerDependenciesMeta: + typescript: + optional: true + checksum: 10c0/65743f51845a1f6fd2d21f66ca56182ba33e966716bdca73d30b7a67c294e47889c322de7d7b90ab0818296cd33c628e5eeeb03cec7ef2f76c47de7a453eeda2 languageName: node linkType: hard -"@typescript-eslint/visitor-keys@npm:7.1.1": - version: 7.1.1 - resolution: "@typescript-eslint/visitor-keys@npm:7.1.1" +"@typescript-eslint/visitor-keys@npm:8.15.0": + version: 8.15.0 + resolution: "@typescript-eslint/visitor-keys@npm:8.15.0" dependencies: - "@typescript-eslint/types": "npm:7.1.1" - eslint-visitor-keys: "npm:^3.4.1" - checksum: 10c0/1ab19ec966ff0b86317eddcbfcda645856ec01c3b76a451298031f35e4da0a363e4888ce5ae9e2526e874799a502c49922d83d57d21cb6fef7f3912f51e4a271 - languageName: node - linkType: hard - -"@ungap/structured-clone@npm:^1.2.0": - version: 1.2.0 - resolution: "@ungap/structured-clone@npm:1.2.0" - checksum: 10c0/8209c937cb39119f44eb63cf90c0b73e7c754209a6411c707be08e50e29ee81356dca1a848a405c8bdeebfe2f5e4f831ad310ae1689eeef65e7445c090c6657d + "@typescript-eslint/types": "npm:8.15.0" + eslint-visitor-keys: "npm:^4.2.0" + checksum: 10c0/02a954c3752c4328482a884eb1da06ca8fb72ae78ef28f1d854b18f3779406ed47263af22321cf3f65a637ec7584e5f483e34a263b5c8cec60ec85aebc263574 languageName: node linkType: hard @@ -5778,18 +5072,18 @@ __metadata: languageName: node linkType: hard -"@vitejs/plugin-react@npm:^4.3.3": - version: 4.3.3 - resolution: "@vitejs/plugin-react@npm:4.3.3" +"@vitejs/plugin-react@npm:^4.3.4": + version: 4.3.4 + resolution: "@vitejs/plugin-react@npm:4.3.4" dependencies: - "@babel/core": "npm:^7.25.2" - "@babel/plugin-transform-react-jsx-self": "npm:^7.24.7" - "@babel/plugin-transform-react-jsx-source": "npm:^7.24.7" + "@babel/core": "npm:^7.26.0" + "@babel/plugin-transform-react-jsx-self": "npm:^7.25.9" + "@babel/plugin-transform-react-jsx-source": "npm:^7.25.9" "@types/babel__core": "npm:^7.20.5" react-refresh: "npm:^0.14.2" peerDependencies: - vite: ^4.2.0 || ^5.0.0 - checksum: 10c0/b370c25fb47bb96f0cc51f3aadbbcfce54e40f95a4de67cf932e5ec526f139648da703725c6ea2c71a1b525eb3dd6e3e8ff877da143627cd2575de5ec4f00aa3 + vite: ^4.2.0 || ^5.0.0 || ^6.0.0 + checksum: 10c0/38a47a1dbafae0b97142943d83ee3674cb3331153a60b1a3fd29d230c12c9dfe63b7c345b231a3450168ed8a9375a9a1a253c3d85e9efdc19478c0d56b98496c languageName: node linkType: hard @@ -5857,13 +5151,13 @@ __metadata: languageName: node linkType: hard -"@yarnpkg/parsers@npm:3.0.0-rc.46": - version: 3.0.0-rc.46 - resolution: "@yarnpkg/parsers@npm:3.0.0-rc.46" +"@yarnpkg/parsers@npm:3.0.2": + version: 3.0.2 + resolution: "@yarnpkg/parsers@npm:3.0.2" dependencies: js-yaml: "npm:^3.10.0" tslib: "npm:^2.4.0" - checksum: 10c0/c7f421c6885142f351459031c093fb2e79abcce6f4a89765a10e600bb7ab122949c54bcea2b23de9572a2b34ba29f822b17831c1c43ba50373ceb8cb5b336667 + checksum: 10c0/a0c340e13129643162423d7e666061c0b39b143bfad3fc5a74c7d92a30fd740f6665d41cd4e61832c20375889d793eea1d1d103cacb39ed68f7acd168add8c53 languageName: node linkType: hard @@ -6700,14 +5994,14 @@ __metadata: languageName: node linkType: hard -"@zkochan/js-yaml@npm:0.0.6": - version: 0.0.6 - resolution: "@zkochan/js-yaml@npm:0.0.6" +"@zkochan/js-yaml@npm:0.0.7": + version: 0.0.7 + resolution: "@zkochan/js-yaml@npm:0.0.7" dependencies: argparse: "npm:^2.0.1" bin: js-yaml: bin/js-yaml.js - checksum: 10c0/5ce27ae75fb1db9657d4065bf6b380b4c0f756feb1bdf42bfde40551a74bcc0ec918f748cbdbd5d95b7107d00bc2f731ee731b5cfe93acb6f7da5639b16aa1f8 + checksum: 10c0/c8b3525717912811f9422ed50e94c5751ed6f771eb1b7e5cde097f14835654931e2bdaecb1e5fc37b51cf8d822410a307f16dd1581d46149398c30215f3f9bac languageName: node linkType: hard @@ -6730,7 +6024,7 @@ __metadata: languageName: node linkType: hard -"abbrev@npm:1, abbrev@npm:^1.0.0": +"abbrev@npm:1": version: 1.1.1 resolution: "abbrev@npm:1.1.1" checksum: 10c0/3f762677702acb24f65e813070e306c61fafe25d4b2583f9dfc935131f774863f3addd5741572ed576bd69cabe473c5af18e1e108b829cb7b6b4747884f726e6 @@ -6789,12 +6083,12 @@ __metadata: languageName: node linkType: hard -"acorn@npm:^8.1.0, acorn@npm:^8.11.2, acorn@npm:^8.11.3, acorn@npm:^8.4.1, acorn@npm:^8.6.0, acorn@npm:^8.8.1, acorn@npm:^8.9.0": - version: 8.11.3 - resolution: "acorn@npm:8.11.3" +"acorn@npm:^8.1.0, acorn@npm:^8.11.2, acorn@npm:^8.11.3, acorn@npm:^8.14.0, acorn@npm:^8.4.1, acorn@npm:^8.6.0, acorn@npm:^8.8.1": + version: 8.14.0 + resolution: "acorn@npm:8.14.0" bin: acorn: bin/acorn - checksum: 10c0/3ff155f8812e4a746fee8ecff1f227d527c4c45655bb1fad6347c3cb58e46190598217551b1500f18542d2bbe5c87120cb6927f5a074a59166fbdd9468f0a299 + checksum: 10c0/6d4ee461a7734b2f48836ee0fbb752903606e576cc100eb49340295129ca0b452f3ba91ddd4424a1d4406a98adfb2ebb6bd0ff4c49d7a0930c10e462719bbfd7 languageName: node linkType: hard @@ -6805,7 +6099,7 @@ __metadata: languageName: node linkType: hard -"agent-base@npm:6, agent-base@npm:^6.0.2": +"agent-base@npm:6": version: 6.0.2 resolution: "agent-base@npm:6.0.2" dependencies: @@ -6823,17 +6117,6 @@ __metadata: languageName: node linkType: hard -"agentkeepalive@npm:^4.2.1": - version: 4.2.1 - resolution: "agentkeepalive@npm:4.2.1" - dependencies: - debug: "npm:^4.1.0" - depd: "npm:^1.1.2" - humanize-ms: "npm:^1.2.1" - checksum: 10c0/259dafa84a9e1f9e277ac8b31995a7a4f4db36a1df1710e9d413d98c6c013ab81370ad585d92038045cc8657662e578b07fd60b312b212f59ad426b10e1d6dce - languageName: node - linkType: hard - "aggregate-error@npm:^3.0.0": version: 3.1.0 resolution: "aggregate-error@npm:3.1.0" @@ -6968,7 +6251,7 @@ __metadata: languageName: node linkType: hard -"aproba@npm:^1.0.3 || ^2.0.0": +"aproba@npm:2.0.0, aproba@npm:^1.0.3 || ^2.0.0": version: 2.0.0 resolution: "aproba@npm:2.0.0" checksum: 10c0/d06e26384a8f6245d8c8896e138c0388824e259a329e0c9f196b4fa533c82502a6fd449586e3604950a0c42921832a458bb3aa0aa9f0ba449cfd4f50fd0d09b5 @@ -6992,16 +6275,6 @@ __metadata: languageName: node linkType: hard -"are-we-there-yet@npm:^3.0.0": - version: 3.0.1 - resolution: "are-we-there-yet@npm:3.0.1" - dependencies: - delegates: "npm:^1.0.0" - readable-stream: "npm:^3.6.0" - checksum: 10c0/8373f289ba42e4b5ec713bb585acdac14b5702c75f2a458dc985b9e4fa5762bc5b46b40a21b72418a3ed0cfb5e35bdc317ef1ae132f3035f633d581dd03168c3 - languageName: node - linkType: hard - "arg@npm:4.1.0": version: 4.1.0 resolution: "arg@npm:4.1.0" @@ -7039,7 +6312,7 @@ __metadata: languageName: node linkType: hard -"aria-hidden@npm:1.2.4, aria-hidden@npm:^1.1.1": +"aria-hidden@npm:1.2.4": version: 1.2.4 resolution: "aria-hidden@npm:1.2.4" dependencies: @@ -7048,7 +6321,7 @@ __metadata: languageName: node linkType: hard -"aria-query@npm:^5.0.0, aria-query@npm:^5.3.0": +"aria-query@npm:5.3.0": version: 5.3.0 resolution: "aria-query@npm:5.3.0" dependencies: @@ -7057,6 +6330,13 @@ __metadata: languageName: node linkType: hard +"aria-query@npm:^5.0.0, aria-query@npm:^5.3.2": + version: 5.3.2 + resolution: "aria-query@npm:5.3.2" + checksum: 10c0/003c7e3e2cff5540bf7a7893775fc614de82b0c5dde8ae823d47b7a28a9d4da1f7ed85f340bdb93d5649caa927755f0e31ecc7ab63edfdfc00c8ef07e505e03e + languageName: node + linkType: hard + "array-buffer-byte-length@npm:^1.0.1": version: 1.0.1 resolution: "array-buffer-byte-length@npm:1.0.1" @@ -7081,16 +6361,17 @@ __metadata: languageName: node linkType: hard -"array-includes@npm:^3.1.6, array-includes@npm:^3.1.7": - version: 3.1.7 - resolution: "array-includes@npm:3.1.7" - dependencies: - call-bind: "npm:^1.0.2" - define-properties: "npm:^1.2.0" - es-abstract: "npm:^1.22.1" - get-intrinsic: "npm:^1.2.1" +"array-includes@npm:^3.1.6, array-includes@npm:^3.1.8": + version: 3.1.8 + resolution: "array-includes@npm:3.1.8" + dependencies: + call-bind: "npm:^1.0.7" + define-properties: "npm:^1.2.1" + es-abstract: "npm:^1.23.2" + es-object-atoms: "npm:^1.0.0" + get-intrinsic: "npm:^1.2.4" is-string: "npm:^1.0.7" - checksum: 10c0/692907bd7f19d06dc58ccb761f34b58f5dc0b437d2b47a8fe42a1501849a5cf5c27aed3d521a9702667827c2c85a7e75df00a402c438094d87fc43f39ebf9b2b + checksum: 10c0/5b1004d203e85873b96ddc493f090c9672fd6c80d7a60b798da8a14bff8a670ff95db5aafc9abc14a211943f05220dacf8ea17638ae0af1a6a47b8c0b48ce370 languageName: node linkType: hard @@ -7101,29 +6382,31 @@ __metadata: languageName: node linkType: hard -"array.prototype.findlast@npm:^1.2.4": - version: 1.2.4 - resolution: "array.prototype.findlast@npm:1.2.4" +"array.prototype.findlast@npm:^1.2.5": + version: 1.2.5 + resolution: "array.prototype.findlast@npm:1.2.5" dependencies: - call-bind: "npm:^1.0.5" + call-bind: "npm:^1.0.7" define-properties: "npm:^1.2.1" - es-abstract: "npm:^1.22.3" + es-abstract: "npm:^1.23.2" es-errors: "npm:^1.3.0" + es-object-atoms: "npm:^1.0.0" es-shim-unscopables: "npm:^1.0.2" - checksum: 10c0/4b5145a68ebaa00ef3d61de07c6694cad73d60763079f1e7662b948e5a167b5121b0c1e6feae8df1e42ead07c21699e25242b95cd5c48e094fd530b192aa4150 + checksum: 10c0/ddc952b829145ab45411b9d6adcb51a8c17c76bf89c9dd64b52d5dffa65d033da8c076ed2e17091779e83bc892b9848188d7b4b33453c5565e65a92863cb2775 languageName: node linkType: hard -"array.prototype.findlastindex@npm:^1.2.3": - version: 1.2.3 - resolution: "array.prototype.findlastindex@npm:1.2.3" +"array.prototype.findlastindex@npm:^1.2.5": + version: 1.2.5 + resolution: "array.prototype.findlastindex@npm:1.2.5" dependencies: - call-bind: "npm:^1.0.2" - define-properties: "npm:^1.2.0" - es-abstract: "npm:^1.22.1" - es-shim-unscopables: "npm:^1.0.0" - get-intrinsic: "npm:^1.2.1" - checksum: 10c0/2c5c4d3f07512d6729f728f6260a314c00f2eb0a243123092661fa1bc65dce90234c3b483b5f978396eccef6f69c50f0bea248448aaf9cdfcd1cedad6217acbb + call-bind: "npm:^1.0.7" + define-properties: "npm:^1.2.1" + es-abstract: "npm:^1.23.2" + es-errors: "npm:^1.3.0" + es-object-atoms: "npm:^1.0.0" + es-shim-unscopables: "npm:^1.0.2" + checksum: 10c0/962189487728b034f3134802b421b5f39e42ee2356d13b42d2ddb0e52057ffdcc170b9524867f4f0611a6f638f4c19b31e14606e8bcbda67799e26685b195aa3 languageName: node linkType: hard @@ -7151,28 +6434,16 @@ __metadata: languageName: node linkType: hard -"array.prototype.toreversed@npm:^1.1.2": - version: 1.1.2 - resolution: "array.prototype.toreversed@npm:1.1.2" - dependencies: - call-bind: "npm:^1.0.2" - define-properties: "npm:^1.2.0" - es-abstract: "npm:^1.22.1" - es-shim-unscopables: "npm:^1.0.0" - checksum: 10c0/2b7627ea85eae1e80ecce665a500cc0f3355ac83ee4a1a727562c7c2a1d5f1c0b4dd7b65c468ec6867207e452ba01256910a2c0b41486bfdd11acf875a7a3435 - languageName: node - linkType: hard - -"array.prototype.tosorted@npm:^1.1.3": - version: 1.1.3 - resolution: "array.prototype.tosorted@npm:1.1.3" +"array.prototype.tosorted@npm:^1.1.4": + version: 1.1.4 + resolution: "array.prototype.tosorted@npm:1.1.4" dependencies: - call-bind: "npm:^1.0.5" + call-bind: "npm:^1.0.7" define-properties: "npm:^1.2.1" - es-abstract: "npm:^1.22.3" - es-errors: "npm:^1.1.0" + es-abstract: "npm:^1.23.3" + es-errors: "npm:^1.3.0" es-shim-unscopables: "npm:^1.0.2" - checksum: 10c0/a27e1ca51168ecacf6042901f5ef021e43c8fa04b6c6b6f2a30bac3645cd2b519cecbe0bc45db1b85b843f64dc3207f0268f700b4b9fbdec076d12d432cf0865 + checksum: 10c0/eb3c4c4fc0381b0bf6dba2ea4d48d367c2827a0d4236a5718d97caaccc6b78f11f4cadf090736e86301d295a6aa4967ed45568f92ced51be8cbbacd9ca410943 languageName: node linkType: hard @@ -7257,15 +6528,6 @@ __metadata: languageName: node linkType: hard -"asynciterator.prototype@npm:^1.0.0": - version: 1.0.0 - resolution: "asynciterator.prototype@npm:1.0.0" - dependencies: - has-symbols: "npm:^1.0.3" - checksum: 10c0/fb76850e57d931ff59fd16b6cddb79b0d34fe45f400b2c3480d38892e72cd089787401687dbdb7cdb14ece402c275d3e02a648760d1489cd493527129c4c6204 - languageName: node - linkType: hard - "asynckit@npm:^0.4.0": version: 0.4.0 resolution: "asynckit@npm:0.4.0" @@ -7282,30 +6544,28 @@ __metadata: languageName: node linkType: hard -"axe-core@npm:=4.7.0, axe-core@npm:^4.2.0": - version: 4.7.0 - resolution: "axe-core@npm:4.7.0" - checksum: 10c0/89ac5712b5932ac7d23398b4cb5ba081c394a086e343acc68ba49c83472706e18e0799804e8388c779dcdacc465377deb29f2714241d3fbb389cf3a6b275c9ba +"axe-core@npm:^4.10.0, axe-core@npm:^4.2.0": + version: 4.10.2 + resolution: "axe-core@npm:4.10.2" + checksum: 10c0/0e20169077de96946a547fce0df39d9aeebe0077f9d3eeff4896518b96fde857f80b98f0d4279274a7178791744dd5a54bb4f322de45b4f561ffa2586ff9a09d languageName: node linkType: hard -"axios@npm:^1.0.0": - version: 1.7.4 - resolution: "axios@npm:1.7.4" +"axios@npm:^1.7.4": + version: 1.7.7 + resolution: "axios@npm:1.7.7" dependencies: follow-redirects: "npm:^1.15.6" form-data: "npm:^4.0.0" proxy-from-env: "npm:^1.1.0" - checksum: 10c0/5ea1a93140ca1d49db25ef8e1bd8cfc59da6f9220159a944168860ad15a2743ea21c5df2967795acb15cbe81362f5b157fdebbea39d53117ca27658bab9f7f17 + checksum: 10c0/4499efc89e86b0b49ffddc018798de05fab26e3bf57913818266be73279a6418c3ce8f9e934c7d2d707ab8c095e837fc6c90608fb7715b94d357720b5f568af7 languageName: node linkType: hard -"axobject-query@npm:^3.2.1": - version: 3.2.1 - resolution: "axobject-query@npm:3.2.1" - dependencies: - dequal: "npm:^2.0.3" - checksum: 10c0/f7debc2012e456139b57d888c223f6d3cb4b61eb104164a85e3d346273dd6ef0bc9a04b6660ca9407704a14a8e05fa6b6eb9d55f44f348c7210de7ffb350c3a7 +"axobject-query@npm:^4.1.0": + version: 4.1.0 + resolution: "axobject-query@npm:4.1.0" + checksum: 10c0/c470e4f95008f232eadd755b018cb55f16c03ccf39c027b941cd8820ac6b68707ce5d7368a46756db4256fbc91bb4ead368f84f7fb034b2b7932f082f6dc0775 languageName: node linkType: hard @@ -7351,17 +6611,6 @@ __metadata: languageName: node linkType: hard -"babel-plugin-macros@npm:^3.1.0": - version: 3.1.0 - resolution: "babel-plugin-macros@npm:3.1.0" - dependencies: - "@babel/runtime": "npm:^7.12.5" - cosmiconfig: "npm:^7.0.0" - resolve: "npm:^1.19.0" - checksum: 10c0/c6dfb15de96f67871d95bd2e8c58b0c81edc08b9b087dc16755e7157f357dc1090a8dc60ebab955e92587a9101f02eba07e730adc253a1e4cf593ca3ebd3839c - languageName: node - linkType: hard - "babel-plugin-polyfill-corejs2@npm:^0.4.10": version: 0.4.10 resolution: "babel-plugin-polyfill-corejs2@npm:0.4.10" @@ -7462,6 +6711,18 @@ __metadata: languageName: node linkType: hard +"bin-links@npm:^4.0.4": + version: 4.0.4 + resolution: "bin-links@npm:4.0.4" + dependencies: + cmd-shim: "npm:^6.0.0" + npm-normalize-package-bin: "npm:^3.0.0" + read-cmd-shim: "npm:^4.0.0" + write-file-atomic: "npm:^5.0.0" + checksum: 10c0/feb664e786429289d189c19c193b28d855c2898bc53b8391306cbad2273b59ccecb91fd31a433020019552c3bad3a1e0eeecca1c12e739a12ce2ca94f7553a17 + languageName: node + linkType: hard + "binary-extensions@npm:^2.0.0": version: 2.1.0 resolution: "binary-extensions@npm:2.1.0" @@ -7561,7 +6822,7 @@ __metadata: languageName: node linkType: hard -"browserslist@npm:^4.0.0, browserslist@npm:^4.23.1, browserslist@npm:^4.24.0, browserslist@npm:^4.24.2": +"browserslist@npm:^4.0.0, browserslist@npm:^4.23.3, browserslist@npm:^4.24.0, browserslist@npm:^4.24.2": version: 4.24.2 resolution: "browserslist@npm:4.24.2" dependencies: @@ -7575,7 +6836,7 @@ __metadata: languageName: node linkType: hard -"bs-logger@npm:0.x": +"bs-logger@npm:^0.2.6": version: 0.2.6 resolution: "bs-logger@npm:0.2.6" dependencies: @@ -7617,22 +6878,6 @@ __metadata: languageName: node linkType: hard -"builtins@npm:^1.0.3": - version: 1.0.3 - resolution: "builtins@npm:1.0.3" - checksum: 10c0/493afcc1db0a56d174cc85bebe5ca69144f6fdd0007d6cbe6b2434185314c79d83cb867e492b56aa5cf421b4b8a8135bf96ba4c3ce71994cf3da154d1ea59747 - languageName: node - linkType: hard - -"builtins@npm:^5.0.0": - version: 5.0.1 - resolution: "builtins@npm:5.0.1" - dependencies: - semver: "npm:^7.0.0" - checksum: 10c0/9390a51a9abbc0233dac79c66715f927508b9d0c62cb7a42448fe8c52def60c707e6e9eb2cc4c9b7aba11601899935bca4e4064ae5e19c04c7e1bb9309e69134 - languageName: node - linkType: hard - "bundle-n-require@npm:1.1.1": version: 1.1.1 resolution: "bundle-n-require@npm:1.1.1" @@ -7671,55 +6916,9 @@ __metadata: languageName: node linkType: hard -"cacache@npm:^16.1.0": - version: 16.1.3 - resolution: "cacache@npm:16.1.3" - dependencies: - "@npmcli/fs": "npm:^2.1.0" - "@npmcli/move-file": "npm:^2.0.0" - chownr: "npm:^2.0.0" - fs-minipass: "npm:^2.1.0" - glob: "npm:^8.0.1" - infer-owner: "npm:^1.0.4" - lru-cache: "npm:^7.7.1" - minipass: "npm:^3.1.6" - minipass-collect: "npm:^1.0.2" - minipass-flush: "npm:^1.0.5" - minipass-pipeline: "npm:^1.2.4" - mkdirp: "npm:^1.0.4" - p-map: "npm:^4.0.0" - promise-inflight: "npm:^1.0.1" - rimraf: "npm:^3.0.2" - ssri: "npm:^9.0.0" - tar: "npm:^6.1.11" - unique-filename: "npm:^2.0.0" - checksum: 10c0/cdf6836e1c457d2a5616abcaf5d8240c0346b1f5bd6fdb8866b9d84b6dff0b54e973226dc11e0d099f35394213d24860d1989c8358d2a41b39eb912b3000e749 - languageName: node - linkType: hard - -"cacache@npm:^17.0.0": - version: 17.1.3 - resolution: "cacache@npm:17.1.3" - dependencies: - "@npmcli/fs": "npm:^3.1.0" - fs-minipass: "npm:^3.0.0" - glob: "npm:^10.2.2" - lru-cache: "npm:^7.7.1" - minipass: "npm:^5.0.0" - minipass-collect: "npm:^1.0.2" - minipass-flush: "npm:^1.0.5" - minipass-pipeline: "npm:^1.2.4" - p-map: "npm:^4.0.0" - ssri: "npm:^10.0.0" - tar: "npm:^6.1.11" - unique-filename: "npm:^3.0.0" - checksum: 10c0/fcb0843c8e152b0e1440328508a2c0d6435c431198155e31daa591b348a1739b089ce2a72a4528690ed10a2bf086c180ee4980e2116457131b4c8a6e65e10976 - languageName: node - linkType: hard - -"cacache@npm:^18.0.0": - version: 18.0.1 - resolution: "cacache@npm:18.0.1" +"cacache@npm:^18.0.0, cacache@npm:^18.0.3": + version: 18.0.4 + resolution: "cacache@npm:18.0.4" dependencies: "@npmcli/fs": "npm:^3.1.0" fs-minipass: "npm:^3.0.0" @@ -7733,7 +6932,7 @@ __metadata: ssri: "npm:^10.0.0" tar: "npm:^6.1.11" unique-filename: "npm:^3.0.0" - checksum: 10c0/a31666805a80a8b16ad3f85faf66750275a9175a3480896f4f6d31b5d53ef190484fabd71bdb6d2ea5603c717fbef09f4af03d6a65b525c8ef0afaa44c361866 + checksum: 10c0/6c055bafed9de4f3dcc64ac3dc7dd24e863210902b7c470eb9ce55a806309b3efff78033e3d8b4f7dcc5d467f2db43c6a2857aaaf26f0094b8a351d44c42179f languageName: node linkType: hard @@ -7938,13 +7137,20 @@ __metadata: languageName: node linkType: hard -"ci-info@npm:^3.2.0, ci-info@npm:^3.6.1": +"ci-info@npm:^3.2.0": version: 3.8.0 resolution: "ci-info@npm:3.8.0" checksum: 10c0/0d3052193b58356372b34ab40d2668c3e62f1006d5ca33726d1d3c423853b19a85508eadde7f5908496fb41448f465263bf61c1ee58b7832cb6a924537e3863a languageName: node linkType: hard +"ci-info@npm:^4.0.0": + version: 4.1.0 + resolution: "ci-info@npm:4.1.0" + checksum: 10c0/0f969ce32a974c542bc8abe4454b220d9d9323bb9415054c92a900faa5fdda0bb222eda68c490127c1d78503510d46b6aca614ecaba5a60515b8ac7e170119e6 + languageName: node + linkType: hard + "cjs-module-lexer@npm:1.2.3, cjs-module-lexer@npm:^1.0.0": version: 1.2.3 resolution: "cjs-module-lexer@npm:1.2.3" @@ -8047,10 +7253,10 @@ __metadata: languageName: node linkType: hard -"cmd-shim@npm:6.0.1": - version: 6.0.1 - resolution: "cmd-shim@npm:6.0.1" - checksum: 10c0/fe8fd2ad79a30193fb6f439fe4104de3129e869c58eac507d2154db95ebfd45ddfbcec8f373ed9ba5d3036b85d963e8ef5d1d28754c160b117cb77c02e4528cb +"cmd-shim@npm:6.0.3, cmd-shim@npm:^6.0.0": + version: 6.0.3 + resolution: "cmd-shim@npm:6.0.3" + checksum: 10c0/dc09fe0bf39e86250529456d9a87dd6d5208d053e449101a600e96dc956c100e0bc312cdb413a91266201f3bd8057d4abf63875cafb99039553a1937d8f3da36 languageName: node linkType: hard @@ -8114,7 +7320,7 @@ __metadata: languageName: node linkType: hard -"color-support@npm:^1.1.2, color-support@npm:^1.1.3": +"color-support@npm:1.1.3, color-support@npm:^1.1.2": version: 1.1.3 resolution: "color-support@npm:1.1.3" bin: @@ -8149,6 +7355,13 @@ __metadata: languageName: node linkType: hard +"common-ancestor-path@npm:^1.0.1": + version: 1.0.1 + resolution: "common-ancestor-path@npm:1.0.1" + checksum: 10c0/390c08d2a67a7a106d39499c002d827d2874966d938012453fd7ca34cd306881e2b9d604f657fa7a8e6e4896d67f39ebc09bf1bfd8da8ff318e0fb7a8752c534 + languageName: node + linkType: hard + "compare-func@npm:^2.0.0": version: 2.0.0 resolution: "compare-func@npm:2.0.0" @@ -8220,13 +7433,6 @@ __metadata: languageName: node linkType: hard -"confusing-browser-globals@npm:^1.0.11": - version: 1.0.11 - resolution: "confusing-browser-globals@npm:1.0.11" - checksum: 10c0/475d0a284fa964a5182b519af5738b5b64bf7e413cfd703c1b3496bf6f4df9f827893a9b221c0ea5873c1476835beb1e0df569ba643eff0734010c1eb780589e - languageName: node - linkType: hard - "console-control-strings@npm:^1.0.0, console-control-strings@npm:^1.1.0": version: 1.1.0 resolution: "console-control-strings@npm:1.1.0" @@ -8248,12 +7454,12 @@ __metadata: languageName: node linkType: hard -"conventional-changelog-angular@npm:6.0.0": - version: 6.0.0 - resolution: "conventional-changelog-angular@npm:6.0.0" +"conventional-changelog-angular@npm:7.0.0": + version: 7.0.0 + resolution: "conventional-changelog-angular@npm:7.0.0" dependencies: compare-func: "npm:^2.0.0" - checksum: 10c0/a661ff7b79d4b829ccf8f424ef1bb210e777c1152a1ba5b2ba0a8639529c315755b82a6f84684f1b552c4e8ed6696bfe57317c5f7b868274e9a72b2bf13081ba + checksum: 10c0/90e73e25e224059b02951b6703b5f8742dc2a82c1fea62163978e6735fd3ab04350897a8fc6f443ec6b672d6b66e28a0820e833e544a0101f38879e5e6289b7e languageName: node linkType: hard @@ -8348,7 +7554,7 @@ __metadata: languageName: node linkType: hard -"convert-source-map@npm:^1.5.0, convert-source-map@npm:^1.6.0": +"convert-source-map@npm:^1.6.0": version: 1.7.0 resolution: "convert-source-map@npm:1.7.0" dependencies: @@ -8380,20 +7586,24 @@ __metadata: languageName: node linkType: hard -"cosmiconfig@npm:^7.0.0": - version: 7.1.0 - resolution: "cosmiconfig@npm:7.1.0" +"cosmiconfig@npm:9.0.0": + version: 9.0.0 + resolution: "cosmiconfig@npm:9.0.0" dependencies: - "@types/parse-json": "npm:^4.0.0" - import-fresh: "npm:^3.2.1" - parse-json: "npm:^5.0.0" - path-type: "npm:^4.0.0" - yaml: "npm:^1.10.0" - checksum: 10c0/b923ff6af581638128e5f074a5450ba12c0300b71302398ea38dbeabd33bbcaa0245ca9adbedfcf284a07da50f99ede5658c80bb3e39e2ce770a99d28a21ef03 + env-paths: "npm:^2.2.1" + import-fresh: "npm:^3.3.0" + js-yaml: "npm:^4.1.0" + parse-json: "npm:^5.2.0" + peerDependencies: + typescript: ">=4.9.5" + peerDependenciesMeta: + typescript: + optional: true + checksum: 10c0/1c1703be4f02a250b1d6ca3267e408ce16abfe8364193891afc94c2d5c060b69611fdc8d97af74b7e6d5d1aac0ab2fb94d6b079573146bc2d756c2484ce5f0ee languageName: node linkType: hard -"cosmiconfig@npm:^8.1.3, cosmiconfig@npm:^8.2.0": +"cosmiconfig@npm:^8.1.3": version: 8.2.0 resolution: "cosmiconfig@npm:8.2.0" dependencies: @@ -8461,14 +7671,14 @@ __metadata: languageName: node linkType: hard -"cross-spawn@npm:^7.0.0, cross-spawn@npm:^7.0.1, cross-spawn@npm:^7.0.2, cross-spawn@npm:^7.0.3": - version: 7.0.3 - resolution: "cross-spawn@npm:7.0.3" +"cross-spawn@npm:^7.0.0, cross-spawn@npm:^7.0.1, cross-spawn@npm:^7.0.3, cross-spawn@npm:^7.0.5": + version: 7.0.5 + resolution: "cross-spawn@npm:7.0.5" dependencies: path-key: "npm:^3.1.0" shebang-command: "npm:^2.0.0" which: "npm:^2.0.1" - checksum: 10c0/5738c312387081c98d69c98e105b6327b069197f864a60593245d64c8089c8a0a744e16349281210d56835bb9274130d825a78b2ad6853ca13cfbeffc0c31750 + checksum: 10c0/aa82ce7ac0814a27e6f2b738c5a7cf1fa21a3558a1e42df449fc96541ba3ba731e4d3ecffa4435348808a86212f287c6f20a1ee551ef1ff95d01cfec5f434944 languageName: node linkType: hard @@ -8621,7 +7831,7 @@ __metadata: languageName: node linkType: hard -"data-view-byte-length@npm:^1.0.0": +"data-view-byte-length@npm:^1.0.1": version: 1.0.1 resolution: "data-view-byte-length@npm:1.0.1" dependencies: @@ -8659,7 +7869,7 @@ __metadata: languageName: node linkType: hard -"debug@npm:4, debug@npm:^4.1.0, debug@npm:^4.1.1, debug@npm:^4.3.1, debug@npm:^4.3.2, debug@npm:^4.3.3, debug@npm:^4.3.4": +"debug@npm:4, debug@npm:^4.1.0, debug@npm:^4.1.1, debug@npm:^4.3.1, debug@npm:^4.3.2, debug@npm:^4.3.4": version: 4.3.4 resolution: "debug@npm:4.3.4" dependencies: @@ -8713,22 +7923,15 @@ __metadata: languageName: node linkType: hard -"dedent@npm:0.7.0": - version: 0.7.0 - resolution: "dedent@npm:0.7.0" - checksum: 10c0/7c3aa00ddfe3e5fcd477958e156156a5137e3bb6ff1493ca05edff4decf29a90a057974cc77e75951f8eb801c1816cb45aea1f52d628cdd000b82b36ab839d1b - languageName: node - linkType: hard - -"dedent@npm:^1.0.0": - version: 1.5.1 - resolution: "dedent@npm:1.5.1" +"dedent@npm:1.5.3, dedent@npm:^1.0.0": + version: 1.5.3 + resolution: "dedent@npm:1.5.3" peerDependencies: babel-plugin-macros: ^3.1.0 peerDependenciesMeta: babel-plugin-macros: optional: true - checksum: 10c0/f8612cd5b00aab58b18bb95572dca08dc2d49720bfa7201a444c3dae430291e8a06d4928614a6ec8764d713927f44bce9c990d3b8238fca2f430990ddc17c070 + checksum: 10c0/d94bde6e6f780be4da4fd760288fcf755ec368872f4ac5218197200d86430aeb8d90a003a840bff1c20221188e3f23adced0119cb811c6873c70d0ac66d12832 languageName: node linkType: hard @@ -8805,7 +8008,7 @@ __metadata: languageName: node linkType: hard -"depd@npm:^1.1.2, depd@npm:~1.1.2": +"depd@npm:~1.1.2": version: 1.1.2 resolution: "depd@npm:1.1.2" checksum: 10c0/acb24aaf936ef9a227b6be6d495f0d2eb20108a9a6ad40585c5bda1a897031512fef6484e4fdbb80bd249fdaa82841fa1039f416ece03188e677ba11bcfda249 @@ -8856,13 +8059,6 @@ __metadata: languageName: node linkType: hard -"detect-node-es@npm:^1.1.0": - version: 1.1.0 - resolution: "detect-node-es@npm:1.1.0" - checksum: 10c0/e562f00de23f10c27d7119e1af0e7388407eb4b06596a25f6d79a360094a109ff285de317f02b090faae093d314cf6e73ac3214f8a5bb3a0def5bece94557fbe - languageName: node - linkType: hard - "diff-sequences@npm:^29.6.3": version: 29.6.3 resolution: "diff-sequences@npm:29.6.3" @@ -8904,10 +8100,17 @@ __metadata: languageName: node linkType: hard -"dom-accessibility-api@npm:^0.5.6, dom-accessibility-api@npm:^0.5.9": - version: 0.5.14 - resolution: "dom-accessibility-api@npm:0.5.14" - checksum: 10c0/fbeacecad9acb15c723bd2c6d946578cff861d2bd622e7483c06b0f3641b435f4f4f37b6e1df65ea410462c72a0e9ec7d96e0a106becfcc51ba54cfaa7ff669b +"dom-accessibility-api@npm:^0.5.9": + version: 0.5.16 + resolution: "dom-accessibility-api@npm:0.5.16" + checksum: 10c0/b2c2eda4fae568977cdac27a9f0c001edf4f95a6a6191dfa611e3721db2478d1badc01db5bb4fa8a848aeee13e442a6c2a4386d65ec65a1436f24715a2f8d053 + languageName: node + linkType: hard + +"dom-accessibility-api@npm:^0.6.3": + version: 0.6.3 + resolution: "dom-accessibility-api@npm:0.6.3" + checksum: 10c0/10bee5aa514b2a9a37c87cd81268db607a2e933a050074abc2f6fa3da9080ebed206a320cbc123567f2c3087d22292853bdfdceaffdd4334ffe2af9510b29360 languageName: node linkType: hard @@ -8993,10 +8196,19 @@ __metadata: languageName: node linkType: hard -"dotenv@npm:~10.0.0": - version: 10.0.0 - resolution: "dotenv@npm:10.0.0" - checksum: 10c0/2d8d4ba64bfaff7931402aa5e8cbb8eba0acbc99fe9ae442300199af021079eafa7171ce90e150821a5cb3d74f0057721fbe7ec201a6044b68c8a7615f8c123f +"dotenv-expand@npm:~11.0.6": + version: 11.0.7 + resolution: "dotenv-expand@npm:11.0.7" + dependencies: + dotenv: "npm:^16.4.5" + checksum: 10c0/d80b8a7be085edf351270b96ac0e794bc3ddd7f36157912939577cb4d33ba6492ebee349d59798b71b90e36f498d24a2a564fb4aa00073b2ef4c2a3a49c467b1 + languageName: node + linkType: hard + +"dotenv@npm:^16.4.5, dotenv@npm:~16.4.5": + version: 16.4.5 + resolution: "dotenv@npm:16.4.5" + checksum: 10c0/48d92870076832af0418b13acd6e5a5a3e83bb00df690d9812e94b24aff62b88ade955ac99a05501305b8dc8f1b0ee7638b18493deb6fe93d680e5220936292f languageName: node linkType: hard @@ -9033,7 +8245,7 @@ __metadata: languageName: node linkType: hard -"ejs@npm:^3.1.7": +"ejs@npm:^3.1.10, ejs@npm:^3.1.7": version: 3.1.10 resolution: "ejs@npm:3.1.10" dependencies: @@ -9115,19 +8327,19 @@ __metadata: languageName: node linkType: hard -"env-paths@npm:^2.2.0": - version: 2.2.0 - resolution: "env-paths@npm:2.2.0" - checksum: 10c0/fa74ee7e07be6a431c431f31b557756de67b8fd5497ceadd09af0b9be3fe775c89f7b882a5caa73f51d148f9a61c9d7e295c350bde2975bd5d8c1219906f480e +"env-paths@npm:^2.2.0, env-paths@npm:^2.2.1": + version: 2.2.1 + resolution: "env-paths@npm:2.2.1" + checksum: 10c0/285325677bf00e30845e330eec32894f5105529db97496ee3f598478e50f008c5352a41a30e5e72ec9de8a542b5a570b85699cd63bd2bc646dbcb9f311d83bc4 languageName: node linkType: hard -"envinfo@npm:7.8.1": - version: 7.8.1 - resolution: "envinfo@npm:7.8.1" +"envinfo@npm:7.13.0": + version: 7.13.0 + resolution: "envinfo@npm:7.13.0" bin: envinfo: dist/cli.js - checksum: 10c0/01efe7fcf55d4b84a146bc638ef89a89a70b610957db64636ac7cc4247d627eeb1c808ed79d3cfbe3d4fed5e8ba3d61db79c1ca1a3fea9f38639561eefd68733 + checksum: 10c0/9c279213cbbb353b3171e8e333fd2ed564054abade08ab3d735fe136e10a0e14e0588e1ce77e6f01285f2462eaca945d64f0778be5ae3d9e82804943e36a4411 languageName: node linkType: hard @@ -9147,30 +8359,31 @@ __metadata: languageName: node linkType: hard -"es-abstract@npm:^1.22.1, es-abstract@npm:^1.22.3, es-abstract@npm:^1.22.4": - version: 1.23.0 - resolution: "es-abstract@npm:1.23.0" +"es-abstract@npm:^1.17.5, es-abstract@npm:^1.22.1, es-abstract@npm:^1.22.3, es-abstract@npm:^1.23.0, es-abstract@npm:^1.23.2, es-abstract@npm:^1.23.3": + version: 1.23.5 + resolution: "es-abstract@npm:1.23.5" dependencies: array-buffer-byte-length: "npm:^1.0.1" arraybuffer.prototype.slice: "npm:^1.0.3" available-typed-arrays: "npm:^1.0.7" call-bind: "npm:^1.0.7" data-view-buffer: "npm:^1.0.1" - data-view-byte-length: "npm:^1.0.0" + data-view-byte-length: "npm:^1.0.1" data-view-byte-offset: "npm:^1.0.0" es-define-property: "npm:^1.0.0" es-errors: "npm:^1.3.0" + es-object-atoms: "npm:^1.0.0" es-set-tostringtag: "npm:^2.0.3" es-to-primitive: "npm:^1.2.1" function.prototype.name: "npm:^1.1.6" get-intrinsic: "npm:^1.2.4" get-symbol-description: "npm:^1.0.2" - globalthis: "npm:^1.0.3" + globalthis: "npm:^1.0.4" gopd: "npm:^1.0.1" has-property-descriptors: "npm:^1.0.2" has-proto: "npm:^1.0.3" has-symbols: "npm:^1.0.3" - hasown: "npm:^2.0.1" + hasown: "npm:^2.0.2" internal-slot: "npm:^1.0.7" is-array-buffer: "npm:^3.0.4" is-callable: "npm:^1.2.7" @@ -9181,22 +8394,22 @@ __metadata: is-string: "npm:^1.0.7" is-typed-array: "npm:^1.1.13" is-weakref: "npm:^1.0.2" - object-inspect: "npm:^1.13.1" + object-inspect: "npm:^1.13.3" object-keys: "npm:^1.1.1" object.assign: "npm:^4.1.5" - regexp.prototype.flags: "npm:^1.5.2" - safe-array-concat: "npm:^1.1.0" + regexp.prototype.flags: "npm:^1.5.3" + safe-array-concat: "npm:^1.1.2" safe-regex-test: "npm:^1.0.3" - string.prototype.trim: "npm:^1.2.8" - string.prototype.trimend: "npm:^1.0.7" - string.prototype.trimstart: "npm:^1.0.7" + string.prototype.trim: "npm:^1.2.9" + string.prototype.trimend: "npm:^1.0.8" + string.prototype.trimstart: "npm:^1.0.8" typed-array-buffer: "npm:^1.0.2" typed-array-byte-length: "npm:^1.0.1" typed-array-byte-offset: "npm:^1.0.2" - typed-array-length: "npm:^1.0.5" + typed-array-length: "npm:^1.0.6" unbox-primitive: "npm:^1.0.2" - which-typed-array: "npm:^1.1.14" - checksum: 10c0/afda67ce205fedbd080b435a07cf479b257dc2f762dbab32d0a2011f1cf507326f8bbc41619754ad0ab5e6c88d0ec2e96e6bd7aed9511bfe04fdb1e08cad1c20 + which-typed-array: "npm:^1.1.15" + checksum: 10c0/1f6f91da9cf7ee2c81652d57d3046621d598654d1d1b05c1578bafe5c4c2d3d69513901679bdca2de589f620666ec21de337e4935cec108a4ed0871d5ef04a5d languageName: node linkType: hard @@ -9209,33 +8422,33 @@ __metadata: languageName: node linkType: hard -"es-errors@npm:^1.1.0, es-errors@npm:^1.2.1, es-errors@npm:^1.3.0": +"es-errors@npm:^1.2.1, es-errors@npm:^1.3.0": version: 1.3.0 resolution: "es-errors@npm:1.3.0" checksum: 10c0/0a61325670072f98d8ae3b914edab3559b6caa980f08054a3b872052640d91da01d38df55df797fcc916389d77fc92b8d5906cf028f4db46d7e3003abecbca85 languageName: node linkType: hard -"es-iterator-helpers@npm:^1.0.15, es-iterator-helpers@npm:^1.0.17": - version: 1.0.17 - resolution: "es-iterator-helpers@npm:1.0.17" +"es-iterator-helpers@npm:^1.1.0": + version: 1.2.0 + resolution: "es-iterator-helpers@npm:1.2.0" dependencies: - asynciterator.prototype: "npm:^1.0.0" call-bind: "npm:^1.0.7" define-properties: "npm:^1.2.1" - es-abstract: "npm:^1.22.4" + es-abstract: "npm:^1.23.3" es-errors: "npm:^1.3.0" - es-set-tostringtag: "npm:^2.0.2" + es-set-tostringtag: "npm:^2.0.3" function-bind: "npm:^1.1.2" get-intrinsic: "npm:^1.2.4" - globalthis: "npm:^1.0.3" + globalthis: "npm:^1.0.4" + gopd: "npm:^1.0.1" has-property-descriptors: "npm:^1.0.2" - has-proto: "npm:^1.0.1" + has-proto: "npm:^1.0.3" has-symbols: "npm:^1.0.3" internal-slot: "npm:^1.0.7" - iterator.prototype: "npm:^1.1.2" - safe-array-concat: "npm:^1.1.0" - checksum: 10c0/d0f281257e7165f068fd4fc3beb63d07ae4f18fbef02a2bbe4a39272b764164c1ce3311ae7c5429ac30003aef290fcdf569050e4a9ba3560e044440f68e9a47c + iterator.prototype: "npm:^1.1.3" + safe-array-concat: "npm:^1.1.2" + checksum: 10c0/2bd60580dfeae353f5b80445d2808da745e97eeacdb663a8c4d99a12046873830a06d377e9d5e88fe54eece7c94319a5ce5a01220e24d71394ceca8d3ef621d7 languageName: node linkType: hard @@ -9246,7 +8459,16 @@ __metadata: languageName: node linkType: hard -"es-set-tostringtag@npm:^2.0.2, es-set-tostringtag@npm:^2.0.3": +"es-object-atoms@npm:^1.0.0": + version: 1.0.0 + resolution: "es-object-atoms@npm:1.0.0" + dependencies: + es-errors: "npm:^1.3.0" + checksum: 10c0/1fed3d102eb27ab8d983337bb7c8b159dd2a1e63ff833ec54eea1311c96d5b08223b433060ba240541ca8adba9eee6b0a60cdbf2f80634b784febc9cc8b687b4 + languageName: node + linkType: hard + +"es-set-tostringtag@npm:^2.0.3": version: 2.0.3 resolution: "es-set-tostringtag@npm:2.0.3" dependencies: @@ -9499,7 +8721,7 @@ __metadata: languageName: node linkType: hard -"esbuild@npm:^0.18.0 || ^0.19.0 || ^0.20.0 || ^0.21.0 || ^0.22.0 || ^0.23.0 || ^0.24.0": +"esbuild@npm:^0.18.0 || ^0.19.0 || ^0.20.0 || ^0.21.0 || ^0.22.0 || ^0.23.0 || ^0.24.0, esbuild@npm:^0.24.0": version: 0.24.0 resolution: "esbuild@npm:0.24.0" dependencies: @@ -9662,86 +8884,6 @@ __metadata: languageName: node linkType: hard -"esbuild@npm:^0.21.3": - version: 0.21.5 - resolution: "esbuild@npm:0.21.5" - dependencies: - "@esbuild/aix-ppc64": "npm:0.21.5" - "@esbuild/android-arm": "npm:0.21.5" - "@esbuild/android-arm64": "npm:0.21.5" - "@esbuild/android-x64": "npm:0.21.5" - "@esbuild/darwin-arm64": "npm:0.21.5" - "@esbuild/darwin-x64": "npm:0.21.5" - "@esbuild/freebsd-arm64": "npm:0.21.5" - "@esbuild/freebsd-x64": "npm:0.21.5" - "@esbuild/linux-arm": "npm:0.21.5" - "@esbuild/linux-arm64": "npm:0.21.5" - "@esbuild/linux-ia32": "npm:0.21.5" - "@esbuild/linux-loong64": "npm:0.21.5" - "@esbuild/linux-mips64el": "npm:0.21.5" - "@esbuild/linux-ppc64": "npm:0.21.5" - "@esbuild/linux-riscv64": "npm:0.21.5" - "@esbuild/linux-s390x": "npm:0.21.5" - "@esbuild/linux-x64": "npm:0.21.5" - "@esbuild/netbsd-x64": "npm:0.21.5" - "@esbuild/openbsd-x64": "npm:0.21.5" - "@esbuild/sunos-x64": "npm:0.21.5" - "@esbuild/win32-arm64": "npm:0.21.5" - "@esbuild/win32-ia32": "npm:0.21.5" - "@esbuild/win32-x64": "npm:0.21.5" - dependenciesMeta: - "@esbuild/aix-ppc64": - optional: true - "@esbuild/android-arm": - optional: true - "@esbuild/android-arm64": - optional: true - "@esbuild/android-x64": - optional: true - "@esbuild/darwin-arm64": - optional: true - "@esbuild/darwin-x64": - optional: true - "@esbuild/freebsd-arm64": - optional: true - "@esbuild/freebsd-x64": - optional: true - "@esbuild/linux-arm": - optional: true - "@esbuild/linux-arm64": - optional: true - "@esbuild/linux-ia32": - optional: true - "@esbuild/linux-loong64": - optional: true - "@esbuild/linux-mips64el": - optional: true - "@esbuild/linux-ppc64": - optional: true - "@esbuild/linux-riscv64": - optional: true - "@esbuild/linux-s390x": - optional: true - "@esbuild/linux-x64": - optional: true - "@esbuild/netbsd-x64": - optional: true - "@esbuild/openbsd-x64": - optional: true - "@esbuild/sunos-x64": - optional: true - "@esbuild/win32-arm64": - optional: true - "@esbuild/win32-ia32": - optional: true - "@esbuild/win32-x64": - optional: true - bin: - esbuild: bin/esbuild - checksum: 10c0/fa08508adf683c3f399e8a014a6382a6b65542213431e26206c0720e536b31c09b50798747c2a105a4bbba1d9767b8d3615a74c2f7bf1ddf6d836cd11eb672de - languageName: node - linkType: hard - "escalade@npm:3.1.2": version: 3.1.2 resolution: "escalade@npm:3.1.2" @@ -9799,18 +8941,16 @@ __metadata: version: 0.0.0-use.local resolution: "eslint-config-ndla@workspace:packages/eslint-config-ndla" dependencies: - "@babel/eslint-parser": "npm:^7.23.10" - "@typescript-eslint/eslint-plugin": "npm:^7.1.1" - "@typescript-eslint/parser": "npm:^7.1.1" - confusing-browser-globals: "npm:^1.0.11" eslint-plugin-header: "npm:^3.1.1" - eslint-plugin-import: "npm:^2.29.1" - eslint-plugin-jsx-a11y: "npm:^6.8.0" - eslint-plugin-react: "npm:^7.34.0" - eslint-plugin-react-hooks: "npm:^4.6.0" + eslint-plugin-import: "npm:^2.31.0" + eslint-plugin-jsx-a11y: "npm:^6.10.2" + eslint-plugin-react: "npm:^7.37.2" + eslint-plugin-react-hooks: "npm:^5.0.0" + eslint-plugin-simple-import-sort: "npm:^12.1.1" + globals: "npm:^15.13.0" peerDependencies: - "@babel/core": ">= 7.0.0" - eslint: ">= 8.0.0" + eslint: ">= 9.0.0" + typescript-eslint: ">= 8.15.0" languageName: unknown linkType: soft @@ -9825,15 +8965,15 @@ __metadata: languageName: node linkType: hard -"eslint-module-utils@npm:^2.8.0": - version: 2.8.0 - resolution: "eslint-module-utils@npm:2.8.0" +"eslint-module-utils@npm:^2.12.0": + version: 2.12.0 + resolution: "eslint-module-utils@npm:2.12.0" dependencies: debug: "npm:^3.2.7" peerDependenciesMeta: eslint: optional: true - checksum: 10c0/c7a8d1a58d76ec8217a8fea49271ec8132d1b9390965a75f6a4ecbc9e5983d742195b46d2e4378231d2186801439fe1aa5700714b0bfd4eb17aac6e1b65309df + checksum: 10c0/4d8b46dcd525d71276f9be9ffac1d2be61c9d54cc53c992e6333cf957840dee09381842b1acbbb15fc6b255ebab99cd481c5007ab438e5455a14abe1a0468558 languageName: node linkType: hard @@ -9846,186 +8986,187 @@ __metadata: languageName: node linkType: hard -"eslint-plugin-import@npm:^2.29.1": - version: 2.29.1 - resolution: "eslint-plugin-import@npm:2.29.1" +"eslint-plugin-import@npm:^2.31.0": + version: 2.31.0 + resolution: "eslint-plugin-import@npm:2.31.0" dependencies: - array-includes: "npm:^3.1.7" - array.prototype.findlastindex: "npm:^1.2.3" + "@rtsao/scc": "npm:^1.1.0" + array-includes: "npm:^3.1.8" + array.prototype.findlastindex: "npm:^1.2.5" array.prototype.flat: "npm:^1.3.2" array.prototype.flatmap: "npm:^1.3.2" debug: "npm:^3.2.7" doctrine: "npm:^2.1.0" eslint-import-resolver-node: "npm:^0.3.9" - eslint-module-utils: "npm:^2.8.0" - hasown: "npm:^2.0.0" - is-core-module: "npm:^2.13.1" + eslint-module-utils: "npm:^2.12.0" + hasown: "npm:^2.0.2" + is-core-module: "npm:^2.15.1" is-glob: "npm:^4.0.3" minimatch: "npm:^3.1.2" - object.fromentries: "npm:^2.0.7" - object.groupby: "npm:^1.0.1" - object.values: "npm:^1.1.7" + object.fromentries: "npm:^2.0.8" + object.groupby: "npm:^1.0.3" + object.values: "npm:^1.2.0" semver: "npm:^6.3.1" + string.prototype.trimend: "npm:^1.0.8" tsconfig-paths: "npm:^3.15.0" peerDependencies: - eslint: ^2 || ^3 || ^4 || ^5 || ^6 || ^7.2.0 || ^8 - checksum: 10c0/5f35dfbf4e8e67f741f396987de9504ad125c49f4144508a93282b4ea0127e052bde65ab6def1f31b6ace6d5d430be698333f75bdd7dca3bc14226c92a083196 + eslint: ^2 || ^3 || ^4 || ^5 || ^6 || ^7.2.0 || ^8 || ^9 + checksum: 10c0/e21d116ddd1900e091ad120b3eb68c5dd5437fe2c930f1211781cd38b246f090a6b74d5f3800b8255a0ed29782591521ad44eb21c5534960a8f1fb4040fd913a languageName: node linkType: hard -"eslint-plugin-jsx-a11y@npm:^6.8.0": - version: 6.8.0 - resolution: "eslint-plugin-jsx-a11y@npm:6.8.0" +"eslint-plugin-jsx-a11y@npm:^6.10.2": + version: 6.10.2 + resolution: "eslint-plugin-jsx-a11y@npm:6.10.2" dependencies: - "@babel/runtime": "npm:^7.23.2" - aria-query: "npm:^5.3.0" - array-includes: "npm:^3.1.7" + aria-query: "npm:^5.3.2" + array-includes: "npm:^3.1.8" array.prototype.flatmap: "npm:^1.3.2" ast-types-flow: "npm:^0.0.8" - axe-core: "npm:=4.7.0" - axobject-query: "npm:^3.2.1" + axe-core: "npm:^4.10.0" + axobject-query: "npm:^4.1.0" damerau-levenshtein: "npm:^1.0.8" emoji-regex: "npm:^9.2.2" - es-iterator-helpers: "npm:^1.0.15" - hasown: "npm:^2.0.0" + hasown: "npm:^2.0.2" jsx-ast-utils: "npm:^3.3.5" language-tags: "npm:^1.0.9" minimatch: "npm:^3.1.2" - object.entries: "npm:^1.1.7" - object.fromentries: "npm:^2.0.7" + object.fromentries: "npm:^2.0.8" + safe-regex-test: "npm:^1.0.3" + string.prototype.includes: "npm:^2.0.1" peerDependencies: - eslint: ^3 || ^4 || ^5 || ^6 || ^7 || ^8 - checksum: 10c0/199b883e526e6f9d7c54cb3f094abc54f11a1ec816db5fb6cae3b938eb0e503acc10ccba91ca7451633a9d0b9abc0ea03601844a8aba5fe88c5e8897c9ac8f49 + eslint: ^3 || ^4 || ^5 || ^6 || ^7 || ^8 || ^9 + checksum: 10c0/d93354e03b0cf66f018d5c50964e074dffe4ddf1f9b535fa020d19c4ae45f89c1a16e9391ca61ac3b19f7042c751ac0d361a056a65cbd1de24718a53ff8daa6e languageName: node linkType: hard -"eslint-plugin-react-hooks@npm:^4.6.0": - version: 4.6.0 - resolution: "eslint-plugin-react-hooks@npm:4.6.0" +"eslint-plugin-react-hooks@npm:^5.0.0": + version: 5.0.0 + resolution: "eslint-plugin-react-hooks@npm:5.0.0" peerDependencies: - eslint: ^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0 - checksum: 10c0/58c7e10ea5792c33346fcf5cb4024e14837035ce412ff99c2dcb7c4f903dc9b17939078f80bfef826301ce326582c396c00e8e0ac9d10ac2cde2b42d33763c65 + eslint: ^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0 || ^9.0.0 + checksum: 10c0/bcb74b421f32e4203a7100405b57aab85526be4461e5a1da01bc537969a30012d2ee209a2c2a6cac543833a27188ce1e6ad71e4628d0bb4a2e5365cad86c5002 languageName: node linkType: hard -"eslint-plugin-react@npm:^7.34.0": - version: 7.34.0 - resolution: "eslint-plugin-react@npm:7.34.0" +"eslint-plugin-react@npm:^7.37.2": + version: 7.37.2 + resolution: "eslint-plugin-react@npm:7.37.2" dependencies: - array-includes: "npm:^3.1.7" - array.prototype.findlast: "npm:^1.2.4" + array-includes: "npm:^3.1.8" + array.prototype.findlast: "npm:^1.2.5" array.prototype.flatmap: "npm:^1.3.2" - array.prototype.toreversed: "npm:^1.1.2" - array.prototype.tosorted: "npm:^1.1.3" + array.prototype.tosorted: "npm:^1.1.4" doctrine: "npm:^2.1.0" - es-iterator-helpers: "npm:^1.0.17" + es-iterator-helpers: "npm:^1.1.0" estraverse: "npm:^5.3.0" + hasown: "npm:^2.0.2" jsx-ast-utils: "npm:^2.4.1 || ^3.0.0" minimatch: "npm:^3.1.2" - object.entries: "npm:^1.1.7" - object.fromentries: "npm:^2.0.7" - object.hasown: "npm:^1.1.3" - object.values: "npm:^1.1.7" + object.entries: "npm:^1.1.8" + object.fromentries: "npm:^2.0.8" + object.values: "npm:^1.2.0" prop-types: "npm:^15.8.1" resolve: "npm:^2.0.0-next.5" semver: "npm:^6.3.1" - string.prototype.matchall: "npm:^4.0.10" + string.prototype.matchall: "npm:^4.0.11" + string.prototype.repeat: "npm:^1.0.0" peerDependencies: - eslint: ^3 || ^4 || ^5 || ^6 || ^7 || ^8 - checksum: 10c0/9bf0b959373ace66e799adbbfb493a7ceae54751e8f90fcce1da1a2a67b277ee23ba845571eaa4d4f05d96dba4e4977bf938b350f18bad26201fa616ee6aa4b8 + eslint: ^3 || ^4 || ^5 || ^6 || ^7 || ^8 || ^9.7 + checksum: 10c0/01c498f263c201698bf653973760f86a07fa0cdec56c044f3eaa5ddaae71c64326015dfa5fde76ca8c5386ffe789fc79932624b614e13b6a1ad789fee3f7c491 languageName: node linkType: hard -"eslint-scope@npm:5.1.1": - version: 5.1.1 - resolution: "eslint-scope@npm:5.1.1" - dependencies: - esrecurse: "npm:^4.3.0" - estraverse: "npm:^4.1.1" - checksum: 10c0/d30ef9dc1c1cbdece34db1539a4933fe3f9b14e1ffb27ecc85987902ee663ad7c9473bbd49a9a03195a373741e62e2f807c4938992e019b511993d163450e70a +"eslint-plugin-simple-import-sort@npm:^12.1.1": + version: 12.1.1 + resolution: "eslint-plugin-simple-import-sort@npm:12.1.1" + peerDependencies: + eslint: ">=5.0.0" + checksum: 10c0/0ad1907ad9ddbadd1db655db0a9d0b77076e274b793a77b982c8525d808d868e6ecfce24f3a411e8a1fa551077387f9ebb38c00956073970ebd7ee6a029ce2b3 languageName: node linkType: hard -"eslint-scope@npm:^7.2.2": - version: 7.2.2 - resolution: "eslint-scope@npm:7.2.2" +"eslint-scope@npm:^8.2.0": + version: 8.2.0 + resolution: "eslint-scope@npm:8.2.0" dependencies: esrecurse: "npm:^4.3.0" estraverse: "npm:^5.2.0" - checksum: 10c0/613c267aea34b5a6d6c00514e8545ef1f1433108097e857225fed40d397dd6b1809dffd11c2fde23b37ca53d7bf935fe04d2a18e6fc932b31837b6ad67e1c116 - languageName: node - linkType: hard - -"eslint-visitor-keys@npm:^2.1.0": - version: 2.1.0 - resolution: "eslint-visitor-keys@npm:2.1.0" - checksum: 10c0/9f0e3a2db751d84067d15977ac4b4472efd6b303e369e6ff241a99feac04da758f46d5add022c33d06b53596038dbae4b4aceb27c7e68b8dfc1055b35e495787 + checksum: 10c0/8d2d58e2136d548ac7e0099b1a90d9fab56f990d86eb518de1247a7066d38c908be2f3df477a79cf60d70b30ba18735d6c6e70e9914dca2ee515a729975d70d6 languageName: node linkType: hard -"eslint-visitor-keys@npm:^3.3.0, eslint-visitor-keys@npm:^3.4.1, eslint-visitor-keys@npm:^3.4.3": +"eslint-visitor-keys@npm:^3.3.0": version: 3.4.3 resolution: "eslint-visitor-keys@npm:3.4.3" checksum: 10c0/92708e882c0a5ffd88c23c0b404ac1628cf20104a108c745f240a13c332a11aac54f49a22d5762efbffc18ecbc9a580d1b7ad034bf5f3cc3307e5cbff2ec9820 languageName: node linkType: hard -"eslint@npm:^8.57.0": - version: 8.57.0 - resolution: "eslint@npm:8.57.0" +"eslint-visitor-keys@npm:^4.2.0": + version: 4.2.0 + resolution: "eslint-visitor-keys@npm:4.2.0" + checksum: 10c0/2ed81c663b147ca6f578312919483eb040295bbab759e5a371953456c636c5b49a559883e2677112453728d66293c0a4c90ab11cab3428cf02a0236d2e738269 + languageName: node + linkType: hard + +"eslint@npm:^9.15.0": + version: 9.15.0 + resolution: "eslint@npm:9.15.0" dependencies: "@eslint-community/eslint-utils": "npm:^4.2.0" - "@eslint-community/regexpp": "npm:^4.6.1" - "@eslint/eslintrc": "npm:^2.1.4" - "@eslint/js": "npm:8.57.0" - "@humanwhocodes/config-array": "npm:^0.11.14" + "@eslint-community/regexpp": "npm:^4.12.1" + "@eslint/config-array": "npm:^0.19.0" + "@eslint/core": "npm:^0.9.0" + "@eslint/eslintrc": "npm:^3.2.0" + "@eslint/js": "npm:9.15.0" + "@eslint/plugin-kit": "npm:^0.2.3" + "@humanfs/node": "npm:^0.16.6" "@humanwhocodes/module-importer": "npm:^1.0.1" - "@nodelib/fs.walk": "npm:^1.2.8" - "@ungap/structured-clone": "npm:^1.2.0" + "@humanwhocodes/retry": "npm:^0.4.1" + "@types/estree": "npm:^1.0.6" + "@types/json-schema": "npm:^7.0.15" ajv: "npm:^6.12.4" chalk: "npm:^4.0.0" - cross-spawn: "npm:^7.0.2" + cross-spawn: "npm:^7.0.5" debug: "npm:^4.3.2" - doctrine: "npm:^3.0.0" escape-string-regexp: "npm:^4.0.0" - eslint-scope: "npm:^7.2.2" - eslint-visitor-keys: "npm:^3.4.3" - espree: "npm:^9.6.1" - esquery: "npm:^1.4.2" + eslint-scope: "npm:^8.2.0" + eslint-visitor-keys: "npm:^4.2.0" + espree: "npm:^10.3.0" + esquery: "npm:^1.5.0" esutils: "npm:^2.0.2" fast-deep-equal: "npm:^3.1.3" - file-entry-cache: "npm:^6.0.1" + file-entry-cache: "npm:^8.0.0" find-up: "npm:^5.0.0" glob-parent: "npm:^6.0.2" - globals: "npm:^13.19.0" - graphemer: "npm:^1.4.0" ignore: "npm:^5.2.0" imurmurhash: "npm:^0.1.4" is-glob: "npm:^4.0.0" - is-path-inside: "npm:^3.0.3" - js-yaml: "npm:^4.1.0" json-stable-stringify-without-jsonify: "npm:^1.0.1" - levn: "npm:^0.4.1" lodash.merge: "npm:^4.6.2" minimatch: "npm:^3.1.2" natural-compare: "npm:^1.4.0" optionator: "npm:^0.9.3" - strip-ansi: "npm:^6.0.1" - text-table: "npm:^0.2.0" + peerDependencies: + jiti: "*" + peerDependenciesMeta: + jiti: + optional: true bin: eslint: bin/eslint.js - checksum: 10c0/00bb96fd2471039a312435a6776fe1fd557c056755eaa2b96093ef3a8508c92c8775d5f754768be6b1dddd09fdd3379ddb231eeb9b6c579ee17ea7d68000a529 + checksum: 10c0/d0d7606f36bfcccb1c3703d0a24df32067b207a616f17efe5fb1765a91d13f085afffc4fc97ecde4ab9c9f4edd64d9b4ce750e13ff7937a25074b24bee15b20f languageName: node linkType: hard -"espree@npm:^9.6.0, espree@npm:^9.6.1": - version: 9.6.1 - resolution: "espree@npm:9.6.1" +"espree@npm:^10.0.1, espree@npm:^10.3.0": + version: 10.3.0 + resolution: "espree@npm:10.3.0" dependencies: - acorn: "npm:^8.9.0" + acorn: "npm:^8.14.0" acorn-jsx: "npm:^5.3.2" - eslint-visitor-keys: "npm:^3.4.1" - checksum: 10c0/1a2e9b4699b715347f62330bcc76aee224390c28bb02b31a3752e9d07549c473f5f986720483c6469cf3cfb3c9d05df612ffc69eb1ee94b54b739e67de9bb460 + eslint-visitor-keys: "npm:^4.2.0" + checksum: 10c0/272beeaca70d0a1a047d61baff64db04664a33d7cfb5d144f84bc8a5c6194c6c8ebe9cc594093ca53add88baa23e59b01e69e8a0160ab32eac570482e165c462 languageName: node linkType: hard @@ -10039,12 +9180,12 @@ __metadata: languageName: node linkType: hard -"esquery@npm:^1.4.2": - version: 1.5.0 - resolution: "esquery@npm:1.5.0" +"esquery@npm:^1.5.0": + version: 1.6.0 + resolution: "esquery@npm:1.6.0" dependencies: estraverse: "npm:^5.1.0" - checksum: 10c0/a084bd049d954cc88ac69df30534043fb2aee5555b56246493f42f27d1e168f00d9e5d4192e46f10290d312dc30dc7d58994d61a609c579c1219d636996f9213 + checksum: 10c0/cb9065ec605f9da7a76ca6dadb0619dfb611e37a81e318732977d90fab50a256b95fee2d925fba7c2f3f0523aa16f91587246693bc09bc34d5a59575fe6e93d2 languageName: node linkType: hard @@ -10057,13 +9198,6 @@ __metadata: languageName: node linkType: hard -"estraverse@npm:^4.1.1": - version: 4.3.0 - resolution: "estraverse@npm:4.3.0" - checksum: 10c0/9cb46463ef8a8a4905d3708a652d60122a0c20bb58dec7e0e12ab0e7235123d74214fc0141d743c381813e1b992767e2708194f6f6e0f9fd00c1b4e0887b8b6d - languageName: node - linkType: hard - "estraverse@npm:^5.1.0, estraverse@npm:^5.2.0, estraverse@npm:^5.3.0": version: 5.3.0 resolution: "estraverse@npm:5.3.0" @@ -10198,21 +9332,8 @@ __metadata: "fast-deep-equal@npm:^3.1.1, fast-deep-equal@npm:^3.1.3": version: 3.1.3 - resolution: "fast-deep-equal@npm:3.1.3" - checksum: 10c0/40dedc862eb8992c54579c66d914635afbec43350afbbe991235fdcb4e3a8d5af1b23ae7e79bef7d4882d0ecee06c3197488026998fb19f72dc95acff1d1b1d0 - languageName: node - linkType: hard - -"fast-glob@npm:3.2.7": - version: 3.2.7 - resolution: "fast-glob@npm:3.2.7" - dependencies: - "@nodelib/fs.stat": "npm:^2.0.2" - "@nodelib/fs.walk": "npm:^1.2.3" - glob-parent: "npm:^5.1.2" - merge2: "npm:^1.3.0" - micromatch: "npm:^4.0.4" - checksum: 10c0/cc820a9acbd99c51267d525ed3c0c368b57d273f8d34e2401eef824390ff38ff419af3c0308d4ec1aef3dae0e24d1ac1dfe3156e5c702d63416a4c877ab7e0c4 + resolution: "fast-deep-equal@npm:3.1.3" + checksum: 10c0/40dedc862eb8992c54579c66d914635afbec43350afbbe991235fdcb4e3a8d5af1b23ae7e79bef7d4882d0ecee06c3197488026998fb19f72dc95acff1d1b1d0 languageName: node linkType: hard @@ -10243,15 +9364,6 @@ __metadata: languageName: node linkType: hard -"fast-url-parser@npm:1.1.3": - version: 1.1.3 - resolution: "fast-url-parser@npm:1.1.3" - dependencies: - punycode: "npm:^1.3.2" - checksum: 10c0/d85c5c409cf0215417380f98a2d29c23a95004d93ff0d8bdf1af5f1a9d1fc608ac89ac6ffe863783d2c73efb3850dd35390feb1de3296f49877bfee0392eb5d3 - languageName: node - linkType: hard - "fastq@npm:^1.6.0": version: 1.10.0 resolution: "fastq@npm:1.10.0" @@ -10288,12 +9400,12 @@ __metadata: languageName: node linkType: hard -"file-entry-cache@npm:^6.0.1": - version: 6.0.1 - resolution: "file-entry-cache@npm:6.0.1" +"file-entry-cache@npm:^8.0.0": + version: 8.0.0 + resolution: "file-entry-cache@npm:8.0.0" dependencies: - flat-cache: "npm:^3.0.4" - checksum: 10c0/58473e8a82794d01b38e5e435f6feaf648e3f36fdb3a56e98f417f4efae71ad1c0d4ebd8a9a7c50c3ad085820a93fc7494ad721e0e4ebc1da3573f4e1c3c7cdd + flat-cache: "npm:^4.0.0" + checksum: 10c0/9e2b5938b1cd9b6d7e3612bdc533afd4ac17b2fc646569e9a8abbf2eb48e5eb8e316bc38815a3ef6a1b456f4107f0d0f055a614ca613e75db6bf9ff4d72c1638 languageName: node linkType: hard @@ -10336,13 +9448,6 @@ __metadata: languageName: node linkType: hard -"find-root@npm:^1.1.0": - version: 1.1.0 - resolution: "find-root@npm:1.1.0" - checksum: 10c0/1abc7f3bf2f8d78ff26d9e00ce9d0f7b32e5ff6d1da2857bcdf4746134c422282b091c672cde0572cac3840713487e0a7a636af9aa1b74cb11894b447a521efa - languageName: node - linkType: hard - "find-up@npm:^2.0.0": version: 2.1.0 resolution: "find-up@npm:2.1.0" @@ -10372,13 +9477,13 @@ __metadata: languageName: node linkType: hard -"flat-cache@npm:^3.0.4": - version: 3.0.4 - resolution: "flat-cache@npm:3.0.4" +"flat-cache@npm:^4.0.0": + version: 4.0.1 + resolution: "flat-cache@npm:4.0.1" dependencies: - flatted: "npm:^3.1.0" - rimraf: "npm:^3.0.2" - checksum: 10c0/f274dcbadb09ad8d7b6edf2ee9b034bc40bf0c12638f6c4084e9f1d39208cb104a5ebbb24b398880ef048200eaa116852f73d2d8b72e8c9627aba8c3e27ca057 + flatted: "npm:^3.2.9" + keyv: "npm:^4.5.4" + checksum: 10c0/2c59d93e9faa2523e4fda6b4ada749bed432cfa28c8e251f33b25795e426a1c6dbada777afb1f74fcfff33934fdbdea921ee738fcc33e71adc9d6eca984a1cfc languageName: node linkType: hard @@ -10391,10 +9496,10 @@ __metadata: languageName: node linkType: hard -"flatted@npm:^3.1.0": - version: 3.1.1 - resolution: "flatted@npm:3.1.1" - checksum: 10c0/179b26156c37e529addfb530dd1ea3b9e49888fa7e2ec34bc644e603965db6889d70e1bbc14e2ccae680a0f71bbf7446c396660905a92b436a78f14d011fb349 +"flatted@npm:^3.2.9": + version: 3.3.1 + resolution: "flatted@npm:3.3.1" + checksum: 10c0/324166b125ee07d4ca9bcf3a5f98d915d5db4f39d711fba640a3178b959919aae1f7cfd8aabcfef5826ed8aa8a2aa14cc85b2d7d18ff638ddf4ae3df39573eaf languageName: node linkType: hard @@ -10447,6 +9552,15 @@ __metadata: languageName: node linkType: hard +"front-matter@npm:^4.0.2": + version: 4.0.2 + resolution: "front-matter@npm:4.0.2" + dependencies: + js-yaml: "npm:^3.13.1" + checksum: 10c0/7a0df5ca37428dd563c057bc17a8940481fe53876609bcdc443a02ce463c70f1842c7cb4628b80916de46a253732794b36fb6a31105db0f185698a93acee4011 + languageName: node + linkType: hard + "frontend-packages@workspace:.": version: 0.0.0-use.local resolution: "frontend-packages@workspace:." @@ -10455,64 +9569,54 @@ __metadata: "@babel/preset-env": "npm:^7.26.0" "@babel/preset-react": "npm:^7.25.9" "@babel/preset-typescript": "npm:^7.26.0" - "@emotion/babel-plugin": "npm:^11.12.0" - "@emotion/jest": "npm:^11.13.0" - "@emotion/react": "npm:^11.13.3" - "@emotion/styled": "npm:^11.13.0" "@fontsource/source-code-pro": "npm:^4.5.9" "@fontsource/source-sans-pro": "npm:^4.5.9" "@fontsource/source-serif-pro": "npm:^4.5.7" "@ndla/types-backend": "npm:^0.2.86" - "@pandacss/dev": "npm:^0.46.0" - "@storybook/addon-a11y": "npm:^8.4.0" - "@storybook/addon-docs": "npm:^8.4.0" - "@storybook/addon-essentials": "npm:^8.4.0" - "@storybook/addon-links": "npm:^8.4.0" - "@storybook/builder-vite": "npm:^8.4.0" - "@storybook/manager-api": "npm:^8.4.0" - "@storybook/react": "npm:^8.4.0" - "@storybook/react-vite": "npm:^8.4.0" - "@storybook/theming": "npm:^8.4.0" + "@pandacss/dev": "npm:^0.48.0" + "@storybook/addon-a11y": "npm:^8.4.7" + "@storybook/addon-docs": "npm:^8.4.7" + "@storybook/addon-essentials": "npm:^8.4.7" + "@storybook/addon-links": "npm:^8.4.7" + "@storybook/react-vite": "npm:^8.4.7" "@svgr/core": "npm:^8.1.0" "@svgr/plugin-jsx": "npm:^8.1.0" "@svgr/plugin-prettier": "npm:^8.1.0" "@svgr/plugin-svgo": "npm:^8.1.0" - "@testing-library/jest-dom": "npm:^6.1.5" - "@testing-library/react": "npm:14.1.2" + "@testing-library/dom": "npm:^10.4.0" + "@testing-library/jest-dom": "npm:^6.6.3" + "@testing-library/react": "npm:16.1.0" "@types/htmlparser2": "npm:^3.10.3" - "@types/jest": "npm:^29.5.10" + "@types/jest": "npm:^29.5.14" "@types/lodash.throttle": "npm:^4.1.9" "@types/node": "npm:^20.12.12" - "@types/react": "npm:^18.3.2" - "@types/react-dom": "npm:^18.3.0" - "@vitejs/plugin-react": "npm:^4.3.3" + "@types/react": "npm:^19.0.0" + "@types/react-dom": "npm:^19.0.1" + "@vitejs/plugin-react": "npm:^4.3.4" babel-jest: "npm:^29.7.0" chalk: "npm:^2.4.2" chokidar: "npm:^3.5.3" concurrently: "npm:^9.0.1" cross-env: "npm:^7.0.3" cross-spawn: "npm:^7.0.3" - eslint: "npm:^8.57.0" + eslint: "npm:^9.15.0" i18next: "npm:^23.11.5" jest: "npm:^29.7.0" jest-environment-jsdom: "npm:^29.7.0" - lerna: "npm:^7.1.4" - nx: "npm:16.5.3" + lerna: "npm:^8.1.9" + nx: "npm:20.1.4" postcss: "npm:^8.4.22" prettier: "npm:^3.1.0" - prismjs: "npm:^1.29.0" - react: "npm:^18.3.1" - react-device-detect: "npm:^2.2.3" - react-dom: "npm:^18.3.1" - react-helmet-async: "npm:^1.3.0" + react: "npm:^19.0.0" + react-dom: "npm:^19.0.0" react-i18next: "npm:^14.1.1" react-router-dom: "npm:^6.3.0" - serve: "npm:^14.2.3" - storybook: "npm:^8.4.0" - ts-jest: "npm:^29.1.1" - typescript: "npm:^5.6.3" - vite: "npm:^5.4.10" - vite-tsconfig-paths: "npm:^5.0.1" + serve: "npm:^14.2.4" + storybook: "npm:^8.4.7" + ts-jest: "npm:^29.2.5" + typescript: "npm:^5.7.2" + typescript-eslint: "npm:^8.15.0" + vite: "npm:^6.0.2" languageName: unknown linkType: soft @@ -10534,7 +9638,7 @@ __metadata: languageName: node linkType: hard -"fs-extra@npm:11.2.0, fs-extra@npm:^11.1.0, fs-extra@npm:^11.1.1": +"fs-extra@npm:11.2.0, fs-extra@npm:^11.2.0": version: 11.2.0 resolution: "fs-extra@npm:11.2.0" dependencies: @@ -10565,7 +9669,7 @@ __metadata: languageName: node linkType: hard -"fs-minipass@npm:^2.0.0, fs-minipass@npm:^2.1.0": +"fs-minipass@npm:^2.0.0": version: 2.1.0 resolution: "fs-minipass@npm:2.1.0" dependencies: @@ -10671,22 +9775,6 @@ __metadata: languageName: node linkType: hard -"gauge@npm:^4.0.3": - version: 4.0.4 - resolution: "gauge@npm:4.0.4" - dependencies: - aproba: "npm:^1.0.3 || ^2.0.0" - color-support: "npm:^1.1.3" - console-control-strings: "npm:^1.1.0" - has-unicode: "npm:^2.0.1" - signal-exit: "npm:^3.0.7" - string-width: "npm:^4.2.3" - strip-ansi: "npm:^6.0.1" - wide-align: "npm:^1.1.5" - checksum: 10c0/ef10d7981113d69225135f994c9f8c4369d945e64a8fc721d655a3a38421b738c9fe899951721d1b47b73c41fdb5404ac87cc8903b2ecbed95d2800363e7e58c - languageName: node - linkType: hard - "generic-pool@npm:3.4.2": version: 3.4.2 resolution: "generic-pool@npm:3.4.2" @@ -10721,13 +9809,6 @@ __metadata: languageName: node linkType: hard -"get-nonce@npm:^1.0.0": - version: 1.0.1 - resolution: "get-nonce@npm:1.0.1" - checksum: 10c0/2d7df55279060bf0568549e1ffc9b84bc32a32b7541675ca092dce56317cdd1a59a98dcc4072c9f6a980779440139a3221d7486f52c488e69dc0fd27b1efb162 - languageName: node - linkType: hard - "get-package-type@npm:^0.1.0": version: 0.1.0 resolution: "get-package-type@npm:0.1.0" @@ -10835,12 +9916,12 @@ __metadata: languageName: node linkType: hard -"git-url-parse@npm:13.1.0": - version: 13.1.0 - resolution: "git-url-parse@npm:13.1.0" +"git-url-parse@npm:14.0.0": + version: 14.0.0 + resolution: "git-url-parse@npm:14.0.0" dependencies: git-up: "npm:^7.0.0" - checksum: 10c0/2ef6126c42d999e240dbcdf1e96172cf7a2044ffa1ef78a518acf823df9bbe2a1ea9e6b443d42948e3c581e4d899559afc4c1de024b3eaa8eb6a4229f73285aa + checksum: 10c0/d360cf23c6278e302b74603f3dc490c3fe22e533d58b7f35e0295fad9af209ce5046a55950ccbf2f0d18de7931faefb4353e3f3fd3dda87fce77b409d48e0ba9 languageName: node linkType: hard @@ -10853,15 +9934,6 @@ __metadata: languageName: node linkType: hard -"glob-parent@npm:5.1.2, glob-parent@npm:^5.1.2, glob-parent@npm:~5.1.0, glob-parent@npm:~5.1.2": - version: 5.1.2 - resolution: "glob-parent@npm:5.1.2" - dependencies: - is-glob: "npm:^4.0.1" - checksum: 10c0/cab87638e2112bee3f839ef5f6e0765057163d39c66be8ec1602f3823da4692297ad4e972de876ea17c44d652978638d2fd583c6713d0eb6591706825020c9ee - languageName: node - linkType: hard - "glob-parent@npm:6.0.2, glob-parent@npm:^6.0.2": version: 6.0.2 resolution: "glob-parent@npm:6.0.2" @@ -10871,28 +9943,12 @@ __metadata: languageName: node linkType: hard -"glob-promise@npm:^4.2.0": - version: 4.2.2 - resolution: "glob-promise@npm:4.2.2" - dependencies: - "@types/glob": "npm:^7.1.3" - peerDependencies: - glob: ^7.1.6 - checksum: 10c0/3eb01bed2901539365df6a4d27800afb8788840647d01f9bf3500b3de756597f2ff4b8c823971ace34db228c83159beca459dc42a70968d4e9c8200ed2cc96bd - languageName: node - linkType: hard - -"glob@npm:7.1.4": - version: 7.1.4 - resolution: "glob@npm:7.1.4" +"glob-parent@npm:^5.1.2, glob-parent@npm:~5.1.0, glob-parent@npm:~5.1.2": + version: 5.1.2 + resolution: "glob-parent@npm:5.1.2" dependencies: - fs.realpath: "npm:^1.0.0" - inflight: "npm:^1.0.4" - inherits: "npm:2" - minimatch: "npm:^3.0.4" - once: "npm:^1.3.0" - path-is-absolute: "npm:^1.0.0" - checksum: 10c0/7f6fcbf600eb2298cce34c65f6d8bbe6933ddd4f88aa5b38a9c6feec82b615bb33b63b120725303e89c4b50284413c21d2ff883414717a5c7d0c9f7cd7a0e5fe + is-glob: "npm:^4.0.1" + checksum: 10c0/cab87638e2112bee3f839ef5f6e0765057163d39c66be8ec1602f3823da4692297ad4e972de876ea17c44d652978638d2fd583c6713d0eb6591706825020c9ee languageName: node linkType: hard @@ -10911,7 +9967,7 @@ __metadata: languageName: node linkType: hard -"glob@npm:^7.1.3, glob@npm:^7.1.4, glob@npm:^7.2.0": +"glob@npm:^7.1.3, glob@npm:^7.1.4": version: 7.2.3 resolution: "glob@npm:7.2.3" dependencies: @@ -10925,19 +9981,6 @@ __metadata: languageName: node linkType: hard -"glob@npm:^8.0.1": - version: 8.1.0 - resolution: "glob@npm:8.1.0" - dependencies: - fs.realpath: "npm:^1.0.0" - inflight: "npm:^1.0.4" - inherits: "npm:2" - minimatch: "npm:^5.0.1" - once: "npm:^1.3.0" - checksum: 10c0/cb0b5cab17a59c57299376abe5646c7070f8acb89df5595b492dba3bfb43d301a46c01e5695f01154e6553168207cb60d4eaf07d3be4bc3eb9b0457c5c561d0f - languageName: node - linkType: hard - "glob@npm:^9.2.0": version: 9.3.5 resolution: "glob@npm:9.3.5" @@ -10957,25 +10000,31 @@ __metadata: languageName: node linkType: hard -"globals@npm:^13.19.0": - version: 13.20.0 - resolution: "globals@npm:13.20.0" - dependencies: - type-fest: "npm:^0.20.2" - checksum: 10c0/9a028f136f1e7a3574689f430f7d57faa0d699c4c7e92ade00b02882a892be31c314d50dff07b48e607283013117bb8a997406d03a1f7ab4a33a005eb16efd6c +"globals@npm:^14.0.0": + version: 14.0.0 + resolution: "globals@npm:14.0.0" + checksum: 10c0/b96ff42620c9231ad468d4c58ff42afee7777ee1c963013ff8aabe095a451d0ceeb8dcd8ef4cbd64d2538cef45f787a78ba3a9574f4a634438963e334471302d languageName: node linkType: hard -"globalthis@npm:^1.0.3": - version: 1.0.3 - resolution: "globalthis@npm:1.0.3" +"globals@npm:^15.13.0": + version: 15.13.0 + resolution: "globals@npm:15.13.0" + checksum: 10c0/640365115ca5f81d91e6a7667f4935021705e61a1a5a76a6ec5c3a5cdf6e53f165af7f9db59b7deb65cf2e1f83d03ac8d6660d0b14c569c831a9b6483eeef585 + languageName: node + linkType: hard + +"globalthis@npm:^1.0.3, globalthis@npm:^1.0.4": + version: 1.0.4 + resolution: "globalthis@npm:1.0.4" dependencies: - define-properties: "npm:^1.1.3" - checksum: 10c0/0db6e9af102a5254630351557ac15e6909bc7459d3e3f6b001e59fe784c96d31108818f032d9095739355a88467459e6488ff16584ee6250cd8c27dec05af4b0 + define-properties: "npm:^1.2.1" + gopd: "npm:^1.0.1" + checksum: 10c0/9d156f313af79d80b1566b93e19285f481c591ad6d0d319b4be5e03750d004dde40a39a0f26f7e635f9007a3600802f53ecd85a759b86f109e80a5f705e01846 languageName: node linkType: hard -"globby@npm:11.1.0, globby@npm:^11.1.0": +"globby@npm:11.1.0": version: 11.1.0 resolution: "globby@npm:11.1.0" dependencies: @@ -10989,13 +10038,6 @@ __metadata: languageName: node linkType: hard -"globrex@npm:^0.1.2": - version: 0.1.2 - resolution: "globrex@npm:0.1.2" - checksum: 10c0/a54c029520cf58bda1d8884f72bd49b4cd74e977883268d931fd83bcbd1a9eb96d57c7dbd4ad80148fb9247467ebfb9b215630b2ed7563b2a8de02e1ff7f89d1 - languageName: node - linkType: hard - "gopd@npm:^1.0.1": version: 1.0.1 resolution: "gopd@npm:1.0.1" @@ -11104,7 +10146,7 @@ __metadata: languageName: node linkType: hard -"hasown@npm:^2.0.0, hasown@npm:^2.0.1": +"hasown@npm:^2.0.0, hasown@npm:^2.0.1, hasown@npm:^2.0.2": version: 2.0.2 resolution: "hasown@npm:2.0.2" dependencies: @@ -11122,15 +10164,6 @@ __metadata: languageName: node linkType: hard -"hoist-non-react-statics@npm:^3.3.1": - version: 3.3.2 - resolution: "hoist-non-react-statics@npm:3.3.2" - dependencies: - react-is: "npm:^16.7.0" - checksum: 10c0/fe0889169e845d738b59b64badf5e55fa3cf20454f9203d1eb088df322d49d4318df774828e789898dcb280e8a5521bb59b3203385662ca5e9218a6ca5820e74 - languageName: node - linkType: hard - "hookable@npm:5.5.3": version: 5.5.3 resolution: "hookable@npm:5.5.3" @@ -11145,15 +10178,6 @@ __metadata: languageName: node linkType: hard -"hosted-git-info@npm:^3.0.6": - version: 3.0.8 - resolution: "hosted-git-info@npm:3.0.8" - dependencies: - lru-cache: "npm:^6.0.0" - checksum: 10c0/af1392086ab3ab5576aa81af07be2f93ee1588407af18fd9752eb67502558e6ea0ffdd4be35ac6c8bef12fb9017f6e7705757e21b10b5ce7798da9106c9c0d9d - languageName: node - linkType: hard - "hosted-git-info@npm:^4.0.0, hosted-git-info@npm:^4.0.1": version: 4.1.0 resolution: "hosted-git-info@npm:4.1.0" @@ -11163,22 +10187,22 @@ __metadata: languageName: node linkType: hard -"hosted-git-info@npm:^6.0.0": - version: 6.1.1 - resolution: "hosted-git-info@npm:6.1.1" +"hosted-git-info@npm:^7.0.0, hosted-git-info@npm:^7.0.2": + version: 7.0.2 + resolution: "hosted-git-info@npm:7.0.2" dependencies: - lru-cache: "npm:^7.5.1" - checksum: 10c0/ba7158f81ae29c1b5a1e452fa517082f928051da8797a00788a84ff82b434996d34f78a875bbb688aec162bda1d4cf71d2312f44da3c896058803f5efa6ce77f + lru-cache: "npm:^10.0.1" + checksum: 10c0/b19dbd92d3c0b4b0f1513cf79b0fc189f54d6af2129eeb201de2e9baaa711f1936929c848b866d9c8667a0f956f34bf4f07418c12be1ee9ca74fd9246335ca1f languageName: node linkType: hard -"html-dom-parser@npm:5.0.8": - version: 5.0.8 - resolution: "html-dom-parser@npm:5.0.8" +"html-dom-parser@npm:5.0.11": + version: 5.0.11 + resolution: "html-dom-parser@npm:5.0.11" dependencies: domhandler: "npm:5.0.3" htmlparser2: "npm:9.1.0" - checksum: 10c0/a0fcd84e0729c7b18c5df03ac0d2de6feae61846e746a7aab11315d6eb3e2352d12897cb8af7667b493a55f3fed066550037d8c37efaa1fe05ebedb28921b7d1 + checksum: 10c0/752c962663d9873d90d15d1c0b5721dd16816b2ee307b660e5d579d962674d9aec10d7b532607349df21a6ee8c0f308821480b1fe664fbefad76fe94ca96d086 languageName: node linkType: hard @@ -11207,21 +10231,21 @@ __metadata: languageName: node linkType: hard -"html-react-parser@npm:^5.1.8": - version: 5.1.8 - resolution: "html-react-parser@npm:5.1.8" +"html-react-parser@npm:^5.1.19": + version: 5.1.19 + resolution: "html-react-parser@npm:5.1.19" dependencies: domhandler: "npm:5.0.3" - html-dom-parser: "npm:5.0.8" + html-dom-parser: "npm:5.0.11" react-property: "npm:2.0.2" - style-to-js: "npm:1.1.10" + style-to-js: "npm:1.1.16" peerDependencies: - "@types/react": 17 || 18 + "@types/react": 0.14 || 15 || 16 || 17 || 18 react: 0.14 || 15 || 16 || 17 || 18 peerDependenciesMeta: "@types/react": optional: true - checksum: 10c0/e761dc1db61dcc384a5d6fffedb3d83b4a6793eda36551394d0907cb8afe75ac1b5ca36b26bdd054da7940c920d278837bd9c34ccd39c29da4ebc4b016c0a96d + checksum: 10c0/e1eeea0c40d7a4e96a77e6f79128978795af3f8f961653729bf0cc5de4e0bf377a6b576932988755285d1b0c6c6e748dbbddaa1d7cbd0dcd937fc163be4b56be languageName: node linkType: hard @@ -11237,7 +10261,7 @@ __metadata: languageName: node linkType: hard -"http-cache-semantics@npm:^4.1.0, http-cache-semantics@npm:^4.1.1": +"http-cache-semantics@npm:^4.1.1": version: 4.1.1 resolution: "http-cache-semantics@npm:4.1.1" checksum: 10c0/ce1319b8a382eb3cbb4a37c19f6bfe14e5bb5be3d09079e885e8c513ab2d3cd9214902f8a31c9dc4e37022633ceabfc2d697405deeaf1b8f3552bb4ed996fdfc @@ -11322,15 +10346,6 @@ __metadata: languageName: node linkType: hard -"humanize-ms@npm:^1.2.1": - version: 1.2.1 - resolution: "humanize-ms@npm:1.2.1" - dependencies: - ms: "npm:^2.0.0" - checksum: 10c0/f34a2c20161d02303c2807badec2f3b49cbfbbb409abd4f95a07377ae01cfe6b59e3d15ac609cffcd8f2521f0eb37b7e1091acf65da99aa2a4f1ad63c21e7e7a - languageName: node - linkType: hard - "i18next-browser-languagedetector@npm:^7.1.0": version: 7.1.0 resolution: "i18next-browser-languagedetector@npm:7.1.0" @@ -11374,32 +10389,23 @@ __metadata: languageName: node linkType: hard -"ignore-walk@npm:^5.0.1": - version: 5.0.1 - resolution: "ignore-walk@npm:5.0.1" - dependencies: - minimatch: "npm:^5.0.1" - checksum: 10c0/0d157a54d6d11af0c3059fdc7679eef3b074e9a663d110a76c72788e2fb5b22087e08b21ab767718187ac3396aca4d0aa6c6473f925b19a74d9a00480ca7a76e - languageName: node - linkType: hard - -"ignore-walk@npm:^6.0.0": - version: 6.0.3 - resolution: "ignore-walk@npm:6.0.3" +"ignore-walk@npm:^6.0.4": + version: 6.0.5 + resolution: "ignore-walk@npm:6.0.5" dependencies: minimatch: "npm:^9.0.0" - checksum: 10c0/327759df98c7b4d4039e4c4913507ca372b2a38bb44a1c2bd7ff2ffc7eee7a379025301e478d7640672f0007807c5ec5cc2e41c5226b9058aa58f00b600d3731 + checksum: 10c0/8bd6d37c82400016c7b6538b03422dde8c9d7d3e99051c8357dd205d499d42828522fb4fbce219c9c21b4b069079445bacdc42bbd3e2e073b52856c2646d8a39 languageName: node linkType: hard -"ignore@npm:^5.0.4, ignore@npm:^5.2.0, ignore@npm:^5.2.4": - version: 5.2.4 - resolution: "ignore@npm:5.2.4" - checksum: 10c0/7c7cd90edd9fea6e037f9b9da4b01bf0a86b198ce78345f9bbd983929d68ff14830be31111edc5d70c264921f4962404d75b7262b4d9cc3bc12381eccbd03096 +"ignore@npm:^5.0.4, ignore@npm:^5.2.0, ignore@npm:^5.3.1": + version: 5.3.2 + resolution: "ignore@npm:5.3.2" + checksum: 10c0/f9f652c957983634ded1e7f02da3b559a0d4cc210fca3792cb67f1b153623c9c42efdc1c4121af171e295444459fc4a9201101fb041b1104a3c000bccb188337 languageName: node linkType: hard -"import-fresh@npm:^3.2.1": +"import-fresh@npm:^3.2.1, import-fresh@npm:^3.3.0": version: 3.3.0 resolution: "import-fresh@npm:3.3.0" dependencies: @@ -11435,13 +10441,6 @@ __metadata: languageName: node linkType: hard -"infer-owner@npm:^1.0.4": - version: 1.0.4 - resolution: "infer-owner@npm:1.0.4" - checksum: 10c0/a7b241e3149c26e37474e3435779487f42f36883711f198c45794703c7556bc38af224088bd4d1a221a45b8208ae2c2bcf86200383621434d0c099304481c5b9 - languageName: node - linkType: hard - "inflight@npm:^1.0.4": version: 1.0.6 resolution: "inflight@npm:1.0.6" @@ -11473,25 +10472,32 @@ __metadata: languageName: node linkType: hard -"init-package-json@npm:5.0.0": - version: 5.0.0 - resolution: "init-package-json@npm:5.0.0" +"ini@npm:^4.1.3": + version: 4.1.3 + resolution: "ini@npm:4.1.3" + checksum: 10c0/0d27eff094d5f3899dd7c00d0c04ea733ca03a8eb6f9406ce15daac1a81de022cb417d6eaff7e4342451ffa663389c565ffc68d6825eaf686bf003280b945764 + languageName: node + linkType: hard + +"init-package-json@npm:6.0.3": + version: 6.0.3 + resolution: "init-package-json@npm:6.0.3" dependencies: - npm-package-arg: "npm:^10.0.0" + "@npmcli/package-json": "npm:^5.0.0" + npm-package-arg: "npm:^11.0.0" promzard: "npm:^1.0.0" - read: "npm:^2.0.0" - read-package-json: "npm:^6.0.0" + read: "npm:^3.0.1" semver: "npm:^7.3.5" validate-npm-package-license: "npm:^3.0.4" validate-npm-package-name: "npm:^5.0.0" - checksum: 10c0/bf23946580af21edb07cb2847516625f361775b2f7b26d53ef629fe6cf920b491d41e63343419c89567999e7e568396f98ec107b733ac3679e52222f518ee28b + checksum: 10c0/a80f024ee041a2cf4d3062ba936abf015cbc32bda625cabe994d1fa4bd942bb9af37a481afd6880d340d3e94d90bf97bed1a0a877cc8c7c9b48e723c2524ae74 languageName: node linkType: hard -"inline-style-parser@npm:0.2.2": - version: 0.2.2 - resolution: "inline-style-parser@npm:0.2.2" - checksum: 10c0/82099645fd99451301ff243706f70917c066e3033d32bdb1074a54eb1909e08d1cafb48c426a643facbe8248cff362082e90ca14760b3d44e09a858fe668b3fe +"inline-style-parser@npm:0.2.4": + version: 0.2.4 + resolution: "inline-style-parser@npm:0.2.4" + checksum: 10c0/ddc0b210eaa03e0f98d677b9836242c583c7c6051e84ce0e704ae4626e7871c5b78f8e30853480218b446355745775df318d4f82d33087ff7e393245efa9a881 languageName: node linkType: hard @@ -11518,7 +10524,7 @@ __metadata: languageName: node linkType: hard -"internal-slot@npm:^1.0.5, internal-slot@npm:^1.0.7": +"internal-slot@npm:^1.0.7": version: 1.0.7 resolution: "internal-slot@npm:1.0.7" dependencies: @@ -11538,15 +10544,6 @@ __metadata: languageName: node linkType: hard -"invariant@npm:^2.2.4": - version: 2.2.4 - resolution: "invariant@npm:2.2.4" - dependencies: - loose-envify: "npm:^1.0.0" - checksum: 10c0/5af133a917c0bcf65e84e7f23e779e7abc1cd49cb7fdc62d00d1de74b0d8c1b5ee74ac7766099fb3be1b05b26dfc67bab76a17030d2fe7ea2eef867434362dfc - languageName: node - linkType: hard - "ip-regex@npm:4.3.0": version: 4.3.0 resolution: "ip-regex@npm:4.3.0" @@ -11643,12 +10640,12 @@ __metadata: languageName: node linkType: hard -"is-core-module@npm:^2.13.0, is-core-module@npm:^2.13.1, is-core-module@npm:^2.5.0, is-core-module@npm:^2.8.1": - version: 2.13.1 - resolution: "is-core-module@npm:2.13.1" +"is-core-module@npm:^2.13.0, is-core-module@npm:^2.15.1, is-core-module@npm:^2.5.0": + version: 2.15.1 + resolution: "is-core-module@npm:2.15.1" dependencies: - hasown: "npm:^2.0.0" - checksum: 10c0/2cba9903aaa52718f11c4896dabc189bab980870aae86a62dc0d5cedb546896770ee946fb14c84b7adf0735f5eaea4277243f1b95f5cefa90054f92fbcac2518 + hasown: "npm:^2.0.2" + checksum: 10c0/53432f10c69c40bfd2fa8914133a68709ff9498c86c3bf5fca3cdf3145a56fd2168cbf4a43b29843a6202a120a5f9c5ffba0a4322e1e3441739bc0b641682612 languageName: node linkType: hard @@ -11778,13 +10775,6 @@ __metadata: languageName: node linkType: hard -"is-path-inside@npm:^3.0.3": - version: 3.0.3 - resolution: "is-path-inside@npm:3.0.3" - checksum: 10c0/cf7d4ac35fb96bab6a1d2c3598fe5ebb29aafb52c0aaa482b5a3ed9d8ba3edc11631e3ec2637660c44b3ce0e61a08d54946e8af30dec0b60a7c27296c68ffd05 - languageName: node - linkType: hard - "is-plain-obj@npm:^1.0.0, is-plain-obj@npm:^1.1.0": version: 1.1.0 resolution: "is-plain-obj@npm:1.1.0" @@ -12073,16 +11063,16 @@ __metadata: languageName: node linkType: hard -"iterator.prototype@npm:^1.1.2": - version: 1.1.2 - resolution: "iterator.prototype@npm:1.1.2" +"iterator.prototype@npm:^1.1.3": + version: 1.1.3 + resolution: "iterator.prototype@npm:1.1.3" dependencies: define-properties: "npm:^1.2.1" get-intrinsic: "npm:^1.2.1" has-symbols: "npm:^1.0.3" reflect.getprototypeof: "npm:^1.0.4" set-function-name: "npm:^2.0.1" - checksum: 10c0/a32151326095e916f306990d909f6bbf23e3221999a18ba686419535dcd1749b10ded505e89334b77dc4c7a58a8508978f0eb16c2c8573e6d412eb7eb894ea79 + checksum: 10c0/68b0320c14291fbb3d8ed5a17e255d3127e7971bec19108076667e79c9ff4c7d69f99de4b0b3075c789c3f318366d7a0a35bb086eae0f2cf832dd58465b2f9e6 languageName: node linkType: hard @@ -12223,7 +11213,7 @@ __metadata: languageName: node linkType: hard -"jest-diff@npm:>=29.4.3 < 30, jest-diff@npm:^29.7.0": +"jest-diff@npm:>=29.4.3 < 30, jest-diff@npm:^29.4.1, jest-diff@npm:^29.7.0": version: 29.7.0 resolution: "jest-diff@npm:29.7.0" dependencies: @@ -12665,6 +11655,13 @@ __metadata: languageName: node linkType: hard +"json-buffer@npm:3.0.1": + version: 3.0.1 + resolution: "json-buffer@npm:3.0.1" + checksum: 10c0/0d1c91569d9588e7eef2b49b59851f297f3ab93c7b35c7c221e288099322be6b562767d11e4821da500f3219542b9afd2e54c5dc573107c1126ed1080f8e96d7 + languageName: node + linkType: hard + "json-parse-better-errors@npm:^1.0.1": version: 1.0.2 resolution: "json-parse-better-errors@npm:1.0.2" @@ -12679,10 +11676,10 @@ __metadata: languageName: node linkType: hard -"json-parse-even-better-errors@npm:^3.0.0": - version: 3.0.0 - resolution: "json-parse-even-better-errors@npm:3.0.0" - checksum: 10c0/128de17135e7af655ed83fc26dab0fe54faf43b3517fa73dcd997cce6e05a445932664f085ec6dbc219aeb0c592e53ef10d2d6dee4a8e9211ea901b8e6dd0b52 +"json-parse-even-better-errors@npm:^3.0.0, json-parse-even-better-errors@npm:^3.0.2": + version: 3.0.2 + resolution: "json-parse-even-better-errors@npm:3.0.2" + checksum: 10c0/147f12b005768abe9fab78d2521ce2b7e1381a118413d634a40e6d907d7d10f5e9a05e47141e96d6853af7cc36d2c834d0a014251be48791e037ff2f13d2b94b languageName: node linkType: hard @@ -12717,6 +11714,13 @@ __metadata: languageName: node linkType: hard +"json-stringify-nice@npm:^1.1.4": + version: 1.1.4 + resolution: "json-stringify-nice@npm:1.1.4" + checksum: 10c0/13673b67ba9e7fde75a103cade0b0d2dd0d21cd3b918de8d8f6cd59d48ad8c78b0e85f6f4a5842073ddfc91ebdde5ef7c81c7f51945b96a33eaddc5d41324b87 + languageName: node + linkType: hard + "json-stringify-safe@npm:^5.0.1": version: 5.0.1 resolution: "json-stringify-safe@npm:5.0.1" @@ -12802,6 +11806,29 @@ __metadata: languageName: node linkType: hard +"just-diff-apply@npm:^5.2.0": + version: 5.5.0 + resolution: "just-diff-apply@npm:5.5.0" + checksum: 10c0/d7b85371f2a5a17a108467fda35dddd95264ab438ccec7837b67af5913c57ded7246039d1df2b5bc1ade034ccf815b56d69786c5f1e07383168a066007c796c0 + languageName: node + linkType: hard + +"just-diff@npm:^6.0.0": + version: 6.0.2 + resolution: "just-diff@npm:6.0.2" + checksum: 10c0/1931ca1f0cea4cc480172165c189a84889033ad7a60bee302268ba8ca9f222b43773fd5f272a23ee618d43d85d3048411f06b635571a198159e9a85bb2495f5c + languageName: node + linkType: hard + +"keyv@npm:^4.5.4": + version: 4.5.4 + resolution: "keyv@npm:4.5.4" + dependencies: + json-buffer: "npm:3.0.1" + checksum: 10c0/aa52f3c5e18e16bb6324876bb8b59dd02acf782a4b789c7b2ae21107fab95fab3890ed448d4f8dba80ce05391eeac4bfabb4f02a20221342982f806fa2cf271e + languageName: node + linkType: hard + "kind-of@npm:^6.0.2, kind-of@npm:^6.0.3": version: 6.0.3 resolution: "kind-of@npm:6.0.3" @@ -12846,88 +11873,94 @@ __metadata: languageName: node linkType: hard -"lerna@npm:^7.1.4": - version: 7.1.4 - resolution: "lerna@npm:7.1.4" +"lerna@npm:^8.1.9": + version: 8.1.9 + resolution: "lerna@npm:8.1.9" dependencies: - "@lerna/child-process": "npm:7.1.4" - "@lerna/create": "npm:7.1.4" - "@npmcli/run-script": "npm:6.0.2" - "@nx/devkit": "npm:>=16.5.1 < 17" + "@lerna/create": "npm:8.1.9" + "@npmcli/arborist": "npm:7.5.4" + "@npmcli/package-json": "npm:5.2.0" + "@npmcli/run-script": "npm:8.1.0" + "@nx/devkit": "npm:>=17.1.2 < 21" "@octokit/plugin-enterprise-rest": "npm:6.0.1" "@octokit/rest": "npm:19.0.11" + aproba: "npm:2.0.0" byte-size: "npm:8.1.1" chalk: "npm:4.1.0" clone-deep: "npm:4.0.1" - cmd-shim: "npm:6.0.1" + cmd-shim: "npm:6.0.3" + color-support: "npm:1.1.3" columnify: "npm:1.6.0" - conventional-changelog-angular: "npm:6.0.0" + console-control-strings: "npm:^1.1.0" + conventional-changelog-angular: "npm:7.0.0" conventional-changelog-core: "npm:5.0.1" conventional-recommended-bump: "npm:7.0.1" - cosmiconfig: "npm:^8.2.0" - dedent: "npm:0.7.0" - envinfo: "npm:7.8.1" + cosmiconfig: "npm:9.0.0" + dedent: "npm:1.5.3" + envinfo: "npm:7.13.0" execa: "npm:5.0.0" - fs-extra: "npm:^11.1.1" + fs-extra: "npm:^11.2.0" get-port: "npm:5.1.1" get-stream: "npm:6.0.0" - git-url-parse: "npm:13.1.0" - glob-parent: "npm:5.1.2" + git-url-parse: "npm:14.0.0" + glob-parent: "npm:6.0.2" globby: "npm:11.1.0" graceful-fs: "npm:4.2.11" has-unicode: "npm:2.0.1" import-local: "npm:3.1.0" ini: "npm:^1.3.8" - init-package-json: "npm:5.0.0" + init-package-json: "npm:6.0.3" inquirer: "npm:^8.2.4" is-ci: "npm:3.0.1" is-stream: "npm:2.0.0" jest-diff: "npm:>=29.4.3 < 30" js-yaml: "npm:4.1.0" - libnpmaccess: "npm:7.0.2" - libnpmpublish: "npm:7.3.0" + libnpmaccess: "npm:8.0.6" + libnpmpublish: "npm:9.0.9" load-json-file: "npm:6.2.0" lodash: "npm:^4.17.21" - make-dir: "npm:3.1.0" + make-dir: "npm:4.0.0" minimatch: "npm:3.0.5" multimatch: "npm:5.0.0" node-fetch: "npm:2.6.7" - npm-package-arg: "npm:8.1.1" - npm-packlist: "npm:5.1.1" - npm-registry-fetch: "npm:^14.0.5" - npmlog: "npm:^6.0.2" - nx: "npm:>=16.5.1 < 17" + npm-package-arg: "npm:11.0.2" + npm-packlist: "npm:8.0.2" + npm-registry-fetch: "npm:^17.1.0" + nx: "npm:>=17.1.2 < 21" p-map: "npm:4.0.0" p-map-series: "npm:2.1.0" p-pipe: "npm:3.1.0" p-queue: "npm:6.6.2" p-reduce: "npm:2.1.0" p-waterfall: "npm:2.1.1" - pacote: "npm:^15.2.0" + pacote: "npm:^18.0.6" pify: "npm:5.0.0" read-cmd-shim: "npm:4.0.0" - read-package-json: "npm:6.0.4" resolve-from: "npm:5.0.0" rimraf: "npm:^4.4.1" semver: "npm:^7.3.8" + set-blocking: "npm:^2.0.0" signal-exit: "npm:3.0.7" slash: "npm:3.0.0" - ssri: "npm:^9.0.1" + ssri: "npm:^10.0.6" + string-width: "npm:^4.2.3" + strip-ansi: "npm:^6.0.1" strong-log-transformer: "npm:2.1.0" - tar: "npm:6.1.11" + tar: "npm:6.2.1" temp-dir: "npm:1.0.0" typescript: "npm:>=3 < 6" upath: "npm:2.0.1" - uuid: "npm:^9.0.0" + uuid: "npm:^10.0.0" validate-npm-package-license: "npm:3.0.4" - validate-npm-package-name: "npm:5.0.0" + validate-npm-package-name: "npm:5.0.1" + wide-align: "npm:1.1.5" write-file-atomic: "npm:5.0.1" write-pkg: "npm:4.0.0" - yargs: "npm:16.2.0" - yargs-parser: "npm:20.2.4" + yargs: "npm:17.7.2" + yargs-parser: "npm:21.1.1" bin: lerna: dist/cli.js - checksum: 10c0/79e8b6d9f1b5633cfa77f66009c251efdf54025aafe6e10cefea0e1c5c92c17e82dfbde9f4c5dbf181200da562bc936bdf6617cb206c480443774faa85b2651e + checksum: 10c0/e3362d66324f5ee9606dbdb332a6b09eeb2df6378177e36a1bbcf532927d921beb4d25dbcc717c4adf3a7dcd67e0bcee67bedf81fdbe7e78bbecce310358d762 languageName: node linkType: hard @@ -12948,29 +11981,29 @@ __metadata: languageName: node linkType: hard -"libnpmaccess@npm:7.0.2": - version: 7.0.2 - resolution: "libnpmaccess@npm:7.0.2" +"libnpmaccess@npm:8.0.6": + version: 8.0.6 + resolution: "libnpmaccess@npm:8.0.6" dependencies: - npm-package-arg: "npm:^10.1.0" - npm-registry-fetch: "npm:^14.0.3" - checksum: 10c0/311f064016a75b73de547724c4b532d5fec5da283a3982c9442b00675eedc2ea4aae99184f963799c6a29639dbdf04d947f7f62dae51209f45acfd4972aa8c0f + npm-package-arg: "npm:^11.0.2" + npm-registry-fetch: "npm:^17.0.1" + checksum: 10c0/0b63c7cb44e024b0225dae8ebfe5166a0be8a9420c1b5fb6a4f1c795e9eabbed0fff5984ab57167c5634145de018008cbeeb27fe6f808f611ba5ba1b849ec3d6 languageName: node linkType: hard -"libnpmpublish@npm:7.3.0": - version: 7.3.0 - resolution: "libnpmpublish@npm:7.3.0" +"libnpmpublish@npm:9.0.9": + version: 9.0.9 + resolution: "libnpmpublish@npm:9.0.9" dependencies: - ci-info: "npm:^3.6.1" - normalize-package-data: "npm:^5.0.0" - npm-package-arg: "npm:^10.1.0" - npm-registry-fetch: "npm:^14.0.3" - proc-log: "npm:^3.0.0" + ci-info: "npm:^4.0.0" + normalize-package-data: "npm:^6.0.1" + npm-package-arg: "npm:^11.0.2" + npm-registry-fetch: "npm:^17.0.1" + proc-log: "npm:^4.2.0" semver: "npm:^7.3.7" - sigstore: "npm:^1.4.0" - ssri: "npm:^10.0.1" - checksum: 10c0/4f93a2c7bd0722afc9bd875a4153e6fc7b92e48a49b8d287f869529c8eaa9caa4107d289fe5786f506ce612b72c8809974b4e62b393b8449df401f8bba992b66 + sigstore: "npm:^2.2.0" + ssri: "npm:^10.0.6" + checksum: 10c0/5e4bae455d33fb7402b8b8fcc505d89a1d60ff4b7dc47dd9ba318426c00400e1892fd0435d8db6baab808f64d7f226cbf8d53792244ffad1df7fc2f94f3237fc languageName: node linkType: hard @@ -13074,6 +12107,13 @@ __metadata: languageName: node linkType: hard +"lines-and-columns@npm:2.0.3": + version: 2.0.3 + resolution: "lines-and-columns@npm:2.0.3" + checksum: 10c0/09525c10010a925b7efe858f1dd3184eeac34f0a9bc34993075ec490efad71e948147746b18e9540279cc87cd44085b038f986903db3de65ffe96d38a7b91c4c + languageName: node + linkType: hard + "lines-and-columns@npm:^1.1.6": version: 1.1.6 resolution: "lines-and-columns@npm:1.1.6" @@ -13081,13 +12121,6 @@ __metadata: languageName: node linkType: hard -"lines-and-columns@npm:~2.0.3": - version: 2.0.3 - resolution: "lines-and-columns@npm:2.0.3" - checksum: 10c0/09525c10010a925b7efe858f1dd3184eeac34f0a9bc34993075ec490efad71e948147746b18e9540279cc87cd44085b038f986903db3de65ffe96d38a7b91c4c - languageName: node - linkType: hard - "load-json-file@npm:6.2.0": version: 6.2.0 resolution: "load-json-file@npm:6.2.0" @@ -13154,7 +12187,7 @@ __metadata: languageName: node linkType: hard -"lodash.memoize@npm:4.x, lodash.memoize@npm:^4.1.2": +"lodash.memoize@npm:^4.1.2": version: 4.1.2 resolution: "lodash.memoize@npm:4.1.2" checksum: 10c0/c8713e51eccc650422716a14cece1809cfe34bc5ab5e242b7f8b4e2241c2483697b971a604252807689b9dd69bfe3a98852e19a5b89d506b000b4187a1285df8 @@ -13182,14 +12215,14 @@ __metadata: languageName: node linkType: hard -"lodash@npm:^4.17.15, lodash@npm:^4.17.21": +"lodash@npm:^4.17.21": version: 4.17.21 resolution: "lodash@npm:4.17.21" checksum: 10c0/d8cbea072bb08655bb4c989da418994b073a608dffa608b09ac04b43a791b12aeae7cd7ad919aa4c925f33b48490b5cfe6c1f71d827956071dae2e7bb3a6b74c languageName: node linkType: hard -"log-symbols@npm:^4.1.0": +"log-symbols@npm:^4.0.0, log-symbols@npm:^4.1.0": version: 4.1.0 resolution: "log-symbols@npm:4.1.0" dependencies: @@ -13206,7 +12239,7 @@ __metadata: languageName: node linkType: hard -"loose-envify@npm:^1.0.0, loose-envify@npm:^1.1.0, loose-envify@npm:^1.4.0": +"loose-envify@npm:^1.1.0, loose-envify@npm:^1.4.0": version: 1.4.0 resolution: "loose-envify@npm:1.4.0" dependencies: @@ -13226,10 +12259,10 @@ __metadata: languageName: node linkType: hard -"lru-cache@npm:^10.0.1, lru-cache@npm:^9.1.1 || ^10.0.0": - version: 10.1.0 - resolution: "lru-cache@npm:10.1.0" - checksum: 10c0/778bc8b2626daccd75f24c4b4d10632496e21ba064b126f526c626fbdbc5b28c472013fccd45d7646b9e1ef052444824854aed617b59cd570d01a8b7d651fc1e +"lru-cache@npm:^10.0.1, lru-cache@npm:^10.2.2, lru-cache@npm:^9.1.1 || ^10.0.0": + version: 10.4.3 + resolution: "lru-cache@npm:10.4.3" + checksum: 10c0/ebd04fbca961e6c1d6c0af3799adcc966a1babe798f685bb84e6599266599cd95d94630b10262f5424539bc4640107e8a33aa28585374abf561d30d16f4b39fb languageName: node linkType: hard @@ -13261,13 +12294,6 @@ __metadata: languageName: node linkType: hard -"lru-cache@npm:^7.4.4, lru-cache@npm:^7.5.1, lru-cache@npm:^7.7.1": - version: 7.14.0 - resolution: "lru-cache@npm:7.14.0" - checksum: 10c0/88f1a8c2fd3bafc69121104740dcebc71e4ace97fb03f0ccf3b7d52df7dc10eedb78951af74f08437cf5fdb8c50d5956a0bcc944a073540f027efd8357f87cd1 - languageName: node - linkType: hard - "lz-string@npm:^1.5.0": version: 1.5.0 resolution: "lz-string@npm:1.5.0" @@ -13277,12 +12303,12 @@ __metadata: languageName: node linkType: hard -"magic-string@npm:0.30.11, magic-string@npm:^0.30.0, magic-string@npm:^0.30.6": - version: 0.30.11 - resolution: "magic-string@npm:0.30.11" +"magic-string@npm:0.30.12, magic-string@npm:^0.30.0, magic-string@npm:^0.30.6": + version: 0.30.12 + resolution: "magic-string@npm:0.30.12" dependencies: "@jridgewell/sourcemap-codec": "npm:^1.5.0" - checksum: 10c0/b9eb370773d0bd90ca11a848753409d8e5309b1ad56d2a1aa49d6649da710a6d2fe7237ad1a643c5a5d3800de2b9946ed9690acdfc00e6cc1aeafff3ab1752c4 + checksum: 10c0/469f457d18af37dfcca8617086ea8a65bcd8b60ba8a1182cb024ce43e470ace3c9d1cb6bee58d3b311768fb16bc27bd50bdeebcaa63dadd0fd46cac4d2e11d5f languageName: node linkType: hard @@ -13295,12 +12321,12 @@ __metadata: languageName: node linkType: hard -"make-dir@npm:3.1.0, make-dir@npm:^3.0.0, make-dir@npm:^3.1.0": - version: 3.1.0 - resolution: "make-dir@npm:3.1.0" +"make-dir@npm:4.0.0": + version: 4.0.0 + resolution: "make-dir@npm:4.0.0" dependencies: - semver: "npm:^6.0.0" - checksum: 10c0/56aaafefc49c2dfef02c5c95f9b196c4eb6988040cf2c712185c7fe5c99b4091591a7fc4d4eafaaefa70ff763a26f6ab8c3ff60b9e75ea19876f49b18667ecaa + semver: "npm:^7.5.3" + checksum: 10c0/69b98a6c0b8e5c4fe9acb61608a9fbcfca1756d910f51e5dbe7a9e5cfb74fca9b8a0c8a0ffdf1294a740826c1ab4871d5bf3f62f72a3049e5eac6541ddffed68 languageName: node linkType: hard @@ -13314,63 +12340,25 @@ __metadata: languageName: node linkType: hard -"make-error@npm:1.x, make-error@npm:^1.1.1": - version: 1.3.6 - resolution: "make-error@npm:1.3.6" - checksum: 10c0/171e458d86854c6b3fc46610cfacf0b45149ba043782558c6875d9f42f222124384ad0b468c92e996d815a8a2003817a710c0a160e49c1c394626f76fa45396f - languageName: node - linkType: hard - -"make-fetch-happen@npm:^10.0.3": - version: 10.2.1 - resolution: "make-fetch-happen@npm:10.2.1" +"make-dir@npm:^3.0.0, make-dir@npm:^3.1.0": + version: 3.1.0 + resolution: "make-dir@npm:3.1.0" dependencies: - agentkeepalive: "npm:^4.2.1" - cacache: "npm:^16.1.0" - http-cache-semantics: "npm:^4.1.0" - http-proxy-agent: "npm:^5.0.0" - https-proxy-agent: "npm:^5.0.0" - is-lambda: "npm:^1.0.1" - lru-cache: "npm:^7.7.1" - minipass: "npm:^3.1.6" - minipass-collect: "npm:^1.0.2" - minipass-fetch: "npm:^2.0.3" - minipass-flush: "npm:^1.0.5" - minipass-pipeline: "npm:^1.2.4" - negotiator: "npm:^0.6.3" - promise-retry: "npm:^2.0.1" - socks-proxy-agent: "npm:^7.0.0" - ssri: "npm:^9.0.0" - checksum: 10c0/28ec392f63ab93511f400839dcee83107eeecfaad737d1e8487ea08b4332cd89a8f3319584222edd9f6f1d0833cf516691469496d46491863f9e88c658013949 + semver: "npm:^6.0.0" + checksum: 10c0/56aaafefc49c2dfef02c5c95f9b196c4eb6988040cf2c712185c7fe5c99b4091591a7fc4d4eafaaefa70ff763a26f6ab8c3ff60b9e75ea19876f49b18667ecaa languageName: node linkType: hard -"make-fetch-happen@npm:^11.0.0, make-fetch-happen@npm:^11.0.1, make-fetch-happen@npm:^11.1.1": - version: 11.1.1 - resolution: "make-fetch-happen@npm:11.1.1" - dependencies: - agentkeepalive: "npm:^4.2.1" - cacache: "npm:^17.0.0" - http-cache-semantics: "npm:^4.1.1" - http-proxy-agent: "npm:^5.0.0" - https-proxy-agent: "npm:^5.0.0" - is-lambda: "npm:^1.0.1" - lru-cache: "npm:^7.7.1" - minipass: "npm:^5.0.0" - minipass-fetch: "npm:^3.0.0" - minipass-flush: "npm:^1.0.5" - minipass-pipeline: "npm:^1.2.4" - negotiator: "npm:^0.6.3" - promise-retry: "npm:^2.0.1" - socks-proxy-agent: "npm:^7.0.0" - ssri: "npm:^10.0.0" - checksum: 10c0/c161bde51dbc03382f9fac091734526a64dd6878205db6c338f70d2133df797b5b5166bff3091cf7d4785869d4b21e99a58139c1790c2fb1b5eec00f528f5f0b +"make-error@npm:^1.1.1, make-error@npm:^1.3.6": + version: 1.3.6 + resolution: "make-error@npm:1.3.6" + checksum: 10c0/171e458d86854c6b3fc46610cfacf0b45149ba043782558c6875d9f42f222124384ad0b468c92e996d815a8a2003817a710c0a160e49c1c394626f76fa45396f languageName: node linkType: hard -"make-fetch-happen@npm:^13.0.0": - version: 13.0.0 - resolution: "make-fetch-happen@npm:13.0.0" +"make-fetch-happen@npm:^13.0.0, make-fetch-happen@npm:^13.0.1": + version: 13.0.1 + resolution: "make-fetch-happen@npm:13.0.1" dependencies: "@npmcli/agent": "npm:^2.0.0" cacache: "npm:^18.0.0" @@ -13381,9 +12369,10 @@ __metadata: minipass-flush: "npm:^1.0.5" minipass-pipeline: "npm:^1.2.4" negotiator: "npm:^0.6.3" + proc-log: "npm:^4.2.0" promise-retry: "npm:^2.0.1" ssri: "npm:^10.0.0" - checksum: 10c0/43b9f6dcbc6fe8b8604cb6396957c3698857a15ba4dbc38284f7f0e61f248300585ef1eb8cc62df54e9c724af977e45b5cdfd88320ef7f53e45070ed3488da55 + checksum: 10c0/df5f4dbb6d98153b751bccf4dc4cc500de85a96a9331db9805596c46aa9f99d9555983954e6c1266d9f981ae37a9e4647f42b9a4bb5466f867f4012e582c9e7e languageName: node linkType: hard @@ -13567,7 +12556,7 @@ __metadata: languageName: node linkType: hard -"minimatch@npm:3.1.2, minimatch@npm:^3.0.4, minimatch@npm:^3.0.5, minimatch@npm:^3.1.1, minimatch@npm:^3.1.2": +"minimatch@npm:3.1.2, minimatch@npm:^3.0.4, minimatch@npm:^3.1.1, minimatch@npm:^3.1.2": version: 3.1.2 resolution: "minimatch@npm:3.1.2" dependencies: @@ -13576,7 +12565,7 @@ __metadata: languageName: node linkType: hard -"minimatch@npm:9.0.3, minimatch@npm:^9.0.0, minimatch@npm:^9.0.1, minimatch@npm:^9.0.3": +"minimatch@npm:9.0.3": version: 9.0.3 resolution: "minimatch@npm:9.0.3" dependencies: @@ -13603,6 +12592,15 @@ __metadata: languageName: node linkType: hard +"minimatch@npm:^9.0.0, minimatch@npm:^9.0.1, minimatch@npm:^9.0.3, minimatch@npm:^9.0.4": + version: 9.0.5 + resolution: "minimatch@npm:9.0.5" + dependencies: + brace-expansion: "npm:^2.0.1" + checksum: 10c0/de96cf5e35bdf0eab3e2c853522f98ffbe9a36c37797778d2665231ec1f20a9447a7e567cb640901f89e4daaa95ae5d70c65a9e8aa2bb0019b6facbc3c0575ed + languageName: node + linkType: hard + "minimist-options@npm:4.1.0": version: 4.1.0 resolution: "minimist-options@npm:4.1.0" @@ -13621,15 +12619,6 @@ __metadata: languageName: node linkType: hard -"minipass-collect@npm:^1.0.2": - version: 1.0.2 - resolution: "minipass-collect@npm:1.0.2" - dependencies: - minipass: "npm:^3.0.0" - checksum: 10c0/8f82bd1f3095b24f53a991b04b67f4c710c894e518b813f0864a31de5570441a509be1ca17e0bb92b047591a8fdbeb886f502764fefb00d2f144f4011791e898 - languageName: node - linkType: hard - "minipass-collect@npm:^2.0.1": version: 2.0.1 resolution: "minipass-collect@npm:2.0.1" @@ -13639,21 +12628,6 @@ __metadata: languageName: node linkType: hard -"minipass-fetch@npm:^2.0.3": - version: 2.1.2 - resolution: "minipass-fetch@npm:2.1.2" - dependencies: - encoding: "npm:^0.1.13" - minipass: "npm:^3.1.6" - minipass-sized: "npm:^1.0.3" - minizlib: "npm:^2.1.2" - dependenciesMeta: - encoding: - optional: true - checksum: 10c0/33ab2c5bdb3d91b9cb8bc6ae42d7418f4f00f7f7beae14b3bb21ea18f9224e792f560a6e17b6f1be12bbeb70dbe99a269f4204c60e5d99130a0777b153505c43 - languageName: node - linkType: hard - "minipass-fetch@npm:^3.0.0": version: 3.0.3 resolution: "minipass-fetch@npm:3.0.3" @@ -13669,22 +12643,12 @@ __metadata: languageName: node linkType: hard -"minipass-flush@npm:^1.0.5": - version: 1.0.5 - resolution: "minipass-flush@npm:1.0.5" - dependencies: - minipass: "npm:^3.0.0" - checksum: 10c0/2a51b63feb799d2bb34669205eee7c0eaf9dce01883261a5b77410c9408aa447e478efd191b4de6fc1101e796ff5892f8443ef20d9544385819093dbb32d36bd - languageName: node - linkType: hard - -"minipass-json-stream@npm:^1.0.1": - version: 1.0.1 - resolution: "minipass-json-stream@npm:1.0.1" +"minipass-flush@npm:^1.0.5": + version: 1.0.5 + resolution: "minipass-flush@npm:1.0.5" dependencies: - jsonparse: "npm:^1.3.1" minipass: "npm:^3.0.0" - checksum: 10c0/9285cbbea801e7bd6a923e7fb66d9c47c8bad880e70b29f0b8ba220c283d065f47bfa887ef87fd1b735d39393ecd53bb13d40c260354e8fcf93d47cf4bf64e9c + checksum: 10c0/2a51b63feb799d2bb34669205eee7c0eaf9dce01883261a5b77410c9408aa447e478efd191b4de6fc1101e796ff5892f8443ef20d9544385819093dbb32d36bd languageName: node linkType: hard @@ -13716,7 +12680,7 @@ __metadata: languageName: node linkType: hard -"minipass@npm:^3.0.0, minipass@npm:^3.1.1, minipass@npm:^3.1.6": +"minipass@npm:^3.0.0": version: 3.3.4 resolution: "minipass@npm:3.3.4" dependencies: @@ -13725,7 +12689,7 @@ __metadata: languageName: node linkType: hard -"minipass@npm:^4.0.0, minipass@npm:^4.2.4": +"minipass@npm:^4.2.4": version: 4.2.8 resolution: "minipass@npm:4.2.8" checksum: 10c0/4ea76b030d97079f4429d6e8a8affd90baf1b6a1898977c8ccce4701c5a2ba2792e033abc6709373f25c2c4d4d95440d9d5e9464b46b7b76ca44d2ce26d939ce @@ -13841,7 +12805,7 @@ __metadata: languageName: node linkType: hard -"ms@npm:^2.0.0, ms@npm:^2.1.1": +"ms@npm:^2.1.1": version: 2.1.3 resolution: "ms@npm:2.1.3" checksum: 10c0/d924b57e7312b3b63ad21fc5b3dc0af5e78d61a1fc7cfb5457edaf26326bf62be5307cc87ffb6862ef1c2b33b0233cdb5d4f01c4c958cc0d660948b65a287a48 @@ -13868,7 +12832,7 @@ __metadata: languageName: node linkType: hard -"mute-stream@npm:~1.0.0": +"mute-stream@npm:^1.0.0, mute-stream@npm:~1.0.0": version: 1.0.0 resolution: "mute-stream@npm:1.0.0" checksum: 10c0/dce2a9ccda171ec979a3b4f869a102b1343dee35e920146776780de182f16eae459644d187e38d59a3d37adf85685e1c17c38cf7bfda7e39a9880f7a1d10a74c @@ -13927,15 +12891,6 @@ __metadata: languageName: node linkType: hard -"node-addon-api@npm:^3.2.1": - version: 3.2.1 - resolution: "node-addon-api@npm:3.2.1" - dependencies: - node-gyp: "npm:latest" - checksum: 10c0/41f21c9d12318875a2c429befd06070ce367065a3ef02952cfd4ea17ef69fa14012732f510b82b226e99c254da8d671847ea018cad785f839a5366e02dd56302 - languageName: node - linkType: hard - "node-eval@npm:^2.0.0": version: 2.0.0 resolution: "node-eval@npm:2.0.0" @@ -13987,7 +12942,7 @@ __metadata: languageName: node linkType: hard -"node-gyp-build@npm:^4.2.2, node-gyp-build@npm:^4.3.0": +"node-gyp-build@npm:^4.2.2": version: 4.5.0 resolution: "node-gyp-build@npm:4.5.0" bin: @@ -13998,23 +12953,23 @@ __metadata: languageName: node linkType: hard -"node-gyp@npm:^9.0.0": - version: 9.3.0 - resolution: "node-gyp@npm:9.3.0" +"node-gyp@npm:^10.0.0": + version: 10.2.0 + resolution: "node-gyp@npm:10.2.0" dependencies: env-paths: "npm:^2.2.0" - glob: "npm:^7.1.4" + exponential-backoff: "npm:^3.1.1" + glob: "npm:^10.3.10" graceful-fs: "npm:^4.2.6" - make-fetch-happen: "npm:^10.0.3" - nopt: "npm:^6.0.0" - npmlog: "npm:^6.0.0" - rimraf: "npm:^3.0.2" + make-fetch-happen: "npm:^13.0.0" + nopt: "npm:^7.0.0" + proc-log: "npm:^4.1.0" semver: "npm:^7.3.5" - tar: "npm:^6.1.2" - which: "npm:^2.0.2" + tar: "npm:^6.2.1" + which: "npm:^4.0.0" bin: node-gyp: bin/node-gyp.js - checksum: 10c0/3b326bc3accca849c62503820c13d9362d142dbe4189a5a3a2f2b6de4e872303f2d6cc2dd59e044bf4ca967bfd3eeb3d0c5d8d3b77e28e4e4f8d909697ff5a7e + checksum: 10c0/00630d67dbd09a45aee0a5d55c05e3916ca9e6d427ee4f7bc392d2d3dc5fad7449b21fc098dd38260a53d9dcc9c879b36704a1994235d4707e7271af7e9a835b languageName: node linkType: hard @@ -14045,6 +13000,13 @@ __metadata: languageName: node linkType: hard +"node-machine-id@npm:1.1.12": + version: 1.1.12 + resolution: "node-machine-id@npm:1.1.12" + checksum: 10c0/ab2fea5f75a6f1ce3c76c5e0ae3903b631230e0a99b003d176568fff8ddbdf7b2943be96cd8d220c497ca0f6149411831f8a450601929f326781cb1b59bab7f8 + languageName: node + linkType: hard + "node-releases@npm:^2.0.18": version: 2.0.18 resolution: "node-releases@npm:2.0.18" @@ -14063,25 +13025,14 @@ __metadata: languageName: node linkType: hard -"nopt@npm:^6.0.0": - version: 6.0.0 - resolution: "nopt@npm:6.0.0" - dependencies: - abbrev: "npm:^1.0.0" - bin: - nopt: bin/nopt.js - checksum: 10c0/837b52c330df16fcaad816b1f54fec6b2854ab1aa771d935c1603fbcf9b023bb073f1466b1b67f48ea4dce127ae675b85b9d9355700e9b109de39db490919786 - languageName: node - linkType: hard - -"nopt@npm:^7.0.0": - version: 7.2.0 - resolution: "nopt@npm:7.2.0" +"nopt@npm:^7.0.0, nopt@npm:^7.2.1": + version: 7.2.1 + resolution: "nopt@npm:7.2.1" dependencies: abbrev: "npm:^2.0.0" bin: nopt: bin/nopt.js - checksum: 10c0/9bd7198df6f16eb29ff16892c77bcf7f0cc41f9fb5c26280ac0def2cf8cf319f3b821b3af83eba0e74c85807cc430a16efe0db58fe6ae1f41e69519f585b6aff + checksum: 10c0/a069c7c736767121242037a22a788863accfa932ab285a1eb569eb8cd534b09d17206f68c37f096ae785647435e0c5a5a0a67b42ec743e481a455e5ae6a6df81 languageName: node linkType: hard @@ -14109,15 +13060,14 @@ __metadata: languageName: node linkType: hard -"normalize-package-data@npm:^5.0.0": - version: 5.0.0 - resolution: "normalize-package-data@npm:5.0.0" +"normalize-package-data@npm:^6.0.0, normalize-package-data@npm:^6.0.1": + version: 6.0.2 + resolution: "normalize-package-data@npm:6.0.2" dependencies: - hosted-git-info: "npm:^6.0.0" - is-core-module: "npm:^2.8.1" + hosted-git-info: "npm:^7.0.0" semver: "npm:^7.3.5" validate-npm-package-license: "npm:^3.0.4" - checksum: 10c0/705fe66279edad2f93f6e504d5dc37984e404361a3df921a76ab61447eb285132d20ff261cc0bee9566b8ce895d75fcfec913417170add267e2873429fe38392 + checksum: 10c0/7e32174e7f5575ede6d3d449593247183880122b4967d4ae6edb28cea5769ca025defda54fc91ec0e3c972fdb5ab11f9284606ba278826171b264cb16a9311ef languageName: node linkType: hard @@ -14135,15 +13085,6 @@ __metadata: languageName: node linkType: hard -"npm-bundled@npm:^1.1.2": - version: 1.1.2 - resolution: "npm-bundled@npm:1.1.2" - dependencies: - npm-normalize-package-bin: "npm:^1.0.1" - checksum: 10c0/3f2337789afc8cb608a0dd71cefe459531053d48a5497db14b07b985c4cab15afcae88600db9f92eae072c89b982eeeec8e4463e1d77bc03a7e90f5dacf29769 - languageName: node - linkType: hard - "npm-bundled@npm:^3.0.0": version: 3.0.0 resolution: "npm-bundled@npm:3.0.0" @@ -14153,19 +13094,12 @@ __metadata: languageName: node linkType: hard -"npm-install-checks@npm:^6.0.0": - version: 6.1.1 - resolution: "npm-install-checks@npm:6.1.1" +"npm-install-checks@npm:^6.0.0, npm-install-checks@npm:^6.2.0": + version: 6.3.0 + resolution: "npm-install-checks@npm:6.3.0" dependencies: semver: "npm:^7.1.1" - checksum: 10c0/f61bbd7e27738037a3e836e1b154f668f774a4eb5fd66830b9edf3ef4b0648d4477cb0c73c129a255445109a5c18f16413e1b356d56c0cac006e57ab21c66ede - languageName: node - linkType: hard - -"npm-normalize-package-bin@npm:^1.0.1": - version: 1.0.1 - resolution: "npm-normalize-package-bin@npm:1.0.1" - checksum: 10c0/b0c8c05fe419a122e0ff970ccbe7874ae24b4b4b08941a24d18097fe6e1f4b93e3f6abfb5512f9c5488827a5592f2fb3ce2431c41d338802aed24b9a0c160551 + checksum: 10c0/b046ef1de9b40f5d3a9831ce198e1770140a1c3f253dae22eb7b06045191ef79f18f1dcc15a945c919b3c161426861a28050abd321bf439190185794783b6452 languageName: node linkType: hard @@ -14176,76 +13110,64 @@ __metadata: languageName: node linkType: hard -"npm-package-arg@npm:8.1.1": - version: 8.1.1 - resolution: "npm-package-arg@npm:8.1.1" - dependencies: - hosted-git-info: "npm:^3.0.6" - semver: "npm:^7.0.0" - validate-npm-package-name: "npm:^3.0.0" - checksum: 10c0/833f1f6b730649a4f19b5a8491f4e640f31940aa907ec86ed58d7b3ebe48bf528ad4d3f6151199944cb5a60c24e810d75e0e0ee3226af80026f91d34619b49f8 - languageName: node - linkType: hard - -"npm-package-arg@npm:^10.0.0, npm-package-arg@npm:^10.1.0": - version: 10.1.0 - resolution: "npm-package-arg@npm:10.1.0" +"npm-package-arg@npm:11.0.2": + version: 11.0.2 + resolution: "npm-package-arg@npm:11.0.2" dependencies: - hosted-git-info: "npm:^6.0.0" - proc-log: "npm:^3.0.0" + hosted-git-info: "npm:^7.0.0" + proc-log: "npm:^4.0.0" semver: "npm:^7.3.5" validate-npm-package-name: "npm:^5.0.0" - checksum: 10c0/ab56ed775b48e22755c324536336e3749b6a17763602bc0fb0d7e8b298100c2de8b5e2fb1d4fb3f451e9e076707a27096782e9b3a8da0c5b7de296be184b5a90 + checksum: 10c0/d730572e128980db45c97c184a454cb565283bf849484bf92e3b4e8ec2d08a21bd4b2cba9467466853add3e8c7d81e5de476904ac241f3ae63e6905dfc8196d4 languageName: node linkType: hard -"npm-packlist@npm:5.1.1": - version: 5.1.1 - resolution: "npm-packlist@npm:5.1.1" +"npm-package-arg@npm:^11.0.0, npm-package-arg@npm:^11.0.2": + version: 11.0.3 + resolution: "npm-package-arg@npm:11.0.3" dependencies: - glob: "npm:^8.0.1" - ignore-walk: "npm:^5.0.1" - npm-bundled: "npm:^1.1.2" - npm-normalize-package-bin: "npm:^1.0.1" - bin: - npm-packlist: bin/index.js - checksum: 10c0/8d9845883722931576e8eb10ef779407ecfe7d3aec696af76fb3ccbee776560c214ef87bad3615f98bdf0bab759a3a0e5667932cd2c29e14d2a37de22ddf601c + hosted-git-info: "npm:^7.0.0" + proc-log: "npm:^4.0.0" + semver: "npm:^7.3.5" + validate-npm-package-name: "npm:^5.0.0" + checksum: 10c0/e18333485e05c3a8774f4b5701ef74f4799533e650b70a68ca8dd697666c9a8d46932cb765fc593edce299521033bd4025a40323d5240cea8a393c784c0c285a languageName: node linkType: hard -"npm-packlist@npm:^7.0.0": - version: 7.0.4 - resolution: "npm-packlist@npm:7.0.4" +"npm-packlist@npm:8.0.2, npm-packlist@npm:^8.0.0": + version: 8.0.2 + resolution: "npm-packlist@npm:8.0.2" dependencies: - ignore-walk: "npm:^6.0.0" - checksum: 10c0/a6528b2d0aa09288166a21a04bb152231d29fd8c0e40e551ea5edb323a12d0580aace11b340387ba3a01c614db25bb4100a10c20d0ff53976eed786f95b82536 + ignore-walk: "npm:^6.0.4" + checksum: 10c0/ac3140980b1475c2e9acd3d0ca1acd0f8660c357aed357f1a4ebff2270975e0280a3b1c4938e2f16bd68217853ceb5725cf8779ec3752dfcc546582751ceedff languageName: node linkType: hard -"npm-pick-manifest@npm:^8.0.0": - version: 8.0.1 - resolution: "npm-pick-manifest@npm:8.0.1" +"npm-pick-manifest@npm:^9.0.0, npm-pick-manifest@npm:^9.0.1": + version: 9.1.0 + resolution: "npm-pick-manifest@npm:9.1.0" dependencies: npm-install-checks: "npm:^6.0.0" npm-normalize-package-bin: "npm:^3.0.0" - npm-package-arg: "npm:^10.0.0" + npm-package-arg: "npm:^11.0.0" semver: "npm:^7.3.5" - checksum: 10c0/920cc33167b52f5fb26a5cfcf78486ea62c3c04c7716a3a0c973754b4ea13dd00cedcd9bbd772845d914b91d0ad6d5d06c52e6be189fbcefcdeba7f8293deb14 + checksum: 10c0/8765f4199755b381323da2bff2202b4b15b59f59dba0d1be3f2f793b591321cd19e1b5a686ef48d9753a6bd4868550da632541a45dfb61809d55664222d73e44 languageName: node linkType: hard -"npm-registry-fetch@npm:^14.0.0, npm-registry-fetch@npm:^14.0.3, npm-registry-fetch@npm:^14.0.5": - version: 14.0.5 - resolution: "npm-registry-fetch@npm:14.0.5" +"npm-registry-fetch@npm:^17.0.0, npm-registry-fetch@npm:^17.0.1, npm-registry-fetch@npm:^17.1.0": + version: 17.1.0 + resolution: "npm-registry-fetch@npm:17.1.0" dependencies: - make-fetch-happen: "npm:^11.0.0" - minipass: "npm:^5.0.0" + "@npmcli/redact": "npm:^2.0.0" + jsonparse: "npm:^1.3.1" + make-fetch-happen: "npm:^13.0.0" + minipass: "npm:^7.0.2" minipass-fetch: "npm:^3.0.0" - minipass-json-stream: "npm:^1.0.1" minizlib: "npm:^2.1.2" - npm-package-arg: "npm:^10.0.0" - proc-log: "npm:^3.0.0" - checksum: 10c0/6f556095feb20455d6dc3bb2d5f602df9c5725ab49bca8570135e2900d0ccd0a619427bb668639d94d42651fab0a9e8e234f5381767982a1af17d721799cfc2d + npm-package-arg: "npm:^11.0.0" + proc-log: "npm:^4.0.0" + checksum: 10c0/3f66214e106609fd2e92704e62ac929cba1424d4013fec50f783afbb81168b0dc14457d35c1716a77e30fc482c3576bdc4e4bc5c84a714cac59cf98f96a17f47 languageName: node linkType: hard @@ -14270,18 +13192,6 @@ __metadata: languageName: node linkType: hard -"npmlog@npm:^6.0.0, npmlog@npm:^6.0.2": - version: 6.0.2 - resolution: "npmlog@npm:6.0.2" - dependencies: - are-we-there-yet: "npm:^3.0.0" - console-control-strings: "npm:^1.1.0" - gauge: "npm:^4.0.3" - set-blocking: "npm:^2.0.0" - checksum: 10c0/0cacedfbc2f6139c746d9cd4a85f62718435ad0ca4a2d6459cd331dd33ae58206e91a0742c1558634efcde3f33f8e8e7fd3adf1bfe7978310cf00bd55cccf890 - languageName: node - linkType: hard - "nth-check@npm:^2.0.1": version: 2.1.1 resolution: "nth-check@npm:2.1.1" @@ -14298,57 +13208,55 @@ __metadata: languageName: node linkType: hard -"nx@npm:16.5.3, nx@npm:>=16.5.1 < 17": - version: 16.5.3 - resolution: "nx@npm:16.5.3" +"nx@npm:20.1.4, nx@npm:>=17.1.2 < 21": + version: 20.1.4 + resolution: "nx@npm:20.1.4" dependencies: - "@nrwl/tao": "npm:16.5.3" - "@nx/nx-darwin-arm64": "npm:16.5.3" - "@nx/nx-darwin-x64": "npm:16.5.3" - "@nx/nx-freebsd-x64": "npm:16.5.3" - "@nx/nx-linux-arm-gnueabihf": "npm:16.5.3" - "@nx/nx-linux-arm64-gnu": "npm:16.5.3" - "@nx/nx-linux-arm64-musl": "npm:16.5.3" - "@nx/nx-linux-x64-gnu": "npm:16.5.3" - "@nx/nx-linux-x64-musl": "npm:16.5.3" - "@nx/nx-win32-arm64-msvc": "npm:16.5.3" - "@nx/nx-win32-x64-msvc": "npm:16.5.3" - "@parcel/watcher": "npm:2.0.4" + "@napi-rs/wasm-runtime": "npm:0.2.4" + "@nx/nx-darwin-arm64": "npm:20.1.4" + "@nx/nx-darwin-x64": "npm:20.1.4" + "@nx/nx-freebsd-x64": "npm:20.1.4" + "@nx/nx-linux-arm-gnueabihf": "npm:20.1.4" + "@nx/nx-linux-arm64-gnu": "npm:20.1.4" + "@nx/nx-linux-arm64-musl": "npm:20.1.4" + "@nx/nx-linux-x64-gnu": "npm:20.1.4" + "@nx/nx-linux-x64-musl": "npm:20.1.4" + "@nx/nx-win32-arm64-msvc": "npm:20.1.4" + "@nx/nx-win32-x64-msvc": "npm:20.1.4" "@yarnpkg/lockfile": "npm:^1.1.0" - "@yarnpkg/parsers": "npm:3.0.0-rc.46" - "@zkochan/js-yaml": "npm:0.0.6" - axios: "npm:^1.0.0" + "@yarnpkg/parsers": "npm:3.0.2" + "@zkochan/js-yaml": "npm:0.0.7" + axios: "npm:^1.7.4" chalk: "npm:^4.1.0" cli-cursor: "npm:3.1.0" cli-spinners: "npm:2.6.1" - cliui: "npm:^7.0.2" - dotenv: "npm:~10.0.0" + cliui: "npm:^8.0.1" + dotenv: "npm:~16.4.5" + dotenv-expand: "npm:~11.0.6" enquirer: "npm:~2.3.6" - fast-glob: "npm:3.2.7" figures: "npm:3.2.0" flat: "npm:^5.0.2" - fs-extra: "npm:^11.1.0" - glob: "npm:7.1.4" + front-matter: "npm:^4.0.2" ignore: "npm:^5.0.4" - js-yaml: "npm:4.1.0" + jest-diff: "npm:^29.4.1" jsonc-parser: "npm:3.2.0" - lines-and-columns: "npm:~2.0.3" - minimatch: "npm:3.0.5" + lines-and-columns: "npm:2.0.3" + minimatch: "npm:9.0.3" + node-machine-id: "npm:1.1.12" npm-run-path: "npm:^4.0.1" open: "npm:^8.4.0" - semver: "npm:7.5.3" + ora: "npm:5.3.0" + semver: "npm:^7.5.3" string-width: "npm:^4.2.3" - strong-log-transformer: "npm:^2.1.0" tar-stream: "npm:~2.2.0" tmp: "npm:~0.2.1" tsconfig-paths: "npm:^4.1.2" tslib: "npm:^2.3.0" - v8-compile-cache: "npm:2.3.0" yargs: "npm:^17.6.2" yargs-parser: "npm:21.1.1" peerDependencies: - "@swc-node/register": ^1.4.2 - "@swc/core": ^1.2.173 + "@swc-node/register": ^1.8.0 + "@swc/core": ^1.3.85 dependenciesMeta: "@nx/nx-darwin-arm64": optional: true @@ -14377,7 +13285,8 @@ __metadata: optional: true bin: nx: bin/nx.js - checksum: 10c0/d6d33992aaabbf278f0bc767de07f296ac716211226cbde7b9bcfd31d8cf1c3238ce92d7ebeded037b4c1615dbea5dc9bb029f8c924431ee86f593685fb3d0dd + nx-cloud: bin/nx-cloud.js + checksum: 10c0/a9407ea70ecf9b2f465c94552124ef01d90828025540fa5733e1d3d35e6adab41adfe0c0545ebed37b0e7059e4dfee972351949fd9b643adb13e6daba4dd0214 languageName: node linkType: hard @@ -14388,10 +13297,10 @@ __metadata: languageName: node linkType: hard -"object-inspect@npm:^1.13.1": - version: 1.13.1 - resolution: "object-inspect@npm:1.13.1" - checksum: 10c0/fad603f408e345c82e946abdf4bfd774260a5ed3e5997a0b057c44153ac32c7271ff19e3a5ae39c858da683ba045ccac2f65245c12763ce4e8594f818f4a648d +"object-inspect@npm:^1.13.1, object-inspect@npm:^1.13.3": + version: 1.13.3 + resolution: "object-inspect@npm:1.13.3" + checksum: 10c0/cc3f15213406be89ffdc54b525e115156086796a515410a8d390215915db9f23c8eab485a06f1297402f440a33715fe8f71a528c1dcbad6e1a3bcaf5a46921d4 languageName: node linkType: hard @@ -14421,58 +13330,48 @@ __metadata: languageName: node linkType: hard -"object.entries@npm:^1.1.7": - version: 1.1.7 - resolution: "object.entries@npm:1.1.7" - dependencies: - call-bind: "npm:^1.0.2" - define-properties: "npm:^1.2.0" - es-abstract: "npm:^1.22.1" - checksum: 10c0/3ad1899cc7bf14546bf28f4a9b363ae8690b90948fcfbcac4c808395435d760f26193d9cae95337ce0e3c1e5c1f4fa45f7b46b31b68d389e9e117fce38775d86 - languageName: node - linkType: hard - -"object.fromentries@npm:^2.0.7": - version: 2.0.7 - resolution: "object.fromentries@npm:2.0.7" +"object.entries@npm:^1.1.8": + version: 1.1.8 + resolution: "object.entries@npm:1.1.8" dependencies: - call-bind: "npm:^1.0.2" - define-properties: "npm:^1.2.0" - es-abstract: "npm:^1.22.1" - checksum: 10c0/071745c21f6fc9e6c914691f2532c1fb60ad967e5ddc52801d09958b5de926566299d07ae14466452a7efd29015f9145d6c09c573d93a0dc6f1683ee0ec2b93b + call-bind: "npm:^1.0.7" + define-properties: "npm:^1.2.1" + es-object-atoms: "npm:^1.0.0" + checksum: 10c0/db9ea979d2956a3bc26c262da4a4d212d36f374652cc4c13efdd069c1a519c16571c137e2893d1c46e1cb0e15c88fd6419eaf410c945f329f09835487d7e65d3 languageName: node linkType: hard -"object.groupby@npm:^1.0.1": - version: 1.0.1 - resolution: "object.groupby@npm:1.0.1" +"object.fromentries@npm:^2.0.8": + version: 2.0.8 + resolution: "object.fromentries@npm:2.0.8" dependencies: - call-bind: "npm:^1.0.2" - define-properties: "npm:^1.2.0" - es-abstract: "npm:^1.22.1" - get-intrinsic: "npm:^1.2.1" - checksum: 10c0/61e41fbf08cc04ed860363db9629eedeaa590fce243c0960e948fd7b11f78a9d4350065c339936d118a2dd8775d7259e26207340cc8ce688bec66cb615fec6fe + call-bind: "npm:^1.0.7" + define-properties: "npm:^1.2.1" + es-abstract: "npm:^1.23.2" + es-object-atoms: "npm:^1.0.0" + checksum: 10c0/cd4327e6c3369cfa805deb4cbbe919bfb7d3aeebf0bcaba291bb568ea7169f8f8cdbcabe2f00b40db0c20cd20f08e11b5f3a5a36fb7dd3fe04850c50db3bf83b languageName: node linkType: hard -"object.hasown@npm:^1.1.3": - version: 1.1.3 - resolution: "object.hasown@npm:1.1.3" +"object.groupby@npm:^1.0.3": + version: 1.0.3 + resolution: "object.groupby@npm:1.0.3" dependencies: - define-properties: "npm:^1.2.0" - es-abstract: "npm:^1.22.1" - checksum: 10c0/8a41ba4fb1208a85c2275e9b5098071beacc24345b9a71ab98ef0a1c61b34dc74c6b460ff1e1884c33843d8f2553df64a10eec2b74b3ed009e3b2710c826bd2c + call-bind: "npm:^1.0.7" + define-properties: "npm:^1.2.1" + es-abstract: "npm:^1.23.2" + checksum: 10c0/60d0455c85c736fbfeda0217d1a77525956f76f7b2495edeca9e9bbf8168a45783199e77b894d30638837c654d0cc410e0e02cbfcf445bc8de71c3da1ede6a9c languageName: node linkType: hard -"object.values@npm:^1.1.6, object.values@npm:^1.1.7": - version: 1.1.7 - resolution: "object.values@npm:1.1.7" +"object.values@npm:^1.1.6, object.values@npm:^1.2.0": + version: 1.2.0 + resolution: "object.values@npm:1.2.0" dependencies: - call-bind: "npm:^1.0.2" - define-properties: "npm:^1.2.0" - es-abstract: "npm:^1.22.1" - checksum: 10c0/e869d6a37fb7afdd0054dea49036d6ccebb84854a8848a093bbd1bc516f53e690bba88f0bc3e83fdfa74c601469ee6989c9b13359cda9604144c6e732fad3b6b + call-bind: "npm:^1.0.7" + define-properties: "npm:^1.2.1" + es-object-atoms: "npm:^1.0.0" + checksum: 10c0/15809dc40fd6c5529501324fec5ff08570b7d70fb5ebbe8e2b3901afec35cf2b3dc484d1210c6c642cd3e7e0a5e18dd1d6850115337fef46bdae14ab0cb18ac3 languageName: node linkType: hard @@ -14535,6 +13434,22 @@ __metadata: languageName: node linkType: hard +"ora@npm:5.3.0": + version: 5.3.0 + resolution: "ora@npm:5.3.0" + dependencies: + bl: "npm:^4.0.3" + chalk: "npm:^4.1.0" + cli-cursor: "npm:^3.1.0" + cli-spinners: "npm:^2.5.0" + is-interactive: "npm:^1.0.0" + log-symbols: "npm:^4.0.0" + strip-ansi: "npm:^6.0.0" + wcwidth: "npm:^1.0.1" + checksum: 10c0/30d5f3218eb75b0a2028c5fb9aa88e83e38a2f1745ab56839abb06c3ba31bae35f768f4e72c4f9e04e2a66be6a898e9312e8cf85c9333e1e3613eabb8c7cdf57 + languageName: node + linkType: hard + "ora@npm:^5.4.1": version: 5.4.1 resolution: "ora@npm:5.4.1" @@ -14720,31 +13635,30 @@ __metadata: languageName: node linkType: hard -"pacote@npm:^15.2.0": - version: 15.2.0 - resolution: "pacote@npm:15.2.0" +"pacote@npm:^18.0.0, pacote@npm:^18.0.6": + version: 18.0.6 + resolution: "pacote@npm:18.0.6" dependencies: - "@npmcli/git": "npm:^4.0.0" + "@npmcli/git": "npm:^5.0.0" "@npmcli/installed-package-contents": "npm:^2.0.1" - "@npmcli/promise-spawn": "npm:^6.0.1" - "@npmcli/run-script": "npm:^6.0.0" - cacache: "npm:^17.0.0" + "@npmcli/package-json": "npm:^5.1.0" + "@npmcli/promise-spawn": "npm:^7.0.0" + "@npmcli/run-script": "npm:^8.0.0" + cacache: "npm:^18.0.0" fs-minipass: "npm:^3.0.0" - minipass: "npm:^5.0.0" - npm-package-arg: "npm:^10.0.0" - npm-packlist: "npm:^7.0.0" - npm-pick-manifest: "npm:^8.0.0" - npm-registry-fetch: "npm:^14.0.0" - proc-log: "npm:^3.0.0" + minipass: "npm:^7.0.2" + npm-package-arg: "npm:^11.0.0" + npm-packlist: "npm:^8.0.0" + npm-pick-manifest: "npm:^9.0.0" + npm-registry-fetch: "npm:^17.0.0" + proc-log: "npm:^4.0.0" promise-retry: "npm:^2.0.1" - read-package-json: "npm:^6.0.0" - read-package-json-fast: "npm:^3.0.0" - sigstore: "npm:^1.3.0" + sigstore: "npm:^2.2.0" ssri: "npm:^10.0.0" tar: "npm:^6.1.11" bin: - pacote: lib/bin.js - checksum: 10c0/0e680a360d7577df61c36c671dcc9c63a1ef176518a6ec19a3200f91da51205432559e701cba90f0ba6901372765dde68a07ff003474d656887eb09b54f35c5f + pacote: bin/index.js + checksum: 10c0/d80907375dd52a521255e0debca1ba9089ad8fd7acdf16c5a5db2ea2a5bb23045e2bcf08d1648b1ebc40fcc889657db86ff6187ff5f8d2fc312cd6ad1ec4c6ac languageName: node linkType: hard @@ -14757,6 +13671,17 @@ __metadata: languageName: node linkType: hard +"parse-conflict-json@npm:^3.0.0": + version: 3.0.1 + resolution: "parse-conflict-json@npm:3.0.1" + dependencies: + json-parse-even-better-errors: "npm:^3.0.0" + just-diff: "npm:^6.0.0" + just-diff-apply: "npm:^5.2.0" + checksum: 10c0/610b37181229ce3e945125c3a9548ec24d1de2d697a7ea3ef0f2660cccc6613715c2ba4bdbaf37c565133d6b61758703618a2c63d1ee29f97fd33c70a8aae323 + languageName: node + linkType: hard + "parse-json@npm:^4.0.0": version: 4.0.0 resolution: "parse-json@npm:4.0.0" @@ -14882,10 +13807,10 @@ __metadata: languageName: node linkType: hard -"path-to-regexp@npm:2.2.1": - version: 2.2.1 - resolution: "path-to-regexp@npm:2.2.1" - checksum: 10c0/f4b51090a73dad5ce0720f13ce8528ac77914bc927d72cc4ba05ab32770ad3a8d2e431962734b688b9ed863d4098d858da6ff4746037e4e24259cbd3b2c32b79 +"path-to-regexp@npm:3.3.0": + version: 3.3.0 + resolution: "path-to-regexp@npm:3.3.0" + checksum: 10c0/ffa0ebe7088d38d435a8d08b0fe6e8c93ceb2a81a65d4dd1d9a538f52e09d5e3474ed5f553cb3b180d894b0caa10698a68737ab599fd1e56b4663d1a64c9f77b languageName: node linkType: hard @@ -14963,10 +13888,10 @@ __metadata: languageName: node linkType: hard -"picocolors@npm:^1.0.0, picocolors@npm:^1.0.1, picocolors@npm:^1.1.0": - version: 1.1.0 - resolution: "picocolors@npm:1.1.0" - checksum: 10c0/86946f6032148801ef09c051c6fb13b5cf942eaf147e30ea79edb91dd32d700934edebe782a1078ff859fb2b816792e97ef4dab03d7f0b804f6b01a0df35e023 +"picocolors@npm:^1.0.0, picocolors@npm:^1.1.0, picocolors@npm:^1.1.1": + version: 1.1.1 + resolution: "picocolors@npm:1.1.1" + checksum: 10c0/e2e3e8170ab9d7c7421969adaa7e1b31434f789afb9b3f115f6b96d91945041ac3ceb02e9ec6fe6510ff036bcc0bf91e69a1772edc0b707e12b19c0f2d6bcf58 languageName: node linkType: hard @@ -15055,12 +13980,12 @@ __metadata: languageName: node linkType: hard -"postcss-discard-duplicates@npm:7.0.0": - version: 7.0.0 - resolution: "postcss-discard-duplicates@npm:7.0.0" +"postcss-discard-duplicates@npm:7.0.1": + version: 7.0.1 + resolution: "postcss-discard-duplicates@npm:7.0.1" peerDependencies: postcss: ^8.4.31 - checksum: 10c0/37d568dc18d47b8b9f0fd6d5115b1faf96c2bf429fc4586508a773533479e18627d6260cad6a3ca7d3bfc2f220fd9448410aee40e07f2ec6c6f96bbe3595dbc8 + checksum: 10c0/5cc2cac249f68004864865ea2ec38b7d5e28184f33e904e531ff57b533aacb73ec49e4a7d83219184001b8d167e5bcabc1673248134468d7ebaa0bfb9ff78f0a languageName: node linkType: hard @@ -15073,29 +13998,29 @@ __metadata: languageName: node linkType: hard -"postcss-merge-rules@npm:7.0.2": - version: 7.0.2 - resolution: "postcss-merge-rules@npm:7.0.2" +"postcss-merge-rules@npm:7.0.4": + version: 7.0.4 + resolution: "postcss-merge-rules@npm:7.0.4" dependencies: - browserslist: "npm:^4.23.1" + browserslist: "npm:^4.23.3" caniuse-api: "npm:^3.0.0" cssnano-utils: "npm:^5.0.0" - postcss-selector-parser: "npm:^6.1.0" + postcss-selector-parser: "npm:^6.1.2" peerDependencies: postcss: ^8.4.31 - checksum: 10c0/fbad20382ca45f1b3b5ff704c075f899cc9ba8418ae6effbdeb9e7c1f9b5c24996d1941ad36cd0936d60cbf127a72f235b2cbb0c44d9239a8a61042406d95b4a + checksum: 10c0/fffdcef4ada68e92ab8e6dc34a3b9aa2b87188cd4d08f5ba0ff2aff7e3e3c7f086830748ff64db091b5ccb9ac59ac37cfaab1268ed3efb50ab9c4f3714eb5f6d languageName: node linkType: hard -"postcss-minify-selectors@npm:7.0.2": - version: 7.0.2 - resolution: "postcss-minify-selectors@npm:7.0.2" +"postcss-minify-selectors@npm:7.0.4": + version: 7.0.4 + resolution: "postcss-minify-selectors@npm:7.0.4" dependencies: cssesc: "npm:^3.0.0" - postcss-selector-parser: "npm:^6.1.0" + postcss-selector-parser: "npm:^6.1.2" peerDependencies: postcss: ^8.4.31 - checksum: 10c0/87e0c21a0135b6c61b58d62c4c1e0cbd3cfb516ff8105db714c6a33a5edc477846ae220399d368e4ef6518529c711aa2dee9ff49e9befd93e83d5c939f3084a1 + checksum: 10c0/212b8f3d62eb2a27ed57d4e76b75b0886806ddb9e2497c0bb79308fa75dabaaaa4ed2b97734896e87603272d05231fd74aee2c256a48d77aa468b5b64cc7866a languageName: node linkType: hard @@ -15121,13 +14046,13 @@ __metadata: languageName: node linkType: hard -"postcss-selector-parser@npm:6.1.1, postcss-selector-parser@npm:^6.0.11, postcss-selector-parser@npm:^6.0.13, postcss-selector-parser@npm:^6.1.0": - version: 6.1.1 - resolution: "postcss-selector-parser@npm:6.1.1" +"postcss-selector-parser@npm:6.1.2, postcss-selector-parser@npm:^6.0.10, postcss-selector-parser@npm:^6.0.11, postcss-selector-parser@npm:^6.0.13, postcss-selector-parser@npm:^6.1.2": + version: 6.1.2 + resolution: "postcss-selector-parser@npm:6.1.2" dependencies: cssesc: "npm:^3.0.0" util-deprecate: "npm:^1.0.2" - checksum: 10c0/5608765e033fee35d448e1f607ffbaa750eb86901824a8bc4a911ea8bc137cb82f29239330787427c5d3695afd90d8721e190f211dbbf733e25033d8b3100763 + checksum: 10c0/523196a6bd8cf660bdf537ad95abd79e546d54180f9afb165a4ab3e651ac705d0f8b8ce6b3164fb9e3279ce482c5f751a69eb2d3a1e8eb0fd5e82294fb3ef13e languageName: node linkType: hard @@ -15138,25 +14063,14 @@ __metadata: languageName: node linkType: hard -"postcss@npm:8.4.45": - version: 8.4.45 - resolution: "postcss@npm:8.4.45" +"postcss@npm:8.4.49, postcss@npm:^8.4.22, postcss@npm:^8.4.33, postcss@npm:^8.4.49": + version: 8.4.49 + resolution: "postcss@npm:8.4.49" dependencies: nanoid: "npm:^3.3.7" - picocolors: "npm:^1.0.1" - source-map-js: "npm:^1.2.0" - checksum: 10c0/ad6f8b9b1157d678560373696109745ab97a947d449f8a997acac41c7f1e4c0f3ca4b092d6df1387f430f2c9a319987b1780dbdc27e35800a88cde9b606c1e8f - languageName: node - linkType: hard - -"postcss@npm:^8.4.22, postcss@npm:^8.4.33, postcss@npm:^8.4.43": - version: 8.4.47 - resolution: "postcss@npm:8.4.47" - dependencies: - nanoid: "npm:^3.3.7" - picocolors: "npm:^1.1.0" + picocolors: "npm:^1.1.1" source-map-js: "npm:^1.2.1" - checksum: 10c0/929f68b5081b7202709456532cee2a145c1843d391508c5a09de2517e8c4791638f71dd63b1898dba6712f8839d7a6da046c72a5e44c162e908f5911f57b5f44 + checksum: 10c0/f1b3f17aaf36d136f59ec373459f18129908235e65dbdc3aee5eef8eba0756106f52de5ec4682e29a2eab53eb25170e7e871b3e4b52a8f1de3d344a514306be3 languageName: node linkType: hard @@ -15185,13 +14099,6 @@ __metadata: languageName: node linkType: hard -"pretty-bytes@npm:^5.6.0": - version: 5.6.0 - resolution: "pretty-bytes@npm:5.6.0" - checksum: 10c0/f69f494dcc1adda98dbe0e4a36d301e8be8ff99bfde7a637b2ee2820e7cb583b0fc0f3a63b0e3752c01501185a5cf38602c7be60da41bdf84ef5b70e89c370f3 - languageName: node - linkType: hard - "pretty-format@npm:^27.0.2": version: 27.5.1 resolution: "pretty-format@npm:27.5.1" @@ -15223,13 +14130,6 @@ __metadata: languageName: node linkType: hard -"prismjs@npm:^1.29.0": - version: 1.29.0 - resolution: "prismjs@npm:1.29.0" - checksum: 10c0/d906c4c4d01b446db549b4f57f72d5d7e6ccaca04ecc670fb85cea4d4b1acc1283e945a9cbc3d81819084a699b382f970e02f9d1378e14af9808d366d9ed7ec6 - languageName: node - linkType: hard - "proc-log@npm:^3.0.0": version: 3.0.0 resolution: "proc-log@npm:3.0.0" @@ -15237,6 +14137,13 @@ __metadata: languageName: node linkType: hard +"proc-log@npm:^4.0.0, proc-log@npm:^4.1.0, proc-log@npm:^4.2.0": + version: 4.2.0 + resolution: "proc-log@npm:4.2.0" + checksum: 10c0/17db4757c2a5c44c1e545170e6c70a26f7de58feb985091fb1763f5081cab3d01b181fb2dd240c9f4a4255a1d9227d163d5771b7e69c9e49a561692db865efb9 + languageName: node + linkType: hard + "process-nextick-args@npm:~2.0.0": version: 2.0.1 resolution: "process-nextick-args@npm:2.0.1" @@ -15251,6 +14158,27 @@ __metadata: languageName: node linkType: hard +"proggy@npm:^2.0.0": + version: 2.0.0 + resolution: "proggy@npm:2.0.0" + checksum: 10c0/1bfc14fa95769e6dd7e91f9d3cae8feb61e6d833ed7210d87ee5413bfa068f4ee7468483da96b2f138c40a7e91a2307f5d5d2eb6de9761c21e266a34602e6a5f + languageName: node + linkType: hard + +"promise-all-reject-late@npm:^1.0.0": + version: 1.0.1 + resolution: "promise-all-reject-late@npm:1.0.1" + checksum: 10c0/f1af0c7b0067e84d64751148ee5bb6c3e84f4a4d1316d6fe56261e1d2637cf71b49894bcbd2c6daf7d45afb1bc99efc3749be277c3e0518b70d0c5a29d037011 + languageName: node + linkType: hard + +"promise-call-limit@npm:^3.0.1": + version: 3.0.2 + resolution: "promise-call-limit@npm:3.0.2" + checksum: 10c0/1f984c16025925594d738833f5da7525b755f825a198d5a0cac1c0280b4f38ecc3c32c1f4e5ef614ddcfd6718c1a8c3f98a3290ae6f421342281c9a88c488bf7 + languageName: node + linkType: hard + "promise-inflight@npm:^1.0.1": version: 1.0.1 resolution: "promise-inflight@npm:1.0.1" @@ -15294,7 +14222,7 @@ __metadata: languageName: node linkType: hard -"prop-types@npm:^15.7.2, prop-types@npm:^15.8.1": +"prop-types@npm:^15.8.1": version: 15.8.1 resolution: "prop-types@npm:15.8.1" dependencies: @@ -15366,13 +14294,6 @@ __metadata: languageName: node linkType: hard -"punycode@npm:^1.3.2": - version: 1.4.1 - resolution: "punycode@npm:1.4.1" - checksum: 10c0/354b743320518aef36f77013be6e15da4db24c2b4f62c5f1eb0529a6ed02fbaf1cb52925785f6ab85a962f2b590d9cd5ad730b70da72b5f180e2556b8bd3ca08 - languageName: node - linkType: hard - "punycode@npm:^2.1.0, punycode@npm:^2.1.1": version: 2.3.0 resolution: "punycode@npm:2.3.0" @@ -15441,18 +14362,6 @@ __metadata: languageName: node linkType: hard -"react-device-detect@npm:^2.2.3": - version: 2.2.3 - resolution: "react-device-detect@npm:2.2.3" - dependencies: - ua-parser-js: "npm:^1.0.33" - peerDependencies: - react: ">= 0.14.0" - react-dom: ">= 0.14.0" - checksum: 10c0/396bbeeab0cb21da084c67434d204c9cf502fad6c683903313084d3f6487950a36a34f9bf67ccf5c1772a1bb5b79a2a4403fcfe6b51d93877db4c2d9f3a3a925 - languageName: node - linkType: hard - "react-docgen-typescript@npm:^2.2.2": version: 2.2.2 resolution: "react-docgen-typescript@npm:2.2.2" @@ -15480,7 +14389,7 @@ __metadata: languageName: node linkType: hard -"react-dom@npm:^16.8.0 || ^17.0.0 || ^18.0.0, react-dom@npm:^18.3.1": +"react-dom@npm:^16.8.0 || ^17.0.0 || ^18.0.0": version: 18.3.1 resolution: "react-dom@npm:18.3.1" dependencies: @@ -15492,26 +14401,14 @@ __metadata: languageName: node linkType: hard -"react-fast-compare@npm:^3.2.0": - version: 3.2.0 - resolution: "react-fast-compare@npm:3.2.0" - checksum: 10c0/2a7d75ce9fb5da1e3c01f74a5cd592f3369a8cc8d44e93654bf147ab221f430238e8be70677e896f2bfcb96a1cb7a47a8d05d84633de764a9d57d27005a4bb9e - languageName: node - linkType: hard - -"react-helmet-async@npm:^1.3.0": - version: 1.3.0 - resolution: "react-helmet-async@npm:1.3.0" +"react-dom@npm:^19.0.0": + version: 19.0.0 + resolution: "react-dom@npm:19.0.0" dependencies: - "@babel/runtime": "npm:^7.12.5" - invariant: "npm:^2.2.4" - prop-types: "npm:^15.7.2" - react-fast-compare: "npm:^3.2.0" - shallowequal: "npm:^1.1.0" + scheduler: "npm:^0.25.0" peerDependencies: - react: ^16.6.0 || ^17.0.0 || ^18.0.0 - react-dom: ^16.6.0 || ^17.0.0 || ^18.0.0 - checksum: 10c0/8f3e6d26beff61d2ed18f7b41561df3e4d83a7582914c7196aa65158c7f3cce939276547d7a0b8987952d9d44131406df74efba02d1f8fa8a3940b49e6ced70b + react: ^19.0.0 + checksum: 10c0/a36ce7ab507b237ae2759c984cdaad4af4096d8199fb65b3815c16825e5cfeb7293da790a3fc2184b52bfba7ba3ff31c058c01947aff6fd1a3701632aabaa6a9 languageName: node linkType: hard @@ -15533,7 +14430,7 @@ __metadata: languageName: node linkType: hard -"react-is@npm:^16.13.1, react-is@npm:^16.7.0": +"react-is@npm:^16.13.1": version: 16.13.1 resolution: "react-is@npm:16.13.1" checksum: 10c0/33977da7a5f1a287936a0c85639fec6ca74f4f15ef1e59a6bc20338fc73dc69555381e211f7a3529b8150a1f71e4225525b41b60b52965bda53ce7d47377ada1 @@ -15568,41 +14465,6 @@ __metadata: languageName: node linkType: hard -"react-remove-scroll-bar@npm:^2.3.3": - version: 2.3.4 - resolution: "react-remove-scroll-bar@npm:2.3.4" - dependencies: - react-style-singleton: "npm:^2.2.1" - tslib: "npm:^2.0.0" - peerDependencies: - "@types/react": ^16.8.0 || ^17.0.0 || ^18.0.0 - react: ^16.8.0 || ^17.0.0 || ^18.0.0 - peerDependenciesMeta: - "@types/react": - optional: true - checksum: 10c0/2262750dc1022c56d2c79e8d865c00045881c57bcaca74810ae8adac35cfdf723ff7d6b3b0e95c85eb9a0cff90bb4b1e0af801bd703ce8c0a2e35ab14ff1babb - languageName: node - linkType: hard - -"react-remove-scroll@npm:2.5.5": - version: 2.5.5 - resolution: "react-remove-scroll@npm:2.5.5" - dependencies: - react-remove-scroll-bar: "npm:^2.3.3" - react-style-singleton: "npm:^2.2.1" - tslib: "npm:^2.1.0" - use-callback-ref: "npm:^1.3.0" - use-sidecar: "npm:^1.1.2" - peerDependencies: - "@types/react": ^16.8.0 || ^17.0.0 || ^18.0.0 - react: ^16.8.0 || ^17.0.0 || ^18.0.0 - peerDependenciesMeta: - "@types/react": - optional: true - checksum: 10c0/4952657e6a7b9d661d4ad4dfcef81b9c7fa493e35164abff99c35c0b27b3d172ef7ad70c09416dc44dd14ff2e6b38a5ec7da27e27e90a15cbad36b8fd2fd8054 - languageName: node - linkType: hard - "react-router-dom@npm:^6.3.0": version: 6.3.0 resolution: "react-router-dom@npm:6.3.0" @@ -15627,24 +14489,7 @@ __metadata: languageName: node linkType: hard -"react-style-singleton@npm:^2.2.1": - version: 2.2.1 - resolution: "react-style-singleton@npm:2.2.1" - dependencies: - get-nonce: "npm:^1.0.0" - invariant: "npm:^2.2.4" - tslib: "npm:^2.0.0" - peerDependencies: - "@types/react": ^16.8.0 || ^17.0.0 || ^18.0.0 - react: ^16.8.0 || ^17.0.0 || ^18.0.0 - peerDependenciesMeta: - "@types/react": - optional: true - checksum: 10c0/6d66f3bdb65e1ec79089f80314da97c9a005087a04ee034255a5de129a4c0d9fd0bf99fa7bf642781ac2dc745ca687aae3de082bd8afdd0d117bc953241e15ad - languageName: node - linkType: hard - -"react@npm:^16.8.0 || ^17.0.0 || ^18.0.0, react@npm:^18.3.1": +"react@npm:^16.8.0 || ^17.0.0 || ^18.0.0": version: 18.3.1 resolution: "react@npm:18.3.1" dependencies: @@ -15653,14 +14498,21 @@ __metadata: languageName: node linkType: hard -"read-cmd-shim@npm:4.0.0": +"react@npm:^19.0.0": + version: 19.0.0 + resolution: "react@npm:19.0.0" + checksum: 10c0/9cad8f103e8e3a16d15cb18a0d8115d8bd9f9e1ce3420310aea381eb42aa0a4f812cf047bb5441349257a05fba8a291515691e3cb51267279b2d2c3253f38471 + languageName: node + linkType: hard + +"read-cmd-shim@npm:4.0.0, read-cmd-shim@npm:^4.0.0": version: 4.0.0 resolution: "read-cmd-shim@npm:4.0.0" checksum: 10c0/e62db17ec9708f1e7c6a31f0a46d43df2069d85cf0df3b9d1d99e5ed36e29b1e8b2f8a427fd8bbb9bc40829788df1471794f9b01057e4b95ed062806e4df5ba9 languageName: node linkType: hard -"read-package-json-fast@npm:^3.0.0": +"read-package-json-fast@npm:^3.0.0, read-package-json-fast@npm:^3.0.2": version: 3.0.2 resolution: "read-package-json-fast@npm:3.0.2" dependencies: @@ -15670,18 +14522,6 @@ __metadata: languageName: node linkType: hard -"read-package-json@npm:6.0.4, read-package-json@npm:^6.0.0": - version: 6.0.4 - resolution: "read-package-json@npm:6.0.4" - dependencies: - glob: "npm:^10.2.2" - json-parse-even-better-errors: "npm:^3.0.0" - normalize-package-data: "npm:^5.0.0" - npm-normalize-package-bin: "npm:^3.0.0" - checksum: 10c0/0eb1110b35bc109a8d2789358a272c66b0fb8fd335a98df2ea9ff3423be564e2908f27d98f3f4b41da35495e04dc1763b33aad7cc24bfd58dfc6d60cca7d70c9 - languageName: node - linkType: hard - "read-pkg-up@npm:^3.0.0": version: 3.0.0 resolution: "read-pkg-up@npm:3.0.0" @@ -15735,6 +14575,15 @@ __metadata: languageName: node linkType: hard +"read@npm:^3.0.1": + version: 3.0.1 + resolution: "read@npm:3.0.1" + dependencies: + mute-stream: "npm:^1.0.0" + checksum: 10c0/af524994ff7cf94aa3ebd268feac509da44e58be7ed2a02775b5ee6a7d157b93b919e8c5ead91333f86a21fbb487dc442760bc86354c18b84d334b8cec33723a + languageName: node + linkType: hard + "readable-stream@npm:^3.0.0, readable-stream@npm:^3.0.2, readable-stream@npm:^3.1.1, readable-stream@npm:^3.4.0, readable-stream@npm:^3.6.0": version: 3.6.0 resolution: "readable-stream@npm:3.6.0" @@ -15848,15 +14697,15 @@ __metadata: languageName: node linkType: hard -"regexp.prototype.flags@npm:^1.5.0, regexp.prototype.flags@npm:^1.5.2": - version: 1.5.2 - resolution: "regexp.prototype.flags@npm:1.5.2" +"regexp.prototype.flags@npm:^1.5.2, regexp.prototype.flags@npm:^1.5.3": + version: 1.5.3 + resolution: "regexp.prototype.flags@npm:1.5.3" dependencies: - call-bind: "npm:^1.0.6" + call-bind: "npm:^1.0.7" define-properties: "npm:^1.2.1" es-errors: "npm:^1.3.0" - set-function-name: "npm:^2.0.1" - checksum: 10c0/0f3fc4f580d9c349f8b560b012725eb9c002f36daa0041b3fbf6f4238cb05932191a4d7d5db3b5e2caa336d5150ad0402ed2be81f711f9308fe7e1a9bf9bd552 + set-function-name: "npm:^2.0.2" + checksum: 10c0/e1a7c7dc42cc91abf73e47a269c4b3a8f225321b7f617baa25821f6a123a91d23a73b5152f21872c566e699207e1135d075d2251cd3e84cc96d82a910adf6020 languageName: node linkType: hard @@ -15962,7 +14811,7 @@ __metadata: languageName: node linkType: hard -"resolve@npm:^1.10.0, resolve@npm:^1.14.2, resolve@npm:^1.19.0, resolve@npm:^1.20.0, resolve@npm:^1.22.1, resolve@npm:^1.22.4, resolve@npm:^1.22.8": +"resolve@npm:^1.10.0, resolve@npm:^1.14.2, resolve@npm:^1.20.0, resolve@npm:^1.22.1, resolve@npm:^1.22.4, resolve@npm:^1.22.8": version: 1.22.8 resolution: "resolve@npm:1.22.8" dependencies: @@ -15988,7 +14837,7 @@ __metadata: languageName: node linkType: hard -"resolve@patch:resolve@npm%3A^1.10.0#optional!builtin, resolve@patch:resolve@npm%3A^1.14.2#optional!builtin, resolve@patch:resolve@npm%3A^1.19.0#optional!builtin, resolve@patch:resolve@npm%3A^1.20.0#optional!builtin, resolve@patch:resolve@npm%3A^1.22.1#optional!builtin, resolve@patch:resolve@npm%3A^1.22.4#optional!builtin, resolve@patch:resolve@npm%3A^1.22.8#optional!builtin": +"resolve@patch:resolve@npm%3A^1.10.0#optional!builtin, resolve@patch:resolve@npm%3A^1.14.2#optional!builtin, resolve@patch:resolve@npm%3A^1.20.0#optional!builtin, resolve@patch:resolve@npm%3A^1.22.1#optional!builtin, resolve@patch:resolve@npm%3A^1.22.4#optional!builtin, resolve@patch:resolve@npm%3A^1.22.8#optional!builtin": version: 1.22.8 resolution: "resolve@patch:resolve@npm%3A1.22.8#optional!builtin::version=1.22.8&hash=c3c19d" dependencies: @@ -16060,27 +14909,29 @@ __metadata: languageName: node linkType: hard -"rollup@npm:^4.20.0": - version: 4.22.1 - resolution: "rollup@npm:4.22.1" - dependencies: - "@rollup/rollup-android-arm-eabi": "npm:4.22.1" - "@rollup/rollup-android-arm64": "npm:4.22.1" - "@rollup/rollup-darwin-arm64": "npm:4.22.1" - "@rollup/rollup-darwin-x64": "npm:4.22.1" - "@rollup/rollup-linux-arm-gnueabihf": "npm:4.22.1" - "@rollup/rollup-linux-arm-musleabihf": "npm:4.22.1" - "@rollup/rollup-linux-arm64-gnu": "npm:4.22.1" - "@rollup/rollup-linux-arm64-musl": "npm:4.22.1" - "@rollup/rollup-linux-powerpc64le-gnu": "npm:4.22.1" - "@rollup/rollup-linux-riscv64-gnu": "npm:4.22.1" - "@rollup/rollup-linux-s390x-gnu": "npm:4.22.1" - "@rollup/rollup-linux-x64-gnu": "npm:4.22.1" - "@rollup/rollup-linux-x64-musl": "npm:4.22.1" - "@rollup/rollup-win32-arm64-msvc": "npm:4.22.1" - "@rollup/rollup-win32-ia32-msvc": "npm:4.22.1" - "@rollup/rollup-win32-x64-msvc": "npm:4.22.1" - "@types/estree": "npm:1.0.5" +"rollup@npm:^4.23.0": + version: 4.28.0 + resolution: "rollup@npm:4.28.0" + dependencies: + "@rollup/rollup-android-arm-eabi": "npm:4.28.0" + "@rollup/rollup-android-arm64": "npm:4.28.0" + "@rollup/rollup-darwin-arm64": "npm:4.28.0" + "@rollup/rollup-darwin-x64": "npm:4.28.0" + "@rollup/rollup-freebsd-arm64": "npm:4.28.0" + "@rollup/rollup-freebsd-x64": "npm:4.28.0" + "@rollup/rollup-linux-arm-gnueabihf": "npm:4.28.0" + "@rollup/rollup-linux-arm-musleabihf": "npm:4.28.0" + "@rollup/rollup-linux-arm64-gnu": "npm:4.28.0" + "@rollup/rollup-linux-arm64-musl": "npm:4.28.0" + "@rollup/rollup-linux-powerpc64le-gnu": "npm:4.28.0" + "@rollup/rollup-linux-riscv64-gnu": "npm:4.28.0" + "@rollup/rollup-linux-s390x-gnu": "npm:4.28.0" + "@rollup/rollup-linux-x64-gnu": "npm:4.28.0" + "@rollup/rollup-linux-x64-musl": "npm:4.28.0" + "@rollup/rollup-win32-arm64-msvc": "npm:4.28.0" + "@rollup/rollup-win32-ia32-msvc": "npm:4.28.0" + "@rollup/rollup-win32-x64-msvc": "npm:4.28.0" + "@types/estree": "npm:1.0.6" fsevents: "npm:~2.3.2" dependenciesMeta: "@rollup/rollup-android-arm-eabi": @@ -16091,6 +14942,10 @@ __metadata: optional: true "@rollup/rollup-darwin-x64": optional: true + "@rollup/rollup-freebsd-arm64": + optional: true + "@rollup/rollup-freebsd-x64": + optional: true "@rollup/rollup-linux-arm-gnueabihf": optional: true "@rollup/rollup-linux-arm-musleabihf": @@ -16119,7 +14974,7 @@ __metadata: optional: true bin: rollup: dist/bin/rollup - checksum: 10c0/0b9496e8e02e26a6277cf4cd96ed159ee58a2b9faff07afd45b51629ccfd6baa52593a0de2b7582b1fb4edbb397d36d1e8286c6376966d209449a1fd607cd8ba + checksum: 10c0/98d3bc2b784eff71b997cfc2be97c00e2f100ee38adc2f8ada7b9b9ecbbc96937f667a6a247a45491807b3f2adef3c73d1f5df40d71771bff0c2d8c0cca9b369 languageName: node linkType: hard @@ -16146,7 +15001,7 @@ __metadata: languageName: node linkType: hard -"safe-array-concat@npm:^1.1.0": +"safe-array-concat@npm:^1.1.2": version: 1.1.2 resolution: "safe-array-concat@npm:1.1.2" dependencies: @@ -16222,6 +15077,13 @@ __metadata: languageName: node linkType: hard +"scheduler@npm:^0.25.0": + version: 0.25.0 + resolution: "scheduler@npm:0.25.0" + checksum: 10c0/a4bb1da406b613ce72c1299db43759526058fdcc413999c3c3e0db8956df7633acf395cb20eb2303b6a65d658d66b6585d344460abaee8080b4aa931f10eaafe + languageName: node + linkType: hard + "semver@npm:2 || 3 || 4 || 5, semver@npm:^5.6.0": version: 5.7.2 resolution: "semver@npm:5.7.2" @@ -16236,33 +15098,22 @@ __metadata: resolution: "semver@npm:6.3.1" bin: semver: bin/semver.js - checksum: 10c0/e3d79b609071caa78bcb6ce2ad81c7966a46a7431d9d58b8800cfa9cb6a63699b3899a0e4bcce36167a284578212d9ae6942b6929ba4aa5015c079a67751d42d - languageName: node - linkType: hard - -"semver@npm:7.3.5": - version: 7.3.5 - resolution: "semver@npm:7.3.5" - dependencies: - lru-cache: "npm:^6.0.0" - bin: - semver: bin/semver.js - checksum: 10c0/d450455b2601396dbc7d9f058a6709b1c0b99d74a911f9436c77887600ffcdb5f63d5adffa0c3b8f0092937d8a41cc61c6437bcba375ef4151cb1335ebe4f1f9 + checksum: 10c0/e3d79b609071caa78bcb6ce2ad81c7966a46a7431d9d58b8800cfa9cb6a63699b3899a0e4bcce36167a284578212d9ae6942b6929ba4aa5015c079a67751d42d languageName: node linkType: hard -"semver@npm:7.5.3": - version: 7.5.3 - resolution: "semver@npm:7.5.3" +"semver@npm:7.3.5": + version: 7.3.5 + resolution: "semver@npm:7.3.5" dependencies: lru-cache: "npm:^6.0.0" bin: semver: bin/semver.js - checksum: 10c0/4cf3bab7e8cf8c2ae521fc4bcc50a4d6912a836360796b23b9f1c26f45d27a73f870e47664df4770bde0dd60dc4d4781a05fd49fe91d72376ea5519b9e791459 + checksum: 10c0/d450455b2601396dbc7d9f058a6709b1c0b99d74a911f9436c77887600ffcdb5f63d5adffa0c3b8f0092937d8a41cc61c6437bcba375ef4151cb1335ebe4f1f9 languageName: node linkType: hard -"semver@npm:^7.0.0, semver@npm:^7.1.1, semver@npm:^7.3.4, semver@npm:^7.3.5, semver@npm:^7.3.7, semver@npm:^7.3.8, semver@npm:^7.5.3, semver@npm:^7.5.4, semver@npm:^7.6.2": +"semver@npm:^7.0.0, semver@npm:^7.1.1, semver@npm:^7.3.4, semver@npm:^7.3.5, semver@npm:^7.3.7, semver@npm:^7.3.8, semver@npm:^7.5.3, semver@npm:^7.5.4, semver@npm:^7.6.0, semver@npm:^7.6.2, semver@npm:^7.6.3": version: 7.6.3 resolution: "semver@npm:7.6.3" bin: @@ -16271,25 +15122,24 @@ __metadata: languageName: node linkType: hard -"serve-handler@npm:6.1.5": - version: 6.1.5 - resolution: "serve-handler@npm:6.1.5" +"serve-handler@npm:6.1.6": + version: 6.1.6 + resolution: "serve-handler@npm:6.1.6" dependencies: bytes: "npm:3.0.0" content-disposition: "npm:0.5.2" - fast-url-parser: "npm:1.1.3" mime-types: "npm:2.1.18" minimatch: "npm:3.1.2" path-is-inside: "npm:1.0.2" - path-to-regexp: "npm:2.2.1" + path-to-regexp: "npm:3.3.0" range-parser: "npm:1.2.0" - checksum: 10c0/6fd393ae37a0305107e634ca545322b00605322189fe70d8f1a4a90a101c4e354768c610efe5a7ef1af3820cec5c33d97467c88151f35a3cb41d8ff2075ef802 + checksum: 10c0/1e1cb6bbc51ee32bc1505f2e0605bdc2e96605c522277c977b67f83be9d66bd1eec8604388714a4d728e036d86b629bc9aec02120ea030d3d2c3899d44696503 languageName: node linkType: hard -"serve@npm:^14.2.3": - version: 14.2.3 - resolution: "serve@npm:14.2.3" +"serve@npm:^14.2.4": + version: 14.2.4 + resolution: "serve@npm:14.2.4" dependencies: "@zeit/schemas": "npm:2.36.0" ajv: "npm:8.12.0" @@ -16300,11 +15150,11 @@ __metadata: clipboardy: "npm:3.0.0" compression: "npm:1.7.4" is-port-reachable: "npm:4.0.0" - serve-handler: "npm:6.1.5" + serve-handler: "npm:6.1.6" update-check: "npm:1.5.4" bin: serve: build/main.js - checksum: 10c0/b03c683f02ad99852b5ec9ce88b26a1dee6276b26d89c7b85c23a487a75cee7ddd63fec38c2b7d7563803b223d3bd8a2cd1996c286188f9e4b1276876bc0faad + checksum: 10c0/93abecd6214228d529065040f7c0cbe541c1cc321c6a94b8a968f45a519bd9c46a9fd5e45a9b24a1f5736c5b547b8fa60d5414ebc78f870e29431b64165c1d06 languageName: node linkType: hard @@ -16329,14 +15179,15 @@ __metadata: languageName: node linkType: hard -"set-function-name@npm:^2.0.0, set-function-name@npm:^2.0.1": - version: 2.0.1 - resolution: "set-function-name@npm:2.0.1" +"set-function-name@npm:^2.0.1, set-function-name@npm:^2.0.2": + version: 2.0.2 + resolution: "set-function-name@npm:2.0.2" dependencies: - define-data-property: "npm:^1.0.1" + define-data-property: "npm:^1.1.4" + es-errors: "npm:^1.3.0" functions-have-names: "npm:^1.2.3" - has-property-descriptors: "npm:^1.0.0" - checksum: 10c0/6be7d3e15be47f4db8a5a563a35c60b5e7c4af91cc900e8972ffad33d3aaa227900faa55f60121cdb04b85866a734bb7fe4cd91f654c632861cc86121a48312a + has-property-descriptors: "npm:^1.0.2" + checksum: 10c0/fce59f90696c450a8523e754abb305e2b8c73586452619c2bad5f7bf38c7b6b4651895c9db895679c5bef9554339cf3ef1c329b66ece3eda7255785fbe299316 languageName: node linkType: hard @@ -16356,13 +15207,6 @@ __metadata: languageName: node linkType: hard -"shallowequal@npm:^1.1.0": - version: 1.1.0 - resolution: "shallowequal@npm:1.1.0" - checksum: 10c0/b926efb51cd0f47aa9bc061add788a4a650550bbe50647962113a4579b60af2abe7b62f9b02314acc6f97151d4cf87033a2b15fc20852fae306d1a095215396c - languageName: node - linkType: hard - "shebang-command@npm:^1.2.0": version: 1.2.0 resolution: "shebang-command@npm:1.2.0" @@ -16402,7 +15246,7 @@ __metadata: languageName: node linkType: hard -"side-channel@npm:^1.0.4": +"side-channel@npm:^1.0.4, side-channel@npm:^1.0.6": version: 1.0.6 resolution: "side-channel@npm:1.0.6" dependencies: @@ -16428,16 +15272,17 @@ __metadata: languageName: node linkType: hard -"sigstore@npm:^1.3.0, sigstore@npm:^1.4.0": - version: 1.7.0 - resolution: "sigstore@npm:1.7.0" +"sigstore@npm:^2.2.0": + version: 2.3.1 + resolution: "sigstore@npm:2.3.1" dependencies: - "@sigstore/protobuf-specs": "npm:^0.1.0" - "@sigstore/tuf": "npm:^1.0.1" - make-fetch-happen: "npm:^11.0.1" - bin: - sigstore: bin/sigstore.js - checksum: 10c0/2cf2b7fe40323ef7a664627ac9e862cad985685bbc14528355d7a0813916dd4c96d94ffd3149de08d2ea33a86dfd4b073908d995cfcedba510cdb5073a49382c + "@sigstore/bundle": "npm:^2.3.2" + "@sigstore/core": "npm:^1.0.0" + "@sigstore/protobuf-specs": "npm:^0.3.2" + "@sigstore/sign": "npm:^2.3.2" + "@sigstore/tuf": "npm:^2.3.4" + "@sigstore/verify": "npm:^1.2.1" + checksum: 10c0/8906b1074130d430d707e46f15c66eb6996891dc0d068705f1884fb1251a4a367f437267d44102cdebcee34f1768b3f30131a2ec8fb7aac74ba250903a459aa7 languageName: node linkType: hard @@ -16472,17 +15317,6 @@ __metadata: languageName: node linkType: hard -"socks-proxy-agent@npm:^7.0.0": - version: 7.0.0 - resolution: "socks-proxy-agent@npm:7.0.0" - dependencies: - agent-base: "npm:^6.0.2" - debug: "npm:^4.3.3" - socks: "npm:^2.6.2" - checksum: 10c0/b859f7eb8e96ec2c4186beea233ae59c02404094f3eb009946836af27d6e5c1627d1975a69b4d2e20611729ed543b6db3ae8481eb38603433c50d0345c987600 - languageName: node - linkType: hard - "socks-proxy-agent@npm:^8.0.1": version: 8.0.2 resolution: "socks-proxy-agent@npm:8.0.2" @@ -16494,7 +15328,7 @@ __metadata: languageName: node linkType: hard -"socks@npm:^2.6.2, socks@npm:^2.7.1": +"socks@npm:^2.7.1": version: 2.7.1 resolution: "socks@npm:2.7.1" dependencies: @@ -16513,7 +15347,7 @@ __metadata: languageName: node linkType: hard -"source-map-js@npm:^1.0.1, source-map-js@npm:^1.0.2, source-map-js@npm:^1.2.0, source-map-js@npm:^1.2.1": +"source-map-js@npm:^1.0.1, source-map-js@npm:^1.0.2, source-map-js@npm:^1.2.1": version: 1.2.1 resolution: "source-map-js@npm:1.2.1" checksum: 10c0/7bda1fc4c197e3c6ff17de1b8b2c20e60af81b63a52cb32ec5a5d67a20a7d42651e2cb34ebe93833c5a2a084377e17455854fee3e21e7925c64a51b6a52b0faf @@ -16530,13 +15364,6 @@ __metadata: languageName: node linkType: hard -"source-map@npm:^0.5.7": - version: 0.5.7 - resolution: "source-map@npm:0.5.7" - checksum: 10c0/904e767bb9c494929be013017380cbba013637da1b28e5943b566031e29df04fba57edf3f093e0914be094648b577372bd8ad247fa98cfba9c600794cd16b599 - languageName: node - linkType: hard - "source-map@npm:^0.6.0, source-map@npm:^0.6.1, source-map@npm:~0.6.1": version: 0.6.1 resolution: "source-map@npm:0.6.1" @@ -16578,15 +15405,6 @@ __metadata: languageName: node linkType: hard -"specificity@npm:^0.4.1": - version: 0.4.1 - resolution: "specificity@npm:0.4.1" - bin: - specificity: ./bin/specificity - checksum: 10c0/5da85a05052b55e344cb0f5bce5d07cbabbbe8945da176a481589db5a13e9fbcfa879ceb075cf564b94e680fae0a2ab14ea55cc87496b86a6d5122545946d7c2 - languageName: node - linkType: hard - "split2@npm:^3.2.2": version: 3.2.2 resolution: "split2@npm:3.2.2" @@ -16612,21 +15430,12 @@ __metadata: languageName: node linkType: hard -"ssri@npm:^10.0.0, ssri@npm:^10.0.1": - version: 10.0.4 - resolution: "ssri@npm:10.0.4" +"ssri@npm:^10.0.0, ssri@npm:^10.0.6": + version: 10.0.6 + resolution: "ssri@npm:10.0.6" dependencies: - minipass: "npm:^5.0.0" - checksum: 10c0/d085474ea6b439623a9a6a2c67570cb9e68e1bb6060e46e4d387f113304d75a51946d57c524be3a90ebfa3c73026edf76eb1a2d79a7f6cff0b04f21d99f127ab - languageName: node - linkType: hard - -"ssri@npm:^9.0.0, ssri@npm:^9.0.1": - version: 9.0.1 - resolution: "ssri@npm:9.0.1" - dependencies: - minipass: "npm:^3.1.1" - checksum: 10c0/c5d153ce03b5980d683ecaa4d805f6a03d8dc545736213803e168a1907650c46c08a4e5ce6d670a0205482b35c35713d9d286d9133bdd79853a406e22ad81f04 + minipass: "npm:^7.0.3" + checksum: 10c0/e5a1e23a4057a86a97971465418f22ea89bd439ac36ade88812dd920e4e61873e8abd6a9b72a03a67ef50faa00a2daf1ab745c5a15b46d03e0544a0296354227 languageName: node linkType: hard @@ -16653,11 +15462,11 @@ __metadata: languageName: node linkType: hard -"storybook@npm:^8.4.0": - version: 8.4.0 - resolution: "storybook@npm:8.4.0" +"storybook@npm:^8.4.7": + version: 8.4.7 + resolution: "storybook@npm:8.4.7" dependencies: - "@storybook/core": "npm:8.4.0" + "@storybook/core": "npm:8.4.7" peerDependencies: prettier: ^2 || ^3 peerDependenciesMeta: @@ -16667,7 +15476,7 @@ __metadata: getstorybook: ./bin/index.cjs sb: ./bin/index.cjs storybook: ./bin/index.cjs - checksum: 10c0/9e1443aa19bc7e31f5aaddd9559dd774030c132632a995ec21bcdc389aea2edb09287b20f542ce7a9c5fe926e5b97d9fe740c10b889d52efcbd50c2138f70957 + checksum: 10c0/795b79950b88b41ee0158fe2e2583a8ce97ff843c054f91e3c55310967b9e5c4e4d72814773380b543c33bd6d57ce6b5f377ce93ce73962e803b250a751be37c languageName: node linkType: hard @@ -16723,53 +15532,78 @@ __metadata: languageName: node linkType: hard -"string.prototype.matchall@npm:^4.0.10": - version: 4.0.10 - resolution: "string.prototype.matchall@npm:4.0.10" +"string.prototype.includes@npm:^2.0.1": + version: 2.0.1 + resolution: "string.prototype.includes@npm:2.0.1" dependencies: - call-bind: "npm:^1.0.2" - define-properties: "npm:^1.2.0" - es-abstract: "npm:^1.22.1" - get-intrinsic: "npm:^1.2.1" + call-bind: "npm:^1.0.7" + define-properties: "npm:^1.2.1" + es-abstract: "npm:^1.23.3" + checksum: 10c0/25ce9c9b49128352a2618fbe8758b46f945817a58a4420f4799419e40a8d28f116e176c7590d767d5327a61e75c8f32c86171063f48e389b9fdd325f1bd04ee5 + languageName: node + linkType: hard + +"string.prototype.matchall@npm:^4.0.11": + version: 4.0.11 + resolution: "string.prototype.matchall@npm:4.0.11" + dependencies: + call-bind: "npm:^1.0.7" + define-properties: "npm:^1.2.1" + es-abstract: "npm:^1.23.2" + es-errors: "npm:^1.3.0" + es-object-atoms: "npm:^1.0.0" + get-intrinsic: "npm:^1.2.4" + gopd: "npm:^1.0.1" has-symbols: "npm:^1.0.3" - internal-slot: "npm:^1.0.5" - regexp.prototype.flags: "npm:^1.5.0" - set-function-name: "npm:^2.0.0" - side-channel: "npm:^1.0.4" - checksum: 10c0/cd7495fb0de16d43efeee3887b98701941f3817bd5f09351ad1825b023d307720c86394d56d56380563d97767ab25bf5448db239fcecbb85c28e2180f23e324a + internal-slot: "npm:^1.0.7" + regexp.prototype.flags: "npm:^1.5.2" + set-function-name: "npm:^2.0.2" + side-channel: "npm:^1.0.6" + checksum: 10c0/915a2562ac9ab5e01b7be6fd8baa0b2b233a0a9aa975fcb2ec13cc26f08fb9a3e85d5abdaa533c99c6fc4c5b65b914eba3d80c4aff9792a4c9fed403f28f7d9d languageName: node linkType: hard -"string.prototype.trim@npm:^1.2.8": - version: 1.2.8 - resolution: "string.prototype.trim@npm:1.2.8" +"string.prototype.repeat@npm:^1.0.0": + version: 1.0.0 + resolution: "string.prototype.repeat@npm:1.0.0" dependencies: - call-bind: "npm:^1.0.2" - define-properties: "npm:^1.2.0" - es-abstract: "npm:^1.22.1" - checksum: 10c0/4f76c583908bcde9a71208ddff38f67f24c9ec8093631601666a0df8b52fad44dad2368c78895ce83eb2ae8e7068294cc96a02fc971ab234e4d5c9bb61ea4e34 + define-properties: "npm:^1.1.3" + es-abstract: "npm:^1.17.5" + checksum: 10c0/94c7978566cffa1327d470fd924366438af9b04b497c43a9805e476e2e908aa37a1fd34cc0911156c17556dab62159d12c7b92b3cc304c3e1281fe4c8e668f40 languageName: node linkType: hard -"string.prototype.trimend@npm:^1.0.7": - version: 1.0.7 - resolution: "string.prototype.trimend@npm:1.0.7" +"string.prototype.trim@npm:^1.2.9": + version: 1.2.9 + resolution: "string.prototype.trim@npm:1.2.9" dependencies: - call-bind: "npm:^1.0.2" - define-properties: "npm:^1.2.0" - es-abstract: "npm:^1.22.1" - checksum: 10c0/53c24911c7c4d8d65f5ef5322de23a3d5b6b4db73273e05871d5ab4571ae5638f38f7f19d71d09116578fb060e5a145cc6a208af2d248c8baf7a34f44d32ce57 + call-bind: "npm:^1.0.7" + define-properties: "npm:^1.2.1" + es-abstract: "npm:^1.23.0" + es-object-atoms: "npm:^1.0.0" + checksum: 10c0/dcef1a0fb61d255778155006b372dff8cc6c4394bc39869117e4241f41a2c52899c0d263ffc7738a1f9e61488c490b05c0427faa15151efad721e1a9fb2663c2 languageName: node linkType: hard -"string.prototype.trimstart@npm:^1.0.7": - version: 1.0.7 - resolution: "string.prototype.trimstart@npm:1.0.7" +"string.prototype.trimend@npm:^1.0.8": + version: 1.0.8 + resolution: "string.prototype.trimend@npm:1.0.8" dependencies: - call-bind: "npm:^1.0.2" - define-properties: "npm:^1.2.0" - es-abstract: "npm:^1.22.1" - checksum: 10c0/0bcf391b41ea16d4fda9c9953d0a7075171fe090d33b4cf64849af94944c50862995672ac03e0c5dba2940a213ad7f53515a668dac859ce22a0276289ae5cf4f + call-bind: "npm:^1.0.7" + define-properties: "npm:^1.2.1" + es-object-atoms: "npm:^1.0.0" + checksum: 10c0/0a0b54c17c070551b38e756ae271865ac6cc5f60dabf2e7e343cceae7d9b02e1a1120a824e090e79da1b041a74464e8477e2da43e2775c85392be30a6f60963c + languageName: node + linkType: hard + +"string.prototype.trimstart@npm:^1.0.8": + version: 1.0.8 + resolution: "string.prototype.trimstart@npm:1.0.8" + dependencies: + call-bind: "npm:^1.0.7" + define-properties: "npm:^1.2.1" + es-object-atoms: "npm:^1.0.0" + checksum: 10c0/d53af1899959e53c83b64a5fd120be93e067da740e7e75acb433849aa640782fb6c7d4cd5b84c954c84413745a3764df135a8afeb22908b86a835290788d8366 languageName: node linkType: hard @@ -16862,7 +15696,7 @@ __metadata: languageName: node linkType: hard -"strong-log-transformer@npm:2.1.0, strong-log-transformer@npm:^2.1.0": +"strong-log-transformer@npm:2.1.0": version: 2.1.0 resolution: "strong-log-transformer@npm:2.1.0" dependencies: @@ -16875,28 +15709,21 @@ __metadata: languageName: node linkType: hard -"style-to-js@npm:1.1.10": - version: 1.1.10 - resolution: "style-to-js@npm:1.1.10" +"style-to-js@npm:1.1.16": + version: 1.1.16 + resolution: "style-to-js@npm:1.1.16" dependencies: - style-to-object: "npm:1.0.5" - checksum: 10c0/bb0603f50be1ac19cb2b1acd1175d9203ca9858112a851aa05ed6af2cf64f4f2dfe765e2fefce5e64f59b5993e7d8411cdb5eae6812c0f2992b0f04cfd52fbc8 + style-to-object: "npm:1.0.8" + checksum: 10c0/578a4dff804539ec7e64d3cc8d327540befb9ad30e3cd0b6b0392f93f793f3a028f90084a9aaff088bffb87818fa2c6c153f0df576f61f9ab0b0938b582bcac7 languageName: node linkType: hard -"style-to-object@npm:1.0.5": - version: 1.0.5 - resolution: "style-to-object@npm:1.0.5" +"style-to-object@npm:1.0.8": + version: 1.0.8 + resolution: "style-to-object@npm:1.0.8" dependencies: - inline-style-parser: "npm:0.2.2" - checksum: 10c0/39bbc5e9f82a80d6a84c134bf49ba50402bf90304af4281fdd317c9792436c166b2f3a2a3d9a65e3f2a3360b35fe4e352932ec9a51513b9864bfd80b7f5a82e1 - languageName: node - linkType: hard - -"stylis@npm:4.2.0": - version: 4.2.0 - resolution: "stylis@npm:4.2.0" - checksum: 10c0/a7128ad5a8ed72652c6eba46bed4f416521bc9745a460ef5741edc725252cebf36ee45e33a8615a7057403c93df0866ab9ee955960792db210bb80abd5ac6543 + inline-style-parser: "npm:0.2.4" + checksum: 10c0/daa6646b1ff18258c0ca33ed281fbe73485c8391192db1b56ce89d40c93ea64507a41e8701d0dadfe771bc2f540c46c9b295135f71584c8e5cb23d6a19be9430 languageName: node linkType: hard @@ -17000,31 +15827,17 @@ __metadata: languageName: node linkType: hard -"tar@npm:6.1.11": - version: 6.1.11 - resolution: "tar@npm:6.1.11" - dependencies: - chownr: "npm:^2.0.0" - fs-minipass: "npm:^2.0.0" - minipass: "npm:^3.0.0" - minizlib: "npm:^2.1.1" - mkdirp: "npm:^1.0.3" - yallist: "npm:^4.0.0" - checksum: 10c0/5a016f5330f43815420797b87ade578e2ea60affd47439c988a3fc8f7bb6b36450d627c31ba6a839346fae248b4c8c12bb06bb0716211f37476838c7eff91f05 - languageName: node - linkType: hard - -"tar@npm:^6.1.11, tar@npm:^6.1.2": - version: 6.1.13 - resolution: "tar@npm:6.1.13" +"tar@npm:6.2.1, tar@npm:^6.1.11, tar@npm:^6.1.2, tar@npm:^6.2.1": + version: 6.2.1 + resolution: "tar@npm:6.2.1" dependencies: chownr: "npm:^2.0.0" fs-minipass: "npm:^2.0.0" - minipass: "npm:^4.0.0" + minipass: "npm:^5.0.0" minizlib: "npm:^2.1.1" mkdirp: "npm:^1.0.3" yallist: "npm:^4.0.0" - checksum: 10c0/eee5f264f3f3c27cd8d4934f80c568470f92811c416144ab671bb36b45a8ed55fbfbbd31f0146f3eddaca91fd564c9a7ec4d2086940968b836f4a2c54146c060 + checksum: 10c0/a5eca3eb50bc11552d453488344e6507156b9193efd7635e98e867fab275d527af53d8866e2370cd09dfe74378a18111622ace35af6a608e5223a7d27fe99537 languageName: node linkType: hard @@ -17053,13 +15866,6 @@ __metadata: languageName: node linkType: hard -"text-table@npm:^0.2.0": - version: 0.2.0 - resolution: "text-table@npm:0.2.0" - checksum: 10c0/02805740c12851ea5982686810702e2f14369a5f4c5c40a836821e3eefc65ffeec3131ba324692a37608294b0fd8c1e55a2dd571ffed4909822787668ddbee5c - languageName: node - linkType: hard - "through2@npm:^2.0.0": version: 2.0.5 resolution: "through2@npm:2.0.5" @@ -17187,6 +15993,13 @@ __metadata: languageName: node linkType: hard +"treeverse@npm:^3.0.0": + version: 3.0.0 + resolution: "treeverse@npm:3.0.0" + checksum: 10c0/286479b9c05a8fb0538ee7d67a5502cea7704f258057c784c9c1118a2f598788b2c0f7a8d89e74648af88af0225b31766acecd78e6060736f09b21dd3fa255db + languageName: node + linkType: hard + "trim-newlines@npm:^3.0.0": version: 3.0.1 resolution: "trim-newlines@npm:3.0.1" @@ -17194,12 +16007,12 @@ __metadata: languageName: node linkType: hard -"ts-api-utils@npm:^1.0.1": - version: 1.0.1 - resolution: "ts-api-utils@npm:1.0.1" +"ts-api-utils@npm:^1.3.0": + version: 1.4.0 + resolution: "ts-api-utils@npm:1.4.0" peerDependencies: typescript: ">=4.2.0" - checksum: 10c0/8e8a54afb44df31c413e6f5b817a305a37780726125db26e85d01d553efc31aacb3ccad111a14844b584776f24e71bcd4db2f2d3e9bce8031a329dc78f3e46e2 + checksum: 10c0/1b2bfa50ea52771d564bb143bb69010d25cda03ed573095fbac9b86f717012426443af6647e00e3db70fca60360482a30c1be7cf73c3521c321f6bf5e3594ea0 languageName: node linkType: hard @@ -17227,20 +16040,22 @@ __metadata: languageName: node linkType: hard -"ts-jest@npm:^29.1.1": - version: 29.1.1 - resolution: "ts-jest@npm:29.1.1" +"ts-jest@npm:^29.2.5": + version: 29.2.5 + resolution: "ts-jest@npm:29.2.5" dependencies: - bs-logger: "npm:0.x" - fast-json-stable-stringify: "npm:2.x" + bs-logger: "npm:^0.2.6" + ejs: "npm:^3.1.10" + fast-json-stable-stringify: "npm:^2.1.0" jest-util: "npm:^29.0.0" json5: "npm:^2.2.3" - lodash.memoize: "npm:4.x" - make-error: "npm:1.x" - semver: "npm:^7.5.3" - yargs-parser: "npm:^21.0.1" + lodash.memoize: "npm:^4.1.2" + make-error: "npm:^1.3.6" + semver: "npm:^7.6.3" + yargs-parser: "npm:^21.1.1" peerDependencies: "@babel/core": ">=7.0.0-beta.0 <8" + "@jest/transform": ^29.0.0 "@jest/types": ^29.0.0 babel-jest: ^29.0.0 jest: ^29.0.0 @@ -17248,6 +16063,8 @@ __metadata: peerDependenciesMeta: "@babel/core": optional: true + "@jest/transform": + optional: true "@jest/types": optional: true babel-jest: @@ -17256,7 +16073,7 @@ __metadata: optional: true bin: ts-jest: cli.js - checksum: 10c0/6c45e0aeeff9cc54a64f931c43e1b99f4a1f0ddf44786cc128e7e55603ab7473c8c8f62fd83bd7e51bfe83e3c0c683132152efaeb844516bf7c923f4e92d157d + checksum: 10c0/acb62d168faec073e64b20873b583974ba8acecdb94681164eb346cef82ade8fb481c5b979363e01a97ce4dd1e793baf64d9efd90720bc941ad7fc1c3d6f3f68 languageName: node linkType: hard @@ -17346,20 +16163,6 @@ __metadata: languageName: node linkType: hard -"tsconfck@npm:^3.0.3": - version: 3.0.3 - resolution: "tsconfck@npm:3.0.3" - peerDependencies: - typescript: ^5.0.0 - peerDependenciesMeta: - typescript: - optional: true - bin: - tsconfck: bin/tsconfck.js - checksum: 10c0/d45009230c4caa5fc765bdded96f3b8703a7cdd44a1d63024914b0fb1c4dabf9e94d28cc9f9edccaef9baa7b99adc963502d34943d82fcb07b92e1161ee03c56 - languageName: node - linkType: hard - "tsconfig-paths@npm:^3.15.0": version: 3.15.0 resolution: "tsconfig-paths@npm:3.15.0" @@ -17390,14 +16193,14 @@ __metadata: languageName: node linkType: hard -"tuf-js@npm:^1.1.7": - version: 1.1.7 - resolution: "tuf-js@npm:1.1.7" +"tuf-js@npm:^2.2.1": + version: 2.2.1 + resolution: "tuf-js@npm:2.2.1" dependencies: - "@tufjs/models": "npm:1.0.4" + "@tufjs/models": "npm:2.0.1" debug: "npm:^4.3.4" - make-fetch-happen: "npm:^11.1.1" - checksum: 10c0/7c4980ada7a55f2670b895e8d9345ef2eec4a471c47f6127543964a12a8b9b69f16002990e01a138cd775aa954880b461186a6eaf7b86633d090425b4273375b + make-fetch-happen: "npm:^13.0.1" + checksum: 10c0/7c17b097571f001730d7be0aeaec6bec46ed2f25bf73990b1133c383d511a1ce65f831e5d6d78770940a85b67664576ff0e4c98e5421bab6d33ff36e4be500c8 languageName: node linkType: hard @@ -17424,13 +16227,6 @@ __metadata: languageName: node linkType: hard -"type-fest@npm:^0.20.2": - version: 0.20.2 - resolution: "type-fest@npm:0.20.2" - checksum: 10c0/dea9df45ea1f0aaa4e2d3bed3f9a0bfe9e5b2592bddb92eb1bf06e50bcf98dbb78189668cd8bc31a0511d3fc25539b4cd5c704497e53e93e2d40ca764b10bfc3 - languageName: node - linkType: hard - "type-fest@npm:^0.21.3": version: 0.21.3 resolution: "type-fest@npm:0.21.3" @@ -17504,9 +16300,9 @@ __metadata: languageName: node linkType: hard -"typed-array-length@npm:^1.0.5": - version: 1.0.5 - resolution: "typed-array-length@npm:1.0.5" +"typed-array-length@npm:^1.0.6": + version: 1.0.6 + resolution: "typed-array-length@npm:1.0.6" dependencies: call-bind: "npm:^1.0.7" for-each: "npm:^0.3.3" @@ -17514,7 +16310,7 @@ __metadata: has-proto: "npm:^1.0.3" is-typed-array: "npm:^1.1.13" possible-typed-array-names: "npm:^1.0.0" - checksum: 10c0/5cc0f79196e70a92f8f40846cfa62b3de6be51e83f73655e137116cf65e3c29a288502b18cc8faf33c943c2470a4569009e1d6da338441649a2db2f135761ad5 + checksum: 10c0/74253d7dc488eb28b6b2711cf31f5a9dcefc9c41b0681fd1c178ed0a1681b4468581a3626d39cd4df7aee3d3927ab62be06aa9ca74e5baf81827f61641445b77 languageName: node linkType: hard @@ -17525,6 +16321,22 @@ __metadata: languageName: node linkType: hard +"typescript-eslint@npm:^8.15.0": + version: 8.15.0 + resolution: "typescript-eslint@npm:8.15.0" + dependencies: + "@typescript-eslint/eslint-plugin": "npm:8.15.0" + "@typescript-eslint/parser": "npm:8.15.0" + "@typescript-eslint/utils": "npm:8.15.0" + peerDependencies: + eslint: ^8.57.0 || ^9.0.0 + peerDependenciesMeta: + typescript: + optional: true + checksum: 10c0/589aebf0d0b9b79db1cd0b7c2ea08c6b5727c1db095d39077d070c332066c7d549a0eb2ef60b0d41619720c317c1955236c5c8ee6320bc7c6ae475add7223b55 + languageName: node + linkType: hard + "typescript@npm:4.9.5": version: 4.9.5 resolution: "typescript@npm:4.9.5" @@ -17545,13 +16357,13 @@ __metadata: languageName: node linkType: hard -"typescript@npm:>=3 < 6, typescript@npm:^5.6.3": - version: 5.6.3 - resolution: "typescript@npm:5.6.3" +"typescript@npm:>=3 < 6, typescript@npm:^5.7.2": + version: 5.7.2 + resolution: "typescript@npm:5.7.2" bin: tsc: bin/tsc tsserver: bin/tsserver - checksum: 10c0/44f61d3fb15c35359bc60399cb8127c30bae554cd555b8e2b46d68fa79d680354b83320ad419ff1b81a0bdf324197b29affe6cc28988cd6a74d4ac60c94f9799 + checksum: 10c0/a873118b5201b2ef332127ef5c63fb9d9c155e6fdbe211cbd9d8e65877283797cca76546bad742eea36ed7efbe3424a30376818f79c7318512064e8625d61622 languageName: node linkType: hard @@ -17575,20 +16387,13 @@ __metadata: languageName: node linkType: hard -"typescript@patch:typescript@npm%3A>=3 < 6#optional!builtin, typescript@patch:typescript@npm%3A^5.6.3#optional!builtin": - version: 5.6.3 - resolution: "typescript@patch:typescript@npm%3A5.6.3#optional!builtin::version=5.6.3&hash=d69c25" +"typescript@patch:typescript@npm%3A>=3 < 6#optional!builtin, typescript@patch:typescript@npm%3A^5.7.2#optional!builtin": + version: 5.7.2 + resolution: "typescript@patch:typescript@npm%3A5.7.2#optional!builtin::version=5.7.2&hash=d69c25" bin: tsc: bin/tsc tsserver: bin/tsserver - checksum: 10c0/ac8307bb06bbfd08ae7137da740769b7d8c3ee5943188743bb622c621f8ad61d244767480f90fbd840277fbf152d8932aa20c33f867dea1bb5e79b187ca1a92f - languageName: node - linkType: hard - -"ua-parser-js@npm:^1.0.33": - version: 1.0.33 - resolution: "ua-parser-js@npm:1.0.33" - checksum: 10c0/71a01030f648cfefe992d0552d85a6f72cee88965b3c0698cbc3e27edfa7ff551cfd5d928da32e246889ef1aeac19edb5419f5ccb4aa43e32e749c0ebc6af9b3 + checksum: 10c0/c891ccf04008bc1305ba34053db951f8a4584b4a1bf2f68fd972c4a354df3dc5e62c8bfed4f6ac2d12e5b3b1c49af312c83a651048f818cd5b4949d17baacd79 languageName: node linkType: hard @@ -17681,15 +16486,6 @@ __metadata: languageName: node linkType: hard -"unique-filename@npm:^2.0.0": - version: 2.0.1 - resolution: "unique-filename@npm:2.0.1" - dependencies: - unique-slug: "npm:^3.0.0" - checksum: 10c0/55d95cd670c4a86117ebc34d394936d712d43b56db6bc511f9ca00f666373818bf9f075fb0ab76bcbfaf134592ef26bb75aad20786c1ff1ceba4457eaba90fb8 - languageName: node - linkType: hard - "unique-filename@npm:^3.0.0": version: 3.0.0 resolution: "unique-filename@npm:3.0.0" @@ -17699,15 +16495,6 @@ __metadata: languageName: node linkType: hard -"unique-slug@npm:^3.0.0": - version: 3.0.0 - resolution: "unique-slug@npm:3.0.0" - dependencies: - imurmurhash: "npm:^0.1.4" - checksum: 10c0/617240eb921af803b47d322d75a71a363dacf2e56c29ae5d1404fad85f64f4ec81ef10ee4fd79215d0202cbe1e5a653edb0558d59c9c81d3bd538c2d58e4c026 - languageName: node - linkType: hard - "unique-slug@npm:^4.0.0": version: 4.0.0 resolution: "unique-slug@npm:4.0.0" @@ -17836,37 +16623,6 @@ __metadata: languageName: node linkType: hard -"use-callback-ref@npm:^1.3.0": - version: 1.3.0 - resolution: "use-callback-ref@npm:1.3.0" - dependencies: - tslib: "npm:^2.0.0" - peerDependencies: - "@types/react": ^16.8.0 || ^17.0.0 || ^18.0.0 - react: ^16.8.0 || ^17.0.0 || ^18.0.0 - peerDependenciesMeta: - "@types/react": - optional: true - checksum: 10c0/8a0867ffd441f358c66d79567970a745cc78ac2f98840a81c1fa749a525e8716116c645497d886a815e1dcf40ad81a107ebd6a7d15fd9ab5925c44a994a1d89a - languageName: node - linkType: hard - -"use-sidecar@npm:^1.1.2": - version: 1.1.2 - resolution: "use-sidecar@npm:1.1.2" - dependencies: - detect-node-es: "npm:^1.1.0" - tslib: "npm:^2.0.0" - peerDependencies: - "@types/react": ^16.9.0 || ^17.0.0 || ^18.0.0 - react: ^16.8.0 || ^17.0.0 || ^18.0.0 - peerDependenciesMeta: - "@types/react": - optional: true - checksum: 10c0/89f0018fd9aee1fc17c85ac18c4bf8944d460d453d0d0e04ddbc8eaddf3fa591e9c74a1f8a438a1bff368a7a2417fab380bdb3df899d2194c4375b0982736de0 - languageName: node - linkType: hard - "util-deprecate@npm:^1.0.1, util-deprecate@npm:^1.0.2, util-deprecate@npm:~1.0.1": version: 1.0.2 resolution: "util-deprecate@npm:1.0.2" @@ -17896,6 +16652,15 @@ __metadata: languageName: node linkType: hard +"uuid@npm:^10.0.0": + version: 10.0.0 + resolution: "uuid@npm:10.0.0" + bin: + uuid: dist/bin/uuid + checksum: 10c0/eab18c27fe4ab9fb9709a5d5f40119b45f2ec8314f8d4cf12ce27e4c6f4ffa4a6321dc7db6c515068fa373c075b49691ba969f0010bf37f44c37ca40cd6bf7fe + languageName: node + linkType: hard + "uuid@npm:^9.0.0": version: 9.0.0 resolution: "uuid@npm:9.0.0" @@ -17912,13 +16677,6 @@ __metadata: languageName: node linkType: hard -"v8-compile-cache@npm:2.3.0": - version: 2.3.0 - resolution: "v8-compile-cache@npm:2.3.0" - checksum: 10c0/b2d866febf943fbbf0b5e8d43ae9a9b0dacd11dd76e6a9c8e8032268f0136f081e894a2723774ae2d86befa994be4d4046b0717d82df4f3a10e067994ad5c688 - languageName: node - linkType: hard - "v8-to-istanbul@npm:^9.0.1": version: 9.1.0 resolution: "v8-to-istanbul@npm:9.1.0" @@ -17940,21 +16698,10 @@ __metadata: languageName: node linkType: hard -"validate-npm-package-name@npm:5.0.0, validate-npm-package-name@npm:^5.0.0": - version: 5.0.0 - resolution: "validate-npm-package-name@npm:5.0.0" - dependencies: - builtins: "npm:^5.0.0" - checksum: 10c0/36a9067650f5b90c573a0d394b89ddffb08fe58a60507d7938ad7c38f25055cc5c6bf4a10fbd604abe1f4a31062cbe0dfa8e7ccad37b249da32e7b71889c079e - languageName: node - linkType: hard - -"validate-npm-package-name@npm:^3.0.0": - version: 3.0.0 - resolution: "validate-npm-package-name@npm:3.0.0" - dependencies: - builtins: "npm:^1.0.3" - checksum: 10c0/064f21f59aefae6cc286dd4a50b15d14adb0227e0facab4316197dfb8d06801669e997af5081966c15f7828a5e6ff1957bd20886aeb6b9d0fa430e4cb5db9c4a +"validate-npm-package-name@npm:5.0.1, validate-npm-package-name@npm:^5.0.0": + version: 5.0.1 + resolution: "validate-npm-package-name@npm:5.0.1" + checksum: 10c0/903e738f7387404bb72f7ac34e45d7010c877abd2803dc2d614612527927a40a6d024420033132e667b1bade94544b8a1f65c9431a4eb30d0ce0d80093cd1f74 languageName: node linkType: hard @@ -17988,45 +16735,34 @@ __metadata: languageName: node linkType: hard -"vite-tsconfig-paths@npm:^5.0.1": - version: 5.0.1 - resolution: "vite-tsconfig-paths@npm:5.0.1" - dependencies: - debug: "npm:^4.1.1" - globrex: "npm:^0.1.2" - tsconfck: "npm:^3.0.3" - peerDependencies: - vite: "*" - peerDependenciesMeta: - vite: - optional: true - checksum: 10c0/3c68a4d5df21ed4ef81749c20e91c5978989ed06bffc01688b3f1a0fe65951b461a68f0c017ad930a088cfe7a8cc04d0c8d955dfb8719d5edc7fb0ba9bf38a73 - languageName: node - linkType: hard - -"vite@npm:^5.4.10": - version: 5.4.10 - resolution: "vite@npm:5.4.10" +"vite@npm:^6.0.2": + version: 6.0.2 + resolution: "vite@npm:6.0.2" dependencies: - esbuild: "npm:^0.21.3" + esbuild: "npm:^0.24.0" fsevents: "npm:~2.3.3" - postcss: "npm:^8.4.43" - rollup: "npm:^4.20.0" + postcss: "npm:^8.4.49" + rollup: "npm:^4.23.0" peerDependencies: - "@types/node": ^18.0.0 || >=20.0.0 + "@types/node": ^18.0.0 || ^20.0.0 || >=22.0.0 + jiti: ">=1.21.0" less: "*" lightningcss: ^1.21.0 sass: "*" sass-embedded: "*" stylus: "*" sugarss: "*" - terser: ^5.4.0 + terser: ^5.16.0 + tsx: ^4.8.1 + yaml: ^2.4.2 dependenciesMeta: fsevents: optional: true peerDependenciesMeta: "@types/node": optional: true + jiti: + optional: true less: optional: true lightningcss: @@ -18041,9 +16777,13 @@ __metadata: optional: true terser: optional: true + tsx: + optional: true + yaml: + optional: true bin: vite: bin/vite.js - checksum: 10c0/4ef4807d2fd166a920de244dbcec791ba8a903b017a7d8e9f9b4ac40d23f8152c1100610583d08f542b47ca617a0505cfc5f8407377d610599d58296996691ed + checksum: 10c0/45fc609f2bc5fb5beb5a8e2cad9ad6c2edce229a922f6fc1270ea2a9d75819482edcc0f77c85b4a7abdad7eb69ce6a4f26131925d47cdc0778fc15d1bbc3b6a2 languageName: node linkType: hard @@ -18063,6 +16803,13 @@ __metadata: languageName: node linkType: hard +"walk-up-path@npm:^3.0.1": + version: 3.0.1 + resolution: "walk-up-path@npm:3.0.1" + checksum: 10c0/3184738e0cf33698dd58b0ee4418285b9c811e58698f52c1f025435a85c25cbc5a63fee599f1a79cb29ca7ef09a44ec9417b16bfd906b1a37c305f7aa20ee5bc + languageName: node + linkType: hard + "walker@npm:^1.0.8": version: 1.0.8 resolution: "walker@npm:1.0.8" @@ -18204,7 +16951,7 @@ __metadata: languageName: node linkType: hard -"which-typed-array@npm:^1.1.14, which-typed-array@npm:^1.1.2, which-typed-array@npm:^1.1.9": +"which-typed-array@npm:^1.1.14, which-typed-array@npm:^1.1.15, which-typed-array@npm:^1.1.2, which-typed-array@npm:^1.1.9": version: 1.1.15 resolution: "which-typed-array@npm:1.1.15" dependencies: @@ -18228,7 +16975,7 @@ __metadata: languageName: node linkType: hard -"which@npm:^2.0.1, which@npm:^2.0.2": +"which@npm:^2.0.1": version: 2.0.2 resolution: "which@npm:2.0.2" dependencies: @@ -18239,17 +16986,6 @@ __metadata: languageName: node linkType: hard -"which@npm:^3.0.0": - version: 3.0.1 - resolution: "which@npm:3.0.1" - dependencies: - isexe: "npm:^2.0.0" - bin: - node-which: bin/which.js - checksum: 10c0/15263b06161a7c377328fd2066cb1f093f5e8a8f429618b63212b5b8847489be7bcab0ab3eb07f3ecc0eda99a5a7ea52105cf5fa8266bedd083cc5a9f6da24f1 - languageName: node - linkType: hard - "which@npm:^4.0.0": version: 4.0.0 resolution: "which@npm:4.0.0" @@ -18261,7 +16997,7 @@ __metadata: languageName: node linkType: hard -"wide-align@npm:^1.1.2, wide-align@npm:^1.1.5": +"wide-align@npm:1.1.5, wide-align@npm:^1.1.2": version: 1.1.5 resolution: "wide-align@npm:1.1.5" dependencies: @@ -18315,7 +17051,7 @@ __metadata: languageName: node linkType: hard -"write-file-atomic@npm:5.0.1": +"write-file-atomic@npm:5.0.1, write-file-atomic@npm:^5.0.0": version: 5.0.1 resolution: "write-file-atomic@npm:5.0.1" dependencies: @@ -18453,21 +17189,7 @@ __metadata: languageName: node linkType: hard -"yaml@npm:^1.10.0": - version: 1.10.2 - resolution: "yaml@npm:1.10.2" - checksum: 10c0/5c28b9eb7adc46544f28d9a8d20c5b3cb1215a886609a2fd41f51628d8aaa5878ccd628b755dbcd29f6bb4921bd04ffbc6dcc370689bb96e594e2f9813d2605f - languageName: node - linkType: hard - -"yargs-parser@npm:20.2.4": - version: 20.2.4 - resolution: "yargs-parser@npm:20.2.4" - checksum: 10c0/08dc341f0b9f940c2fffc1d1decf3be00e28cabd2b578a694901eccc7dcd10577f10c6aa1b040fdd9a68b2042515a60f18476543bccacf9f3ce2c8534cd87435 - languageName: node - linkType: hard - -"yargs-parser@npm:21.1.1, yargs-parser@npm:^21.0.1, yargs-parser@npm:^21.1.1": +"yargs-parser@npm:21.1.1, yargs-parser@npm:^21.1.1": version: 21.1.1 resolution: "yargs-parser@npm:21.1.1" checksum: 10c0/f84b5e48169479d2f402239c59f084cfd1c3acc197a05c59b98bab067452e6b3ea46d4dd8ba2985ba7b3d32a343d77df0debd6b343e5dae3da2aab2cdf5886b2 @@ -18481,33 +17203,33 @@ __metadata: languageName: node linkType: hard -"yargs@npm:16.2.0, yargs@npm:^16.2.0": - version: 16.2.0 - resolution: "yargs@npm:16.2.0" +"yargs@npm:17.7.2, yargs@npm:^17.3.1, yargs@npm:^17.6.2, yargs@npm:^17.7.2": + version: 17.7.2 + resolution: "yargs@npm:17.7.2" dependencies: - cliui: "npm:^7.0.2" + cliui: "npm:^8.0.1" escalade: "npm:^3.1.1" get-caller-file: "npm:^2.0.5" require-directory: "npm:^2.1.1" - string-width: "npm:^4.2.0" + string-width: "npm:^4.2.3" y18n: "npm:^5.0.5" - yargs-parser: "npm:^20.2.2" - checksum: 10c0/b1dbfefa679848442454b60053a6c95d62f2d2e21dd28def92b647587f415969173c6e99a0f3bab4f1b67ee8283bf735ebe3544013f09491186ba9e8a9a2b651 + yargs-parser: "npm:^21.1.1" + checksum: 10c0/ccd7e723e61ad5965fffbb791366db689572b80cca80e0f96aad968dfff4156cd7cd1ad18607afe1046d8241e6fb2d6c08bf7fa7bfb5eaec818735d8feac8f05 languageName: node linkType: hard -"yargs@npm:^17.3.1, yargs@npm:^17.6.2, yargs@npm:^17.7.2": - version: 17.7.2 - resolution: "yargs@npm:17.7.2" +"yargs@npm:^16.2.0": + version: 16.2.0 + resolution: "yargs@npm:16.2.0" dependencies: - cliui: "npm:^8.0.1" + cliui: "npm:^7.0.2" escalade: "npm:^3.1.1" get-caller-file: "npm:^2.0.5" require-directory: "npm:^2.1.1" - string-width: "npm:^4.2.3" + string-width: "npm:^4.2.0" y18n: "npm:^5.0.5" - yargs-parser: "npm:^21.1.1" - checksum: 10c0/ccd7e723e61ad5965fffbb791366db689572b80cca80e0f96aad968dfff4156cd7cd1ad18607afe1046d8241e6fb2d6c08bf7fa7bfb5eaec818735d8feac8f05 + yargs-parser: "npm:^20.2.2" + checksum: 10c0/b1dbfefa679848442454b60053a6c95d62f2d2e21dd28def92b647587f415969173c6e99a0f3bab4f1b67ee8283bf735ebe3544013f09491186ba9e8a9a2b651 languageName: node linkType: hard