@flipdish/portal-library 8.6.2 → 8.6.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/components/molecules/Alert/index.cjs.js +1 -1
- package/dist/components/molecules/Alert/index.cjs.js.map +1 -1
- package/dist/components/molecules/Alert/index.d.ts +1 -1
- package/dist/components/molecules/Alert/index.js +1 -1
- package/dist/components/molecules/Alert/index.js.map +1 -1
- package/dist/components/molecules/AlertGlobal/alertGlobalTokens.cjs.js +1 -1
- package/dist/components/molecules/AlertGlobal/alertGlobalTokens.cjs.js.map +1 -1
- package/dist/components/molecules/AlertGlobal/alertGlobalTokens.js +1 -1
- package/dist/components/molecules/AlertGlobal/alertGlobalTokens.js.map +1 -1
- package/dist/mocks/msw/handlers.cjs.js +1 -1
- package/dist/mocks/msw/handlers.d.ts +1 -1
- package/dist/mocks/msw/handlers.js +1 -1
- package/dist/mocks/msw/server.cjs.js +1 -1
- package/dist/mocks/msw/server.d.ts +1 -1
- package/dist/mocks/msw/server.js +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/HttpResponse.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/HttpResponse.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/experimental/compat.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/experimental/compat.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/experimental/define-network.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/experimental/define-network.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/experimental/frames/http-frame.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/experimental/frames/http-frame.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/experimental/frames/network-frame.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/experimental/frames/network-frame.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/experimental/frames/websocket-frame.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/experimental/frames/websocket-frame.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/experimental/handlers-controller.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/experimental/handlers-controller.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/experimental/on-unhandled-frame.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/experimental/on-unhandled-frame.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/experimental/request-utils.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/experimental/request-utils.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/experimental/sources/interceptor-source.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/experimental/sources/interceptor-source.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/experimental/sources/network-source.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/experimental/sources/network-source.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/handlers/HttpHandler.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/handlers/HttpHandler.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/handlers/RequestHandler.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/handlers/RequestHandler.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/handlers/WebSocketHandler.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/handlers/WebSocketHandler.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/http.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/http.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/index.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/index.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/isCommonAssetRequest.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/isCommonAssetRequest.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/utils/HttpResponse/decorators.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/utils/HttpResponse/decorators.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/utils/cookieStore.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/utils/cookieStore.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/utils/executeHandlers.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/utils/executeHandlers.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/Disposable.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/Disposable.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/attachSiblingHandlers.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/attachSiblingHandlers.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/checkGlobals.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/checkGlobals.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/devUtils.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/devUtils.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/getCallFrame.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/getCallFrame.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isIterable.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isIterable.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isStringEqual.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isStringEqual.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/jsonParse.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/jsonParse.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/toReadonlyArray.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/toReadonlyArray.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/getStatusCodeColor.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/getStatusCodeColor.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/getTimestamp.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/getTimestamp.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/serializeRequest.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/serializeRequest.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/serializeResponse.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/serializeResponse.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/utils/matching/matchRequestUrl.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/utils/matching/matchRequestUrl.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/utils/matching/normalizePath.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/utils/matching/normalizePath.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/getRequestCookies.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/getRequestCookies.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/storeResponseCookies.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/storeResponseCookies.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/toPublicUrl.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/toPublicUrl.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/utils/url/cleanUrl.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/utils/url/cleanUrl.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/utils/url/getAbsoluteUrl.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/utils/url/getAbsoluteUrl.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/utils/url/isAbsoluteUrl.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/utils/url/isAbsoluteUrl.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/node/index.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/node/index.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/shims/cookie.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/shims/cookie.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/shims/statuses.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/shims/statuses.js.map +1 -1
- package/dist/themes/theme.d.ts +6 -0
- package/dist/themes/tokens/colours/semantic.cjs.js +1 -1
- package/dist/themes/tokens/colours/semantic.cjs.js.map +1 -1
- package/dist/themes/tokens/colours/semantic.d.ts +6 -0
- package/dist/themes/tokens/colours/semantic.js +1 -1
- package/dist/themes/tokens/colours/semantic.js.map +1 -1
- package/package.json +1 -1
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/HttpResponse-BFS34nkx.d.d.ts +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/HttpResponse.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/HttpResponse.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/experimental/compat.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/experimental/compat.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/experimental/define-network.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/experimental/define-network.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/experimental/frames/http-frame.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/experimental/frames/http-frame.d.d.ts +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/experimental/frames/http-frame.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/experimental/frames/network-frame.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/experimental/frames/network-frame.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/experimental/frames/websocket-frame.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/experimental/frames/websocket-frame.d.d.ts +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/experimental/frames/websocket-frame.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/experimental/handlers-controller.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/experimental/handlers-controller.d.d.ts +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/experimental/handlers-controller.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/experimental/on-unhandled-frame.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/experimental/on-unhandled-frame.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/experimental/request-utils.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/experimental/request-utils.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/experimental/sources/interceptor-source.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/experimental/sources/interceptor-source.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/experimental/sources/network-source.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/experimental/sources/network-source.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/handlers/HttpHandler.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/handlers/HttpHandler.d.d.ts +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/handlers/HttpHandler.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/handlers/RequestHandler.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/handlers/RequestHandler.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/handlers/WebSocketHandler.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/handlers/WebSocketHandler.d.d.ts +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/handlers/WebSocketHandler.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/http.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/http.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/index.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/index.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/isCommonAssetRequest.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/isCommonAssetRequest.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/sharedOptions.d.d.ts +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/typeUtils.d.d.ts +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/utils/HttpResponse/decorators.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/utils/HttpResponse/decorators.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/utils/cookieStore.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/utils/cookieStore.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/utils/executeHandlers.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/utils/executeHandlers.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/Disposable.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/Disposable.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/attachSiblingHandlers.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/attachSiblingHandlers.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/checkGlobals.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/checkGlobals.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/devUtils.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/devUtils.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/getCallFrame.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/getCallFrame.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isIterable.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isIterable.d.d.ts +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isIterable.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isStringEqual.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isStringEqual.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/jsonParse.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/jsonParse.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/toReadonlyArray.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/toReadonlyArray.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/getStatusCodeColor.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/getStatusCodeColor.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/getTimestamp.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/getTimestamp.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/serializeRequest.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/serializeRequest.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/serializeResponse.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/serializeResponse.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/utils/matching/matchRequestUrl.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/utils/matching/matchRequestUrl.d.d.ts +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/utils/matching/matchRequestUrl.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/utils/matching/normalizePath.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/utils/matching/normalizePath.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/getRequestCookies.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/getRequestCookies.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/onUnhandledRequest.d.d.ts +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/storeResponseCookies.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/storeResponseCookies.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/toPublicUrl.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/toPublicUrl.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/utils/url/cleanUrl.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/utils/url/cleanUrl.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/utils/url/getAbsoluteUrl.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/utils/url/getAbsoluteUrl.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/utils/url/isAbsoluteUrl.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/core/utils/url/isAbsoluteUrl.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/node/index.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/node/index.d.d.ts +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/node/index.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/shims/cookie.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/shims/cookie.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/shims/statuses.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.14.6_@types_node@20.19.40_typescript@5.4.5 → msw@2.14.6_@types_node@20.19.41_typescript@5.4.5}/node_modules/msw/lib/shims/statuses.js +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var e=require("react/jsx-runtime"),t=require("react"),
|
|
1
|
+
"use strict";var e=require("react/jsx-runtime"),t=require("react"),a=require("@mui/material/Alert"),r=require("@mui/material/AlertTitle"),i=require("@mui/material/Box"),n=require("@mui/material/styles"),s=require("../../../icons/AI/index.cjs.js"),l=require("../../../icons/Alert/index.cjs.js"),c=require("../../../icons/CancelCircle/index.cjs.js"),o=require("../../../icons/CheckmarkCircle/index.cjs.js"),d=require("../../../icons/Diamond/index.cjs.js"),m=require("../../atoms/Button/index.cjs.js"),p=require("../../atoms/Link/index.cjs.js");const u={neutral:t=>e.jsx(d,{color:t.palette.semantic.icon["icon-strong"]}),brand:t=>e.jsx(d,{color:t.palette.semantic.icon["icon-primary"]}),error:t=>e.jsx(c,{color:t.palette.semantic.icon["icon-error"]}),warning:t=>e.jsx(l,{color:t.palette.semantic.icon["icon-warning"]}),success:t=>e.jsx(o,{color:t.palette.semantic.icon["icon-success"]}),ai:t=>e.jsx(s,{color:t.palette.semantic.icon["icon-ai"]})},x={background:{neutral:e=>e.palette.semantic.fill["fill-weak"],brand:e=>e.palette.semantic.fill["fill-primary-weak"],error:e=>e.palette.semantic.fill["fill-error-weak"],warning:e=>e.palette.semantic.fill["fill-warning-weak"],success:e=>e.palette.semantic.fill["fill-success-weak"],ai:e=>e.palette.semantic.fill["fill-ai-weak"]},border:{neutral:e=>e.palette.semantic.stroke["stroke-weak"],brand:e=>e.palette.semantic.stroke["stroke-primary-weak"],error:e=>e.palette.semantic.stroke["stroke-error-weak"],warning:e=>e.palette.semantic.stroke["stroke-warning-weak"],success:e=>e.palette.semantic.stroke["stroke-success-weak"],ai:e=>e.palette.semantic.stroke["stroke-ai-weak"]},header:{neutral:e=>e.palette.semantic.text["text-strong"],brand:e=>e.palette.semantic.text["text-strong"],error:e=>e.palette.semantic.text["text-strong"],warning:e=>e.palette.semantic.text["text-strong"],success:e=>e.palette.semantic.text["text-strong"],ai:e=>e.palette.semantic.text["text-strong"]},text:{neutral:e=>e.palette.semantic.text["text-weak"],brand:e=>e.palette.semantic.text["text-weak"],error:e=>e.palette.semantic.text["text-weak"],warning:e=>e.palette.semantic.text["text-weak"],success:e=>e.palette.semantic.text["text-weak"],ai:e=>e.palette.semantic.text["text-weak"]},icon:{neutral:e=>e.palette.semantic.icon["icon-strong"],brand:e=>e.palette.semantic.icon["icon-primary"],error:e=>e.palette.semantic.icon["icon-error"],warning:e=>e.palette.semantic.icon["icon-warning"],success:e=>e.palette.semantic.icon["icon-success"],ai:e=>e.palette.semantic.icon["icon-ai"]}},k=(e,t)=>u[t](e),w=(e,t)=>x.background[t](e),j=(e,t)=>x.border[t](e),g=(e,t)=>x.header[t](e),b=(e,t)=>x.text[t](e),f=n.styled(i)(()=>({marginTop:"16px"})),y=n.styled(p.Link)(()=>({padding:0})),h=n.styled(a,{shouldForwardProp:e=>!["tone"].includes(e)})(({theme:e,tone:t})=>({backgroundColor:w(e,t),border:"1px solid",borderColor:j(e,t),color:b(e,t),"& .MuiAlert-icon":{color:x.icon[t](e)}})),q=t.memo(({title:a,description:s,children:l,tone:c="neutral",icon:o,onClose:d,className:p,fdKey:u,action:x})=>{const w=n.useTheme(),j=t.useId(),b=l??s,q=Boolean(a),C=null!=b,A=q?`alert-title-${u??j}`:void 0,$=C?`alert-description-${u??j}`:void 0;return e.jsxs(h,{"aria-describedby":$,"aria-labelledby":A,className:p,"data-fd":u,icon:void 0===o?e.jsx("span",{"data-fd":"alert-icon",children:k(w,c)}):o??!1,onClose:d,role:"alert",tone:c,children:[q&&e.jsx(r,{color:g(w,c),id:A,children:a}),C&&e.jsx(i,{id:$,children:b}),(()=>{if(!x)return null;const t=a?`${x.label} - ${a}`:x.label;if("link"===x.kind){const a=x.fdKey??`action-link-${x.label.replace(/\s+/g,"-").toLowerCase()}`;return e.jsx(f,{children:e.jsx(y,{"aria-label":t,fdKey:a,href:x.href,rel:x.rel,target:x.target,children:x.label})})}const r=x.fdKey??`action-button-${x.label.replace(/\s+/g,"-").toLowerCase()}`;return e.jsx(f,{children:e.jsx(m.Button,{"aria-label":t,fdKey:r,onClick:x.onClick,size:"small",variant:x.type??"primary",children:x.label})})})()]})});q.displayName="Alert",module.exports=q;
|
|
2
2
|
//# sourceMappingURL=index.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs.js","sources":["../../../../src/components/molecules/Alert/index.tsx"],"sourcesContent":["import { memo, type ReactNode, useId } from 'react';\n\nimport MuiAlert from '@mui/material/Alert';\nimport MuiAlertTitle from '@mui/material/AlertTitle';\nimport Box from '@mui/material/Box';\nimport { styled, type Theme, useTheme } from '@mui/material/styles';\n\nimport AlertIcon from '../../../icons/Alert';\nimport CancelCircleIcon from '../../../icons/CancelCircle';\nimport CheckmarkCircleIcon from '../../../icons/CheckmarkCircle';\nimport DiamondIcon from '../../../icons/Diamond';\nimport InformationCircleIcon from '../../../icons/InformationCircle';\nimport Button from '../../atoms/Button';\nimport type { ButtonType } from '../../atoms/Button/getButtonStyles';\nimport Link from '../../atoms/Link';\n\n/** Visual tone of the alert */\nexport type AlertTones =\n | 'brand-inverse'\n | 'brand'\n | 'destructive'\n | 'information'\n | 'neutral-inverse'\n | 'neutral'\n | 'success'\n | 'warning';\n\n/** Props for the Alert component */\nexport interface AlertProps {\n /** Optional main heading text of the alert */\n title?: string;\n /** Detailed description text of the alert */\n description?: string;\n /** Optional custom content; when provided it replaces description */\n children?: ReactNode;\n /** Visual tone of the alert */\n tone?: AlertTones;\n /** Optional icon override; pass null to hide the icon */\n icon?: ReactNode | null;\n /** Callback function when the alert is closed */\n onClose?: () => void;\n /** Action configuration (button by default, or link) */\n action?: AlertAction;\n /** Additional CSS class names */\n className?: string;\n /** Test ID for testing and automation */\n fdKey?: string;\n}\n\nexport type AlertAction =\n | {\n /** Defaults to button when omitted */\n kind?: 'button';\n /** Text label for the action button */\n label: string;\n /** Visual style of the action button */\n type?: ButtonType;\n /** Callback function when the action button is clicked */\n onClick: () => void;\n /** Test ID for the action button */\n fdKey?: string;\n }\n | {\n /** Render a link action */\n kind: 'link';\n /** Text label for the link */\n label: string;\n /** Destination URL */\n href: string;\n /** Target for the link */\n target?: '_blank' | '_parent' | '_self' | '_top';\n /** rel attribute for the link */\n rel?: string;\n /** Test ID for the link */\n fdKey?: string;\n };\n\nconst ICONS = {\n neutral: (theme: Theme): JSX.Element => <DiamondIcon color={theme.palette.semantic.icon['icon-strong']} />,\n brand: (theme: Theme): JSX.Element => <DiamondIcon color={theme.palette.semantic.icon['icon-primary']} />,\n destructive: (theme: Theme): JSX.Element => (\n <CancelCircleIcon color={theme.palette.semantic.icon['icon-error']} />\n ),\n warning: (theme: Theme): JSX.Element => <AlertIcon color={theme.palette.semantic.icon['icon-warning']} />,\n information: (theme: Theme): JSX.Element => (\n <InformationCircleIcon color={theme.palette.semantic.icon['icon-information']} />\n ),\n 'neutral-inverse': (theme: Theme): JSX.Element => (\n <DiamondIcon color={theme.palette.semantic.icon['icon-inverse']} />\n ),\n 'brand-inverse': (theme: Theme): JSX.Element => (\n <DiamondIcon color={theme.palette.semantic.icon['icon-inverse']} />\n ),\n success: (theme: Theme): JSX.Element => (\n <CheckmarkCircleIcon color={theme.palette.semantic.icon['icon-success']} />\n ),\n};\n\nconst COLOURS = {\n background: {\n neutral: (theme: Theme): string => theme.palette.semantic.fill['fill-weak'],\n brand: (theme: Theme): string => theme.palette.semantic.fill['fill-primary-weak'],\n destructive: (theme: Theme): string => theme.palette.semantic.fill['fill-error-weak'],\n warning: (theme: Theme): string => theme.palette.semantic.fill['fill-warning-weak'],\n success: (theme: Theme): string => theme.palette.semantic.fill['fill-success-weak'],\n information: (theme: Theme): string => theme.palette.semantic.fill['fill-information-weak'],\n 'neutral-inverse': (theme: Theme): string => theme.palette.semantic.background['background-inverse'],\n 'brand-inverse': (theme: Theme): string => theme.palette.semantic.fill['fill-primary-strong'],\n },\n border: {\n neutral: (theme: Theme): string => theme.palette.semantic.stroke['stroke-weak'],\n brand: (theme: Theme): string => theme.palette.semantic.stroke['stroke-primary-weak'],\n destructive: (theme: Theme): string => theme.palette.semantic.stroke['stroke-error-weak'],\n warning: (theme: Theme): string => theme.palette.semantic.stroke['stroke-warning-weak'],\n success: (theme: Theme): string => theme.palette.semantic.stroke['stroke-success-weak'],\n information: (theme: Theme): string => theme.palette.semantic.stroke['stroke-information-weak'],\n 'neutral-inverse': (_theme: Theme): string => 'transparent',\n 'brand-inverse': (_theme: Theme): string => 'transparent',\n },\n header: {\n neutral: (theme: Theme): string => theme.palette.semantic.text['text-strong'],\n brand: (theme: Theme): string => theme.palette.semantic.text['text-strong'],\n destructive: (theme: Theme): string => theme.palette.semantic.text['text-strong'],\n warning: (theme: Theme): string => theme.palette.semantic.text['text-strong'],\n success: (theme: Theme): string => theme.palette.semantic.text['text-strong'],\n information: (theme: Theme): string => theme.palette.semantic.text['text-strong'],\n 'neutral-inverse': (theme: Theme): string => theme.palette.semantic.text['text-inverse-strong'],\n 'brand-inverse': (theme: Theme): string => theme.palette.semantic.text['text-inverse-strong'],\n },\n text: {\n neutral: (theme: Theme): string => theme.palette.semantic.text['text-weak'],\n brand: (theme: Theme): string => theme.palette.semantic.text['text-weak'],\n destructive: (theme: Theme): string => theme.palette.semantic.text['text-weak'],\n warning: (theme: Theme): string => theme.palette.semantic.text['text-weak'],\n success: (theme: Theme): string => theme.palette.semantic.text['text-weak'],\n information: (theme: Theme): string => theme.palette.semantic.text['text-weak'],\n 'neutral-inverse': (theme: Theme): string => theme.palette.semantic.text['text-inverse-weak'],\n 'brand-inverse': (theme: Theme): string => theme.palette.semantic.text['text-inverse-weak'],\n },\n icon: {\n neutral: (theme: Theme): string => theme.palette.semantic.icon['icon-strong'],\n brand: (theme: Theme): string => theme.palette.semantic.icon['icon-primary'],\n destructive: (theme: Theme): string => theme.palette.semantic.icon['icon-error'],\n warning: (theme: Theme): string => theme.palette.semantic.icon['icon-warning'],\n success: (theme: Theme): string => theme.palette.semantic.icon['icon-success'],\n information: (theme: Theme): string => theme.palette.semantic.icon['icon-information'],\n 'neutral-inverse': (theme: Theme): string => theme.palette.semantic.icon['icon-inverse'],\n 'brand-inverse': (theme: Theme): string => theme.palette.semantic.icon['icon-inverse'],\n },\n};\n\nconst getIcon = (theme: Theme, tone: AlertTones): JSX.Element => {\n return ICONS[tone](theme);\n};\n\nconst getBackgroundColour = (theme: Theme, tone: AlertTones): string => {\n return COLOURS.background[tone](theme);\n};\n\nconst getBorderColour = (theme: Theme, tone: AlertTones): string => {\n return COLOURS.border[tone](theme);\n};\n\nconst getHeaderColour = (theme: Theme, tone: AlertTones): string => {\n return COLOURS.header[tone](theme);\n};\n\nconst getTextColour = (theme: Theme, tone: AlertTones): string => {\n return COLOURS.text[tone](theme);\n};\n\ninterface StyledAlertProps {\n tone: AlertTones;\n}\n\nconst StyledActionContainer = styled(Box)(() => ({\n marginTop: '16px',\n}));\n\nconst StyledActionLink = styled(Link)(() => ({\n padding: 0,\n}));\n\nconst StyledAlert = styled(MuiAlert, {\n shouldForwardProp: (prop) => !['tone'].includes(prop as string),\n})<StyledAlertProps>(({ theme, tone }) => ({\n backgroundColor: getBackgroundColour(theme, tone),\n border: '1px solid',\n borderColor: getBorderColour(theme, tone),\n color: getTextColour(theme, tone),\n '& .MuiAlert-icon': {\n color: COLOURS.icon[tone](theme),\n },\n}));\n\n/**\n * Alert component is used to display important messages or notifications to users.\n * It supports different visual tones to convey different semantic meanings and can include\n * an optional action button and close button.\n *\n * The component is wrapped with React.memo to optimize performance by preventing unnecessary\n * re-renders when the component's props haven't changed, which is beneficial for components\n * that may be used frequently throughout the application.\n */\nconst Alert = memo(\n ({\n title,\n description,\n children,\n tone = 'neutral',\n icon,\n onClose,\n className,\n fdKey,\n action,\n }: AlertProps) => {\n const theme = useTheme();\n const alertId = useId();\n const content = children ?? description;\n const hasTitle = Boolean(title);\n const hasContent = content !== undefined && content !== null;\n const titleId = hasTitle ? `alert-title-${fdKey ?? alertId}` : undefined;\n const descriptionId = hasContent ? `alert-description-${fdKey ?? alertId}` : undefined;\n\n const renderAction = (): JSX.Element | null => {\n if (!action) {\n return null;\n }\n\n const actionLabel = title ? `${action.label} - ${title}` : action.label;\n\n if (action.kind === 'link') {\n const actionFdKey = action.fdKey ?? `action-link-${action.label.replace(/\\s+/g, '-').toLowerCase()}`;\n\n return (\n <StyledActionContainer>\n <StyledActionLink\n aria-label={actionLabel}\n fdKey={actionFdKey}\n href={action.href}\n rel={action.rel}\n target={action.target}\n >\n {action.label}\n </StyledActionLink>\n </StyledActionContainer>\n );\n }\n\n const actionFdKey = action.fdKey ?? `action-button-${action.label.replace(/\\s+/g, '-').toLowerCase()}`;\n\n return (\n <StyledActionContainer>\n <Button\n aria-label={actionLabel}\n fdKey={actionFdKey}\n onClick={action.onClick}\n size=\"small\"\n variant={action.type ?? 'primary'}\n >\n {action.label}\n </Button>\n </StyledActionContainer>\n );\n };\n\n return (\n <StyledAlert\n aria-describedby={descriptionId}\n aria-labelledby={titleId}\n className={className}\n data-fd={fdKey}\n icon={icon === undefined ? <span data-fd=\"alert-icon\">{getIcon(theme, tone)}</span> : (icon ?? false)}\n onClose={onClose}\n role=\"alert\"\n tone={tone}\n >\n {hasTitle && (\n <MuiAlertTitle color={getHeaderColour(theme, tone)} id={titleId}>\n {title}\n </MuiAlertTitle>\n )}\n {hasContent && <Box id={descriptionId}>{content}</Box>}\n {renderAction()}\n </StyledAlert>\n );\n },\n);\n\nAlert.displayName = 'Alert';\n\nexport default Alert;\n"],"names":["ICONS","neutral","theme","_jsx","DiamondIcon","color","palette","semantic","icon","brand","destructive","CancelCircleIcon","warning","AlertIcon","information","InformationCircleIcon","success","CheckmarkCircleIcon","COLOURS","background","fill","border","stroke","_theme","header","text","getIcon","tone","getBackgroundColour","getBorderColour","getHeaderColour","getTextColour","StyledActionContainer","styled","Box","marginTop","StyledActionLink","Link","padding","StyledAlert","MuiAlert","shouldForwardProp","prop","includes","backgroundColor","borderColor","Alert","memo","title","description","children","onClose","className","fdKey","action","useTheme","alertId","useId","content","hasTitle","Boolean","hasContent","titleId","undefined","descriptionId","_jsxs","role","MuiAlertTitle","id","actionLabel","label","kind","actionFdKey","replace","toLowerCase","href","rel","target","Button","onClick","size","variant","type","renderAction","displayName"],"mappings":"6iBA6EA,MAAMA,EAAQ,CACZC,QAAUC,GAA8BC,EAAAA,IAACC,EAAW,CAAC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BR,GAASG,SAAYO,EA4C7E,OACEE,EAAAA,KAAC1B,EAAW,CAAA,mBACQyB,EAAa,kBACdF,EACjBV,UAAWA,EAAS,UACXC,EACT7C,UAAeuD,IAATvD,EAAqBL,wBAAc,aAAY+C,SAAExB,EAAQxB,EAAOyB,KAAiBnB,IAAQ,EAC/F2C,QAASA,EACTe,KAAK,QACLvC,KAAMA,YAELgC,GACCxD,EAAAA,IAACgE,GAAc9D,MAAOyB,EAAgB5B,EAAOyB,GAAOyC,GAAIN,EAAOZ,SAC5DF,IAGJa,GAAc1D,EAAAA,IAAC+B,EAAG,CAACkC,GAAIJ,EAAad,SAAGQ,IA1DvB,MACnB,IAAKJ,EACH,OAAO,KAGT,MAAMe,EAAcrB,EAAQ,GAAGM,EAAOgB,WAAWtB,IAAUM,EAAOgB,MAElE,GAAoB,SAAhBhB,EAAOiB,KAAiB,CAC1B,MAAMC,EAAclB,EAAOD,OAAS,eAAeC,EAAOgB,MAAMG,QAAQ,OAAQ,KAAKC,gBAErF,OACEvE,MAAC6B,EAAqB,CAAAkB,SACpB/C,EAAAA,IAACiC,EAAgB,CAAA,aACHiC,EACZhB,MAAOmB,EACPG,KAAMrB,EAAOqB,KACbC,IAAKtB,EAAOsB,IACZC,OAAQvB,EAAOuB,gBAEdvB,EAAOgB,SAIhB,CAEA,MAAME,EAAclB,EAAOD,OAAS,iBAAiBC,EAAOgB,MAAMG,QAAQ,OAAQ,KAAKC,gBAEvF,OACEvE,MAAC6B,EAAqB,CAAAkB,SACpB/C,EAAAA,IAAC2E,SAAM,CAAA,aACOT,EACZhB,MAAOmB,EACPO,QAASzB,EAAOyB,QAChBC,KAAK,QACLC,QAAS3B,EAAO4B,MAAQ,mBAEvB5B,EAAOgB,WAuBXa,QAMTrC,EAAMsC,YAAc"}
|
|
1
|
+
{"version":3,"file":"index.cjs.js","sources":["../../../../src/components/molecules/Alert/index.tsx"],"sourcesContent":["import { memo, type ReactNode, useId } from 'react';\n\nimport MuiAlert from '@mui/material/Alert';\nimport MuiAlertTitle from '@mui/material/AlertTitle';\nimport Box from '@mui/material/Box';\nimport { styled, type Theme, useTheme } from '@mui/material/styles';\n\nimport AiIcon from '../../../icons/AI';\nimport AlertIcon from '../../../icons/Alert';\nimport CancelCircleIcon from '../../../icons/CancelCircle';\nimport CheckmarkCircleIcon from '../../../icons/CheckmarkCircle';\nimport DiamondIcon from '../../../icons/Diamond';\nimport Button from '../../atoms/Button';\nimport type { ButtonType } from '../../atoms/Button/getButtonStyles';\nimport Link from '../../atoms/Link';\n\n/** Visual tone of the alert */\nexport type AlertTones = 'ai' | 'brand' | 'error' | 'neutral' | 'success' | 'warning';\n\n/** Props for the Alert component */\nexport interface AlertProps {\n /** Optional main heading text of the alert */\n title?: string;\n /** Detailed description text of the alert */\n description?: string;\n /** Optional custom content; when provided it replaces description */\n children?: ReactNode;\n /** Visual tone of the alert */\n tone?: AlertTones;\n /** Optional icon override; pass null to hide the icon */\n icon?: ReactNode | null;\n /** Callback function when the alert is closed */\n onClose?: () => void;\n /** Action configuration (button by default, or link) */\n action?: AlertAction;\n /** Additional CSS class names */\n className?: string;\n /** Test ID for testing and automation */\n fdKey?: string;\n}\n\nexport type AlertAction =\n | {\n /** Defaults to button when omitted */\n kind?: 'button';\n /** Text label for the action button */\n label: string;\n /** Visual style of the action button */\n type?: ButtonType;\n /** Callback function when the action button is clicked */\n onClick: () => void;\n /** Test ID for the action button */\n fdKey?: string;\n }\n | {\n /** Render a link action */\n kind: 'link';\n /** Text label for the link */\n label: string;\n /** Destination URL */\n href: string;\n /** Target for the link */\n target?: '_blank' | '_parent' | '_self' | '_top';\n /** rel attribute for the link */\n rel?: string;\n /** Test ID for the link */\n fdKey?: string;\n };\n\nconst ICONS = {\n neutral: (theme: Theme): JSX.Element => <DiamondIcon color={theme.palette.semantic.icon['icon-strong']} />,\n brand: (theme: Theme): JSX.Element => <DiamondIcon color={theme.palette.semantic.icon['icon-primary']} />,\n error: (theme: Theme): JSX.Element => (\n <CancelCircleIcon color={theme.palette.semantic.icon['icon-error']} />\n ),\n warning: (theme: Theme): JSX.Element => <AlertIcon color={theme.palette.semantic.icon['icon-warning']} />,\n success: (theme: Theme): JSX.Element => (\n <CheckmarkCircleIcon color={theme.palette.semantic.icon['icon-success']} />\n ),\n ai: (theme: Theme): JSX.Element => <AiIcon color={theme.palette.semantic.icon['icon-ai']} />,\n};\n\nconst COLOURS = {\n background: {\n neutral: (theme: Theme): string => theme.palette.semantic.fill['fill-weak'],\n brand: (theme: Theme): string => theme.palette.semantic.fill['fill-primary-weak'],\n error: (theme: Theme): string => theme.palette.semantic.fill['fill-error-weak'],\n warning: (theme: Theme): string => theme.palette.semantic.fill['fill-warning-weak'],\n success: (theme: Theme): string => theme.palette.semantic.fill['fill-success-weak'],\n ai: (theme: Theme): string => theme.palette.semantic.fill['fill-ai-weak'],\n },\n border: {\n neutral: (theme: Theme): string => theme.palette.semantic.stroke['stroke-weak'],\n brand: (theme: Theme): string => theme.palette.semantic.stroke['stroke-primary-weak'],\n error: (theme: Theme): string => theme.palette.semantic.stroke['stroke-error-weak'],\n warning: (theme: Theme): string => theme.palette.semantic.stroke['stroke-warning-weak'],\n success: (theme: Theme): string => theme.palette.semantic.stroke['stroke-success-weak'],\n ai: (theme: Theme): string => theme.palette.semantic.stroke['stroke-ai-weak'],\n },\n header: {\n neutral: (theme: Theme): string => theme.palette.semantic.text['text-strong'],\n brand: (theme: Theme): string => theme.palette.semantic.text['text-strong'],\n error: (theme: Theme): string => theme.palette.semantic.text['text-strong'],\n warning: (theme: Theme): string => theme.palette.semantic.text['text-strong'],\n success: (theme: Theme): string => theme.palette.semantic.text['text-strong'],\n ai: (theme: Theme): string => theme.palette.semantic.text['text-strong'],\n },\n text: {\n neutral: (theme: Theme): string => theme.palette.semantic.text['text-weak'],\n brand: (theme: Theme): string => theme.palette.semantic.text['text-weak'],\n error: (theme: Theme): string => theme.palette.semantic.text['text-weak'],\n warning: (theme: Theme): string => theme.palette.semantic.text['text-weak'],\n success: (theme: Theme): string => theme.palette.semantic.text['text-weak'],\n ai: (theme: Theme): string => theme.palette.semantic.text['text-weak'],\n },\n icon: {\n neutral: (theme: Theme): string => theme.palette.semantic.icon['icon-strong'],\n brand: (theme: Theme): string => theme.palette.semantic.icon['icon-primary'],\n error: (theme: Theme): string => theme.palette.semantic.icon['icon-error'],\n warning: (theme: Theme): string => theme.palette.semantic.icon['icon-warning'],\n success: (theme: Theme): string => theme.palette.semantic.icon['icon-success'],\n ai: (theme: Theme): string => theme.palette.semantic.icon['icon-ai'],\n },\n};\n\nconst getIcon = (theme: Theme, tone: AlertTones): JSX.Element => {\n return ICONS[tone](theme);\n};\n\nconst getBackgroundColour = (theme: Theme, tone: AlertTones): string => {\n return COLOURS.background[tone](theme);\n};\n\nconst getBorderColour = (theme: Theme, tone: AlertTones): string => {\n return COLOURS.border[tone](theme);\n};\n\nconst getHeaderColour = (theme: Theme, tone: AlertTones): string => {\n return COLOURS.header[tone](theme);\n};\n\nconst getTextColour = (theme: Theme, tone: AlertTones): string => {\n return COLOURS.text[tone](theme);\n};\n\ninterface StyledAlertProps {\n tone: AlertTones;\n}\n\nconst StyledActionContainer = styled(Box)(() => ({\n marginTop: '16px',\n}));\n\nconst StyledActionLink = styled(Link)(() => ({\n padding: 0,\n}));\n\nconst StyledAlert = styled(MuiAlert, {\n shouldForwardProp: (prop) => !['tone'].includes(prop as string),\n})<StyledAlertProps>(({ theme, tone }) => ({\n backgroundColor: getBackgroundColour(theme, tone),\n border: '1px solid',\n borderColor: getBorderColour(theme, tone),\n color: getTextColour(theme, tone),\n '& .MuiAlert-icon': {\n color: COLOURS.icon[tone](theme),\n },\n}));\n\n/**\n * Alert component is used to display important messages or notifications to users.\n * It supports different visual tones to convey different semantic meanings and can include\n * an optional action button and close button.\n *\n * The component is wrapped with React.memo to optimize performance by preventing unnecessary\n * re-renders when the component's props haven't changed, which is beneficial for components\n * that may be used frequently throughout the application.\n */\nconst Alert = memo(\n ({\n title,\n description,\n children,\n tone = 'neutral',\n icon,\n onClose,\n className,\n fdKey,\n action,\n }: AlertProps) => {\n const theme = useTheme();\n const alertId = useId();\n const content = children ?? description;\n const hasTitle = Boolean(title);\n const hasContent = content !== undefined && content !== null;\n const titleId = hasTitle ? `alert-title-${fdKey ?? alertId}` : undefined;\n const descriptionId = hasContent ? `alert-description-${fdKey ?? alertId}` : undefined;\n\n const renderAction = (): JSX.Element | null => {\n if (!action) {\n return null;\n }\n\n const actionLabel = title ? `${action.label} - ${title}` : action.label;\n\n if (action.kind === 'link') {\n const actionFdKey = action.fdKey ?? `action-link-${action.label.replace(/\\s+/g, '-').toLowerCase()}`;\n\n return (\n <StyledActionContainer>\n <StyledActionLink\n aria-label={actionLabel}\n fdKey={actionFdKey}\n href={action.href}\n rel={action.rel}\n target={action.target}\n >\n {action.label}\n </StyledActionLink>\n </StyledActionContainer>\n );\n }\n\n const actionFdKey = action.fdKey ?? `action-button-${action.label.replace(/\\s+/g, '-').toLowerCase()}`;\n\n return (\n <StyledActionContainer>\n <Button\n aria-label={actionLabel}\n fdKey={actionFdKey}\n onClick={action.onClick}\n size=\"small\"\n variant={action.type ?? 'primary'}\n >\n {action.label}\n </Button>\n </StyledActionContainer>\n );\n };\n\n return (\n <StyledAlert\n aria-describedby={descriptionId}\n aria-labelledby={titleId}\n className={className}\n data-fd={fdKey}\n icon={icon === undefined ? <span data-fd=\"alert-icon\">{getIcon(theme, tone)}</span> : (icon ?? false)}\n onClose={onClose}\n role=\"alert\"\n tone={tone}\n >\n {hasTitle && (\n <MuiAlertTitle color={getHeaderColour(theme, tone)} id={titleId}>\n {title}\n </MuiAlertTitle>\n )}\n {hasContent && <Box id={descriptionId}>{content}</Box>}\n {renderAction()}\n </StyledAlert>\n );\n },\n);\n\nAlert.displayName = 'Alert';\n\nexport default Alert;\n"],"names":["ICONS","neutral","theme","_jsx","DiamondIcon","color","palette","semantic","icon","brand","error","CancelCircleIcon","warning","AlertIcon","success","CheckmarkCircleIcon","ai","AiIcon","COLOURS","background","fill","border","stroke","header","text","getIcon","tone","getBackgroundColour","getBorderColour","getHeaderColour","getTextColour","StyledActionContainer","styled","Box","marginTop","StyledActionLink","Link","padding","StyledAlert","MuiAlert","shouldForwardProp","prop","includes","backgroundColor","borderColor","Alert","memo","title","description","children","onClose","className","fdKey","action","useTheme","alertId","useId","content","hasTitle","Boolean","hasContent","titleId","undefined","descriptionId","_jsxs","role","MuiAlertTitle","id","actionLabel","label","kind","actionFdKey","replace","toLowerCase","href","rel","target","Button","onClick","size","variant","type","renderAction","displayName"],"mappings":"8hBAqEA,MAAMA,EAAQ,CACZC,QAAUC,GAA8BC,EAAAA,IAACC,EAAW,CAACC,MAAOH,EAAMI,QAAQC,SAASC,KAAK,iBACxFC,MAAQP,GAA8BC,EAAAA,IAACC,EAAW,CAACC,MAAOH,EAAMI,QAAQC,SAASC,KAAK,kBACtFE,MAAQR,GACNC,MAACQ,EAAgB,CAACN,MAAOH,EAAMI,QAAQC,SAASC,KAAK,gBAEvDI,QAAUV,GAA8BC,EAAAA,IAACU,EAAS,CAACR,MAAOH,EAAMI,QAAQC,SAASC,KAAK,kBACtFM,QAAUZ,GACRC,MAACY,EAAmB,CAACV,MAAOH,EAAMI,QAAQC,SAASC,KAAK,kBAE1DQ,GAAKd,GAA8BC,EAAAA,IAACc,EAAM,CAACZ,MAAOH,EAAMI,QAAQC,SAASC,KAAK,cAG1EU,EAAU,CACdC,WAAY,CACVlB,QAAUC,GAAyBA,EAAMI,QAAQC,SAASa,KAAK,aAC/DX,MAAQP,GAAyBA,EAAMI,QAAQC,SAASa,KAAK,qBAC7DV,MAAQR,GAAyBA,EAAMI,QAAQC,SAASa,KAAK,mBAC7DR,QAAUV,GAAyBA,EAAMI,QAAQC,SAASa,KAAK,qBAC/DN,QAAUZ,GAAyBA,EAAMI,QAAQC,SAASa,KAAK,qBAC/DJ,GAAKd,GAAyBA,EAAMI,QAAQC,SAASa,KAAK,iBAE5DC,OAAQ,CACNpB,QAAUC,GAAyBA,EAAMI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C,QAASA,EACTe,KAAK,QACLvC,KAAMA,YAELgC,GACCvD,EAAAA,IAAC+D,GAAc7D,MAAOwB,EAAgB3B,EAAOwB,GAAOyC,GAAIN,EAAOZ,SAC5DF,IAGJa,GAAczD,EAAAA,IAAC8B,EAAG,CAACkC,GAAIJ,EAAad,SAAGQ,IA1DvB,MACnB,IAAKJ,EACH,OAAO,KAGT,MAAMe,EAAcrB,EAAQ,GAAGM,EAAOgB,WAAWtB,IAAUM,EAAOgB,MAElE,GAAoB,SAAhBhB,EAAOiB,KAAiB,CAC1B,MAAMC,EAAclB,EAAOD,OAAS,eAAeC,EAAOgB,MAAMG,QAAQ,OAAQ,KAAKC,gBAErF,OACEtE,MAAC4B,EAAqB,CAAAkB,SACpB9C,EAAAA,IAACgC,EAAgB,CAAA,aACHiC,EACZhB,MAAOmB,EACPG,KAAMrB,EAAOqB,KACbC,IAAKtB,EAAOsB,IACZC,OAAQvB,EAAOuB,gBAEdvB,EAAOgB,SAIhB,CAEA,MAAME,EAAclB,EAAOD,OAAS,iBAAiBC,EAAOgB,MAAMG,QAAQ,OAAQ,KAAKC,gBAEvF,OACEtE,MAAC4B,EAAqB,CAAAkB,SACpB9C,EAAAA,IAAC0E,SAAM,CAAA,aACOT,EACZhB,MAAOmB,EACPO,QAASzB,EAAOyB,QAChBC,KAAK,QACLC,QAAS3B,EAAO4B,MAAQ,mBAEvB5B,EAAOgB,WAuBXa,QAMTrC,EAAMsC,YAAc"}
|
|
@@ -4,7 +4,7 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
|
4
4
|
import { ButtonType } from '../../atoms/Button/getButtonStyles.js';
|
|
5
5
|
|
|
6
6
|
/** Visual tone of the alert */
|
|
7
|
-
type AlertTones = '
|
|
7
|
+
type AlertTones = 'ai' | 'brand' | 'error' | 'neutral' | 'success' | 'warning';
|
|
8
8
|
/** Props for the Alert component */
|
|
9
9
|
interface AlertProps {
|
|
10
10
|
/** Optional main heading text of the alert */
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsxs as e,jsx as t}from"react/jsx-runtime";import{memo as
|
|
1
|
+
import{jsxs as e,jsx as t}from"react/jsx-runtime";import{memo as a,useId as r}from"react";import i from"@mui/material/Alert";import n from"@mui/material/AlertTitle";import o from"@mui/material/Box";import{styled as l,useTheme as c}from"@mui/material/styles";import s from"../../../icons/AI/index.js";import m from"../../../icons/Alert/index.js";import p from"../../../icons/CancelCircle/index.js";import d from"../../../icons/CheckmarkCircle/index.js";import k from"../../../icons/Diamond/index.js";import{Button as x}from"../../atoms/Button/index.js";import{Link as f}from"../../atoms/Link/index.js";const u={neutral:e=>t(k,{color:e.palette.semantic.icon["icon-strong"]}),brand:e=>t(k,{color:e.palette.semantic.icon["icon-primary"]}),error:e=>t(p,{color:e.palette.semantic.icon["icon-error"]}),warning:e=>t(m,{color:e.palette.semantic.icon["icon-warning"]}),success:e=>t(d,{color:e.palette.semantic.icon["icon-success"]}),ai:e=>t(s,{color:e.palette.semantic.icon["icon-ai"]})},w={background:{neutral:e=>e.palette.semantic.fill["fill-weak"],brand:e=>e.palette.semantic.fill["fill-primary-weak"],error:e=>e.palette.semantic.fill["fill-error-weak"],warning:e=>e.palette.semantic.fill["fill-warning-weak"],success:e=>e.palette.semantic.fill["fill-success-weak"],ai:e=>e.palette.semantic.fill["fill-ai-weak"]},border:{neutral:e=>e.palette.semantic.stroke["stroke-weak"],brand:e=>e.palette.semantic.stroke["stroke-primary-weak"],error:e=>e.palette.semantic.stroke["stroke-error-weak"],warning:e=>e.palette.semantic.stroke["stroke-warning-weak"],success:e=>e.palette.semantic.stroke["stroke-success-weak"],ai:e=>e.palette.semantic.stroke["stroke-ai-weak"]},header:{neutral:e=>e.palette.semantic.text["text-strong"],brand:e=>e.palette.semantic.text["text-strong"],error:e=>e.palette.semantic.text["text-strong"],warning:e=>e.palette.semantic.text["text-strong"],success:e=>e.palette.semantic.text["text-strong"],ai:e=>e.palette.semantic.text["text-strong"]},text:{neutral:e=>e.palette.semantic.text["text-weak"],brand:e=>e.palette.semantic.text["text-weak"],error:e=>e.palette.semantic.text["text-weak"],warning:e=>e.palette.semantic.text["text-weak"],success:e=>e.palette.semantic.text["text-weak"],ai:e=>e.palette.semantic.text["text-weak"]},icon:{neutral:e=>e.palette.semantic.icon["icon-strong"],brand:e=>e.palette.semantic.icon["icon-primary"],error:e=>e.palette.semantic.icon["icon-error"],warning:e=>e.palette.semantic.icon["icon-warning"],success:e=>e.palette.semantic.icon["icon-success"],ai:e=>e.palette.semantic.icon["icon-ai"]}},g=(e,t)=>u[t](e),b=(e,t)=>w.background[t](e),h=(e,t)=>w.border[t](e),y=(e,t)=>w.header[t](e),C=(e,t)=>w.text[t](e),j=l(o)(()=>({marginTop:"16px"})),A=l(f)(()=>({padding:0})),$=l(i,{shouldForwardProp:e=>!["tone"].includes(e)})(({theme:e,tone:t})=>({backgroundColor:b(e,t),border:"1px solid",borderColor:h(e,t),color:C(e,t),"& .MuiAlert-icon":{color:w.icon[t](e)}})),K=a(({title:a,description:i,children:l,tone:s="neutral",icon:m,onClose:p,className:d,fdKey:k,action:f})=>{const u=c(),w=r(),b=l??i,h=Boolean(a),C=null!=b,K=h?`alert-title-${k??w}`:void 0,v=C?`alert-description-${k??w}`:void 0;return e($,{"aria-describedby":v,"aria-labelledby":K,className:d,"data-fd":k,icon:void 0===m?t("span",{"data-fd":"alert-icon",children:g(u,s)}):m??!1,onClose:p,role:"alert",tone:s,children:[h&&t(n,{color:y(u,s),id:K,children:a}),C&&t(o,{id:v,children:b}),(()=>{if(!f)return null;const e=a?`${f.label} - ${a}`:f.label;if("link"===f.kind){const a=f.fdKey??`action-link-${f.label.replace(/\s+/g,"-").toLowerCase()}`;return t(j,{children:t(A,{"aria-label":e,fdKey:a,href:f.href,rel:f.rel,target:f.target,children:f.label})})}const r=f.fdKey??`action-button-${f.label.replace(/\s+/g,"-").toLowerCase()}`;return t(j,{children:t(x,{"aria-label":e,fdKey:r,onClick:f.onClick,size:"small",variant:f.type??"primary",children:f.label})})})()]})});K.displayName="Alert";export{K as default};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../src/components/molecules/Alert/index.tsx"],"sourcesContent":["import { memo, type ReactNode, useId } from 'react';\n\nimport MuiAlert from '@mui/material/Alert';\nimport MuiAlertTitle from '@mui/material/AlertTitle';\nimport Box from '@mui/material/Box';\nimport { styled, type Theme, useTheme } from '@mui/material/styles';\n\nimport AlertIcon from '../../../icons/Alert';\nimport CancelCircleIcon from '../../../icons/CancelCircle';\nimport CheckmarkCircleIcon from '../../../icons/CheckmarkCircle';\nimport DiamondIcon from '../../../icons/Diamond';\nimport InformationCircleIcon from '../../../icons/InformationCircle';\nimport Button from '../../atoms/Button';\nimport type { ButtonType } from '../../atoms/Button/getButtonStyles';\nimport Link from '../../atoms/Link';\n\n/** Visual tone of the alert */\nexport type AlertTones =\n | 'brand-inverse'\n | 'brand'\n | 'destructive'\n | 'information'\n | 'neutral-inverse'\n | 'neutral'\n | 'success'\n | 'warning';\n\n/** Props for the Alert component */\nexport interface AlertProps {\n /** Optional main heading text of the alert */\n title?: string;\n /** Detailed description text of the alert */\n description?: string;\n /** Optional custom content; when provided it replaces description */\n children?: ReactNode;\n /** Visual tone of the alert */\n tone?: AlertTones;\n /** Optional icon override; pass null to hide the icon */\n icon?: ReactNode | null;\n /** Callback function when the alert is closed */\n onClose?: () => void;\n /** Action configuration (button by default, or link) */\n action?: AlertAction;\n /** Additional CSS class names */\n className?: string;\n /** Test ID for testing and automation */\n fdKey?: string;\n}\n\nexport type AlertAction =\n | {\n /** Defaults to button when omitted */\n kind?: 'button';\n /** Text label for the action button */\n label: string;\n /** Visual style of the action button */\n type?: ButtonType;\n /** Callback function when the action button is clicked */\n onClick: () => void;\n /** Test ID for the action button */\n fdKey?: string;\n }\n | {\n /** Render a link action */\n kind: 'link';\n /** Text label for the link */\n label: string;\n /** Destination URL */\n href: string;\n /** Target for the link */\n target?: '_blank' | '_parent' | '_self' | '_top';\n /** rel attribute for the link */\n rel?: string;\n /** Test ID for the link */\n fdKey?: string;\n };\n\nconst ICONS = {\n neutral: (theme: Theme): JSX.Element => <DiamondIcon color={theme.palette.semantic.icon['icon-strong']} />,\n brand: (theme: Theme): JSX.Element => <DiamondIcon color={theme.palette.semantic.icon['icon-primary']} />,\n destructive: (theme: Theme): JSX.Element => (\n <CancelCircleIcon color={theme.palette.semantic.icon['icon-error']} />\n ),\n warning: (theme: Theme): JSX.Element => <AlertIcon color={theme.palette.semantic.icon['icon-warning']} />,\n information: (theme: Theme): JSX.Element => (\n <InformationCircleIcon color={theme.palette.semantic.icon['icon-information']} />\n ),\n 'neutral-inverse': (theme: Theme): JSX.Element => (\n <DiamondIcon color={theme.palette.semantic.icon['icon-inverse']} />\n ),\n 'brand-inverse': (theme: Theme): JSX.Element => (\n <DiamondIcon color={theme.palette.semantic.icon['icon-inverse']} />\n ),\n success: (theme: Theme): JSX.Element => (\n <CheckmarkCircleIcon color={theme.palette.semantic.icon['icon-success']} />\n ),\n};\n\nconst COLOURS = {\n background: {\n neutral: (theme: Theme): string => theme.palette.semantic.fill['fill-weak'],\n brand: (theme: Theme): string => theme.palette.semantic.fill['fill-primary-weak'],\n destructive: (theme: Theme): string => theme.palette.semantic.fill['fill-error-weak'],\n warning: (theme: Theme): string => theme.palette.semantic.fill['fill-warning-weak'],\n success: (theme: Theme): string => theme.palette.semantic.fill['fill-success-weak'],\n information: (theme: Theme): string => theme.palette.semantic.fill['fill-information-weak'],\n 'neutral-inverse': (theme: Theme): string => theme.palette.semantic.background['background-inverse'],\n 'brand-inverse': (theme: Theme): string => theme.palette.semantic.fill['fill-primary-strong'],\n },\n border: {\n neutral: (theme: Theme): string => theme.palette.semantic.stroke['stroke-weak'],\n brand: (theme: Theme): string => theme.palette.semantic.stroke['stroke-primary-weak'],\n destructive: (theme: Theme): string => theme.palette.semantic.stroke['stroke-error-weak'],\n warning: (theme: Theme): string => theme.palette.semantic.stroke['stroke-warning-weak'],\n success: (theme: Theme): string => theme.palette.semantic.stroke['stroke-success-weak'],\n information: (theme: Theme): string => theme.palette.semantic.stroke['stroke-information-weak'],\n 'neutral-inverse': (_theme: Theme): string => 'transparent',\n 'brand-inverse': (_theme: Theme): string => 'transparent',\n },\n header: {\n neutral: (theme: Theme): string => theme.palette.semantic.text['text-strong'],\n brand: (theme: Theme): string => theme.palette.semantic.text['text-strong'],\n destructive: (theme: Theme): string => theme.palette.semantic.text['text-strong'],\n warning: (theme: Theme): string => theme.palette.semantic.text['text-strong'],\n success: (theme: Theme): string => theme.palette.semantic.text['text-strong'],\n information: (theme: Theme): string => theme.palette.semantic.text['text-strong'],\n 'neutral-inverse': (theme: Theme): string => theme.palette.semantic.text['text-inverse-strong'],\n 'brand-inverse': (theme: Theme): string => theme.palette.semantic.text['text-inverse-strong'],\n },\n text: {\n neutral: (theme: Theme): string => theme.palette.semantic.text['text-weak'],\n brand: (theme: Theme): string => theme.palette.semantic.text['text-weak'],\n destructive: (theme: Theme): string => theme.palette.semantic.text['text-weak'],\n warning: (theme: Theme): string => theme.palette.semantic.text['text-weak'],\n success: (theme: Theme): string => theme.palette.semantic.text['text-weak'],\n information: (theme: Theme): string => theme.palette.semantic.text['text-weak'],\n 'neutral-inverse': (theme: Theme): string => theme.palette.semantic.text['text-inverse-weak'],\n 'brand-inverse': (theme: Theme): string => theme.palette.semantic.text['text-inverse-weak'],\n },\n icon: {\n neutral: (theme: Theme): string => theme.palette.semantic.icon['icon-strong'],\n brand: (theme: Theme): string => theme.palette.semantic.icon['icon-primary'],\n destructive: (theme: Theme): string => theme.palette.semantic.icon['icon-error'],\n warning: (theme: Theme): string => theme.palette.semantic.icon['icon-warning'],\n success: (theme: Theme): string => theme.palette.semantic.icon['icon-success'],\n information: (theme: Theme): string => theme.palette.semantic.icon['icon-information'],\n 'neutral-inverse': (theme: Theme): string => theme.palette.semantic.icon['icon-inverse'],\n 'brand-inverse': (theme: Theme): string => theme.palette.semantic.icon['icon-inverse'],\n },\n};\n\nconst getIcon = (theme: Theme, tone: AlertTones): JSX.Element => {\n return ICONS[tone](theme);\n};\n\nconst getBackgroundColour = (theme: Theme, tone: AlertTones): string => {\n return COLOURS.background[tone](theme);\n};\n\nconst getBorderColour = (theme: Theme, tone: AlertTones): string => {\n return COLOURS.border[tone](theme);\n};\n\nconst getHeaderColour = (theme: Theme, tone: AlertTones): string => {\n return COLOURS.header[tone](theme);\n};\n\nconst getTextColour = (theme: Theme, tone: AlertTones): string => {\n return COLOURS.text[tone](theme);\n};\n\ninterface StyledAlertProps {\n tone: AlertTones;\n}\n\nconst StyledActionContainer = styled(Box)(() => ({\n marginTop: '16px',\n}));\n\nconst StyledActionLink = styled(Link)(() => ({\n padding: 0,\n}));\n\nconst StyledAlert = styled(MuiAlert, {\n shouldForwardProp: (prop) => !['tone'].includes(prop as string),\n})<StyledAlertProps>(({ theme, tone }) => ({\n backgroundColor: getBackgroundColour(theme, tone),\n border: '1px solid',\n borderColor: getBorderColour(theme, tone),\n color: getTextColour(theme, tone),\n '& .MuiAlert-icon': {\n color: COLOURS.icon[tone](theme),\n },\n}));\n\n/**\n * Alert component is used to display important messages or notifications to users.\n * It supports different visual tones to convey different semantic meanings and can include\n * an optional action button and close button.\n *\n * The component is wrapped with React.memo to optimize performance by preventing unnecessary\n * re-renders when the component's props haven't changed, which is beneficial for components\n * that may be used frequently throughout the application.\n */\nconst Alert = memo(\n ({\n title,\n description,\n children,\n tone = 'neutral',\n icon,\n onClose,\n className,\n fdKey,\n action,\n }: AlertProps) => {\n const theme = useTheme();\n const alertId = useId();\n const content = children ?? description;\n const hasTitle = Boolean(title);\n const hasContent = content !== undefined && content !== null;\n const titleId = hasTitle ? `alert-title-${fdKey ?? alertId}` : undefined;\n const descriptionId = hasContent ? `alert-description-${fdKey ?? alertId}` : undefined;\n\n const renderAction = (): JSX.Element | null => {\n if (!action) {\n return null;\n }\n\n const actionLabel = title ? `${action.label} - ${title}` : action.label;\n\n if (action.kind === 'link') {\n const actionFdKey = action.fdKey ?? `action-link-${action.label.replace(/\\s+/g, '-').toLowerCase()}`;\n\n return (\n <StyledActionContainer>\n <StyledActionLink\n aria-label={actionLabel}\n fdKey={actionFdKey}\n href={action.href}\n rel={action.rel}\n target={action.target}\n >\n {action.label}\n </StyledActionLink>\n </StyledActionContainer>\n );\n }\n\n const actionFdKey = action.fdKey ?? `action-button-${action.label.replace(/\\s+/g, '-').toLowerCase()}`;\n\n return (\n <StyledActionContainer>\n <Button\n aria-label={actionLabel}\n fdKey={actionFdKey}\n onClick={action.onClick}\n size=\"small\"\n variant={action.type ?? 'primary'}\n >\n {action.label}\n </Button>\n </StyledActionContainer>\n );\n };\n\n return (\n <StyledAlert\n aria-describedby={descriptionId}\n aria-labelledby={titleId}\n className={className}\n data-fd={fdKey}\n icon={icon === undefined ? <span data-fd=\"alert-icon\">{getIcon(theme, tone)}</span> : (icon ?? false)}\n onClose={onClose}\n role=\"alert\"\n tone={tone}\n >\n {hasTitle && (\n <MuiAlertTitle color={getHeaderColour(theme, tone)} id={titleId}>\n {title}\n </MuiAlertTitle>\n )}\n {hasContent && <Box id={descriptionId}>{content}</Box>}\n {renderAction()}\n </StyledAlert>\n );\n },\n);\n\nAlert.displayName = 'Alert';\n\nexport default Alert;\n"],"names":["ICONS","neutral","theme","_jsx","DiamondIcon","color","palette","semantic","icon","brand","destructive","CancelCircleIcon","warning","AlertIcon","information","InformationCircleIcon","success","CheckmarkCircleIcon","COLOURS","background","fill","border","stroke","_theme","header","text","getIcon","tone","getBackgroundColour","getBorderColour","getHeaderColour","getTextColour","StyledActionContainer","styled","Box","marginTop","StyledActionLink","Link","padding","StyledAlert","MuiAlert","shouldForwardProp","prop","includes","backgroundColor","borderColor","Alert","memo","title","description","children","onClose","className","fdKey","action","useTheme","alertId","useId","content","hasTitle","Boolean","hasContent","titleId","undefined","descriptionId","_jsxs","role","MuiAlertTitle","id","actionLabel","label","kind","actionFdKey","replace","toLowerCase","href","rel","target","Button","onClick","size","variant","type","renderAction","displayName"],"mappings":"wmBA6EA,MAAMA,EAAQ,CACZC,QAAUC,GAA8BC,EAACC,EAAW,CAACC,MAAOH,EAAMI,QAAQC,SAASC,KAAK,iBACxFC,MAAQP,GAA8BC,EAACC,EAAW,CAACC,MAAOH,EAAMI,QAAQC,SAASC,KAAK,kBACtFE,YAAcR,GACZC,EAACQ,EAAgB,CAACN,MAAOH,EAAMI,QAAQC,SAASC,KAAK,gBAEvDI,QAAUV,GAA8BC,EAACU,EAAS,CAACR,MAAOH,EAAMI,QAAQC,SAASC,KAAK,kBACtFM,YAAcZ,GACZC,EAACY,EAAqB,CAACV,MAAOH,EAAMI,QAAQC,SAASC,KAAK,sBAE5D,kBAAoBN,GAClBC,EAACC,EAAW,CAACC,MAAOH,EAAMI,QAAQC,SAASC,KAAK,kBAElD,gBAAkBN,GAChBC,EAACC,EAAW,CAACC,MAAOH,EAAMI,QAAQC,SAASC,KAAK,kBAElDQ,QAAUd,GACRC,EAACc,EAAmB,CAACZ,MAAOH,EAAMI,QAAQC,SAASC,KAAK,mBAItDU,EAAU,CACdC,WAAY,CACVlB,QAAUC,GAAyBA,EAAMI,QAAQC,SAASa,KAAK,aAC/DX,MAAQP,GAAyBA,EAAMI,QAAQC,SAASa,KAAK,qBAC7DV,YAAcR,GAAyBA,EAAMI,QAAQC,SAASa,KAAK,mBACnER,QAAUV,GAAyBA,EAAMI,QAAQC,SAASa,KAAK,qBAC/DJ,QAAUd,GAAyBA,EAAMI,QAAQC,SAASa,KAAK,qBAC/DN,YAAcZ,GAAyBA,EAAMI,QAAQC,SAASa,KAAK,yBACnE,kBAAoBlB,GAAyBA,EAAMI,QAAQC,SAASY,WAAW,sBAC/E,gBAAkBjB,GAAyBA,EAAMI,QAAQC,SAASa,KAAK,wBAEzEC,OAAQ,CACNpB,QAAUC,GAAyBA,EAAMI,QAAQC,SAASe,OAAO,eACjEb,MAAQP,GAAyBA,EAAMI,QAAQC,SAASe,OAAO,uB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ASG,SAAYO,EACzDC,EAAgBH,EAAa,qBAAqBR,GAASG,SAAYO,EA4C7E,OACEE,EAAC1B,EAAW,CAAA,mBACQyB,EAAa,kBACdF,EACjBV,UAAWA,EAAS,UACXC,EACT7C,UAAeuD,IAATvD,EAAqBL,oBAAc,aAAY+C,SAAExB,EAAQxB,EAAOyB,KAAiBnB,IAAQ,EAC/F2C,QAASA,EACTe,KAAK,QACLvC,KAAMA,YAELgC,GACCxD,EAACgE,GAAc9D,MAAOyB,EAAgB5B,EAAOyB,GAAOyC,GAAIN,EAAOZ,SAC5DF,IAGJa,GAAc1D,EAAC+B,EAAG,CAACkC,GAAIJ,EAAad,SAAGQ,IA1DvB,MACnB,IAAKJ,EACH,OAAO,KAGT,MAAMe,EAAcrB,EAAQ,GAAGM,EAAOgB,WAAWtB,IAAUM,EAAOgB,MAElE,GAAoB,SAAhBhB,EAAOiB,KAAiB,CAC1B,MAAMC,EAAclB,EAAOD,OAAS,eAAeC,EAAOgB,MAAMG,QAAQ,OAAQ,KAAKC,gBAErF,OACEvE,EAAC6B,EAAqB,CAAAkB,SACpB/C,EAACiC,EAAgB,CAAA,aACHiC,EACZhB,MAAOmB,EACPG,KAAMrB,EAAOqB,KACbC,IAAKtB,EAAOsB,IACZC,OAAQvB,EAAOuB,gBAEdvB,EAAOgB,SAIhB,CAEA,MAAME,EAAclB,EAAOD,OAAS,iBAAiBC,EAAOgB,MAAMG,QAAQ,OAAQ,KAAKC,gBAEvF,OACEvE,EAAC6B,EAAqB,CAAAkB,SACpB/C,EAAC2E,EAAM,CAAA,aACOT,EACZhB,MAAOmB,EACPO,QAASzB,EAAOyB,QAChBC,KAAK,QACLC,QAAS3B,EAAO4B,MAAQ,mBAEvB5B,EAAOgB,WAuBXa,QAMTrC,EAAMsC,YAAc"}
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/components/molecules/Alert/index.tsx"],"sourcesContent":["import { memo, type ReactNode, useId } from 'react';\n\nimport MuiAlert from '@mui/material/Alert';\nimport MuiAlertTitle from '@mui/material/AlertTitle';\nimport Box from '@mui/material/Box';\nimport { styled, type Theme, useTheme } from '@mui/material/styles';\n\nimport AiIcon from '../../../icons/AI';\nimport AlertIcon from '../../../icons/Alert';\nimport CancelCircleIcon from '../../../icons/CancelCircle';\nimport CheckmarkCircleIcon from '../../../icons/CheckmarkCircle';\nimport DiamondIcon from '../../../icons/Diamond';\nimport Button from '../../atoms/Button';\nimport type { ButtonType } from '../../atoms/Button/getButtonStyles';\nimport Link from '../../atoms/Link';\n\n/** Visual tone of the alert */\nexport type AlertTones = 'ai' | 'brand' | 'error' | 'neutral' | 'success' | 'warning';\n\n/** Props for the Alert component */\nexport interface AlertProps {\n /** Optional main heading text of the alert */\n title?: string;\n /** Detailed description text of the alert */\n description?: string;\n /** Optional custom content; when provided it replaces description */\n children?: ReactNode;\n /** Visual tone of the alert */\n tone?: AlertTones;\n /** Optional icon override; pass null to hide the icon */\n icon?: ReactNode | null;\n /** Callback function when the alert is closed */\n onClose?: () => void;\n /** Action configuration (button by default, or link) */\n action?: AlertAction;\n /** Additional CSS class names */\n className?: string;\n /** Test ID for testing and automation */\n fdKey?: string;\n}\n\nexport type AlertAction =\n | {\n /** Defaults to button when omitted */\n kind?: 'button';\n /** Text label for the action button */\n label: string;\n /** Visual style of the action button */\n type?: ButtonType;\n /** Callback function when the action button is clicked */\n onClick: () => void;\n /** Test ID for the action button */\n fdKey?: string;\n }\n | {\n /** Render a link action */\n kind: 'link';\n /** Text label for the link */\n label: string;\n /** Destination URL */\n href: string;\n /** Target for the link */\n target?: '_blank' | '_parent' | '_self' | '_top';\n /** rel attribute for the link */\n rel?: string;\n /** Test ID for the link */\n fdKey?: string;\n };\n\nconst ICONS = {\n neutral: (theme: Theme): JSX.Element => <DiamondIcon color={theme.palette.semantic.icon['icon-strong']} />,\n brand: (theme: Theme): JSX.Element => <DiamondIcon color={theme.palette.semantic.icon['icon-primary']} />,\n error: (theme: Theme): JSX.Element => (\n <CancelCircleIcon color={theme.palette.semantic.icon['icon-error']} />\n ),\n warning: (theme: Theme): JSX.Element => <AlertIcon color={theme.palette.semantic.icon['icon-warning']} />,\n success: (theme: Theme): JSX.Element => (\n <CheckmarkCircleIcon color={theme.palette.semantic.icon['icon-success']} />\n ),\n ai: (theme: Theme): JSX.Element => <AiIcon color={theme.palette.semantic.icon['icon-ai']} />,\n};\n\nconst COLOURS = {\n background: {\n neutral: (theme: Theme): string => theme.palette.semantic.fill['fill-weak'],\n brand: (theme: Theme): string => theme.palette.semantic.fill['fill-primary-weak'],\n error: (theme: Theme): string => theme.palette.semantic.fill['fill-error-weak'],\n warning: (theme: Theme): string => theme.palette.semantic.fill['fill-warning-weak'],\n success: (theme: Theme): string => theme.palette.semantic.fill['fill-success-weak'],\n ai: (theme: Theme): string => theme.palette.semantic.fill['fill-ai-weak'],\n },\n border: {\n neutral: (theme: Theme): string => theme.palette.semantic.stroke['stroke-weak'],\n brand: (theme: Theme): string => theme.palette.semantic.stroke['stroke-primary-weak'],\n error: (theme: Theme): string => theme.palette.semantic.stroke['stroke-error-weak'],\n warning: (theme: Theme): string => theme.palette.semantic.stroke['stroke-warning-weak'],\n success: (theme: Theme): string => theme.palette.semantic.stroke['stroke-success-weak'],\n ai: (theme: Theme): string => theme.palette.semantic.stroke['stroke-ai-weak'],\n },\n header: {\n neutral: (theme: Theme): string => theme.palette.semantic.text['text-strong'],\n brand: (theme: Theme): string => theme.palette.semantic.text['text-strong'],\n error: (theme: Theme): string => theme.palette.semantic.text['text-strong'],\n warning: (theme: Theme): string => theme.palette.semantic.text['text-strong'],\n success: (theme: Theme): string => theme.palette.semantic.text['text-strong'],\n ai: (theme: Theme): string => theme.palette.semantic.text['text-strong'],\n },\n text: {\n neutral: (theme: Theme): string => theme.palette.semantic.text['text-weak'],\n brand: (theme: Theme): string => theme.palette.semantic.text['text-weak'],\n error: (theme: Theme): string => theme.palette.semantic.text['text-weak'],\n warning: (theme: Theme): string => theme.palette.semantic.text['text-weak'],\n success: (theme: Theme): string => theme.palette.semantic.text['text-weak'],\n ai: (theme: Theme): string => theme.palette.semantic.text['text-weak'],\n },\n icon: {\n neutral: (theme: Theme): string => theme.palette.semantic.icon['icon-strong'],\n brand: (theme: Theme): string => theme.palette.semantic.icon['icon-primary'],\n error: (theme: Theme): string => theme.palette.semantic.icon['icon-error'],\n warning: (theme: Theme): string => theme.palette.semantic.icon['icon-warning'],\n success: (theme: Theme): string => theme.palette.semantic.icon['icon-success'],\n ai: (theme: Theme): string => theme.palette.semantic.icon['icon-ai'],\n },\n};\n\nconst getIcon = (theme: Theme, tone: AlertTones): JSX.Element => {\n return ICONS[tone](theme);\n};\n\nconst getBackgroundColour = (theme: Theme, tone: AlertTones): string => {\n return COLOURS.background[tone](theme);\n};\n\nconst getBorderColour = (theme: Theme, tone: AlertTones): string => {\n return COLOURS.border[tone](theme);\n};\n\nconst getHeaderColour = (theme: Theme, tone: AlertTones): string => {\n return COLOURS.header[tone](theme);\n};\n\nconst getTextColour = (theme: Theme, tone: AlertTones): string => {\n return COLOURS.text[tone](theme);\n};\n\ninterface StyledAlertProps {\n tone: AlertTones;\n}\n\nconst StyledActionContainer = styled(Box)(() => ({\n marginTop: '16px',\n}));\n\nconst StyledActionLink = styled(Link)(() => ({\n padding: 0,\n}));\n\nconst StyledAlert = styled(MuiAlert, {\n shouldForwardProp: (prop) => !['tone'].includes(prop as string),\n})<StyledAlertProps>(({ theme, tone }) => ({\n backgroundColor: getBackgroundColour(theme, tone),\n border: '1px solid',\n borderColor: getBorderColour(theme, tone),\n color: getTextColour(theme, tone),\n '& .MuiAlert-icon': {\n color: COLOURS.icon[tone](theme),\n },\n}));\n\n/**\n * Alert component is used to display important messages or notifications to users.\n * It supports different visual tones to convey different semantic meanings and can include\n * an optional action button and close button.\n *\n * The component is wrapped with React.memo to optimize performance by preventing unnecessary\n * re-renders when the component's props haven't changed, which is beneficial for components\n * that may be used frequently throughout the application.\n */\nconst Alert = memo(\n ({\n title,\n description,\n children,\n tone = 'neutral',\n icon,\n onClose,\n className,\n fdKey,\n action,\n }: AlertProps) => {\n const theme = useTheme();\n const alertId = useId();\n const content = children ?? description;\n const hasTitle = Boolean(title);\n const hasContent = content !== undefined && content !== null;\n const titleId = hasTitle ? `alert-title-${fdKey ?? alertId}` : undefined;\n const descriptionId = hasContent ? `alert-description-${fdKey ?? alertId}` : undefined;\n\n const renderAction = (): JSX.Element | null => {\n if (!action) {\n return null;\n }\n\n const actionLabel = title ? `${action.label} - ${title}` : action.label;\n\n if (action.kind === 'link') {\n const actionFdKey = action.fdKey ?? `action-link-${action.label.replace(/\\s+/g, '-').toLowerCase()}`;\n\n return (\n <StyledActionContainer>\n <StyledActionLink\n aria-label={actionLabel}\n fdKey={actionFdKey}\n href={action.href}\n rel={action.rel}\n target={action.target}\n >\n {action.label}\n </StyledActionLink>\n </StyledActionContainer>\n );\n }\n\n const actionFdKey = action.fdKey ?? `action-button-${action.label.replace(/\\s+/g, '-').toLowerCase()}`;\n\n return (\n <StyledActionContainer>\n <Button\n aria-label={actionLabel}\n fdKey={actionFdKey}\n onClick={action.onClick}\n size=\"small\"\n variant={action.type ?? 'primary'}\n >\n {action.label}\n </Button>\n </StyledActionContainer>\n );\n };\n\n return (\n <StyledAlert\n aria-describedby={descriptionId}\n aria-labelledby={titleId}\n className={className}\n data-fd={fdKey}\n icon={icon === undefined ? <span data-fd=\"alert-icon\">{getIcon(theme, tone)}</span> : (icon ?? false)}\n onClose={onClose}\n role=\"alert\"\n tone={tone}\n >\n {hasTitle && (\n <MuiAlertTitle color={getHeaderColour(theme, tone)} id={titleId}>\n {title}\n </MuiAlertTitle>\n )}\n {hasContent && <Box id={descriptionId}>{content}</Box>}\n {renderAction()}\n </StyledAlert>\n );\n },\n);\n\nAlert.displayName = 'Alert';\n\nexport default Alert;\n"],"names":["ICONS","neutral","theme","_jsx","DiamondIcon","color","palette","semantic","icon","brand","error","CancelCircleIcon","warning","AlertIcon","success","CheckmarkCircleIcon","ai","AiIcon","COLOURS","background","fill","border","stroke","header","text","getIcon","tone","getBackgroundColour","getBorderColour","getHeaderColour","getTextColour","StyledActionContainer","styled","Box","marginTop","StyledActionLink","Link","padding","StyledAlert","MuiAlert","shouldForwardProp","prop","includes","backgroundColor","borderColor","Alert","memo","title","description","children","onClose","className","fdKey","action","useTheme","alertId","useId","content","hasTitle","Boolean","hasContent","titleId","undefined","descriptionId","_jsxs","role","MuiAlertTitle","id","actionLabel","label","kind","actionFdKey","replace","toLowerCase","href","rel","target","Button","onClick","size","variant","type","renderAction","displayName"],"mappings":"ylBAqEA,MAAMA,EAAQ,CACZC,QAAUC,GAA8BC,EAACC,EAAW,CAACC,MAAOH,EAAMI,QAAQC,SAASC,KAAK,iBACxFC,MAAQP,GAA8BC,EAACC,EAAW,CAACC,MAAOH,EAAMI,QAAQC,SAASC,KAAK,kBACtFE,MAAQR,GACNC,EAACQ,EAAgB,CAACN,MAAOH,EAAMI,QAAQC,SAASC,KAAK,gBAEvDI,QAAUV,GAA8BC,EAACU,EAAS,CAACR,MAAOH,EAAMI,QAAQC,SAASC,KAAK,kBACtFM,QAAUZ,GACRC,EAACY,EAAmB,CAACV,MAAOH,EAAMI,QAAQC,SAASC,KAAK,kBAE1DQ,GAAKd,GAA8BC,EAACc,EAAM,CAACZ,MAAOH,EAAMI,QAAQC,SAASC,KAAK,cAG1EU,EAAU,CACdC,WAAY,CACVlB,QAAUC,GAAyBA,EAAMI,QAAQC,SAASa,KAAK,aAC/DX,MAAQP,GAAyBA,EAAMI,QAAQC,SAASa,KAAK,qBAC7DV,MAAQR,GAAyBA,EAAMI,QAAQC,SAASa,KAAK,mBAC7DR,QAAUV,GAAyBA,EAAMI,QAAQC,SAASa,KAAK,qBAC/DN,QAAUZ,GAAyBA,EAAMI,QAAQC,SAASa,KAAK,qBAC/DJ,GAAKd,GAAyBA,EAAMI,QAAQC,SAASa,KAAK,iBAE5DC,OAAQ,CACNpB,QAAUC,GAAyBA,EAAMI,QAAQC,SAASe,OAAO,eACjEb,MAA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wB,GAAOyC,GAAIN,EAAOZ,SAC5DF,IAGJa,GAAczD,EAAC8B,EAAG,CAACkC,GAAIJ,EAAad,SAAGQ,IA1DvB,MACnB,IAAKJ,EACH,OAAO,KAGT,MAAMe,EAAcrB,EAAQ,GAAGM,EAAOgB,WAAWtB,IAAUM,EAAOgB,MAElE,GAAoB,SAAhBhB,EAAOiB,KAAiB,CAC1B,MAAMC,EAAclB,EAAOD,OAAS,eAAeC,EAAOgB,MAAMG,QAAQ,OAAQ,KAAKC,gBAErF,OACEtE,EAAC4B,EAAqB,CAAAkB,SACpB9C,EAACgC,EAAgB,CAAA,aACHiC,EACZhB,MAAOmB,EACPG,KAAMrB,EAAOqB,KACbC,IAAKtB,EAAOsB,IACZC,OAAQvB,EAAOuB,gBAEdvB,EAAOgB,SAIhB,CAEA,MAAME,EAAclB,EAAOD,OAAS,iBAAiBC,EAAOgB,MAAMG,QAAQ,OAAQ,KAAKC,gBAEvF,OACEtE,EAAC4B,EAAqB,CAAAkB,SACpB9C,EAAC0E,EAAM,CAAA,aACOT,EACZhB,MAAOmB,EACPO,QAASzB,EAAOyB,QAChBC,KAAK,QACLC,QAAS3B,EAAO4B,MAAQ,mBAEvB5B,EAAOgB,WAuBXa,QAMTrC,EAAMsC,YAAc"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var e=require("react/jsx-runtime"),t=require("react"),
|
|
1
|
+
"use strict";var e=require("react/jsx-runtime"),t=require("react"),r=require("../../../utilities/renderUtilities.cjs.js");function a(e){return Object.freeze({__proto__:null,default:e})}const l=r.lazyWithRetry(()=>Promise.resolve().then(function(){return a(require("../../../icons/AI/index.cjs.js"))})),n=r.lazyWithRetry(()=>Promise.resolve().then(function(){return a(require("../../../icons/Diamond/index.cjs.js"))})),s=r.lazyWithRetry(()=>Promise.resolve().then(function(){return a(require("../../../icons/Alert/index.cjs.js"))})),i=r.lazyWithRetry(()=>Promise.resolve().then(function(){return a(require("../../../icons/CancelCircle/index.cjs.js"))})),c=r.lazyWithRetry(()=>Promise.resolve().then(function(){return a(require("../../../icons/CheckmarkCircle/index.cjs.js"))})),o={neutral:r=>e.jsx(t.Suspense,{fallback:null,children:e.jsx(n,{color:r.palette.semantic.icon["icon-strong"]})}),brand:r=>e.jsx(t.Suspense,{fallback:null,children:e.jsx(n,{color:r.palette.semantic.icon["icon-primary"]})}),error:r=>e.jsx(t.Suspense,{fallback:null,children:e.jsx(i,{color:r.palette.semantic.icon["icon-error"]})}),warning:r=>e.jsx(t.Suspense,{fallback:null,children:e.jsx(s,{color:r.palette.semantic.icon["icon-warning"]})}),success:r=>e.jsx(t.Suspense,{fallback:null,children:e.jsx(c,{color:r.palette.semantic.icon["icon-success"]})}),ai:r=>e.jsx(t.Suspense,{fallback:null,children:e.jsx(l,{color:r.palette.semantic.icon["icon-ai"]})})},u={background:{neutral:e=>e.palette.semantic.fill["fill-weak"],brand:e=>e.palette.semantic.fill["fill-primary-weak"],error:e=>e.palette.semantic.fill["fill-error-weak"],warning:e=>e.palette.semantic.fill["fill-warning-weak"],success:e=>e.palette.semantic.fill["fill-success-weak"],ai:e=>e.palette.semantic.fill["fill-ai-weak"]},border:{neutral:e=>e.palette.semantic.stroke["stroke-weak"],brand:e=>e.palette.semantic.stroke["stroke-primary-weak"],error:e=>e.palette.semantic.stroke["stroke-error-weak"],warning:e=>e.palette.semantic.stroke["stroke-warning-weak"],success:e=>e.palette.semantic.stroke["stroke-success-weak"],ai:e=>e.palette.semantic.stroke["stroke-ai-weak"]},text:{neutral:e=>e.palette.semantic.text["text-weak"],brand:e=>e.palette.semantic.text["text-weak"],error:e=>e.palette.semantic.text["text-weak"],warning:e=>e.palette.semantic.text["text-weak"],success:e=>e.palette.semantic.text["text-weak"],ai:e=>e.palette.semantic.text["text-weak"]}};exports.getAlertGlobalBackgroundColour=(e,t)=>u.background[t](e),exports.getAlertGlobalBorderColour=(e,t)=>u.border[t](e),exports.getAlertGlobalIcon=(e,t)=>o[t](e),exports.getAlertGlobalTextColour=(e,t)=>u.text[t](e);
|
|
2
2
|
//# sourceMappingURL=alertGlobalTokens.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alertGlobalTokens.cjs.js","sources":["../../../../src/components/molecules/AlertGlobal/alertGlobalTokens.tsx"],"sourcesContent":["import { type ReactElement, Suspense } from 'react';\n\nimport type { Theme } from '@mui/material/styles';\n\nimport { lazyWithRetry } from '@fd/utilities/renderUtilities';\n\nimport type { AlertTones } from '../Alert';\n\nconst
|
|
1
|
+
{"version":3,"file":"alertGlobalTokens.cjs.js","sources":["../../../../src/components/molecules/AlertGlobal/alertGlobalTokens.tsx"],"sourcesContent":["import { type ReactElement, Suspense } from 'react';\n\nimport type { Theme } from '@mui/material/styles';\n\nimport { lazyWithRetry } from '@fd/utilities/renderUtilities';\n\nimport type { AlertTones } from '../Alert';\n\nconst AiIcon = lazyWithRetry(() => import('@fd/icons/AI'));\nconst DiamondIcon = lazyWithRetry(() => import('@fd/icons/Diamond'));\nconst AlertIcon = lazyWithRetry(() => import('@fd/icons/Alert'));\nconst CancelCircleIcon = lazyWithRetry(() => import('@fd/icons/CancelCircle'));\nconst CheckmarkCircleIcon = lazyWithRetry(() => import('@fd/icons/CheckmarkCircle'));\n\nconst ICONS = {\n neutral: (theme: Theme): ReactElement => (\n <Suspense fallback={null}>\n <DiamondIcon color={theme.palette.semantic.icon['icon-strong']} />\n </Suspense>\n ),\n brand: (theme: Theme): ReactElement => (\n <Suspense fallback={null}>\n <DiamondIcon color={theme.palette.semantic.icon['icon-primary']} />\n </Suspense>\n ),\n error: (theme: Theme): ReactElement => (\n <Suspense fallback={null}>\n <CancelCircleIcon color={theme.palette.semantic.icon['icon-error']} />\n </Suspense>\n ),\n warning: (theme: Theme): ReactElement => (\n <Suspense fallback={null}>\n <AlertIcon color={theme.palette.semantic.icon['icon-warning']} />\n </Suspense>\n ),\n success: (theme: Theme): ReactElement => (\n <Suspense fallback={null}>\n <CheckmarkCircleIcon color={theme.palette.semantic.icon['icon-success']} />\n </Suspense>\n ),\n ai: (theme: Theme): ReactElement => (\n <Suspense fallback={null}>\n <AiIcon color={theme.palette.semantic.icon['icon-ai']} />\n </Suspense>\n ),\n};\n\nconst COLOURS = {\n background: {\n neutral: (theme: Theme): string => theme.palette.semantic.fill['fill-weak'],\n brand: (theme: Theme): string => theme.palette.semantic.fill['fill-primary-weak'],\n error: (theme: Theme): string => theme.palette.semantic.fill['fill-error-weak'],\n warning: (theme: Theme): string => theme.palette.semantic.fill['fill-warning-weak'],\n success: (theme: Theme): string => theme.palette.semantic.fill['fill-success-weak'],\n ai: (theme: Theme): string => theme.palette.semantic.fill['fill-ai-weak'],\n },\n border: {\n neutral: (theme: Theme): string => theme.palette.semantic.stroke['stroke-weak'],\n brand: (theme: Theme): string => theme.palette.semantic.stroke['stroke-primary-weak'],\n error: (theme: Theme): string => theme.palette.semantic.stroke['stroke-error-weak'],\n warning: (theme: Theme): string => theme.palette.semantic.stroke['stroke-warning-weak'],\n success: (theme: Theme): string => theme.palette.semantic.stroke['stroke-success-weak'],\n ai: (theme: Theme): string => theme.palette.semantic.stroke['stroke-ai-weak'],\n },\n text: {\n neutral: (theme: Theme): string => theme.palette.semantic.text['text-weak'],\n brand: (theme: Theme): string => theme.palette.semantic.text['text-weak'],\n error: (theme: Theme): string => theme.palette.semantic.text['text-weak'],\n warning: (theme: Theme): string => theme.palette.semantic.text['text-weak'],\n success: (theme: Theme): string => theme.palette.semantic.text['text-weak'],\n ai: (theme: Theme): string => theme.palette.semantic.text['text-weak'],\n },\n};\n/**\n * Returns the icon element for the given theme and alert tone.\n * Values are looked up from the ICONS map.\n * @param theme - MUI theme used to resolve palette colours.\n * @param tone - Alert tone determining which icon to render.\n * @returns ReactElement configured for the provided theme and tone.\n */\nexport const getAlertGlobalIcon = (theme: Theme, tone: AlertTones): ReactElement => ICONS[tone](theme);\n/**\n * Returns the background colour string for the given theme and alert tone.\n * Values are looked up from the COLOURS.background map.\n * @param theme - MUI theme used to resolve palette colours.\n * @param tone - Alert tone determining which background colour to use.\n * @returns string containing the background colour for the provided theme and tone.\n */\nexport const getAlertGlobalBackgroundColour = (theme: Theme, tone: AlertTones): string =>\n COLOURS.background[tone](theme);\n/**\n * Returns the border colour string for the given theme and alert tone.\n * Values are looked up from the COLOURS.border map.\n * @param theme - MUI theme used to resolve palette colours.\n * @param tone - Alert tone determining which border colour to use.\n * @returns string containing the border colour for the provided theme and tone.\n */\nexport const getAlertGlobalBorderColour = (theme: Theme, tone: AlertTones): string =>\n COLOURS.border[tone](theme);\n/**\n * Returns the text colour string for the given theme and alert tone.\n * Values are looked up from the COLOURS.text map.\n * @param theme - MUI theme used to resolve palette colours.\n * @param tone - Alert tone determining which text colour to use.\n * @returns string containing the text colour for the provided theme and tone.e.\n */\nexport const getAlertGlobalTextColour = (theme: Theme, tone: AlertTones): string => COLOURS.text[tone](theme);\n"],"names":["AiIcon","lazyWithRetry","Promise","resolve","then","_interopNamespaceDefaultOnly","require","DiamondIcon","AlertIcon","CancelCircleIcon","CheckmarkCircleIcon","ICONS","neutral","theme","_jsx","Suspense","fallback","children","color","palette","semantic","icon","brand","error","warning","success","ai","COLOURS","background","fill","border","stroke","text","tone"],"mappings":"yLAQA,MAAMA,EAASC,EAAAA,cAAc,IAAMC,QAAAC,UAAAC,KAAA,WAAA,OAAAC,EAAAC,QAAO,sCACpCC,EAAcN,EAAAA,cAAc,IAAMC,QAAAC,UAAAC,KAAA,WAAA,OAAAC,EAAAC,QAAO,2CACzCE,EAAYP,EAAAA,cAAc,IAAMC,QAAAC,UAAAC,KAAA,WAAA,OAAAC,EAAAC,QAAO,yCACvCG,EAAmBR,EAAAA,cAAc,IAAMC,QAAAC,UAAAC,KAAA,WAAA,OAAAC,EAAAC,QAAO,gDAC9CI,EAAsBT,EAAAA,cAAc,IAAMC,QAAAC,UAAAC,KAAA,WAAA,OAAAC,EAAAC,QAAO,mDAEjDK,EAAQ,CACZC,QAAUC,GACRC,MAACC,EAAAA,SAAQ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ASW,OAAO,qBAC/DP,QAAUX,GAAyBA,EAAMM,QAAQC,SAASW,OAAO,uBACjEN,QAAUZ,GAAyBA,EAAMM,QAAQC,SAASW,OAAO,uBACjEL,GAAKb,GAAyBA,EAAMM,QAAQC,SAASW,OAAO,mBAE9DC,KAAM,CACJpB,QAAUC,GAAyBA,EAAMM,QAAQC,SAASY,KAAK,aAC/DV,MAAQT,GAAyBA,EAAMM,QAAQC,SAASY,KAAK,aAC7DT,MAAQV,GAAyBA,EAAMM,QAAQC,SAASY,KAAK,aAC7DR,QAAUX,GAAyBA,EAAMM,QAAQC,SAASY,KAAK,aAC/DP,QAAUZ,GAAyBA,EAAMM,QAAQC,SAASY,KAAK,aAC/DN,GAAKb,GAAyBA,EAAMM,QAAQC,SAASY,KAAK,sDAkBhB,CAACnB,EAAcoB,IAC3DN,EAAQC,WAAWK,GAAMpB,sCAQe,CAACA,EAAcoB,IACvDN,EAAQG,OAAOG,GAAMpB,8BAlBW,CAACA,EAAcoB,IAAmCtB,EAAMsB,GAAMpB,oCA0BxD,CAACA,EAAcoB,IAA6BN,EAAQK,KAAKC,GAAMpB"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsx as e}from"react/jsx-runtime";import{Suspense as t}from"react";import{lazyWithRetry as
|
|
1
|
+
import{jsx as e}from"react/jsx-runtime";import{Suspense as t}from"react";import{lazyWithRetry as a}from"../../../utilities/renderUtilities.js";const i=a(()=>import("../../../icons/AI/index.js")),l=a(()=>import("../../../icons/Diamond/index.js")),r=a(()=>import("../../../icons/Alert/index.js")),n=a(()=>import("../../../icons/CancelCircle/index.js")),c=a(()=>import("../../../icons/CheckmarkCircle/index.js")),s={neutral:a=>e(t,{fallback:null,children:e(l,{color:a.palette.semantic.icon["icon-strong"]})}),brand:a=>e(t,{fallback:null,children:e(l,{color:a.palette.semantic.icon["icon-primary"]})}),error:a=>e(t,{fallback:null,children:e(n,{color:a.palette.semantic.icon["icon-error"]})}),warning:a=>e(t,{fallback:null,children:e(r,{color:a.palette.semantic.icon["icon-warning"]})}),success:a=>e(t,{fallback:null,children:e(c,{color:a.palette.semantic.icon["icon-success"]})}),ai:a=>e(t,{fallback:null,children:e(i,{color:a.palette.semantic.icon["icon-ai"]})})},o={background:{neutral:e=>e.palette.semantic.fill["fill-weak"],brand:e=>e.palette.semantic.fill["fill-primary-weak"],error:e=>e.palette.semantic.fill["fill-error-weak"],warning:e=>e.palette.semantic.fill["fill-warning-weak"],success:e=>e.palette.semantic.fill["fill-success-weak"],ai:e=>e.palette.semantic.fill["fill-ai-weak"]},border:{neutral:e=>e.palette.semantic.stroke["stroke-weak"],brand:e=>e.palette.semantic.stroke["stroke-primary-weak"],error:e=>e.palette.semantic.stroke["stroke-error-weak"],warning:e=>e.palette.semantic.stroke["stroke-warning-weak"],success:e=>e.palette.semantic.stroke["stroke-success-weak"],ai:e=>e.palette.semantic.stroke["stroke-ai-weak"]},text:{neutral:e=>e.palette.semantic.text["text-weak"],brand:e=>e.palette.semantic.text["text-weak"],error:e=>e.palette.semantic.text["text-weak"],warning:e=>e.palette.semantic.text["text-weak"],success:e=>e.palette.semantic.text["text-weak"],ai:e=>e.palette.semantic.text["text-weak"]}},m=(e,t)=>s[t](e),k=(e,t)=>o.background[t](e),p=(e,t)=>o.border[t](e),w=(e,t)=>o.text[t](e);export{k as getAlertGlobalBackgroundColour,p as getAlertGlobalBorderColour,m as getAlertGlobalIcon,w as getAlertGlobalTextColour};
|
|
2
2
|
//# sourceMappingURL=alertGlobalTokens.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alertGlobalTokens.js","sources":["../../../../src/components/molecules/AlertGlobal/alertGlobalTokens.tsx"],"sourcesContent":["import { type ReactElement, Suspense } from 'react';\n\nimport type { Theme } from '@mui/material/styles';\n\nimport { lazyWithRetry } from '@fd/utilities/renderUtilities';\n\nimport type { AlertTones } from '../Alert';\n\nconst
|
|
1
|
+
{"version":3,"file":"alertGlobalTokens.js","sources":["../../../../src/components/molecules/AlertGlobal/alertGlobalTokens.tsx"],"sourcesContent":["import { type ReactElement, Suspense } from 'react';\n\nimport type { Theme } from '@mui/material/styles';\n\nimport { lazyWithRetry } from '@fd/utilities/renderUtilities';\n\nimport type { AlertTones } from '../Alert';\n\nconst AiIcon = lazyWithRetry(() => import('@fd/icons/AI'));\nconst DiamondIcon = lazyWithRetry(() => import('@fd/icons/Diamond'));\nconst AlertIcon = lazyWithRetry(() => import('@fd/icons/Alert'));\nconst CancelCircleIcon = lazyWithRetry(() => import('@fd/icons/CancelCircle'));\nconst CheckmarkCircleIcon = lazyWithRetry(() => import('@fd/icons/CheckmarkCircle'));\n\nconst ICONS = {\n neutral: (theme: Theme): ReactElement => (\n <Suspense fallback={null}>\n <DiamondIcon color={theme.palette.semantic.icon['icon-strong']} />\n </Suspense>\n ),\n brand: (theme: Theme): ReactElement => (\n <Suspense fallback={null}>\n <DiamondIcon color={theme.palette.semantic.icon['icon-primary']} />\n </Suspense>\n ),\n error: (theme: Theme): ReactElement => (\n <Suspense fallback={null}>\n <CancelCircleIcon color={theme.palette.semantic.icon['icon-error']} />\n </Suspense>\n ),\n warning: (theme: Theme): ReactElement => (\n <Suspense fallback={null}>\n <AlertIcon color={theme.palette.semantic.icon['icon-warning']} />\n </Suspense>\n ),\n success: (theme: Theme): ReactElement => (\n <Suspense fallback={null}>\n <CheckmarkCircleIcon color={theme.palette.semantic.icon['icon-success']} />\n </Suspense>\n ),\n ai: (theme: Theme): ReactElement => (\n <Suspense fallback={null}>\n <AiIcon color={theme.palette.semantic.icon['icon-ai']} />\n </Suspense>\n ),\n};\n\nconst COLOURS = {\n background: {\n neutral: (theme: Theme): string => theme.palette.semantic.fill['fill-weak'],\n brand: (theme: Theme): string => theme.palette.semantic.fill['fill-primary-weak'],\n error: (theme: Theme): string => theme.palette.semantic.fill['fill-error-weak'],\n warning: (theme: Theme): string => theme.palette.semantic.fill['fill-warning-weak'],\n success: (theme: Theme): string => theme.palette.semantic.fill['fill-success-weak'],\n ai: (theme: Theme): string => theme.palette.semantic.fill['fill-ai-weak'],\n },\n border: {\n neutral: (theme: Theme): string => theme.palette.semantic.stroke['stroke-weak'],\n brand: (theme: Theme): string => theme.palette.semantic.stroke['stroke-primary-weak'],\n error: (theme: Theme): string => theme.palette.semantic.stroke['stroke-error-weak'],\n warning: (theme: Theme): string => theme.palette.semantic.stroke['stroke-warning-weak'],\n success: (theme: Theme): string => theme.palette.semantic.stroke['stroke-success-weak'],\n ai: (theme: Theme): string => theme.palette.semantic.stroke['stroke-ai-weak'],\n },\n text: {\n neutral: (theme: Theme): string => theme.palette.semantic.text['text-weak'],\n brand: (theme: Theme): string => theme.palette.semantic.text['text-weak'],\n error: (theme: Theme): string => theme.palette.semantic.text['text-weak'],\n warning: (theme: Theme): string => theme.palette.semantic.text['text-weak'],\n success: (theme: Theme): string => theme.palette.semantic.text['text-weak'],\n ai: (theme: Theme): string => theme.palette.semantic.text['text-weak'],\n },\n};\n/**\n * Returns the icon element for the given theme and alert tone.\n * Values are looked up from the ICONS map.\n * @param theme - MUI theme used to resolve palette colours.\n * @param tone - Alert tone determining which icon to render.\n * @returns ReactElement configured for the provided theme and tone.\n */\nexport const getAlertGlobalIcon = (theme: Theme, tone: AlertTones): ReactElement => ICONS[tone](theme);\n/**\n * Returns the background colour string for the given theme and alert tone.\n * Values are looked up from the COLOURS.background map.\n * @param theme - MUI theme used to resolve palette colours.\n * @param tone - Alert tone determining which background colour to use.\n * @returns string containing the background colour for the provided theme and tone.\n */\nexport const getAlertGlobalBackgroundColour = (theme: Theme, tone: AlertTones): string =>\n COLOURS.background[tone](theme);\n/**\n * Returns the border colour string for the given theme and alert tone.\n * Values are looked up from the COLOURS.border map.\n * @param theme - MUI theme used to resolve palette colours.\n * @param tone - Alert tone determining which border colour to use.\n * @returns string containing the border colour for the provided theme and tone.\n */\nexport const getAlertGlobalBorderColour = (theme: Theme, tone: AlertTones): string =>\n COLOURS.border[tone](theme);\n/**\n * Returns the text colour string for the given theme and alert tone.\n * Values are looked up from the COLOURS.text map.\n * @param theme - MUI theme used to resolve palette colours.\n * @param tone - Alert tone determining which text colour to use.\n * @returns string containing the text colour for the provided theme and tone.e.\n */\nexport const getAlertGlobalTextColour = (theme: Theme, tone: AlertTones): string => COLOURS.text[tone](theme);\n"],"names":["AiIcon","lazyWithRetry","import","DiamondIcon","AlertIcon","CancelCircleIcon","CheckmarkCircleIcon","ICONS","neutral","theme","_jsx","Suspense","fallback","children","color","palette","semantic","icon","brand","error","warning","success","ai","COLOURS","background","fill","border","stroke","text","getAlertGlobalIcon","tone","getAlertGlobalBackgroundColour","getAlertGlobalBorderColour","getAlertGlobalTextColour"],"mappings":"+IAQA,MAAMA,EAASC,EAAc,IAAMC,OAAO,+BACpCC,EAAcF,EAAc,IAAMC,OAAO,oCACzCE,EAAYH,EAAc,IAAMC,OAAO,kCACvCG,EAAmBJ,EAAc,IAAMC,OAAO,yCAC9CI,EAAsBL,EAAc,IAAMC,OAAO,4CAEjDK,EAAQ,CACZC,QAAUC,GACRC,EAACC,EAAQ,CAACC,SAAU,KAAIC,SACtBH,EAACP,EAAW,CAACW,MAAOL,EAAMM,QAAQC,SAASC,KAAK,mBAGpDC,MAAQT,GACNC,EAACC,EAAQ,CAACC,SAAU,KAAIC,SACtBH,EAACP,EAAW,CAACW,MAAOL,EAAMM,QAAQC,SAASC,KAAK,oBAGpDE,MAAQV,GACNC,EAACC,EAAQ,CAACC,SAAU,KAAIC,SACtBH,EAACL,EAAgB,CAACS,MAAOL,EAAMM,QAAQC,SAASC,KAAK,kBAGzDG,QAAUX,GACRC,EAACC,EAAQ,CAACC,SAAU,KAAIC,SACtBH,EAACN,EAAS,CAACU,MAAOL,EAAMM,QAAQC,SAASC,KAAK,oBAGlDI,QAAUZ,GACRC,EAACC,EAAQ,CAACC,SAAU,KAAIC,SACtBH,EAACJ,EAAmB,CAACQ,MAAOL,EAAMM,QAAQC,SAASC,KAAK,oBAG5DK,GAAKb,GACHC,EAACC,EAAQ,CAACC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AQVwB,EAA2B,CAACxB,EAAcqB,IAA6BP,EAAQK,KAAKE,GAAMrB"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";require("../../node_modules/.pnpm/msw@2.14.6_@types_node@20.19.
|
|
1
|
+
"use strict";require("../../node_modules/.pnpm/msw@2.14.6_@types_node@20.19.41_typescript@5.4.5/node_modules/msw/lib/core/index.cjs.js");var e=require("../../components/organisms/AssetManager/__mocks__/mockAssets.cjs.js"),s=require("../../node_modules/.pnpm/msw@2.14.6_@types_node@20.19.41_typescript@5.4.5/node_modules/msw/lib/core/http.cjs.js"),t=require("../../node_modules/.pnpm/msw@2.14.6_@types_node@20.19.41_typescript@5.4.5/node_modules/msw/lib/core/HttpResponse.cjs.js");const o=[...[s.http.get("*/assets/orgs/:orgId/assets",({request:s,params:o})=>(console.log("[MSW] Intercepted GET assets request:",s.url,"orgId:",o.orgId),t.HttpResponse.json(e.mockAssets))),s.http.post("*/assets/orgs/:orgId/assets/upload",async({request:s,params:o})=>{console.log("[MSW] Intercepted POST upload request:",s.url,"orgId:",o.orgId),await new Promise(e=>setTimeout(e,2e3));const r=(await s.formData()).getAll("files").map(s=>e.createMockAsset({id:"asset_e3454351fw5",fileName:s.name,contentType:s.type||"image/jpeg",createdBy:"Test User",updatedBy:"Test User"}));return t.HttpResponse.json(r)})]];exports.handlers=o;
|
|
2
2
|
//# sourceMappingURL=handlers.cjs.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { HttpHandler } from '../../node_modules/.pnpm/msw@2.14.6_@types_node@20.19.
|
|
1
|
+
import { HttpHandler } from '../../node_modules/.pnpm/msw@2.14.6_@types_node@20.19.41_typescript@5.4.5/node_modules/msw/lib/core/handlers/HttpHandler.d.js';
|
|
2
2
|
|
|
3
3
|
declare const handlers: HttpHandler[];
|
|
4
4
|
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import"../../node_modules/.pnpm/msw@2.14.6_@types_node@20.19.
|
|
1
|
+
import"../../node_modules/.pnpm/msw@2.14.6_@types_node@20.19.41_typescript@5.4.5/node_modules/msw/lib/core/index.js";import{mockAssets as e,createMockAsset as s}from"../../components/organisms/AssetManager/__mocks__/mockAssets.js";import{http as o}from"../../node_modules/.pnpm/msw@2.14.6_@types_node@20.19.41_typescript@5.4.5/node_modules/msw/lib/core/http.js";import{HttpResponse as t}from"../../node_modules/.pnpm/msw@2.14.6_@types_node@20.19.41_typescript@5.4.5/node_modules/msw/lib/core/HttpResponse.js";const r=[...[o.get("*/assets/orgs/:orgId/assets",({request:s,params:o})=>(console.log("[MSW] Intercepted GET assets request:",s.url,"orgId:",o.orgId),t.json(e))),o.post("*/assets/orgs/:orgId/assets/upload",async({request:e,params:o})=>{console.log("[MSW] Intercepted POST upload request:",e.url,"orgId:",o.orgId),await new Promise(e=>setTimeout(e,2e3));const r=(await e.formData()).getAll("files").map(e=>s({id:"asset_e3454351fw5",fileName:e.name,contentType:e.type||"image/jpeg",createdBy:"Test User",updatedBy:"Test User"}));return t.json(r)})]];export{r as handlers};
|
|
2
2
|
//# sourceMappingURL=handlers.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var e=require("../../node_modules/.pnpm/msw@2.14.6_@types_node@20.19.
|
|
1
|
+
"use strict";var e=require("../../node_modules/.pnpm/msw@2.14.6_@types_node@20.19.41_typescript@5.4.5/node_modules/msw/lib/node/index.cjs.js"),s=require("./handlers.cjs.js");const r=e.setupServer(...s.handlers);exports.server=r;
|
|
2
2
|
//# sourceMappingURL=server.cjs.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SetupServer } from '../../node_modules/.pnpm/msw@2.14.6_@types_node@20.19.
|
|
1
|
+
import { SetupServer } from '../../node_modules/.pnpm/msw@2.14.6_@types_node@20.19.41_typescript@5.4.5/node_modules/msw/lib/node/index.d.js';
|
|
2
2
|
|
|
3
3
|
declare const server: SetupServer;
|
|
4
4
|
|
package/dist/mocks/msw/server.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{setupServer as o}from"../../node_modules/.pnpm/msw@2.14.6_@types_node@20.19.
|
|
1
|
+
import{setupServer as o}from"../../node_modules/.pnpm/msw@2.14.6_@types_node@20.19.41_typescript@5.4.5/node_modules/msw/lib/node/index.js";import{handlers as e}from"./handlers.js";const s=o(...e);export{s as server};
|
|
2
2
|
//# sourceMappingURL=server.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HttpResponse.cjs.js","sources":["../../../../../../../../../../node_modules/.pnpm/msw@2.14.6_@types+node@20.19.
|
|
1
|
+
{"version":3,"file":"HttpResponse.cjs.js","sources":["../../../../../../../../../../node_modules/.pnpm/msw@2.14.6_@types+node@20.19.41_typescript@5.4.5/node_modules/msw/lib/core/HttpResponse.mjs"],"sourcesContent":["import { FetchResponse } from \"@mswjs/interceptors\";\nimport {\n decorateResponse,\n normalizeResponseInit\n} from './utils/HttpResponse/decorators.mjs';\nconst bodyType = Symbol(\"bodyType\");\nconst kDefaultContentType = Symbol.for(\"kDefaultContentType\");\nclass HttpResponse extends FetchResponse {\n [bodyType] = null;\n constructor(body, init) {\n const responseInit = normalizeResponseInit(init);\n super(body, responseInit);\n decorateResponse(this, responseInit);\n }\n static error() {\n return super.error();\n }\n /**\n * Create a `Response` with a `Content-Type: \"text/plain\"` body.\n * @example\n * HttpResponse.text('hello world')\n * HttpResponse.text('Error', { status: 500 })\n */\n static text(body, init) {\n const responseInit = normalizeResponseInit(init);\n const hasExplicitContentType = responseInit.headers.has(\"Content-Type\");\n if (!hasExplicitContentType) {\n responseInit.headers.set(\"Content-Type\", \"text/plain\");\n }\n if (!responseInit.headers.has(\"Content-Length\")) {\n responseInit.headers.set(\n \"Content-Length\",\n body ? new Blob([body]).size.toString() : \"0\"\n );\n }\n const response = new HttpResponse(body, responseInit);\n if (!hasExplicitContentType) {\n Object.defineProperty(response, kDefaultContentType, {\n value: true,\n enumerable: false\n });\n }\n return response;\n }\n /**\n * Create a `Response` with a `Content-Type: \"application/json\"` body.\n * @example\n * HttpResponse.json({ firstName: 'John' })\n * HttpResponse.json({ error: 'Not Authorized' }, { status: 401 })\n */\n static json(body, init) {\n const responseInit = normalizeResponseInit(init);\n const hasExplicitContentType = responseInit.headers.has(\"Content-Type\");\n if (!hasExplicitContentType) {\n responseInit.headers.set(\"Content-Type\", \"application/json\");\n }\n const responseText = JSON.stringify(body);\n if (!responseInit.headers.has(\"Content-Length\")) {\n responseInit.headers.set(\n \"Content-Length\",\n responseText ? new Blob([responseText]).size.toString() : \"0\"\n );\n }\n const response = new HttpResponse(responseText, responseInit);\n if (!hasExplicitContentType) {\n Object.defineProperty(response, kDefaultContentType, {\n value: true,\n enumerable: false\n });\n }\n return response;\n }\n /**\n * Create a `Response` with a `Content-Type: \"application/xml\"` body.\n * @example\n * HttpResponse.xml(`<user name=\"John\" />`)\n * HttpResponse.xml(`<article id=\"abc-123\" />`, { status: 201 })\n */\n static xml(body, init) {\n const responseInit = normalizeResponseInit(init);\n const hasExplicitContentType = responseInit.headers.has(\"Content-Type\");\n if (!hasExplicitContentType) {\n responseInit.headers.set(\"Content-Type\", \"text/xml\");\n }\n const response = new HttpResponse(body, responseInit);\n if (!hasExplicitContentType) {\n Object.defineProperty(response, kDefaultContentType, {\n value: true,\n enumerable: false\n });\n }\n return response;\n }\n /**\n * Create a `Response` with a `Content-Type: \"text/html\"` body.\n * @example\n * HttpResponse.html(`<p class=\"author\">Jane Doe</p>`)\n * HttpResponse.html(`<main id=\"abc-123\">Main text</main>`, { status: 201 })\n */\n static html(body, init) {\n const responseInit = normalizeResponseInit(init);\n const hasExplicitContentType = responseInit.headers.has(\"Content-Type\");\n if (!hasExplicitContentType) {\n responseInit.headers.set(\"Content-Type\", \"text/html\");\n }\n const response = new HttpResponse(body, responseInit);\n if (!hasExplicitContentType) {\n Object.defineProperty(response, kDefaultContentType, {\n value: true,\n enumerable: false\n });\n }\n return response;\n }\n /**\n * Create a `Response` with an `ArrayBuffer` body.\n * @example\n * const buffer = new ArrayBuffer(3)\n * const view = new Uint8Array(buffer)\n * view.set([1, 2, 3])\n *\n * HttpResponse.arrayBuffer(buffer)\n */\n static arrayBuffer(body, init) {\n const responseInit = normalizeResponseInit(init);\n const hasExplicitContentType = responseInit.headers.has(\"Content-Type\");\n if (!hasExplicitContentType) {\n responseInit.headers.set(\"Content-Type\", \"application/octet-stream\");\n }\n if (body && !responseInit.headers.has(\"Content-Length\")) {\n responseInit.headers.set(\"Content-Length\", body.byteLength.toString());\n }\n const response = new HttpResponse(body, responseInit);\n if (!hasExplicitContentType) {\n Object.defineProperty(response, kDefaultContentType, {\n value: true,\n enumerable: false\n });\n }\n return response;\n }\n /**\n * Create a `Response` with a `FormData` body.\n * @example\n * const data = new FormData()\n * data.set('name', 'Alice')\n *\n * HttpResponse.formData(data)\n */\n static formData(body, init) {\n return new HttpResponse(body, normalizeResponseInit(init));\n }\n}\nexport {\n HttpResponse,\n bodyType,\n kDefaultContentType\n};\n//# sourceMappingURL=HttpResponse.mjs.map"],"names":["bodyType","Symbol","kDefaultContentType","for","HttpResponse","FetchResponse","constructor","body","init","responseInit","normalizeResponseInit","super","decorateResponse","this","error","text","hasExplicitContentType","headers","has","set","Blob","size","toString","response","Object","defineProperty","value","enumerable","json","responseText","JSON","stringify","xml","html","arrayBuffer","byteLength","formData"],"mappings":"gUAKK,MAACA,EAAWC,OAAO,YAClBC,EAAsBD,OAAOE,IAAI,uBACvC,MAAMC,UAAqBC,EAAAA,EACzBL,CAACA,GAAY,KACb,WAAAM,CAAYC,EAAMC,GAChB,MAAMC,EAAeC,EAAAA,sBAAsBF,GAC3CG,MAAMJ,EAAME,GACZG,EAAAA,iBAAiBC,KAAMJ,EACzB,CACA,YAAOK,GACL,OAAOH,MAAMG,OACf,CAOA,WAAOC,CAAKR,EAAMC,GAChB,MAAMC,EAAeC,EAAAA,sBAAsBF,GACrCQ,EAAyBP,EAAaQ,QAAQC,IAAI,gBACnDF,GACHP,EAAaQ,QAAQ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C,YAAY,IAGTJ,CACT,CAUA,kBAAOW,CAAY3B,EAAMC,GACvB,MAAMC,EAAeC,EAAAA,sBAAsBF,GACrCQ,EAAyBP,EAAaQ,QAAQC,IAAI,gBACnDF,GACHP,EAAaQ,QAAQE,IAAI,eAAgB,4BAEvCZ,IAASE,EAAaQ,QAAQC,IAAI,mBACpCT,EAAaQ,QAAQE,IAAI,iBAAkBZ,EAAK4B,WAAWb,YAE7D,MAAMC,EAAW,IAAInB,EAAaG,EAAME,GAOxC,OANKO,GACHQ,OAAOC,eAAeF,EAAUrB,EAAqB,CACnDwB,OAAO,EACPC,YAAY,IAGTJ,CACT,CASA,eAAOa,CAAS7B,EAAMC,GACpB,OAAO,IAAIJ,EAAaG,EAAMG,EAAAA,sBAAsBF,GACtD","x_google_ignoreList":[0]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HttpResponse.js","sources":["../../../../../../../../../../node_modules/.pnpm/msw@2.14.6_@types+node@20.19.
|
|
1
|
+
{"version":3,"file":"HttpResponse.js","sources":["../../../../../../../../../../node_modules/.pnpm/msw@2.14.6_@types+node@20.19.41_typescript@5.4.5/node_modules/msw/lib/core/HttpResponse.mjs"],"sourcesContent":["import { FetchResponse } from \"@mswjs/interceptors\";\nimport {\n decorateResponse,\n normalizeResponseInit\n} from './utils/HttpResponse/decorators.mjs';\nconst bodyType = Symbol(\"bodyType\");\nconst kDefaultContentType = Symbol.for(\"kDefaultContentType\");\nclass HttpResponse extends FetchResponse {\n [bodyType] = null;\n constructor(body, init) {\n const responseInit = normalizeResponseInit(init);\n super(body, responseInit);\n decorateResponse(this, responseInit);\n }\n static error() {\n return super.error();\n }\n /**\n * Create a `Response` with a `Content-Type: \"text/plain\"` body.\n * @example\n * HttpResponse.text('hello world')\n * HttpResponse.text('Error', { status: 500 })\n */\n static text(body, init) {\n const responseInit = normalizeResponseInit(init);\n const hasExplicitContentType = responseInit.headers.has(\"Content-Type\");\n if (!hasExplicitContentType) {\n responseInit.headers.set(\"Content-Type\", \"text/plain\");\n }\n if (!responseInit.headers.has(\"Content-Length\")) {\n responseInit.headers.set(\n \"Content-Length\",\n body ? new Blob([body]).size.toString() : \"0\"\n );\n }\n const response = new HttpResponse(body, responseInit);\n if (!hasExplicitContentType) {\n Object.defineProperty(response, kDefaultContentType, {\n value: true,\n enumerable: false\n });\n }\n return response;\n }\n /**\n * Create a `Response` with a `Content-Type: \"application/json\"` body.\n * @example\n * HttpResponse.json({ firstName: 'John' })\n * HttpResponse.json({ error: 'Not Authorized' }, { status: 401 })\n */\n static json(body, init) {\n const responseInit = normalizeResponseInit(init);\n const hasExplicitContentType = responseInit.headers.has(\"Content-Type\");\n if (!hasExplicitContentType) {\n responseInit.headers.set(\"Content-Type\", \"application/json\");\n }\n const responseText = JSON.stringify(body);\n if (!responseInit.headers.has(\"Content-Length\")) {\n responseInit.headers.set(\n \"Content-Length\",\n responseText ? new Blob([responseText]).size.toString() : \"0\"\n );\n }\n const response = new HttpResponse(responseText, responseInit);\n if (!hasExplicitContentType) {\n Object.defineProperty(response, kDefaultContentType, {\n value: true,\n enumerable: false\n });\n }\n return response;\n }\n /**\n * Create a `Response` with a `Content-Type: \"application/xml\"` body.\n * @example\n * HttpResponse.xml(`<user name=\"John\" />`)\n * HttpResponse.xml(`<article id=\"abc-123\" />`, { status: 201 })\n */\n static xml(body, init) {\n const responseInit = normalizeResponseInit(init);\n const hasExplicitContentType = responseInit.headers.has(\"Content-Type\");\n if (!hasExplicitContentType) {\n responseInit.headers.set(\"Content-Type\", \"text/xml\");\n }\n const response = new HttpResponse(body, responseInit);\n if (!hasExplicitContentType) {\n Object.defineProperty(response, kDefaultContentType, {\n value: true,\n enumerable: false\n });\n }\n return response;\n }\n /**\n * Create a `Response` with a `Content-Type: \"text/html\"` body.\n * @example\n * HttpResponse.html(`<p class=\"author\">Jane Doe</p>`)\n * HttpResponse.html(`<main id=\"abc-123\">Main text</main>`, { status: 201 })\n */\n static html(body, init) {\n const responseInit = normalizeResponseInit(init);\n const hasExplicitContentType = responseInit.headers.has(\"Content-Type\");\n if (!hasExplicitContentType) {\n responseInit.headers.set(\"Content-Type\", \"text/html\");\n }\n const response = new HttpResponse(body, responseInit);\n if (!hasExplicitContentType) {\n Object.defineProperty(response, kDefaultContentType, {\n value: true,\n enumerable: false\n });\n }\n return response;\n }\n /**\n * Create a `Response` with an `ArrayBuffer` body.\n * @example\n * const buffer = new ArrayBuffer(3)\n * const view = new Uint8Array(buffer)\n * view.set([1, 2, 3])\n *\n * HttpResponse.arrayBuffer(buffer)\n */\n static arrayBuffer(body, init) {\n const responseInit = normalizeResponseInit(init);\n const hasExplicitContentType = responseInit.headers.has(\"Content-Type\");\n if (!hasExplicitContentType) {\n responseInit.headers.set(\"Content-Type\", \"application/octet-stream\");\n }\n if (body && !responseInit.headers.has(\"Content-Length\")) {\n responseInit.headers.set(\"Content-Length\", body.byteLength.toString());\n }\n const response = new HttpResponse(body, responseInit);\n if (!hasExplicitContentType) {\n Object.defineProperty(response, kDefaultContentType, {\n value: true,\n enumerable: false\n });\n }\n return response;\n }\n /**\n * Create a `Response` with a `FormData` body.\n * @example\n * const data = new FormData()\n * data.set('name', 'Alice')\n *\n * HttpResponse.formData(data)\n */\n static formData(body, init) {\n return new HttpResponse(body, normalizeResponseInit(init));\n }\n}\nexport {\n HttpResponse,\n bodyType,\n kDefaultContentType\n};\n//# sourceMappingURL=HttpResponse.mjs.map"],"names":["bodyType","Symbol","kDefaultContentType","for","HttpResponse","FetchResponse","constructor","body","init","responseInit","normalizeResponseInit","super","decorateResponse","this","error","text","hasExplicitContentType","headers","has","set","Blob","size","toString","response","Object","defineProperty","value","enumerable","json","responseText","JSON","stringify","xml","html","arrayBuffer","byteLength","formData"],"mappings":"oVAKK,MAACA,EAAWC,OAAO,YAClBC,EAAsBD,OAAOE,IAAI,uBACvC,MAAMC,UAAqBC,EACzBL,CAACA,GAAY,KACb,WAAAM,CAAYC,EAAMC,GAChB,MAAMC,EAAeC,EAAsBF,GA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EAAyBP,EAAaQ,QAAQC,IAAI,gBACnDF,GACHP,EAAaQ,QAAQE,IAAI,eAAgB,aAE3C,MAAMI,EAAW,IAAInB,EAAaG,EAAME,GAOxC,OANKO,GACHQ,OAAOC,eAAeF,EAAUrB,EAAqB,CACnDwB,OAAO,EACPC,YAAY,IAGTJ,CACT,CAUA,kBAAOW,CAAY3B,EAAMC,GACvB,MAAMC,EAAeC,EAAsBF,GACrCQ,EAAyBP,EAAaQ,QAAQC,IAAI,gBACnDF,GACHP,EAAaQ,QAAQE,IAAI,eAAgB,4BAEvCZ,IAASE,EAAaQ,QAAQC,IAAI,mBACpCT,EAAaQ,QAAQE,IAAI,iBAAkBZ,EAAK4B,WAAWb,YAE7D,MAAMC,EAAW,IAAInB,EAAaG,EAAME,GAOxC,OANKO,GACHQ,OAAOC,eAAeF,EAAUrB,EAAqB,CACnDwB,OAAO,EACPC,YAAY,IAGTJ,CACT,CASA,eAAOa,CAAS7B,EAAMC,GACpB,OAAO,IAAIJ,EAAaG,EAAMG,EAAsBF,GACtD","x_google_ignoreList":[0]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compat.cjs.js","sources":["../../../../../../../../../../../node_modules/.pnpm/msw@2.14.6_@types+node@20.19.
|
|
1
|
+
{"version":3,"file":"compat.cjs.js","sources":["../../../../../../../../../../../node_modules/.pnpm/msw@2.14.6_@types+node@20.19.41_typescript@5.4.5/node_modules/msw/lib/core/experimental/compat.mjs"],"sourcesContent":["import { invariant } from \"outvariant\";\nimport {} from '../utils/request/onUnhandledRequest.mjs';\nimport {\n executeUnhandledFrameHandle\n} from './on-unhandled-frame.mjs';\nimport { HttpNetworkFrame } from './frames/http-frame.mjs';\nimport { WebSocketNetworkFrame } from './frames/websocket-frame.mjs';\nfunction fromLegacyOnUnhandledRequest(getLegacyValue) {\n return ({ frame, defaults }) => {\n const legacyOnUnhandledRequestStrategy = getLegacyValue();\n if (legacyOnUnhandledRequestStrategy == null) {\n return;\n }\n if (typeof legacyOnUnhandledRequestStrategy === \"function\") {\n const request = frame instanceof HttpNetworkFrame ? frame.data.request : frame instanceof WebSocketNetworkFrame ? new Request(frame.data.connection.client.url, {\n headers: {\n connection: \"upgrade\",\n upgrade: \"websocket\"\n }\n }) : null;\n invariant(\n request != null,\n 'Failed to coerce a network frame to a legacy `onUnhandledRequest` strategy: unknown frame protocol \"%s\"',\n frame.protocol\n );\n return legacyOnUnhandledRequestStrategy(request, {\n warning: defaults.warn,\n error: defaults.error\n });\n }\n return executeUnhandledFrameHandle(frame, legacyOnUnhandledRequestStrategy);\n };\n}\nexport {\n fromLegacyOnUnhandledRequest\n};\n//# sourceMappingURL=compat.mjs.map"],"names":["getLegacyValue","frame","defaults","legacyOnUnhandledRequestStrategy","request","HttpNetworkFrame","data","WebSocketNetworkFrame","Request","connection","client","url","headers","upgrade","invariant","protocol","warning","warn","error","executeUnhandledFrameHandle"],"mappings":"6QAOA,SAAsCA,GACpC,MAAO,EAAGC,QAAOC,eACf,MAAMC,EAAmCH,IACzC,GAAwC,MAApCG,EAAJ,CAGA,GAAgD,mBAArCA,EAAiD,CAC1D,MAAMC,EAAUH,aAAiBI,EAAAA,iBAAmBJ,EAAMK,KAAKF,QAAUH,aAAiBM,EAAAA,sBAAwB,IAAIC,QAAQP,EAAMK,KAAKG,WAAWC,OAAOC,IAAK,CAC9JC,QAAS,CACPH,WAAY,UACZI,QAAS,eAER,KAML,OALAC,EAAAA,UACa,MAAXV,EACA,0GACAH,EAAMc,UAEDZ,EAAiCC,EAAS,CAC/CY,QAASd,EAASe,KAClBC,MAAOhB,EAASgB,OAEpB,CACA,OAAOC,EAAAA,4BAA4BlB,EAAOE,EAlB1C,EAoBJ","x_google_ignoreList":[0]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compat.js","sources":["../../../../../../../../../../../node_modules/.pnpm/msw@2.14.6_@types+node@20.19.
|
|
1
|
+
{"version":3,"file":"compat.js","sources":["../../../../../../../../../../../node_modules/.pnpm/msw@2.14.6_@types+node@20.19.41_typescript@5.4.5/node_modules/msw/lib/core/experimental/compat.mjs"],"sourcesContent":["import { invariant } from \"outvariant\";\nimport {} from '../utils/request/onUnhandledRequest.mjs';\nimport {\n executeUnhandledFrameHandle\n} from './on-unhandled-frame.mjs';\nimport { HttpNetworkFrame } from './frames/http-frame.mjs';\nimport { WebSocketNetworkFrame } from './frames/websocket-frame.mjs';\nfunction fromLegacyOnUnhandledRequest(getLegacyValue) {\n return ({ frame, defaults }) => {\n const legacyOnUnhandledRequestStrategy = getLegacyValue();\n if (legacyOnUnhandledRequestStrategy == null) {\n return;\n }\n if (typeof legacyOnUnhandledRequestStrategy === \"function\") {\n const request = frame instanceof HttpNetworkFrame ? frame.data.request : frame instanceof WebSocketNetworkFrame ? new Request(frame.data.connection.client.url, {\n headers: {\n connection: \"upgrade\",\n upgrade: \"websocket\"\n }\n }) : null;\n invariant(\n request != null,\n 'Failed to coerce a network frame to a legacy `onUnhandledRequest` strategy: unknown frame protocol \"%s\"',\n frame.protocol\n );\n return legacyOnUnhandledRequestStrategy(request, {\n warning: defaults.warn,\n error: defaults.error\n });\n }\n return executeUnhandledFrameHandle(frame, legacyOnUnhandledRequestStrategy);\n };\n}\nexport {\n fromLegacyOnUnhandledRequest\n};\n//# sourceMappingURL=compat.mjs.map"],"names":["fromLegacyOnUnhandledRequest","getLegacyValue","frame","defaults","legacyOnUnhandledRequestStrategy","request","HttpNetworkFrame","data","WebSocketNetworkFrame","Request","connection","client","url","headers","upgrade","invariant","protocol","warning","warn","error","executeUnhandledFrameHandle"],"mappings":"wSAOA,SAASA,EAA6BC,GACpC,MAAO,EAAGC,QAAOC,eACf,MAAMC,EAAmCH,IACzC,GAAwC,MAApCG,EAAJ,CAGA,GAAgD,mBAArCA,EAAiD,CAC1D,MAAMC,EAAUH,aAAiBI,EAAmBJ,EAAMK,KAAKF,QAAUH,aAAiBM,EAAwB,IAAIC,QAAQP,EAAMK,KAAKG,WAAWC,OAAOC,IAAK,CAC9JC,QAAS,CACPH,WAAY,UACZI,QAAS,eAER,KAML,OALAC,EACa,MAAXV,EACA,0GACAH,EAAMc,UAEDZ,EAAiCC,EAAS,CAC/CY,QAASd,EAASe,KAClBC,MAAOhB,EAASgB,OAEpB,CACA,OAAOC,EAA4BlB,EAAOE,EAlB1C,EAoBJ","x_google_ignoreList":[0]}
|