diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..74fb9e0 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,9 @@ +root = true + +[*] +indent_style = space +indent_size = 2 +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true +end_of_line = lf diff --git a/Makefile b/Makefile index 53f515e..ea0f631 100644 --- a/Makefile +++ b/Makefile @@ -2,4 +2,6 @@ build-library: npx @svgr/cli --out-dir build src rm -rf asset/* npx tsup - npx vite build \ No newline at end of file + npx vite build + node ./scripts/exports.mjs + diff --git a/app/app.jsx b/app/app.jsx index 3e2bccc..ec3ca83 100644 --- a/app/app.jsx +++ b/app/app.jsx @@ -1,9 +1,11 @@ import React from "react"; import * as Kit from "@washingtonpost/wpds-ui-kit"; -import * as AllAssets from "./../build"; +import * as AllAssets from "./../asset"; import { Upload } from "./upload"; import { ErrorBoundary } from "./errors"; +console.log(AllAssets) + const Section = Kit.styled("section", { display: "grid", gridTemplateColumns: "repeat(auto-fit, minmax(300px, 1fr))", diff --git a/package-lock.json b/package-lock.json index c0cee01..e7895a2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -20,7 +20,7 @@ "@types/react": "18.2.39", "@types/react-dom": "18.2.17", "@vitejs/plugin-react": "^2.2.0", - "@washingtonpost/wpds-ui-kit": "^2.0.0-alpha.12", + "@washingtonpost/wpds-ui-kit": "^2.0.0", "glob": "^8.0.3", "react": "^18.2.0", "react-dom": "^18.2.0", @@ -1194,6 +1194,16 @@ "node": ">=14" } }, + "node_modules/@popperjs/core": { + "version": "2.11.8", + "resolved": "https://registry.npmjs.org/@popperjs/core/-/core-2.11.8.tgz", + "integrity": "sha512-P1st0aksCrn9sGZhp8GMYwBnQsbvAWsZAX44oXNNvLHGqAOcoVxmjZiohstwQ7SqKnbR47akdNi+uleWD8+g6A==", + "dev": true, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/popperjs" + } + }, "node_modules/@radix-ui/number": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/@radix-ui/number/-/number-1.0.1.tgz", @@ -2063,6 +2073,333 @@ "react": "^16.8 || ^17.0 || ^18.0" } }, + "node_modules/@radix-ui/react-navigation-menu": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@radix-ui/react-navigation-menu/-/react-navigation-menu-1.2.0.tgz", + "integrity": "sha512-OQ8tcwAOR0DhPlSY3e4VMXeHiol7la4PPdJWhhwJiJA+NLX0SaCaonOkRnI3gCDHoZ7Fo7bb/G6q25fRM2Y+3Q==", + "dev": true, + "dependencies": { + "@radix-ui/primitive": "1.1.0", + "@radix-ui/react-collection": "1.1.0", + "@radix-ui/react-compose-refs": "1.1.0", + "@radix-ui/react-context": "1.1.0", + "@radix-ui/react-direction": "1.1.0", + "@radix-ui/react-dismissable-layer": "1.1.0", + "@radix-ui/react-id": "1.1.0", + "@radix-ui/react-presence": "1.1.0", + "@radix-ui/react-primitive": "2.0.0", + "@radix-ui/react-use-callback-ref": "1.1.0", + "@radix-ui/react-use-controllable-state": "1.1.0", + "@radix-ui/react-use-layout-effect": "1.1.0", + "@radix-ui/react-use-previous": "1.1.0", + "@radix-ui/react-visually-hidden": "1.1.0" + }, + "peerDependencies": { + "@types/react": "*", + "@types/react-dom": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", + "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "@types/react-dom": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-navigation-menu/node_modules/@radix-ui/primitive": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@radix-ui/primitive/-/primitive-1.1.0.tgz", + "integrity": "sha512-4Z8dn6Upk0qk4P74xBhZ6Hd/w0mPEzOOLxy4xiPXOXqjF7jZS0VAKk7/x/H6FyY2zCkYJqePf1G5KmkmNJ4RBA==", + "dev": true + }, + "node_modules/@radix-ui/react-navigation-menu/node_modules/@radix-ui/react-collection": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@radix-ui/react-collection/-/react-collection-1.1.0.tgz", + "integrity": "sha512-GZsZslMJEyo1VKm5L1ZJY8tGDxZNPAoUeQUIbKeJfoi7Q4kmig5AsgLMYYuyYbfjd8fBmFORAIwYAkXMnXZgZw==", + "dev": true, + "dependencies": { + "@radix-ui/react-compose-refs": "1.1.0", + "@radix-ui/react-context": "1.1.0", + "@radix-ui/react-primitive": "2.0.0", + "@radix-ui/react-slot": "1.1.0" + }, + "peerDependencies": { + "@types/react": "*", + "@types/react-dom": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", + "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "@types/react-dom": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-navigation-menu/node_modules/@radix-ui/react-compose-refs": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@radix-ui/react-compose-refs/-/react-compose-refs-1.1.0.tgz", + "integrity": "sha512-b4inOtiaOnYf9KWyO3jAeeCG6FeyfY6ldiEPanbUjWd+xIk5wZeHa8yVwmrJ2vderhu/BQvzCrJI0lHd+wIiqw==", + "dev": true, + "peerDependencies": { + "@types/react": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-navigation-menu/node_modules/@radix-ui/react-context": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@radix-ui/react-context/-/react-context-1.1.0.tgz", + "integrity": "sha512-OKrckBy+sMEgYM/sMmqmErVn0kZqrHPJze+Ql3DzYsDDp0hl0L62nx/2122/Bvps1qz645jlcu2tD9lrRSdf8A==", + "dev": true, + "peerDependencies": { + "@types/react": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-navigation-menu/node_modules/@radix-ui/react-direction": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@radix-ui/react-direction/-/react-direction-1.1.0.tgz", + "integrity": "sha512-BUuBvgThEiAXh2DWu93XsT+a3aWrGqolGlqqw5VU1kG7p/ZH2cuDlM1sRLNnY3QcBS69UIz2mcKhMxDsdewhjg==", + "dev": true, + "peerDependencies": { + "@types/react": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-navigation-menu/node_modules/@radix-ui/react-dismissable-layer": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@radix-ui/react-dismissable-layer/-/react-dismissable-layer-1.1.0.tgz", + "integrity": "sha512-/UovfmmXGptwGcBQawLzvn2jOfM0t4z3/uKffoBlj724+n3FvBbZ7M0aaBOmkp6pqFYpO4yx8tSVJjx3Fl2jig==", + "dev": true, + "dependencies": { + "@radix-ui/primitive": "1.1.0", + "@radix-ui/react-compose-refs": "1.1.0", + "@radix-ui/react-primitive": "2.0.0", + "@radix-ui/react-use-callback-ref": "1.1.0", + "@radix-ui/react-use-escape-keydown": "1.1.0" + }, + "peerDependencies": { + "@types/react": "*", + "@types/react-dom": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", + "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "@types/react-dom": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-navigation-menu/node_modules/@radix-ui/react-id": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@radix-ui/react-id/-/react-id-1.1.0.tgz", + "integrity": "sha512-EJUrI8yYh7WOjNOqpoJaf1jlFIH2LvtgAl+YcFqNCa+4hj64ZXmPkAKOFs/ukjz3byN6bdb/AVUqHkI8/uWWMA==", + "dev": true, + "dependencies": { + "@radix-ui/react-use-layout-effect": "1.1.0" + }, + "peerDependencies": { + "@types/react": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-navigation-menu/node_modules/@radix-ui/react-presence": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@radix-ui/react-presence/-/react-presence-1.1.0.tgz", + "integrity": "sha512-Gq6wuRN/asf9H/E/VzdKoUtT8GC9PQc9z40/vEr0VCJ4u5XvvhWIrSsCB6vD2/cH7ugTdSfYq9fLJCcM00acrQ==", + "dev": true, + "dependencies": { + "@radix-ui/react-compose-refs": "1.1.0", + "@radix-ui/react-use-layout-effect": "1.1.0" + }, + "peerDependencies": { + "@types/react": "*", + "@types/react-dom": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", + "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "@types/react-dom": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-navigation-menu/node_modules/@radix-ui/react-primitive": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@radix-ui/react-primitive/-/react-primitive-2.0.0.tgz", + "integrity": "sha512-ZSpFm0/uHa8zTvKBDjLFWLo8dkr4MBsiDLz0g3gMUwqgLHz9rTaRRGYDgvZPtBJgYCBKXkS9fzmoySgr8CO6Cw==", + "dev": true, + "dependencies": { + "@radix-ui/react-slot": "1.1.0" + }, + "peerDependencies": { + "@types/react": "*", + "@types/react-dom": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", + "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "@types/react-dom": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-navigation-menu/node_modules/@radix-ui/react-slot": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@radix-ui/react-slot/-/react-slot-1.1.0.tgz", + "integrity": "sha512-FUCf5XMfmW4dtYl69pdS4DbxKy8nj4M7SafBgPllysxmdachynNflAdp/gCsnYWNDnge6tI9onzMp5ARYc1KNw==", + "dev": true, + "dependencies": { + "@radix-ui/react-compose-refs": "1.1.0" + }, + "peerDependencies": { + "@types/react": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-navigation-menu/node_modules/@radix-ui/react-use-callback-ref": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@radix-ui/react-use-callback-ref/-/react-use-callback-ref-1.1.0.tgz", + "integrity": "sha512-CasTfvsy+frcFkbXtSJ2Zu9JHpN8TYKxkgJGWbjiZhFivxaeW7rMeZt7QELGVLaYVfFMsKHjb7Ak0nMEe+2Vfw==", + "dev": true, + "peerDependencies": { + "@types/react": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-navigation-menu/node_modules/@radix-ui/react-use-controllable-state": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@radix-ui/react-use-controllable-state/-/react-use-controllable-state-1.1.0.tgz", + "integrity": "sha512-MtfMVJiSr2NjzS0Aa90NPTnvTSg6C/JLCV7ma0W6+OMV78vd8OyRpID+Ng9LxzsPbLeuBnWBA1Nq30AtBIDChw==", + "dev": true, + "dependencies": { + "@radix-ui/react-use-callback-ref": "1.1.0" + }, + "peerDependencies": { + "@types/react": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-navigation-menu/node_modules/@radix-ui/react-use-escape-keydown": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@radix-ui/react-use-escape-keydown/-/react-use-escape-keydown-1.1.0.tgz", + "integrity": "sha512-L7vwWlR1kTTQ3oh7g1O0CBF3YCyyTj8NmhLR+phShpyA50HCfBFKVJTpshm9PzLiKmehsrQzTYTpX9HvmC9rhw==", + "dev": true, + "dependencies": { + "@radix-ui/react-use-callback-ref": "1.1.0" + }, + "peerDependencies": { + "@types/react": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-navigation-menu/node_modules/@radix-ui/react-use-layout-effect": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@radix-ui/react-use-layout-effect/-/react-use-layout-effect-1.1.0.tgz", + "integrity": "sha512-+FPE0rOdziWSrH9athwI1R0HDVbWlEhd+FR+aSDk4uWGmSJ9Z54sdZVDQPZAinJhJXwfT+qnj969mCsT2gfm5w==", + "dev": true, + "peerDependencies": { + "@types/react": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-navigation-menu/node_modules/@radix-ui/react-use-previous": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@radix-ui/react-use-previous/-/react-use-previous-1.1.0.tgz", + "integrity": "sha512-Z/e78qg2YFnnXcW88A4JmTtm4ADckLno6F7OXotmkQfeuCVaKuYzqAATPhVzl3delXE7CxIV8shofPn3jPc5Og==", + "dev": true, + "peerDependencies": { + "@types/react": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-navigation-menu/node_modules/@radix-ui/react-visually-hidden": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@radix-ui/react-visually-hidden/-/react-visually-hidden-1.1.0.tgz", + "integrity": "sha512-N8MDZqtgCgG5S3aV60INAB475osJousYpZ4cTJ2cFbMpdHS5Y6loLTH8LPtkj2QN0x93J30HT/M3qJXM0+lyeQ==", + "dev": true, + "dependencies": { + "@radix-ui/react-primitive": "2.0.0" + }, + "peerDependencies": { + "@types/react": "*", + "@types/react-dom": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", + "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "@types/react-dom": { + "optional": true + } + } + }, "node_modules/@radix-ui/react-popover": { "version": "1.0.7", "resolved": "https://registry.npmjs.org/@radix-ui/react-popover/-/react-popover-1.0.7.tgz", @@ -2910,6 +3247,193 @@ } } }, + "node_modules/@radix-ui/react-switch": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@radix-ui/react-switch/-/react-switch-1.1.0.tgz", + "integrity": "sha512-OBzy5WAj641k0AOSpKQtreDMe+isX0MQJ1IVyF03ucdF3DunOnROVrjWs8zsXUxC3zfZ6JL9HFVCUlMghz9dJw==", + "dev": true, + "dependencies": { + "@radix-ui/primitive": "1.1.0", + "@radix-ui/react-compose-refs": "1.1.0", + "@radix-ui/react-context": "1.1.0", + "@radix-ui/react-primitive": "2.0.0", + "@radix-ui/react-use-controllable-state": "1.1.0", + "@radix-ui/react-use-previous": "1.1.0", + "@radix-ui/react-use-size": "1.1.0" + }, + "peerDependencies": { + "@types/react": "*", + "@types/react-dom": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", + "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "@types/react-dom": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-switch/node_modules/@radix-ui/primitive": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@radix-ui/primitive/-/primitive-1.1.0.tgz", + "integrity": "sha512-4Z8dn6Upk0qk4P74xBhZ6Hd/w0mPEzOOLxy4xiPXOXqjF7jZS0VAKk7/x/H6FyY2zCkYJqePf1G5KmkmNJ4RBA==", + "dev": true + }, + "node_modules/@radix-ui/react-switch/node_modules/@radix-ui/react-compose-refs": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@radix-ui/react-compose-refs/-/react-compose-refs-1.1.0.tgz", + "integrity": "sha512-b4inOtiaOnYf9KWyO3jAeeCG6FeyfY6ldiEPanbUjWd+xIk5wZeHa8yVwmrJ2vderhu/BQvzCrJI0lHd+wIiqw==", + "dev": true, + "peerDependencies": { + "@types/react": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-switch/node_modules/@radix-ui/react-context": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@radix-ui/react-context/-/react-context-1.1.0.tgz", + "integrity": "sha512-OKrckBy+sMEgYM/sMmqmErVn0kZqrHPJze+Ql3DzYsDDp0hl0L62nx/2122/Bvps1qz645jlcu2tD9lrRSdf8A==", + "dev": true, + "peerDependencies": { + "@types/react": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-switch/node_modules/@radix-ui/react-primitive": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@radix-ui/react-primitive/-/react-primitive-2.0.0.tgz", + "integrity": "sha512-ZSpFm0/uHa8zTvKBDjLFWLo8dkr4MBsiDLz0g3gMUwqgLHz9rTaRRGYDgvZPtBJgYCBKXkS9fzmoySgr8CO6Cw==", + "dev": true, + "dependencies": { + "@radix-ui/react-slot": "1.1.0" + }, + "peerDependencies": { + "@types/react": "*", + "@types/react-dom": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", + "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "@types/react-dom": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-switch/node_modules/@radix-ui/react-slot": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@radix-ui/react-slot/-/react-slot-1.1.0.tgz", + "integrity": "sha512-FUCf5XMfmW4dtYl69pdS4DbxKy8nj4M7SafBgPllysxmdachynNflAdp/gCsnYWNDnge6tI9onzMp5ARYc1KNw==", + "dev": true, + "dependencies": { + "@radix-ui/react-compose-refs": "1.1.0" + }, + "peerDependencies": { + "@types/react": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-switch/node_modules/@radix-ui/react-use-callback-ref": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@radix-ui/react-use-callback-ref/-/react-use-callback-ref-1.1.0.tgz", + "integrity": "sha512-CasTfvsy+frcFkbXtSJ2Zu9JHpN8TYKxkgJGWbjiZhFivxaeW7rMeZt7QELGVLaYVfFMsKHjb7Ak0nMEe+2Vfw==", + "dev": true, + "peerDependencies": { + "@types/react": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-switch/node_modules/@radix-ui/react-use-controllable-state": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@radix-ui/react-use-controllable-state/-/react-use-controllable-state-1.1.0.tgz", + "integrity": "sha512-MtfMVJiSr2NjzS0Aa90NPTnvTSg6C/JLCV7ma0W6+OMV78vd8OyRpID+Ng9LxzsPbLeuBnWBA1Nq30AtBIDChw==", + "dev": true, + "dependencies": { + "@radix-ui/react-use-callback-ref": "1.1.0" + }, + "peerDependencies": { + "@types/react": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-switch/node_modules/@radix-ui/react-use-layout-effect": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@radix-ui/react-use-layout-effect/-/react-use-layout-effect-1.1.0.tgz", + "integrity": "sha512-+FPE0rOdziWSrH9athwI1R0HDVbWlEhd+FR+aSDk4uWGmSJ9Z54sdZVDQPZAinJhJXwfT+qnj969mCsT2gfm5w==", + "dev": true, + "peerDependencies": { + "@types/react": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-switch/node_modules/@radix-ui/react-use-previous": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@radix-ui/react-use-previous/-/react-use-previous-1.1.0.tgz", + "integrity": "sha512-Z/e78qg2YFnnXcW88A4JmTtm4ADckLno6F7OXotmkQfeuCVaKuYzqAATPhVzl3delXE7CxIV8shofPn3jPc5Og==", + "dev": true, + "peerDependencies": { + "@types/react": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-switch/node_modules/@radix-ui/react-use-size": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@radix-ui/react-use-size/-/react-use-size-1.1.0.tgz", + "integrity": "sha512-XW3/vWuIXHa+2Uwcc2ABSfcCledmXhhQPlGbfcRXbiUQI5Icjcg19BGCZVKKInYbvUCut/ufbbLLPFC5cbb1hw==", + "dev": true, + "dependencies": { + "@radix-ui/react-use-layout-effect": "1.1.0" + }, + "peerDependencies": { + "@types/react": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, "node_modules/@radix-ui/react-tabs": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/@radix-ui/react-tabs/-/react-tabs-1.0.4.tgz", @@ -3604,9 +4128,9 @@ ] }, "node_modules/@stitches/react": { - "version": "1.2.8", - "resolved": "https://registry.npmjs.org/@stitches/react/-/react-1.2.8.tgz", - "integrity": "sha512-9g9dWI4gsSVe8bNLlb+lMkBYsnIKCZTmvqvDG+Avnn69XfmHZKiaMrx7cgTaddq7aTPPmXiTsbFcUy0xgI4+wA==", + "version": "1.3.1-1", + "resolved": "https://registry.npmjs.org/@stitches/react/-/react-1.3.1-1.tgz", + "integrity": "sha512-ErptbQehV25Da6LtZuM/51kGNK/UvlRY2da9IhhfXQ9h4bmf2f+lYFiJQ9j43O1kwYr6iYJIBRM47FEbsUWffw==", "dev": true, "peerDependencies": { "react": ">= 16.3.0" @@ -4404,9 +4928,9 @@ } }, "node_modules/@washingtonpost/wpds-assets": { - "version": "2.0.0-alpha.1", - "resolved": "https://registry.npmjs.org/@washingtonpost/wpds-assets/-/wpds-assets-2.0.0-alpha.1.tgz", - "integrity": "sha512-K/VF5hzIdI0qMqjRuAKfSnr/rN3mEp5yk62JiqisYEaFBCOp2SJJZyMzI6wBr1xA5mPqc/UJ2o0J7bccy/jJWQ==", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@washingtonpost/wpds-assets/-/wpds-assets-2.0.0.tgz", + "integrity": "sha512-ZYXOv5rEEq3A+BT3izaJdTTf/x1rMkRSKjVS6jwJ+YGVifp1fUPTB9fGPRxCxEnWTRjo0a+xXIe0tUK36YvjEw==", "dev": true, "dependencies": { "react": "^18.2.0", @@ -4418,11 +4942,12 @@ } }, "node_modules/@washingtonpost/wpds-ui-kit": { - "version": "2.0.0-alpha.12", - "resolved": "https://registry.npmjs.org/@washingtonpost/wpds-ui-kit/-/wpds-ui-kit-2.0.0-alpha.12.tgz", - "integrity": "sha512-W6EUxume0JCbbJlkTRDl6+WJCpu75YzxP7K2UXCoKlhDnh8PQwgBve1ECiHvNs8KdHJ56hDKHmHGct7hrcuuxQ==", + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/@washingtonpost/wpds-ui-kit/-/wpds-ui-kit-2.4.0.tgz", + "integrity": "sha512-+vPsr0/3cLu32YrScuTdJm0EVK7UxpSXzIqWGM/xy6AD9vWb+34iSxFDRSivuZbwfWR04iz91rMCxZSdDo3LgQ==", "dev": true, "dependencies": { + "@popperjs/core": "^2.11.6", "@radix-ui/react-accordion": "^1.1.2", "@radix-ui/react-avatar": "latest", "@radix-ui/react-checkbox": "^1.0.0", @@ -4430,22 +4955,25 @@ "@radix-ui/react-dropdown-menu": "2.0.3", "@radix-ui/react-focus-scope": "^1.0.0", "@radix-ui/react-label": "^1.0.0", + "@radix-ui/react-navigation-menu": "^1.0.0", "@radix-ui/react-popover": "^1.0.2", "@radix-ui/react-primitive": "^1.0.2", "@radix-ui/react-radio-group": "^1.0.0", "@radix-ui/react-select": "^1.2.2", "@radix-ui/react-separator": "^1.0.0", "@radix-ui/react-slot": "^1.0.0", + "@radix-ui/react-switch": "^1.0.0", "@radix-ui/react-tabs": "latest", "@radix-ui/react-tooltip": "^1.0.0", "@radix-ui/react-use-controllable-state": "^1.0.1", "@reach/combobox": "^0.18.0", "@reach/popover": "^0.18.0", - "@stitches/react": "^1.2.8", - "@washingtonpost/wpds-assets": "2.0.0-alpha.1", + "@stitches/react": "1.3.1-1", + "@washingtonpost/wpds-assets": "2.0.0", "match-sorter": "6.3.1", "nanoid": "^3.3.4", - "react": "^18.2.0", + "popper-max-size-modifier": "^0.2.0", + "react-popper": "^2.2.5", "react-swipeable": "^7.0.0", "react-transition-group": "^4.4.5" }, @@ -6190,6 +6718,16 @@ "node": ">= 6" } }, + "node_modules/popper-max-size-modifier": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/popper-max-size-modifier/-/popper-max-size-modifier-0.2.0.tgz", + "integrity": "sha512-UerPt9pZfTFnpSpIBVJrR3ibHMuU1k5K01AyNLfMUWCr4z1MFH+dsayPlAF9ZeYExa02HPiQn5OIMqUSVtJEbg==", + "deprecated": "We recommend switching to Floating UI which supports this modifier out of the box: https://floating-ui.com/docs/size", + "dev": true, + "peerDependencies": { + "@popperjs/core": "^2.2.0" + } + }, "node_modules/postcss": { "version": "8.4.38", "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.38.tgz", @@ -6333,12 +6871,33 @@ "react": "^18.2.0" } }, + "node_modules/react-fast-compare": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/react-fast-compare/-/react-fast-compare-3.2.2.tgz", + "integrity": "sha512-nsO+KSNgo1SbJqJEYRE9ERzo7YtYbou/OqjSQKxV7jcKox7+usiUVZOAC+XnDOABXggQTno0Y1CpVnuWEc1boQ==", + "dev": true + }, "node_modules/react-is": { "version": "16.13.1", "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz", "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==", "dev": true }, + "node_modules/react-popper": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/react-popper/-/react-popper-2.3.0.tgz", + "integrity": "sha512-e1hj8lL3uM+sgSR4Lxzn5h1GxBlpa4CQz0XLF8kx4MDrDRWY0Ena4c97PUeSX9i5W3UAfDP0z0FXCTQkoXUl3Q==", + "dev": true, + "dependencies": { + "react-fast-compare": "^3.0.1", + "warning": "^4.0.2" + }, + "peerDependencies": { + "@popperjs/core": "^2.0.0", + "react": "^16.8.0 || ^17 || ^18", + "react-dom": "^16.8.0 || ^17 || ^18" + } + }, "node_modules/react-refresh": { "version": "0.14.0", "resolved": "https://registry.npmjs.org/react-refresh/-/react-refresh-0.14.0.tgz", @@ -7307,6 +7866,15 @@ } } }, + "node_modules/warning": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/warning/-/warning-4.0.3.tgz", + "integrity": "sha512-rpJyN222KWIvHJ/F53XSZv0Zl/accqHR8et1kpaMTD/fLCRxtV8iX8czMzY7sVZupTI3zcUTg8eycS2kNF9l6w==", + "dev": true, + "dependencies": { + "loose-envify": "^1.0.0" + } + }, "node_modules/webidl-conversions": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", diff --git a/package.json b/package.json index 8fc84dc..7627687 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,7 @@ "@types/react": "18.2.39", "@types/react-dom": "18.2.17", "@vitejs/plugin-react": "^2.2.0", - "@washingtonpost/wpds-ui-kit": "^2.0.0-alpha.12", + "@washingtonpost/wpds-ui-kit": "^2.0.0", "glob": "^8.0.3", "react": "^18.2.0", "react-dom": "^18.2.0", @@ -61,6 +61,758 @@ ".": { "import": "./asset/index.mjs", "require": "./asset/index.js" + }, + "./asset/add": { + "import": "./asset/add.mjs", + "require": "./asset/add.js" + }, + "./asset/15-back": { + "import": "./asset/15-back.mjs", + "require": "./asset/15-back.js" + }, + "./asset/15-forward": { + "import": "./asset/15-forward.mjs", + "require": "./asset/15-forward.js" + }, + "./asset/Indeterminate": { + "import": "./asset/Indeterminate.mjs", + "require": "./asset/Indeterminate.js" + }, + "./asset/add-playlist": { + "import": "./asset/add-playlist.mjs", + "require": "./asset/add-playlist.js" + }, + "./asset/ai": { + "import": "./asset/ai.mjs", + "require": "./asset/ai.js" + }, + "./asset/amazon-music": { + "import": "./asset/amazon-music.mjs", + "require": "./asset/amazon-music.js" + }, + "./asset/amazon": { + "import": "./asset/amazon.mjs", + "require": "./asset/amazon.js" + }, + "./asset/apple-podcast": { + "import": "./asset/apple-podcast.mjs", + "require": "./asset/apple-podcast.js" + }, + "./asset/apple": { + "import": "./asset/apple.mjs", + "require": "./asset/apple.js" + }, + "./asset/archive": { + "import": "./asset/archive.mjs", + "require": "./asset/archive.js" + }, + "./asset/archives": { + "import": "./asset/archives.mjs", + "require": "./asset/archives.js" + }, + "./asset/arrow-down": { + "import": "./asset/arrow-down.mjs", + "require": "./asset/arrow-down.js" + }, + "./asset/arrow-left": { + "import": "./asset/arrow-left.mjs", + "require": "./asset/arrow-left.js" + }, + "./asset/arrow-right": { + "import": "./asset/arrow-right.mjs", + "require": "./asset/arrow-right.js" + }, + "./asset/arrow-up": { + "import": "./asset/arrow-up.mjs", + "require": "./asset/arrow-up.js" + }, + "./asset/article": { + "import": "./asset/article.mjs", + "require": "./asset/article.js" + }, + "./asset/bell": { + "import": "./asset/bell.mjs", + "require": "./asset/bell.js" + }, + "./asset/bookmark-solid": { + "import": "./asset/bookmark-solid.mjs", + "require": "./asset/bookmark-solid.js" + }, + "./asset/bookmark": { + "import": "./asset/bookmark.mjs", + "require": "./asset/bookmark.js" + }, + "./asset/building": { + "import": "./asset/building.mjs", + "require": "./asset/building.js" + }, + "./asset/by-the-way": { + "import": "./asset/by-the-way.mjs", + "require": "./asset/by-the-way.js" + }, + "./asset/calendar": { + "import": "./asset/calendar.mjs", + "require": "./asset/calendar.js" + }, + "./asset/camera": { + "import": "./asset/camera.mjs", + "require": "./asset/camera.js" + }, + "./asset/cancel-circle": { + "import": "./asset/cancel-circle.mjs", + "require": "./asset/cancel-circle.js" + }, + "./asset/cc": { + "import": "./asset/cc.mjs", + "require": "./asset/cc.js" + }, + "./asset/chart": { + "import": "./asset/chart.mjs", + "require": "./asset/chart.js" + }, + "./asset/check": { + "import": "./asset/check.mjs", + "require": "./asset/check.js" + }, + "./asset/chevron-down": { + "import": "./asset/chevron-down.mjs", + "require": "./asset/chevron-down.js" + }, + "./asset/chevron-left": { + "import": "./asset/chevron-left.mjs", + "require": "./asset/chevron-left.js" + }, + "./asset/chevron-right": { + "import": "./asset/chevron-right.mjs", + "require": "./asset/chevron-right.js" + }, + "./asset/chevron-up": { + "import": "./asset/chevron-up.mjs", + "require": "./asset/chevron-up.js" + }, + "./asset/clipboard": { + "import": "./asset/clipboard.mjs", + "require": "./asset/clipboard.js" + }, + "./asset/close": { + "import": "./asset/close.mjs", + "require": "./asset/close.js" + }, + "./asset/code": { + "import": "./asset/code.mjs", + "require": "./asset/code.js" + }, + "./asset/comment": { + "import": "./asset/comment.mjs", + "require": "./asset/comment.js" + }, + "./asset/comments": { + "import": "./asset/comments.mjs", + "require": "./asset/comments.js" + }, + "./asset/copy": { + "import": "./asset/copy.mjs", + "require": "./asset/copy.js" + }, + "./asset/course": { + "import": "./asset/course.mjs", + "require": "./asset/course.js" + }, + "./asset/crop": { + "import": "./asset/crop.mjs", + "require": "./asset/crop.js" + }, + "./asset/crossword": { + "import": "./asset/crossword.mjs", + "require": "./asset/crossword.js" + }, + "./asset/diamond": { + "import": "./asset/diamond.mjs", + "require": "./asset/diamond.js" + }, + "./asset/diet": { + "import": "./asset/diet.mjs", + "require": "./asset/diet.js" + }, + "./asset/digital-archives": { + "import": "./asset/digital-archives.mjs", + "require": "./asset/digital-archives.js" + }, + "./asset/dots-horizontal": { + "import": "./asset/dots-horizontal.mjs", + "require": "./asset/dots-horizontal.js" + }, + "./asset/dots-vertical": { + "import": "./asset/dots-vertical.mjs", + "require": "./asset/dots-vertical.js" + }, + "./asset/download": { + "import": "./asset/download.mjs", + "require": "./asset/download.js" + }, + "./asset/drag-handle-horizontal": { + "import": "./asset/drag-handle-horizontal.mjs", + "require": "./asset/drag-handle-horizontal.js" + }, + "./asset/drag-handle-vertical": { + "import": "./asset/drag-handle-vertical.mjs", + "require": "./asset/drag-handle-vertical.js" + }, + "./asset/ebook": { + "import": "./asset/ebook.mjs", + "require": "./asset/ebook.js" + }, + "./asset/edit": { + "import": "./asset/edit.mjs", + "require": "./asset/edit.js" + }, + "./asset/election_bluebackground": { + "import": "./asset/election_bluebackground.mjs", + "require": "./asset/election_bluebackground.js" + }, + "./asset/election_default": { + "import": "./asset/election_default.mjs", + "require": "./asset/election_default.js" + }, + "./asset/election_redbackground": { + "import": "./asset/election_redbackground.mjs", + "require": "./asset/election_redbackground.js" + }, + "./asset/elections": { + "import": "./asset/elections.mjs", + "require": "./asset/elections.js" + }, + "./asset/email-filled": { + "import": "./asset/email-filled.mjs", + "require": "./asset/email-filled.js" + }, + "./asset/email": { + "import": "./asset/email.mjs", + "require": "./asset/email.js" + }, + "./asset/error": { + "import": "./asset/error.mjs", + "require": "./asset/error.js" + }, + "./asset/external": { + "import": "./asset/external.mjs", + "require": "./asset/external.js" + }, + "./asset/face-negative-filled": { + "import": "./asset/face-negative-filled.mjs", + "require": "./asset/face-negative-filled.js" + }, + "./asset/face-negative": { + "import": "./asset/face-negative.mjs", + "require": "./asset/face-negative.js" + }, + "./asset/face-neutral-filled": { + "import": "./asset/face-neutral-filled.mjs", + "require": "./asset/face-neutral-filled.js" + }, + "./asset/face-neutral": { + "import": "./asset/face-neutral.mjs", + "require": "./asset/face-neutral.js" + }, + "./asset/face-positive-filled": { + "import": "./asset/face-positive-filled.mjs", + "require": "./asset/face-positive-filled.js" + }, + "./asset/face-positive": { + "import": "./asset/face-positive.mjs", + "require": "./asset/face-positive.js" + }, + "./asset/facebook-logo": { + "import": "./asset/facebook-logo.mjs", + "require": "./asset/facebook-logo.js" + }, + "./asset/facebook": { + "import": "./asset/facebook.mjs", + "require": "./asset/facebook.js" + }, + "./asset/filter": { + "import": "./asset/filter.mjs", + "require": "./asset/filter.js" + }, + "./asset/flag": { + "import": "./asset/flag.mjs", + "require": "./asset/flag.js" + }, + "./asset/for-you": { + "import": "./asset/for-you.mjs", + "require": "./asset/for-you.js" + }, + "./asset/forward": { + "import": "./asset/forward.mjs", + "require": "./asset/forward.js" + }, + "./asset/fullscreen-exit": { + "import": "./asset/fullscreen-exit.mjs", + "require": "./asset/fullscreen-exit.js" + }, + "./asset/fullscreen": { + "import": "./asset/fullscreen.mjs", + "require": "./asset/fullscreen.js" + }, + "./asset/geopin": { + "import": "./asset/geopin.mjs", + "require": "./asset/geopin.js" + }, + "./asset/gift": { + "import": "./asset/gift.mjs", + "require": "./asset/gift.js" + }, + "./asset/github": { + "import": "./asset/github.mjs", + "require": "./asset/github.js" + }, + "./asset/globe": { + "import": "./asset/globe.mjs", + "require": "./asset/globe.js" + }, + "./asset/google-podcast": { + "import": "./asset/google-podcast.mjs", + "require": "./asset/google-podcast.js" + }, + "./asset/google": { + "import": "./asset/google.mjs", + "require": "./asset/google.js" + }, + "./asset/grid-icon": { + "import": "./asset/grid-icon.mjs", + "require": "./asset/grid-icon.js" + }, + "./asset/headphones-outline": { + "import": "./asset/headphones-outline.mjs", + "require": "./asset/headphones-outline.js" + }, + "./asset/headphones": { + "import": "./asset/headphones.mjs", + "require": "./asset/headphones.js" + }, + "./asset/help": { + "import": "./asset/help.mjs", + "require": "./asset/help.js" + }, + "./asset/helpdesk-bw": { + "import": "./asset/helpdesk-bw.mjs", + "require": "./asset/helpdesk-bw.js" + }, + "./asset/helpdesk-primary": { + "import": "./asset/helpdesk-primary.mjs", + "require": "./asset/helpdesk-primary.js" + }, + "./asset/helpdesk-secondary": { + "import": "./asset/helpdesk-secondary.mjs", + "require": "./asset/helpdesk-secondary.js" + }, + "./asset/hide": { + "import": "./asset/hide.mjs", + "require": "./asset/hide.js" + }, + "./asset/home-filled": { + "import": "./asset/home-filled.mjs", + "require": "./asset/home-filled.js" + }, + "./asset/home": { + "import": "./asset/home.mjs", + "require": "./asset/home.js" + }, + "./asset/horoscopes": { + "import": "./asset/horoscopes.mjs", + "require": "./asset/horoscopes.js" + }, + "./asset/image": { + "import": "./asset/image.mjs", + "require": "./asset/image.js" + }, + "./asset/info": { + "import": "./asset/info.mjs", + "require": "./asset/info.js" + }, + "./asset/instagram": { + "import": "./asset/instagram.mjs", + "require": "./asset/instagram.js" + }, + "./asset/keyword": { + "import": "./asset/keyword.mjs", + "require": "./asset/keyword.js" + }, + "./asset/like-solid": { + "import": "./asset/like-solid.mjs", + "require": "./asset/like-solid.js" + }, + "./asset/like": { + "import": "./asset/like.mjs", + "require": "./asset/like.js" + }, + "./asset/link": { + "import": "./asset/link.mjs", + "require": "./asset/link.js" + }, + "./asset/linked-in": { + "import": "./asset/linked-in.mjs", + "require": "./asset/linked-in.js" + }, + "./asset/loading": { + "import": "./asset/loading.mjs", + "require": "./asset/loading.js" + }, + "./asset/lock": { + "import": "./asset/lock.mjs", + "require": "./asset/lock.js" + }, + "./asset/mahjongg": { + "import": "./asset/mahjongg.mjs", + "require": "./asset/mahjongg.js" + }, + "./asset/mastodon": { + "import": "./asset/mastodon.mjs", + "require": "./asset/mastodon.js" + }, + "./asset/megaphone": { + "import": "./asset/megaphone.mjs", + "require": "./asset/megaphone.js" + }, + "./asset/menu": { + "import": "./asset/menu.mjs", + "require": "./asset/menu.js" + }, + "./asset/mini-crossword": { + "import": "./asset/mini-crossword.mjs", + "require": "./asset/mini-crossword.js" + }, + "./asset/mixer-horizontal": { + "import": "./asset/mixer-horizontal.mjs", + "require": "./asset/mixer-horizontal.js" + }, + "./asset/mixer-vertical": { + "import": "./asset/mixer-vertical.mjs", + "require": "./asset/mixer-vertical.js" + }, + "./asset/moon": { + "import": "./asset/moon.mjs", + "require": "./asset/moon.js" + }, + "./asset/mute": { + "import": "./asset/mute.mjs", + "require": "./asset/mute.js" + }, + "./asset/newspaper-filled": { + "import": "./asset/newspaper-filled.mjs", + "require": "./asset/newspaper-filled.js" + }, + "./asset/newspaper": { + "import": "./asset/newspaper.mjs", + "require": "./asset/newspaper.js" + }, + "./asset/next": { + "import": "./asset/next.mjs", + "require": "./asset/next.js" + }, + "./asset/offer": { + "import": "./asset/offer.mjs", + "require": "./asset/offer.js" + }, + "./asset/olympics-dark": { + "import": "./asset/olympics-dark.mjs", + "require": "./asset/olympics-dark.js" + }, + "./asset/olympics": { + "import": "./asset/olympics.mjs", + "require": "./asset/olympics.js" + }, + "./asset/on-the-record": { + "import": "./asset/on-the-record.mjs", + "require": "./asset/on-the-record.js" + }, + "./asset/pause-circle": { + "import": "./asset/pause-circle.mjs", + "require": "./asset/pause-circle.js" + }, + "./asset/pause": { + "import": "./asset/pause.mjs", + "require": "./asset/pause.js" + }, + "./asset/people": { + "import": "./asset/people.mjs", + "require": "./asset/people.js" + }, + "./asset/phone": { + "import": "./asset/phone.mjs", + "require": "./asset/phone.js" + }, + "./asset/pin-filled": { + "import": "./asset/pin-filled.mjs", + "require": "./asset/pin-filled.js" + }, + "./asset/pin": { + "import": "./asset/pin.mjs", + "require": "./asset/pin.js" + }, + "./asset/pinterest": { + "import": "./asset/pinterest.mjs", + "require": "./asset/pinterest.js" + }, + "./asset/pip": { + "import": "./asset/pip.mjs", + "require": "./asset/pip.js" + }, + "./asset/play": { + "import": "./asset/play.mjs", + "require": "./asset/play.js" + }, + "./asset/playlist": { + "import": "./asset/playlist.mjs", + "require": "./asset/playlist.js" + }, + "./asset/prev": { + "import": "./asset/prev.mjs", + "require": "./asset/prev.js" + }, + "./asset/print": { + "import": "./asset/print.mjs", + "require": "./asset/print.js" + }, + "./asset/profile-filled": { + "import": "./asset/profile-filled.mjs", + "require": "./asset/profile-filled.js" + }, + "./asset/profile": { + "import": "./asset/profile.mjs", + "require": "./asset/profile.js" + }, + "./asset/publish": { + "import": "./asset/publish.mjs", + "require": "./asset/publish.js" + }, + "./asset/qatar-world-cup-bw": { + "import": "./asset/qatar-world-cup-bw.mjs", + "require": "./asset/qatar-world-cup-bw.js" + }, + "./asset/qatar-world-cup-reverse": { + "import": "./asset/qatar-world-cup-reverse.mjs", + "require": "./asset/qatar-world-cup-reverse.js" + }, + "./asset/qatar-world-cup": { + "import": "./asset/qatar-world-cup.mjs", + "require": "./asset/qatar-world-cup.js" + }, + "./asset/recipe": { + "import": "./asset/recipe.mjs", + "require": "./asset/recipe.js" + }, + "./asset/reddit": { + "import": "./asset/reddit.mjs", + "require": "./asset/reddit.js" + }, + "./asset/refresh": { + "import": "./asset/refresh.mjs", + "require": "./asset/refresh.js" + }, + "./asset/robots": { + "import": "./asset/robots.mjs", + "require": "./asset/robots.js" + }, + "./asset/rss-icon": { + "import": "./asset/rss-icon.mjs", + "require": "./asset/rss-icon.js" + }, + "./asset/rss": { + "import": "./asset/rss.mjs", + "require": "./asset/rss.js" + }, + "./asset/search-filled": { + "import": "./asset/search-filled.mjs", + "require": "./asset/search-filled.js" + }, + "./asset/search-nav": { + "import": "./asset/search-nav.mjs", + "require": "./asset/search-nav.js" + }, + "./asset/search": { + "import": "./asset/search.mjs", + "require": "./asset/search.js" + }, + "./asset/settings": { + "import": "./asset/settings.mjs", + "require": "./asset/settings.js" + }, + "./asset/share": { + "import": "./asset/share.mjs", + "require": "./asset/share.js" + }, + "./asset/show": { + "import": "./asset/show.mjs", + "require": "./asset/show.js" + }, + "./asset/shuffle": { + "import": "./asset/shuffle.mjs", + "require": "./asset/shuffle.js" + }, + "./asset/silence-alerts": { + "import": "./asset/silence-alerts.mjs", + "require": "./asset/silence-alerts.js" + }, + "./asset/solitaire": { + "import": "./asset/solitaire.mjs", + "require": "./asset/solitaire.js" + }, + "./asset/soundwave": { + "import": "./asset/soundwave.mjs", + "require": "./asset/soundwave.js" + }, + "./asset/spotify": { + "import": "./asset/spotify.mjs", + "require": "./asset/spotify.js" + }, + "./asset/star-full": { + "import": "./asset/star-full.mjs", + "require": "./asset/star-full.js" + }, + "./asset/star-half": { + "import": "./asset/star-half.mjs", + "require": "./asset/star-half.js" + }, + "./asset/star": { + "import": "./asset/star.mjs", + "require": "./asset/star.js" + }, + "./asset/stitcher": { + "import": "./asset/stitcher.mjs", + "require": "./asset/stitcher.js" + }, + "./asset/success": { + "import": "./asset/success.mjs", + "require": "./asset/success.js" + }, + "./asset/sudoku": { + "import": "./asset/sudoku.mjs", + "require": "./asset/sudoku.js" + }, + "./asset/sun": { + "import": "./asset/sun.mjs", + "require": "./asset/sun.js" + }, + "./asset/switch": { + "import": "./asset/switch.mjs", + "require": "./asset/switch.js" + }, + "./asset/sync": { + "import": "./asset/sync.mjs", + "require": "./asset/sync.js" + }, + "./asset/the-7-black": { + "import": "./asset/the-7-black.mjs", + "require": "./asset/the-7-black.js" + }, + "./asset/the-7-blue": { + "import": "./asset/the-7-blue.mjs", + "require": "./asset/the-7-blue.js" + }, + "./asset/the-7": { + "import": "./asset/the-7.mjs", + "require": "./asset/the-7.js" + }, + "./asset/threads": { + "import": "./asset/threads.mjs", + "require": "./asset/threads.js" + }, + "./asset/time": { + "import": "./asset/time.mjs", + "require": "./asset/time.js" + }, + "./asset/tooled-washington-post": { + "import": "./asset/tooled-washington-post.mjs", + "require": "./asset/tooled-washington-post.js" + }, + "./asset/trash": { + "import": "./asset/trash.mjs", + "require": "./asset/trash.js" + }, + "./asset/trending": { + "import": "./asset/trending.mjs", + "require": "./asset/trending.js" + }, + "./asset/trophy-filled": { + "import": "./asset/trophy-filled.mjs", + "require": "./asset/trophy-filled.js" + }, + "./asset/trophy": { + "import": "./asset/trophy.mjs", + "require": "./asset/trophy.js" + }, + "./asset/tv": { + "import": "./asset/tv.mjs", + "require": "./asset/tv.js" + }, + "./asset/twitch": { + "import": "./asset/twitch.mjs", + "require": "./asset/twitch.js" + }, + "./asset/twitter": { + "import": "./asset/twitter.mjs", + "require": "./asset/twitter.js" + }, + "./asset/unarchive": { + "import": "./asset/unarchive.mjs", + "require": "./asset/unarchive.js" + }, + "./asset/unlock": { + "import": "./asset/unlock.mjs", + "require": "./asset/unlock.js" + }, + "./asset/unpublish": { + "import": "./asset/unpublish.mjs", + "require": "./asset/unpublish.js" + }, + "./asset/video": { + "import": "./asset/video.mjs", + "require": "./asset/video.js" + }, + "./asset/volume": { + "import": "./asset/volume.mjs", + "require": "./asset/volume.js" + }, + "./asset/voraciously": { + "import": "./asset/voraciously.mjs", + "require": "./asset/voraciously.js" + }, + "./asset/warning": { + "import": "./asset/warning.mjs", + "require": "./asset/warning.js" + }, + "./asset/washington-post-magazine": { + "import": "./asset/washington-post-magazine.mjs", + "require": "./asset/washington-post-magazine.js" + }, + "./asset/washington-post-white": { + "import": "./asset/washington-post-white.mjs", + "require": "./asset/washington-post-white.js" + }, + "./asset/washington-post": { + "import": "./asset/washington-post.mjs", + "require": "./asset/washington-post.js" + }, + "./asset/wp-mark-white": { + "import": "./asset/wp-mark-white.mjs", + "require": "./asset/wp-mark-white.js" + }, + "./asset/wp-mark": { + "import": "./asset/wp-mark.mjs", + "require": "./asset/wp-mark.js" + }, + "./asset/wp": { + "import": "./asset/wp.mjs", + "require": "./asset/wp.js" + }, + "./asset/x": { + "import": "./asset/x.mjs", + "require": "./asset/x.js" + }, + "./asset/youtube": { + "import": "./asset/youtube.mjs", + "require": "./asset/youtube.js" } } } diff --git a/scripts/exports.mjs b/scripts/exports.mjs new file mode 100644 index 0000000..4113812 --- /dev/null +++ b/scripts/exports.mjs @@ -0,0 +1,25 @@ +import fs from "fs/promises"; +import packageJson from "../package.json" assert { type: "json" }; + +const files = await fs.readdir("src"); + +const newFiles = files.map((file) => { + let newName = file.replace(/\.[^/.]+$/, ""); + newName = `./asset/${newName}`; + + return { + [newName]: { + import: `${newName}.mjs`, + require: `${newName}.js`, + }, + }; +}); + +const data = JSON.stringify(Object.assign({}, ...newFiles), null, 2); + +packageJson.exports = { + ...packageJson.exports, + ...JSON.parse(data), +}; + +await fs.writeFile("package.json", JSON.stringify(packageJson, null, 2)); diff --git a/tsup.config.js b/tsup.config.js index ba169c0..494b4b7 100644 --- a/tsup.config.js +++ b/tsup.config.js @@ -6,9 +6,6 @@ export default defineConfig({ "!src/**/*.test.(ts|tsx)", "!src/**/*.stories.(ts|tsx)", ], - footer: { - js: "module.exports = module.exports.default;", - }, loader: { ".js": "jsx", }, diff --git a/tsup.config.json b/tsup.config.json deleted file mode 100644 index b98beeb..0000000 --- a/tsup.config.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "footer": { - "js": "module.exports = module.exports.default;" - }, - "output": { - "exports": "default" - } -}