@aristobyte-ui/dropdown 1.0.1 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +14 -13
- package/@types/index.d.ts +0 -4
- package/@types/styles/scss-modules.d.ts +0 -4
- package/assets/svg/i_Copy.svg +0 -1
- package/assets/svg/i_Error.svg +0 -1
- package/assets/svg/i_Info.svg +0 -1
- package/assets/svg/i_Success.svg +0 -1
- package/assets/svg/i_Warning.svg +0 -1
- package/components/Dropdown/Dropdown.module.scss +0 -41
- package/components/Dropdown/index.tsx +0 -175
- package/components/DropdownOption/DropdownOption.module.scss +0 -24
- package/components/DropdownOption/index.tsx +0 -33
- package/components/index.ts +0 -2
- package/eslint.config.mjs +0 -2
- package/index.ts +0 -1
- package/styles/_settings.scss +0 -179
- package/tsconfig.json +0 -11
- package/turbo/generators/config.ts +0 -30
- package/turbo/generators/templates/component.hbs +0 -8
- package/utils/Portal.tsx +0 -17
- package/utils/icons.ts +0 -13
- package/utils/index.ts +0 -2
- package/utils/ripple.tsx +0 -54
|
@@ -1 +1 @@
|
|
|
1
|
-
{"fileNames":["../../../node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/typescript/lib/lib.es2020.d.ts","../../../node_modules/typescript/lib/lib.es2021.d.ts","../../../node_modules/typescript/lib/lib.es2022.d.ts","../../../node_modules/typescript/lib/lib.dom.d.ts","../../../node_modules/typescript/lib/lib.dom.iterable.d.ts","../../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/typescript/lib/lib.es2016.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../../../node_modules/typescript/lib/lib.es2017.date.d.ts","../../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../node_modules/typescript/lib/lib.es2020.date.d.ts","../../../node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2020.string.d.ts","../../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../node_modules/typescript/lib/lib.es2020.number.d.ts","../../../node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../node_modules/typescript/lib/lib.es2021.string.d.ts","../../../node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../node_modules/typescript/lib/lib.es2022.array.d.ts","../../../node_modules/typescript/lib/lib.es2022.error.d.ts","../../../node_modules/typescript/lib/lib.es2022.intl.d.ts","../../../node_modules/typescript/lib/lib.es2022.object.d.ts","../../../node_modules/typescript/lib/lib.es2022.string.d.ts","../../../node_modules/typescript/lib/lib.es2022.regexp.d.ts","../../../node_modules/typescript/lib/lib.esnext.disposable.d.ts","../../../node_modules/typescript/lib/lib.esnext.float16.d.ts","../../../node_modules/typescript/lib/lib.decorators.d.ts","../../../node_modules/typescript/lib/lib.decorators.legacy.d.ts","../@types/index.d.ts","../@types/styles/scss-modules.d.ts","../../../node_modules/@types/react/global.d.ts","../../../node_modules/csstype/index.d.ts","../../../node_modules/@types/react/index.d.ts","../../../node_modules/@types/react/jsx-runtime.d.ts","../components/dropdownoption/index.tsx","../../../node_modules/motion-utils/dist/index.d.ts","../../../node_modules/motion-dom/dist/index.d.ts","../../../node_modules/framer-motion/dist/types.d-bq-qm38r.d.ts","../../../node_modules/framer-motion/dist/types/index.d.ts","../../button/dist/types/components/button/index.d.ts","../../button/dist/types/components/buttongroup/index.d.ts","../../button/dist/types/components/index.d.ts","../../button/dist/types/index.d.ts","../../../node_modules/@types/react-dom/index.d.ts","../utils/portal.tsx","../components/dropdown/index.tsx","../components/index.ts","../utils/icons.ts","../utils/ripple.tsx","../utils/index.ts","../index.ts","../node_modules/@types/node/compatibility/iterators.d.ts","../node_modules/@types/node/globals.typedarray.d.ts","../node_modules/@types/node/buffer.buffer.d.ts","../../../node_modules/buffer/index.d.ts","../node_modules/undici-types/utility.d.ts","../node_modules/undici-types/header.d.ts","../node_modules/undici-types/readable.d.ts","../node_modules/undici-types/fetch.d.ts","../node_modules/undici-types/formdata.d.ts","../node_modules/undici-types/connector.d.ts","../node_modules/undici-types/client-stats.d.ts","../node_modules/undici-types/client.d.ts","../node_modules/undici-types/errors.d.ts","../node_modules/undici-types/dispatcher.d.ts","../node_modules/undici-types/global-dispatcher.d.ts","../node_modules/undici-types/global-origin.d.ts","../node_modules/undici-types/pool-stats.d.ts","../node_modules/undici-types/pool.d.ts","../node_modules/undici-types/handlers.d.ts","../node_modules/undici-types/balanced-pool.d.ts","../node_modules/undici-types/h2c-client.d.ts","../node_modules/undici-types/agent.d.ts","../node_modules/undici-types/mock-interceptor.d.ts","../node_modules/undici-types/mock-call-history.d.ts","../node_modules/undici-types/mock-agent.d.ts","../node_modules/undici-types/mock-client.d.ts","../node_modules/undici-types/mock-pool.d.ts","../node_modules/undici-types/mock-errors.d.ts","../node_modules/undici-types/proxy-agent.d.ts","../node_modules/undici-types/env-http-proxy-agent.d.ts","../node_modules/undici-types/retry-handler.d.ts","../node_modules/undici-types/retry-agent.d.ts","../node_modules/undici-types/api.d.ts","../node_modules/undici-types/cache-interceptor.d.ts","../node_modules/undici-types/interceptors.d.ts","../node_modules/undici-types/util.d.ts","../node_modules/undici-types/cookies.d.ts","../node_modules/undici-types/patch.d.ts","../node_modules/undici-types/websocket.d.ts","../node_modules/undici-types/eventsource.d.ts","../node_modules/undici-types/diagnostics-channel.d.ts","../node_modules/undici-types/content-type.d.ts","../node_modules/undici-types/cache.d.ts","../node_modules/undici-types/index.d.ts","../node_modules/@types/node/globals.d.ts","../node_modules/@types/node/assert.d.ts","../node_modules/@types/node/assert/strict.d.ts","../node_modules/@types/node/async_hooks.d.ts","../node_modules/@types/node/buffer.d.ts","../node_modules/@types/node/child_process.d.ts","../node_modules/@types/node/cluster.d.ts","../node_modules/@types/node/console.d.ts","../node_modules/@types/node/constants.d.ts","../node_modules/@types/node/crypto.d.ts","../node_modules/@types/node/dgram.d.ts","../node_modules/@types/node/diagnostics_channel.d.ts","../node_modules/@types/node/dns.d.ts","../node_modules/@types/node/dns/promises.d.ts","../node_modules/@types/node/domain.d.ts","../node_modules/@types/node/dom-events.d.ts","../node_modules/@types/node/events.d.ts","../node_modules/@types/node/fs.d.ts","../node_modules/@types/node/fs/promises.d.ts","../node_modules/@types/node/http.d.ts","../node_modules/@types/node/http2.d.ts","../node_modules/@types/node/https.d.ts","../node_modules/@types/node/inspector.d.ts","../node_modules/@types/node/module.d.ts","../node_modules/@types/node/net.d.ts","../node_modules/@types/node/os.d.ts","../node_modules/@types/node/path.d.ts","../node_modules/@types/node/perf_hooks.d.ts","../node_modules/@types/node/process.d.ts","../node_modules/@types/node/punycode.d.ts","../node_modules/@types/node/querystring.d.ts","../node_modules/@types/node/readline.d.ts","../node_modules/@types/node/readline/promises.d.ts","../node_modules/@types/node/repl.d.ts","../node_modules/@types/node/sea.d.ts","../node_modules/@types/node/sqlite.d.ts","../node_modules/@types/node/stream.d.ts","../node_modules/@types/node/stream/promises.d.ts","../node_modules/@types/node/stream/consumers.d.ts","../node_modules/@types/node/stream/web.d.ts","../node_modules/@types/node/string_decoder.d.ts","../node_modules/@types/node/test.d.ts","../node_modules/@types/node/timers.d.ts","../node_modules/@types/node/timers/promises.d.ts","../node_modules/@types/node/tls.d.ts","../node_modules/@types/node/trace_events.d.ts","../node_modules/@types/node/tty.d.ts","../node_modules/@types/node/url.d.ts","../node_modules/@types/node/util.d.ts","../node_modules/@types/node/v8.d.ts","../node_modules/@types/node/vm.d.ts","../node_modules/@types/node/wasi.d.ts","../node_modules/@types/node/worker_threads.d.ts","../node_modules/@types/node/zlib.d.ts","../node_modules/@types/node/index.d.ts"],"fileIdsList":[[66,87,133],[87,133],[64,65,87,133],[66,67,69,70,87,133],[66,67,69,70,71,87,133],[69,87,133],[66,73,87,133],[73,74,87,133],[75,87,133],[63,66,67,68,72,76,78,87,133],[63,66,67,87,133],[67,68,79,87,133],[67,80,87,133],[87,130,133],[87,132,133],[133],[87,133,138,168],[87,133,134,139,145,153,165,176],[87,133,134,135,145,153],[87,133,136,177],[87,133,137,138,146,154],[87,133,138,165,173],[87,133,139,141,145,153],[87,132,133,140],[87,133,141,142],[87,133,143,145],[87,132,133,145],[87,133,145,146,147,165,176],[87,133,145,146,147,160,165,168],[87,128,133],[87,128,133,141,145,148,153,165,176],[87,133,145,146,148,149,153,165,173,176],[87,133,148,150,165,173,176],[85,86,87,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182],[87,133,145,151],[87,133,152,176],[87,133,141,145,153,165],[87,133,154],[87,133,155],[87,132,133,156],[87,130,131,132,133,134,135,136,137,138,139,140,141,142,143,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182],[87,133,158],[87,133,159],[87,133,145,160,161],[87,133,160,162,177,179],[87,133,145,165,166,168],[87,133,167,168],[87,133,165,166],[87,133,168],[87,133,169],[87,130,133,165,170],[87,133,145,171,172],[87,133,171,172],[87,133,138,153,165,173],[87,133,174],[87,133,153,175],[87,133,148,159,176],[87,133,138,177],[87,133,165,178],[87,133,152,179],[87,133,180],[87,133,145,147,156,165,168,176,178,179,181],[87,133,165,182],[87,95,98,101,102,133,176],[87,98,133,165,176],[87,98,102,133,176],[87,133,165],[87,92,133],[87,96,133],[87,94,95,98,133,176],[87,133,153,173],[87,133,183],[87,92,133,183],[87,94,98,133,153,176],[87,89,90,91,93,97,133,145,165,176],[87,98,106,133],[87,90,96,133],[87,98,122,123,133],[87,90,93,98,133,168,176,183],[87,98,133],[87,94,98,133,176],[87,89,133],[87,92,93,94,96,97,98,99,100,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,123,124,125,126,127,133],[87,98,115,118,133,141],[87,98,106,107,108,133],[87,96,98,107,109,133],[87,97,133],[87,90,92,98,133],[87,98,102,107,109,133],[87,102,133],[87,96,98,101,133,176],[87,90,94,98,106,133],[87,98,115,133],[87,92,98,122,133,168,181,183],[62,67,87,133],[67,81,82,87,133],[66,67,77,87,133],[67,87,133]],"fileInfos":[{"version":"69684132aeb9b5642cbcd9e22dff7818ff0ee1aa831728af0ecf97d3364d5546","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","impliedFormat":1},{"version":"ee7bad0c15b58988daa84371e0b89d313b762ab83cb5b31b8a2d1162e8eb41c2","impliedFormat":1},{"version":"092c2bfe125ce69dbb1223c85d68d4d2397d7d8411867b5cc03cec902c233763","affectsGlobalScope":true,"impliedFormat":1},{"version":"07f073f19d67f74d732b1adea08e1dc66b1b58d77cb5b43931dee3d798a2fd53","affectsGlobalScope":true,"impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"0559b1f683ac7505ae451f9a96ce4c3c92bdc71411651ca6ddb0e88baaaad6a3","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"936e80ad36a2ee83fc3caf008e7c4c5afe45b3cf3d5c24408f039c1d47bdc1df","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"fef8cfad2e2dc5f5b3d97a6f4f2e92848eb1b88e897bb7318cef0e2820bceaab","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"d6d7ae4d1f1f3772e2a3cde568ed08991a8ae34a080ff1151af28b7f798e22ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"52ada8e0b6e0482b728070b7639ee42e83a9b1c22d205992756fe020fd9f4a47","affectsGlobalScope":true,"impliedFormat":1},{"version":"3bdefe1bfd4d6dee0e26f928f93ccc128f1b64d5d501ff4a8cf3c6371200e5e6","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"639e512c0dfc3fad96a84caad71b8834d66329a1f28dc95e3946c9b58176c73a","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true,"impliedFormat":1},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true,"impliedFormat":1},{"version":"959d36cddf5e7d572a65045b876f2956c973a586da58e5d26cde519184fd9b8a","affectsGlobalScope":true,"impliedFormat":1},{"version":"965f36eae237dd74e6cca203a43e9ca801ce38824ead814728a2807b1910117d","affectsGlobalScope":true,"impliedFormat":1},{"version":"3925a6c820dcb1a06506c90b1577db1fdbf7705d65b62b99dce4be75c637e26b","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a3d63ef2b853447ec4f749d3f368ce642264246e02911fcb1590d8c161b8005","affectsGlobalScope":true,"impliedFormat":1},{"version":"b5ce7a470bc3628408429040c4e3a53a27755022a32fd05e2cb694e7015386c7","affectsGlobalScope":true,"impliedFormat":1},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true,"impliedFormat":1},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true,"impliedFormat":1},{"version":"b4b67b1a91182421f5df999988c690f14d813b9850b40acd06ed44691f6727ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"51ad4c928303041605b4d7ae32e0c1ee387d43a24cd6f1ebf4a2699e1076d4fa","affectsGlobalScope":true,"impliedFormat":1},{"version":"4245fee526a7d1754529d19227ecbf3be066ff79ebb6a380d78e41648f2f224d","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},"f90cd2c3a93cae3b0e20c31b54b0f5274b43bd614a90341142a533f66d2f0ba5","0a044244375c700dc399984f7f8adf4382f75eeb7e3c4edfa3831c9106f16954",{"version":"36a2e4c9a67439aca5f91bb304611d5ae6e20d420503e96c230cf8fcdc948d94","affectsGlobalScope":true,"impliedFormat":1},{"version":"8a8eb4ebffd85e589a1cc7c178e291626c359543403d58c9cd22b81fab5b1fb9","impliedFormat":1},{"version":"af5eabf1ad1627f116f661b0232c0fa57e7918123c2d191776f77e84c7e71f44","impliedFormat":1},{"version":"42c169fb8c2d42f4f668c624a9a11e719d5d07dacbebb63cbcf7ef365b0a75b3","impliedFormat":1},{"version":"ef04245ca6cd9eb9e45326788a232b3fb2322028a1ecba4c9c415eddcf36d074","signature":"80cb3605af4584ac4f4a6d95b5ed89a7dcdf1326a77d5441bfcacbcab2cc3d85"},{"version":"37c7961117708394f64361ade31a41f96cef7f2a6606300821c72438dd4abda3","impliedFormat":1},{"version":"6292fefd27396672e205daad2f32d16f456249a8f0ec2f3368f1318918ef2204","affectsGlobalScope":true,"impliedFormat":1},{"version":"a4553f8b822eb81601e9ff242bde19eebc440201e687161598c267892ee84bdf","affectsGlobalScope":true,"impliedFormat":1},{"version":"724dea86a503f9bdf755f5c628cea9de4a63aafdf0f6ca25db5e0172ddc0d883","impliedFormat":1},"05685202f07d6dc7deb9447d8a9118c78a40281cc47edf39de19aa9bb9cec850","be238250dfb189e71fcdc878e5749ea7c86a120fd9d4095635abcb727d396ce7","3e5e7eab334b2fbfc1284ed1e68525ae932c90982d51f49c1b3fbf5653d7da46","8f6dd5ac45ed5e2570fa42c3a0515016cd0f082d13acfdb27798897853f3862c",{"version":"115b2ad73fa7d175cd71a5873d984c21593b2a022f1a2036cc39d9f53629e5dc","impliedFormat":1},{"version":"6d649584dae5c95852da35d3b7295f4d0442cae3867db2584e70ac0869bd87aa","signature":"0459cf6187aa67e43ca9c93881fb83737ea2dba7f20aba0537336be7c57db0e5"},{"version":"48d1a28f9064eeadc6609bcafb65a9ca2f9933a9ebfbacdd4d61ffe3520396a8","signature":"99159cf91fe6f58d48edc8f5177ce180fc89e45e51c6ce6a9f1d9ecc217e9b43"},"92cdcca82aca9e3d0122bd2367b9452be22dcbefda20ae0bf2af0a89e5372a28",{"version":"0d1f10be352ac65dad8e682440d07e6f96bc2313468948e2b86960d120ee86d0","signature":"8c902282bd82c87c4ff39f4d2ab00d5c3989988e4933c9dfcb83af82e85b5dd1"},{"version":"2131dccd3974363f85b1c37b335ec39ac4701dc8c55b874907e9ce5586131cc9","signature":"0b2c3364cb5720a80e2b6f58ba739eae0cd0ea5d16506e789077a9ed61ba6273"},"475ca14b7c6667df6bebedd23ea900b774489e4a54075b50c0f7d499bff730c8","0ff9ba8bc2245d4d6e7b25641ae6254f65409729ee50e8f107519174ce8d4050",{"version":"d153a11543fd884b596587ccd97aebbeed950b26933ee000f94009f1ab142848","affectsGlobalScope":true,"impliedFormat":1},{"version":"c0671b50bb99cc7ad46e9c68fa0e7f15ba4bc898b59c31a17ea4611fab5095da","affectsGlobalScope":true,"impliedFormat":1},{"version":"d802f0e6b5188646d307f070d83512e8eb94651858de8a82d1e47f60fb6da4e2","affectsGlobalScope":true,"impliedFormat":1},{"version":"4967529644e391115ca5592184d4b63980569adf60ee685f968fd59ab1557188","impliedFormat":1},{"version":"cdcf9ea426ad970f96ac930cd176d5c69c6c24eebd9fc580e1572d6c6a88f62c","impliedFormat":1},{"version":"23cd712e2ce083d68afe69224587438e5914b457b8acf87073c22494d706a3d0","impliedFormat":1},{"version":"487b694c3de27ddf4ad107d4007ad304d29effccf9800c8ae23c2093638d906a","impliedFormat":1},{"version":"e525f9e67f5ddba7b5548430211cae2479070b70ef1fd93550c96c10529457bd","impliedFormat":1},{"version":"ccf4552357ce3c159ef75f0f0114e80401702228f1898bdc9402214c9499e8c0","impliedFormat":1},{"version":"c6fd2c5a395f2432786c9cb8deb870b9b0e8ff7e22c029954fabdd692bff6195","impliedFormat":1},{"version":"68834d631c8838c715f225509cfc3927913b9cc7a4870460b5b60c8dbdb99baf","impliedFormat":1},{"version":"4bc0794175abedf989547e628949888c1085b1efcd93fc482bccd77ee27f8b7c","impliedFormat":1},{"version":"3c8e93af4d6ce21eb4c8d005ad6dc02e7b5e6781f429d52a35290210f495a674","impliedFormat":1},{"version":"2c9875466123715464539bfd69bcaccb8ff6f3e217809428e0d7bd6323416d01","impliedFormat":1},{"version":"ea6bc8de8b59f90a7a3960005fd01988f98fd0784e14bc6922dde2e93305ec7d","impliedFormat":1},{"version":"36107995674b29284a115e21a0618c4c2751b32a8766dd4cb3ba740308b16d59","impliedFormat":1},{"version":"914a0ae30d96d71915fc519ccb4efbf2b62c0ddfb3a3fc6129151076bc01dc60","impliedFormat":1},{"version":"33e981bf6376e939f99bd7f89abec757c64897d33c005036b9a10d9587d80187","impliedFormat":1},{"version":"6c8e442ba33b07892169a14f7757321e49ab0f1032d676d321a1fdab8a67d40c","impliedFormat":1},{"version":"b41767d372275c154c7ea6c9d5449d9a741b8ce080f640155cc88ba1763e35b3","impliedFormat":1},{"version":"1cd673d367293fc5cb31cd7bf03d598eb368e4f31f39cf2b908abbaf120ab85a","impliedFormat":1},{"version":"af13e99445f37022c730bfcafcdc1761e9382ce1ea02afb678e3130b01ce5676","impliedFormat":1},{"version":"3825bf209f1662dfd039010a27747b73d0ef379f79970b1d05601ec8e8a4249f","impliedFormat":1},{"version":"0b6e25234b4eec6ed96ab138d96eb70b135690d7dd01f3dd8a8ab291c35a683a","impliedFormat":1},{"version":"9666f2f84b985b62400d2e5ab0adae9ff44de9b2a34803c2c5bd3c8325b17dc0","impliedFormat":1},{"version":"da52342062e70c77213e45107921100ba9f9b3a30dd019444cf349e5fb3470c4","impliedFormat":1},{"version":"e9ace91946385d29192766bf783b8460c7dbcbfc63284aa3c9cae6de5155c8bc","impliedFormat":1},{"version":"40b463c6766ca1b689bfcc46d26b5e295954f32ad43e37ee6953c0a677e4ae2b","impliedFormat":1},{"version":"249b9cab7f5d628b71308c7d9bb0a808b50b091e640ba3ed6e2d0516f4a8d91d","impliedFormat":1},{"version":"1e30c045732e7db8f7a82cf90b516ebe693d2f499ce2250a977ec0d12e44a529","impliedFormat":1},{"version":"84b736594d8760f43400202859cda55607663090a43445a078963031d47e25e7","impliedFormat":1},{"version":"499e5b055a5aba1e1998f7311a6c441a369831c70905cc565ceac93c28083d53","impliedFormat":1},{"version":"54c3e2371e3d016469ad959697fd257e5621e16296fa67082c2575d0bf8eced0","impliedFormat":1},{"version":"beb8233b2c220cfa0feea31fbe9218d89fa02faa81ef744be8dce5acb89bb1fd","impliedFormat":1},{"version":"78b29846349d4dfdd88bd6650cc5d2baaa67f2e89dc8a80c8e26ef7995386583","impliedFormat":1},{"version":"5d0375ca7310efb77e3ef18d068d53784faf62705e0ad04569597ae0e755c401","impliedFormat":1},{"version":"59af37caec41ecf7b2e76059c9672a49e682c1a2aa6f9d7dc78878f53aa284d6","impliedFormat":1},{"version":"addf417b9eb3f938fddf8d81e96393a165e4be0d4a8b6402292f9c634b1cb00d","impliedFormat":1},{"version":"e38d4fdf79e1eadd92ed7844c331dbaa40f29f21541cfee4e1acff4db09cda33","impliedFormat":1},{"version":"8bd86b8e8f6a6aa6c49b71e14c4ffe1211a0e97c80f08d2c8cc98838006e4b88","impliedFormat":1},{"version":"7c10a32ae6f3962672e6869ee2c794e8055d8225ef35c91c0228e354b4e5d2d3","impliedFormat":1},{"version":"2e85db9e6fd73cfa3d7f28e0ab6b55417ea18931423bd47b409a96e4a169e8e6","impliedFormat":1},{"version":"c46e079fe54c76f95c67fb89081b3e399da2c7d109e7dca8e4b58d83e332e605","impliedFormat":1},{"version":"99f569b42ea7e7c5fe404b2848c0893f3e1a56e0547c1cd0f74d5dbb9a9de27e","impliedFormat":1},{"version":"f4b4faedc57701ae727d78ba4a83e466a6e3bdcbe40efbf913b17e860642897c","affectsGlobalScope":true,"impliedFormat":1},{"version":"bbcfd9cd76d92c3ee70475270156755346c9086391e1b9cb643d072e0cf576b8","impliedFormat":1},{"version":"7394959e5a741b185456e1ef5d64599c36c60a323207450991e7a42e08911419","impliedFormat":1},{"version":"72c1f5e0a28e473026074817561d1bc9647909cf253c8d56c41d1df8d95b85f7","impliedFormat":1},{"version":"003ec918ec442c3a4db2c36dc0c9c766977ea1c8bcc1ca7c2085868727c3d3f6","affectsGlobalScope":true,"impliedFormat":1},{"version":"a6310806c6aa3154773976dd083a15659d294700d9ad8f6b8a2e10c3dc461ff1","impliedFormat":1},{"version":"c4e8e8031808b158cfb5ac5c4b38d4a26659aec4b57b6a7e2ba0a141439c208c","impliedFormat":1},{"version":"2c91d8366ff2506296191c26fd97cc1990bab3ee22576275d28b654a21261a44","affectsGlobalScope":true,"impliedFormat":1},{"version":"5524481e56c48ff486f42926778c0a3cce1cc85dc46683b92b1271865bcf015a","impliedFormat":1},{"version":"db39d9a16e4ddcd8a8f2b7b3292b362cc5392f92ad7ccd76f00bccf6838ac7de","affectsGlobalScope":true,"impliedFormat":1},{"version":"289e9894a4668c61b5ffed09e196c1f0c2f87ca81efcaebdf6357cfb198dac14","impliedFormat":1},{"version":"25a1105595236f09f5bce42398be9f9ededc8d538c258579ab662d509aa3b98e","impliedFormat":1},{"version":"5078cd62dbdf91ae8b1dc90b1384dec71a9c0932d62bdafb1a811d2a8e26bef2","impliedFormat":1},{"version":"a2e2bbde231b65c53c764c12313897ffdfb6c49183dd31823ee2405f2f7b5378","impliedFormat":1},{"version":"ad1cc0ed328f3f708771272021be61ab146b32ecf2b78f3224959ff1e2cd2a5c","impliedFormat":1},{"version":"71450bbc2d82821d24ca05699a533e72758964e9852062c53b30f31c36978ab8","affectsGlobalScope":true,"impliedFormat":1},{"version":"62f572306e0b173cc5dfc4c583471151f16ef3779cf27ab96922c92ec82a3bc8","affectsGlobalScope":true,"impliedFormat":1},{"version":"622b67a408a881e15ab38043547563b9d29ca4b46f5b7a7e4a4fc3123d25d19f","impliedFormat":1},{"version":"2617f1d06b32c7b4dfd0a5c8bc7b5de69368ec56788c90f3d7f3e3d2f39f0253","impliedFormat":1},{"version":"bd8b644c5861b94926687618ec2c9e60ad054d334d6b7eb4517f23f53cb11f91","impliedFormat":1},{"version":"bcbabfaca3f6b8a76cb2739e57710daf70ab5c9479ab70f5351c9b4932abf6bd","impliedFormat":1},{"version":"77fced47f495f4ff29bb49c52c605c5e73cd9b47d50080133783032769a9d8a6","impliedFormat":1},{"version":"966dd0793b220e22344c944e0f15afafdc9b0c9201b6444ea0197cd176b96893","impliedFormat":1},{"version":"c54f0b30a787b3df16280f4675bd3d9d17bf983ae3cd40087409476bc50b922d","affectsGlobalScope":true,"impliedFormat":1},{"version":"0f5cda0282e1d18198e2887387eb2f026372ebc4e11c4e4516fef8a19ee4d514","impliedFormat":1},{"version":"e99b0e71f07128fc32583e88ccd509a1aaa9524c290efb2f48c22f9bf8ba83b1","impliedFormat":1},{"version":"76957a6d92b94b9e2852cf527fea32ad2dc0ef50f67fe2b14bd027c9ceef2d86","impliedFormat":1},{"version":"5e9f8c1e042b0f598a9be018fc8c3cb670fe579e9f2e18e3388b63327544fe16","affectsGlobalScope":true,"impliedFormat":1},{"version":"a8a99a5e6ed33c4a951b67cc1fd5b64fd6ad719f5747845c165ca12f6c21ba16","affectsGlobalScope":true,"impliedFormat":1},{"version":"a58a15da4c5ba3df60c910a043281256fa52d36a0fcdef9b9100c646282e88dd","impliedFormat":1},{"version":"b36beffbf8acdc3ebc58c8bb4b75574b31a2169869c70fc03f82895b93950a12","impliedFormat":1},{"version":"de263f0089aefbfd73c89562fb7254a7468b1f33b61839aafc3f035d60766cb4","impliedFormat":1},{"version":"70b57b5529051497e9f6482b76d91c0dcbb103d9ead8a0549f5bab8f65e5d031","impliedFormat":1},{"version":"8c81fd4a110490c43d7c578e8c6f69b3af01717189196899a6a44f93daa57a3a","impliedFormat":1},{"version":"1013eb2e2547ad8c100aca52ef9df8c3f209edee32bb387121bb3227f7c00088","impliedFormat":1},{"version":"e07c573ac1971ea89e2c56ff5fd096f6f7bba2e6dbcd5681d39257c8d954d4a8","impliedFormat":1},{"version":"363eedb495912790e867da6ff96e81bf792c8cfe386321e8163b71823a35719a","impliedFormat":1},{"version":"37ba7b45141a45ce6e80e66f2a96c8a5ab1bcef0fc2d0f56bb58df96ec67e972","impliedFormat":1},{"version":"125d792ec6c0c0f657d758055c494301cc5fdb327d9d9d5960b3f129aff76093","impliedFormat":1},{"version":"dba28a419aec76ed864ef43e5f577a5c99a010c32e5949fe4e17a4d57c58dd11","affectsGlobalScope":true,"impliedFormat":1},{"version":"ea713aa14a670b1ea0fbaaca4fd204e645f71ca7653a834a8ec07ee889c45de6","impliedFormat":1},{"version":"07199a85560f473f37363d8f1300fac361cda2e954caf8a40221f83a6bfa7ade","impliedFormat":1},{"version":"9705cd157ffbb91c5cab48bdd2de5a437a372e63f870f8a8472e72ff634d47c1","affectsGlobalScope":true,"impliedFormat":1},{"version":"ae86f30d5d10e4f75ce8dcb6e1bd3a12ecec3d071a21e8f462c5c85c678efb41","impliedFormat":1},{"version":"982efeb2573605d4e6d5df4dc7e40846bda8b9e678e058fc99522ab6165c479e","impliedFormat":1},{"version":"e03460fe72b259f6d25ad029f085e4bedc3f90477da4401d8fbc1efa9793230e","impliedFormat":1},{"version":"4286a3a6619514fca656089aee160bb6f2e77f4dd53dc5a96b26a0b4fc778055","impliedFormat":1},{"version":"c9231cf03fd7e8cfd78307eecbd24ff3f0fa55d0f6d1108c4003c124d168adc4","affectsGlobalScope":true,"impliedFormat":1},{"version":"2d5d50cd0667d9710d4d2f6e077cc4e0f9dc75e106cccaea59999b36873c5a0d","affectsGlobalScope":true,"impliedFormat":1},{"version":"784490137935e1e38c49b9289110e74a1622baf8a8907888dcbe9e476d7c5e44","impliedFormat":1},{"version":"42180b657831d1b8fead051698618b31da623fb71ff37f002cb9d932cfa775f1","impliedFormat":1},{"version":"4f98d6fb4fe7cbeaa04635c6eaa119d966285d4d39f0eb55b2654187b0b27446","impliedFormat":1},{"version":"f8529fe0645fd9af7441191a4961497cc7638f75a777a56248eac6a079bb275d","affectsGlobalScope":true,"impliedFormat":1},{"version":"4445f6ce6289c5b2220398138da23752fd84152c5c95bb8b58dedefc1758c036","impliedFormat":1},{"version":"a51f786b9f3c297668f8f322a6c58f85d84948ef69ade32069d5d63ec917221c","impliedFormat":1}],"root":[62,63,68,[78,84]],"options":{"allowSyntheticDefaultImports":true,"declaration":true,"declarationDir":"./types","declarationMap":true,"emitDeclarationOnly":false,"esModuleInterop":true,"jsx":4,"module":99,"noUncheckedIndexedAccess":true,"outDir":"./","skipLibCheck":true,"strict":true,"target":2},"referencedMap":[[77,1],[64,2],[66,3],[67,1],[88,2],[65,2],[71,4],[72,5],[70,6],[69,2],[60,2],[61,2],[10,2],[11,2],[13,2],[12,2],[2,2],[14,2],[15,2],[16,2],[17,2],[18,2],[19,2],[20,2],[21,2],[3,2],[22,2],[23,2],[4,2],[24,2],[28,2],[25,2],[26,2],[27,2],[29,2],[30,2],[31,2],[5,2],[32,2],[33,2],[34,2],[35,2],[6,2],[39,2],[36,2],[37,2],[38,2],[40,2],[7,2],[41,2],[46,2],[47,2],[42,2],[43,2],[44,2],[45,2],[8,2],[51,2],[48,2],[49,2],[50,2],[52,2],[9,2],[53,2],[54,2],[55,2],[57,2],[56,2],[1,2],[58,2],[59,2],[73,1],[74,7],[75,8],[76,9],[62,2],[63,2],[79,10],[68,11],[80,12],[84,13],[130,14],[131,14],[132,15],[87,16],[133,17],[134,18],[135,19],[85,2],[136,20],[137,21],[138,22],[139,23],[140,24],[141,25],[142,25],[144,2],[143,26],[145,27],[146,28],[147,29],[129,30],[86,2],[148,31],[149,32],[150,33],[183,34],[151,35],[152,36],[153,37],[154,38],[155,39],[156,40],[157,41],[158,42],[159,43],[160,44],[161,44],[162,45],[163,2],[164,2],[165,46],[167,47],[166,48],[168,49],[169,50],[170,51],[171,52],[172,53],[173,54],[174,55],[175,56],[176,57],[177,58],[178,59],[179,60],[180,61],[181,62],[182,63],[106,64],[117,65],[104,66],[118,67],[127,68],[95,69],[96,70],[94,71],[126,72],[121,73],[125,74],[98,75],[114,76],[97,77],[124,78],[92,79],[93,73],[99,80],[100,2],[105,81],[103,80],[90,82],[128,83],[119,84],[109,85],[108,80],[110,86],[112,87],[107,88],[111,89],[122,72],[101,90],[102,91],[113,92],[91,67],[116,93],[115,80],[120,2],[89,2],[123,94],[81,95],[83,96],[78,97],[82,98]],"version":"5.8.3"}
|
|
1
|
+
{"fileNames":["../node_modules/typescript/lib/lib.es5.d.ts","../node_modules/typescript/lib/lib.es2015.d.ts","../node_modules/typescript/lib/lib.es2016.d.ts","../node_modules/typescript/lib/lib.es2017.d.ts","../node_modules/typescript/lib/lib.es2018.d.ts","../node_modules/typescript/lib/lib.es2019.d.ts","../node_modules/typescript/lib/lib.es2020.d.ts","../node_modules/typescript/lib/lib.es2021.d.ts","../node_modules/typescript/lib/lib.es2022.d.ts","../node_modules/typescript/lib/lib.dom.d.ts","../node_modules/typescript/lib/lib.dom.iterable.d.ts","../node_modules/typescript/lib/lib.es2015.core.d.ts","../node_modules/typescript/lib/lib.es2015.collection.d.ts","../node_modules/typescript/lib/lib.es2015.generator.d.ts","../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../node_modules/typescript/lib/lib.es2015.promise.d.ts","../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../node_modules/typescript/lib/lib.es2016.intl.d.ts","../node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../node_modules/typescript/lib/lib.es2017.date.d.ts","../node_modules/typescript/lib/lib.es2017.object.d.ts","../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2017.string.d.ts","../node_modules/typescript/lib/lib.es2017.intl.d.ts","../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../node_modules/typescript/lib/lib.es2018.intl.d.ts","../node_modules/typescript/lib/lib.es2018.promise.d.ts","../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../node_modules/typescript/lib/lib.es2019.array.d.ts","../node_modules/typescript/lib/lib.es2019.object.d.ts","../node_modules/typescript/lib/lib.es2019.string.d.ts","../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../node_modules/typescript/lib/lib.es2019.intl.d.ts","../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../node_modules/typescript/lib/lib.es2020.date.d.ts","../node_modules/typescript/lib/lib.es2020.promise.d.ts","../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2020.string.d.ts","../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2020.intl.d.ts","../node_modules/typescript/lib/lib.es2020.number.d.ts","../node_modules/typescript/lib/lib.es2021.promise.d.ts","../node_modules/typescript/lib/lib.es2021.string.d.ts","../node_modules/typescript/lib/lib.es2021.weakref.d.ts","../node_modules/typescript/lib/lib.es2021.intl.d.ts","../node_modules/typescript/lib/lib.es2022.array.d.ts","../node_modules/typescript/lib/lib.es2022.error.d.ts","../node_modules/typescript/lib/lib.es2022.intl.d.ts","../node_modules/typescript/lib/lib.es2022.object.d.ts","../node_modules/typescript/lib/lib.es2022.string.d.ts","../node_modules/typescript/lib/lib.es2022.regexp.d.ts","../node_modules/typescript/lib/lib.decorators.d.ts","../node_modules/typescript/lib/lib.decorators.legacy.d.ts","../@types/index.d.ts","../../../node_modules/@types/react/global.d.ts","../../../node_modules/csstype/index.d.ts","../../../node_modules/@types/react/index.d.ts","../../../node_modules/@types/react/jsx-runtime.d.ts","../components/dropdownoption/index.tsx","../../../node_modules/motion-utils/dist/index.d.ts","../../../node_modules/motion-dom/dist/index.d.ts","../../../node_modules/framer-motion/dist/types.d-cjd591yu.d.ts","../../../node_modules/framer-motion/dist/types/index.d.ts","../../button/dist/types/components/button/index.d.ts","../../button/dist/types/components/buttongroup/index.d.ts","../../button/dist/types/components/index.d.ts","../../button/dist/types/index.d.ts","../../../node_modules/@types/react-dom/index.d.ts","../utils/portal.tsx","../components/dropdown/index.tsx","../components/index.ts","../utils/icons.ts","../utils/ripple.tsx","../utils/index.ts","../index.ts"],"fileIdsList":[[63],[61,62],[63,64,66,67],[63,64,66,67,68],[66],[63,70],[70,71],[72],[60,63,64,65,69,73,75],[60,63,64],[64,65,76],[64,77],[60,64],[64,78,79],[63,64,74],[64]],"fileInfos":[{"version":"c430d44666289dae81f30fa7b2edebf186ecc91a2d4c71266ea6ae76388792e1","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","impliedFormat":1},{"version":"ee7bad0c15b58988daa84371e0b89d313b762ab83cb5b31b8a2d1162e8eb41c2","impliedFormat":1},{"version":"080941d9f9ff9307f7e27a83bcd888b7c8270716c39af943532438932ec1d0b9","affectsGlobalScope":true,"impliedFormat":1},{"version":"2e80ee7a49e8ac312cc11b77f1475804bee36b3b2bc896bead8b6e1266befb43","affectsGlobalScope":true,"impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"0559b1f683ac7505ae451f9a96ce4c3c92bdc71411651ca6ddb0e88baaaad6a3","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"fb0f136d372979348d59b3f5020b4cdb81b5504192b1cacff5d1fbba29378aa1","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"a680117f487a4d2f30ea46f1b4b7f58bef1480456e18ba53ee85c2746eeca012","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"d6d7ae4d1f1f3772e2a3cde568ed08991a8ae34a080ff1151af28b7f798e22ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"52ada8e0b6e0482b728070b7639ee42e83a9b1c22d205992756fe020fd9f4a47","affectsGlobalScope":true,"impliedFormat":1},{"version":"3bdefe1bfd4d6dee0e26f928f93ccc128f1b64d5d501ff4a8cf3c6371200e5e6","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"639e512c0dfc3fad96a84caad71b8834d66329a1f28dc95e3946c9b58176c73a","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true,"impliedFormat":1},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true,"impliedFormat":1},{"version":"959d36cddf5e7d572a65045b876f2956c973a586da58e5d26cde519184fd9b8a","affectsGlobalScope":true,"impliedFormat":1},{"version":"965f36eae237dd74e6cca203a43e9ca801ce38824ead814728a2807b1910117d","affectsGlobalScope":true,"impliedFormat":1},{"version":"3925a6c820dcb1a06506c90b1577db1fdbf7705d65b62b99dce4be75c637e26b","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a3d63ef2b853447ec4f749d3f368ce642264246e02911fcb1590d8c161b8005","affectsGlobalScope":true,"impliedFormat":1},{"version":"8cdf8847677ac7d20486e54dd3fcf09eda95812ac8ace44b4418da1bbbab6eb8","affectsGlobalScope":true,"impliedFormat":1},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true,"impliedFormat":1},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true,"impliedFormat":1},{"version":"b4b67b1a91182421f5df999988c690f14d813b9850b40acd06ed44691f6727ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},"06b3ac816b0092e91fb537f525e292dd7d81e3d9fff9645516f935dc15ba2cb6",{"version":"36a2e4c9a67439aca5f91bb304611d5ae6e20d420503e96c230cf8fcdc948d94","affectsGlobalScope":true,"impliedFormat":1},{"version":"8a8eb4ebffd85e589a1cc7c178e291626c359543403d58c9cd22b81fab5b1fb9","impliedFormat":1},{"version":"af5eabf1ad1627f116f661b0232c0fa57e7918123c2d191776f77e84c7e71f44","impliedFormat":1},{"version":"42c169fb8c2d42f4f668c624a9a11e719d5d07dacbebb63cbcf7ef365b0a75b3","impliedFormat":1},{"version":"ef04245ca6cd9eb9e45326788a232b3fb2322028a1ecba4c9c415eddcf36d074","signature":"80cb3605af4584ac4f4a6d95b5ed89a7dcdf1326a77d5441bfcacbcab2cc3d85"},{"version":"37c7961117708394f64361ade31a41f96cef7f2a6606300821c72438dd4abda3","impliedFormat":1},{"version":"132454540af48674bee130bdbadc5ede71dd201eb53ffbc17877d5cf39e1cfdc","affectsGlobalScope":true,"impliedFormat":1},{"version":"dd23b3e2ca83cd5434cdf6a86b3b59db2b4dd1cad01f62c7e89a9482babc9c87","affectsGlobalScope":true,"impliedFormat":1},{"version":"0c0a60ee97c6e0f48f2582830b7763eea51e1b5bbdfbebcd7ad1b15a2f120c07","impliedFormat":1},"05685202f07d6dc7deb9447d8a9118c78a40281cc47edf39de19aa9bb9cec850","be238250dfb189e71fcdc878e5749ea7c86a120fd9d4095635abcb727d396ce7","3e5e7eab334b2fbfc1284ed1e68525ae932c90982d51f49c1b3fbf5653d7da46","8f6dd5ac45ed5e2570fa42c3a0515016cd0f082d13acfdb27798897853f3862c",{"version":"115b2ad73fa7d175cd71a5873d984c21593b2a022f1a2036cc39d9f53629e5dc","impliedFormat":1},{"version":"6d649584dae5c95852da35d3b7295f4d0442cae3867db2584e70ac0869bd87aa","signature":"0459cf6187aa67e43ca9c93881fb83737ea2dba7f20aba0537336be7c57db0e5"},{"version":"48d1a28f9064eeadc6609bcafb65a9ca2f9933a9ebfbacdd4d61ffe3520396a8","signature":"99159cf91fe6f58d48edc8f5177ce180fc89e45e51c6ce6a9f1d9ecc217e9b43"},"92cdcca82aca9e3d0122bd2367b9452be22dcbefda20ae0bf2af0a89e5372a28",{"version":"0d1f10be352ac65dad8e682440d07e6f96bc2313468948e2b86960d120ee86d0","signature":"8c902282bd82c87c4ff39f4d2ab00d5c3989988e4933c9dfcb83af82e85b5dd1"},{"version":"2131dccd3974363f85b1c37b335ec39ac4701dc8c55b874907e9ce5586131cc9","signature":"0b2c3364cb5720a80e2b6f58ba739eae0cd0ea5d16506e789077a9ed61ba6273"},"475ca14b7c6667df6bebedd23ea900b774489e4a54075b50c0f7d499bff730c8","0ff9ba8bc2245d4d6e7b25641ae6254f65409729ee50e8f107519174ce8d4050"],"root":[60,65,[75,81]],"options":{"allowSyntheticDefaultImports":true,"declaration":true,"declarationDir":"./types","declarationMap":true,"emitDeclarationOnly":false,"esModuleInterop":true,"jsx":4,"module":99,"noUncheckedIndexedAccess":true,"outDir":"./","skipLibCheck":true,"strict":true,"target":2},"referencedMap":[[74,1],[63,2],[64,1],[68,3],[69,4],[67,5],[70,1],[71,6],[72,7],[73,8],[76,9],[65,10],[77,11],[81,12],[78,13],[80,14],[75,15],[79,16]],"version":"5.9.2"}
|
package/package.json
CHANGED
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aristobyte-ui/dropdown",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
|
+
"license": "MIT",
|
|
4
5
|
"private": false,
|
|
5
6
|
"main": "dist/index.cjs.js",
|
|
6
7
|
"module": "dist/index.esm.js",
|
|
7
8
|
"types": "dist/types/index.d.ts",
|
|
9
|
+
"files": [
|
|
10
|
+
"dist"
|
|
11
|
+
],
|
|
8
12
|
"exports": {
|
|
9
13
|
".": {
|
|
10
14
|
"import": "./dist/index.esm.js",
|
|
@@ -12,13 +16,21 @@
|
|
|
12
16
|
}
|
|
13
17
|
},
|
|
14
18
|
"scripts": {
|
|
15
|
-
"prepare": "yarn build",
|
|
16
19
|
"build": "tsc -b tsconfig.json",
|
|
17
20
|
"lint": "eslint . --max-warnings 0",
|
|
18
21
|
"generate:component": "turbo gen react-component",
|
|
19
22
|
"check-types": "tsc --noEmit"
|
|
20
23
|
},
|
|
24
|
+
"dependencies": {
|
|
25
|
+
"@aristobyte-ui/button": "^1.0.5",
|
|
26
|
+
"framer-motion": "^12.23.9",
|
|
27
|
+
"react": "^19.1.0",
|
|
28
|
+
"react-dom": "^19.1.0",
|
|
29
|
+
"sass": "^1.89.0",
|
|
30
|
+
"shiki": "^3.7.0"
|
|
31
|
+
},
|
|
21
32
|
"devDependencies": {
|
|
33
|
+
"@aristobyte-ui/eslint-config": "^1.0.4",
|
|
22
34
|
"@turbo/gen": "^2.5.0",
|
|
23
35
|
"@types/node": "^24.3.0",
|
|
24
36
|
"@types/react": "19.1.0",
|
|
@@ -29,16 +41,5 @@
|
|
|
29
41
|
"tailwindcss": "^4.1.7",
|
|
30
42
|
"tsup": "^8.5.0",
|
|
31
43
|
"typescript": "^5.8.3"
|
|
32
|
-
},
|
|
33
|
-
"dependencies": {
|
|
34
|
-
"@aristobyte-ui/button": "^1.0.3",
|
|
35
|
-
"@aristobyte-ui/eslint-config": "^1.0.0",
|
|
36
|
-
"@aristobyte-ui/jest-config": "^1.0.0",
|
|
37
|
-
"@aristobyte-ui/typescript-config": "1.0.1",
|
|
38
|
-
"framer-motion": "^12.23.9",
|
|
39
|
-
"react": "^19.1.0",
|
|
40
|
-
"react-dom": "^19.1.0",
|
|
41
|
-
"sass": "^1.89.0",
|
|
42
|
-
"shiki": "^3.7.0"
|
|
43
44
|
}
|
|
44
45
|
}
|
package/@types/index.d.ts
DELETED
package/assets/svg/i_Copy.svg
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-copy-icon lucide-copy"><rect width="14" height="14" x="8" y="8" rx="2" ry="2"/><path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"/></svg>
|
package/assets/svg/i_Error.svg
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-octagon-x-icon lucide-octagon-x"><path d="m15 9-6 6"/><path d="M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z"/><path d="m9 9 6 6"/></svg>
|
package/assets/svg/i_Info.svg
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-info-icon lucide-info"><circle cx="12" cy="12" r="10"/><path d="M12 16v-4"/><path d="M12 8h.01"/></svg>
|
package/assets/svg/i_Success.svg
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-circle-check-icon lucide-circle-check"><circle cx="12" cy="12" r="10"/><path d="m9 12 2 2 4-4"/></svg>
|
package/assets/svg/i_Warning.svg
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-octagon-alert-icon lucide-octagon-alert"><path d="M12 16h.01"/><path d="M12 8v4"/><path d="M15.312 2a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586l-4.688-4.688A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2z"/></svg>
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
@use "../../styles/settings" as *;
|
|
2
|
-
|
|
3
|
-
.dropdown {
|
|
4
|
-
width: max-content;
|
|
5
|
-
|
|
6
|
-
&__button {
|
|
7
|
-
width: max-content;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
&__box {
|
|
11
|
-
&-overlay {
|
|
12
|
-
backdrop-filter: blur(12px);
|
|
13
|
-
height: 100%;
|
|
14
|
-
left: 0;
|
|
15
|
-
position: fixed;
|
|
16
|
-
top: 0;
|
|
17
|
-
width: 100%;
|
|
18
|
-
z-index: 99999999999;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
&-options {
|
|
22
|
-
align-items: flex-start;
|
|
23
|
-
background-color: $color-default;
|
|
24
|
-
border-radius: 8px; //TODO: change to dynamic
|
|
25
|
-
box-shadow:
|
|
26
|
-
0 4px 6px rgba(0, 0, 0, 0.04),
|
|
27
|
-
0 12px 24px rgba(0, 0, 0, 0.1);
|
|
28
|
-
display: flex;
|
|
29
|
-
flex-direction: column;
|
|
30
|
-
opacity: 1;
|
|
31
|
-
min-width: 300px;
|
|
32
|
-
padding: 4px;
|
|
33
|
-
position: absolute;
|
|
34
|
-
transition:
|
|
35
|
-
transform 200ms $cubic-bezier-secondary,
|
|
36
|
-
opacity 150ms ease;
|
|
37
|
-
width: 100%;
|
|
38
|
-
z-index: 99999999999;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
}
|
|
@@ -1,175 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
|
-
import * as React from "react";
|
|
4
|
-
import { DropdownOption, type IDropdownOption } from "../DropdownOption";
|
|
5
|
-
|
|
6
|
-
import { AnimatePresence, motion } from "framer-motion";
|
|
7
|
-
|
|
8
|
-
import { Button } from "@aristobyte-ui/button";
|
|
9
|
-
import { Portal } from "../../utils/Portal";
|
|
10
|
-
|
|
11
|
-
import styles from "./Dropdown.module.scss";
|
|
12
|
-
|
|
13
|
-
export interface IDropdown {
|
|
14
|
-
children:
|
|
15
|
-
| React.ReactElement<IDropdownOption>
|
|
16
|
-
| React.ReactElement<IDropdownOption>[];
|
|
17
|
-
value: string;
|
|
18
|
-
appearance?:
|
|
19
|
-
| "solid"
|
|
20
|
-
| "outline"
|
|
21
|
-
| "outline-dashed"
|
|
22
|
-
| "no-outline"
|
|
23
|
-
| "glowing";
|
|
24
|
-
onChange?: (newValue: string) => void;
|
|
25
|
-
initiallyOpened?: boolean;
|
|
26
|
-
placeholder?: string;
|
|
27
|
-
disabled?: boolean;
|
|
28
|
-
className?: string;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
type PositionType = {
|
|
32
|
-
top: 0;
|
|
33
|
-
left: 0;
|
|
34
|
-
width: 0;
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
export const Dropdown: React.FC<IDropdown> = ({
|
|
38
|
-
children,
|
|
39
|
-
value,
|
|
40
|
-
onChange,
|
|
41
|
-
appearance = "outline",
|
|
42
|
-
placeholder = "Select",
|
|
43
|
-
className = "",
|
|
44
|
-
initiallyOpened = false,
|
|
45
|
-
disabled = false,
|
|
46
|
-
}) => {
|
|
47
|
-
const [isOpened, setIsOpened] = React.useState<boolean>(initiallyOpened);
|
|
48
|
-
const [selected, setSelected] = React.useState<string>(value);
|
|
49
|
-
const [position, setPosition] = React.useState<PositionType>({
|
|
50
|
-
top: 0,
|
|
51
|
-
left: 0,
|
|
52
|
-
width: 0,
|
|
53
|
-
});
|
|
54
|
-
const [dropdownHeight, setDropdownHeight] = React.useState(0);
|
|
55
|
-
const [buttonHeight, setButtonHeight] = React.useState(0);
|
|
56
|
-
const buttonRef = React.useRef<HTMLButtonElement>(null);
|
|
57
|
-
const boxRef = React.useRef<HTMLDivElement>(null);
|
|
58
|
-
const uniqueId = React.useId();
|
|
59
|
-
|
|
60
|
-
React.useLayoutEffect(() => {
|
|
61
|
-
if (!isOpened) {
|
|
62
|
-
return;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
if (boxRef.current) {
|
|
66
|
-
setDropdownHeight(boxRef.current.getBoundingClientRect().height);
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
if (buttonRef.current) {
|
|
70
|
-
setButtonHeight(buttonRef.current.getBoundingClientRect().height);
|
|
71
|
-
}
|
|
72
|
-
}, [isOpened]);
|
|
73
|
-
|
|
74
|
-
const options = React.Children.toArray(children).filter(
|
|
75
|
-
(child): child is React.ReactElement<IDropdownOption> =>
|
|
76
|
-
React.isValidElement(child) && child.type === DropdownOption
|
|
77
|
-
);
|
|
78
|
-
|
|
79
|
-
const isValidValue = () => {
|
|
80
|
-
return !!options.find(({ props }) => props.value === value);
|
|
81
|
-
};
|
|
82
|
-
|
|
83
|
-
const handleChange = (currentRadioValue: string) => {
|
|
84
|
-
onChange?.(currentRadioValue);
|
|
85
|
-
setSelected(currentRadioValue);
|
|
86
|
-
setIsOpened(false);
|
|
87
|
-
};
|
|
88
|
-
|
|
89
|
-
const handleToggle = () => {
|
|
90
|
-
if (disabled) return;
|
|
91
|
-
|
|
92
|
-
const rect = buttonRef.current?.getBoundingClientRect();
|
|
93
|
-
if (!rect) return;
|
|
94
|
-
|
|
95
|
-
const spaceBelow = window.innerHeight - rect.bottom;
|
|
96
|
-
const spaceAbove = rect.top;
|
|
97
|
-
|
|
98
|
-
const shouldOpenUpwards =
|
|
99
|
-
dropdownHeight > 0 &&
|
|
100
|
-
spaceBelow < dropdownHeight &&
|
|
101
|
-
spaceAbove > dropdownHeight;
|
|
102
|
-
|
|
103
|
-
const finalPosition = {
|
|
104
|
-
top: shouldOpenUpwards
|
|
105
|
-
? rect.top + window.scrollY - dropdownHeight - buttonHeight / 2
|
|
106
|
-
: rect.top + window.scrollY + buttonHeight + 6,
|
|
107
|
-
left: rect.left + window.scrollX,
|
|
108
|
-
width: rect.width,
|
|
109
|
-
} as PositionType;
|
|
110
|
-
|
|
111
|
-
setPosition(finalPosition);
|
|
112
|
-
setIsOpened((prev) => !prev);
|
|
113
|
-
};
|
|
114
|
-
|
|
115
|
-
if (!isValidValue()) {
|
|
116
|
-
throw new Error(
|
|
117
|
-
'The "value" prop did not match with any of the DropdownOption "value" prop'
|
|
118
|
-
);
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
return (
|
|
122
|
-
<>
|
|
123
|
-
<div className={`${styles["dropdown"]} ${className}`}>
|
|
124
|
-
<Button
|
|
125
|
-
{...{ ref: buttonRef }}
|
|
126
|
-
className={styles["dropdown__button"]}
|
|
127
|
-
appearance={appearance}
|
|
128
|
-
onClick={handleToggle}
|
|
129
|
-
disabled={disabled}
|
|
130
|
-
>
|
|
131
|
-
{placeholder}
|
|
132
|
-
</Button>
|
|
133
|
-
</div>
|
|
134
|
-
|
|
135
|
-
<Portal>
|
|
136
|
-
<AnimatePresence>
|
|
137
|
-
{isOpened && (
|
|
138
|
-
<div className={styles["dropdown__box"]}>
|
|
139
|
-
<motion.div
|
|
140
|
-
className={styles["dropdown__box-overlay"]}
|
|
141
|
-
initial={{ opacity: 0 }}
|
|
142
|
-
animate={{ opacity: 1 }}
|
|
143
|
-
exit={{ opacity: 0 }}
|
|
144
|
-
transition={{ duration: 0.3, ease: "easeIn" }}
|
|
145
|
-
onClick={() => setIsOpened(false)}
|
|
146
|
-
/>
|
|
147
|
-
<motion.div
|
|
148
|
-
ref={boxRef}
|
|
149
|
-
className={styles["dropdown__box-options"]}
|
|
150
|
-
initial={{ opacity: 0, y: 20, scale: 0.95 }}
|
|
151
|
-
animate={{ opacity: 1, y: 0, scale: 1 }}
|
|
152
|
-
exit={{ opacity: 0, y: 20, scale: 0.95 }}
|
|
153
|
-
transition={{ duration: 0.2, ease: "easeIn" }}
|
|
154
|
-
style={{
|
|
155
|
-
top: position.top,
|
|
156
|
-
left: position.left,
|
|
157
|
-
width: position.width,
|
|
158
|
-
}}
|
|
159
|
-
>
|
|
160
|
-
{options.map(({ props }) => (
|
|
161
|
-
<DropdownOption
|
|
162
|
-
{...props}
|
|
163
|
-
key={`${props.value}-${uniqueId}`}
|
|
164
|
-
selectedValue={selected}
|
|
165
|
-
onChange={() => handleChange(props.value)}
|
|
166
|
-
/>
|
|
167
|
-
))}
|
|
168
|
-
</motion.div>
|
|
169
|
-
</div>
|
|
170
|
-
)}
|
|
171
|
-
</AnimatePresence>
|
|
172
|
-
</Portal>
|
|
173
|
-
</>
|
|
174
|
-
);
|
|
175
|
-
};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
@use "../../styles/settings" as *;
|
|
2
|
-
|
|
3
|
-
.dropdown-option {
|
|
4
|
-
border-radius: 8px; //TODO: change to dynamic
|
|
5
|
-
color: $white;
|
|
6
|
-
font-size: 14px;
|
|
7
|
-
font-weight: 500;
|
|
8
|
-
padding: 10px 16px;
|
|
9
|
-
text-align: left;
|
|
10
|
-
transition: all 120ms ease-out;
|
|
11
|
-
width: 100%;
|
|
12
|
-
|
|
13
|
-
&:hover {
|
|
14
|
-
background-color: $color-default-hover;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
&__title {
|
|
18
|
-
color: $white;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
&__description {
|
|
22
|
-
color: rgba($white, 0.6);
|
|
23
|
-
}
|
|
24
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
|
|
3
|
-
import styles from "./DropdownOption.module.scss";
|
|
4
|
-
|
|
5
|
-
export interface IDropdownOption {
|
|
6
|
-
children: string;
|
|
7
|
-
value: string;
|
|
8
|
-
onChange?: () => void;
|
|
9
|
-
selectedValue?: string;
|
|
10
|
-
description?: string;
|
|
11
|
-
icon?: string;
|
|
12
|
-
disabled?: boolean;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export const DropdownOption: React.FC<IDropdownOption> = ({
|
|
16
|
-
children,
|
|
17
|
-
// value,
|
|
18
|
-
// selectedValue,
|
|
19
|
-
onChange,
|
|
20
|
-
// icon,
|
|
21
|
-
description,
|
|
22
|
-
// disabled,
|
|
23
|
-
}) => {
|
|
24
|
-
// const isSelected = selectedValue === value;
|
|
25
|
-
return (
|
|
26
|
-
<button className={styles["dropdown-option"]} onClick={onChange}>
|
|
27
|
-
<div className={styles["dropdown-option__content"]}>
|
|
28
|
-
<h3 className={styles["dropdown-option__title"]}>{children}</h3>
|
|
29
|
-
<p className={styles["dropdown-option__description"]}>{description}</p>
|
|
30
|
-
</div>
|
|
31
|
-
</button>
|
|
32
|
-
);
|
|
33
|
-
};
|
package/components/index.ts
DELETED
package/eslint.config.mjs
DELETED
package/index.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Dropdown, DropdownOption } from "./components";
|
package/styles/_settings.scss
DELETED
|
@@ -1,179 +0,0 @@
|
|
|
1
|
-
// === Design Tokens — Color Palette ===
|
|
2
|
-
|
|
3
|
-
// Base
|
|
4
|
-
$white: #ffffff;
|
|
5
|
-
$black: #000000;
|
|
6
|
-
$transparent: transparent;
|
|
7
|
-
|
|
8
|
-
// === Black Transparent Scale ===
|
|
9
|
-
$black-transparent-100: rgba(0, 0, 0, 0.1);
|
|
10
|
-
$black-transparent-200: rgba(0, 0, 0, 0.2);
|
|
11
|
-
$black-transparent-300: rgba(0, 0, 0, 0.3);
|
|
12
|
-
$black-transparent-400: rgba(0, 0, 0, 0.4);
|
|
13
|
-
$black-transparent-500: rgba(0, 0, 0, 0.5);
|
|
14
|
-
$black-transparent-600: rgba(0, 0, 0, 0.6);
|
|
15
|
-
$black-transparent-700: rgba(0, 0, 0, 0.7);
|
|
16
|
-
$black-transparent-800: rgba(0, 0, 0, 0.8);
|
|
17
|
-
$black-transparent-900: rgba(0, 0, 0, 0.9);
|
|
18
|
-
|
|
19
|
-
// === Black Transparent Scale ===
|
|
20
|
-
$white-transparent-100: rgba(255, 255, 255, 0.1);
|
|
21
|
-
$white-transparent-200: rgba(255, 255, 255, 0.2);
|
|
22
|
-
$white-transparent-300: rgba(255, 255, 255, 0.3);
|
|
23
|
-
$white-transparent-400: rgba(255, 255, 255, 0.4);
|
|
24
|
-
$white-transparent-500: rgba(255, 255, 255, 0.5);
|
|
25
|
-
$white-transparent-600: rgba(255, 255, 255, 0.6);
|
|
26
|
-
$white-transparent-700: rgba(255, 255, 255, 0.7);
|
|
27
|
-
$white-transparent-800: rgba(255, 255, 255, 0.8);
|
|
28
|
-
$white-transparent-900: rgba(255, 255, 255, 0.9);
|
|
29
|
-
|
|
30
|
-
// === Neutral Scale (Grey) ===
|
|
31
|
-
$grey-50: #f9fafb;
|
|
32
|
-
$grey-100: #f3f4f6;
|
|
33
|
-
$grey-200: #e5e7eb;
|
|
34
|
-
$grey-300: #d1d5db;
|
|
35
|
-
$grey-400: #9ca3af;
|
|
36
|
-
$grey-500: #6b7280;
|
|
37
|
-
$grey-600: #4b5563;
|
|
38
|
-
$grey-700: #374151;
|
|
39
|
-
$grey-800: #1f2937;
|
|
40
|
-
$grey-900: #111827;
|
|
41
|
-
|
|
42
|
-
// === Primary Scale (Blue) ===
|
|
43
|
-
$blue-50: #eff6ff;
|
|
44
|
-
$blue-100: #dbeafe;
|
|
45
|
-
$blue-200: #bfdbfe;
|
|
46
|
-
$blue-300: #93c5fd;
|
|
47
|
-
$blue-400: #60a5fa;
|
|
48
|
-
$blue-500: #3b82f6;
|
|
49
|
-
$blue-600: #2563eb; // Main
|
|
50
|
-
$blue-700: #1d4ed8; // Hover
|
|
51
|
-
$blue-800: #1e40af;
|
|
52
|
-
$blue-900: #1e3a8a;
|
|
53
|
-
|
|
54
|
-
// === Secondary Scale (Indigo) ===
|
|
55
|
-
$indigo-50: #eef2ff;
|
|
56
|
-
$indigo-100: #e0e7ff;
|
|
57
|
-
$indigo-200: #c7d2fe;
|
|
58
|
-
$indigo-300: #a5b4fc;
|
|
59
|
-
$indigo-400: #818cf8;
|
|
60
|
-
$indigo-500: #6366f1;
|
|
61
|
-
$indigo-600: #4f46e5; // Main
|
|
62
|
-
$indigo-700: #4338ca; // Hover
|
|
63
|
-
|
|
64
|
-
// === Error Scale (Red) ===
|
|
65
|
-
$red-50: #fef2f2;
|
|
66
|
-
$red-100: #fee2e2;
|
|
67
|
-
$red-200: #fecaca;
|
|
68
|
-
$red-300: #fca5a5;
|
|
69
|
-
$red-400: #f87171;
|
|
70
|
-
$red-500: #ef4444;
|
|
71
|
-
$red-600: #dc2626; // Main
|
|
72
|
-
$red-700: #b91c1c; // Hover
|
|
73
|
-
|
|
74
|
-
// === Success Scale (Green) ===
|
|
75
|
-
$green-50: #f0fdf4;
|
|
76
|
-
$green-100: #dcfce7;
|
|
77
|
-
$green-200: #bbf7d0;
|
|
78
|
-
$green-300: #86efac;
|
|
79
|
-
$green-400: #4ade80;
|
|
80
|
-
$green-500: #22c55e;
|
|
81
|
-
$green-600: #16a34a; // Main
|
|
82
|
-
$green-700: #15803d; // Hover
|
|
83
|
-
|
|
84
|
-
// === Warning Scale (Amber) ===
|
|
85
|
-
$amber-50: #fffbeb;
|
|
86
|
-
$amber-100: #fef3c7;
|
|
87
|
-
$amber-200: #fde68a;
|
|
88
|
-
$amber-300: #fcd34d;
|
|
89
|
-
$amber-400: #fbbf24;
|
|
90
|
-
$amber-500: #f59e0b;
|
|
91
|
-
$amber-600: #d97706; // Main
|
|
92
|
-
$amber-700: #b45309; // Hover
|
|
93
|
-
|
|
94
|
-
// === Semantic Tokens ===
|
|
95
|
-
$color-default: $grey-800;
|
|
96
|
-
$color-default-hover: $grey-900;
|
|
97
|
-
$color-default-disabled: rgba($color-default, 0.5);
|
|
98
|
-
|
|
99
|
-
$color-primary: $blue-600;
|
|
100
|
-
$color-primary-hover: $blue-700;
|
|
101
|
-
$color-primary-disabled: rgba($color-primary, 0.5);
|
|
102
|
-
|
|
103
|
-
$color-secondary: $indigo-600;
|
|
104
|
-
$color-secondary-hover: $indigo-700;
|
|
105
|
-
$color-secondary-disabled: rgba($color-secondary, 0.5);
|
|
106
|
-
|
|
107
|
-
$color-error: $red-600;
|
|
108
|
-
$color-error-hover: $red-700;
|
|
109
|
-
$color-error-disabled: rgba($color-error, 0.5);
|
|
110
|
-
|
|
111
|
-
$color-success: $green-600;
|
|
112
|
-
$color-success-hover: $green-700;
|
|
113
|
-
$color-success-disabled: rgba($color-success, 0.5);
|
|
114
|
-
|
|
115
|
-
$color-warning: $amber-600;
|
|
116
|
-
$color-warning-hover: $amber-700;
|
|
117
|
-
$color-warning-disabled: rgba($color-warning, 0.5);
|
|
118
|
-
|
|
119
|
-
$text-color-white: $white;
|
|
120
|
-
$text-color-black: $black;
|
|
121
|
-
$text-color-white-disabled: rgba($white, 0.5);
|
|
122
|
-
$text-color-black-disabled: rgba($black, 0.5);
|
|
123
|
-
|
|
124
|
-
// === Shadows ===
|
|
125
|
-
$shadow-sm: 0 1px 2px 0 rgba($black, 0.05);
|
|
126
|
-
$shadow-md:
|
|
127
|
-
0 4px 6px -1px rgba($black, 0.1),
|
|
128
|
-
0 2px 4px -1px rgba($black, 0.06);
|
|
129
|
-
$shadow-lg:
|
|
130
|
-
0 10px 15px -3px rgba($black, 0.1),
|
|
131
|
-
0 4px 6px -2px rgba($black, 0.05);
|
|
132
|
-
|
|
133
|
-
// === Font families ===
|
|
134
|
-
$font-family-sans: "Inter", sans-serif;
|
|
135
|
-
$font-family-serif: "Georgia", serif;
|
|
136
|
-
$font-family-mono: "Fira Code", monospace;
|
|
137
|
-
|
|
138
|
-
// === Font weights ===
|
|
139
|
-
$font-weight-regular: 400;
|
|
140
|
-
$font-weight-medium: 500;
|
|
141
|
-
$font-weight-semibold: 600;
|
|
142
|
-
$font-weight-bold: 700;
|
|
143
|
-
|
|
144
|
-
// === Line heights ===
|
|
145
|
-
$line-height-tight: 1.2;
|
|
146
|
-
$line-height-snug: 1.375;
|
|
147
|
-
$line-height-normal: 1.5;
|
|
148
|
-
$line-height-loose: 1.625;
|
|
149
|
-
|
|
150
|
-
// === Font Sizes — Semantic Tokens ===
|
|
151
|
-
|
|
152
|
-
// === Titles ===
|
|
153
|
-
$font-size-hero: 3rem; // 48px
|
|
154
|
-
$font-size-title-1: 2.25rem; // 36px
|
|
155
|
-
$font-size-title-2: 1.875rem; // 30px
|
|
156
|
-
$font-size-title-3: 1.5rem; // 24px
|
|
157
|
-
|
|
158
|
-
// === Subtitles ===
|
|
159
|
-
$font-size-subtitle-1: 1.25rem; // 20px
|
|
160
|
-
$font-size-subtitle-2: 1.125rem; // 18px
|
|
161
|
-
|
|
162
|
-
// === Body text ===
|
|
163
|
-
$font-size-body-lg: 1rem; // 16px
|
|
164
|
-
$font-size-body-md: 0.9375rem; // 15px
|
|
165
|
-
$font-size-body-sm: 0.875rem; // 14px
|
|
166
|
-
|
|
167
|
-
// === Captions / Descriptions ===
|
|
168
|
-
$font-size-caption: 0.75rem; // 12px
|
|
169
|
-
$font-size-footnote: 0.6875rem; // 11px
|
|
170
|
-
|
|
171
|
-
// === Buttons ===
|
|
172
|
-
$font-size-button-lg: 1rem; // 16px
|
|
173
|
-
$font-size-button-md: 0.875rem; // 14px
|
|
174
|
-
$font-size-button-sm: 0.75rem; // 12px
|
|
175
|
-
|
|
176
|
-
// === Animations ===
|
|
177
|
-
|
|
178
|
-
$cubic-bezier-primary: cubic-bezier(0.55, -0.19, 0.59, 0.95);
|
|
179
|
-
$cubic-bezier-secondary: cubic-bezier(0.175, 0.885, 0.32, 1.275);
|
package/tsconfig.json
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "@aristobyte-ui/typescript-config/package",
|
|
3
|
-
"compilerOptions": {
|
|
4
|
-
"outDir": "dist",
|
|
5
|
-
"declarationDir": "dist/types",
|
|
6
|
-
"baseUrl": ".",
|
|
7
|
-
"typeRoots": ["@types", "node_modules/@types"]
|
|
8
|
-
},
|
|
9
|
-
"include": ["@types", "components", "utils", "index.ts"],
|
|
10
|
-
"exclude": ["node_modules", "dist"]
|
|
11
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import type { PlopTypes } from "@turbo/gen";
|
|
2
|
-
|
|
3
|
-
// Learn more about Turborepo Generators at https://turborepo.com/docs/guides/generating-code
|
|
4
|
-
|
|
5
|
-
export default function generator(plop: PlopTypes.NodePlopAPI): void {
|
|
6
|
-
// A simple generator to add a new React component to the internal UI library
|
|
7
|
-
plop.setGenerator("react-component", {
|
|
8
|
-
description: "Adds a new react component",
|
|
9
|
-
prompts: [
|
|
10
|
-
{
|
|
11
|
-
type: "input",
|
|
12
|
-
name: "name",
|
|
13
|
-
message: "What is the name of the component?",
|
|
14
|
-
},
|
|
15
|
-
],
|
|
16
|
-
actions: [
|
|
17
|
-
{
|
|
18
|
-
type: "add",
|
|
19
|
-
path: "src/{{kebabCase name}}.tsx",
|
|
20
|
-
templateFile: "templates/component.hbs",
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
type: "append",
|
|
24
|
-
path: "package.json",
|
|
25
|
-
pattern: /"exports": {(?<insertion>)/g,
|
|
26
|
-
template: ' "./{{kebabCase name}}": "./src/{{kebabCase name}}.tsx",',
|
|
27
|
-
},
|
|
28
|
-
],
|
|
29
|
-
});
|
|
30
|
-
}
|
package/utils/Portal.tsx
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
|
-
import * as React from "react";
|
|
4
|
-
import { createPortal } from "react-dom";
|
|
5
|
-
|
|
6
|
-
export const Portal: React.FC<{ children: React.ReactNode }> = ({
|
|
7
|
-
children,
|
|
8
|
-
}) => {
|
|
9
|
-
const [mounted, setMounted] = React.useState(false);
|
|
10
|
-
|
|
11
|
-
React.useEffect(() => {
|
|
12
|
-
setMounted(true);
|
|
13
|
-
}, []);
|
|
14
|
-
|
|
15
|
-
if (!mounted || typeof window === "undefined") return null;
|
|
16
|
-
return createPortal(children, document.body);
|
|
17
|
-
};
|
package/utils/icons.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import Copy from "../assets/svg/i_Copy.svg";
|
|
2
|
-
import Error from "../assets/svg/i_Error.svg";
|
|
3
|
-
import Info from "../assets/svg/i_Info.svg";
|
|
4
|
-
import Success from "../assets/svg/i_Success.svg";
|
|
5
|
-
import Warning from "../assets/svg/i_Warning.svg";
|
|
6
|
-
|
|
7
|
-
export const Icons = {
|
|
8
|
-
Copy,
|
|
9
|
-
Error,
|
|
10
|
-
Info,
|
|
11
|
-
Success,
|
|
12
|
-
Warning,
|
|
13
|
-
};
|
package/utils/index.ts
DELETED
package/utils/ripple.tsx
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
type RippleParamsRef = HTMLButtonElement | HTMLAnchorElement;
|
|
2
|
-
|
|
3
|
-
export type RippleParams<HTMLElementType extends RippleParamsRef> = {
|
|
4
|
-
ref: React.RefObject<HTMLElementType | null>;
|
|
5
|
-
clientX: number;
|
|
6
|
-
clientY: number;
|
|
7
|
-
};
|
|
8
|
-
|
|
9
|
-
export const renderRipple = <HTMLElementType extends RippleParamsRef>({
|
|
10
|
-
ref,
|
|
11
|
-
clientX,
|
|
12
|
-
clientY,
|
|
13
|
-
}: RippleParams<HTMLElementType>) => {
|
|
14
|
-
const button = ref.current;
|
|
15
|
-
if (!button) return;
|
|
16
|
-
|
|
17
|
-
const circle = document.createElement("span");
|
|
18
|
-
const diameter = Math.max(button.clientWidth, button.clientHeight);
|
|
19
|
-
const radius = diameter / 2;
|
|
20
|
-
|
|
21
|
-
circle.id = "ripple";
|
|
22
|
-
|
|
23
|
-
const style = document.createElement("style");
|
|
24
|
-
style.innerHTML = `
|
|
25
|
-
#ripple {
|
|
26
|
-
animation: ripple 300ms linear;
|
|
27
|
-
background-color: rgba(255, 255, 255, 0.3);
|
|
28
|
-
border-radius: 50%;
|
|
29
|
-
height: ${diameter}px;
|
|
30
|
-
left: ${clientX - button.getBoundingClientRect().left - radius}px;
|
|
31
|
-
pointer-events: none;
|
|
32
|
-
position: absolute;
|
|
33
|
-
top: ${clientY - button.getBoundingClientRect().top - radius}px;
|
|
34
|
-
transform: scale(0);
|
|
35
|
-
width: ${diameter}px;
|
|
36
|
-
z-index: 0;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
@keyframes ripple {
|
|
40
|
-
to {
|
|
41
|
-
opacity: 0;
|
|
42
|
-
transform: scale(2);
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
`;
|
|
46
|
-
|
|
47
|
-
button.appendChild(style);
|
|
48
|
-
button.appendChild(circle);
|
|
49
|
-
|
|
50
|
-
circle.addEventListener("animationend", () => {
|
|
51
|
-
circle.remove();
|
|
52
|
-
style.remove();
|
|
53
|
-
});
|
|
54
|
-
};
|