likec4 1.7.0 → 1.7.2
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/__app__/src/chunks/{index-nxRBtTOQ.js → index-CsouX5P7.js} +26 -61
- package/dist/__app__/src/chunks/{likec4-DiOy4PZ9.js → likec4-5Tyb70uB.js} +319 -816
- package/dist/__app__/src/chunks/{mantine-u17mT9KZ.js → mantine-l9Camp3k.js} +336 -686
- package/dist/__app__/src/chunks/{tanstack-router-Cg36mbgZ.js → tanstack-router-BgNzIYOs.js} +61 -127
- package/dist/__app__/src/main.js +12352 -5
- package/dist/__app__/src/style.css +1 -1
- package/dist/__app__/tsconfig.tsbuildinfo +1 -1
- package/dist/cli/index.mjs +31 -31
- package/icons/all.js +2 -2
- package/icons/aws/activate.js +7 -7
- package/icons/aws/alexa-for-business.js +7 -7
- package/icons/aws/amplify.js +7 -7
- package/icons/aws/apache-mxnet-on-aws.js +7 -7
- package/icons/aws/api-gateway.js +7 -7
- package/icons/aws/app-config.js +7 -7
- package/icons/aws/app-flow.js +7 -7
- package/icons/aws/app-mesh.js +7 -7
- package/icons/aws/app-runner.js +7 -7
- package/icons/aws/app-stream.js +7 -7
- package/icons/aws/app-sync.js +7 -7
- package/icons/aws/application-auto-scaling.js +7 -7
- package/icons/aws/application-composer.js +7 -7
- package/icons/aws/application-cost-profiler.js +7 -7
- package/icons/aws/application-discovery-service.js +7 -7
- package/icons/aws/application-migration-service.js +7 -7
- package/icons/aws/artifact.js +7 -7
- package/icons/aws/athena.js +7 -7
- package/icons/aws/audit-manager.js +7 -7
- package/icons/aws/augmented-ai-a2i.js +7 -7
- package/icons/aws/aurora.js +7 -7
- package/icons/aws/auto-scaling.js +7 -7
- package/icons/aws/backint-agent.js +7 -7
- package/icons/aws/backup.js +7 -7
- package/icons/aws/batch.js +7 -7
- package/icons/aws/billing-conductor.js +7 -7
- package/icons/aws/bottlerocket.js +7 -7
- package/icons/aws/braket.js +7 -7
- package/icons/aws/budgets.js +7 -7
- package/icons/aws/certificate-manager.js +7 -7
- package/icons/aws/chatbot.js +7 -7
- package/icons/aws/chime-sdk.js +7 -7
- package/icons/aws/chime-voice-connector.js +7 -7
- package/icons/aws/chime.js +7 -7
- package/icons/aws/clean-rooms.js +7 -7
- package/icons/aws/client-vpn.js +7 -7
- package/icons/aws/cloud-control-api.js +7 -7
- package/icons/aws/cloud-development-kit.js +7 -7
- package/icons/aws/cloud-directory.js +7 -7
- package/icons/aws/cloud-formation.js +7 -7
- package/icons/aws/cloud-front.js +7 -7
- package/icons/aws/cloud-hsm.js +7 -7
- package/icons/aws/cloud-map.js +7 -7
- package/icons/aws/cloud-search.js +7 -7
- package/icons/aws/cloud-shell.js +7 -7
- package/icons/aws/cloud-trail.js +7 -7
- package/icons/aws/cloud-wan.js +7 -7
- package/icons/aws/cloud-watch.js +7 -7
- package/icons/aws/cloud9.js +7 -7
- package/icons/aws/code-artifact.js +7 -7
- package/icons/aws/code-build.js +7 -7
- package/icons/aws/code-catalyst.js +7 -7
- package/icons/aws/code-commit.js +7 -7
- package/icons/aws/code-deploy.js +7 -7
- package/icons/aws/code-guru.js +7 -7
- package/icons/aws/code-pipeline.js +7 -7
- package/icons/aws/code-star.js +7 -7
- package/icons/aws/code-whisperer.js +7 -7
- package/icons/aws/cognito.js +7 -7
- package/icons/aws/command-line-interface.js +7 -7
- package/icons/aws/comprehend-medical.js +7 -7
- package/icons/aws/comprehend.js +7 -7
- package/icons/aws/compute-optimizer.js +7 -7
- package/icons/aws/config.js +7 -7
- package/icons/aws/connect.js +7 -7
- package/icons/aws/console-mobile-application.js +7 -7
- package/icons/aws/control-tower.js +7 -7
- package/icons/aws/corretto.js +7 -7
- package/icons/aws/cost-and-usage-report.js +7 -7
- package/icons/aws/cost-explorer.js +7 -7
- package/icons/aws/data-exchange.js +7 -7
- package/icons/aws/data-pipeline.js +7 -7
- package/icons/aws/data-sync.js +7 -7
- package/icons/aws/data-zone.js +7 -7
- package/icons/aws/database-migration-service.js +7 -7
- package/icons/aws/deep-composer.js +7 -7
- package/icons/aws/deep-learning-amis.js +7 -7
- package/icons/aws/deep-learning-containers.js +7 -7
- package/icons/aws/deep-lens.js +7 -7
- package/icons/aws/deep-racer.js +7 -7
- package/icons/aws/detective.js +7 -7
- package/icons/aws/dev-ops-guru.js +7 -7
- package/icons/aws/device-farm.js +7 -7
- package/icons/aws/direct-connect.js +7 -7
- package/icons/aws/directory-service.js +7 -7
- package/icons/aws/distro-for-open-telemetry.js +7 -7
- package/icons/aws/document-db.js +7 -7
- package/icons/aws/dynamo-db.js +7 -7
- package/icons/aws/ec2-auto-scaling.js +7 -7
- package/icons/aws/ec2-image-builder.js +7 -7
- package/icons/aws/ec2.js +7 -7
- package/icons/aws/ecs-anywhere.js +7 -7
- package/icons/aws/efs.js +7 -7
- package/icons/aws/eks-anywhere.js +7 -7
- package/icons/aws/eks-cloud.js +7 -7
- package/icons/aws/eks-distro.js +7 -7
- package/icons/aws/elasti-cache.js +7 -7
- package/icons/aws/elastic-beanstalk.js +7 -7
- package/icons/aws/elastic-block-store.js +7 -7
- package/icons/aws/elastic-container-registry.js +7 -7
- package/icons/aws/elastic-container-service.js +7 -7
- package/icons/aws/elastic-disaster-recovery.js +7 -7
- package/icons/aws/elastic-fabric-adapter.js +7 -7
- package/icons/aws/elastic-inference.js +7 -7
- package/icons/aws/elastic-kubernetes-service.js +7 -7
- package/icons/aws/elastic-load-balancing.js +7 -7
- package/icons/aws/elastic-transcoder.js +7 -7
- package/icons/aws/elemental-appliances-software.js +7 -7
- package/icons/aws/elemental-conductor.js +7 -7
- package/icons/aws/elemental-delta.js +7 -7
- package/icons/aws/elemental-link.js +7 -7
- package/icons/aws/elemental-live.js +7 -7
- package/icons/aws/elemental-media-connect.js +7 -7
- package/icons/aws/elemental-media-convert.js +7 -7
- package/icons/aws/elemental-media-live.js +7 -7
- package/icons/aws/elemental-media-package.js +7 -7
- package/icons/aws/elemental-media-store.js +7 -7
- package/icons/aws/elemental-media-tailor.js +7 -7
- package/icons/aws/elemental-server.js +7 -7
- package/icons/aws/emr.js +7 -7
- package/icons/aws/event-bridge.js +7 -7
- package/icons/aws/express-workflows.js +7 -7
- package/icons/aws/fargate.js +7 -7
- package/icons/aws/fault-injection-simulator.js +7 -7
- package/icons/aws/file-cache.js +7 -7
- package/icons/aws/fin-space.js +7 -7
- package/icons/aws/firewall-manager.js +7 -7
- package/icons/aws/forecast.js +7 -7
- package/icons/aws/fraud-detector.js +7 -7
- package/icons/aws/free-rtos.js +7 -7
- package/icons/aws/fsx-for-lustre.js +7 -7
- package/icons/aws/fsx-for-net-app-ontap.js +7 -7
- package/icons/aws/fsx-for-open-zfs.js +7 -7
- package/icons/aws/fsx-for-wfs.js +7 -7
- package/icons/aws/fsx.js +7 -7
- package/icons/aws/game-kit.js +7 -7
- package/icons/aws/game-lift.js +7 -7
- package/icons/aws/game-sparks.js +7 -7
- package/icons/aws/genomics-cli.js +7 -7
- package/icons/aws/global-accelerator.js +7 -7
- package/icons/aws/glue-data-brew.js +7 -7
- package/icons/aws/glue-elastic-views.js +7 -7
- package/icons/aws/glue.js +7 -7
- package/icons/aws/ground-station.js +7 -7
- package/icons/aws/guard-duty.js +7 -7
- package/icons/aws/health-lake.js +7 -7
- package/icons/aws/honeycode.js +7 -7
- package/icons/aws/iam-identity-center.js +7 -7
- package/icons/aws/identity-and-access-management.js +7 -7
- package/icons/aws/inspector.js +7 -7
- package/icons/aws/interactive-video-service.js +7 -7
- package/icons/aws/io-t-1-click.js +7 -7
- package/icons/aws/io-t-analytics.js +7 -7
- package/icons/aws/io-t-button.js +7 -7
- package/icons/aws/io-t-core.js +7 -7
- package/icons/aws/io-t-device-defender.js +7 -7
- package/icons/aws/io-t-device-management.js +7 -7
- package/icons/aws/io-t-edu-kit.js +7 -7
- package/icons/aws/io-t-events.js +7 -7
- package/icons/aws/io-t-express-link.js +7 -7
- package/icons/aws/io-t-fleet-wise.js +7 -7
- package/icons/aws/io-t-greengrass.js +7 -7
- package/icons/aws/io-t-robo-runner.js +7 -7
- package/icons/aws/io-t-site-wise.js +7 -7
- package/icons/aws/io-t-things-graph.js +7 -7
- package/icons/aws/io-t-twin-maker.js +6 -6
- package/icons/aws/iq.js +7 -7
- package/icons/aws/kendra.js +7 -7
- package/icons/aws/key-management-service.js +7 -7
- package/icons/aws/keyspaces.js +7 -7
- package/icons/aws/kinesis-data-analytics.js +7 -7
- package/icons/aws/kinesis-data-streams.js +7 -7
- package/icons/aws/kinesis-firehose.js +7 -7
- package/icons/aws/kinesis-video-streams.js +7 -7
- package/icons/aws/kinesis.js +7 -7
- package/icons/aws/lake-formation.js +7 -7
- package/icons/aws/lambda.js +7 -7
- package/icons/aws/launch-wizard.js +7 -7
- package/icons/aws/lex.js +7 -7
- package/icons/aws/license-manager.js +7 -7
- package/icons/aws/lightsail.js +7 -7
- package/icons/aws/local-zones.js +7 -7
- package/icons/aws/location-service.js +7 -7
- package/icons/aws/lookout-for-equipment.js +7 -7
- package/icons/aws/lookout-for-metrics.js +7 -7
- package/icons/aws/lookout-for-vision.js +7 -7
- package/icons/aws/lumberyard.js +7 -7
- package/icons/aws/macie.js +7 -7
- package/icons/aws/mainframe-modernization.js +7 -7
- package/icons/aws/managed-blockchain.js +7 -7
- package/icons/aws/managed-grafana.js +7 -7
- package/icons/aws/managed-service-for-prometheus.js +7 -7
- package/icons/aws/managed-services.js +7 -7
- package/icons/aws/managed-streaming-for-apache-kafka.js +7 -7
- package/icons/aws/managed-workflows-for-apache-airflow.js +7 -7
- package/icons/aws/management-console.js +7 -7
- package/icons/aws/marketplace-dark.js +3 -3
- package/icons/aws/marketplace-light.js +3 -3
- package/icons/aws/memory-db-for-redis.js +7 -7
- package/icons/aws/migration-evaluator.js +7 -7
- package/icons/aws/migration-hub.js +7 -7
- package/icons/aws/monitron.js +7 -7
- package/icons/aws/mq.js +7 -7
- package/icons/aws/neptune.js +7 -7
- package/icons/aws/network-firewall.js +7 -7
- package/icons/aws/neuron.js +7 -7
- package/icons/aws/nice-dcv.js +7 -7
- package/icons/aws/nice-engin-frame.js +7 -7
- package/icons/aws/nimble-studio.js +7 -7
- package/icons/aws/nitro-enclaves.js +7 -7
- package/icons/aws/omics.js +7 -7
- package/icons/aws/open-3d-engine.js +7 -7
- package/icons/aws/open-search-service.js +7 -7
- package/icons/aws/ops-works.js +7 -7
- package/icons/aws/organizations.js +7 -7
- package/icons/aws/outposts-family.js +7 -7
- package/icons/aws/outposts-rack.js +7 -7
- package/icons/aws/outposts-servers.js +7 -7
- package/icons/aws/panorama.js +7 -7
- package/icons/aws/parallel-cluster.js +7 -7
- package/icons/aws/personal-health-dashboard.js +7 -7
- package/icons/aws/personalize.js +7 -7
- package/icons/aws/pinpoint-apis.js +7 -7
- package/icons/aws/pinpoint.js +7 -7
- package/icons/aws/polly.js +7 -7
- package/icons/aws/private-5g.js +7 -7
- package/icons/aws/private-certificate-authority.js +9 -9
- package/icons/aws/private-link.js +7 -7
- package/icons/aws/professional-services.js +7 -7
- package/icons/aws/proton.js +7 -7
- package/icons/aws/quantum-ledger-database.js +7 -7
- package/icons/aws/quick-sight.js +7 -7
- package/icons/aws/rds-on-vmware.js +7 -7
- package/icons/aws/rds.js +7 -7
- package/icons/aws/re-post.js +7 -7
- package/icons/aws/red-hat-open-shift-service-on-aws.js +7 -7
- package/icons/aws/redshift.js +7 -7
- package/icons/aws/rekognition.js +7 -7
- package/icons/aws/reserved-instance-reporting.js +7 -7
- package/icons/aws/resilience-hub.js +7 -7
- package/icons/aws/resource-access-manager.js +7 -7
- package/icons/aws/resource-explorer.js +7 -7
- package/icons/aws/robo-maker.js +7 -7
- package/icons/aws/route-53.js +7 -7
- package/icons/aws/s3-on-outposts.js +7 -7
- package/icons/aws/sage-maker-ground-truth.js +7 -7
- package/icons/aws/sage-maker-studio-lab.js +7 -7
- package/icons/aws/sage-maker.js +7 -7
- package/icons/aws/savings-plans.js +7 -7
- package/icons/aws/secrets-manager.js +7 -7
- package/icons/aws/security-hub.js +7 -7
- package/icons/aws/security-lake.js +7 -7
- package/icons/aws/server-migration-service.js +7 -7
- package/icons/aws/serverless-application-repository.js +7 -7
- package/icons/aws/service-catalog.js +7 -7
- package/icons/aws/service-management-connector.js +9 -9
- package/icons/aws/shield.js +7 -7
- package/icons/aws/signer.js +7 -7
- package/icons/aws/sim-space-weaver.js +7 -7
- package/icons/aws/simple-email-service.js +7 -7
- package/icons/aws/simple-notification-service.js +7 -7
- package/icons/aws/simple-queue-service.js +7 -7
- package/icons/aws/simple-storage-service-glacier.js +7 -7
- package/icons/aws/simple-storage-service.js +7 -7
- package/icons/aws/site-to-site-vpn.js +7 -7
- package/icons/aws/snowball-edge.js +7 -7
- package/icons/aws/snowball.js +7 -7
- package/icons/aws/snowcone.js +7 -7
- package/icons/aws/snowmobile.js +7 -7
- package/icons/aws/step-functions.js +7 -7
- package/icons/aws/storage-gateway.js +7 -7
- package/icons/aws/sumerian.js +7 -7
- package/icons/aws/supply-chain.js +7 -7
- package/icons/aws/support.js +7 -7
- package/icons/aws/systems-manager.js +7 -7
- package/icons/aws/tensor-flow-on-aws.js +7 -7
- package/icons/aws/textract.js +7 -7
- package/icons/aws/thinkbox-deadline.js +7 -7
- package/icons/aws/thinkbox-frost.js +7 -7
- package/icons/aws/thinkbox-krakatoa.js +7 -7
- package/icons/aws/thinkbox-sequoia.js +7 -7
- package/icons/aws/thinkbox-stoke.js +7 -7
- package/icons/aws/thinkbox-xmesh.js +7 -7
- package/icons/aws/timestream.js +7 -7
- package/icons/aws/tools-and-sdks.js +7 -7
- package/icons/aws/torch-serve.js +7 -7
- package/icons/aws/training-certification.js +7 -7
- package/icons/aws/transcribe.js +7 -7
- package/icons/aws/transfer-family.js +7 -7
- package/icons/aws/transit-gateway.js +7 -7
- package/icons/aws/translate.js +7 -7
- package/icons/aws/trusted-advisor.js +7 -7
- package/icons/aws/verified-access.js +7 -7
- package/icons/aws/verified-permissions.js +7 -7
- package/icons/aws/virtual-private-cloud.js +7 -7
- package/icons/aws/vmware-cloud-on-aws.js +7 -7
- package/icons/aws/vpc-lattice.js +7 -7
- package/icons/aws/waf.js +7 -7
- package/icons/aws/wavelength.js +7 -7
- package/icons/aws/well-architected-tool.js +7 -7
- package/icons/aws/wickr.js +7 -7
- package/icons/aws/work-docs-sdk.js +7 -7
- package/icons/aws/work-docs.js +7 -7
- package/icons/aws/work-link.js +7 -7
- package/icons/aws/work-mail.js +7 -7
- package/icons/aws/work-spaces-family.js +7 -7
- package/icons/aws/x-ray.js +7 -7
- package/icons/gcp/access-context-manager.js +4 -4
- package/icons/gcp/administration.js +10 -10
- package/icons/gcp/advanced-agent-modeling.js +6 -6
- package/icons/gcp/advanced-solutions-lab.js +29 -29
- package/icons/gcp/agent-assist.js +1 -1
- package/icons/gcp/ai-hub.js +10 -10
- package/icons/gcp/ai-platform-unified.js +8 -8
- package/icons/gcp/ai-platform.js +3 -3
- package/icons/gcp/analytics-hub.js +4 -4
- package/icons/gcp/anthos-config-management.js +4 -4
- package/icons/gcp/anthos-service-mesh.js +1 -1
- package/icons/gcp/anthos.js +5 -5
- package/icons/gcp/api-analytics.js +7 -7
- package/icons/gcp/api-monetization.js +10 -10
- package/icons/gcp/api.js +5 -5
- package/icons/gcp/apigee-api-platform.js +6 -6
- package/icons/gcp/apigee-sense.js +4 -4
- package/icons/gcp/app-engine.js +7 -7
- package/icons/gcp/artifact-registry.js +15 -15
- package/icons/gcp/asset-inventory.js +6 -6
- package/icons/gcp/assured-workloads.js +8 -8
- package/icons/gcp/auto-ml-natural-language.js +3 -3
- package/icons/gcp/auto-ml-tables.js +6 -6
- package/icons/gcp/auto-ml-translation.js +6 -6
- package/icons/gcp/auto-ml-video-intelligence.js +6 -6
- package/icons/gcp/auto-ml-vision.js +5 -5
- package/icons/gcp/auto-ml.js +7 -7
- package/icons/gcp/bare-metal-solutions.js +4 -4
- package/icons/gcp/batch.js +1 -1
- package/icons/gcp/beyondcorp.js +1 -1
- package/icons/gcp/big-query.js +8 -8
- package/icons/gcp/bigtable.js +19 -19
- package/icons/gcp/billing.js +10 -10
- package/icons/gcp/binary-authorization.js +4 -4
- package/icons/gcp/catalog.js +6 -6
- package/icons/gcp/certificate-authority-service.js +4 -4
- package/icons/gcp/certificate-manager.js +4 -4
- package/icons/gcp/cloud-api-gateway.js +1 -1
- package/icons/gcp/cloud-apis.js +11 -11
- package/icons/gcp/cloud-armor.js +8 -8
- package/icons/gcp/cloud-asset-inventory.js +4 -4
- package/icons/gcp/cloud-audit-logs.js +11 -11
- package/icons/gcp/cloud-build.js +6 -6
- package/icons/gcp/cloud-cdn.js +15 -15
- package/icons/gcp/cloud-code.js +9 -9
- package/icons/gcp/cloud-composer.js +6 -6
- package/icons/gcp/cloud-data-fusion.js +8 -8
- package/icons/gcp/cloud-deploy.js +4 -4
- package/icons/gcp/cloud-deployment-manager.js +11 -11
- package/icons/gcp/cloud-dns.js +13 -13
- package/icons/gcp/cloud-domains.js +6 -6
- package/icons/gcp/cloud-ekm.js +1 -1
- package/icons/gcp/cloud-endpoints.js +10 -10
- package/icons/gcp/cloud-external-ip-addresses.js +3 -3
- package/icons/gcp/cloud-firewall-rules.js +3 -3
- package/icons/gcp/cloud-for-marketing.js +1 -1
- package/icons/gcp/cloud-functions.js +16 -16
- package/icons/gcp/cloud-generic.js +1 -1
- package/icons/gcp/cloud-gpu.js +5 -5
- package/icons/gcp/cloud-healthcare-api.js +12 -12
- package/icons/gcp/cloud-healthcare-marketplace.js +4 -4
- package/icons/gcp/cloud-hsm.js +7 -7
- package/icons/gcp/cloud-ids.js +6 -6
- package/icons/gcp/cloud-inference-api.js +9 -9
- package/icons/gcp/cloud-interconnect.js +8 -8
- package/icons/gcp/cloud-jobs-api.js +9 -9
- package/icons/gcp/cloud-load-balancing.js +13 -13
- package/icons/gcp/cloud-logging.js +11 -11
- package/icons/gcp/cloud-media-edge.js +17 -17
- package/icons/gcp/cloud-monitoring.js +7 -7
- package/icons/gcp/cloud-nat.js +6 -6
- package/icons/gcp/cloud-natural-language-api.js +10 -10
- package/icons/gcp/cloud-network.js +10 -10
- package/icons/gcp/cloud-ops.js +8 -8
- package/icons/gcp/cloud-optimization-ai-fleet-routing-api.js +4 -4
- package/icons/gcp/cloud-optimization-ai.js +4 -4
- package/icons/gcp/cloud-router.js +1 -1
- package/icons/gcp/cloud-routes.js +5 -5
- package/icons/gcp/cloud-run-for-anthos.js +3 -3
- package/icons/gcp/cloud-run.js +6 -6
- package/icons/gcp/cloud-scheduler.js +10 -10
- package/icons/gcp/cloud-security-scanner.js +9 -9
- package/icons/gcp/cloud-shell.js +4 -4
- package/icons/gcp/cloud-spanner.js +8 -8
- package/icons/gcp/cloud-sql.js +9 -9
- package/icons/gcp/cloud-storage.js +15 -15
- package/icons/gcp/cloud-tasks.js +18 -18
- package/icons/gcp/cloud-test-lab.js +8 -8
- package/icons/gcp/cloud-tpu.js +19 -19
- package/icons/gcp/cloud-translation-api.js +3 -3
- package/icons/gcp/cloud-vision-api.js +9 -9
- package/icons/gcp/cloud-vpn.js +10 -10
- package/icons/gcp/compute-engine.js +10 -10
- package/icons/gcp/configuration-management.js +4 -4
- package/icons/gcp/connectivity-test.js +1 -1
- package/icons/gcp/connectors.js +7 -7
- package/icons/gcp/contact-center-ai.js +1 -1
- package/icons/gcp/container-optimized-os.js +1 -1
- package/icons/gcp/container-registry.js +20 -20
- package/icons/gcp/data-catalog.js +6 -6
- package/icons/gcp/data-labeling.js +12 -12
- package/icons/gcp/data-layers.js +5 -5
- package/icons/gcp/data-loss-prevention-api.js +11 -11
- package/icons/gcp/data-qn-a.js +6 -6
- package/icons/gcp/data-studio.js +9 -9
- package/icons/gcp/data-transfer.js +5 -5
- package/icons/gcp/database-migration-service.js +4 -4
- package/icons/gcp/dataflow.js +13 -13
- package/icons/gcp/datalab.js +1 -1
- package/icons/gcp/dataplex.js +3 -3
- package/icons/gcp/datapol.js +14 -14
- package/icons/gcp/dataprep.js +6 -6
- package/icons/gcp/dataproc-metastore.js +1 -1
- package/icons/gcp/dataproc.js +12 -12
- package/icons/gcp/datashare.js +6 -6
- package/icons/gcp/datastore.js +32 -32
- package/icons/gcp/datastream.js +10 -10
- package/icons/gcp/debugger.js +7 -7
- package/icons/gcp/developer-portal.js +5 -5
- package/icons/gcp/dialogflow-cx.js +4 -4
- package/icons/gcp/dialogflow-insights.js +8 -8
- package/icons/gcp/dialogflow.js +3 -3
- package/icons/gcp/document-ai.js +8 -8
- package/icons/gcp/early-access-center.js +1 -1
- package/icons/gcp/error-reporting.js +7 -7
- package/icons/gcp/eventarc.js +5 -5
- package/icons/gcp/filestore.js +7 -7
- package/icons/gcp/financial-services-marketplace.js +9 -9
- package/icons/gcp/firestore.js +7 -7
- package/icons/gcp/fleet-engine.js +4 -4
- package/icons/gcp/free-trial.js +8 -8
- package/icons/gcp/game-servers.js +14 -14
- package/icons/gcp/gce-systems-management.js +1 -1
- package/icons/gcp/genomics.js +16 -16
- package/icons/gcp/gke-on-prem.js +6 -6
- package/icons/gcp/google-cloud-marketplace.js +8 -8
- package/icons/gcp/google-kubernetes-engine.js +10 -10
- package/icons/gcp/google-maps-platform.js +6 -6
- package/icons/gcp/healthcare-nlp-api.js +1 -1
- package/icons/gcp/home.js +7 -7
- package/icons/gcp/identity-and-access-management.js +3 -3
- package/icons/gcp/identity-aware-proxy.js +7 -7
- package/icons/gcp/identity-platform.js +7 -7
- package/icons/gcp/iot-core.js +3 -3
- package/icons/gcp/iot-edge.js +35 -35
- package/icons/gcp/key-access-justifications.js +11 -11
- package/icons/gcp/key-management-service.js +3 -3
- package/icons/gcp/kuberun.js +5 -5
- package/icons/gcp/launcher.js +11 -11
- package/icons/gcp/local-ssd.js +1 -1
- package/icons/gcp/looker.js +5 -5
- package/icons/gcp/managed-service-for-microsoft-active-directory.js +9 -9
- package/icons/gcp/media-translation-api.js +4 -4
- package/icons/gcp/memorystore.js +7 -7
- package/icons/gcp/migrate-for-anthos.js +1 -1
- package/icons/gcp/migrate-for-compute-engine.js +1 -1
- package/icons/gcp/my-cloud.js +6 -6
- package/icons/gcp/network-connectivity-center.js +23 -23
- package/icons/gcp/network-intelligence-center.js +1 -1
- package/icons/gcp/network-security.js +7 -7
- package/icons/gcp/network-tiers.js +10 -10
- package/icons/gcp/network-topology.js +1 -1
- package/icons/gcp/onboarding.js +8 -8
- package/icons/gcp/os-configuration-management.js +1 -1
- package/icons/gcp/os-inventory-management.js +3 -3
- package/icons/gcp/os-patch-management.js +1 -1
- package/icons/gcp/partner-interconnect.js +8 -8
- package/icons/gcp/partner-portal.js +4 -4
- package/icons/gcp/performance-dashboard.js +1 -1
- package/icons/gcp/permissions.js +5 -5
- package/icons/gcp/persistent-disk.js +4 -4
- package/icons/gcp/phishing-protection.js +10 -10
- package/icons/gcp/policy-analyzer.js +1 -1
- package/icons/gcp/premium-network-tier.js +6 -6
- package/icons/gcp/private-connectivity.js +6 -6
- package/icons/gcp/private-service-connect.js +9 -9
- package/icons/gcp/producer-portal.js +5 -5
- package/icons/gcp/profiler.js +8 -8
- package/icons/gcp/project.js +11 -11
- package/icons/gcp/pub-sub.js +19 -19
- package/icons/gcp/quantum-engine.js +7 -7
- package/icons/gcp/quotas.js +12 -12
- package/icons/gcp/real-world-insights.js +6 -6
- package/icons/gcp/recommendations-ai.js +16 -16
- package/icons/gcp/release-notes.js +1 -1
- package/icons/gcp/retail-api.js +4 -4
- package/icons/gcp/risk-manager.js +1 -1
- package/icons/gcp/runtime-config.js +12 -12
- package/icons/gcp/secret-manager.js +1 -1
- package/icons/gcp/security-command-center.js +5 -5
- package/icons/gcp/security-health-advisor.js +11 -11
- package/icons/gcp/security-key-enforcement.js +3 -3
- package/icons/gcp/security.js +4 -4
- package/icons/gcp/service-discovery.js +13 -13
- package/icons/gcp/speech-to-text.js +14 -14
- package/icons/gcp/stackdriver.js +4 -4
- package/icons/gcp/standard-network-tier.js +1 -1
- package/icons/gcp/stream-suite.js +4 -4
- package/icons/gcp/support.js +5 -5
- package/icons/gcp/tensorflow-enterprise.js +1 -1
- package/icons/gcp/text-to-speech.js +5 -5
- package/icons/gcp/tools-for-powershell.js +10 -10
- package/icons/gcp/trace.js +9 -9
- package/icons/gcp/traffic-director.js +11 -11
- package/icons/gcp/transfer-appliance.js +7 -7
- package/icons/gcp/transfer.js +1 -1
- package/icons/gcp/user-preferences.js +5 -5
- package/icons/gcp/vertex-ai.js +24 -24
- package/icons/gcp/video-intelligence-api.js +3 -3
- package/icons/gcp/virtual-private-cloud.js +12 -12
- package/icons/gcp/visual-inspection.js +4 -4
- package/icons/gcp/vmware-engine.js +1 -1
- package/icons/gcp/web-risk.js +11 -11
- package/icons/gcp/web-security-scanner.js +8 -8
- package/icons/gcp/workflows.js +12 -12
- package/icons/gcp/workload-identity-pool.js +5 -5
- package/icons/tech/aarch64.js +7 -7
- package/icons/tech/adobe-illustrator.js +1 -1
- package/icons/tech/adobe-photoshop.js +1 -1
- package/icons/tech/adobe-premiere-pro.js +4 -4
- package/icons/tech/adobe-xd.js +1 -1
- package/icons/tech/adonis-js.js +1 -1
- package/icons/tech/after-effects.js +4 -4
- package/icons/tech/airflow.js +10 -10
- package/icons/tech/akka.js +3 -3
- package/icons/tech/algolia.js +1 -1
- package/icons/tech/alpine-js.js +3 -3
- package/icons/tech/amazon-web-services.js +3 -3
- package/icons/tech/anaconda.js +1 -1
- package/icons/tech/android-studio.js +8 -8
- package/icons/tech/android.js +5 -5
- package/icons/tech/angular-js.js +6 -6
- package/icons/tech/angular.js +4 -4
- package/icons/tech/ansible.js +3 -3
- package/icons/tech/ant-design.js +21 -21
- package/icons/tech/apache.js +71 -71
- package/icons/tech/apl.js +3 -3
- package/icons/tech/appcelerator.js +1 -1
- package/icons/tech/apple-safari.js +10 -10
- package/icons/tech/apple.js +1 -1
- package/icons/tech/appwrite.js +3 -3
- package/icons/tech/arch-linux.js +3 -3
- package/icons/tech/arduino.js +3 -3
- package/icons/tech/argo-cd.js +31 -31
- package/icons/tech/astro.js +11 -11
- package/icons/tech/atom.js +1 -1
- package/icons/tech/autodesk-maya.js +41 -41
- package/icons/tech/autodesk-shot-grid.js +3 -3
- package/icons/tech/awk.js +15 -15
- package/icons/tech/azios.js +1 -1
- package/icons/tech/azure-devops.js +8 -8
- package/icons/tech/azure-sql-database.js +19 -19
- package/icons/tech/azure.js +18 -18
- package/icons/tech/babel.js +3 -3
- package/icons/tech/backbone-js.js +4 -4
- package/icons/tech/ballerina.js +1 -1
- package/icons/tech/bamboo.js +11 -11
- package/icons/tech/bash.js +4 -4
- package/icons/tech/behance.js +6 -6
- package/icons/tech/bitbucket.js +6 -6
- package/icons/tech/blender.js +3 -3
- package/icons/tech/bootstrap.js +18 -18
- package/icons/tech/bower.js +15 -15
- package/icons/tech/browserstack.js +11 -11
- package/icons/tech/bulma.js +1 -1
- package/icons/tech/bun.js +14 -14
- package/icons/tech/c.js +4 -4
- package/icons/tech/cairo-graphics.js +3 -3
- package/icons/tech/cake-php.js +1 -1
- package/icons/tech/canva.js +3 -3
- package/icons/tech/capacitor.js +7 -7
- package/icons/tech/cassandra.js +14 -14
- package/icons/tech/cent-os.js +10 -10
- package/icons/tech/chrome.js +35 -35
- package/icons/tech/circle-ci.js +1 -1
- package/icons/tech/clarity.js +5 -5
- package/icons/tech/clion.js +27 -27
- package/icons/tech/clojure-script.js +5 -5
- package/icons/tech/clojure.js +6 -6
- package/icons/tech/cloudflare-workers.js +34 -34
- package/icons/tech/cloudflare.js +4 -4
- package/icons/tech/cmake.js +5 -5
- package/icons/tech/code-igniter.js +1 -1
- package/icons/tech/code-pen.js +1 -1
- package/icons/tech/codeac.js +1 -1
- package/icons/tech/codecov.js +1 -1
- package/icons/tech/coffee-script.js +1 -1
- package/icons/tech/composer.js +32 -32
- package/icons/tech/confluence.js +12 -12
- package/icons/tech/consul.js +1 -1
- package/icons/tech/contao.js +1 -1
- package/icons/tech/corejs.js +1 -1
- package/icons/tech/cosmosdb.js +6 -6
- package/icons/tech/couchdb.js +1 -1
- package/icons/tech/cplusplus.js +5 -5
- package/icons/tech/crystal.js +1 -1
- package/icons/tech/csharp.js +4 -4
- package/icons/tech/css3.js +7 -7
- package/icons/tech/cucumber.js +1 -1
- package/icons/tech/cypress.js +3 -3
- package/icons/tech/d3js.js +25 -25
- package/icons/tech/dart.js +6 -6
- package/icons/tech/data-grip.js +31 -31
- package/icons/tech/data-spell.js +24 -24
- package/icons/tech/dbeaver.js +8 -8
- package/icons/tech/debian.js +1 -1
- package/icons/tech/deno.js +1 -1
- package/icons/tech/devicon.js +7 -7
- package/icons/tech/digital-ocean.js +3 -3
- package/icons/tech/discord-js.js +8 -8
- package/icons/tech/django-rest.js +5 -5
- package/icons/tech/django.js +3 -3
- package/icons/tech/docker.js +17 -17
- package/icons/tech/doctrine.js +3 -3
- package/icons/tech/dropwizard.js +19 -19
- package/icons/tech/drupal.js +8 -8
- package/icons/tech/eclipse-ceylon.js +7 -7
- package/icons/tech/eclipse-ide.js +17 -17
- package/icons/tech/eclipse-vert-x.js +3 -3
- package/icons/tech/elasticbeats.js +4 -4
- package/icons/tech/elasticsearch.js +4 -4
- package/icons/tech/electron.js +5 -5
- package/icons/tech/eleventy-11ty.js +3 -3
- package/icons/tech/elixir.js +32 -32
- package/icons/tech/elm.js +7 -7
- package/icons/tech/embedded-c.js +27 -27
- package/icons/tech/ember-js.js +3 -3
- package/icons/tech/envoy.js +4 -4
- package/icons/tech/erlang.js +1 -1
- package/icons/tech/eslint.js +3 -3
- package/icons/tech/express.js +1 -1
- package/icons/tech/facebook.js +3 -3
- package/icons/tech/fast-api.js +1 -1
- package/icons/tech/fastify.js +3 -3
- package/icons/tech/fauna.js +1 -1
- package/icons/tech/feathers.js +1 -1
- package/icons/tech/fedora.js +7 -7
- package/icons/tech/figma.js +6 -6
- package/icons/tech/file-zilla.js +5 -5
- package/icons/tech/firebase.js +1 -1
- package/icons/tech/firefox.js +332 -332
- package/icons/tech/flask.js +1 -1
- package/icons/tech/flutter.js +9 -9
- package/icons/tech/fortran.js +1 -1
- package/icons/tech/foundation.js +34 -34
- package/icons/tech/fsharp.js +4 -4
- package/icons/tech/gatling.js +1 -1
- package/icons/tech/gatsby.js +1 -1
- package/icons/tech/gazebo.js +5 -5
- package/icons/tech/gcc.js +8 -8
- package/icons/tech/gentoo.js +1 -1
- package/icons/tech/ghost.js +3 -3
- package/icons/tech/gimp.js +65 -65
- package/icons/tech/git.js +1 -1
- package/icons/tech/gitbook.js +1 -1
- package/icons/tech/github-actions.js +3 -3
- package/icons/tech/github-codespaces.js +15 -15
- package/icons/tech/github.js +3 -3
- package/icons/tech/gitlab.js +5 -5
- package/icons/tech/gitpod.js +5 -5
- package/icons/tech/gitter.js +1 -1
- package/icons/tech/gnu-emacs.js +1 -1
- package/icons/tech/go-land.js +30 -30
- package/icons/tech/go.js +36 -36
- package/icons/tech/godot-engine.js +8 -8
- package/icons/tech/google-cloud.js +5 -5
- package/icons/tech/google.js +6 -6
- package/icons/tech/gradle.js +1 -1
- package/icons/tech/grafana.js +5 -5
- package/icons/tech/grails.js +3 -3
- package/icons/tech/graphql.js +9 -9
- package/icons/tech/groovy.js +99 -99
- package/icons/tech/grunt-js.js +30 -30
- package/icons/tech/gulp-js.js +1 -1
- package/icons/tech/hadoop.js +6 -6
- package/icons/tech/handlebars.js +3 -3
- package/icons/tech/hardhat.js +23 -23
- package/icons/tech/harvester.js +4 -4
- package/icons/tech/hashicorp-vault.js +1 -1
- package/icons/tech/haskell.js +4 -4
- package/icons/tech/haxe.js +11 -11
- package/icons/tech/helm.js +1 -1
- package/icons/tech/heroku.js +1 -1
- package/icons/tech/hibernate.js +3 -3
- package/icons/tech/homebrew.js +6 -6
- package/icons/tech/html5.js +5 -5
- package/icons/tech/hugo.js +4 -4
- package/icons/tech/ibm-spss-statistics.js +3 -3
- package/icons/tech/ie10.js +1 -1
- package/icons/tech/ifttt.js +1 -1
- package/icons/tech/influxdb.js +1 -1
- package/icons/tech/inkscape.js +112 -112
- package/icons/tech/insomnia.js +7 -7
- package/icons/tech/intellij-idea.js +34 -34
- package/icons/tech/ionic.js +3 -3
- package/icons/tech/jaeger.js +18 -18
- package/icons/tech/jamstack.js +1 -1
- package/icons/tech/jasmine.js +4 -4
- package/icons/tech/java.js +6 -6
- package/icons/tech/javascript.js +3 -3
- package/icons/tech/jeet.js +29 -29
- package/icons/tech/jekyll.js +40 -40
- package/icons/tech/jenkins.js +18 -18
- package/icons/tech/jest.js +1 -1
- package/icons/tech/jetbrains.js +23 -23
- package/icons/tech/jira-align.js +12 -12
- package/icons/tech/jira.js +11 -11
- package/icons/tech/jquery.js +1 -1
- package/icons/tech/json.js +9 -9
- package/icons/tech/jule.js +1 -1
- package/icons/tech/julia.js +7 -7
- package/icons/tech/junit.js +3 -3
- package/icons/tech/jupyter.js +5 -5
- package/icons/tech/k3os.js +1 -1
- package/icons/tech/k3s.js +1 -1
- package/icons/tech/kafka.js +1 -1
- package/icons/tech/kaggle.js +1 -1
- package/icons/tech/karate.js +3 -3
- package/icons/tech/karma.js +3 -3
- package/icons/tech/keras.js +3 -3
- package/icons/tech/kibana.js +4 -4
- package/icons/tech/knex-js.js +1 -1
- package/icons/tech/knockout.js +1 -1
- package/icons/tech/kotlin.js +6 -6
- package/icons/tech/krakenjs.js +1 -1
- package/icons/tech/ktor.js +15 -15
- package/icons/tech/kubernetes.js +4 -4
- package/icons/tech/labview.js +4 -4
- package/icons/tech/laravel.js +1 -1
- package/icons/tech/latex.js +6 -6
- package/icons/tech/less-js.js +1 -1
- package/icons/tech/linkedin.js +3 -3
- package/icons/tech/linux.js +800 -800
- package/icons/tech/liquibase.js +1 -1
- package/icons/tech/livewire.js +9 -9
- package/icons/tech/llvm.js +6 -6
- package/icons/tech/logstash.js +4 -4
- package/icons/tech/lua.js +4 -4
- package/icons/tech/lumen.js +1 -1
- package/icons/tech/magento.js +1 -1
- package/icons/tech/markdown.js +3 -3
- package/icons/tech/material-ui.js +5 -5
- package/icons/tech/materialize.js +3 -3
- package/icons/tech/matlab.js +22 -22
- package/icons/tech/matplotlib.js +23 -23
- package/icons/tech/maven.js +138 -138
- package/icons/tech/meteor-js.js +1 -1
- package/icons/tech/microsoft-sql-server.js +1 -1
- package/icons/tech/minitab.js +8 -8
- package/icons/tech/mob-x.js +6 -6
- package/icons/tech/mocha.js +3 -3
- package/icons/tech/modx.js +5 -5
- package/icons/tech/moleculer.js +1 -1
- package/icons/tech/mongodb.js +17 -17
- package/icons/tech/mongoose-js.js +3 -3
- package/icons/tech/moodle.js +38 -38
- package/icons/tech/ms-dos.js +12 -12
- package/icons/tech/mysql.js +1 -1
- package/icons/tech/nano.js +1 -1
- package/icons/tech/nerog.js +24 -24
- package/icons/tech/nestjs.js +1 -1
- package/icons/tech/net-core.js +3 -3
- package/icons/tech/net.js +117 -117
- package/icons/tech/network-x.js +10 -10
- package/icons/tech/new4j.js +3 -3
- package/icons/tech/nextjs.js +1 -1
- package/icons/tech/nginx.js +1 -1
- package/icons/tech/nhibernate.js +3 -3
- package/icons/tech/nim.js +3 -3
- package/icons/tech/nimble.js +8 -8
- package/icons/tech/nix.js +3 -3
- package/icons/tech/nodejs.js +1 -1
- package/icons/tech/nodemon.js +3 -3
- package/icons/tech/nodewebkit.js +6 -6
- package/icons/tech/npm.js +1 -1
- package/icons/tech/nuget.js +1 -1
- package/icons/tech/num-py.js +3 -3
- package/icons/tech/nuxt-js.js +4 -4
- package/icons/tech/objective-c.js +3 -3
- package/icons/tech/ocaml.js +19 -19
- package/icons/tech/oh-my-zsh.js +5 -5
- package/icons/tech/okta.js +3 -3
- package/icons/tech/open-al.js +3 -3
- package/icons/tech/open-api.js +13 -13
- package/icons/tech/open-cl.js +6 -6
- package/icons/tech/open-cv.js +4 -4
- package/icons/tech/open-gl.js +5 -5
- package/icons/tech/open-stack.js +1 -1
- package/icons/tech/open-suse.js +3 -3
- package/icons/tech/open-telemetry.js +3 -3
- package/icons/tech/opera.js +11 -11
- package/icons/tech/oracle.js +1 -1
- package/icons/tech/p5js.js +1 -1
- package/icons/tech/packer.js +3 -3
- package/icons/tech/pandas.js +6 -6
- package/icons/tech/perl.js +3 -3
- package/icons/tech/pf-sense.js +1 -1
- package/icons/tech/phalcon.js +26 -26
- package/icons/tech/phoenix-framework.js +1 -1
- package/icons/tech/photon-engine.js +9 -9
- package/icons/tech/php-storm.js +28 -28
- package/icons/tech/php.js +14 -14
- package/icons/tech/playwrite.js +8 -8
- package/icons/tech/ploty.js +4 -4
- package/icons/tech/podman.js +24 -24
- package/icons/tech/polygon.js +3 -3
- package/icons/tech/portainer.js +6 -6
- package/icons/tech/postcss.js +4 -4
- package/icons/tech/postgresql.js +5 -5
- package/icons/tech/postman.js +4 -4
- package/icons/tech/powershell.js +14 -14
- package/icons/tech/processing.js +95 -95
- package/icons/tech/prometheus.js +1 -1
- package/icons/tech/protractor.js +1 -1
- package/icons/tech/purescript.js +1 -1
- package/icons/tech/putty.js +44 -44
- package/icons/tech/pycharm.js +52 -52
- package/icons/tech/pyscript.js +3 -3
- package/icons/tech/pytest.js +9 -9
- package/icons/tech/python-poetry.js +34 -34
- package/icons/tech/python.js +13 -13
- package/icons/tech/pytorch.js +3 -3
- package/icons/tech/qodana.js +19 -19
- package/icons/tech/qt.js +1 -1
- package/icons/tech/quarkus.js +11 -11
- package/icons/tech/quasar.js +3 -3
- package/icons/tech/qwik.js +4 -4
- package/icons/tech/r.js +10 -10
- package/icons/tech/rabbitmq.js +1 -1
- package/icons/tech/rancher.js +1 -1
- package/icons/tech/raspberrypi.js +4 -4
- package/icons/tech/reach.js +3 -3
- package/icons/tech/react-bootstrap.js +1 -1
- package/icons/tech/react.js +3 -3
- package/icons/tech/realm.js +9 -9
- package/icons/tech/red-cube-s-epic-compiler-thingy-programming-re-ct.js +5 -5
- package/icons/tech/redhat.js +4 -4
- package/icons/tech/redis.js +11 -11
- package/icons/tech/redux.js +1 -1
- package/icons/tech/ren-py.js +161 -161
- package/icons/tech/rider.js +17 -17
- package/icons/tech/robot-operating-system-ros.js +1 -1
- package/icons/tech/rocksdb.js +3 -3
- package/icons/tech/rollup-js.js +34 -34
- package/icons/tech/rspec.js +5 -5
- package/icons/tech/rstudio.js +4 -4
- package/icons/tech/ruby-mine.js +25 -25
- package/icons/tech/ruby-on-rails.js +1 -1
- package/icons/tech/ruby.js +117 -117
- package/icons/tech/rust.js +1 -1
- package/icons/tech/salesforce.js +4 -4
- package/icons/tech/sanity.js +4 -4
- package/icons/tech/sass.js +1 -1
- package/icons/tech/scala.js +3 -3
- package/icons/tech/scalingo.js +3 -3
- package/icons/tech/sdl.js +8 -8
- package/icons/tech/selenium.js +3 -3
- package/icons/tech/sema-software.js +1 -1
- package/icons/tech/sequelize.js +28 -28
- package/icons/tech/shopware.js +3 -3
- package/icons/tech/sketch.js +8 -8
- package/icons/tech/slack.js +5 -5
- package/icons/tech/socket-io.js +3 -3
- package/icons/tech/solid-js.js +24 -24
- package/icons/tech/solidity.js +7 -7
- package/icons/tech/sonarqube.js +1 -1
- package/icons/tech/sourcetree.js +1 -1
- package/icons/tech/spark.js +1 -1
- package/icons/tech/splunk.js +1 -1
- package/icons/tech/spring.js +1 -1
- package/icons/tech/sql-developer.js +7 -7
- package/icons/tech/sqlalchemy.js +3 -3
- package/icons/tech/sqlite.js +8 -8
- package/icons/tech/ssh.js +1 -1
- package/icons/tech/stackoverflow.js +3 -3
- package/icons/tech/stata.js +1 -1
- package/icons/tech/storybook.js +1 -1
- package/icons/tech/streamlit.js +4 -4
- package/icons/tech/stylus.js +3 -3
- package/icons/tech/subversion.js +1 -1
- package/icons/tech/svelte.js +3 -3
- package/icons/tech/swagger.js +3 -3
- package/icons/tech/swift.js +3 -3
- package/icons/tech/symfony.js +1 -1
- package/icons/tech/tailwind-css.js +1 -1
- package/icons/tech/tauri.js +5 -5
- package/icons/tech/tensorflow.js +1 -1
- package/icons/tech/terraform.js +4 -4
- package/icons/tech/tex.js +1 -1
- package/icons/tech/the-algorithms.js +1 -1
- package/icons/tech/three-js.js +5 -5
- package/icons/tech/titanium-sdk.js +1 -1
- package/icons/tech/tomcat.js +8 -8
- package/icons/tech/tortoise-git.js +6 -6
- package/icons/tech/tower.js +136 -136
- package/icons/tech/traefik-mesh.js +1 -1
- package/icons/tech/traefik-proxy.js +1 -1
- package/icons/tech/travis-ci.js +1 -1
- package/icons/tech/trello.js +1 -1
- package/icons/tech/twitter.js +1 -1
- package/icons/tech/typescript.js +3 -3
- package/icons/tech/typo3.js +1 -1
- package/icons/tech/ubuntu.js +1 -1
- package/icons/tech/uml.js +5 -5
- package/icons/tech/unity.js +4 -4
- package/icons/tech/unix.js +1 -1
- package/icons/tech/unreal-engine.js +3 -3
- package/icons/tech/uwsgi.js +8 -8
- package/icons/tech/v8.js +30 -30
- package/icons/tech/vagrant.js +3 -3
- package/icons/tech/vala.js +15 -15
- package/icons/tech/vercel.js +1 -1
- package/icons/tech/veutify.js +5 -5
- package/icons/tech/vim.js +34 -34
- package/icons/tech/visualstudio.js +1 -1
- package/icons/tech/vite.js +1 -1
- package/icons/tech/vitejs.js +11 -11
- package/icons/tech/vscode.js +28 -28
- package/icons/tech/vsphere.js +6 -6
- package/icons/tech/vue-storefront.js +4 -4
- package/icons/tech/vue.js +4 -4
- package/icons/tech/vyper.js +5 -5
- package/icons/tech/webassembly.js +1 -1
- package/icons/tech/webflow.js +1 -1
- package/icons/tech/weblate.js +14 -14
- package/icons/tech/webpack.js +3 -3
- package/icons/tech/webstorm.js +16 -16
- package/icons/tech/windows11.js +1 -1
- package/icons/tech/windows8.js +1 -1
- package/icons/tech/woo-commerce.js +4 -4
- package/icons/tech/wordpress.js +8 -8
- package/icons/tech/xamarin.js +1 -1
- package/icons/tech/xcode.js +248 -248
- package/icons/tech/xml.js +5 -5
- package/icons/tech/yaml.js +4 -4
- package/icons/tech/yarn.js +3 -3
- package/icons/tech/yii-framework.js +5 -5
- package/icons/tech/yuno-host.js +3 -3
- package/icons/tech/zend-framework.js +1 -1
- package/icons/tech/zig.js +10 -10
- package/package.json +9 -9
- package/dist/__app__/src/chunks/IconCopy-BoSoNPZ_.js +0 -21
- package/dist/__app__/src/chunks/LikeC4Diagram-DytrE8GE.js +0 -9769
- package/dist/__app__/src/chunks/StaticLikeC4Diagram-DdbjVDqf.js +0 -32
- package/dist/__app__/src/chunks/chunk-RAAYCPUM-CpeCcSnm.js +0 -13
- package/dist/__app__/src/chunks/chunk-SGAFZVQH-F2W_It6h.js +0 -8
- package/dist/__app__/src/chunks/const-DiwrD95Q.js +0 -6
- package/dist/__app__/src/chunks/createReactComponent-BWheWDGL.js +0 -64
- package/dist/__app__/src/chunks/index-BxglQLE6.js +0 -10
- package/dist/__app__/src/chunks/index-fBIC0lf6.js +0 -12
- package/dist/__app__/src/chunks/react-resizable-panels.browser.esm-BaxT8im_.js +0 -1528
- package/dist/__app__/src/components/ColorSchemeToggle.js +0 -38
- package/dist/__app__/src/components/CopyToClipboard.js +0 -17
- package/dist/__app__/src/components/NotFound.js +0 -40
- package/dist/__app__/src/components/sidebar/Drawer.js +0 -186
- package/dist/__app__/src/components/view-page/Header.js +0 -416
- package/dist/__app__/src/hooks.js +0 -16
- package/dist/__app__/src/routeTree.gen.js +0 -57
- package/dist/__app__/src/router.js +0 -26
- package/dist/__app__/src/routes/__root.js +0 -42
- package/dist/__app__/src/routes/embed._viewId.js +0 -45
- package/dist/__app__/src/routes/export._viewId.js +0 -60
- package/dist/__app__/src/routes/index.css.js +0 -7
- package/dist/__app__/src/routes/index.js +0 -89
- package/dist/__app__/src/routes/view._viewId.d2.js +0 -53
- package/dist/__app__/src/routes/view._viewId.dot.js +0 -58
- package/dist/__app__/src/routes/view._viewId.editor.js +0 -43
- package/dist/__app__/src/routes/view._viewId.index.js +0 -39
- package/dist/__app__/src/routes/view._viewId.js +0 -173
- package/dist/__app__/src/routes/view._viewId.mmd.js +0 -102
- package/dist/__app__/src/routes/view.css.js +0 -12
- package/dist/__app__/src/routes/view_viewId_.css.js +0 -7
- package/dist/__app__/src/routes/webcomponent._.js +0 -61
- package/dist/__app__/src/theme.js +0 -21
- /package/dist/__app__/src/{components/RenderIcon.js → icons.js} +0 -0
- /package/dist/__app__/src/{routes/-view-lazy-data.js → lazy-data.js} +0 -0
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import React__default, { useState, Fragment, createContext, useContext, useRef, useEffect, useMemo, useCallback, useLayoutEffect, useId as useId$2, forwardRef,
|
|
3
|
-
cloneElement, Children, createElement } from "react";
|
|
2
|
+
import React__default, { useState, Fragment, createContext, useContext, useRef, useEffect, useMemo, useCallback, useLayoutEffect, useId as useId$2, forwardRef, cloneElement, Children, createElement } from "react";
|
|
4
3
|
import { jsx, jsxs, Fragment as Fragment$1 } from "react/jsx-runtime";
|
|
5
4
|
import * as ReactDOM from "react-dom";
|
|
6
5
|
import ReactDOM__default, { createPortal } from "react-dom";
|
|
@@ -26,8 +25,7 @@ function __spreadArray(to, from, pack) {
|
|
|
26
25
|
(ar || !(i in from)) && (ar || (ar = Array.prototype.slice.call(from, 0, i)), ar[i] = from[i]);
|
|
27
26
|
return to.concat(ar || Array.prototype.slice.call(from));
|
|
28
27
|
}
|
|
29
|
-
var zeroRightClassName = "right-scroll-bar-position", fullWidthClassName = "width-before-scroll-bar", noScrollbarsClassName = "with-scroll-bars-hidden",
|
|
30
|
-
removedBarSizeVariable = "--removed-body-scroll-bar-size";
|
|
28
|
+
var zeroRightClassName = "right-scroll-bar-position", fullWidthClassName = "width-before-scroll-bar", noScrollbarsClassName = "with-scroll-bars-hidden", removedBarSizeVariable = "--removed-body-scroll-bar-size";
|
|
31
29
|
function assignRef$1(ref, value) {
|
|
32
30
|
return typeof ref == "function" ? ref(value) : ref && (ref.current = value), ref;
|
|
33
31
|
}
|
|
@@ -154,18 +152,12 @@ var effectCar = createSidecarMedium(), nothing = function() {
|
|
|
154
152
|
onScrollCapture: nothing,
|
|
155
153
|
onWheelCapture: nothing,
|
|
156
154
|
onTouchMoveCapture: nothing
|
|
157
|
-
}), callbacks = _a[0], setCallbacks = _a[1], forwardProps = props.forwardProps, children = props.children, className = props.className, removeScrollBar = props.
|
|
158
|
-
removeScrollBar, enabled = props.enabled, shards = props.shards, sideCar = props.sideCar, noIsolation = props.noIsolation, inert = props.inert, allowPinchZoom = props.
|
|
159
|
-
allowPinchZoom, _b = props.as, Container2 = _b === void 0 ? "div" : _b, gapMode = props.gapMode, rest = __rest(props, ["forwardProps", "children", "\
|
|
160
|
-
className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), SideCar2 = sideCar, containerRef = useMergeRefs(
|
|
161
|
-
[ref, parentRef]), containerProps = __assign(__assign({}, rest), callbacks);
|
|
155
|
+
}), callbacks = _a[0], setCallbacks = _a[1], forwardProps = props.forwardProps, children = props.children, className = props.className, removeScrollBar = props.removeScrollBar, enabled = props.enabled, shards = props.shards, sideCar = props.sideCar, noIsolation = props.noIsolation, inert = props.inert, allowPinchZoom = props.allowPinchZoom, _b = props.as, Container2 = _b === void 0 ? "div" : _b, gapMode = props.gapMode, rest = __rest(props, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), SideCar2 = sideCar, containerRef = useMergeRefs([ref, parentRef]), containerProps = __assign(__assign({}, rest), callbacks);
|
|
162
156
|
return React.createElement(
|
|
163
157
|
React.Fragment,
|
|
164
158
|
null,
|
|
165
|
-
enabled && React.createElement(SideCar2, { sideCar: effectCar, removeScrollBar, shards, noIsolation, inert, setCallbacks, allowPinchZoom: !!allowPinchZoom,
|
|
166
|
-
|
|
167
|
-
forwardProps ? React.cloneElement(React.Children.only(children), __assign(__assign({}, containerProps), { ref: containerRef })) : React.createElement(
|
|
168
|
-
Container2, __assign({}, containerProps, { className, ref: containerRef }), children)
|
|
159
|
+
enabled && React.createElement(SideCar2, { sideCar: effectCar, removeScrollBar, shards, noIsolation, inert, setCallbacks, allowPinchZoom: !!allowPinchZoom, lockRef: ref, gapMode }),
|
|
160
|
+
forwardProps ? React.cloneElement(React.Children.only(children), __assign(__assign({}, containerProps), { ref: containerRef })) : React.createElement(Container2, __assign({}, containerProps, { className, ref: containerRef }), children)
|
|
169
161
|
);
|
|
170
162
|
});
|
|
171
163
|
RemoveScroll.defaultProps = {
|
|
@@ -229,8 +221,7 @@ var stylesheetSingleton = function() {
|
|
|
229
221
|
}, parse = function(x) {
|
|
230
222
|
return parseInt(x || "", 10) || 0;
|
|
231
223
|
}, getOffset = function(gapMode) {
|
|
232
|
-
var cs = window.getComputedStyle(document.body), left = cs[gapMode === "padding" ? "paddingLeft" : "marginLeft"], top = cs[gapMode === "padding" ? "
|
|
233
|
-
paddingTop" : "marginTop"], right = cs[gapMode === "padding" ? "paddingRight" : "marginRight"];
|
|
224
|
+
var cs = window.getComputedStyle(document.body), left = cs[gapMode === "padding" ? "paddingLeft" : "marginLeft"], top = cs[gapMode === "padding" ? "paddingTop" : "marginTop"], right = cs[gapMode === "padding" ? "paddingRight" : "marginRight"];
|
|
234
225
|
return [parse(left), parse(top), parse(right)];
|
|
235
226
|
}, getGapWidth = function(gapMode) {
|
|
236
227
|
if (gapMode === void 0 && (gapMode = "margin"), typeof window > "u")
|
|
@@ -364,20 +355,16 @@ var nonPassive = passiveSupported ? { passive: !1 } : !1, alwaysContainsScroll =
|
|
|
364
355
|
}, getDirectionFactor = function(axis, direction) {
|
|
365
356
|
return axis === "h" && direction === "rtl" ? -1 : 1;
|
|
366
357
|
}, handleScroll = function(axis, endTarget, event, sourceDelta, noOverscroll) {
|
|
367
|
-
var directionFactor = getDirectionFactor(axis, window.getComputedStyle(endTarget).direction), delta = directionFactor * sourceDelta, target = event.
|
|
368
|
-
target, targetInLock = endTarget.contains(target), shouldCancelScroll = !1, isDeltaPositive = delta > 0, availableScroll = 0, availableScrollTop = 0;
|
|
358
|
+
var directionFactor = getDirectionFactor(axis, window.getComputedStyle(endTarget).direction), delta = directionFactor * sourceDelta, target = event.target, targetInLock = endTarget.contains(target), shouldCancelScroll = !1, isDeltaPositive = delta > 0, availableScroll = 0, availableScrollTop = 0;
|
|
369
359
|
do {
|
|
370
|
-
var _a = getScrollVariables(axis, target), position = _a[0], scroll_1 = _a[1], capacity = _a[2], elementScroll = scroll_1 - capacity - directionFactor *
|
|
371
|
-
position;
|
|
372
|
-
(position || elementScroll) && elementCouldBeScrolled(axis, target) && (availableScroll += elementScroll, availableScrollTop += position), target instanceof
|
|
373
|
-
ShadowRoot ? target = target.host : target = target.parentNode;
|
|
360
|
+
var _a = getScrollVariables(axis, target), position = _a[0], scroll_1 = _a[1], capacity = _a[2], elementScroll = scroll_1 - capacity - directionFactor * position;
|
|
361
|
+
(position || elementScroll) && elementCouldBeScrolled(axis, target) && (availableScroll += elementScroll, availableScrollTop += position), target instanceof ShadowRoot ? target = target.host : target = target.parentNode;
|
|
374
362
|
} while (
|
|
375
363
|
// portaled content
|
|
376
364
|
!targetInLock && target !== document.body || // self content
|
|
377
365
|
targetInLock && (endTarget.contains(target) || endTarget === target)
|
|
378
366
|
);
|
|
379
|
-
return (isDeltaPositive && (Math.abs(availableScroll) < 1 || !noOverscroll) || !isDeltaPositive && (Math.abs(availableScrollTop) < 1 || !noOverscroll)) &&
|
|
380
|
-
(shouldCancelScroll = !0), shouldCancelScroll;
|
|
367
|
+
return (isDeltaPositive && (Math.abs(availableScroll) < 1 || !noOverscroll) || !isDeltaPositive && (Math.abs(availableScrollTop) < 1 || !noOverscroll)) && (shouldCancelScroll = !0), shouldCancelScroll;
|
|
381
368
|
}, getTouchXY = function(event) {
|
|
382
369
|
return "changedTouches" in event ? [event.changedTouches[0].clientX, event.changedTouches[0].clientY] : [0, 0];
|
|
383
370
|
}, getDeltaXY = function(event) {
|
|
@@ -393,8 +380,7 @@ var nonPassive = passiveSupported ? { passive: !1 } : !1, alwaysContainsScroll =
|
|
|
393
380
|
`);
|
|
394
381
|
}, idCounter = 0, lockStack = [];
|
|
395
382
|
function RemoveScrollSideCar(props) {
|
|
396
|
-
var shouldPreventQueue = React.useRef([]), touchStartRef = React.useRef([0, 0]), activeAxis = React.useRef(), id = React.useState(idCounter++)[0], Style2 = React.
|
|
397
|
-
useState(styleSingleton)[0], lastProps = React.useRef(props);
|
|
383
|
+
var shouldPreventQueue = React.useRef([]), touchStartRef = React.useRef([0, 0]), activeAxis = React.useRef(), id = React.useState(idCounter++)[0], Style2 = React.useState(styleSingleton)[0], lastProps = React.useRef(props);
|
|
398
384
|
React.useEffect(function() {
|
|
399
385
|
lastProps.current = props;
|
|
400
386
|
}, [props]), React.useEffect(function() {
|
|
@@ -413,16 +399,13 @@ function RemoveScrollSideCar(props) {
|
|
|
413
399
|
var shouldCancelEvent = React.useCallback(function(event, parent) {
|
|
414
400
|
if ("touches" in event && event.touches.length === 2)
|
|
415
401
|
return !lastProps.current.allowPinchZoom;
|
|
416
|
-
var touch = getTouchXY(event), touchStart = touchStartRef.current, deltaX = "deltaX" in event ? event.deltaX : touchStart[0] - touch[0], deltaY = "
|
|
417
|
-
deltaY" in event ? event.deltaY : touchStart[1] - touch[1], currentAxis, target = event.target, moveDirection = Math.abs(deltaX) > Math.abs(deltaY) ? "\
|
|
418
|
-
h" : "v";
|
|
402
|
+
var touch = getTouchXY(event), touchStart = touchStartRef.current, deltaX = "deltaX" in event ? event.deltaX : touchStart[0] - touch[0], deltaY = "deltaY" in event ? event.deltaY : touchStart[1] - touch[1], currentAxis, target = event.target, moveDirection = Math.abs(deltaX) > Math.abs(deltaY) ? "h" : "v";
|
|
419
403
|
if ("touches" in event && moveDirection === "h" && target.type === "range")
|
|
420
404
|
return !1;
|
|
421
405
|
var canBeScrolledInMainDirection = locationCouldBeScrolled(moveDirection, target);
|
|
422
406
|
if (!canBeScrolledInMainDirection)
|
|
423
407
|
return !0;
|
|
424
|
-
if (canBeScrolledInMainDirection ? currentAxis = moveDirection : (currentAxis = moveDirection === "v" ? "h" : "v", canBeScrolledInMainDirection = locationCouldBeScrolled(
|
|
425
|
-
moveDirection, target)), !canBeScrolledInMainDirection)
|
|
408
|
+
if (canBeScrolledInMainDirection ? currentAxis = moveDirection : (currentAxis = moveDirection === "v" ? "h" : "v", canBeScrolledInMainDirection = locationCouldBeScrolled(moveDirection, target)), !canBeScrolledInMainDirection)
|
|
426
409
|
return !1;
|
|
427
410
|
if (!activeAxis.current && "changedTouches" in event && (deltaX || deltaY) && (activeAxis.current = currentAxis), !currentAxis)
|
|
428
411
|
return !0;
|
|
@@ -464,12 +447,10 @@ h" : "v";
|
|
|
464
447
|
onScrollCapture: scrollWheel,
|
|
465
448
|
onWheelCapture: scrollWheel,
|
|
466
449
|
onTouchMoveCapture: scrollTouchMove
|
|
467
|
-
}), document.addEventListener("wheel", shouldPrevent, nonPassive), document.addEventListener("touchmove", shouldPrevent, nonPassive), document.addEventListener(
|
|
468
|
-
"touchstart", scrollTouchStart, nonPassive), function() {
|
|
450
|
+
}), document.addEventListener("wheel", shouldPrevent, nonPassive), document.addEventListener("touchmove", shouldPrevent, nonPassive), document.addEventListener("touchstart", scrollTouchStart, nonPassive), function() {
|
|
469
451
|
lockStack = lockStack.filter(function(inst) {
|
|
470
452
|
return inst !== Style2;
|
|
471
|
-
}), document.removeEventListener("wheel", shouldPrevent, nonPassive), document.removeEventListener("touchmove", shouldPrevent, nonPassive), document.
|
|
472
|
-
removeEventListener("touchstart", scrollTouchStart, nonPassive);
|
|
453
|
+
}), document.removeEventListener("wheel", shouldPrevent, nonPassive), document.removeEventListener("touchmove", shouldPrevent, nonPassive), document.removeEventListener("touchstart", scrollTouchStart, nonPassive);
|
|
473
454
|
};
|
|
474
455
|
}, []);
|
|
475
456
|
var removeScrollBar = props.removeScrollBar, inert = props.inert;
|
|
@@ -510,10 +491,7 @@ function getTransformedScaledValue(value) {
|
|
|
510
491
|
}
|
|
511
492
|
function px(value) {
|
|
512
493
|
const transformedValue = getTransformedScaledValue(value);
|
|
513
|
-
return typeof transformedValue == "number" ? transformedValue : typeof transformedValue == "string" ? transformedValue.includes("calc") || transformedValue.
|
|
514
|
-
includes("var") ? transformedValue : transformedValue.includes("px") ? Number(transformedValue.replace("px", "")) : transformedValue.includes("rem") ?
|
|
515
|
-
Number(transformedValue.replace("rem", "")) * 16 : transformedValue.includes("em") ? Number(transformedValue.replace("em", "")) * 16 : Number(transformedValue) :
|
|
516
|
-
NaN;
|
|
494
|
+
return typeof transformedValue == "number" ? transformedValue : typeof transformedValue == "string" ? transformedValue.includes("calc") || transformedValue.includes("var") ? transformedValue : transformedValue.includes("px") ? Number(transformedValue.replace("px", "")) : transformedValue.includes("rem") ? Number(transformedValue.replace("rem", "")) * 16 : transformedValue.includes("em") ? Number(transformedValue.replace("em", "")) * 16 : Number(transformedValue) : NaN;
|
|
517
495
|
}
|
|
518
496
|
function scaleRem(remValue) {
|
|
519
497
|
return remValue === "0rem" ? "0rem" : `calc(${remValue} * var(--mantine-scale))`;
|
|
@@ -550,8 +528,7 @@ function filterProps(props) {
|
|
|
550
528
|
return Object.keys(props).reduce((acc, key) => (props[key] !== void 0 && (acc[key] = props[key]), acc), {});
|
|
551
529
|
}
|
|
552
530
|
function isNumberLike(value) {
|
|
553
|
-
return typeof value == "number" ? !0 : typeof value == "string" ? value.startsWith("calc(") || value.startsWith("var(") || value.includes(" ") && value.
|
|
554
|
-
trim() !== "" ? !0 : /[0-9]/.test(value.trim().replace("-", "")[0]) : !1;
|
|
531
|
+
return typeof value == "number" ? !0 : typeof value == "string" ? value.startsWith("calc(") || value.startsWith("var(") || value.includes(" ") && value.trim() !== "" ? !0 : /[0-9]/.test(value.trim().replace("-", "")[0]) : !1;
|
|
555
532
|
}
|
|
556
533
|
function isElement$1(value) {
|
|
557
534
|
return Array.isArray(value) || value === null ? !1 : typeof value == "object" ? value.type !== Fragment : !1;
|
|
@@ -622,28 +599,22 @@ function createScopedKeydownHandler({
|
|
|
622
599
|
findElementAncestor(event.currentTarget, parentSelector)?.querySelectorAll(
|
|
623
600
|
siblingSelector
|
|
624
601
|
) || []
|
|
625
|
-
).filter((node) => onSameLevel(event.currentTarget, node, parentSelector)), current = elements.findIndex((el) => event.currentTarget === el), _nextIndex = getNextIndex$1(
|
|
626
|
-
current, elements, loop), _previousIndex = getPreviousIndex$1(current, elements, loop), nextIndex = dir === "rtl" ? _previousIndex : _nextIndex, previousIndex = dir ===
|
|
627
|
-
"rtl" ? _nextIndex : _previousIndex;
|
|
602
|
+
).filter((node) => onSameLevel(event.currentTarget, node, parentSelector)), current = elements.findIndex((el) => event.currentTarget === el), _nextIndex = getNextIndex$1(current, elements, loop), _previousIndex = getPreviousIndex$1(current, elements, loop), nextIndex = dir === "rtl" ? _previousIndex : _nextIndex, previousIndex = dir === "rtl" ? _nextIndex : _previousIndex;
|
|
628
603
|
switch (event.key) {
|
|
629
604
|
case "ArrowRight": {
|
|
630
|
-
orientation === "horizontal" && (event.stopPropagation(), event.preventDefault(), elements[nextIndex].focus(), activateOnFocus && elements[nextIndex].
|
|
631
|
-
click());
|
|
605
|
+
orientation === "horizontal" && (event.stopPropagation(), event.preventDefault(), elements[nextIndex].focus(), activateOnFocus && elements[nextIndex].click());
|
|
632
606
|
break;
|
|
633
607
|
}
|
|
634
608
|
case "ArrowLeft": {
|
|
635
|
-
orientation === "horizontal" && (event.stopPropagation(), event.preventDefault(), elements[previousIndex].focus(), activateOnFocus && elements[previousIndex].
|
|
636
|
-
click());
|
|
609
|
+
orientation === "horizontal" && (event.stopPropagation(), event.preventDefault(), elements[previousIndex].focus(), activateOnFocus && elements[previousIndex].click());
|
|
637
610
|
break;
|
|
638
611
|
}
|
|
639
612
|
case "ArrowUp": {
|
|
640
|
-
orientation === "vertical" && (event.stopPropagation(), event.preventDefault(), elements[_previousIndex].focus(), activateOnFocus && elements[_previousIndex].
|
|
641
|
-
click());
|
|
613
|
+
orientation === "vertical" && (event.stopPropagation(), event.preventDefault(), elements[_previousIndex].focus(), activateOnFocus && elements[_previousIndex].click());
|
|
642
614
|
break;
|
|
643
615
|
}
|
|
644
616
|
case "ArrowDown": {
|
|
645
|
-
orientation === "vertical" && (event.stopPropagation(), event.preventDefault(), elements[_nextIndex].focus(), activateOnFocus && elements[_nextIndex].
|
|
646
|
-
click());
|
|
617
|
+
orientation === "vertical" && (event.stopPropagation(), event.preventDefault(), elements[_nextIndex].focus(), activateOnFocus && elements[_nextIndex].click());
|
|
647
618
|
break;
|
|
648
619
|
}
|
|
649
620
|
case "Home": {
|
|
@@ -724,8 +695,7 @@ function useHovered() {
|
|
|
724
695
|
return [hovered, { setHovered, resetHovered: () => setHovered(-1) }];
|
|
725
696
|
}
|
|
726
697
|
function clamp$2(value, min2, max2) {
|
|
727
|
-
return min2 === void 0 && max2 === void 0 ? value : min2 !== void 0 && max2 === void 0 ? Math.max(value, min2) : Math.min(min2 === void 0 && max2 !==
|
|
728
|
-
void 0 ? value : Math.max(value, min2), max2);
|
|
698
|
+
return min2 === void 0 && max2 === void 0 ? value : min2 !== void 0 && max2 === void 0 ? Math.max(value, min2) : Math.min(min2 === void 0 && max2 !== void 0 ? value : Math.max(value, min2), max2);
|
|
729
699
|
}
|
|
730
700
|
function randomId() {
|
|
731
701
|
return `mantine-${Math.random().toString(36).slice(2, 11)}`;
|
|
@@ -766,8 +736,7 @@ function useClipboard({ timeout = 2e3 } = {}) {
|
|
|
766
736
|
window.clearTimeout(copyTimeout), setCopyTimeout(window.setTimeout(() => setCopied(!1), timeout)), setCopied(value);
|
|
767
737
|
};
|
|
768
738
|
return { copy: (valueToCopy) => {
|
|
769
|
-
"clipboard" in navigator ? navigator.clipboard.writeText(valueToCopy).then(() => handleCopyResult(!0)).catch((err) => setError(err)) : setError(new Error(
|
|
770
|
-
"useClipboard: navigator.clipboard is not supported"));
|
|
739
|
+
"clipboard" in navigator ? navigator.clipboard.writeText(valueToCopy).then(() => handleCopyResult(!0)).catch((err) => setError(err)) : setError(new Error("useClipboard: navigator.clipboard is not supported"));
|
|
771
740
|
}, reset: () => {
|
|
772
741
|
setCopied(!1), setError(null), window.clearTimeout(copyTimeout);
|
|
773
742
|
}, error, copied };
|
|
@@ -790,8 +759,7 @@ function useMediaQuery(query, initialValue, { getInitialValueInEffect } = {
|
|
|
790
759
|
), queryRef = useRef();
|
|
791
760
|
return useEffect(() => {
|
|
792
761
|
if ("matchMedia" in window)
|
|
793
|
-
return queryRef.current = window.matchMedia(query), setMatches(queryRef.current.matches), attachMediaListener(queryRef.current, (event) => setMatches(
|
|
794
|
-
event.matches));
|
|
762
|
+
return queryRef.current = window.matchMedia(query), setMatches(queryRef.current.matches), attachMediaListener(queryRef.current, (event) => setMatches(event.matches));
|
|
795
763
|
}, [query]), matches;
|
|
796
764
|
}
|
|
797
765
|
function useColorScheme(initialValue, options) {
|
|
@@ -813,16 +781,14 @@ function useDidUpdate(fn, dependencies) {
|
|
|
813
781
|
}
|
|
814
782
|
function useFocusReturn({ opened, shouldReturnFocus = !0 }) {
|
|
815
783
|
const lastActiveElement = useRef(), returnFocus = () => {
|
|
816
|
-
lastActiveElement.current && "focus" in lastActiveElement.current && typeof lastActiveElement.current.focus == "function" && lastActiveElement.current?.
|
|
817
|
-
focus({ preventScroll: !0 });
|
|
784
|
+
lastActiveElement.current && "focus" in lastActiveElement.current && typeof lastActiveElement.current.focus == "function" && lastActiveElement.current?.focus({ preventScroll: !0 });
|
|
818
785
|
};
|
|
819
786
|
return useDidUpdate(() => {
|
|
820
787
|
let timeout = -1;
|
|
821
788
|
const clearFocusTimeout = (event) => {
|
|
822
789
|
event.key === "Tab" && window.clearTimeout(timeout);
|
|
823
790
|
};
|
|
824
|
-
return document.addEventListener("keydown", clearFocusTimeout), opened ? lastActiveElement.current = document.activeElement : shouldReturnFocus &&
|
|
825
|
-
(timeout = window.setTimeout(returnFocus, 10)), () => {
|
|
791
|
+
return document.addEventListener("keydown", clearFocusTimeout), opened ? lastActiveElement.current = document.activeElement : shouldReturnFocus && (timeout = window.setTimeout(returnFocus, 10)), () => {
|
|
826
792
|
window.clearTimeout(timeout), document.removeEventListener("keydown", clearFocusTimeout);
|
|
827
793
|
};
|
|
828
794
|
}, [opened, shouldReturnFocus]), returnFocus;
|
|
@@ -833,18 +799,15 @@ function createAriaHider(containerNode, selector = "body > :not(script)") {
|
|
|
833
799
|
).map((node) => {
|
|
834
800
|
if (node?.shadowRoot?.contains(containerNode) || node.contains(containerNode))
|
|
835
801
|
return;
|
|
836
|
-
const ariaHidden = node.getAttribute("aria-hidden"), prevAriaHidden = node.getAttribute("data-hidden"), prevFocusId = node.getAttribute("data-
|
|
837
|
-
|
|
838
|
-
return node.setAttribute("data-focus-id", id), ariaHidden === null || ariaHidden === "false" ? node.setAttribute("aria-hidden", "true") : !prevAriaHidden &&
|
|
839
|
-
!prevFocusId && node.setAttribute("data-hidden", ariaHidden), {
|
|
802
|
+
const ariaHidden = node.getAttribute("aria-hidden"), prevAriaHidden = node.getAttribute("data-hidden"), prevFocusId = node.getAttribute("data-focus-id");
|
|
803
|
+
return node.setAttribute("data-focus-id", id), ariaHidden === null || ariaHidden === "false" ? node.setAttribute("aria-hidden", "true") : !prevAriaHidden && !prevFocusId && node.setAttribute("data-hidden", ariaHidden), {
|
|
840
804
|
node,
|
|
841
805
|
ariaHidden: prevAriaHidden || null
|
|
842
806
|
};
|
|
843
807
|
});
|
|
844
808
|
return () => {
|
|
845
809
|
rootNodes.forEach((item) => {
|
|
846
|
-
!item || id !== item.node.getAttribute("data-focus-id") || (item.ariaHidden === null ? item.node.removeAttribute("aria-hidden") : item.node.setAttribute(
|
|
847
|
-
"aria-hidden", item.ariaHidden), item.node.removeAttribute("data-focus-id"), item.node.removeAttribute("data-hidden"));
|
|
810
|
+
!item || id !== item.node.getAttribute("data-focus-id") || (item.ariaHidden === null ? item.node.removeAttribute("aria-hidden") : item.node.setAttribute("aria-hidden", item.ariaHidden), item.node.removeAttribute("data-focus-id"), item.node.removeAttribute("data-hidden"));
|
|
848
811
|
});
|
|
849
812
|
};
|
|
850
813
|
}
|
|
@@ -869,8 +832,7 @@ function getElementTabIndex(element) {
|
|
|
869
832
|
}
|
|
870
833
|
function focusable(element) {
|
|
871
834
|
const nodeName = element.nodeName.toLowerCase(), isTabIndexNotNaN = !Number.isNaN(getElementTabIndex(element));
|
|
872
|
-
return /* @ts-expect-error function accepts any html element but if it is a button, it should not be disabled to trigger the condition */ (TABBABLE_NODES.
|
|
873
|
-
test(nodeName) && !element.disabled || element instanceof HTMLAnchorElement && element.href || isTabIndexNotNaN) && visible(element);
|
|
835
|
+
return /* @ts-expect-error function accepts any html element but if it is a button, it should not be disabled to trigger the condition */ (TABBABLE_NODES.test(nodeName) && !element.disabled || element instanceof HTMLAnchorElement && element.href || isTabIndexNotNaN) && visible(element);
|
|
874
836
|
}
|
|
875
837
|
function tabbable(element) {
|
|
876
838
|
const tabIndex = getElementTabIndex(element);
|
|
@@ -1064,14 +1026,11 @@ function useMove(onChange, handlers, dir = "ltr") {
|
|
|
1064
1026
|
}
|
|
1065
1027
|
});
|
|
1066
1028
|
}, bindEvents = () => {
|
|
1067
|
-
document.addEventListener("mousemove", onMouseMove), document.addEventListener("mouseup", stopScrubbing), document.addEventListener("touchmove",
|
|
1068
|
-
onTouchMove), document.addEventListener("touchend", stopScrubbing);
|
|
1029
|
+
document.addEventListener("mousemove", onMouseMove), document.addEventListener("mouseup", stopScrubbing), document.addEventListener("touchmove", onTouchMove), document.addEventListener("touchend", stopScrubbing);
|
|
1069
1030
|
}, unbindEvents = () => {
|
|
1070
|
-
document.removeEventListener("mousemove", onMouseMove), document.removeEventListener("mouseup", stopScrubbing), document.removeEventListener("
|
|
1071
|
-
uchmove", onTouchMove), document.removeEventListener("touchend", stopScrubbing);
|
|
1031
|
+
document.removeEventListener("mousemove", onMouseMove), document.removeEventListener("mouseup", stopScrubbing), document.removeEventListener("touchmove", onTouchMove), document.removeEventListener("touchend", stopScrubbing);
|
|
1072
1032
|
}, startScrubbing = () => {
|
|
1073
|
-
!isSliding.current && mounted.current && (isSliding.current = !0, typeof handlers?.onScrubStart == "function" && handlers.onScrubStart(), setActive(
|
|
1074
|
-
!0), bindEvents());
|
|
1033
|
+
!isSliding.current && mounted.current && (isSliding.current = !0, typeof handlers?.onScrubStart == "function" && handlers.onScrubStart(), setActive(!0), bindEvents());
|
|
1075
1034
|
}, stopScrubbing = () => {
|
|
1076
1035
|
isSliding.current && mounted.current && (isSliding.current = !1, setActive(!1), unbindEvents(), setTimeout(() => {
|
|
1077
1036
|
typeof handlers?.onScrubEnd == "function" && handlers.onScrubEnd();
|
|
@@ -1161,15 +1120,13 @@ function getHotkeyMatcher(hotkey) {
|
|
|
1161
1120
|
return (event) => isExactHotkey(parseHotkey(hotkey), event);
|
|
1162
1121
|
}
|
|
1163
1122
|
function shouldFireEvent(event, tagsToIgnore, triggerOnContentEditable = !1) {
|
|
1164
|
-
return event.target instanceof HTMLElement ? (triggerOnContentEditable || !event.target.isContentEditable) && !tagsToIgnore.includes(event.target.tagName) :
|
|
1165
|
-
!0;
|
|
1123
|
+
return event.target instanceof HTMLElement ? (triggerOnContentEditable || !event.target.isContentEditable) && !tagsToIgnore.includes(event.target.tagName) : !0;
|
|
1166
1124
|
}
|
|
1167
1125
|
function useHotkeys(hotkeys, tagsToIgnore = ["INPUT", "TEXTAREA", "SELECT"], triggerOnContentEditable = !1) {
|
|
1168
1126
|
useEffect(() => {
|
|
1169
1127
|
const keydownListener = (event) => {
|
|
1170
1128
|
hotkeys.forEach(([hotkey, handler, options = { preventDefault: !0 }]) => {
|
|
1171
|
-
getHotkeyMatcher(hotkey)(event) && shouldFireEvent(event, tagsToIgnore, triggerOnContentEditable) && (options.preventDefault && event.preventDefault(),
|
|
1172
|
-
handler(event));
|
|
1129
|
+
getHotkeyMatcher(hotkey)(event) && shouldFireEvent(event, tagsToIgnore, triggerOnContentEditable) && (options.preventDefault && event.preventDefault(), handler(event));
|
|
1173
1130
|
});
|
|
1174
1131
|
};
|
|
1175
1132
|
return document.documentElement.addEventListener("keydown", keydownListener), () => document.documentElement.removeEventListener("keydown", keydownListener);
|
|
@@ -1208,8 +1165,7 @@ function useMutationObserver(callback, options, target) {
|
|
|
1208
1165
|
const observer = useRef(), ref = useRef(null);
|
|
1209
1166
|
return useEffect(() => {
|
|
1210
1167
|
const targetElement = typeof target == "function" ? target() : target;
|
|
1211
|
-
return (targetElement || ref.current) && (observer.current = new MutationObserver(callback), observer.current.observe(targetElement || ref.current,
|
|
1212
|
-
options)), () => {
|
|
1168
|
+
return (targetElement || ref.current) && (observer.current = new MutationObserver(callback), observer.current.observe(targetElement || ref.current, options)), () => {
|
|
1213
1169
|
observer.current?.disconnect();
|
|
1214
1170
|
};
|
|
1215
1171
|
}, [callback, options]), ref;
|
|
@@ -1250,8 +1206,7 @@ function resolveClassNames({ theme, classNames, props, stylesCtx }) {
|
|
|
1250
1206
|
return mergeClassNames(resolvedClassNames);
|
|
1251
1207
|
}
|
|
1252
1208
|
function resolveStyles({ theme, styles, props, stylesCtx }) {
|
|
1253
|
-
return (Array.isArray(styles) ? styles : [styles]).reduce((acc, style) => typeof style == "function" ? { ...acc, ...style(theme, props, stylesCtx) } :
|
|
1254
|
-
{ ...acc, ...style }, {});
|
|
1209
|
+
return (Array.isArray(styles) ? styles : [styles]).reduce((acc, style) => typeof style == "function" ? { ...acc, ...style(theme, props, stylesCtx) } : { ...acc, ...style }, {});
|
|
1255
1210
|
}
|
|
1256
1211
|
const MantineContext = createContext(null);
|
|
1257
1212
|
function useMantineContext() {
|
|
@@ -1327,12 +1282,9 @@ function hslStringToRgba(hslaString) {
|
|
|
1327
1282
|
b: 0,
|
|
1328
1283
|
a: 1
|
|
1329
1284
|
};
|
|
1330
|
-
const h = parseInt(matches[1], 10), s = parseInt(matches[2], 10) / 100, l = parseInt(matches[3], 10) / 100, a = matches[5] ? parseFloat(matches[5]) :
|
|
1331
|
-
void 0, chroma = (1 - Math.abs(2 * l - 1)) * s, huePrime = h / 60, x = chroma * (1 - Math.abs(huePrime % 2 - 1)), m = l - chroma / 2;
|
|
1285
|
+
const h = parseInt(matches[1], 10), s = parseInt(matches[2], 10) / 100, l = parseInt(matches[3], 10) / 100, a = matches[5] ? parseFloat(matches[5]) : void 0, chroma = (1 - Math.abs(2 * l - 1)) * s, huePrime = h / 60, x = chroma * (1 - Math.abs(huePrime % 2 - 1)), m = l - chroma / 2;
|
|
1332
1286
|
let r2, g, b;
|
|
1333
|
-
return huePrime >= 0 && huePrime < 1 ? (r2 = chroma, g = x, b = 0) : huePrime >= 1 && huePrime < 2 ? (r2 = x, g = chroma, b = 0) : huePrime >= 2 && huePrime <
|
|
1334
|
-
3 ? (r2 = 0, g = chroma, b = x) : huePrime >= 3 && huePrime < 4 ? (r2 = 0, g = x, b = chroma) : huePrime >= 4 && huePrime < 5 ? (r2 = x, g = 0, b = chroma) :
|
|
1335
|
-
(r2 = chroma, g = 0, b = x), {
|
|
1287
|
+
return huePrime >= 0 && huePrime < 1 ? (r2 = chroma, g = x, b = 0) : huePrime >= 1 && huePrime < 2 ? (r2 = x, g = chroma, b = 0) : huePrime >= 2 && huePrime < 3 ? (r2 = 0, g = chroma, b = x) : huePrime >= 3 && huePrime < 4 ? (r2 = 0, g = x, b = chroma) : huePrime >= 4 && huePrime < 5 ? (r2 = x, g = 0, b = chroma) : (r2 = chroma, g = 0, b = x), {
|
|
1336
1288
|
r: Math.round((r2 + m) * 255),
|
|
1337
1289
|
g: Math.round((g + m) * 255),
|
|
1338
1290
|
b: Math.round((b + m) * 255),
|
|
@@ -1366,8 +1318,7 @@ function getLightnessFromOklch(oklchColor) {
|
|
|
1366
1318
|
function luminance(color) {
|
|
1367
1319
|
if (color.startsWith("oklch("))
|
|
1368
1320
|
return (getLightnessFromOklch(color) || 0) / 100;
|
|
1369
|
-
const { r: r2, g, b } = toRgba(color), sR = r2 / 255, sG = g / 255, sB = b / 255, rLinear = gammaCorrect(sR), gLinear = gammaCorrect(sG), bLinear = gammaCorrect(
|
|
1370
|
-
sB);
|
|
1321
|
+
const { r: r2, g, b } = toRgba(color), sR = r2 / 255, sG = g / 255, sB = b / 255, rLinear = gammaCorrect(sR), gLinear = gammaCorrect(sG), bLinear = gammaCorrect(sB);
|
|
1371
1322
|
return 0.2126 * rLinear + 0.7152 * gLinear + 0.0722 * bLinear;
|
|
1372
1323
|
}
|
|
1373
1324
|
function isLightColor(color, luminanceThreshold = 0.179) {
|
|
@@ -1892,9 +1843,7 @@ function localStorageColorSchemeManager({
|
|
|
1892
1843
|
}
|
|
1893
1844
|
};
|
|
1894
1845
|
}
|
|
1895
|
-
const INVALID_PRIMARY_COLOR_ERROR = "[@mantine/core] MantineProvider: Invalid theme.primaryColor, it accepts only key of theme.colors, learn more –
|
|
1896
|
-
tps://mantine.dev/theming/colors/#primary-color", INVALID_PRIMARY_SHADE_ERROR = "[@mantine/core] MantineProvider: Invalid theme.primaryShade, it accep\
|
|
1897
|
-
ts only 0-9 integers or an object { light: 0-9, dark: 0-9 }";
|
|
1846
|
+
const INVALID_PRIMARY_COLOR_ERROR = "[@mantine/core] MantineProvider: Invalid theme.primaryColor, it accepts only key of theme.colors, learn more – https://mantine.dev/theming/colors/#primary-color", INVALID_PRIMARY_SHADE_ERROR = "[@mantine/core] MantineProvider: Invalid theme.primaryShade, it accepts only 0-9 integers or an object { light: 0-9, dark: 0-9 }";
|
|
1898
1847
|
function isValidPrimaryShade(shade) {
|
|
1899
1848
|
return shade < 0 || shade > 9 ? !1 : parseInt(shade.toString(), 10) === shade;
|
|
1900
1849
|
}
|
|
@@ -1910,8 +1859,7 @@ function mergeMantineTheme(currentTheme, themeOverride) {
|
|
|
1910
1859
|
if (!themeOverride)
|
|
1911
1860
|
return validateMantineTheme(currentTheme), currentTheme;
|
|
1912
1861
|
const result = deepMerge(currentTheme, themeOverride);
|
|
1913
|
-
return themeOverride.fontFamily && !themeOverride.headings?.fontFamily && (result.headings.fontFamily = themeOverride.fontFamily), validateMantineTheme(
|
|
1914
|
-
result), result;
|
|
1862
|
+
return themeOverride.fontFamily && !themeOverride.headings?.fontFamily && (result.headings.fontFamily = themeOverride.fontFamily), validateMantineTheme(result), result;
|
|
1915
1863
|
}
|
|
1916
1864
|
const MantineThemeContext = createContext(null), useSafeMantineTheme = () => useContext(MantineThemeContext) || DEFAULT_THEME;
|
|
1917
1865
|
function useMantineTheme() {
|
|
@@ -1936,10 +1884,8 @@ function MantineThemeProvider({
|
|
|
1936
1884
|
MantineThemeProvider.displayName = "@mantine/core/MantineThemeProvider";
|
|
1937
1885
|
function MantineClasses() {
|
|
1938
1886
|
const theme = useMantineTheme(), nonce = useMantineStyleNonce(), classes = keys(theme.breakpoints).reduce((acc, breakpoint) => {
|
|
1939
|
-
const isPxBreakpoint = theme.breakpoints[breakpoint].includes("px"), pxValue = px(theme.breakpoints[breakpoint]), maxWidthBreakpoint = isPxBreakpoint ?
|
|
1940
|
-
`${
|
|
1941
|
-
return `${acc}@media (max-width: ${maxWidthBreakpoint}) {.mantine-visible-from-${breakpoint} {display: none !important;}}@media (min-width: ${minWidthBreakpoint}\
|
|
1942
|
-
) {.mantine-hidden-from-${breakpoint} {display: none !important;}}`;
|
|
1887
|
+
const isPxBreakpoint = theme.breakpoints[breakpoint].includes("px"), pxValue = px(theme.breakpoints[breakpoint]), maxWidthBreakpoint = isPxBreakpoint ? `${pxValue - 0.1}px` : em(pxValue - 0.1), minWidthBreakpoint = isPxBreakpoint ? `${pxValue}px` : em(pxValue);
|
|
1888
|
+
return `${acc}@media (max-width: ${maxWidthBreakpoint}) {.mantine-visible-from-${breakpoint} {display: none !important;}}@media (min-width: ${minWidthBreakpoint}) {.mantine-hidden-from-${breakpoint} {display: none !important;}}`;
|
|
1943
1889
|
}, "");
|
|
1944
1890
|
return /* @__PURE__ */ jsx(
|
|
1945
1891
|
"style",
|
|
@@ -1957,15 +1903,11 @@ function wrapWithSelector(selectors, code) {
|
|
|
1957
1903
|
return (Array.isArray(selectors) ? selectors : [selectors]).reduce((acc, selector) => `${selector}{${acc}}`, code);
|
|
1958
1904
|
}
|
|
1959
1905
|
function convertCssVariables(input, selector) {
|
|
1960
|
-
const sharedVariables = cssVariablesObjectToString(input.variables), shared = sharedVariables ? wrapWithSelector(selector, sharedVariables) : "", dark = cssVariablesObjectToString(
|
|
1961
|
-
input.dark), light = cssVariablesObjectToString(input.light), darkForced = dark ? wrapWithSelector(selector === ":host" ? `${selector}([data-mantine\
|
|
1962
|
-
-color-scheme="dark"])` : `${selector}[data-mantine-color-scheme="dark"]`, dark) : "", lightForced = light ? wrapWithSelector(selector === ":host" ? `${selector}\
|
|
1963
|
-
([data-mantine-color-scheme="light"])` : `${selector}[data-mantine-color-scheme="light"]`, light) : "";
|
|
1906
|
+
const sharedVariables = cssVariablesObjectToString(input.variables), shared = sharedVariables ? wrapWithSelector(selector, sharedVariables) : "", dark = cssVariablesObjectToString(input.dark), light = cssVariablesObjectToString(input.light), darkForced = dark ? wrapWithSelector(selector === ":host" ? `${selector}([data-mantine-color-scheme="dark"])` : `${selector}[data-mantine-color-scheme="dark"]`, dark) : "", lightForced = light ? wrapWithSelector(selector === ":host" ? `${selector}([data-mantine-color-scheme="light"])` : `${selector}[data-mantine-color-scheme="light"]`, light) : "";
|
|
1964
1907
|
return `${shared}${darkForced}${lightForced}`;
|
|
1965
1908
|
}
|
|
1966
1909
|
function getContrastColor({ color, theme, autoContrast }) {
|
|
1967
|
-
return (typeof autoContrast == "boolean" ? autoContrast : theme.autoContrast) && parseThemeColor({ color: color || theme.primaryColor, theme }).isLight ?
|
|
1968
|
-
"var(--mantine-color-black)" : "var(--mantine-color-white)";
|
|
1910
|
+
return (typeof autoContrast == "boolean" ? autoContrast : theme.autoContrast) && parseThemeColor({ color: color || theme.primaryColor, theme }).isLight ? "var(--mantine-color-black)" : "var(--mantine-color-white)";
|
|
1969
1911
|
}
|
|
1970
1912
|
function getPrimaryContrastColor(theme, colorScheme) {
|
|
1971
1913
|
return getContrastColor({
|
|
@@ -2050,8 +1992,7 @@ function assignSizeVariables(variables, sizes, name) {
|
|
|
2050
1992
|
);
|
|
2051
1993
|
}
|
|
2052
1994
|
const defaultCssVariablesResolver = (theme) => {
|
|
2053
|
-
const lightPrimaryShade = getPrimaryShade(theme, "light"), defaultRadius = theme.defaultRadius in theme.radius ? theme.radius[theme.defaultRadius] :
|
|
2054
|
-
rem(theme.defaultRadius), result = {
|
|
1995
|
+
const lightPrimaryShade = getPrimaryShade(theme, "light"), defaultRadius = theme.defaultRadius in theme.radius ? theme.radius[theme.defaultRadius] : rem(theme.defaultRadius), result = {
|
|
2055
1996
|
variables: {
|
|
2056
1997
|
"--mantine-scale": theme.scale.toString(),
|
|
2057
1998
|
"--mantine-cursor-type": theme.cursorType,
|
|
@@ -2103,9 +2044,7 @@ const defaultCssVariablesResolver = (theme) => {
|
|
|
2103
2044
|
"--mantine-color-dimmed": "var(--mantine-color-dark-2)"
|
|
2104
2045
|
}
|
|
2105
2046
|
};
|
|
2106
|
-
assignSizeVariables(result.variables, theme.breakpoints, "breakpoint"), assignSizeVariables(result.variables, theme.spacing, "spacing"), assignSizeVariables(
|
|
2107
|
-
result.variables, theme.fontSizes, "font-size"), assignSizeVariables(result.variables, theme.lineHeights, "line-height"), assignSizeVariables(result.
|
|
2108
|
-
variables, theme.shadows, "shadow"), assignSizeVariables(result.variables, theme.radius, "radius"), theme.colors[theme.primaryColor].forEach((_, index2) => {
|
|
2047
|
+
assignSizeVariables(result.variables, theme.breakpoints, "breakpoint"), assignSizeVariables(result.variables, theme.spacing, "spacing"), assignSizeVariables(result.variables, theme.fontSizes, "font-size"), assignSizeVariables(result.variables, theme.lineHeights, "line-height"), assignSizeVariables(result.variables, theme.shadows, "shadow"), assignSizeVariables(result.variables, theme.radius, "radius"), theme.colors[theme.primaryColor].forEach((_, index2) => {
|
|
2109
2048
|
result.variables[`--mantine-primary-color-${index2}`] = `var(--mantine-color-${theme.primaryColor}-${index2})`;
|
|
2110
2049
|
}), keys(theme.colors).forEach((color) => {
|
|
2111
2050
|
const value = theme.colors[color];
|
|
@@ -2153,8 +2092,7 @@ const defaultCssVariablesResolver = (theme) => {
|
|
|
2153
2092
|
});
|
|
2154
2093
|
const headings2 = theme.headings.sizes;
|
|
2155
2094
|
return keys(headings2).forEach((heading) => {
|
|
2156
|
-
result.variables[`--mantine-${heading}-font-size`] = headings2[heading].fontSize, result.variables[`--mantine-${heading}-line-height`] = headings2[heading].
|
|
2157
|
-
lineHeight, result.variables[`--mantine-${heading}-font-weight`] = headings2[heading].fontWeight || theme.headings.fontWeight;
|
|
2095
|
+
result.variables[`--mantine-${heading}-font-size`] = headings2[heading].fontSize, result.variables[`--mantine-${heading}-line-height`] = headings2[heading].lineHeight, result.variables[`--mantine-${heading}-font-weight`] = headings2[heading].fontWeight || theme.headings.fontWeight;
|
|
2158
2096
|
}), result;
|
|
2159
2097
|
};
|
|
2160
2098
|
function getMergedVariables({ theme, generator }) {
|
|
@@ -2186,9 +2124,7 @@ function MantineCssVariables({
|
|
|
2186
2124
|
cssVariablesSelector,
|
|
2187
2125
|
deduplicateCssVariables
|
|
2188
2126
|
}) {
|
|
2189
|
-
const theme = useMantineTheme(), nonce = useMantineStyleNonce(), generator = useMantineCssVariablesResolver(), mergedVariables = getMergedVariables(
|
|
2190
|
-
{ theme, generator }), shouldCleanVariables = cssVariablesSelector === ":root" && deduplicateCssVariables, cleanedVariables = shouldCleanVariables ?
|
|
2191
|
-
removeDefaultVariables(mergedVariables) : mergedVariables, css = convertCssVariables(cleanedVariables, cssVariablesSelector);
|
|
2127
|
+
const theme = useMantineTheme(), nonce = useMantineStyleNonce(), generator = useMantineCssVariablesResolver(), mergedVariables = getMergedVariables({ theme, generator }), shouldCleanVariables = cssVariablesSelector === ":root" && deduplicateCssVariables, cleanedVariables = shouldCleanVariables ? removeDefaultVariables(mergedVariables) : mergedVariables, css = convertCssVariables(cleanedVariables, cssVariablesSelector);
|
|
2192
2128
|
return css ? /* @__PURE__ */ jsx(
|
|
2193
2129
|
"style",
|
|
2194
2130
|
{
|
|
@@ -2204,8 +2140,7 @@ MantineCssVariables.displayName = "@mantine/CssVariables";
|
|
|
2204
2140
|
function suppressNextjsWarning() {
|
|
2205
2141
|
const originalError = console.error;
|
|
2206
2142
|
console.error = (...args) => {
|
|
2207
|
-
args.length > 1 && typeof args[0] == "string" && args[0].toLowerCase().includes("extra attributes from the server") && typeof args[1] == "string" &&
|
|
2208
|
-
args[1].toLowerCase().includes("data-mantine-color-scheme") || originalError(...args);
|
|
2143
|
+
args.length > 1 && typeof args[0] == "string" && args[0].toLowerCase().includes("extra attributes from the server") && typeof args[1] == "string" && args[1].toLowerCase().includes("data-mantine-color-scheme") || originalError(...args);
|
|
2209
2144
|
};
|
|
2210
2145
|
}
|
|
2211
2146
|
function setColorSchemeAttribute(colorScheme, getRootElement) {
|
|
@@ -2528,8 +2463,7 @@ function useStyles({
|
|
|
2528
2463
|
vars,
|
|
2529
2464
|
varsResolver: varsResolver2
|
|
2530
2465
|
}) {
|
|
2531
|
-
const theme = useMantineTheme(), classNamesPrefix = useMantineClassNamesPrefix(), withStaticClasses = useMantineWithStaticClasses(), headless = useMantineIsHeadless(),
|
|
2532
|
-
themeName = (Array.isArray(name) ? name : [name]).filter((n) => n), { withStylesTransform, getTransformedStyles } = useStylesTransform({
|
|
2466
|
+
const theme = useMantineTheme(), classNamesPrefix = useMantineClassNamesPrefix(), withStaticClasses = useMantineWithStaticClasses(), headless = useMantineIsHeadless(), themeName = (Array.isArray(name) ? name : [name]).filter((n) => n), { withStylesTransform, getTransformedStyles } = useStylesTransform({
|
|
2533
2467
|
props,
|
|
2534
2468
|
stylesCtx,
|
|
2535
2469
|
themeName
|
|
@@ -2574,9 +2508,7 @@ function getAutoContrastValue(autoContrast, theme) {
|
|
|
2574
2508
|
}
|
|
2575
2509
|
function disableTransition(nonce) {
|
|
2576
2510
|
const style = document.createElement("style");
|
|
2577
|
-
return style.setAttribute("data-mantine-styles", "inline"), style.innerHTML = "*, *::before, *::after {transition: none !important;}", style.setAttribute(
|
|
2578
|
-
"data-mantine-disable-transition", "true"), nonce && style.setAttribute("nonce", nonce), document.head.appendChild(style), () => document.querySelectorAll(
|
|
2579
|
-
"[data-mantine-disable-transition]").forEach((element) => element.remove());
|
|
2511
|
+
return style.setAttribute("data-mantine-styles", "inline"), style.innerHTML = "*, *::before, *::after {transition: none !important;}", style.setAttribute("data-mantine-disable-transition", "true"), nonce && style.setAttribute("nonce", nonce), document.head.appendChild(style), () => document.querySelectorAll("[data-mantine-disable-transition]").forEach((element) => element.remove());
|
|
2580
2512
|
}
|
|
2581
2513
|
function useMantineColorScheme({ keepTransitions } = {}) {
|
|
2582
2514
|
const clearStylesRef = useRef(), timeoutRef = useRef(), ctx = useContext(MantineContext), nonce = useMantineStyleNonce(), nonceValue = useRef(nonce?.());
|
|
@@ -2592,8 +2524,7 @@ function useMantineColorScheme({ keepTransitions } = {}) {
|
|
|
2592
2524
|
} : disableTransition(nonceValue.current), window.clearTimeout(timeoutRef.current), timeoutRef.current = window.setTimeout(() => {
|
|
2593
2525
|
clearStylesRef.current?.();
|
|
2594
2526
|
}, 10);
|
|
2595
|
-
}, osColorScheme = useColorScheme("light", { getInitialValueInEffect: !1 }), computedColorScheme = ctx.colorScheme === "auto" ? osColorScheme : ctx.
|
|
2596
|
-
colorScheme, toggleColorScheme = useCallback(
|
|
2527
|
+
}, osColorScheme = useColorScheme("light", { getInitialValueInEffect: !1 }), computedColorScheme = ctx.colorScheme === "auto" ? osColorScheme : ctx.colorScheme, toggleColorScheme = useCallback(
|
|
2597
2528
|
() => setColorScheme(computedColorScheme === "light" ? "dark" : "light"),
|
|
2598
2529
|
[setColorScheme, computedColorScheme]
|
|
2599
2530
|
);
|
|
@@ -2614,8 +2545,7 @@ function useComputedColorScheme(defaultValue, options = { getInitialValueInEffec
|
|
|
2614
2545
|
return colorScheme === "auto" ? osColorScheme : colorScheme;
|
|
2615
2546
|
}
|
|
2616
2547
|
function useProps(component, defaultProps2, props) {
|
|
2617
|
-
const theme = useMantineTheme(), contextPropsPayload = theme.components[component]?.defaultProps, contextProps = typeof contextPropsPayload == "
|
|
2618
|
-
tion" ? contextPropsPayload(theme) : contextPropsPayload;
|
|
2548
|
+
const theme = useMantineTheme(), contextPropsPayload = theme.components[component]?.defaultProps, contextProps = typeof contextPropsPayload == "function" ? contextPropsPayload(theme) : contextPropsPayload;
|
|
2619
2549
|
return { ...defaultProps2, ...contextProps, ...filterProps(props) };
|
|
2620
2550
|
}
|
|
2621
2551
|
function createTheme(theme) {
|
|
@@ -2628,8 +2558,7 @@ function cssObjectToString(css) {
|
|
|
2628
2558
|
).trim();
|
|
2629
2559
|
}
|
|
2630
2560
|
function stylesToString({ selector, styles, media, container }) {
|
|
2631
|
-
const baseStyles = styles ? cssObjectToString(styles) : "", mediaQueryStyles = Array.isArray(media) ? media.map((item) => `@media${item.query}{${selector}
|
|
2632
|
-
{${cssObjectToString(item.styles)}}}`) : [], containerStyles = Array.isArray(container) ? container.map(
|
|
2561
|
+
const baseStyles = styles ? cssObjectToString(styles) : "", mediaQueryStyles = Array.isArray(media) ? media.map((item) => `@media${item.query}{${selector}{${cssObjectToString(item.styles)}}}`) : [], containerStyles = Array.isArray(container) ? container.map(
|
|
2633
2562
|
(item) => `@container ${item.query}{${selector}{${cssObjectToString(item.styles)}}}`
|
|
2634
2563
|
) : [];
|
|
2635
2564
|
return `${baseStyles ? `${selector}{${baseStyles}}` : ""}${mediaQueryStyles.join("")}${containerStyles.join("")}`.trim();
|
|
@@ -2813,8 +2742,7 @@ const STYlE_PROPS_DATA = {
|
|
|
2813
2742
|
};
|
|
2814
2743
|
function colorResolver(color, theme) {
|
|
2815
2744
|
const parsedColor = parseThemeColor({ color, theme });
|
|
2816
|
-
return parsedColor.color === "dimmed" ? "var(--mantine-color-dimmed)" : parsedColor.color === "bright" ? "var(--mantine-color-bright)" : parsedColor.
|
|
2817
|
-
variable ? `var(${parsedColor.variable})` : parsedColor.color;
|
|
2745
|
+
return parsedColor.color === "dimmed" ? "var(--mantine-color-dimmed)" : parsedColor.color === "bright" ? "var(--mantine-color-bright)" : parsedColor.variable ? `var(${parsedColor.variable})` : parsedColor.color;
|
|
2818
2746
|
}
|
|
2819
2747
|
function textColorResolver(color, theme) {
|
|
2820
2748
|
const parsedColor = parseThemeColor({ color, theme });
|
|
@@ -2842,16 +2770,14 @@ function fontFamilyResolver(fontFamily) {
|
|
|
2842
2770
|
}
|
|
2843
2771
|
const headings$2 = ["h1", "h2", "h3", "h4", "h5", "h6"];
|
|
2844
2772
|
function fontSizeResolver(value, theme) {
|
|
2845
|
-
return typeof value == "string" && value in theme.fontSizes ? `var(--mantine-font-size-${value})` : typeof value == "string" && headings$2.includes(
|
|
2846
|
-
value) ? `var(--mantine-${value}-font-size)` : typeof value == "number" || typeof value == "string" ? rem(value) : value;
|
|
2773
|
+
return typeof value == "string" && value in theme.fontSizes ? `var(--mantine-font-size-${value})` : typeof value == "string" && headings$2.includes(value) ? `var(--mantine-${value}-font-size)` : typeof value == "number" || typeof value == "string" ? rem(value) : value;
|
|
2847
2774
|
}
|
|
2848
2775
|
function identityResolver(value) {
|
|
2849
2776
|
return value;
|
|
2850
2777
|
}
|
|
2851
2778
|
const headings$1 = ["h1", "h2", "h3", "h4", "h5", "h6"];
|
|
2852
2779
|
function lineHeightResolver(value, theme) {
|
|
2853
|
-
return typeof value == "string" && value in theme.lineHeights ? `var(--mantine-line-height-${value})` : typeof value == "string" && headings$1.includes(
|
|
2854
|
-
value) ? `var(--mantine-${value}-line-height)` : value;
|
|
2780
|
+
return typeof value == "string" && value in theme.lineHeights ? `var(--mantine-line-height-${value})` : typeof value == "string" && headings$1.includes(value) ? `var(--mantine-${value}-line-height)` : value;
|
|
2855
2781
|
}
|
|
2856
2782
|
function sizeResolver(value) {
|
|
2857
2783
|
return typeof value == "number" ? rem(value) : value;
|
|
@@ -2914,8 +2840,7 @@ function parseStyleProps({
|
|
|
2914
2840
|
(acc, styleProp) => {
|
|
2915
2841
|
if (styleProp === "hiddenFrom" || styleProp === "visibleFrom" || styleProp === "sx")
|
|
2916
2842
|
return acc;
|
|
2917
|
-
const propertyData = data[styleProp], properties = Array.isArray(propertyData.property) ? propertyData.property : [propertyData.property], baseValue = getBaseValue(
|
|
2918
|
-
styleProps[styleProp]);
|
|
2843
|
+
const propertyData = data[styleProp], properties = Array.isArray(propertyData.property) ? propertyData.property : [propertyData.property], baseValue = getBaseValue(styleProps[styleProp]);
|
|
2919
2844
|
if (!hasResponsiveStyles(styleProps[styleProp]))
|
|
2920
2845
|
return properties.forEach((property) => {
|
|
2921
2846
|
acc.inlineStyles[property] = resolvers[propertyData.type](baseValue, theme);
|
|
@@ -3000,8 +2925,7 @@ const _Box = forwardRef(
|
|
|
3000
2925
|
__size,
|
|
3001
2926
|
...others
|
|
3002
2927
|
}, ref) => {
|
|
3003
|
-
const theme = useMantineTheme(), Element2 = component || "div", { styleProps, rest } = extractStyleProps(others), transformedSx = useMantineSxTransform()?.()?.(
|
|
3004
|
-
styleProps.sx), responsiveClassName = useRandomClassName(), parsedStyleProps = parseStyleProps({
|
|
2928
|
+
const theme = useMantineTheme(), Element2 = component || "div", { styleProps, rest } = extractStyleProps(others), transformedSx = useMantineSxTransform()?.()?.(styleProps.sx), responsiveClassName = useRandomClassName(), parsedStyleProps = parseStyleProps({
|
|
3005
2929
|
styleProps,
|
|
3006
2930
|
theme,
|
|
3007
2931
|
data: STYlE_PROPS_DATA
|
|
@@ -3086,8 +3010,7 @@ function useResizeObserver(element, onResize) {
|
|
|
3086
3010
|
}, [element, handleResize]);
|
|
3087
3011
|
}
|
|
3088
3012
|
const Corner = forwardRef((props, ref) => {
|
|
3089
|
-
const { style, ...others } = props, ctx = useScrollAreaContext(), [width, setWidth] = useState(0), [height, setHeight] = useState(0), hasSize = !!(width &&
|
|
3090
|
-
height);
|
|
3013
|
+
const { style, ...others } = props, ctx = useScrollAreaContext(), [width, setWidth] = useState(0), [height, setHeight] = useState(0), hasSize = !!(width && height);
|
|
3091
3014
|
return useResizeObserver(ctx.scrollbarX, () => {
|
|
3092
3015
|
const h = ctx.scrollbarX?.offsetHeight || 0;
|
|
3093
3016
|
ctx.onCornerHeightChange(h), setHeight(h);
|
|
@@ -3102,10 +3025,7 @@ const Corner = forwardRef((props, ref) => {
|
|
|
3102
3025
|
scrollHideDelay: 1e3,
|
|
3103
3026
|
type: "hover"
|
|
3104
3027
|
}, ScrollAreaRoot = forwardRef((_props, ref) => {
|
|
3105
|
-
const props = useProps("ScrollAreaRoot", defaultProps$1n, _props), { type, scrollHideDelay, scrollbars, ...others } = props, [scrollArea, setScrollArea] = useState(
|
|
3106
|
-
null), [viewport, setViewport] = useState(null), [content, setContent] = useState(null), [scrollbarX, setScrollbarX] = useState(null), [scrollbarY, setScrollbarY] = useState(
|
|
3107
|
-
null), [cornerWidth, setCornerWidth] = useState(0), [cornerHeight, setCornerHeight] = useState(0), [scrollbarXEnabled, setScrollbarXEnabled] = useState(
|
|
3108
|
-
!1), [scrollbarYEnabled, setScrollbarYEnabled] = useState(!1), rootRef = useMergedRef(ref, (node) => setScrollArea(node));
|
|
3028
|
+
const props = useProps("ScrollAreaRoot", defaultProps$1n, _props), { type, scrollHideDelay, scrollbars, ...others } = props, [scrollArea, setScrollArea] = useState(null), [viewport, setViewport] = useState(null), [content, setContent] = useState(null), [scrollbarX, setScrollbarX] = useState(null), [scrollbarY, setScrollbarY] = useState(null), [cornerWidth, setCornerWidth] = useState(0), [cornerHeight, setCornerHeight] = useState(0), [scrollbarXEnabled, setScrollbarXEnabled] = useState(!1), [scrollbarYEnabled, setScrollbarYEnabled] = useState(!1), rootRef = useMergedRef(ref, (node) => setScrollArea(node));
|
|
3109
3029
|
return /* @__PURE__ */ jsx(
|
|
3110
3030
|
ScrollAreaProvider,
|
|
3111
3031
|
{
|
|
@@ -3148,8 +3068,7 @@ function getThumbRatio(viewportSize, contentSize) {
|
|
|
3148
3068
|
return Number.isNaN(ratio) ? 0 : ratio;
|
|
3149
3069
|
}
|
|
3150
3070
|
function getThumbSize(sizes) {
|
|
3151
|
-
const ratio = getThumbRatio(sizes.viewport, sizes.content), scrollbarPadding = sizes.scrollbar.paddingStart + sizes.scrollbar.paddingEnd, thumbSize = (sizes.
|
|
3152
|
-
scrollbar.size - scrollbarPadding) * ratio;
|
|
3071
|
+
const ratio = getThumbRatio(sizes.viewport, sizes.content), scrollbarPadding = sizes.scrollbar.paddingStart + sizes.scrollbar.paddingEnd, thumbSize = (sizes.scrollbar.size - scrollbarPadding) * ratio;
|
|
3153
3072
|
return Math.max(thumbSize, 18);
|
|
3154
3073
|
}
|
|
3155
3074
|
function linearScale(input, output) {
|
|
@@ -3164,15 +3083,11 @@ function clamp$1(value, [min2, max2]) {
|
|
|
3164
3083
|
return Math.min(max2, Math.max(min2, value));
|
|
3165
3084
|
}
|
|
3166
3085
|
function getThumbOffsetFromScroll(scrollPos, sizes, dir = "ltr") {
|
|
3167
|
-
const thumbSizePx = getThumbSize(sizes), scrollbarPadding = sizes.scrollbar.paddingStart + sizes.scrollbar.paddingEnd, scrollbar = sizes.scrollbar.size -
|
|
3168
|
-
scrollbarPadding, maxScrollPos = sizes.content - sizes.viewport, maxThumbPos = scrollbar - thumbSizePx, scrollClampRange = dir === "ltr" ? [0, maxScrollPos] :
|
|
3169
|
-
[maxScrollPos * -1, 0], scrollWithoutMomentum = clamp$1(scrollPos, scrollClampRange);
|
|
3086
|
+
const thumbSizePx = getThumbSize(sizes), scrollbarPadding = sizes.scrollbar.paddingStart + sizes.scrollbar.paddingEnd, scrollbar = sizes.scrollbar.size - scrollbarPadding, maxScrollPos = sizes.content - sizes.viewport, maxThumbPos = scrollbar - thumbSizePx, scrollClampRange = dir === "ltr" ? [0, maxScrollPos] : [maxScrollPos * -1, 0], scrollWithoutMomentum = clamp$1(scrollPos, scrollClampRange);
|
|
3170
3087
|
return linearScale([0, maxScrollPos], [0, maxThumbPos])(scrollWithoutMomentum);
|
|
3171
3088
|
}
|
|
3172
3089
|
function getScrollPositionFromPointer(pointerPos, pointerOffset, sizes, dir = "ltr") {
|
|
3173
|
-
const thumbSizePx = getThumbSize(sizes), thumbCenter = thumbSizePx / 2, offset2 = pointerOffset || thumbCenter, thumbOffsetFromEnd = thumbSizePx - offset2,
|
|
3174
|
-
minPointerPos = sizes.scrollbar.paddingStart + offset2, maxPointerPos = sizes.scrollbar.size - sizes.scrollbar.paddingEnd - thumbOffsetFromEnd, maxScrollPos = sizes.
|
|
3175
|
-
content - sizes.viewport, scrollRange = dir === "ltr" ? [0, maxScrollPos] : [maxScrollPos * -1, 0];
|
|
3090
|
+
const thumbSizePx = getThumbSize(sizes), thumbCenter = thumbSizePx / 2, offset2 = pointerOffset || thumbCenter, thumbOffsetFromEnd = thumbSizePx - offset2, minPointerPos = sizes.scrollbar.paddingStart + offset2, maxPointerPos = sizes.scrollbar.size - sizes.scrollbar.paddingEnd - thumbOffsetFromEnd, maxScrollPos = sizes.content - sizes.viewport, scrollRange = dir === "ltr" ? [0, maxScrollPos] : [maxScrollPos * -1, 0];
|
|
3176
3091
|
return linearScale([minPointerPos, maxPointerPos], scrollRange)(pointerPos);
|
|
3177
3092
|
}
|
|
3178
3093
|
function isScrollingWithinScrollbarBounds(scrollPos, maxScrollPos) {
|
|
@@ -3200,9 +3115,7 @@ const [ScrollbarProvider, useScrollbarContext] = createSafeContext(
|
|
|
3200
3115
|
onWheelScroll,
|
|
3201
3116
|
onResize,
|
|
3202
3117
|
...scrollbarProps
|
|
3203
|
-
} = props, context = useScrollAreaContext(), [scrollbar, setScrollbar] = useState(null), composeRefs = useMergedRef(forwardedRef, (node) => setScrollbar(
|
|
3204
|
-
node)), rectRef = useRef(null), prevWebkitUserSelectRef = useRef(""), { viewport } = context, maxScrollPos = sizes.content - sizes.viewport, handleWheelScroll = useCallbackRef(
|
|
3205
|
-
onWheelScroll), handleThumbPositionChange = useCallbackRef(onThumbPositionChange), handleResize = useDebouncedCallback(onResize, 10), handleDragScroll = (event) => {
|
|
3118
|
+
} = props, context = useScrollAreaContext(), [scrollbar, setScrollbar] = useState(null), composeRefs = useMergedRef(forwardedRef, (node) => setScrollbar(node)), rectRef = useRef(null), prevWebkitUserSelectRef = useRef(""), { viewport } = context, maxScrollPos = sizes.content - sizes.viewport, handleWheelScroll = useCallbackRef(onWheelScroll), handleThumbPositionChange = useCallbackRef(onThumbPositionChange), handleResize = useDebouncedCallback(onResize, 10), handleDragScroll = (event) => {
|
|
3206
3119
|
if (rectRef.current) {
|
|
3207
3120
|
const x = event.clientX - rectRef.current.left, y = event.clientY - rectRef.current.top;
|
|
3208
3121
|
onDragScroll({ x, y });
|
|
@@ -3214,8 +3127,7 @@ const [ScrollbarProvider, useScrollbarContext] = createSafeContext(
|
|
|
3214
3127
|
scrollbar?.contains(element) && handleWheelScroll(event, maxScrollPos);
|
|
3215
3128
|
};
|
|
3216
3129
|
return document.addEventListener("wheel", handleWheel, { passive: !1 }), () => document.removeEventListener("wheel", handleWheel, { passive: !1 });
|
|
3217
|
-
}, [viewport, scrollbar, maxScrollPos, handleWheelScroll]), useEffect(handleThumbPositionChange, [sizes, handleThumbPositionChange]), useResizeObserver(
|
|
3218
|
-
scrollbar, handleResize), useResizeObserver(context.content, handleResize), /* @__PURE__ */ jsx(
|
|
3130
|
+
}, [viewport, scrollbar, maxScrollPos, handleWheelScroll]), useEffect(handleThumbPositionChange, [sizes, handleThumbPositionChange]), useResizeObserver(scrollbar, handleResize), useResizeObserver(context.content, handleResize), /* @__PURE__ */ jsx(
|
|
3219
3131
|
ScrollbarProvider,
|
|
3220
3132
|
{
|
|
3221
3133
|
value: {
|
|
@@ -3234,16 +3146,13 @@ const [ScrollbarProvider, useScrollbarContext] = createSafeContext(
|
|
|
3234
3146
|
"data-mantine-scrollbar": !0,
|
|
3235
3147
|
style: { position: "absolute", ...scrollbarProps.style },
|
|
3236
3148
|
onPointerDown: composeEventHandlers(props.onPointerDown, (event) => {
|
|
3237
|
-
event.preventDefault(), event.button === 0 && (event.target.setPointerCapture(event.pointerId), rectRef.current = scrollbar.getBoundingClientRect(),
|
|
3238
|
-
prevWebkitUserSelectRef.current = document.body.style.webkitUserSelect, document.body.style.webkitUserSelect = "none", document.body.style.
|
|
3239
|
-
pointerEvents = "none", handleDragScroll(event));
|
|
3149
|
+
event.preventDefault(), event.button === 0 && (event.target.setPointerCapture(event.pointerId), rectRef.current = scrollbar.getBoundingClientRect(), prevWebkitUserSelectRef.current = document.body.style.webkitUserSelect, document.body.style.webkitUserSelect = "none", document.body.style.pointerEvents = "none", handleDragScroll(event));
|
|
3240
3150
|
}),
|
|
3241
3151
|
onPointerMove: composeEventHandlers(props.onPointerMove, handleDragScroll),
|
|
3242
3152
|
onPointerUp: composeEventHandlers(props.onPointerUp, (event) => {
|
|
3243
3153
|
event.preventDefault();
|
|
3244
3154
|
const element = event.target;
|
|
3245
|
-
element.hasPointerCapture(event.pointerId) && element.releasePointerCapture(event.pointerId), document.body.style.webkitUserSelect = prevWebkitUserSelectRef.
|
|
3246
|
-
current, document.body.style.pointerEvents = "auto", rectRef.current = null;
|
|
3155
|
+
element.hasPointerCapture(event.pointerId) && element.releasePointerCapture(event.pointerId), document.body.style.webkitUserSelect = prevWebkitUserSelectRef.current, document.body.style.pointerEvents = "auto", rectRef.current = null;
|
|
3247
3156
|
})
|
|
3248
3157
|
}
|
|
3249
3158
|
)
|
|
@@ -3251,8 +3160,7 @@ const [ScrollbarProvider, useScrollbarContext] = createSafeContext(
|
|
|
3251
3160
|
);
|
|
3252
3161
|
}), ScrollAreaScrollbarX = forwardRef(
|
|
3253
3162
|
(props, forwardedRef) => {
|
|
3254
|
-
const { sizes, onSizesChange, style, ...others } = props, ctx = useScrollAreaContext(), [computedStyle, setComputedStyle] = useState(), ref = useRef(
|
|
3255
|
-
null), composeRefs = useMergedRef(forwardedRef, ref, ctx.onScrollbarXChange);
|
|
3163
|
+
const { sizes, onSizesChange, style, ...others } = props, ctx = useScrollAreaContext(), [computedStyle, setComputedStyle] = useState(), ref = useRef(null), composeRefs = useMergedRef(forwardedRef, ref, ctx.onScrollbarXChange);
|
|
3256
3164
|
return useEffect(() => {
|
|
3257
3165
|
ref.current && setComputedStyle(getComputedStyle(ref.current));
|
|
3258
3166
|
}, [ref]), /* @__PURE__ */ jsx(
|
|
@@ -3290,8 +3198,7 @@ const [ScrollbarProvider, useScrollbarContext] = createSafeContext(
|
|
|
3290
3198
|
}
|
|
3291
3199
|
), ScrollAreaScrollbarY = forwardRef(
|
|
3292
3200
|
(props, forwardedRef) => {
|
|
3293
|
-
const { sizes, onSizesChange, style, ...others } = props, context = useScrollAreaContext(), [computedStyle, setComputedStyle] = useState(), ref = useRef(
|
|
3294
|
-
null), composeRefs = useMergedRef(forwardedRef, ref, context.onScrollbarYChange);
|
|
3201
|
+
const { sizes, onSizesChange, style, ...others } = props, context = useScrollAreaContext(), [computedStyle, setComputedStyle] = useState(), ref = useRef(null), composeRefs = useMergedRef(forwardedRef, ref, context.onScrollbarYChange);
|
|
3295
3202
|
return useEffect(() => {
|
|
3296
3203
|
ref.current && setComputedStyle(window.getComputedStyle(ref.current));
|
|
3297
3204
|
}, []), /* @__PURE__ */ jsx(
|
|
@@ -3328,8 +3235,7 @@ const [ScrollbarProvider, useScrollbarContext] = createSafeContext(
|
|
|
3328
3235
|
);
|
|
3329
3236
|
}
|
|
3330
3237
|
), ScrollAreaScrollbarVisible = forwardRef((props, forwardedRef) => {
|
|
3331
|
-
const { orientation = "vertical", ...scrollbarProps } = props, { dir } = useDirection(), context = useScrollAreaContext(), thumbRef = useRef(null), pointerOffsetRef = useRef(
|
|
3332
|
-
0), [sizes, setSizes] = useState({
|
|
3238
|
+
const { orientation = "vertical", ...scrollbarProps } = props, { dir } = useDirection(), context = useScrollAreaContext(), thumbRef = useRef(null), pointerOffsetRef = useRef(0), [sizes, setSizes] = useState({
|
|
3333
3239
|
content: 0,
|
|
3334
3240
|
viewport: 0,
|
|
3335
3241
|
scrollbar: { size: 0, paddingStart: 0, paddingEnd: 0 }
|
|
@@ -3374,8 +3280,7 @@ const [ScrollbarProvider, useScrollbarContext] = createSafeContext(
|
|
|
3374
3280
|
onThumbPositionChange: () => {
|
|
3375
3281
|
if (context.viewport && thumbRef.current) {
|
|
3376
3282
|
const scrollPos = context.viewport.scrollTop, offset2 = getThumbOffsetFromScroll(scrollPos, sizes);
|
|
3377
|
-
sizes.scrollbar.size === 0 ? thumbRef.current.style.opacity = "0" : thumbRef.current.style.opacity = "1", thumbRef.current.style.transform =
|
|
3378
|
-
`translate3d(0, ${offset2}px, 0)`;
|
|
3283
|
+
sizes.scrollbar.size === 0 ? thumbRef.current.style.opacity = "0" : thumbRef.current.style.opacity = "1", thumbRef.current.style.transform = `translate3d(0, ${offset2}px, 0)`;
|
|
3379
3284
|
}
|
|
3380
3285
|
},
|
|
3381
3286
|
onWheelScroll: (scrollPos) => {
|
|
@@ -3388,11 +3293,9 @@ const [ScrollbarProvider, useScrollbarContext] = createSafeContext(
|
|
|
3388
3293
|
) : null;
|
|
3389
3294
|
}), ScrollAreaScrollbarAuto = forwardRef(
|
|
3390
3295
|
(props, ref) => {
|
|
3391
|
-
const context = useScrollAreaContext(), { forceMount, ...scrollbarProps } = props, [visible2, setVisible] = useState(!1), isHorizontal = props.orientation ===
|
|
3392
|
-
"horizontal", handleResize = useDebouncedCallback(() => {
|
|
3296
|
+
const context = useScrollAreaContext(), { forceMount, ...scrollbarProps } = props, [visible2, setVisible] = useState(!1), isHorizontal = props.orientation === "horizontal", handleResize = useDebouncedCallback(() => {
|
|
3393
3297
|
if (context.viewport) {
|
|
3394
|
-
const isOverflowX = context.viewport.offsetWidth < context.viewport.scrollWidth, isOverflowY = context.viewport.offsetHeight < context.viewport.
|
|
3395
|
-
scrollHeight;
|
|
3298
|
+
const isOverflowX = context.viewport.offsetWidth < context.viewport.scrollWidth, isOverflowY = context.viewport.offsetHeight < context.viewport.scrollHeight;
|
|
3396
3299
|
setVisible(isHorizontal ? isOverflowX : isOverflowY);
|
|
3397
3300
|
}
|
|
3398
3301
|
}, 10);
|
|
@@ -3418,8 +3321,7 @@ const [ScrollbarProvider, useScrollbarContext] = createSafeContext(
|
|
|
3418
3321
|
hideTimer = window.setTimeout(() => setVisible(!1), context.scrollHideDelay);
|
|
3419
3322
|
};
|
|
3420
3323
|
return scrollArea.addEventListener("pointerenter", handlePointerEnter), scrollArea.addEventListener("pointerleave", handlePointerLeave), () => {
|
|
3421
|
-
window.clearTimeout(hideTimer), scrollArea.removeEventListener("pointerenter", handlePointerEnter), scrollArea.removeEventListener("
|
|
3422
|
-
eave", handlePointerLeave);
|
|
3324
|
+
window.clearTimeout(hideTimer), scrollArea.removeEventListener("pointerenter", handlePointerEnter), scrollArea.removeEventListener("pointerleave", handlePointerLeave);
|
|
3423
3325
|
};
|
|
3424
3326
|
}
|
|
3425
3327
|
}, [context.scrollArea, context.scrollHideDelay]), forceMount || visible2 ? /* @__PURE__ */ jsx(
|
|
@@ -3433,8 +3335,7 @@ eave", handlePointerLeave);
|
|
|
3433
3335
|
}
|
|
3434
3336
|
), ScrollAreaScrollbarScroll = forwardRef(
|
|
3435
3337
|
(props, red) => {
|
|
3436
|
-
const { forceMount, ...scrollbarProps } = props, context = useScrollAreaContext(), isHorizontal = props.orientation === "horizontal", [state, setState] = useState(
|
|
3437
|
-
"hidden"), debounceScrollEnd = useDebouncedCallback(() => setState("idle"), 100);
|
|
3338
|
+
const { forceMount, ...scrollbarProps } = props, context = useScrollAreaContext(), isHorizontal = props.orientation === "horizontal", [state, setState] = useState("hidden"), debounceScrollEnd = useDebouncedCallback(() => setState("idle"), 100);
|
|
3438
3339
|
return useEffect(() => {
|
|
3439
3340
|
if (state === "idle") {
|
|
3440
3341
|
const hideTimer = window.setTimeout(() => setState("hidden"), context.scrollHideDelay);
|
|
@@ -3463,29 +3364,22 @@ eave", handlePointerLeave);
|
|
|
3463
3364
|
}
|
|
3464
3365
|
), ScrollAreaScrollbar = forwardRef(
|
|
3465
3366
|
(props, forwardedRef) => {
|
|
3466
|
-
const { forceMount, ...scrollbarProps } = props, context = useScrollAreaContext(), { onScrollbarXEnabledChange, onScrollbarYEnabledChange } = context,
|
|
3467
|
-
isHorizontal = props.orientation === "horizontal";
|
|
3367
|
+
const { forceMount, ...scrollbarProps } = props, context = useScrollAreaContext(), { onScrollbarXEnabledChange, onScrollbarYEnabledChange } = context, isHorizontal = props.orientation === "horizontal";
|
|
3468
3368
|
return useEffect(() => (isHorizontal ? onScrollbarXEnabledChange(!0) : onScrollbarYEnabledChange(!0), () => {
|
|
3469
3369
|
isHorizontal ? onScrollbarXEnabledChange(!1) : onScrollbarYEnabledChange(!1);
|
|
3470
|
-
}), [isHorizontal, onScrollbarXEnabledChange, onScrollbarYEnabledChange]), context.type === "hover" ? /* @__PURE__ */ jsx(ScrollAreaScrollbarHover,
|
|
3471
|
-
{ ...scrollbarProps, ref: forwardedRef, forceMount }) : context.type === "scroll" ? /* @__PURE__ */ jsx(ScrollAreaScrollbarScroll, { ...scrollbarProps,
|
|
3472
|
-
ref: forwardedRef, forceMount }) : context.type === "auto" ? /* @__PURE__ */ jsx(ScrollAreaScrollbarAuto, { ...scrollbarProps, ref: forwardedRef, forceMount }) :
|
|
3473
|
-
context.type === "always" ? /* @__PURE__ */ jsx(ScrollAreaScrollbarVisible, { ...scrollbarProps, ref: forwardedRef }) : null;
|
|
3370
|
+
}), [isHorizontal, onScrollbarXEnabledChange, onScrollbarYEnabledChange]), context.type === "hover" ? /* @__PURE__ */ jsx(ScrollAreaScrollbarHover, { ...scrollbarProps, ref: forwardedRef, forceMount }) : context.type === "scroll" ? /* @__PURE__ */ jsx(ScrollAreaScrollbarScroll, { ...scrollbarProps, ref: forwardedRef, forceMount }) : context.type === "auto" ? /* @__PURE__ */ jsx(ScrollAreaScrollbarAuto, { ...scrollbarProps, ref: forwardedRef, forceMount }) : context.type === "always" ? /* @__PURE__ */ jsx(ScrollAreaScrollbarVisible, { ...scrollbarProps, ref: forwardedRef }) : null;
|
|
3474
3371
|
}
|
|
3475
3372
|
);
|
|
3476
3373
|
function addUnlinkedScrollListener(node, handler = () => {
|
|
3477
3374
|
}) {
|
|
3478
3375
|
let prevPosition = { left: node.scrollLeft, top: node.scrollTop }, rAF = 0;
|
|
3479
3376
|
return function loop() {
|
|
3480
|
-
const position = { left: node.scrollLeft, top: node.scrollTop }, isHorizontalScroll = prevPosition.left !== position.left, isVerticalScroll = prevPosition.
|
|
3481
|
-
top !== position.top;
|
|
3377
|
+
const position = { left: node.scrollLeft, top: node.scrollTop }, isHorizontalScroll = prevPosition.left !== position.left, isVerticalScroll = prevPosition.top !== position.top;
|
|
3482
3378
|
(isHorizontalScroll || isVerticalScroll) && handler(), prevPosition = position, rAF = window.requestAnimationFrame(loop);
|
|
3483
3379
|
}(), () => window.cancelAnimationFrame(rAF);
|
|
3484
3380
|
}
|
|
3485
3381
|
const Thumb$1 = forwardRef((props, forwardedRef) => {
|
|
3486
|
-
const { style, ...others } = props, scrollAreaContext = useScrollAreaContext(), scrollbarContext = useScrollbarContext(), { onThumbPositionChange } = scrollbarContext,
|
|
3487
|
-
composedRef = useMergedRef(forwardedRef, (node) => scrollbarContext.onThumbChange(node)), removeUnlinkedScrollListenerRef = useRef(), debounceScrollEnd = useDebouncedCallback(
|
|
3488
|
-
() => {
|
|
3382
|
+
const { style, ...others } = props, scrollAreaContext = useScrollAreaContext(), scrollbarContext = useScrollbarContext(), { onThumbPositionChange } = scrollbarContext, composedRef = useMergedRef(forwardedRef, (node) => scrollbarContext.onThumbChange(node)), removeUnlinkedScrollListenerRef = useRef(), debounceScrollEnd = useDebouncedCallback(() => {
|
|
3489
3383
|
removeUnlinkedScrollListenerRef.current && (removeUnlinkedScrollListenerRef.current(), removeUnlinkedScrollListenerRef.current = void 0);
|
|
3490
3384
|
}, 100);
|
|
3491
3385
|
return useEffect(() => {
|
|
@@ -3541,8 +3435,7 @@ const Thumb$1 = forwardRef((props, forwardedRef) => {
|
|
|
3541
3435
|
}
|
|
3542
3436
|
);
|
|
3543
3437
|
ScrollAreaViewport.displayName = "@mantine/core/ScrollAreaViewport";
|
|
3544
|
-
var __default__$B = { root: "m_d57069b5", viewport: "m_c0783ff9", viewportInner: "m_f8f631dd", scrollbar: "m_c44ba933", thumb: "m_d8b5e363", corner: "
|
|
3545
|
-
m_21657268" };
|
|
3438
|
+
var __default__$B = { root: "m_d57069b5", viewport: "m_c0783ff9", viewportInner: "m_f8f631dd", scrollbar: "m_c44ba933", thumb: "m_d8b5e363", corner: "m_21657268" };
|
|
3546
3439
|
const defaultProps$1m = {
|
|
3547
3440
|
scrollHideDelay: 1e3,
|
|
3548
3441
|
type: "hover",
|
|
@@ -3662,8 +3555,7 @@ const ScrollAreaAutosize = factory((props, ref) => {
|
|
|
3662
3555
|
vars,
|
|
3663
3556
|
...others
|
|
3664
3557
|
} = useProps("ScrollAreaAutosize", defaultProps$1m, props);
|
|
3665
|
-
return /* @__PURE__ */ jsx(Box, { ...others, ref, style: [{ display: "flex", overflow: "auto" }, style], children: /* @__PURE__ */ jsx(Box, { style: {
|
|
3666
|
-
display: "flex", flexDirection: "column", flex: 1 }, children: /* @__PURE__ */ jsx(
|
|
3558
|
+
return /* @__PURE__ */ jsx(Box, { ...others, ref, style: [{ display: "flex", overflow: "auto" }, style], children: /* @__PURE__ */ jsx(Box, { style: { display: "flex", flexDirection: "column", flex: 1 }, children: /* @__PURE__ */ jsx(
|
|
3667
3559
|
ScrollArea,
|
|
3668
3560
|
{
|
|
3669
3561
|
classNames,
|
|
@@ -3728,8 +3620,7 @@ UnstyledButton.classes = __default__$A;
|
|
|
3728
3620
|
UnstyledButton.displayName = "@mantine/core/UnstyledButton";
|
|
3729
3621
|
var __default__$z = { root: "m_515a97f8" };
|
|
3730
3622
|
const defaultProps$1k = {}, VisuallyHidden = factory((_props, ref) => {
|
|
3731
|
-
const props = useProps("VisuallyHidden", defaultProps$1k, _props), { classNames, className, style, styles, unstyled, vars, ...others } = props, getStyles2 = useStyles(
|
|
3732
|
-
{
|
|
3623
|
+
const props = useProps("VisuallyHidden", defaultProps$1k, _props), { classNames, className, style, styles, unstyled, vars, ...others } = props, getStyles2 = useStyles({
|
|
3733
3624
|
name: "VisuallyHidden",
|
|
3734
3625
|
classes: __default__$z,
|
|
3735
3626
|
props,
|
|
@@ -3834,9 +3725,7 @@ function isTopLayer(element) {
|
|
|
3834
3725
|
}
|
|
3835
3726
|
function isContainingBlock(element) {
|
|
3836
3727
|
const webkit = isWebKit(), css = getComputedStyle$1(element);
|
|
3837
|
-
return css.transform !== "none" || css.perspective !== "none" || (css.containerType ? css.containerType !== "normal" : !1) || !webkit && (css.backdropFilter ?
|
|
3838
|
-
css.backdropFilter !== "none" : !1) || !webkit && (css.filter ? css.filter !== "none" : !1) || ["transform", "perspective", "filter"].some((value) => (css.
|
|
3839
|
-
willChange || "").includes(value)) || ["paint", "layout", "strict", "content"].some((value) => (css.contain || "").includes(value));
|
|
3728
|
+
return css.transform !== "none" || css.perspective !== "none" || (css.containerType ? css.containerType !== "normal" : !1) || !webkit && (css.backdropFilter ? css.backdropFilter !== "none" : !1) || !webkit && (css.filter ? css.filter !== "none" : !1) || ["transform", "perspective", "filter"].some((value) => (css.willChange || "").includes(value)) || ["paint", "layout", "strict", "content"].some((value) => (css.contain || "").includes(value));
|
|
3840
3729
|
}
|
|
3841
3730
|
function getContainingBlock(element) {
|
|
3842
3731
|
let currentNode = getParentNode(element);
|
|
@@ -3881,21 +3770,17 @@ function getParentNode(node) {
|
|
|
3881
3770
|
}
|
|
3882
3771
|
function getNearestOverflowAncestor(node) {
|
|
3883
3772
|
const parentNode = getParentNode(node);
|
|
3884
|
-
return isLastTraversableNode(parentNode) ? node.ownerDocument ? node.ownerDocument.body : node.body : isHTMLElement(parentNode) && isOverflowElement(
|
|
3885
|
-
parentNode) ? parentNode : getNearestOverflowAncestor(parentNode);
|
|
3773
|
+
return isLastTraversableNode(parentNode) ? node.ownerDocument ? node.ownerDocument.body : node.body : isHTMLElement(parentNode) && isOverflowElement(parentNode) ? parentNode : getNearestOverflowAncestor(parentNode);
|
|
3886
3774
|
}
|
|
3887
3775
|
function getOverflowAncestors(node, list, traverseIframes) {
|
|
3888
3776
|
var _node$ownerDocument2;
|
|
3889
3777
|
list === void 0 && (list = []), traverseIframes === void 0 && (traverseIframes = !0);
|
|
3890
|
-
const scrollableAncestor = getNearestOverflowAncestor(node), isBody = scrollableAncestor === ((_node$ownerDocument2 = node.ownerDocument) == null ? void 0 :
|
|
3891
|
-
|
|
3892
|
-
return isBody ? list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : [], win.frameElement && traverseIframes ?
|
|
3893
|
-
getOverflowAncestors(win.frameElement) : []) : list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor, [], traverseIframes));
|
|
3778
|
+
const scrollableAncestor = getNearestOverflowAncestor(node), isBody = scrollableAncestor === ((_node$ownerDocument2 = node.ownerDocument) == null ? void 0 : _node$ownerDocument2.body), win = getWindow(scrollableAncestor);
|
|
3779
|
+
return isBody ? list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : [], win.frameElement && traverseIframes ? getOverflowAncestors(win.frameElement) : []) : list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor, [], traverseIframes));
|
|
3894
3780
|
}
|
|
3895
3781
|
function activeElement(doc) {
|
|
3896
3782
|
let activeElement2 = doc.activeElement;
|
|
3897
|
-
for (; ((_activeElement = activeElement2) == null || (_activeElement = _activeElement.shadowRoot) == null ? void 0 : _activeElement.activeElement) !=
|
|
3898
|
-
null; ) {
|
|
3783
|
+
for (; ((_activeElement = activeElement2) == null || (_activeElement = _activeElement.shadowRoot) == null ? void 0 : _activeElement.activeElement) != null; ) {
|
|
3899
3784
|
var _activeElement;
|
|
3900
3785
|
activeElement2 = activeElement2.shadowRoot.activeElement;
|
|
3901
3786
|
}
|
|
@@ -3932,8 +3817,7 @@ function getUserAgent() {
|
|
|
3932
3817
|
}).join(" ") : navigator.userAgent;
|
|
3933
3818
|
}
|
|
3934
3819
|
function isVirtualPointerEvent(event) {
|
|
3935
|
-
return isJSDOM() ? !1 : !isAndroid() && event.width === 0 && event.height === 0 || isAndroid() && event.width === 1 && event.height === 1 && event.pressure ===
|
|
3936
|
-
0 && event.detail === 0 && event.pointerType === "mouse" || // iOS VoiceOver returns 0.333• for width/height.
|
|
3820
|
+
return isJSDOM() ? !1 : !isAndroid() && event.width === 0 && event.height === 0 || isAndroid() && event.width === 1 && event.height === 1 && event.pressure === 0 && event.detail === 0 && event.pointerType === "mouse" || // iOS VoiceOver returns 0.333• for width/height.
|
|
3937
3821
|
event.width < 1 && event.height < 1 && event.pressure === 0 && event.detail === 0 && event.pointerType === "touch";
|
|
3938
3822
|
}
|
|
3939
3823
|
function isSafari() {
|
|
@@ -4017,8 +3901,7 @@ function getAlignmentSides(placement, rects, rtl) {
|
|
|
4017
3901
|
rtl === void 0 && (rtl = !1);
|
|
4018
3902
|
const alignment = getAlignment(placement), alignmentAxis = getAlignmentAxis(placement), length = getAxisLength(alignmentAxis);
|
|
4019
3903
|
let mainAlignmentSide = alignmentAxis === "x" ? alignment === (rtl ? "end" : "start") ? "right" : "left" : alignment === "start" ? "bottom" : "top";
|
|
4020
|
-
return rects.reference[length] > rects.floating[length] && (mainAlignmentSide = getOppositePlacement(mainAlignmentSide)), [mainAlignmentSide, getOppositePlacement(
|
|
4021
|
-
mainAlignmentSide)];
|
|
3904
|
+
return rects.reference[length] > rects.floating[length] && (mainAlignmentSide = getOppositePlacement(mainAlignmentSide)), [mainAlignmentSide, getOppositePlacement(mainAlignmentSide)];
|
|
4022
3905
|
}
|
|
4023
3906
|
function getExpandedPlacements(placement) {
|
|
4024
3907
|
const oppositePlacement = getOppositePlacement(placement);
|
|
@@ -4043,8 +3926,7 @@ function getSideList(side, isStart, rtl) {
|
|
|
4043
3926
|
function getOppositeAxisPlacements(placement, flipAlignment, direction, rtl) {
|
|
4044
3927
|
const alignment = getAlignment(placement);
|
|
4045
3928
|
let list = getSideList(getSide(placement), direction === "start", rtl);
|
|
4046
|
-
return alignment && (list = list.map((side) => side + "-" + alignment), flipAlignment && (list = list.concat(list.map(getOppositeAlignmentPlacement)))),
|
|
4047
|
-
list;
|
|
3929
|
+
return alignment && (list = list.map((side) => side + "-" + alignment), flipAlignment && (list = list.concat(list.map(getOppositeAlignmentPlacement)))), list;
|
|
4048
3930
|
}
|
|
4049
3931
|
function getOppositePlacement(placement) {
|
|
4050
3932
|
return placement.replace(/left|right|bottom|top/g, (side) => oppositeSideMap[side]);
|
|
@@ -4089,9 +3971,7 @@ function computeCoordsFromPlacement(_ref, placement, rtl) {
|
|
|
4089
3971
|
reference,
|
|
4090
3972
|
floating
|
|
4091
3973
|
} = _ref;
|
|
4092
|
-
const sideAxis = getSideAxis(placement), alignmentAxis = getAlignmentAxis(placement), alignLength = getAxisLength(alignmentAxis), side = getSide(placement),
|
|
4093
|
-
isVertical = sideAxis === "y", commonX = reference.x + reference.width / 2 - floating.width / 2, commonY = reference.y + reference.height / 2 - floating.
|
|
4094
|
-
height / 2, commonAlign = reference[alignLength] / 2 - floating[alignLength] / 2;
|
|
3974
|
+
const sideAxis = getSideAxis(placement), alignmentAxis = getAlignmentAxis(placement), alignLength = getAxisLength(alignmentAxis), side = getSide(placement), isVertical = sideAxis === "y", commonX = reference.x + reference.width / 2 - floating.width / 2, commonY = reference.y + reference.height / 2 - floating.height / 2, commonAlign = reference[alignLength] / 2 - floating[alignLength] / 2;
|
|
4095
3975
|
let coords;
|
|
4096
3976
|
switch (side) {
|
|
4097
3977
|
case "top":
|
|
@@ -4178,8 +4058,7 @@ const computePosition$1 = async (reference, floating, config) => {
|
|
|
4178
4058
|
...middlewareData[name],
|
|
4179
4059
|
...data
|
|
4180
4060
|
}
|
|
4181
|
-
}, reset && resetCount <= 50 && (resetCount++, typeof reset == "object" && (reset.placement && (statefulPlacement = reset.placement), reset.rects &&
|
|
4182
|
-
(rects = reset.rects === !0 ? await platform2.getElementRects({
|
|
4061
|
+
}, reset && resetCount <= 50 && (resetCount++, typeof reset == "object" && (reset.placement && (statefulPlacement = reset.placement), reset.rects && (rects = reset.rects === !0 ? await platform2.getElementRects({
|
|
4183
4062
|
reference,
|
|
4184
4063
|
floating,
|
|
4185
4064
|
strategy
|
|
@@ -4212,10 +4091,8 @@ async function detectOverflow(state, options) {
|
|
|
4212
4091
|
elementContext = "floating",
|
|
4213
4092
|
altBoundary = !1,
|
|
4214
4093
|
padding = 0
|
|
4215
|
-
} = evaluate(options, state), paddingObject = getPaddingObject(padding), element = elements[altBoundary ? elementContext === "floating" ? "reference" :
|
|
4216
|
-
|
|
4217
|
-
element: (_await$platform$isEle = await (platform2.isElement == null ? void 0 : platform2.isElement(element))) == null || _await$platform$isEle ? element :
|
|
4218
|
-
element.contextElement || await (platform2.getDocumentElement == null ? void 0 : platform2.getDocumentElement(elements.floating)),
|
|
4094
|
+
} = evaluate(options, state), paddingObject = getPaddingObject(padding), element = elements[altBoundary ? elementContext === "floating" ? "reference" : "floating" : elementContext], clippingClientRect = rectToClientRect(await platform2.getClippingRect({
|
|
4095
|
+
element: (_await$platform$isEle = await (platform2.isElement == null ? void 0 : platform2.isElement(element))) == null || _await$platform$isEle ? element : element.contextElement || await (platform2.getDocumentElement == null ? void 0 : platform2.getDocumentElement(elements.floating)),
|
|
4219
4096
|
boundary,
|
|
4220
4097
|
rootBoundary,
|
|
4221
4098
|
strategy
|
|
@@ -4224,15 +4101,13 @@ async function detectOverflow(state, options) {
|
|
|
4224
4101
|
y,
|
|
4225
4102
|
width: rects.floating.width,
|
|
4226
4103
|
height: rects.floating.height
|
|
4227
|
-
} : rects.reference, offsetParent = await (platform2.getOffsetParent == null ? void 0 : platform2.getOffsetParent(elements.floating)), offsetScale = await (platform2.
|
|
4228
|
-
isElement == null ? void 0 : platform2.isElement(offsetParent)) ? await (platform2.getScale == null ? void 0 : platform2.getScale(offsetParent)) || {
|
|
4104
|
+
} : rects.reference, offsetParent = await (platform2.getOffsetParent == null ? void 0 : platform2.getOffsetParent(elements.floating)), offsetScale = await (platform2.isElement == null ? void 0 : platform2.isElement(offsetParent)) ? await (platform2.getScale == null ? void 0 : platform2.getScale(offsetParent)) || {
|
|
4229
4105
|
x: 1,
|
|
4230
4106
|
y: 1
|
|
4231
4107
|
} : {
|
|
4232
4108
|
x: 1,
|
|
4233
4109
|
y: 1
|
|
4234
|
-
}, elementClientRect = rectToClientRect(platform2.convertOffsetParentRelativeRectToViewportRelativeRect ? await platform2.convertOffsetParentRelativeRectToViewportRelativeRect(
|
|
4235
|
-
{
|
|
4110
|
+
}, elementClientRect = rectToClientRect(platform2.convertOffsetParentRelativeRectToViewportRelativeRect ? await platform2.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
4236
4111
|
elements,
|
|
4237
4112
|
rect,
|
|
4238
4113
|
offsetParent,
|
|
@@ -4266,18 +4141,10 @@ const arrow$3 = (options) => ({
|
|
|
4266
4141
|
const paddingObject = getPaddingObject(padding), coords = {
|
|
4267
4142
|
x,
|
|
4268
4143
|
y
|
|
4269
|
-
}, axis = getAlignmentAxis(placement), length = getAxisLength(axis), arrowDimensions = await platform2.getDimensions(element), isYAxis = axis === "
|
|
4270
|
-
y", minProp = isYAxis ? "top" : "left", maxProp = isYAxis ? "bottom" : "right", clientProp = isYAxis ? "clientHeight" : "clientWidth", endDiff = rects.
|
|
4271
|
-
reference[length] + rects.reference[axis] - coords[axis] - rects.floating[length], startDiff = coords[axis] - rects.reference[axis], arrowOffsetParent = await (platform2.
|
|
4272
|
-
getOffsetParent == null ? void 0 : platform2.getOffsetParent(element));
|
|
4144
|
+
}, axis = getAlignmentAxis(placement), length = getAxisLength(axis), arrowDimensions = await platform2.getDimensions(element), isYAxis = axis === "y", minProp = isYAxis ? "top" : "left", maxProp = isYAxis ? "bottom" : "right", clientProp = isYAxis ? "clientHeight" : "clientWidth", endDiff = rects.reference[length] + rects.reference[axis] - coords[axis] - rects.floating[length], startDiff = coords[axis] - rects.reference[axis], arrowOffsetParent = await (platform2.getOffsetParent == null ? void 0 : platform2.getOffsetParent(element));
|
|
4273
4145
|
let clientSize = arrowOffsetParent ? arrowOffsetParent[clientProp] : 0;
|
|
4274
|
-
(!clientSize || !await (platform2.isElement == null ? void 0 : platform2.isElement(arrowOffsetParent))) && (clientSize = elements.floating[clientProp] ||
|
|
4275
|
-
rects.
|
|
4276
|
-
const centerToReference = endDiff / 2 - startDiff / 2, largestPossiblePadding = clientSize / 2 - arrowDimensions[length] / 2 - 1, minPadding = min(
|
|
4277
|
-
paddingObject[minProp], largestPossiblePadding), maxPadding = min(paddingObject[maxProp], largestPossiblePadding), min$1 = minPadding, max2 = clientSize -
|
|
4278
|
-
arrowDimensions[length] - maxPadding, center = clientSize / 2 - arrowDimensions[length] / 2 + centerToReference, offset2 = clamp(min$1, center, max2),
|
|
4279
|
-
shouldAddOffset = !middlewareData.arrow && getAlignment(placement) != null && center !== offset2 && rects.reference[length] / 2 - (center < min$1 ?
|
|
4280
|
-
minPadding : maxPadding) - arrowDimensions[length] / 2 < 0, alignmentOffset = shouldAddOffset ? center < min$1 ? center - min$1 : center - max2 : 0;
|
|
4146
|
+
(!clientSize || !await (platform2.isElement == null ? void 0 : platform2.isElement(arrowOffsetParent))) && (clientSize = elements.floating[clientProp] || rects.floating[length]);
|
|
4147
|
+
const centerToReference = endDiff / 2 - startDiff / 2, largestPossiblePadding = clientSize / 2 - arrowDimensions[length] / 2 - 1, minPadding = min(paddingObject[minProp], largestPossiblePadding), maxPadding = min(paddingObject[maxProp], largestPossiblePadding), min$1 = minPadding, max2 = clientSize - arrowDimensions[length] - maxPadding, center = clientSize / 2 - arrowDimensions[length] / 2 + centerToReference, offset2 = clamp(min$1, center, max2), shouldAddOffset = !middlewareData.arrow && getAlignment(placement) != null && center !== offset2 && rects.reference[length] / 2 - (center < min$1 ? minPadding : maxPadding) - arrowDimensions[length] / 2 < 0, alignmentOffset = shouldAddOffset ? center < min$1 ? center - min$1 : center - max2 : 0;
|
|
4281
4148
|
return {
|
|
4282
4149
|
[axis]: coords[axis] + alignmentOffset,
|
|
4283
4150
|
data: {
|
|
@@ -4314,12 +4181,8 @@ y", minProp = isYAxis ? "top" : "left", maxProp = isYAxis ? "bottom" : "right",
|
|
|
4314
4181
|
} = evaluate(options, state);
|
|
4315
4182
|
if ((_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset)
|
|
4316
4183
|
return {};
|
|
4317
|
-
const side = getSide(placement), initialSideAxis = getSideAxis(initialPlacement), isBasePlacement = getSide(initialPlacement) === initialPlacement,
|
|
4318
|
-
|
|
4319
|
-
!flipAlignment ? [getOppositePlacement(initialPlacement)] : getExpandedPlacements(initialPlacement)), hasFallbackAxisSideDirection = fallbackAxisSideDirection !==
|
|
4320
|
-
"none";
|
|
4321
|
-
!specifiedFallbackPlacements && hasFallbackAxisSideDirection && fallbackPlacements.push(...getOppositeAxisPlacements(initialPlacement, flipAlignment,
|
|
4322
|
-
fallbackAxisSideDirection, rtl));
|
|
4184
|
+
const side = getSide(placement), initialSideAxis = getSideAxis(initialPlacement), isBasePlacement = getSide(initialPlacement) === initialPlacement, rtl = await (platform2.isRTL == null ? void 0 : platform2.isRTL(elements.floating)), fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipAlignment ? [getOppositePlacement(initialPlacement)] : getExpandedPlacements(initialPlacement)), hasFallbackAxisSideDirection = fallbackAxisSideDirection !== "none";
|
|
4185
|
+
!specifiedFallbackPlacements && hasFallbackAxisSideDirection && fallbackPlacements.push(...getOppositeAxisPlacements(initialPlacement, flipAlignment, fallbackAxisSideDirection, rtl));
|
|
4323
4186
|
const placements = [initialPlacement, ...fallbackPlacements], overflow = await detectOverflow(state, detectOverflowOptions), overflows = [];
|
|
4324
4187
|
let overflowsData = ((_middlewareData$flip = middlewareData.flip) == null ? void 0 : _middlewareData$flip.overflows) || [];
|
|
4325
4188
|
if (checkMainAxis && overflows.push(overflow[side]), checkCrossAxis) {
|
|
@@ -4342,8 +4205,7 @@ y", minProp = isYAxis ? "top" : "left", maxProp = isYAxis ? "bottom" : "right",
|
|
|
4342
4205
|
placement: nextPlacement
|
|
4343
4206
|
}
|
|
4344
4207
|
};
|
|
4345
|
-
let resetPlacement = (_overflowsData$filter = overflowsData.filter((d) => d.overflows[0] <= 0).sort((a, b) => a.overflows[1] - b.overflows[1])[0]) ==
|
|
4346
|
-
null ? void 0 : _overflowsData$filter.placement;
|
|
4208
|
+
let resetPlacement = (_overflowsData$filter = overflowsData.filter((d) => d.overflows[0] <= 0).sort((a, b) => a.overflows[1] - b.overflows[1])[0]) == null ? void 0 : _overflowsData$filter.placement;
|
|
4347
4209
|
if (!resetPlacement)
|
|
4348
4210
|
switch (fallbackStrategy) {
|
|
4349
4211
|
case "bestFit": {
|
|
@@ -4356,8 +4218,7 @@ y", minProp = isYAxis ? "top" : "left", maxProp = isYAxis ? "bottom" : "right",
|
|
|
4356
4218
|
currentSideAxis === "y";
|
|
4357
4219
|
}
|
|
4358
4220
|
return !0;
|
|
4359
|
-
}).map((d) => [d.placement, d.overflows.filter((overflow2) => overflow2 > 0).reduce((acc, overflow2) => acc + overflow2, 0)]).sort((a, b) => a[1] -
|
|
4360
|
-
b[1])[0]) == null ? void 0 : _overflowsData$filter2[0];
|
|
4221
|
+
}).map((d) => [d.placement, d.overflows.filter((overflow2) => overflow2 > 0).reduce((acc, overflow2) => acc + overflow2, 0)]).sort((a, b) => a[1] - b[1])[0]) == null ? void 0 : _overflowsData$filter2[0];
|
|
4361
4222
|
placement2 && (resetPlacement = placement2);
|
|
4362
4223
|
break;
|
|
4363
4224
|
}
|
|
@@ -4377,8 +4238,7 @@ y", minProp = isYAxis ? "top" : "left", maxProp = isYAxis ? "bottom" : "right",
|
|
|
4377
4238
|
};
|
|
4378
4239
|
};
|
|
4379
4240
|
function getBoundingRect(rects) {
|
|
4380
|
-
const minX = min(...rects.map((rect) => rect.left)), minY = min(...rects.map((rect) => rect.top)), maxX = max(...rects.map((rect) => rect.right)), maxY = max(
|
|
4381
|
-
...rects.map((rect) => rect.bottom));
|
|
4241
|
+
const minX = min(...rects.map((rect) => rect.left)), minY = min(...rects.map((rect) => rect.top)), maxX = max(...rects.map((rect) => rect.right)), maxY = max(...rects.map((rect) => rect.bottom));
|
|
4382
4242
|
return {
|
|
4383
4243
|
x: minX,
|
|
4384
4244
|
y: minY,
|
|
@@ -4410,18 +4270,13 @@ const inline$2 = function(options) {
|
|
|
4410
4270
|
padding = 2,
|
|
4411
4271
|
x,
|
|
4412
4272
|
y
|
|
4413
|
-
} = evaluate(options, state), nativeClientRects = Array.from(await (platform2.getClientRects == null ? void 0 : platform2.getClientRects(elements.
|
|
4414
|
-
reference)) || []), clientRects = getRectsByLine(nativeClientRects), fallback = rectToClientRect(getBoundingRect(nativeClientRects)), paddingObject = getPaddingObject(
|
|
4415
|
-
padding);
|
|
4273
|
+
} = evaluate(options, state), nativeClientRects = Array.from(await (platform2.getClientRects == null ? void 0 : platform2.getClientRects(elements.reference)) || []), clientRects = getRectsByLine(nativeClientRects), fallback = rectToClientRect(getBoundingRect(nativeClientRects)), paddingObject = getPaddingObject(padding);
|
|
4416
4274
|
function getBoundingClientRect2() {
|
|
4417
4275
|
if (clientRects.length === 2 && clientRects[0].left > clientRects[1].right && x != null && y != null)
|
|
4418
|
-
return clientRects.find((rect) => x > rect.left - paddingObject.left && x < rect.right + paddingObject.right && y > rect.top - paddingObject.
|
|
4419
|
-
top && y < rect.bottom + paddingObject.bottom) || fallback;
|
|
4276
|
+
return clientRects.find((rect) => x > rect.left - paddingObject.left && x < rect.right + paddingObject.right && y > rect.top - paddingObject.top && y < rect.bottom + paddingObject.bottom) || fallback;
|
|
4420
4277
|
if (clientRects.length >= 2) {
|
|
4421
4278
|
if (getSideAxis(placement) === "y") {
|
|
4422
|
-
const firstRect = clientRects[0], lastRect = clientRects[clientRects.length - 1], isTop = getSide(placement) === "top", top2 = firstRect.top,
|
|
4423
|
-
bottom2 = lastRect.bottom, left2 = isTop ? firstRect.left : lastRect.left, right2 = isTop ? firstRect.right : lastRect.right, width2 = right2 -
|
|
4424
|
-
left2, height2 = bottom2 - top2;
|
|
4279
|
+
const firstRect = clientRects[0], lastRect = clientRects[clientRects.length - 1], isTop = getSide(placement) === "top", top2 = firstRect.top, bottom2 = lastRect.bottom, left2 = isTop ? firstRect.left : lastRect.left, right2 = isTop ? firstRect.right : lastRect.right, width2 = right2 - left2, height2 = bottom2 - top2;
|
|
4425
4280
|
return {
|
|
4426
4281
|
top: top2,
|
|
4427
4282
|
bottom: bottom2,
|
|
@@ -4433,9 +4288,7 @@ const inline$2 = function(options) {
|
|
|
4433
4288
|
y: top2
|
|
4434
4289
|
};
|
|
4435
4290
|
}
|
|
4436
|
-
const isLeftSide = getSide(placement) === "left", maxRight = max(...clientRects.map((rect) => rect.right)), minLeft = min(...clientRects.map(
|
|
4437
|
-
(rect) => rect.left)), measureRects = clientRects.filter((rect) => isLeftSide ? rect.left === minLeft : rect.right === maxRight), top = measureRects[0].
|
|
4438
|
-
top, bottom = measureRects[measureRects.length - 1].bottom, left = minLeft, right = maxRight, width = right - left, height = bottom - top;
|
|
4291
|
+
const isLeftSide = getSide(placement) === "left", maxRight = max(...clientRects.map((rect) => rect.right)), minLeft = min(...clientRects.map((rect) => rect.left)), measureRects = clientRects.filter((rect) => isLeftSide ? rect.left === minLeft : rect.right === maxRight), top = measureRects[0].top, bottom = measureRects[measureRects.length - 1].bottom, left = minLeft, right = maxRight, width = right - left, height = bottom - top;
|
|
4439
4292
|
return {
|
|
4440
4293
|
top,
|
|
4441
4294
|
bottom,
|
|
@@ -4456,8 +4309,7 @@ const inline$2 = function(options) {
|
|
|
4456
4309
|
floating: elements.floating,
|
|
4457
4310
|
strategy
|
|
4458
4311
|
});
|
|
4459
|
-
return rects.reference.x !== resetRects.reference.x || rects.reference.y !== resetRects.reference.y || rects.reference.width !== resetRects.reference.
|
|
4460
|
-
width || rects.reference.height !== resetRects.reference.height ? {
|
|
4312
|
+
return rects.reference.x !== resetRects.reference.x || rects.reference.y !== resetRects.reference.y || rects.reference.width !== resetRects.reference.width || rects.reference.height !== resetRects.reference.height ? {
|
|
4461
4313
|
reset: {
|
|
4462
4314
|
rects: resetRects
|
|
4463
4315
|
}
|
|
@@ -4470,9 +4322,7 @@ async function convertValueToCoords(state, options) {
|
|
|
4470
4322
|
placement,
|
|
4471
4323
|
platform: platform2,
|
|
4472
4324
|
elements
|
|
4473
|
-
} = state, rtl = await (platform2.isRTL == null ? void 0 : platform2.isRTL(elements.floating)), side = getSide(placement), alignment = getAlignment(
|
|
4474
|
-
placement), isVertical = getSideAxis(placement) === "y", mainAxisMulti = ["left", "top"].includes(side) ? -1 : 1, crossAxisMulti = rtl && isVertical ?
|
|
4475
|
-
-1 : 1, rawValue = evaluate(options, state);
|
|
4325
|
+
} = state, rtl = await (platform2.isRTL == null ? void 0 : platform2.isRTL(elements.floating)), side = getSide(placement), alignment = getAlignment(placement), isVertical = getSideAxis(placement) === "y", mainAxisMulti = ["left", "top"].includes(side) ? -1 : 1, crossAxisMulti = rtl && isVertical ? -1 : 1, rawValue = evaluate(options, state);
|
|
4476
4326
|
let {
|
|
4477
4327
|
mainAxis,
|
|
4478
4328
|
crossAxis,
|
|
@@ -4507,8 +4357,7 @@ const offset$2 = function(options) {
|
|
|
4507
4357
|
placement,
|
|
4508
4358
|
middlewareData
|
|
4509
4359
|
} = state, diffCoords = await convertValueToCoords(state, options);
|
|
4510
|
-
return placement === ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse.placement) && (_middlewareData$arrow =
|
|
4511
|
-
middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset ? {} : {
|
|
4360
|
+
return placement === ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse.placement) && (_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset ? {} : {
|
|
4512
4361
|
x: x + diffCoords.x,
|
|
4513
4362
|
y: y + diffCoords.y,
|
|
4514
4363
|
data: {
|
|
@@ -4549,13 +4398,11 @@ const offset$2 = function(options) {
|
|
|
4549
4398
|
}, overflow = await detectOverflow(state, detectOverflowOptions), crossAxis = getSideAxis(getSide(placement)), mainAxis = getOppositeAxis(crossAxis);
|
|
4550
4399
|
let mainAxisCoord = coords[mainAxis], crossAxisCoord = coords[crossAxis];
|
|
4551
4400
|
if (checkMainAxis) {
|
|
4552
|
-
const minSide = mainAxis === "y" ? "top" : "left", maxSide = mainAxis === "y" ? "bottom" : "right", min2 = mainAxisCoord + overflow[minSide], max2 = mainAxisCoord -
|
|
4553
|
-
overflow[maxSide];
|
|
4401
|
+
const minSide = mainAxis === "y" ? "top" : "left", maxSide = mainAxis === "y" ? "bottom" : "right", min2 = mainAxisCoord + overflow[minSide], max2 = mainAxisCoord - overflow[maxSide];
|
|
4554
4402
|
mainAxisCoord = clamp(min2, mainAxisCoord, max2);
|
|
4555
4403
|
}
|
|
4556
4404
|
if (checkCrossAxis) {
|
|
4557
|
-
const minSide = crossAxis === "y" ? "top" : "left", maxSide = crossAxis === "y" ? "bottom" : "right", min2 = crossAxisCoord + overflow[minSide],
|
|
4558
|
-
max2 = crossAxisCoord - overflow[maxSide];
|
|
4405
|
+
const minSide = crossAxis === "y" ? "top" : "left", maxSide = crossAxis === "y" ? "bottom" : "right", min2 = crossAxisCoord + overflow[minSide], max2 = crossAxisCoord - overflow[maxSide];
|
|
4559
4406
|
crossAxisCoord = clamp(min2, crossAxisCoord, max2);
|
|
4560
4407
|
}
|
|
4561
4408
|
const limitedCoords = limiter.fn({
|
|
@@ -4600,16 +4447,12 @@ const offset$2 = function(options) {
|
|
|
4600
4447
|
...rawOffset
|
|
4601
4448
|
};
|
|
4602
4449
|
if (checkMainAxis) {
|
|
4603
|
-
const len = mainAxis === "y" ? "height" : "width", limitMin = rects.reference[mainAxis] - rects.floating[len] + computedOffset.mainAxis, limitMax = rects.
|
|
4604
|
-
reference[mainAxis] + rects.reference[len] - computedOffset.mainAxis;
|
|
4450
|
+
const len = mainAxis === "y" ? "height" : "width", limitMin = rects.reference[mainAxis] - rects.floating[len] + computedOffset.mainAxis, limitMax = rects.reference[mainAxis] + rects.reference[len] - computedOffset.mainAxis;
|
|
4605
4451
|
mainAxisCoord < limitMin ? mainAxisCoord = limitMin : mainAxisCoord > limitMax && (mainAxisCoord = limitMax);
|
|
4606
4452
|
}
|
|
4607
4453
|
if (checkCrossAxis) {
|
|
4608
4454
|
var _middlewareData$offse, _middlewareData$offse2;
|
|
4609
|
-
const len = mainAxis === "y" ? "width" : "height", isOriginSide = ["top", "left"].includes(getSide(placement)), limitMin = rects.reference[crossAxis] -
|
|
4610
|
-
rects.floating[len] + (isOriginSide && ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse[crossAxis]) ||
|
|
4611
|
-
0) + (isOriginSide ? 0 : computedOffset.crossAxis), limitMax = rects.reference[crossAxis] + rects.reference[len] + (isOriginSide ? 0 : ((_middlewareData$offse2 =
|
|
4612
|
-
middlewareData.offset) == null ? void 0 : _middlewareData$offse2[crossAxis]) || 0) - (isOriginSide ? computedOffset.crossAxis : 0);
|
|
4455
|
+
const len = mainAxis === "y" ? "width" : "height", isOriginSide = ["top", "left"].includes(getSide(placement)), limitMin = rects.reference[crossAxis] - rects.floating[len] + (isOriginSide && ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse[crossAxis]) || 0) + (isOriginSide ? 0 : computedOffset.crossAxis), limitMax = rects.reference[crossAxis] + rects.reference[len] + (isOriginSide ? 0 : ((_middlewareData$offse2 = middlewareData.offset) == null ? void 0 : _middlewareData$offse2[crossAxis]) || 0) - (isOriginSide ? computedOffset.crossAxis : 0);
|
|
4613
4456
|
crossAxisCoord < limitMin ? crossAxisCoord = limitMin : crossAxisCoord > limitMax && (crossAxisCoord = limitMax);
|
|
4614
4457
|
}
|
|
4615
4458
|
return {
|
|
@@ -4632,23 +4475,17 @@ const offset$2 = function(options) {
|
|
|
4632
4475
|
apply = () => {
|
|
4633
4476
|
},
|
|
4634
4477
|
...detectOverflowOptions
|
|
4635
|
-
} = evaluate(options, state), overflow = await detectOverflow(state, detectOverflowOptions), side = getSide(placement), alignment = getAlignment(
|
|
4636
|
-
placement), isYAxis = getSideAxis(placement) === "y", {
|
|
4478
|
+
} = evaluate(options, state), overflow = await detectOverflow(state, detectOverflowOptions), side = getSide(placement), alignment = getAlignment(placement), isYAxis = getSideAxis(placement) === "y", {
|
|
4637
4479
|
width,
|
|
4638
4480
|
height
|
|
4639
4481
|
} = rects.floating;
|
|
4640
4482
|
let heightSide, widthSide;
|
|
4641
|
-
side === "top" || side === "bottom" ? (heightSide = side, widthSide = alignment === (await (platform2.isRTL == null ? void 0 : platform2.isRTL(elements.
|
|
4642
|
-
|
|
4643
|
-
const maximumClippingHeight = height - overflow.top - overflow.bottom, maximumClippingWidth = width - overflow.left - overflow.right, overflowAvailableHeight = min(
|
|
4644
|
-
height - overflow[heightSide], maximumClippingHeight), overflowAvailableWidth = min(width - overflow[widthSide], maximumClippingWidth), noShift = !state.
|
|
4645
|
-
middlewareData.shift;
|
|
4483
|
+
side === "top" || side === "bottom" ? (heightSide = side, widthSide = alignment === (await (platform2.isRTL == null ? void 0 : platform2.isRTL(elements.floating)) ? "start" : "end") ? "left" : "right") : (widthSide = side, heightSide = alignment === "end" ? "top" : "bottom");
|
|
4484
|
+
const maximumClippingHeight = height - overflow.top - overflow.bottom, maximumClippingWidth = width - overflow.left - overflow.right, overflowAvailableHeight = min(height - overflow[heightSide], maximumClippingHeight), overflowAvailableWidth = min(width - overflow[widthSide], maximumClippingWidth), noShift = !state.middlewareData.shift;
|
|
4646
4485
|
let availableHeight = overflowAvailableHeight, availableWidth = overflowAvailableWidth;
|
|
4647
|
-
if (isYAxis ? availableWidth = alignment || noShift ? min(overflowAvailableWidth, maximumClippingWidth) : maximumClippingWidth : availableHeight =
|
|
4648
|
-
alignment || noShift ? min(overflowAvailableHeight, maximumClippingHeight) : maximumClippingHeight, noShift && !alignment) {
|
|
4486
|
+
if (isYAxis ? availableWidth = alignment || noShift ? min(overflowAvailableWidth, maximumClippingWidth) : maximumClippingWidth : availableHeight = alignment || noShift ? min(overflowAvailableHeight, maximumClippingHeight) : maximumClippingHeight, noShift && !alignment) {
|
|
4649
4487
|
const xMin = max(overflow.left, 0), xMax = max(overflow.right, 0), yMin = max(overflow.top, 0), yMax = max(overflow.bottom, 0);
|
|
4650
|
-
isYAxis ? availableWidth = width - 2 * (xMin !== 0 || xMax !== 0 ? xMin + xMax : max(overflow.left, overflow.right)) : availableHeight = height -
|
|
4651
|
-
2 * (yMin !== 0 || yMax !== 0 ? yMin + yMax : max(overflow.top, overflow.bottom));
|
|
4488
|
+
isYAxis ? availableWidth = width - 2 * (xMin !== 0 || xMax !== 0 ? xMin + xMax : max(overflow.left, overflow.right)) : availableHeight = height - 2 * (yMin !== 0 || yMax !== 0 ? yMin + yMax : max(overflow.top, overflow.bottom));
|
|
4652
4489
|
}
|
|
4653
4490
|
await apply({
|
|
4654
4491
|
...state,
|
|
@@ -4667,8 +4504,7 @@ const offset$2 = function(options) {
|
|
|
4667
4504
|
function getCssDimensions(element) {
|
|
4668
4505
|
const css = getComputedStyle$1(element);
|
|
4669
4506
|
let width = parseFloat(css.width) || 0, height = parseFloat(css.height) || 0;
|
|
4670
|
-
const hasOffset = isHTMLElement(element), offsetWidth = hasOffset ? element.offsetWidth : width, offsetHeight = hasOffset ? element.offsetHeight : height,
|
|
4671
|
-
shouldFallback = round(width) !== offsetWidth || round(height) !== offsetHeight;
|
|
4507
|
+
const hasOffset = isHTMLElement(element), offsetWidth = hasOffset ? element.offsetWidth : width, offsetHeight = hasOffset ? element.offsetHeight : height, shouldFallback = round(width) !== offsetWidth || round(height) !== offsetHeight;
|
|
4672
4508
|
return shouldFallback && (width = offsetWidth, height = offsetHeight), {
|
|
4673
4509
|
width,
|
|
4674
4510
|
height,
|
|
@@ -4710,17 +4546,13 @@ function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetPar
|
|
|
4710
4546
|
let scale = createCoords(1);
|
|
4711
4547
|
includeScale && (offsetParent ? isElement(offsetParent) && (scale = getScale(offsetParent)) : scale = getScale(element));
|
|
4712
4548
|
const visualOffsets = shouldAddVisualOffsets(domElement, isFixedStrategy, offsetParent) ? getVisualOffsets(domElement) : createCoords(0);
|
|
4713
|
-
let x = (clientRect.left + visualOffsets.x) / scale.x, y = (clientRect.top + visualOffsets.y) / scale.y, width = clientRect.width / scale.x, height = clientRect.
|
|
4714
|
-
height / scale.y;
|
|
4549
|
+
let x = (clientRect.left + visualOffsets.x) / scale.x, y = (clientRect.top + visualOffsets.y) / scale.y, width = clientRect.width / scale.x, height = clientRect.height / scale.y;
|
|
4715
4550
|
if (domElement) {
|
|
4716
4551
|
const win = getWindow(domElement), offsetWin = offsetParent && isElement(offsetParent) ? getWindow(offsetParent) : offsetParent;
|
|
4717
4552
|
let currentWin = win, currentIFrame = currentWin.frameElement;
|
|
4718
4553
|
for (; currentIFrame && offsetParent && offsetWin !== currentWin; ) {
|
|
4719
|
-
const iframeScale = getScale(currentIFrame), iframeRect = currentIFrame.getBoundingClientRect(), css = getComputedStyle$1(currentIFrame), left = iframeRect.
|
|
4720
|
-
|
|
4721
|
-
paddingTop)) * iframeScale.y;
|
|
4722
|
-
x *= iframeScale.x, y *= iframeScale.y, width *= iframeScale.x, height *= iframeScale.y, x += left, y += top, currentWin = getWindow(currentIFrame),
|
|
4723
|
-
currentIFrame = currentWin.frameElement;
|
|
4554
|
+
const iframeScale = getScale(currentIFrame), iframeRect = currentIFrame.getBoundingClientRect(), css = getComputedStyle$1(currentIFrame), left = iframeRect.left + (currentIFrame.clientLeft + parseFloat(css.paddingLeft)) * iframeScale.x, top = iframeRect.top + (currentIFrame.clientTop + parseFloat(css.paddingTop)) * iframeScale.y;
|
|
4555
|
+
x *= iframeScale.x, y *= iframeScale.y, width *= iframeScale.x, height *= iframeScale.y, x += left, y += top, currentWin = getWindow(currentIFrame), currentIFrame = currentWin.frameElement;
|
|
4724
4556
|
}
|
|
4725
4557
|
}
|
|
4726
4558
|
return rectToClientRect({
|
|
@@ -4745,8 +4577,7 @@ function convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {
|
|
|
4745
4577
|
scrollTop: 0
|
|
4746
4578
|
}, scale = createCoords(1);
|
|
4747
4579
|
const offsets = createCoords(0), isOffsetParentAnElement = isHTMLElement(offsetParent);
|
|
4748
|
-
if ((isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) && ((getNodeName(offsetParent) !== "body" || isOverflowElement(documentElement)) &&
|
|
4749
|
-
(scroll = getNodeScroll(offsetParent)), isHTMLElement(offsetParent))) {
|
|
4580
|
+
if ((isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) && ((getNodeName(offsetParent) !== "body" || isOverflowElement(documentElement)) && (scroll = getNodeScroll(offsetParent)), isHTMLElement(offsetParent))) {
|
|
4750
4581
|
const offsetRect = getBoundingClientRect(offsetParent);
|
|
4751
4582
|
scale = getScale(offsetParent), offsets.x = offsetRect.x + offsetParent.clientLeft, offsets.y = offsetRect.y + offsetParent.clientTop;
|
|
4752
4583
|
}
|
|
@@ -4764,8 +4595,7 @@ function getWindowScrollBarX(element) {
|
|
|
4764
4595
|
return getBoundingClientRect(getDocumentElement(element)).left + getNodeScroll(element).scrollLeft;
|
|
4765
4596
|
}
|
|
4766
4597
|
function getDocumentRect(element) {
|
|
4767
|
-
const html = getDocumentElement(element), scroll = getNodeScroll(element), body = element.ownerDocument.body, width = max(html.scrollWidth, html.clientWidth,
|
|
4768
|
-
body.scrollWidth, body.clientWidth), height = max(html.scrollHeight, html.clientHeight, body.scrollHeight, body.clientHeight);
|
|
4598
|
+
const html = getDocumentElement(element), scroll = getNodeScroll(element), body = element.ownerDocument.body, width = max(html.scrollWidth, html.clientWidth, body.scrollWidth, body.clientWidth), height = max(html.scrollHeight, html.clientHeight, body.scrollHeight, body.clientHeight);
|
|
4769
4599
|
let x = -scroll.scrollLeft + getWindowScrollBarX(element);
|
|
4770
4600
|
const y = -scroll.scrollTop;
|
|
4771
4601
|
return getComputedStyle$1(body).direction === "rtl" && (x += max(html.clientWidth, body.clientWidth) - width), {
|
|
@@ -4791,9 +4621,7 @@ function getViewportRect(element, strategy) {
|
|
|
4791
4621
|
};
|
|
4792
4622
|
}
|
|
4793
4623
|
function getInnerBoundingClientRect(element, strategy) {
|
|
4794
|
-
const clientRect = getBoundingClientRect(element, !0, strategy === "fixed"), top = clientRect.top + element.clientTop, left = clientRect.left + element.
|
|
4795
|
-
clientLeft, scale = isHTMLElement(element) ? getScale(element) : createCoords(1), width = element.clientWidth * scale.x, height = element.clientHeight *
|
|
4796
|
-
scale.y, x = left * scale.x, y = top * scale.y;
|
|
4624
|
+
const clientRect = getBoundingClientRect(element, !0, strategy === "fixed"), top = clientRect.top + element.clientTop, left = clientRect.left + element.clientLeft, scale = isHTMLElement(element) ? getScale(element) : createCoords(1), width = element.clientWidth * scale.x, height = element.clientHeight * scale.y, x = left * scale.x, y = top * scale.y;
|
|
4797
4625
|
return {
|
|
4798
4626
|
width,
|
|
4799
4627
|
height,
|
|
@@ -4821,8 +4649,7 @@ function getClientRectFromClippingAncestor(element, clippingAncestor, strategy)
|
|
|
4821
4649
|
}
|
|
4822
4650
|
function hasFixedPositionAncestor(element, stopNode) {
|
|
4823
4651
|
const parentNode = getParentNode(element);
|
|
4824
|
-
return parentNode === stopNode || !isElement(parentNode) || isLastTraversableNode(parentNode) ? !1 : getComputedStyle$1(parentNode).position === "
|
|
4825
|
-
xed" || hasFixedPositionAncestor(parentNode, stopNode);
|
|
4652
|
+
return parentNode === stopNode || !isElement(parentNode) || isLastTraversableNode(parentNode) ? !1 : getComputedStyle$1(parentNode).position === "fixed" || hasFixedPositionAncestor(parentNode, stopNode);
|
|
4826
4653
|
}
|
|
4827
4654
|
function getClippingElementAncestors(element, cache) {
|
|
4828
4655
|
const cachedResult = cache.get(element);
|
|
@@ -4833,11 +4660,7 @@ function getClippingElementAncestors(element, cache) {
|
|
|
4833
4660
|
let currentNode = elementIsFixed ? getParentNode(element) : element;
|
|
4834
4661
|
for (; isElement(currentNode) && !isLastTraversableNode(currentNode); ) {
|
|
4835
4662
|
const computedStyle = getComputedStyle$1(currentNode), currentNodeIsContaining = isContainingBlock(currentNode);
|
|
4836
|
-
!currentNodeIsContaining && computedStyle.position === "fixed" && (currentContainingBlockComputedStyle = null), (elementIsFixed ? !currentNodeIsContaining &&
|
|
4837
|
-
!currentContainingBlockComputedStyle : !currentNodeIsContaining && computedStyle.position === "static" && !!currentContainingBlockComputedStyle &&
|
|
4838
|
-
["absolute", "fixed"].includes(currentContainingBlockComputedStyle.position) || isOverflowElement(currentNode) && !currentNodeIsContaining && hasFixedPositionAncestor(
|
|
4839
|
-
element, currentNode)) ? result = result.filter((ancestor) => ancestor !== currentNode) : currentContainingBlockComputedStyle = computedStyle, currentNode =
|
|
4840
|
-
getParentNode(currentNode);
|
|
4663
|
+
!currentNodeIsContaining && computedStyle.position === "fixed" && (currentContainingBlockComputedStyle = null), (elementIsFixed ? !currentNodeIsContaining && !currentContainingBlockComputedStyle : !currentNodeIsContaining && computedStyle.position === "static" && !!currentContainingBlockComputedStyle && ["absolute", "fixed"].includes(currentContainingBlockComputedStyle.position) || isOverflowElement(currentNode) && !currentNodeIsContaining && hasFixedPositionAncestor(element, currentNode)) ? result = result.filter((ancestor) => ancestor !== currentNode) : currentContainingBlockComputedStyle = computedStyle, currentNode = getParentNode(currentNode);
|
|
4841
4664
|
}
|
|
4842
4665
|
return cache.set(element, result), result;
|
|
4843
4666
|
}
|
|
@@ -4848,11 +4671,9 @@ function getClippingRect(_ref) {
|
|
|
4848
4671
|
rootBoundary,
|
|
4849
4672
|
strategy
|
|
4850
4673
|
} = _ref;
|
|
4851
|
-
const clippingAncestors = [...boundary === "clippingAncestors" ? isTopLayer(element) ? [] : getClippingElementAncestors(element, this._c) : [].concat(
|
|
4852
|
-
boundary), rootBoundary], firstClippingAncestor = clippingAncestors[0], clippingRect = clippingAncestors.reduce((accRect, clippingAncestor) => {
|
|
4674
|
+
const clippingAncestors = [...boundary === "clippingAncestors" ? isTopLayer(element) ? [] : getClippingElementAncestors(element, this._c) : [].concat(boundary), rootBoundary], firstClippingAncestor = clippingAncestors[0], clippingRect = clippingAncestors.reduce((accRect, clippingAncestor) => {
|
|
4853
4675
|
const rect = getClientRectFromClippingAncestor(element, clippingAncestor, strategy);
|
|
4854
|
-
return accRect.top = max(rect.top, accRect.top), accRect.right = min(rect.right, accRect.right), accRect.bottom = min(rect.bottom, accRect.bottom),
|
|
4855
|
-
accRect.left = max(rect.left, accRect.left), accRect;
|
|
4676
|
+
return accRect.top = max(rect.top, accRect.top), accRect.right = min(rect.right, accRect.right), accRect.bottom = min(rect.bottom, accRect.bottom), accRect.left = max(rect.left, accRect.left), accRect;
|
|
4856
4677
|
}, getClientRectFromClippingAncestor(element, firstClippingAncestor, strategy));
|
|
4857
4678
|
return {
|
|
4858
4679
|
width: clippingRect.right - clippingRect.left,
|
|
@@ -4872,8 +4693,7 @@ function getDimensions(element) {
|
|
|
4872
4693
|
};
|
|
4873
4694
|
}
|
|
4874
4695
|
function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
|
|
4875
|
-
const isOffsetParentAnElement = isHTMLElement(offsetParent), documentElement = getDocumentElement(offsetParent), isFixed = strategy === "fixed", rect = getBoundingClientRect(
|
|
4876
|
-
element, !0, isFixed, offsetParent);
|
|
4696
|
+
const isOffsetParentAnElement = isHTMLElement(offsetParent), documentElement = getDocumentElement(offsetParent), isFixed = strategy === "fixed", rect = getBoundingClientRect(element, !0, isFixed, offsetParent);
|
|
4877
4697
|
let scroll = {
|
|
4878
4698
|
scrollLeft: 0,
|
|
4879
4699
|
scrollTop: 0
|
|
@@ -4914,12 +4734,10 @@ function getOffsetParent(element, polyfill) {
|
|
|
4914
4734
|
let offsetParent = getTrueOffsetParent(element, polyfill);
|
|
4915
4735
|
for (; offsetParent && isTableElement(offsetParent) && isStaticPositioned(offsetParent); )
|
|
4916
4736
|
offsetParent = getTrueOffsetParent(offsetParent, polyfill);
|
|
4917
|
-
return offsetParent && isLastTraversableNode(offsetParent) && isStaticPositioned(offsetParent) && !isContainingBlock(offsetParent) ? win : offsetParent ||
|
|
4918
|
-
getContainingBlock(element) || win;
|
|
4737
|
+
return offsetParent && isLastTraversableNode(offsetParent) && isStaticPositioned(offsetParent) && !isContainingBlock(offsetParent) ? win : offsetParent || getContainingBlock(element) || win;
|
|
4919
4738
|
}
|
|
4920
4739
|
const getElementRects = async function(data) {
|
|
4921
|
-
const getOffsetParentFn = this.getOffsetParent || getOffsetParent, getDimensionsFn = this.getDimensions, floatingDimensions = await getDimensionsFn(
|
|
4922
|
-
data.floating);
|
|
4740
|
+
const getOffsetParentFn = this.getOffsetParent || getOffsetParent, getDimensionsFn = this.getDimensions, floatingDimensions = await getDimensionsFn(data.floating);
|
|
4923
4741
|
return {
|
|
4924
4742
|
reference: getRectRelativeToOffsetParent(data.reference, await getOffsetParentFn(data.floating), data.strategy),
|
|
4925
4743
|
floating: {
|
|
@@ -4962,8 +4780,7 @@ function observeMove(element, onMove) {
|
|
|
4962
4780
|
} = element.getBoundingClientRect();
|
|
4963
4781
|
if (skip || onMove(), !width || !height)
|
|
4964
4782
|
return;
|
|
4965
|
-
const insetTop = floor(top), insetRight = floor(root.clientWidth - (left + width)), insetBottom = floor(root.clientHeight - (top + height)), insetLeft = floor(
|
|
4966
|
-
left), options = {
|
|
4783
|
+
const insetTop = floor(top), insetRight = floor(root.clientWidth - (left + width)), insetBottom = floor(root.clientHeight - (top + height)), insetLeft = floor(left), options = {
|
|
4967
4784
|
rootMargin: -insetTop + "px " + -insetRight + "px " + -insetBottom + "px " + -insetLeft + "px",
|
|
4968
4785
|
threshold: max(0, min(1, threshold)) || 1
|
|
4969
4786
|
};
|
|
@@ -5000,8 +4817,7 @@ function autoUpdate(reference, floating, update, options) {
|
|
|
5000
4817
|
elementResize = typeof ResizeObserver == "function",
|
|
5001
4818
|
layoutShift = typeof IntersectionObserver == "function",
|
|
5002
4819
|
animationFrame = !1
|
|
5003
|
-
} = options, referenceEl = unwrapElement(reference), ancestors = ancestorScroll || ancestorResize ? [...referenceEl ? getOverflowAncestors(referenceEl) :
|
|
5004
|
-
[], ...getOverflowAncestors(floating)] : [];
|
|
4820
|
+
} = options, referenceEl = unwrapElement(reference), ancestors = ancestorScroll || ancestorResize ? [...referenceEl ? getOverflowAncestors(referenceEl) : [], ...getOverflowAncestors(floating)] : [];
|
|
5005
4821
|
ancestors.forEach((ancestor) => {
|
|
5006
4822
|
ancestorScroll && ancestor.addEventListener("scroll", update, {
|
|
5007
4823
|
passive: !0
|
|
@@ -5011,8 +4827,7 @@ function autoUpdate(reference, floating, update, options) {
|
|
|
5011
4827
|
let reobserveFrame = -1, resizeObserver = null;
|
|
5012
4828
|
elementResize && (resizeObserver = new ResizeObserver((_ref) => {
|
|
5013
4829
|
let [firstEntry] = _ref;
|
|
5014
|
-
firstEntry && firstEntry.target === referenceEl && resizeObserver && (resizeObserver.unobserve(floating), cancelAnimationFrame(reobserveFrame), reobserveFrame =
|
|
5015
|
-
requestAnimationFrame(() => {
|
|
4830
|
+
firstEntry && firstEntry.target === referenceEl && resizeObserver && (resizeObserver.unobserve(floating), cancelAnimationFrame(reobserveFrame), reobserveFrame = requestAnimationFrame(() => {
|
|
5016
4831
|
var _resizeObserver;
|
|
5017
4832
|
(_resizeObserver = resizeObserver) == null || _resizeObserver.observe(floating);
|
|
5018
4833
|
})), update();
|
|
@@ -5021,15 +4836,13 @@ function autoUpdate(reference, floating, update, options) {
|
|
|
5021
4836
|
animationFrame && frameLoop();
|
|
5022
4837
|
function frameLoop() {
|
|
5023
4838
|
const nextRefRect = getBoundingClientRect(reference);
|
|
5024
|
-
prevRefRect && (nextRefRect.x !== prevRefRect.x || nextRefRect.y !== prevRefRect.y || nextRefRect.width !== prevRefRect.width || nextRefRect.height !==
|
|
5025
|
-
prevRefRect.height) && update(), prevRefRect = nextRefRect, frameId = requestAnimationFrame(frameLoop);
|
|
4839
|
+
prevRefRect && (nextRefRect.x !== prevRefRect.x || nextRefRect.y !== prevRefRect.y || nextRefRect.width !== prevRefRect.width || nextRefRect.height !== prevRefRect.height) && update(), prevRefRect = nextRefRect, frameId = requestAnimationFrame(frameLoop);
|
|
5026
4840
|
}
|
|
5027
4841
|
return update(), () => {
|
|
5028
4842
|
var _resizeObserver2;
|
|
5029
4843
|
ancestors.forEach((ancestor) => {
|
|
5030
4844
|
ancestorScroll && ancestor.removeEventListener("scroll", update), ancestorResize && ancestor.removeEventListener("resize", update);
|
|
5031
|
-
}), cleanupIo?.(), (_resizeObserver2 = resizeObserver) == null || _resizeObserver2.disconnect(), resizeObserver = null, animationFrame && cancelAnimationFrame(
|
|
5032
|
-
frameId);
|
|
4845
|
+
}), cleanupIo?.(), (_resizeObserver2 = resizeObserver) == null || _resizeObserver2.disconnect(), resizeObserver = null, animationFrame && cancelAnimationFrame(frameId);
|
|
5033
4846
|
};
|
|
5034
4847
|
}
|
|
5035
4848
|
const offset$1 = offset$2, shift$1 = shift$2, flip$1 = flip$2, size$1 = size$2, arrow$2 = arrow$3, inline$1 = inline$2, limitShift$1 = limitShift$2, computePosition = (reference, floating, options) => {
|
|
@@ -5116,9 +4929,7 @@ function useFloating$1(options) {
|
|
|
5116
4929
|
node !== referenceRef.current && (referenceRef.current = node, _setReference(node));
|
|
5117
4930
|
}, []), setFloating = React.useCallback((node) => {
|
|
5118
4931
|
node !== floatingRef.current && (floatingRef.current = node, _setFloating(node));
|
|
5119
|
-
}, []), referenceEl = externalReference || _reference, floatingEl = externalFloating || _floating, referenceRef = React.useRef(null), floatingRef = React.
|
|
5120
|
-
useRef(null), dataRef = React.useRef(data), hasWhileElementsMounted = whileElementsMounted != null, whileElementsMountedRef = useLatestRef$1(whileElementsMounted),
|
|
5121
|
-
platformRef = useLatestRef$1(platform2), update = React.useCallback(() => {
|
|
4932
|
+
}, []), referenceEl = externalReference || _reference, floatingEl = externalFloating || _floating, referenceRef = React.useRef(null), floatingRef = React.useRef(null), dataRef = React.useRef(data), hasWhileElementsMounted = whileElementsMounted != null, whileElementsMountedRef = useLatestRef$1(whileElementsMounted), platformRef = useLatestRef$1(platform2), update = React.useCallback(() => {
|
|
5122
4933
|
if (!referenceRef.current || !floatingRef.current)
|
|
5123
4934
|
return;
|
|
5124
4935
|
const config = {
|
|
@@ -5309,9 +5120,7 @@ function useHover(context, props) {
|
|
|
5309
5120
|
mouseOnly = !1,
|
|
5310
5121
|
restMs = 0,
|
|
5311
5122
|
move = !0
|
|
5312
|
-
} = props, tree = useFloatingTree(), parentId = useFloatingParentNodeId(), handleCloseRef = useLatestRef(handleClose), delayRef = useLatestRef(delay),
|
|
5313
|
-
openRef = useLatestRef(open), pointerTypeRef = React.useRef(), timeoutRef = React.useRef(-1), handlerRef = React.useRef(), restTimeoutRef = React.useRef(
|
|
5314
|
-
-1), blockMouseMoveRef = React.useRef(!0), performedPointerEventsMutationRef = React.useRef(!1), unbindMouseMoveRef = React.useRef(() => {
|
|
5123
|
+
} = props, tree = useFloatingTree(), parentId = useFloatingParentNodeId(), handleCloseRef = useLatestRef(handleClose), delayRef = useLatestRef(delay), openRef = useLatestRef(open), pointerTypeRef = React.useRef(), timeoutRef = React.useRef(-1), handlerRef = React.useRef(), restTimeoutRef = React.useRef(-1), blockMouseMoveRef = React.useRef(!0), performedPointerEventsMutationRef = React.useRef(!1), unbindMouseMoveRef = React.useRef(() => {
|
|
5315
5124
|
}), isHoverOpen = React.useCallback(() => {
|
|
5316
5125
|
var _dataRef$current$open;
|
|
5317
5126
|
const type = (_dataRef$current$open = dataRef.current.openEvent) == null ? void 0 : _dataRef$current$open.type;
|
|
@@ -5341,8 +5150,7 @@ function useHover(context, props) {
|
|
|
5341
5150
|
const closeWithDelay = React.useCallback(function(event, runElseBranch, reason) {
|
|
5342
5151
|
runElseBranch === void 0 && (runElseBranch = !0), reason === void 0 && (reason = "hover");
|
|
5343
5152
|
const closeDelay = getDelay(delayRef.current, "close", pointerTypeRef.current);
|
|
5344
|
-
closeDelay && !handlerRef.current ? (clearTimeout(timeoutRef.current), timeoutRef.current = window.setTimeout(() => onOpenChange(!1, event, reason),
|
|
5345
|
-
closeDelay)) : runElseBranch && (clearTimeout(timeoutRef.current), onOpenChange(!1, event, reason));
|
|
5153
|
+
closeDelay && !handlerRef.current ? (clearTimeout(timeoutRef.current), timeoutRef.current = window.setTimeout(() => onOpenChange(!1, event, reason), closeDelay)) : runElseBranch && (clearTimeout(timeoutRef.current), onOpenChange(!1, event, reason));
|
|
5346
5154
|
}, [delayRef, onOpenChange]), cleanupMouseMoveHandler = useEffectEvent(() => {
|
|
5347
5155
|
unbindMouseMoveRef.current(), handlerRef.current = void 0;
|
|
5348
5156
|
}), clearPointerEvents = useEffectEvent(() => {
|
|
@@ -5357,8 +5165,7 @@ function useHover(context, props) {
|
|
|
5357
5165
|
return dataRef.current.openEvent ? ["click", "mousedown"].includes(dataRef.current.openEvent.type) : !1;
|
|
5358
5166
|
}
|
|
5359
5167
|
function onMouseEnter(event) {
|
|
5360
|
-
if (clearTimeout(timeoutRef.current), blockMouseMoveRef.current = !1, mouseOnly && !isMouseLikePointerType(pointerTypeRef.current) || restMs > 0 &&
|
|
5361
|
-
!getDelay(delayRef.current, "open"))
|
|
5168
|
+
if (clearTimeout(timeoutRef.current), blockMouseMoveRef.current = !1, mouseOnly && !isMouseLikePointerType(pointerTypeRef.current) || restMs > 0 && !getDelay(delayRef.current, "open"))
|
|
5362
5169
|
return;
|
|
5363
5170
|
const openDelay = getDelay(delayRef.current, "open", pointerTypeRef.current);
|
|
5364
5171
|
openDelay ? timeoutRef.current = window.setTimeout(() => {
|
|
@@ -5401,18 +5208,14 @@ function useHover(context, props) {
|
|
|
5401
5208
|
if (isElement(elements.domReference)) {
|
|
5402
5209
|
var _elements$floating;
|
|
5403
5210
|
const ref = elements.domReference;
|
|
5404
|
-
return open && ref.addEventListener("mouseleave", onScrollMouseLeave), (_elements$floating = elements.floating) == null || _elements$floating.addEventListener(
|
|
5405
|
-
"mouseleave", onScrollMouseLeave), move && ref.addEventListener("mousemove", onMouseEnter, {
|
|
5211
|
+
return open && ref.addEventListener("mouseleave", onScrollMouseLeave), (_elements$floating = elements.floating) == null || _elements$floating.addEventListener("mouseleave", onScrollMouseLeave), move && ref.addEventListener("mousemove", onMouseEnter, {
|
|
5406
5212
|
once: !0
|
|
5407
5213
|
}), ref.addEventListener("mouseenter", onMouseEnter), ref.addEventListener("mouseleave", onMouseLeave), () => {
|
|
5408
5214
|
var _elements$floating2;
|
|
5409
|
-
open && ref.removeEventListener("mouseleave", onScrollMouseLeave), (_elements$floating2 = elements.floating) == null || _elements$floating2.removeEventListener(
|
|
5410
|
-
"mouseleave", onScrollMouseLeave), move && ref.removeEventListener("mousemove", onMouseEnter), ref.removeEventListener("mouseenter", onMouseEnter),
|
|
5411
|
-
ref.removeEventListener("mouseleave", onMouseLeave);
|
|
5215
|
+
open && ref.removeEventListener("mouseleave", onScrollMouseLeave), (_elements$floating2 = elements.floating) == null || _elements$floating2.removeEventListener("mouseleave", onScrollMouseLeave), move && ref.removeEventListener("mousemove", onMouseEnter), ref.removeEventListener("mouseenter", onMouseEnter), ref.removeEventListener("mouseleave", onMouseLeave);
|
|
5412
5216
|
};
|
|
5413
5217
|
}
|
|
5414
|
-
}, [elements, enabled, context, mouseOnly, restMs, move, closeWithDelay, cleanupMouseMoveHandler, clearPointerEvents, onOpenChange, open, openRef, tree,
|
|
5415
|
-
delayRef, handleCloseRef, dataRef]), index(() => {
|
|
5218
|
+
}, [elements, enabled, context, mouseOnly, restMs, move, closeWithDelay, cleanupMouseMoveHandler, clearPointerEvents, onOpenChange, open, openRef, tree, delayRef, handleCloseRef, dataRef]), index(() => {
|
|
5416
5219
|
var _handleCloseRef$curre;
|
|
5417
5220
|
if (enabled && open && (_handleCloseRef$curre = handleCloseRef.current) != null && _handleCloseRef$curre.__options.blockPointerEvents && isHoverOpen()) {
|
|
5418
5221
|
const body = getDocument(elements.floating).body;
|
|
@@ -5420,10 +5223,8 @@ function useHover(context, props) {
|
|
|
5420
5223
|
const floatingEl = elements.floating;
|
|
5421
5224
|
if (isElement(elements.domReference) && floatingEl) {
|
|
5422
5225
|
var _tree$nodesRef$curren;
|
|
5423
|
-
const ref = elements.domReference, parentFloating = tree == null || (_tree$nodesRef$curren = tree.nodesRef.current.find((node) => node.id === parentId)) ==
|
|
5424
|
-
|
|
5425
|
-
return parentFloating && (parentFloating.style.pointerEvents = ""), ref.style.pointerEvents = "auto", floatingEl.style.pointerEvents = "auto",
|
|
5426
|
-
() => {
|
|
5226
|
+
const ref = elements.domReference, parentFloating = tree == null || (_tree$nodesRef$curren = tree.nodesRef.current.find((node) => node.id === parentId)) == null || (_tree$nodesRef$curren = _tree$nodesRef$curren.context) == null ? void 0 : _tree$nodesRef$curren.elements.floating;
|
|
5227
|
+
return parentFloating && (parentFloating.style.pointerEvents = ""), ref.style.pointerEvents = "auto", floatingEl.style.pointerEvents = "auto", () => {
|
|
5427
5228
|
ref.style.pointerEvents = "", floatingEl.style.pointerEvents = "";
|
|
5428
5229
|
};
|
|
5429
5230
|
}
|
|
@@ -5447,8 +5248,7 @@ function useHover(context, props) {
|
|
|
5447
5248
|
function handleMouseMove() {
|
|
5448
5249
|
!blockMouseMoveRef.current && !openRef.current && onOpenChange(!0, nativeEvent, "hover");
|
|
5449
5250
|
}
|
|
5450
|
-
mouseOnly && !isMouseLikePointerType(pointerTypeRef.current) || open || restMs === 0 || (clearTimeout(restTimeoutRef.current), pointerTypeRef.
|
|
5451
|
-
current === "touch" ? handleMouseMove() : restTimeoutRef.current = window.setTimeout(handleMouseMove, restMs));
|
|
5251
|
+
mouseOnly && !isMouseLikePointerType(pointerTypeRef.current) || open || restMs === 0 || (clearTimeout(restTimeoutRef.current), pointerTypeRef.current === "touch" ? handleMouseMove() : restTimeoutRef.current = window.setTimeout(handleMouseMove, restMs));
|
|
5452
5252
|
}
|
|
5453
5253
|
};
|
|
5454
5254
|
}, [mouseOnly, onOpenChange, open, openRef, restMs]), floating = React.useMemo(() => ({
|
|
@@ -5576,8 +5376,7 @@ const bubbleHandlerKeys = {
|
|
|
5576
5376
|
var _normalizable$escapeK, _normalizable$outside;
|
|
5577
5377
|
return {
|
|
5578
5378
|
escapeKey: typeof normalizable == "boolean" ? normalizable : (_normalizable$escapeK = normalizable?.escapeKey) != null ? _normalizable$escapeK : !1,
|
|
5579
|
-
outsidePress: typeof normalizable == "boolean" ? normalizable : (_normalizable$outside = normalizable?.outsidePress) != null ? _normalizable$outside :
|
|
5580
|
-
!0
|
|
5379
|
+
outsidePress: typeof normalizable == "boolean" ? normalizable : (_normalizable$outside = normalizable?.outsidePress) != null ? _normalizable$outside : !0
|
|
5581
5380
|
};
|
|
5582
5381
|
};
|
|
5583
5382
|
function useDismiss(context, props) {
|
|
@@ -5597,9 +5396,7 @@ function useDismiss(context, props) {
|
|
|
5597
5396
|
ancestorScroll = !1,
|
|
5598
5397
|
bubbles,
|
|
5599
5398
|
capture
|
|
5600
|
-
} = props, tree = useFloatingTree(), outsidePressFn = useEffectEvent(typeof unstable_outsidePress == "function" ? unstable_outsidePress : () => !1),
|
|
5601
|
-
outsidePress = typeof unstable_outsidePress == "function" ? outsidePressFn : unstable_outsidePress, insideReactTreeRef = React.useRef(!1), endedOrStartedInsideRef = React.
|
|
5602
|
-
useRef(!1), {
|
|
5399
|
+
} = props, tree = useFloatingTree(), outsidePressFn = useEffectEvent(typeof unstable_outsidePress == "function" ? unstable_outsidePress : () => !1), outsidePress = typeof unstable_outsidePress == "function" ? outsidePressFn : unstable_outsidePress, insideReactTreeRef = React.useRef(!1), endedOrStartedInsideRef = React.useRef(!1), {
|
|
5603
5400
|
escapeKey: escapeKeyBubbles,
|
|
5604
5401
|
outsidePress: outsidePressBubbles
|
|
5605
5402
|
} = normalizeProp(bubbles), {
|
|
@@ -5609,8 +5406,7 @@ function useDismiss(context, props) {
|
|
|
5609
5406
|
var _dataRef$current$floa;
|
|
5610
5407
|
if (!open || !enabled || !escapeKey || event.key !== "Escape")
|
|
5611
5408
|
return;
|
|
5612
|
-
const nodeId = (_dataRef$current$floa = dataRef.current.floatingContext) == null ? void 0 : _dataRef$current$floa.nodeId, children = tree ? getChildren(
|
|
5613
|
-
tree.nodesRef.current, nodeId) : [];
|
|
5409
|
+
const nodeId = (_dataRef$current$floa = dataRef.current.floatingContext) == null ? void 0 : _dataRef$current$floa.nodeId, children = tree ? getChildren(tree.nodesRef.current, nodeId) : [];
|
|
5614
5410
|
if (!escapeKeyBubbles && (event.stopPropagation(), children.length > 0)) {
|
|
5615
5411
|
let shouldDismiss = !0;
|
|
5616
5412
|
if (children.forEach((child) => {
|
|
@@ -5635,8 +5431,7 @@ function useDismiss(context, props) {
|
|
|
5635
5431
|
const insideReactTree = insideReactTreeRef.current;
|
|
5636
5432
|
insideReactTreeRef.current = !1;
|
|
5637
5433
|
const endedOrStartedInside = endedOrStartedInsideRef.current;
|
|
5638
|
-
if (endedOrStartedInsideRef.current = !1, outsidePressEvent === "click" && endedOrStartedInside || insideReactTree || typeof outsidePress == "
|
|
5639
|
-
tion" && !outsidePress(event))
|
|
5434
|
+
if (endedOrStartedInsideRef.current = !1, outsidePressEvent === "click" && endedOrStartedInside || insideReactTree || typeof outsidePress == "function" && !outsidePress(event))
|
|
5640
5435
|
return;
|
|
5641
5436
|
const target = getTarget(event), inertSelector = "[" + createAttribute("inert") + "]", markers = getDocument(elements.floating).querySelectorAll(inertSelector);
|
|
5642
5437
|
let targetRootAncestor = isElement(target) ? target : null;
|
|
@@ -5652,15 +5447,12 @@ tion" && !outsidePress(event))
|
|
|
5652
5447
|
Array.from(markers).every((marker) => !contains(targetRootAncestor, marker)))
|
|
5653
5448
|
return;
|
|
5654
5449
|
if (isHTMLElement(target) && floating) {
|
|
5655
|
-
const canScrollX = target.clientWidth > 0 && target.scrollWidth > target.clientWidth, canScrollY = target.clientHeight > 0 && target.scrollHeight >
|
|
5656
|
-
target.clientHeight;
|
|
5450
|
+
const canScrollX = target.clientWidth > 0 && target.scrollWidth > target.clientWidth, canScrollY = target.clientHeight > 0 && target.scrollHeight > target.clientHeight;
|
|
5657
5451
|
let xCond = canScrollY && event.offsetX > target.clientWidth;
|
|
5658
|
-
if (canScrollY && getComputedStyle$1(target).direction === "rtl" && (xCond = event.offsetX <= target.offsetWidth - target.clientWidth), xCond ||
|
|
5659
|
-
canScrollX && event.offsetY > target.clientHeight)
|
|
5452
|
+
if (canScrollY && getComputedStyle$1(target).direction === "rtl" && (xCond = event.offsetX <= target.offsetWidth - target.clientWidth), xCond || canScrollX && event.offsetY > target.clientHeight)
|
|
5660
5453
|
return;
|
|
5661
5454
|
}
|
|
5662
|
-
const nodeId = (_dataRef$current$floa2 = dataRef.current.floatingContext) == null ? void 0 : _dataRef$current$floa2.nodeId, targetIsInsideChildren = tree &&
|
|
5663
|
-
getChildren(tree.nodesRef.current, nodeId).some((node) => {
|
|
5455
|
+
const nodeId = (_dataRef$current$floa2 = dataRef.current.floatingContext) == null ? void 0 : _dataRef$current$floa2.nodeId, targetIsInsideChildren = tree && getChildren(tree.nodesRef.current, nodeId).some((node) => {
|
|
5664
5456
|
var _node$context;
|
|
5665
5457
|
return isEventTargetWithin(event, (_node$context = node.context) == null ? void 0 : _node$context.elements.floating);
|
|
5666
5458
|
});
|
|
@@ -5695,12 +5487,9 @@ tion" && !outsidePress(event))
|
|
|
5695
5487
|
onOpenChange(!1, event, "ancestor-scroll");
|
|
5696
5488
|
}
|
|
5697
5489
|
const doc = getDocument(elements.floating);
|
|
5698
|
-
escapeKey && doc.addEventListener("keydown", escapeKeyCapture ? closeOnEscapeKeyDownCapture : closeOnEscapeKeyDown, escapeKeyCapture), outsidePress &&
|
|
5699
|
-
doc.addEventListener(outsidePressEvent, outsidePressCapture ? closeOnPressOutsideCapture : closeOnPressOutside, outsidePressCapture);
|
|
5490
|
+
escapeKey && doc.addEventListener("keydown", escapeKeyCapture ? closeOnEscapeKeyDownCapture : closeOnEscapeKeyDown, escapeKeyCapture), outsidePress && doc.addEventListener(outsidePressEvent, outsidePressCapture ? closeOnPressOutsideCapture : closeOnPressOutside, outsidePressCapture);
|
|
5700
5491
|
let ancestors = [];
|
|
5701
|
-
return ancestorScroll && (isElement(elements.domReference) && (ancestors = getOverflowAncestors(elements.domReference)), isElement(elements.floating) &&
|
|
5702
|
-
(ancestors = ancestors.concat(getOverflowAncestors(elements.floating))), !isElement(elements.reference) && elements.reference && elements.reference.
|
|
5703
|
-
contextElement && (ancestors = ancestors.concat(getOverflowAncestors(elements.reference.contextElement)))), ancestors = ancestors.filter((ancestor) => {
|
|
5492
|
+
return ancestorScroll && (isElement(elements.domReference) && (ancestors = getOverflowAncestors(elements.domReference)), isElement(elements.floating) && (ancestors = ancestors.concat(getOverflowAncestors(elements.floating))), !isElement(elements.reference) && elements.reference && elements.reference.contextElement && (ancestors = ancestors.concat(getOverflowAncestors(elements.reference.contextElement)))), ancestors = ancestors.filter((ancestor) => {
|
|
5704
5493
|
var _doc$defaultView;
|
|
5705
5494
|
return ancestor !== ((_doc$defaultView = doc.defaultView) == null ? void 0 : _doc$defaultView.visualViewport);
|
|
5706
5495
|
}), ancestors.forEach((ancestor) => {
|
|
@@ -5708,15 +5497,11 @@ tion" && !outsidePress(event))
|
|
|
5708
5497
|
passive: !0
|
|
5709
5498
|
});
|
|
5710
5499
|
}), () => {
|
|
5711
|
-
escapeKey && doc.removeEventListener("keydown", escapeKeyCapture ? closeOnEscapeKeyDownCapture : closeOnEscapeKeyDown, escapeKeyCapture), outsidePress &&
|
|
5712
|
-
doc.removeEventListener(outsidePressEvent, outsidePressCapture ? closeOnPressOutsideCapture : closeOnPressOutside, outsidePressCapture), ancestors.
|
|
5713
|
-
forEach((ancestor) => {
|
|
5500
|
+
escapeKey && doc.removeEventListener("keydown", escapeKeyCapture ? closeOnEscapeKeyDownCapture : closeOnEscapeKeyDown, escapeKeyCapture), outsidePress && doc.removeEventListener(outsidePressEvent, outsidePressCapture ? closeOnPressOutsideCapture : closeOnPressOutside, outsidePressCapture), ancestors.forEach((ancestor) => {
|
|
5714
5501
|
ancestor.removeEventListener("scroll", onScroll);
|
|
5715
5502
|
});
|
|
5716
5503
|
};
|
|
5717
|
-
}, [dataRef, elements, escapeKey, outsidePress, outsidePressEvent, open, onOpenChange, ancestorScroll, enabled, escapeKeyBubbles, outsidePressBubbles,
|
|
5718
|
-
closeOnEscapeKeyDown, escapeKeyCapture, closeOnEscapeKeyDownCapture, closeOnPressOutside, outsidePressCapture, closeOnPressOutsideCapture]), React.useEffect(
|
|
5719
|
-
() => {
|
|
5504
|
+
}, [dataRef, elements, escapeKey, outsidePress, outsidePressEvent, open, onOpenChange, ancestorScroll, enabled, escapeKeyBubbles, outsidePressBubbles, closeOnEscapeKeyDown, escapeKeyCapture, closeOnEscapeKeyDownCapture, closeOnPressOutside, outsidePressCapture, closeOnPressOutsideCapture]), React.useEffect(() => {
|
|
5720
5505
|
insideReactTreeRef.current = !1;
|
|
5721
5506
|
}, [outsidePress, outsidePressEvent]);
|
|
5722
5507
|
const reference = React.useMemo(() => ({
|
|
@@ -5746,8 +5531,7 @@ function useFloatingRootContext(options) {
|
|
|
5746
5531
|
open = !1,
|
|
5747
5532
|
onOpenChange: onOpenChangeProp,
|
|
5748
5533
|
elements: elementsProp
|
|
5749
|
-
} = options, floatingId = useId(), dataRef = React.useRef({}), [events] = React.useState(() => createPubSub()), nested = useFloatingParentNodeId() !=
|
|
5750
|
-
null, [positionReference, setPositionReference] = React.useState(elementsProp.reference), onOpenChange = useEffectEvent((open2, event, reason) => {
|
|
5534
|
+
} = options, floatingId = useId(), dataRef = React.useRef({}), [events] = React.useState(() => createPubSub()), nested = useFloatingParentNodeId() != null, [positionReference, setPositionReference] = React.useState(elementsProp.reference), onOpenChange = useEffectEvent((open2, event, reason) => {
|
|
5751
5535
|
dataRef.current.openEvent = open2 ? event : void 0, events.emit("openchange", {
|
|
5752
5536
|
open: open2,
|
|
5753
5537
|
event,
|
|
@@ -5782,9 +5566,7 @@ function useFloating(options) {
|
|
|
5782
5566
|
floating: null,
|
|
5783
5567
|
...options.elements
|
|
5784
5568
|
}
|
|
5785
|
-
}), rootContext = options.rootContext || internalRootContext, computedElements = rootContext.elements, [_domReference, setDomReference] = React.useState(
|
|
5786
|
-
null), [positionReference, _setPositionReference] = React.useState(null), domReference = computedElements?.reference || _domReference, domReferenceRef = React.
|
|
5787
|
-
useRef(null), tree = useFloatingTree();
|
|
5569
|
+
}), rootContext = options.rootContext || internalRootContext, computedElements = rootContext.elements, [_domReference, setDomReference] = React.useState(null), [positionReference, _setPositionReference] = React.useState(null), domReference = computedElements?.reference || _domReference, domReferenceRef = React.useRef(null), tree = useFloatingTree();
|
|
5788
5570
|
index(() => {
|
|
5789
5571
|
domReference && (domReferenceRef.current = domReference);
|
|
5790
5572
|
}, [domReference]);
|
|
@@ -5803,8 +5585,7 @@ function useFloating(options) {
|
|
|
5803
5585
|
} : node;
|
|
5804
5586
|
_setPositionReference(computedPositionReference), position.refs.setReference(computedPositionReference);
|
|
5805
5587
|
}, [position.refs]), setReference = React.useCallback((node) => {
|
|
5806
|
-
(isElement(node) || node === null) && (domReferenceRef.current = node, setDomReference(node)), (isElement(position.refs.reference.current) || position.
|
|
5807
|
-
refs.reference.current === null || // Don't allow setting virtual elements using the old technique back to
|
|
5588
|
+
(isElement(node) || node === null) && (domReferenceRef.current = node, setDomReference(node)), (isElement(position.refs.reference.current) || position.refs.reference.current === null || // Don't allow setting virtual elements using the old technique back to
|
|
5808
5589
|
// `null` to support `positionReference` + an unstable `reference`
|
|
5809
5590
|
// callback ref.
|
|
5810
5591
|
node !== null && !isElement(node)) && position.refs.setReference(node);
|
|
@@ -5850,8 +5631,7 @@ function useFocus(context, props) {
|
|
|
5850
5631
|
if (!enabled) return;
|
|
5851
5632
|
const win = getWindow(elements.domReference);
|
|
5852
5633
|
function onBlur() {
|
|
5853
|
-
!open && isHTMLElement(elements.domReference) && elements.domReference === activeElement(getDocument(elements.domReference)) && (blockFocusRef.current =
|
|
5854
|
-
!0);
|
|
5634
|
+
!open && isHTMLElement(elements.domReference) && elements.domReference === activeElement(getDocument(elements.domReference)) && (blockFocusRef.current = !0);
|
|
5855
5635
|
}
|
|
5856
5636
|
function onKeyDown() {
|
|
5857
5637
|
keyboardModalityRef.current = !0;
|
|
@@ -5895,13 +5675,11 @@ function useFocus(context, props) {
|
|
|
5895
5675
|
},
|
|
5896
5676
|
onBlur(event) {
|
|
5897
5677
|
blockFocusRef.current = !1;
|
|
5898
|
-
const relatedTarget = event.relatedTarget, nativeEvent = event.nativeEvent, movedToFocusGuard = isElement(relatedTarget) && relatedTarget.hasAttribute(
|
|
5899
|
-
createAttribute("focus-guard")) && relatedTarget.getAttribute("data-type") === "outside";
|
|
5678
|
+
const relatedTarget = event.relatedTarget, nativeEvent = event.nativeEvent, movedToFocusGuard = isElement(relatedTarget) && relatedTarget.hasAttribute(createAttribute("focus-guard")) && relatedTarget.getAttribute("data-type") === "outside";
|
|
5900
5679
|
timeoutRef.current = window.setTimeout(() => {
|
|
5901
5680
|
var _dataRef$current$floa;
|
|
5902
5681
|
const activeEl = activeElement(elements.domReference ? elements.domReference.ownerDocument : document);
|
|
5903
|
-
!relatedTarget && activeEl === elements.domReference || contains((_dataRef$current$floa = dataRef.current.floatingContext) == null ? void 0 : _dataRef$current$floa.
|
|
5904
|
-
refs.floating.current, activeEl) || contains(elements.domReference, activeEl) || movedToFocusGuard || onOpenChange(!1, nativeEvent, "focus");
|
|
5682
|
+
!relatedTarget && activeEl === elements.domReference || contains((_dataRef$current$floa = dataRef.current.floatingContext) == null ? void 0 : _dataRef$current$floa.refs.floating.current, activeEl) || contains(elements.domReference, activeEl) || movedToFocusGuard || onOpenChange(!1, nativeEvent, "focus");
|
|
5905
5683
|
});
|
|
5906
5684
|
}
|
|
5907
5685
|
}), [dataRef, elements.domReference, onOpenChange, visibleOnly]);
|
|
@@ -5948,8 +5726,7 @@ function mergeProps(userProps, propsList, elementKey) {
|
|
|
5948
5726
|
}
|
|
5949
5727
|
function useInteractions(propsList) {
|
|
5950
5728
|
propsList === void 0 && (propsList = []);
|
|
5951
|
-
const referenceDeps = propsList.map((key) => key?.reference), floatingDeps = propsList.map((key) => key?.floating), itemDeps = propsList.map((key) => key?.
|
|
5952
|
-
item), getReferenceProps = React.useCallback(
|
|
5729
|
+
const referenceDeps = propsList.map((key) => key?.reference), floatingDeps = propsList.map((key) => key?.floating), itemDeps = propsList.map((key) => key?.item), getReferenceProps = React.useCallback(
|
|
5953
5730
|
(userProps) => mergeProps(userProps, propsList, "reference"),
|
|
5954
5731
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
5955
5732
|
referenceDeps
|
|
@@ -5978,8 +5755,7 @@ function useRole(context, props) {
|
|
|
5978
5755
|
} = context, {
|
|
5979
5756
|
enabled = !0,
|
|
5980
5757
|
role = "dialog"
|
|
5981
|
-
} = props, ariaRole = (_componentRoleToAriaR = componentRoleToAriaRoleMap.get(role)) != null ? _componentRoleToAriaR : role, referenceId = useId(), isNested = useFloatingParentNodeId() !=
|
|
5982
|
-
null, reference = React.useMemo(() => ariaRole === "tooltip" || role === "label" ? {
|
|
5758
|
+
} = props, ariaRole = (_componentRoleToAriaR = componentRoleToAriaRoleMap.get(role)) != null ? _componentRoleToAriaR : role, referenceId = useId(), isNested = useFloatingParentNodeId() != null, reference = React.useMemo(() => ariaRole === "tooltip" || role === "label" ? {
|
|
5983
5759
|
["aria-" + (role === "label" ? "labelledby" : "describedby")]: open ? floatingId : void 0
|
|
5984
5760
|
} : {
|
|
5985
5761
|
"aria-expanded": open ? "true" : "false",
|
|
@@ -6054,12 +5830,10 @@ function getFloatingPosition(dir, position) {
|
|
|
6054
5830
|
return position;
|
|
6055
5831
|
}
|
|
6056
5832
|
function horizontalSide(placement, arrowY, arrowOffset, arrowPosition) {
|
|
6057
|
-
return placement === "center" || arrowPosition === "center" ? { top: arrowY } : placement === "end" ? { bottom: arrowOffset } : placement === "start" ?
|
|
6058
|
-
{ top: arrowOffset } : {};
|
|
5833
|
+
return placement === "center" || arrowPosition === "center" ? { top: arrowY } : placement === "end" ? { bottom: arrowOffset } : placement === "start" ? { top: arrowOffset } : {};
|
|
6059
5834
|
}
|
|
6060
5835
|
function verticalSide(placement, arrowX, arrowOffset, arrowPosition, dir) {
|
|
6061
|
-
return placement === "center" || arrowPosition === "center" ? { left: arrowX } : placement === "end" ? { [dir === "ltr" ? "right" : "left"]: arrowOffset } :
|
|
6062
|
-
placement === "start" ? { [dir === "ltr" ? "left" : "right"]: arrowOffset } : {};
|
|
5836
|
+
return placement === "center" || arrowPosition === "center" ? { left: arrowX } : placement === "end" ? { [dir === "ltr" ? "right" : "left"]: arrowOffset } : placement === "start" ? { [dir === "ltr" ? "left" : "right"]: arrowOffset } : {};
|
|
6063
5837
|
}
|
|
6064
5838
|
const radiusByFloatingSide = {
|
|
6065
5839
|
bottom: "borderTopLeftRadius",
|
|
@@ -6167,13 +5941,11 @@ FocusTrapInitialFocus.displayName = "@mantine/core/FocusTrapInitialFocus";
|
|
|
6167
5941
|
FocusTrap.InitialFocus = FocusTrapInitialFocus;
|
|
6168
5942
|
function createPortalNode(props) {
|
|
6169
5943
|
const node = document.createElement("div");
|
|
6170
|
-
return node.setAttribute("data-portal", "true"), typeof props.className == "string" && node.classList.add(...props.className.split(" ").filter(Boolean)),
|
|
6171
|
-
typeof props.style == "object" && Object.assign(node.style, props.style), typeof props.id == "string" && node.setAttribute("id", props.id), node;
|
|
5944
|
+
return node.setAttribute("data-portal", "true"), typeof props.className == "string" && node.classList.add(...props.className.split(" ").filter(Boolean)), typeof props.style == "object" && Object.assign(node.style, props.style), typeof props.id == "string" && node.setAttribute("id", props.id), node;
|
|
6172
5945
|
}
|
|
6173
5946
|
const defaultProps$1i = {}, Portal = forwardRef((props, ref) => {
|
|
6174
5947
|
const { children, target, ...others } = useProps("Portal", defaultProps$1i, props), [mounted, setMounted] = useState(!1), nodeRef = useRef(null);
|
|
6175
|
-
return useIsomorphicEffect(() => (setMounted(!0), nodeRef.current = target ? typeof target == "string" ? document.querySelector(target) : target : createPortalNode(
|
|
6176
|
-
others), assignRef(ref, nodeRef.current), !target && nodeRef.current && document.body.appendChild(nodeRef.current), () => {
|
|
5948
|
+
return useIsomorphicEffect(() => (setMounted(!0), nodeRef.current = target ? typeof target == "string" ? document.querySelector(target) : target : createPortalNode(others), assignRef(ref, nodeRef.current), !target && nodeRef.current && document.body.appendChild(nodeRef.current), () => {
|
|
6177
5949
|
!target && nodeRef.current && document.body.removeChild(nodeRef.current);
|
|
6178
5950
|
}), [target]), !mounted || !nodeRef.current ? null : createPortal(/* @__PURE__ */ jsx(Fragment$1, { children }), nodeRef.current);
|
|
6179
5951
|
});
|
|
@@ -6340,19 +6112,15 @@ function useTransition({
|
|
|
6340
6112
|
enterDelay,
|
|
6341
6113
|
exitDelay
|
|
6342
6114
|
}) {
|
|
6343
|
-
const theme = useMantineTheme(), shouldReduceMotion = useReducedMotion(), reduceMotion = theme.respectReducedMotion ? shouldReduceMotion : !1, [transitionDuration,
|
|
6344
|
-
setTransitionDuration] = useState(reduceMotion ? 0 : duration), [transitionStatus, setStatus] = useState(mounted ? "entered" : "exited"), transitionTimeoutRef = useRef(
|
|
6345
|
-
-1), delayTimeoutRef = useRef(-1), rafRef = useRef(-1), handleStateChange = (shouldMount) => {
|
|
6115
|
+
const theme = useMantineTheme(), shouldReduceMotion = useReducedMotion(), reduceMotion = theme.respectReducedMotion ? shouldReduceMotion : !1, [transitionDuration, setTransitionDuration] = useState(reduceMotion ? 0 : duration), [transitionStatus, setStatus] = useState(mounted ? "entered" : "exited"), transitionTimeoutRef = useRef(-1), delayTimeoutRef = useRef(-1), rafRef = useRef(-1), handleStateChange = (shouldMount) => {
|
|
6346
6116
|
const preHandler = shouldMount ? onEnter : onExit, handler = shouldMount ? onEntered : onExited;
|
|
6347
6117
|
window.clearTimeout(transitionTimeoutRef.current);
|
|
6348
6118
|
const newTransitionDuration = reduceMotion ? 0 : shouldMount ? duration : exitDuration;
|
|
6349
|
-
setTransitionDuration(newTransitionDuration), newTransitionDuration === 0 ? (typeof preHandler == "function" && preHandler(), typeof handler == "
|
|
6350
|
-
unction" && handler(), setStatus(shouldMount ? "entered" : "exited")) : rafRef.current = requestAnimationFrame(() => {
|
|
6119
|
+
setTransitionDuration(newTransitionDuration), newTransitionDuration === 0 ? (typeof preHandler == "function" && preHandler(), typeof handler == "function" && handler(), setStatus(shouldMount ? "entered" : "exited")) : rafRef.current = requestAnimationFrame(() => {
|
|
6351
6120
|
ReactDOM__default.flushSync(() => {
|
|
6352
6121
|
setStatus(shouldMount ? "pre-entering" : "pre-exiting");
|
|
6353
6122
|
}), rafRef.current = requestAnimationFrame(() => {
|
|
6354
|
-
typeof preHandler == "function" && preHandler(), setStatus(shouldMount ? "entering" : "exiting"), transitionTimeoutRef.current = window.setTimeout(
|
|
6355
|
-
() => {
|
|
6123
|
+
typeof preHandler == "function" && preHandler(), setStatus(shouldMount ? "entering" : "exiting"), transitionTimeoutRef.current = window.setTimeout(() => {
|
|
6356
6124
|
typeof handler == "function" && handler(), setStatus(shouldMount ? "entered" : "exited");
|
|
6357
6125
|
}, newTransitionDuration);
|
|
6358
6126
|
});
|
|
@@ -6409,8 +6177,7 @@ function Transition({
|
|
|
6409
6177
|
enterDelay,
|
|
6410
6178
|
exitDelay
|
|
6411
6179
|
});
|
|
6412
|
-
return transitionDuration === 0 ? mounted ? /* @__PURE__ */ jsx(Fragment$1, { children: children({}) }) : keepMounted ? children({ display: "none" }) :
|
|
6413
|
-
null : transitionStatus === "exited" ? keepMounted ? children({ display: "none" }) : null : /* @__PURE__ */ jsx(Fragment$1, { children: children(
|
|
6180
|
+
return transitionDuration === 0 ? mounted ? /* @__PURE__ */ jsx(Fragment$1, { children: children({}) }) : keepMounted ? children({ display: "none" }) : null : transitionStatus === "exited" ? keepMounted ? children({ display: "none" }) : null : /* @__PURE__ */ jsx(Fragment$1, { children: children(
|
|
6414
6181
|
getTransitionStyles({
|
|
6415
6182
|
transition,
|
|
6416
6183
|
duration: transitionDuration,
|
|
@@ -6519,11 +6286,9 @@ const defaultProps$1g = {
|
|
|
6519
6286
|
);
|
|
6520
6287
|
if (!isElement$1(children))
|
|
6521
6288
|
throw new Error(
|
|
6522
|
-
"Popover.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values
|
|
6523
|
-
are not supported"
|
|
6289
|
+
"Popover.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported"
|
|
6524
6290
|
);
|
|
6525
|
-
const forwardedProps = others, ctx = usePopoverContext(), targetRef = useMergedRef(ctx.reference, children.ref, ref), accessibleProps = ctx.withRoles ?
|
|
6526
|
-
{
|
|
6291
|
+
const forwardedProps = others, ctx = usePopoverContext(), targetRef = useMergedRef(ctx.reference, children.ref, ref), accessibleProps = ctx.withRoles ? {
|
|
6527
6292
|
"aria-haspopup": popupType,
|
|
6528
6293
|
"aria-expanded": ctx.opened,
|
|
6529
6294
|
"aria-controls": ctx.getDropdownId(),
|
|
@@ -6575,15 +6340,13 @@ function getPopoverMiddlewares(options, getFloating) {
|
|
|
6575
6340
|
const middlewaresOptions = getDefaultMiddlewares(options.middlewares), middlewares = [offset(options.offset)];
|
|
6576
6341
|
return middlewaresOptions.shift && middlewares.push(
|
|
6577
6342
|
shift(
|
|
6578
|
-
typeof middlewaresOptions.shift == "boolean" ? { limiter: limitShift(), padding: 5 } : { limiter: limitShift(), padding: 5, ...middlewaresOptions.
|
|
6579
|
-
shift }
|
|
6343
|
+
typeof middlewaresOptions.shift == "boolean" ? { limiter: limitShift(), padding: 5 } : { limiter: limitShift(), padding: 5, ...middlewaresOptions.shift }
|
|
6580
6344
|
)
|
|
6581
6345
|
), middlewaresOptions.flip && middlewares.push(
|
|
6582
6346
|
typeof middlewaresOptions.flip == "boolean" ? flip() : flip(middlewaresOptions.flip)
|
|
6583
6347
|
), middlewaresOptions.inline && middlewares.push(
|
|
6584
6348
|
typeof middlewaresOptions.inline == "boolean" ? inline() : inline(middlewaresOptions.inline)
|
|
6585
|
-
), middlewares.push(arrow({ element: options.arrowRef, padding: options.arrowOffset })), (middlewaresOptions.size || options.width === "target") && middlewares.
|
|
6586
|
-
push(
|
|
6349
|
+
), middlewares.push(arrow({ element: options.arrowRef, padding: options.arrowOffset })), (middlewaresOptions.size || options.width === "target") && middlewares.push(
|
|
6587
6350
|
size({
|
|
6588
6351
|
...typeof middlewaresOptions.size == "boolean" ? {} : middlewaresOptions.size,
|
|
6589
6352
|
apply({ rects, availableWidth, availableHeight }) {
|
|
@@ -6708,8 +6471,7 @@ function Popover(_props) {
|
|
|
6708
6471
|
rootSelector: "dropdown",
|
|
6709
6472
|
vars,
|
|
6710
6473
|
varsResolver: varsResolver$A
|
|
6711
|
-
}), arrowRef = useRef(null), [targetNode, setTargetNode] = useState(null), [dropdownNode, setDropdownNode] = useState(null), { dir } = useDirection(),
|
|
6712
|
-
uid = useId$1(id), popover = usePopover({
|
|
6474
|
+
}), arrowRef = useRef(null), [targetNode, setTargetNode] = useState(null), [dropdownNode, setDropdownNode] = useState(null), { dir } = useDirection(), uid = useId$1(id), popover = usePopover({
|
|
6713
6475
|
middlewares,
|
|
6714
6476
|
width,
|
|
6715
6477
|
position: getFloatingPosition(dir, position),
|
|
@@ -6793,20 +6555,16 @@ Popover.Target = PopoverTarget;
|
|
|
6793
6555
|
Popover.Dropdown = PopoverDropdown;
|
|
6794
6556
|
Popover.displayName = "@mantine/core/Popover";
|
|
6795
6557
|
Popover.extend = (input) => input;
|
|
6796
|
-
var __default__$w = { root: "m_5ae2e3c", barsLoader: "m_7a2bd4cd", bar: "m_870bb79", "bars-loader-animation": "m_5d2b3b9d", dotsLoader: "m_4e3f22d7", dot: "
|
|
6797
|
-
|
|
6798
|
-
const Bars = forwardRef(({ className, ...others }, ref) => /* @__PURE__ */ jsxs(Box, { component: "span", className: clsx(__default__$w.barsLoader, className),
|
|
6799
|
-
...others, ref, children: [
|
|
6558
|
+
var __default__$w = { root: "m_5ae2e3c", barsLoader: "m_7a2bd4cd", bar: "m_870bb79", "bars-loader-animation": "m_5d2b3b9d", dotsLoader: "m_4e3f22d7", dot: "m_870c4af", "loader-dots-animation": "m_aac34a1", ovalLoader: "m_b34414df", "oval-loader-animation": "m_f8e89c4b" };
|
|
6559
|
+
const Bars = forwardRef(({ className, ...others }, ref) => /* @__PURE__ */ jsxs(Box, { component: "span", className: clsx(__default__$w.barsLoader, className), ...others, ref, children: [
|
|
6800
6560
|
/* @__PURE__ */ jsx("span", { className: __default__$w.bar }),
|
|
6801
6561
|
/* @__PURE__ */ jsx("span", { className: __default__$w.bar }),
|
|
6802
6562
|
/* @__PURE__ */ jsx("span", { className: __default__$w.bar })
|
|
6803
|
-
] })), Dots = forwardRef(({ className, ...others }, ref) => /* @__PURE__ */ jsxs(Box, { component: "span", className: clsx(__default__$w.dotsLoader, className),
|
|
6804
|
-
...others, ref, children: [
|
|
6563
|
+
] })), Dots = forwardRef(({ className, ...others }, ref) => /* @__PURE__ */ jsxs(Box, { component: "span", className: clsx(__default__$w.dotsLoader, className), ...others, ref, children: [
|
|
6805
6564
|
/* @__PURE__ */ jsx("span", { className: __default__$w.dot }),
|
|
6806
6565
|
/* @__PURE__ */ jsx("span", { className: __default__$w.dot }),
|
|
6807
6566
|
/* @__PURE__ */ jsx("span", { className: __default__$w.dot })
|
|
6808
|
-
] })), Oval = forwardRef(({ className, ...others }, ref) => /* @__PURE__ */ jsx(Box, { component: "span", className: clsx(__default__$w.ovalLoader, className),
|
|
6809
|
-
...others, ref })), defaultLoaders = {
|
|
6567
|
+
] })), Oval = forwardRef(({ className, ...others }, ref) => /* @__PURE__ */ jsx(Box, { component: "span", className: clsx(__default__$w.ovalLoader, className), ...others, ref })), defaultLoaders = {
|
|
6810
6568
|
bars: Bars,
|
|
6811
6569
|
oval: Oval,
|
|
6812
6570
|
dots: Dots
|
|
@@ -6970,9 +6728,7 @@ const defaultProps$1c = {}, varsResolver$x = (theme, { size: size2, radius, vari
|
|
|
6970
6728
|
ref,
|
|
6971
6729
|
mod: [{ loading, disabled: disabled || dataDisabled }, mod],
|
|
6972
6730
|
children: [
|
|
6973
|
-
/* @__PURE__ */ jsx(Transition, { mounted: !!loading, transition: "slide-down", duration: 150, children: (transitionStyles) => /* @__PURE__ */ jsx(
|
|
6974
|
-
Box, { component: "span", ...getStyles2("loader", { style: transitionStyles }), "aria-hidden": !0, children: /* @__PURE__ */ jsx(Loader, { color: "\
|
|
6975
|
-
var(--ai-color)", size: "calc(var(--ai-size) * 0.55)", ...loaderProps }) }) }),
|
|
6731
|
+
/* @__PURE__ */ jsx(Transition, { mounted: !!loading, transition: "slide-down", duration: 150, children: (transitionStyles) => /* @__PURE__ */ jsx(Box, { component: "span", ...getStyles2("loader", { style: transitionStyles }), "aria-hidden": !0, children: /* @__PURE__ */ jsx(Loader, { color: "var(--ai-color)", size: "calc(var(--ai-size) * 0.55)", ...loaderProps }) }) }),
|
|
6976
6732
|
/* @__PURE__ */ jsx(Box, { component: "span", mod: { loading }, ...getStyles2("icon"), children })
|
|
6977
6733
|
]
|
|
6978
6734
|
}
|
|
@@ -6994,10 +6750,7 @@ const CloseIcon = forwardRef(
|
|
|
6994
6750
|
children: /* @__PURE__ */ jsx(
|
|
6995
6751
|
"path",
|
|
6996
6752
|
{
|
|
6997
|
-
d: "M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3
|
|
6998
|
-
2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.9\
|
|
6999
|
-
9391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.\
|
|
7000
|
-
7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",
|
|
6753
|
+
d: "M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",
|
|
7001
6754
|
fill: "currentColor",
|
|
7002
6755
|
fillRule: "evenodd",
|
|
7003
6756
|
clipRule: "evenodd"
|
|
@@ -7101,8 +6854,7 @@ const defaultProps$1a = {
|
|
|
7101
6854
|
__size,
|
|
7102
6855
|
mod,
|
|
7103
6856
|
...others
|
|
7104
|
-
} = props, filteredChildren = filterFalsyChildren(children), childrenCount = filteredChildren.length, resolvedGap = getSpacing(gap ?? "md"), stylesCtx = {
|
|
7105
|
-
childWidth: `calc(${100 / childrenCount}% - (${resolvedGap} - ${resolvedGap} / ${childrenCount}))` }, getStyles2 = useStyles({
|
|
6857
|
+
} = props, filteredChildren = filterFalsyChildren(children), childrenCount = filteredChildren.length, resolvedGap = getSpacing(gap ?? "md"), stylesCtx = { childWidth: `calc(${100 / childrenCount}% - (${resolvedGap} - ${resolvedGap} / ${childrenCount}))` }, getStyles2 = useStyles({
|
|
7106
6858
|
name: "Group",
|
|
7107
6859
|
props,
|
|
7108
6860
|
stylesCtx,
|
|
@@ -7180,9 +6932,7 @@ const [ModalBaseProvider, useModalBaseContext] = createSafeContext(
|
|
|
7180
6932
|
);
|
|
7181
6933
|
function useLockScroll({ opened, transitionDuration }) {
|
|
7182
6934
|
const [shouldLockScroll, setShouldLockScroll] = useState(opened), timeout = useRef(), _transitionDuration = useReducedMotion() ? 0 : transitionDuration;
|
|
7183
|
-
return useEffect(() => (opened ? (setShouldLockScroll(!0), window.clearTimeout(timeout.current)) : _transitionDuration === 0 ? setShouldLockScroll(!1) :
|
|
7184
|
-
timeout.current = window.setTimeout(() => setShouldLockScroll(!1), _transitionDuration), () => window.clearTimeout(timeout.current)), [opened, _transitionDuration]),
|
|
7185
|
-
shouldLockScroll;
|
|
6935
|
+
return useEffect(() => (opened ? (setShouldLockScroll(!0), window.clearTimeout(timeout.current)) : _transitionDuration === 0 ? setShouldLockScroll(!1) : timeout.current = window.setTimeout(() => setShouldLockScroll(!1), _transitionDuration), () => window.clearTimeout(timeout.current)), [opened, _transitionDuration]), shouldLockScroll;
|
|
7186
6936
|
}
|
|
7187
6937
|
function useModal({
|
|
7188
6938
|
id,
|
|
@@ -7193,8 +6943,7 @@ function useModal({
|
|
|
7193
6943
|
onClose,
|
|
7194
6944
|
returnFocus
|
|
7195
6945
|
}) {
|
|
7196
|
-
const _id = useId$1(id), [titleMounted, setTitleMounted] = useState(!1), [bodyMounted, setBodyMounted] = useState(!1), transitionDuration = typeof transitionProps?.
|
|
7197
|
-
duration == "number" ? transitionProps?.duration : 200, shouldLockScroll = useLockScroll({ opened, transitionDuration });
|
|
6946
|
+
const _id = useId$1(id), [titleMounted, setTitleMounted] = useState(!1), [bodyMounted, setBodyMounted] = useState(!1), transitionDuration = typeof transitionProps?.duration == "number" ? transitionProps?.duration : 200, shouldLockScroll = useLockScroll({ opened, transitionDuration });
|
|
7198
6947
|
return useWindowEvent(
|
|
7199
6948
|
"keydown",
|
|
7200
6949
|
(event) => {
|
|
@@ -7233,8 +6982,7 @@ const ModalBase = forwardRef(
|
|
|
7233
6982
|
removeScrollProps,
|
|
7234
6983
|
...others
|
|
7235
6984
|
}, ref) => {
|
|
7236
|
-
const { _id, titleMounted, bodyMounted, shouldLockScroll, setTitleMounted, setBodyMounted } = useModal({ id, transitionProps, opened, trapFocus, closeOnEscape: closeOnEscape2,
|
|
7237
|
-
onClose, returnFocus }), { key: removeScrollKey, ...otherRemoveScrollProps } = removeScrollProps || {};
|
|
6985
|
+
const { _id, titleMounted, bodyMounted, shouldLockScroll, setTitleMounted, setBodyMounted } = useModal({ id, transitionProps, opened, trapFocus, closeOnEscape: closeOnEscape2, onClose, returnFocus }), { key: removeScrollKey, ...otherRemoveScrollProps } = removeScrollProps || {};
|
|
7238
6986
|
return /* @__PURE__ */ jsx(OptionalPortal, { ...portalProps, withinPortal, children: /* @__PURE__ */ jsx(
|
|
7239
6987
|
ModalBaseProvider,
|
|
7240
6988
|
{
|
|
@@ -7429,8 +7177,7 @@ const [InputWrapperProvider, useInputWrapperContext] = createOptionalContext({
|
|
|
7429
7177
|
inputId: void 0,
|
|
7430
7178
|
labelId: void 0
|
|
7431
7179
|
});
|
|
7432
|
-
var __default__$q = { wrapper: "m_6c018570", input: "m_8fb7ebe7", section: "m_82577fc2", placeholder: "m_88bacfd0", root: "m_46b77525", label: "
|
|
7433
|
-
1311", required: "m_78a94662", error: "m_8f816625", description: "m_fe47ce59" };
|
|
7180
|
+
var __default__$q = { wrapper: "m_6c018570", input: "m_8fb7ebe7", section: "m_82577fc2", placeholder: "m_88bacfd0", root: "m_46b77525", label: "m_8fdc1311", required: "m_78a94662", error: "m_8f816625", description: "m_fe47ce59" };
|
|
7434
7181
|
const defaultProps$18 = {}, varsResolver$t = (_, { size: size2 }) => ({
|
|
7435
7182
|
description: {
|
|
7436
7183
|
"--input-description-size": size2 === void 0 ? void 0 : `calc(${getFontSize(size2)} - ${rem(2)})`
|
|
@@ -7619,8 +7366,7 @@ const defaultProps$15 = {}, InputPlaceholder = factory((_props, ref) => {
|
|
|
7619
7366
|
InputPlaceholder.classes = __default__$q;
|
|
7620
7367
|
InputPlaceholder.displayName = "@mantine/core/InputPlaceholder";
|
|
7621
7368
|
function getInputOffsets(inputWrapperOrder, { hasDescription, hasError }) {
|
|
7622
|
-
const inputIndex = inputWrapperOrder.findIndex((part) => part === "input"), aboveInput = inputWrapperOrder.slice(0, inputIndex), belowInput = inputWrapperOrder.
|
|
7623
|
-
slice(inputIndex + 1), offsetTop = hasDescription && aboveInput.includes("description") || hasError && aboveInput.includes("error");
|
|
7369
|
+
const inputIndex = inputWrapperOrder.findIndex((part) => part === "input"), aboveInput = inputWrapperOrder.slice(0, inputIndex), belowInput = inputWrapperOrder.slice(inputIndex + 1), offsetTop = hasDescription && aboveInput.includes("description") || hasError && aboveInput.includes("error");
|
|
7624
7370
|
return { offsetBottom: hasDescription && belowInput.includes("description") || hasError && belowInput.includes("error"), offsetTop };
|
|
7625
7371
|
}
|
|
7626
7372
|
const defaultProps$14 = {
|
|
@@ -7680,10 +7426,7 @@ const defaultProps$14 = {
|
|
|
7680
7426
|
size: size2,
|
|
7681
7427
|
variant,
|
|
7682
7428
|
__staticSelector
|
|
7683
|
-
}, idBase = useId$1(id), isRequired = typeof withAsterisk == "boolean" ? withAsterisk : required, errorId = errorProps?.id || `${idBase}-error`, descriptionId = descriptionProps?.
|
|
7684
|
-
id || `${idBase}-description`, inputId = idBase, hasError = !!error && typeof error != "boolean", hasDescription = !!description, _describedBy = `${hasError ?
|
|
7685
|
-
errorId : ""} ${hasDescription ? descriptionId : ""}`, describedBy = _describedBy.trim().length > 0 ? _describedBy.trim() : void 0, labelId = labelProps?.
|
|
7686
|
-
id || `${idBase}-label`, _label = label && /* @__PURE__ */ jsx(
|
|
7429
|
+
}, idBase = useId$1(id), isRequired = typeof withAsterisk == "boolean" ? withAsterisk : required, errorId = errorProps?.id || `${idBase}-error`, descriptionId = descriptionProps?.id || `${idBase}-description`, inputId = idBase, hasError = !!error && typeof error != "boolean", hasDescription = !!description, _describedBy = `${hasError ? errorId : ""} ${hasDescription ? descriptionId : ""}`, describedBy = _describedBy.trim().length > 0 ? _describedBy.trim() : void 0, labelId = labelProps?.id || `${idBase}-label`, _label = label && /* @__PURE__ */ jsx(
|
|
7687
7430
|
InputLabel,
|
|
7688
7431
|
{
|
|
7689
7432
|
labelElement,
|
|
@@ -7808,8 +7551,7 @@ const defaultProps$13 = {
|
|
|
7808
7551
|
mod,
|
|
7809
7552
|
inputSize,
|
|
7810
7553
|
...others
|
|
7811
|
-
} = props, { styleProps, rest } = extractStyleProps(others), ctx = useInputWrapperContext(), stylesCtx = { offsetBottom: ctx?.offsetBottom, offsetTop: ctx?.
|
|
7812
|
-
offsetTop }, getStyles2 = useStyles({
|
|
7554
|
+
} = props, { styleProps, rest } = extractStyleProps(others), ctx = useInputWrapperContext(), stylesCtx = { offsetBottom: ctx?.offsetBottom, offsetTop: ctx?.offsetTop }, getStyles2 = useStyles({
|
|
7813
7555
|
name: ["Input", __staticSelector],
|
|
7814
7556
|
props: __stylesApiProps || props,
|
|
7815
7557
|
classes: __default__$q,
|
|
@@ -8070,18 +7812,15 @@ function useFloatingIndicator({
|
|
|
8070
7812
|
width: targetRect.width,
|
|
8071
7813
|
height: targetRect.height
|
|
8072
7814
|
};
|
|
8073
|
-
ref.current && (ref.current.style.transform = `translateY(${position.top}px) translateX(${position.left}px)`, ref.current.style.width = `${position.
|
|
8074
|
-
width}px`, ref.current.style.height = `${position.height}px`);
|
|
7815
|
+
ref.current && (ref.current.style.transform = `translateY(${position.top}px) translateX(${position.left}px)`, ref.current.style.width = `${position.width}px`, ref.current.style.height = `${position.height}px`);
|
|
8075
7816
|
}, updatePositionWithoutAnimation = () => {
|
|
8076
|
-
window.clearTimeout(transitionTimeout.current), ref.current && (ref.current.style.transitionDuration = "0ms"), updatePosition(), transitionTimeout.
|
|
8077
|
-
current = window.setTimeout(() => {
|
|
7817
|
+
window.clearTimeout(transitionTimeout.current), ref.current && (ref.current.style.transitionDuration = "0ms"), updatePosition(), transitionTimeout.current = window.setTimeout(() => {
|
|
8078
7818
|
ref.current && (ref.current.style.transitionDuration = "");
|
|
8079
7819
|
}, 30);
|
|
8080
7820
|
}, targetResizeObserver = useRef(), parentResizeObserver = useRef();
|
|
8081
7821
|
return useEffect(() => {
|
|
8082
7822
|
if (updatePosition(), target)
|
|
8083
|
-
return targetResizeObserver.current = new ResizeObserver(updatePositionWithoutAnimation), targetResizeObserver.current.observe(target), parent &&
|
|
8084
|
-
(parentResizeObserver.current = new ResizeObserver(updatePositionWithoutAnimation), parentResizeObserver.current.observe(parent)), () => {
|
|
7823
|
+
return targetResizeObserver.current = new ResizeObserver(updatePositionWithoutAnimation), targetResizeObserver.current.observe(target), parent && (parentResizeObserver.current = new ResizeObserver(updatePositionWithoutAnimation), parentResizeObserver.current.observe(parent)), () => {
|
|
8085
7824
|
targetResizeObserver.current?.disconnect(), parentResizeObserver.current?.disconnect();
|
|
8086
7825
|
};
|
|
8087
7826
|
}, [parent, target]), useEffect(() => {
|
|
@@ -8149,8 +7888,7 @@ const defaultProps$10 = {}, varsResolver$o = (_theme, { transitionDuration }) =>
|
|
|
8149
7888
|
});
|
|
8150
7889
|
FloatingIndicator.displayName = "@mantine/core/FloatingIndicator";
|
|
8151
7890
|
FloatingIndicator.classes = __default__$o;
|
|
8152
|
-
var __default__$n = { root: "m_66836ed3", wrapper: "m_a5d60502", body: "m_667c2793", title: "m_6a03f287", label: "m_698f4f23", icon: "m_667f2a6a", message: "
|
|
8153
|
-
m_7fa78076", closeButton: "m_87f54839" };
|
|
7891
|
+
var __default__$n = { root: "m_66836ed3", wrapper: "m_a5d60502", body: "m_667c2793", title: "m_6a03f287", label: "m_698f4f23", icon: "m_667f2a6a", message: "m_7fa78076", closeButton: "m_87f54839" };
|
|
8154
7892
|
const defaultProps$$ = {}, varsResolver$n = (theme, { radius, color, variant, autoContrast }) => {
|
|
8155
7893
|
const colors = theme.variantColorResolver({
|
|
8156
7894
|
color: color || theme.primaryColor,
|
|
@@ -8212,8 +7950,7 @@ const defaultProps$$ = {}, varsResolver$n = (theme, { radius, color, variant, au
|
|
|
8212
7950
|
children: /* @__PURE__ */ jsxs("div", { ...getStyles2("wrapper"), children: [
|
|
8213
7951
|
icon && /* @__PURE__ */ jsx("div", { ...getStyles2("icon"), children: icon }),
|
|
8214
7952
|
/* @__PURE__ */ jsxs("div", { ...getStyles2("body"), children: [
|
|
8215
|
-
title && /* @__PURE__ */ jsx("div", { ...getStyles2("title"), "data-with-close-button": withCloseButton || void 0, children: /* @__PURE__ */ jsx(
|
|
8216
|
-
"span", { id: titleId, ...getStyles2("label"), children: title }) }),
|
|
7953
|
+
title && /* @__PURE__ */ jsx("div", { ...getStyles2("title"), "data-with-close-button": withCloseButton || void 0, children: /* @__PURE__ */ jsx("span", { id: titleId, ...getStyles2("label"), children: title }) }),
|
|
8217
7954
|
children && /* @__PURE__ */ jsx("div", { id: bodyId, ...getStyles2("message"), "data-variant": variant, children })
|
|
8218
7955
|
] }),
|
|
8219
7956
|
withCloseButton && /* @__PURE__ */ jsx(
|
|
@@ -8330,8 +8067,7 @@ const defaultProps$Z = {
|
|
|
8330
8067
|
Anchor.classes = __default__$l;
|
|
8331
8068
|
Anchor.displayName = "@mantine/core/Anchor";
|
|
8332
8069
|
function parseItem(item) {
|
|
8333
|
-
return typeof item == "string" ? { value: item, label: item } : "value" in item && !("label" in item) ? { value: item.value, label: item.value, disabled: item.
|
|
8334
|
-
disabled } : typeof item == "number" ? { value: item.toString(), label: item.toString() } : "group" in item ? {
|
|
8070
|
+
return typeof item == "string" ? { value: item, label: item } : "value" in item && !("label" in item) ? { value: item.value, label: item.value, disabled: item.disabled } : typeof item == "number" ? { value: item.toString(), label: item.toString() } : "group" in item ? {
|
|
8335
8071
|
group: item.group,
|
|
8336
8072
|
items: item.items.map((i) => parseItem(i))
|
|
8337
8073
|
} : item;
|
|
@@ -8342,9 +8078,7 @@ function getParsedComboboxData(data) {
|
|
|
8342
8078
|
function getOptionsLockup(options) {
|
|
8343
8079
|
return options.reduce((acc, item) => "group" in item ? { ...acc, ...getOptionsLockup(item.items) } : (acc[item.value] = item, acc), {});
|
|
8344
8080
|
}
|
|
8345
|
-
var __default__$k = { dropdown: "m_88b62a41", options: "m_b2821a6e", option: "m_92253aa5", search: "m_985517d8", empty: "m_2530cd1d", header: "
|
|
8346
|
-
4bd", footer: "m_82b967cb", group: "m_254f3e4f", groupLabel: "m_2bb2e9e5", chevron: "m_2943220b", optionsDropdownOption: "m_390b5f4", optionsDropdownCheckIcon: "\
|
|
8347
|
-
m_8ee53fc2" };
|
|
8081
|
+
var __default__$k = { dropdown: "m_88b62a41", options: "m_b2821a6e", option: "m_92253aa5", search: "m_985517d8", empty: "m_2530cd1d", header: "m_858f94bd", footer: "m_82b967cb", group: "m_254f3e4f", groupLabel: "m_2bb2e9e5", chevron: "m_2943220b", optionsDropdownOption: "m_390b5f4", optionsDropdownCheckIcon: "m_8ee53fc2" };
|
|
8348
8082
|
const defaultProps$Y = {
|
|
8349
8083
|
error: null
|
|
8350
8084
|
}, varsResolver$l = (_, { size: size2 }) => ({
|
|
@@ -8352,8 +8086,7 @@ const defaultProps$Y = {
|
|
|
8352
8086
|
"--combobox-chevron-size": getSize(size2, "combobox-chevron-size")
|
|
8353
8087
|
}
|
|
8354
8088
|
}), ComboboxChevron = factory((_props, ref) => {
|
|
8355
|
-
const props = useProps("ComboboxChevron", defaultProps$Y, _props), { size: size2, error, style, className, classNames, styles, unstyled, vars, mod, ...others } = props,
|
|
8356
|
-
getStyles2 = useStyles({
|
|
8089
|
+
const props = useProps("ComboboxChevron", defaultProps$Y, _props), { size: size2, error, style, className, classNames, styles, unstyled, vars, mod, ...others } = props, getStyles2 = useStyles({
|
|
8357
8090
|
name: "ComboboxChevron",
|
|
8358
8091
|
classes: __default__$k,
|
|
8359
8092
|
props,
|
|
@@ -8381,11 +8114,7 @@ const defaultProps$Y = {
|
|
|
8381
8114
|
children: /* @__PURE__ */ jsx(
|
|
8382
8115
|
"path",
|
|
8383
8116
|
{
|
|
8384
|
-
d: "M4.93179 5.43179C4.75605 5.60753 4.75605 5.89245 4.93179 6.06819C5.10753 6.24392 5.39245 6.24392 5.56819 6.06819L7.49999 4.13638L9.43179
|
|
8385
|
-
6.06819C9.60753 6.24392 9.89245 6.24392 10.0682 6.06819C10.2439 5.89245 10.2439 5.60753 10.0682 5.43179L7.81819 3.18179C7.73379 3.0974 7.61933 3.0499\
|
|
8386
|
-
9 7.49999 3.04999C7.38064 3.04999 7.26618 3.0974 7.18179 3.18179L4.93179 5.43179ZM10.0682 9.56819C10.2439 9.39245 10.2439 9.10753 10.0682 8.93179C9.89\
|
|
8387
|
-
245 8.75606 9.60753 8.75606 9.43179 8.93179L7.49999 10.8636L5.56819 8.93179C5.39245 8.75606 5.10753 8.75606 4.93179 8.93179C4.75605 9.10753 4.75605 9.\
|
|
8388
|
-
39245 4.93179 9.56819L7.18179 11.8182C7.35753 11.9939 7.64245 11.9939 7.81819 11.8182L10.0682 9.56819Z",
|
|
8117
|
+
d: "M4.93179 5.43179C4.75605 5.60753 4.75605 5.89245 4.93179 6.06819C5.10753 6.24392 5.39245 6.24392 5.56819 6.06819L7.49999 4.13638L9.43179 6.06819C9.60753 6.24392 9.89245 6.24392 10.0682 6.06819C10.2439 5.89245 10.2439 5.60753 10.0682 5.43179L7.81819 3.18179C7.73379 3.0974 7.61933 3.04999 7.49999 3.04999C7.38064 3.04999 7.26618 3.0974 7.18179 3.18179L4.93179 5.43179ZM10.0682 9.56819C10.2439 9.39245 10.2439 9.10753 10.0682 8.93179C9.89245 8.75606 9.60753 8.75606 9.43179 8.93179L7.49999 10.8636L5.56819 8.93179C5.39245 8.75606 5.10753 8.75606 4.93179 8.93179C4.75605 9.10753 4.75605 9.39245 4.93179 9.56819L7.18179 11.8182C7.35753 11.9939 7.64245 11.9939 7.81819 11.8182L10.0682 9.56819Z",
|
|
8389
8118
|
fill: "currentColor",
|
|
8390
8119
|
fillRule: "evenodd",
|
|
8391
8120
|
clipRule: "evenodd"
|
|
@@ -8443,8 +8172,7 @@ const defaultProps$W = {
|
|
|
8443
8172
|
const { children, refProp } = useProps("ComboboxDropdownTarget", defaultProps$W, props);
|
|
8444
8173
|
if (useComboboxContext(), !isElement$1(children))
|
|
8445
8174
|
throw new Error(
|
|
8446
|
-
"Combobox.DropdownTarget component children should be an element or a component that accepts ref. Fragments, strings, numbers and other
|
|
8447
|
-
e values are not supported"
|
|
8175
|
+
"Combobox.DropdownTarget component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported"
|
|
8448
8176
|
);
|
|
8449
8177
|
return /* @__PURE__ */ jsx(Popover.Target, { ref, refProp, children });
|
|
8450
8178
|
});
|
|
@@ -8478,18 +8206,13 @@ function useComboboxTargetProps({
|
|
|
8478
8206
|
if (onKeyDown?.(event), !ctx.readOnly && withKeyboardNavigation) {
|
|
8479
8207
|
if (event.nativeEvent.isComposing)
|
|
8480
8208
|
return;
|
|
8481
|
-
if (event.nativeEvent.code === "ArrowDown" && (event.preventDefault(), ctx.store.dropdownOpened ? setSelectedOptionId(ctx.store.selectNextOption()) :
|
|
8482
|
-
(ctx.store.openDropdown("keyboard"), setSelectedOptionId(ctx.store.selectActiveOption()))), event.nativeEvent.code === "ArrowUp" && (event.preventDefault(),
|
|
8483
|
-
ctx.store.dropdownOpened ? setSelectedOptionId(ctx.store.selectPreviousOption()) : (ctx.store.openDropdown("keyboard"), setSelectedOptionId(ctx.
|
|
8484
|
-
store.selectActiveOption()))), event.nativeEvent.code === "Enter" || event.nativeEvent.code === "NumpadEnter") {
|
|
8209
|
+
if (event.nativeEvent.code === "ArrowDown" && (event.preventDefault(), ctx.store.dropdownOpened ? setSelectedOptionId(ctx.store.selectNextOption()) : (ctx.store.openDropdown("keyboard"), setSelectedOptionId(ctx.store.selectActiveOption()))), event.nativeEvent.code === "ArrowUp" && (event.preventDefault(), ctx.store.dropdownOpened ? setSelectedOptionId(ctx.store.selectPreviousOption()) : (ctx.store.openDropdown("keyboard"), setSelectedOptionId(ctx.store.selectActiveOption()))), event.nativeEvent.code === "Enter" || event.nativeEvent.code === "NumpadEnter") {
|
|
8485
8210
|
if (event.nativeEvent.keyCode === 229)
|
|
8486
8211
|
return;
|
|
8487
8212
|
const selectedOptionIndex = ctx.store.getSelectedOptionIndex();
|
|
8488
|
-
ctx.store.dropdownOpened && selectedOptionIndex !== -1 ? (event.preventDefault(), ctx.store.clickSelectedOption()) : targetType === "button" &&
|
|
8489
|
-
(event.preventDefault(), ctx.store.openDropdown("keyboard"));
|
|
8213
|
+
ctx.store.dropdownOpened && selectedOptionIndex !== -1 ? (event.preventDefault(), ctx.store.clickSelectedOption()) : targetType === "button" && (event.preventDefault(), ctx.store.openDropdown("keyboard"));
|
|
8490
8214
|
}
|
|
8491
|
-
event.nativeEvent.code === "Escape" && ctx.store.closeDropdown("keyboard"), event.nativeEvent.code === "Space" && targetType === "button" && (event.
|
|
8492
|
-
preventDefault(), ctx.store.toggleDropdown("keyboard"));
|
|
8215
|
+
event.nativeEvent.code === "Escape" && ctx.store.closeDropdown("keyboard"), event.nativeEvent.code === "Space" && targetType === "button" && (event.preventDefault(), ctx.store.toggleDropdown("keyboard"));
|
|
8493
8216
|
}
|
|
8494
8217
|
};
|
|
8495
8218
|
return {
|
|
@@ -8525,8 +8248,7 @@ const defaultProps$U = {
|
|
|
8525
8248
|
} = useProps("ComboboxEventsTarget", defaultProps$U, props);
|
|
8526
8249
|
if (!isElement$1(children))
|
|
8527
8250
|
throw new Error(
|
|
8528
|
-
"Combobox.EventsTarget component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive
|
|
8529
|
-
values are not supported"
|
|
8251
|
+
"Combobox.EventsTarget component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported"
|
|
8530
8252
|
);
|
|
8531
8253
|
const ctx = useComboboxContext(), targetProps = useComboboxTargetProps({
|
|
8532
8254
|
targetType,
|
|
@@ -8664,8 +8386,7 @@ const defaultProps$Q = {}, ComboboxOption = factory((_props, ref) => {
|
|
|
8664
8386
|
ComboboxOption.classes = __default__$k;
|
|
8665
8387
|
ComboboxOption.displayName = "@mantine/core/ComboboxOption";
|
|
8666
8388
|
const defaultProps$P = {}, ComboboxOptions = factory((_props, ref) => {
|
|
8667
|
-
const props = useProps("ComboboxOptions", defaultProps$P, _props), { classNames, className, style, styles, id, onMouseDown, labelledBy, ...others } = props,
|
|
8668
|
-
ctx = useComboboxContext(), _id = useId$1(id);
|
|
8389
|
+
const props = useProps("ComboboxOptions", defaultProps$P, _props), { classNames, className, style, styles, id, onMouseDown, labelledBy, ...others } = props, ctx = useComboboxContext(), _id = useId$1(id);
|
|
8669
8390
|
return useEffect(() => {
|
|
8670
8391
|
ctx.store.setListId(_id);
|
|
8671
8392
|
}, [_id]), /* @__PURE__ */ jsx(
|
|
@@ -8742,8 +8463,7 @@ const defaultProps$N = {
|
|
|
8742
8463
|
} = useProps("ComboboxTarget", defaultProps$N, props);
|
|
8743
8464
|
if (!isElement$1(children))
|
|
8744
8465
|
throw new Error(
|
|
8745
|
-
"Combobox.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values
|
|
8746
|
-
are not supported"
|
|
8466
|
+
"Combobox.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported"
|
|
8747
8467
|
);
|
|
8748
8468
|
const ctx = useComboboxContext(), targetProps = useComboboxTargetProps({
|
|
8749
8469
|
targetType,
|
|
@@ -8801,8 +8521,7 @@ function useCombobox({
|
|
|
8801
8521
|
defaultValue: defaultOpened,
|
|
8802
8522
|
finalValue: !1,
|
|
8803
8523
|
onChange: onOpenedChange
|
|
8804
|
-
}), listId = useRef(null), selectedOptionIndex = useRef(-1), searchRef = useRef(null), targetRef = useRef(null), focusSearchTimeout = useRef(-1), focusTargetTimeout = useRef(
|
|
8805
|
-
-1), selectedIndexUpdateTimeout = useRef(-1), openDropdown = useCallback(
|
|
8524
|
+
}), listId = useRef(null), selectedOptionIndex = useRef(-1), searchRef = useRef(null), targetRef = useRef(null), focusSearchTimeout = useRef(-1), focusTargetTimeout = useRef(-1), selectedIndexUpdateTimeout = useRef(-1), openDropdown = useCallback(
|
|
8806
8525
|
(eventSource = "unknown") => {
|
|
8807
8526
|
dropdownOpened || (setDropdownOpened(!0), onDropdownOpen?.(eventSource));
|
|
8808
8527
|
},
|
|
@@ -8826,9 +8545,7 @@ function useCombobox({
|
|
|
8826
8545
|
if (!items)
|
|
8827
8546
|
return null;
|
|
8828
8547
|
const nextIndex = index2 >= items.length ? 0 : index2 < 0 ? items.length - 1 : index2;
|
|
8829
|
-
return selectedOptionIndex.current = nextIndex, items?.[nextIndex] && !items[nextIndex].hasAttribute("data-combobox-disabled") ? (clearSelectedItem(),
|
|
8830
|
-
items[nextIndex].setAttribute("data-combobox-selected", "true"), items[nextIndex].setAttribute("aria-selected", "true"), items[nextIndex].scrollIntoView(
|
|
8831
|
-
{ block: "nearest", behavior: scrollBehavior }), items[nextIndex].id) : null;
|
|
8548
|
+
return selectedOptionIndex.current = nextIndex, items?.[nextIndex] && !items[nextIndex].hasAttribute("data-combobox-disabled") ? (clearSelectedItem(), items[nextIndex].setAttribute("data-combobox-selected", "true"), items[nextIndex].setAttribute("aria-selected", "true"), items[nextIndex].scrollIntoView({ block: "nearest", behavior: scrollBehavior }), items[nextIndex].id) : null;
|
|
8832
8549
|
},
|
|
8833
8550
|
[scrollBehavior, clearSelectedItem]
|
|
8834
8551
|
), selectActiveOption = useCallback(() => {
|
|
@@ -8894,8 +8611,7 @@ function useCombobox({
|
|
|
8894
8611
|
}, []), getSelectedOptionIndex = useCallback(() => selectedOptionIndex.current, []);
|
|
8895
8612
|
return useEffect(
|
|
8896
8613
|
() => () => {
|
|
8897
|
-
window.clearTimeout(focusSearchTimeout.current), window.clearTimeout(focusTargetTimeout.current), window.clearTimeout(selectedIndexUpdateTimeout.
|
|
8898
|
-
current);
|
|
8614
|
+
window.clearTimeout(focusSearchTimeout.current), window.clearTimeout(focusTargetTimeout.current), window.clearTimeout(selectedIndexUpdateTimeout.current);
|
|
8899
8615
|
},
|
|
8900
8616
|
[]
|
|
8901
8617
|
), {
|
|
@@ -9095,8 +8811,7 @@ function Option({
|
|
|
9095
8811
|
renderOption
|
|
9096
8812
|
}) {
|
|
9097
8813
|
if (!isOptionsGroup(data)) {
|
|
9098
|
-
const checked = isValueChecked(value, data.value), check = withCheckIcon && checked && /* @__PURE__ */ jsx(CheckIcon, { className: __default__$k.optionsDropdownCheckIcon }),
|
|
9099
|
-
defaultContent = /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
8814
|
+
const checked = isValueChecked(value, data.value), check = withCheckIcon && checked && /* @__PURE__ */ jsx(CheckIcon, { className: __default__$k.optionsDropdownCheckIcon }), defaultContent = /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
9100
8815
|
checkIconPosition === "left" && check,
|
|
9101
8816
|
/* @__PURE__ */ jsx("span", { children: data.label }),
|
|
9102
8817
|
checkIconPosition === "right" && check
|
|
@@ -9166,8 +8881,7 @@ function OptionsDropdown({
|
|
|
9166
8881
|
},
|
|
9167
8882
|
isOptionsGroup(item) ? item.group : item.value
|
|
9168
8883
|
));
|
|
9169
|
-
return /* @__PURE__ */ jsx(Combobox.Dropdown, { hidden: hidden2 || hiddenWhenEmpty && isEmpty, children: /* @__PURE__ */ jsxs(Combobox.Options, { labelledBy: labelId,
|
|
9170
|
-
"aria-label": ariaLabel, children: [
|
|
8884
|
+
return /* @__PURE__ */ jsx(Combobox.Dropdown, { hidden: hidden2 || hiddenWhenEmpty && isEmpty, children: /* @__PURE__ */ jsxs(Combobox.Options, { labelledBy: labelId, "aria-label": ariaLabel, children: [
|
|
9171
8885
|
withScrollArea ? /* @__PURE__ */ jsx(
|
|
9172
8886
|
ScrollArea.Autosize,
|
|
9173
8887
|
{
|
|
@@ -9351,8 +9065,7 @@ const loaderTransition = {
|
|
|
9351
9065
|
],
|
|
9352
9066
|
...others,
|
|
9353
9067
|
children: [
|
|
9354
|
-
/* @__PURE__ */ jsx(Transition, { mounted: !!loading, transition: loaderTransition, duration: 150, children: (transitionStyles) => /* @__PURE__ */ jsx(
|
|
9355
|
-
Box, { component: "span", ...getStyles2("loader", { style: transitionStyles }), "aria-hidden": !0, children: /* @__PURE__ */ jsx(
|
|
9068
|
+
/* @__PURE__ */ jsx(Transition, { mounted: !!loading, transition: loaderTransition, duration: 150, children: (transitionStyles) => /* @__PURE__ */ jsx(Box, { component: "span", ...getStyles2("loader", { style: transitionStyles }), "aria-hidden": !0, children: /* @__PURE__ */ jsx(
|
|
9356
9069
|
Loader,
|
|
9357
9070
|
{
|
|
9358
9071
|
color: "var(--button-color)",
|
|
@@ -9377,8 +9090,7 @@ const [CardProvider, useCardContext] = createSafeContext(
|
|
|
9377
9090
|
);
|
|
9378
9091
|
var __default__$h = { root: "m_e615b15f", section: "m_599a2148" };
|
|
9379
9092
|
const defaultProps$I = {}, CardSection = polymorphicFactory((_props, ref) => {
|
|
9380
|
-
const props = useProps("CardSection", defaultProps$I, _props), { classNames, className, style, styles, vars, withBorder, inheritPadding, mod, ...others } = props,
|
|
9381
|
-
ctx = useCardContext();
|
|
9093
|
+
const props = useProps("CardSection", defaultProps$I, _props), { classNames, className, style, styles, vars, withBorder, inheritPadding, mod, ...others } = props, ctx = useCardContext();
|
|
9382
9094
|
return /* @__PURE__ */ jsx(
|
|
9383
9095
|
Box,
|
|
9384
9096
|
{
|
|
@@ -9396,8 +9108,7 @@ const defaultProps$H = {}, varsResolver$g = (_, { padding }) => ({
|
|
|
9396
9108
|
"--card-padding": getSpacing(padding)
|
|
9397
9109
|
}
|
|
9398
9110
|
}), Card = polymorphicFactory((_props, ref) => {
|
|
9399
|
-
const props = useProps("Card", defaultProps$H, _props), { classNames, className, style, styles, unstyled, vars, children, padding, ...others } = props,
|
|
9400
|
-
getStyles2 = useStyles({
|
|
9111
|
+
const props = useProps("Card", defaultProps$H, _props), { classNames, className, style, styles, unstyled, vars, children, padding, ...others } = props, getStyles2 = useStyles({
|
|
9401
9112
|
name: "Card",
|
|
9402
9113
|
props,
|
|
9403
9114
|
classes: __default__$h,
|
|
@@ -9408,13 +9119,11 @@ const defaultProps$H = {}, varsResolver$g = (_, { padding }) => ({
|
|
|
9408
9119
|
unstyled,
|
|
9409
9120
|
vars,
|
|
9410
9121
|
varsResolver: varsResolver$g
|
|
9411
|
-
}), _children = Children.toArray(children), content = _children.map((child, index2) => typeof child == "object" && child && "type" in child && child.
|
|
9412
|
-
type === CardSection ? cloneElement(child, {
|
|
9122
|
+
}), _children = Children.toArray(children), content = _children.map((child, index2) => typeof child == "object" && child && "type" in child && child.type === CardSection ? cloneElement(child, {
|
|
9413
9123
|
"data-first-section": index2 === 0 || void 0,
|
|
9414
9124
|
"data-last-section": index2 === _children.length - 1 || void 0
|
|
9415
9125
|
}) : child);
|
|
9416
|
-
return /* @__PURE__ */ jsx(CardProvider, { value: { getStyles: getStyles2 }, children: /* @__PURE__ */ jsx(Paper, { ref, unstyled, ...getStyles2("
|
|
9417
|
-
ot"), ...others, children: content }) });
|
|
9126
|
+
return /* @__PURE__ */ jsx(CardProvider, { value: { getStyles: getStyles2 }, children: /* @__PURE__ */ jsx(Paper, { ref, unstyled, ...getStyles2("root"), ...others, children: content }) });
|
|
9418
9127
|
});
|
|
9419
9128
|
Card.classes = __default__$h;
|
|
9420
9129
|
Card.displayName = "@mantine/core/Card";
|
|
@@ -9464,8 +9173,7 @@ const defaultProps$G = {}, varsResolver$f = (theme, { color }) => ({
|
|
|
9464
9173
|
});
|
|
9465
9174
|
Code.classes = __default__$g;
|
|
9466
9175
|
Code.displayName = "@mantine/core/Code";
|
|
9467
|
-
var __default__$f = { root: "m_de3d2490", colorOverlay: "m_862f3d1b", shadowOverlay: "m_98ae7f22", alphaOverlay: "m_95709ac0", childrenOverlay: "
|
|
9468
|
-
74e3" };
|
|
9176
|
+
var __default__$f = { root: "m_de3d2490", colorOverlay: "m_862f3d1b", shadowOverlay: "m_98ae7f22", alphaOverlay: "m_95709ac0", childrenOverlay: "m_93e74e3" };
|
|
9469
9177
|
const defaultProps$F = {
|
|
9470
9178
|
withShadow: !0
|
|
9471
9179
|
}, varsResolver$e = (_, { radius, size: size2 }) => ({
|
|
@@ -9525,8 +9233,7 @@ const defaultProps$E = {}, varsResolver$d = (_, { size: size2, fluid }) => ({
|
|
|
9525
9233
|
"--container-size": fluid ? void 0 : getSize(size2, "container-size")
|
|
9526
9234
|
}
|
|
9527
9235
|
}), Container = factory((_props, ref) => {
|
|
9528
|
-
const props = useProps("Container", defaultProps$E, _props), { classNames, className, style, styles, unstyled, vars, fluid, mod, ...others } = props,
|
|
9529
|
-
getStyles2 = useStyles({
|
|
9236
|
+
const props = useProps("Container", defaultProps$E, _props), { classNames, className, style, styles, unstyled, vars, fluid, mod, ...others } = props, getStyles2 = useStyles({
|
|
9530
9237
|
name: "Container",
|
|
9531
9238
|
classes: __default__$e,
|
|
9532
9239
|
props,
|
|
@@ -9630,8 +9337,7 @@ const defaultProps$A = {}, DrawerCloseButton = factory((_props, ref) => {
|
|
|
9630
9337
|
DrawerCloseButton.classes = __default__$c;
|
|
9631
9338
|
DrawerCloseButton.displayName = "@mantine/core/DrawerCloseButton";
|
|
9632
9339
|
const defaultProps$z = {}, DrawerContent = factory((_props, ref) => {
|
|
9633
|
-
const props = useProps("DrawerContent", defaultProps$z, _props), { classNames, className, style, styles, vars, children, radius, ...others } = props,
|
|
9634
|
-
ctx = useDrawerContext(), Scroll = ctx.scrollAreaComponent || NativeScrollArea;
|
|
9340
|
+
const props = useProps("DrawerContent", defaultProps$z, _props), { classNames, className, style, styles, vars, children, radius, ...others } = props, ctx = useDrawerContext(), Scroll = ctx.scrollAreaComponent || NativeScrollArea;
|
|
9635
9341
|
return /* @__PURE__ */ jsx(
|
|
9636
9342
|
ModalBaseContent,
|
|
9637
9343
|
{
|
|
@@ -9825,8 +9531,7 @@ function HoverCardDropdown(props) {
|
|
|
9825
9531
|
"HoverCardDropdown",
|
|
9826
9532
|
defaultProps$t,
|
|
9827
9533
|
props
|
|
9828
|
-
), ctx = useHoverCardContext(), handleMouseEnter = createEventHandler(onMouseEnter, ctx.openDropdown), handleMouseLeave = createEventHandler(onMouseLeave,
|
|
9829
|
-
ctx.closeDropdown);
|
|
9534
|
+
), ctx = useHoverCardContext(), handleMouseEnter = createEventHandler(onMouseEnter, ctx.openDropdown), handleMouseLeave = createEventHandler(onMouseLeave, ctx.closeDropdown);
|
|
9830
9535
|
return /* @__PURE__ */ jsx(Popover.Dropdown, { onMouseEnter: handleMouseEnter, onMouseLeave: handleMouseLeave, ...others, children });
|
|
9831
9536
|
}
|
|
9832
9537
|
HoverCardDropdown.displayName = "@mantine/core/HoverCardDropdown";
|
|
@@ -9840,11 +9545,9 @@ const defaultProps$s = {
|
|
|
9840
9545
|
);
|
|
9841
9546
|
if (!isElement$1(children))
|
|
9842
9547
|
throw new Error(
|
|
9843
|
-
"HoverCard.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive
|
|
9844
|
-
s are not supported"
|
|
9548
|
+
"HoverCard.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported"
|
|
9845
9549
|
);
|
|
9846
|
-
const ctx = useHoverCardContext(), onMouseEnter = createEventHandler(children.props.onMouseEnter, ctx.openDropdown), onMouseLeave = createEventHandler(
|
|
9847
|
-
children.props.onMouseLeave, ctx.closeDropdown), eventListeners = { onMouseEnter, onMouseLeave };
|
|
9550
|
+
const ctx = useHoverCardContext(), onMouseEnter = createEventHandler(children.props.onMouseEnter, ctx.openDropdown), onMouseLeave = createEventHandler(children.props.onMouseLeave, ctx.closeDropdown), eventListeners = { onMouseEnter, onMouseLeave };
|
|
9848
9551
|
return /* @__PURE__ */ jsx(Popover.Target, { refProp, ref, ...others, children: cloneElement(
|
|
9849
9552
|
children,
|
|
9850
9553
|
eventPropsWrapperName ? { [eventPropsWrapperName]: eventListeners } : eventListeners
|
|
@@ -9861,10 +9564,8 @@ function HoverCard(props) {
|
|
|
9861
9564
|
"HoverCard",
|
|
9862
9565
|
defaultProps$r,
|
|
9863
9566
|
props
|
|
9864
|
-
), [opened, { open, close }] = useDisclosure(initiallyOpened, { onClose, onOpen }), { openDropdown, closeDropdown } = useDelayedHover({ open, close,
|
|
9865
|
-
|
|
9866
|
-
return /* @__PURE__ */ jsx(HoverCardContextProvider, { value: { openDropdown, closeDropdown }, children: /* @__PURE__ */ jsx(Popover, { ...others, opened,
|
|
9867
|
-
__staticSelector: "HoverCard", children }) });
|
|
9567
|
+
), [opened, { open, close }] = useDisclosure(initiallyOpened, { onClose, onOpen }), { openDropdown, closeDropdown } = useDelayedHover({ open, close, openDelay, closeDelay });
|
|
9568
|
+
return /* @__PURE__ */ jsx(HoverCardContextProvider, { value: { openDropdown, closeDropdown }, children: /* @__PURE__ */ jsx(Popover, { ...others, opened, __staticSelector: "HoverCard", children }) });
|
|
9868
9569
|
}
|
|
9869
9570
|
HoverCard.displayName = "@mantine/core/HoverCard";
|
|
9870
9571
|
HoverCard.Target = HoverCardTarget;
|
|
@@ -9873,8 +9574,7 @@ HoverCard.extend = (input) => input;
|
|
|
9873
9574
|
const [MenuContextProvider, useMenuContext] = createSafeContext(
|
|
9874
9575
|
"Menu component was not found in the tree"
|
|
9875
9576
|
);
|
|
9876
|
-
var __default__$b = { dropdown: "m_dc9b7c9f", label: "m_9bfac126", divider: "m_efdf90cb", item: "m_99ac2aa1", itemLabel: "m_5476e0d3", itemSection: "
|
|
9877
|
-
_8b75e504" };
|
|
9577
|
+
var __default__$b = { dropdown: "m_dc9b7c9f", label: "m_9bfac126", divider: "m_efdf90cb", item: "m_99ac2aa1", itemLabel: "m_5476e0d3", itemSection: "m_8b75e504" };
|
|
9878
9578
|
const defaultProps$q = {}, MenuDivider = factory((props, ref) => {
|
|
9879
9579
|
const { classNames, className, style, styles, vars, ...others } = useProps(
|
|
9880
9580
|
"MenuDivider",
|
|
@@ -9904,8 +9604,7 @@ const defaultProps$p = {}, MenuDropdown = factory((props, ref) => {
|
|
|
9904
9604
|
children,
|
|
9905
9605
|
...others
|
|
9906
9606
|
} = useProps("MenuDropdown", defaultProps$p, props), wrapperRef = useRef(null), ctx = useMenuContext(), handleKeyDown = (event) => {
|
|
9907
|
-
(event.key === "ArrowUp" || event.key === "ArrowDown") && (event.preventDefault(), wrapperRef.current?.querySelectorAll("[data-menu-item]:not(:
|
|
9908
|
-
abled)")[0]?.focus());
|
|
9607
|
+
(event.key === "ArrowUp" || event.key === "ArrowDown") && (event.preventDefault(), wrapperRef.current?.querySelectorAll("[data-menu-item]:not(:disabled)")[0]?.focus());
|
|
9909
9608
|
}, handleMouseEnter = createEventHandler(
|
|
9910
9609
|
onMouseEnter,
|
|
9911
9610
|
() => (ctx.trigger === "hover" || ctx.trigger === "click-hover") && ctx.openDropdown()
|
|
@@ -9955,8 +9654,7 @@ const defaultProps$o = {}, MenuItem = polymorphicFactory((props, ref) => {
|
|
|
9955
9654
|
children,
|
|
9956
9655
|
disabled,
|
|
9957
9656
|
...others
|
|
9958
|
-
} = useProps("MenuItem", defaultProps$o, props), ctx = useMenuContext(), theme = useMantineTheme(), { dir } = useDirection(), itemRef = useRef(), itemIndex = ctx.
|
|
9959
|
-
getItemIndex(itemRef.current), _others = others, handleMouseLeave = createEventHandler(_others.onMouseLeave, () => ctx.setHovered(-1)), handleMouseEnter = createEventHandler(
|
|
9657
|
+
} = useProps("MenuItem", defaultProps$o, props), ctx = useMenuContext(), theme = useMantineTheme(), { dir } = useDirection(), itemRef = useRef(), itemIndex = ctx.getItemIndex(itemRef.current), _others = others, handleMouseLeave = createEventHandler(_others.onMouseLeave, () => ctx.setHovered(-1)), handleMouseEnter = createEventHandler(
|
|
9960
9658
|
_others.onMouseEnter,
|
|
9961
9659
|
() => ctx.setHovered(ctx.getItemIndex(itemRef.current))
|
|
9962
9660
|
), handleClick = createEventHandler(_others.onClick, () => {
|
|
@@ -9964,8 +9662,7 @@ const defaultProps$o = {}, MenuItem = polymorphicFactory((props, ref) => {
|
|
|
9964
9662
|
}), handleFocus = createEventHandler(
|
|
9965
9663
|
_others.onFocus,
|
|
9966
9664
|
() => ctx.setHovered(ctx.getItemIndex(itemRef.current))
|
|
9967
|
-
), colors = color ? theme.variantColorResolver({ color, theme, variant: "light" }) : void 0, parsedThemeColor = color ? parseThemeColor({ color, theme }) :
|
|
9968
|
-
null;
|
|
9665
|
+
), colors = color ? theme.variantColorResolver({ color, theme, variant: "light" }) : void 0, parsedThemeColor = color ? parseThemeColor({ color, theme }) : null;
|
|
9969
9666
|
return /* @__PURE__ */ jsxs(
|
|
9970
9667
|
UnstyledButton,
|
|
9971
9668
|
{
|
|
@@ -9993,8 +9690,7 @@ const defaultProps$o = {}, MenuItem = polymorphicFactory((props, ref) => {
|
|
|
9993
9690
|
onKeyDown: _others.onKeydown
|
|
9994
9691
|
}),
|
|
9995
9692
|
__vars: {
|
|
9996
|
-
"--menu-item-color": parsedThemeColor?.isThemeColor && parsedThemeColor?.shade === void 0 ? `var(--mantine-color-${parsedThemeColor.color}-6)` :
|
|
9997
|
-
colors?.color,
|
|
9693
|
+
"--menu-item-color": parsedThemeColor?.isThemeColor && parsedThemeColor?.shade === void 0 ? `var(--mantine-color-${parsedThemeColor.color}-6)` : colors?.color,
|
|
9998
9694
|
"--menu-item-hover": colors?.hover
|
|
9999
9695
|
},
|
|
10000
9696
|
children: [
|
|
@@ -10030,8 +9726,7 @@ const defaultProps$m = {
|
|
|
10030
9726
|
const { children, refProp, ...others } = useProps("MenuTarget", defaultProps$m, props);
|
|
10031
9727
|
if (!isElement$1(children))
|
|
10032
9728
|
throw new Error(
|
|
10033
|
-
"Menu.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are
|
|
10034
|
-
not supported"
|
|
9729
|
+
"Menu.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported"
|
|
10035
9730
|
);
|
|
10036
9731
|
const ctx = useMenuContext(), onClick = createEventHandler(children.props.onClick, () => {
|
|
10037
9732
|
ctx.trigger === "click" ? ctx.toggleDropdown() : ctx.trigger === "click-hover" && (ctx.setOpenedViaClick(!0), ctx.opened || ctx.openDropdown());
|
|
@@ -10100,8 +9795,7 @@ function Menu(_props) {
|
|
|
10100
9795
|
setOpened(!0), !_opened && onOpen?.();
|
|
10101
9796
|
}, toggleDropdown = () => {
|
|
10102
9797
|
_opened ? close() : open();
|
|
10103
|
-
}, { openDropdown, closeDropdown } = useDelayedHover({ open, close, closeDelay, openDelay }), getItemIndex = (node) => getContextItemIndex("[data-
|
|
10104
|
-
nu-item]", "[data-menu-dropdown]", node), { resolvedClassNames, resolvedStyles } = useResolvedStylesApi({
|
|
9798
|
+
}, { openDropdown, closeDropdown } = useDelayedHover({ open, close, closeDelay, openDelay }), getItemIndex = (node) => getContextItemIndex("[data-menu-item]", "[data-menu-dropdown]", node), { resolvedClassNames, resolvedStyles } = useResolvedStylesApi({
|
|
10105
9799
|
classNames,
|
|
10106
9800
|
styles,
|
|
10107
9801
|
props
|
|
@@ -10176,8 +9870,7 @@ const defaultProps$k = {}, ModalBody = factory((_props, ref) => {
|
|
|
10176
9870
|
ModalBody.classes = __default__$a;
|
|
10177
9871
|
ModalBody.displayName = "@mantine/core/ModalBody";
|
|
10178
9872
|
const defaultProps$j = {}, ModalContent = factory((_props, ref) => {
|
|
10179
|
-
const props = useProps("ModalContent", defaultProps$j, _props), { classNames, className, style, styles, vars, children, ...others } = props, ctx = useModalContext(),
|
|
10180
|
-
Scroll = ctx.scrollAreaComponent || NativeScrollArea;
|
|
9873
|
+
const props = useProps("ModalContent", defaultProps$j, _props), { classNames, className, style, styles, vars, children, ...others } = props, ctx = useModalContext(), Scroll = ctx.scrollAreaComponent || NativeScrollArea;
|
|
10181
9874
|
return /* @__PURE__ */ jsx(
|
|
10182
9875
|
ModalBaseContent,
|
|
10183
9876
|
{
|
|
@@ -10296,8 +9989,7 @@ function useFloatingTooltip({
|
|
|
10296
9989
|
rootBoundary: "document"
|
|
10297
9990
|
})
|
|
10298
9991
|
]
|
|
10299
|
-
}), horizontalOffset = placement.includes("right") ? offset2 : position.includes("left") ? offset2 * -1 : 0, verticalOffset = placement.includes("
|
|
10300
|
-
ttom") ? offset2 : position.includes("top") ? offset2 * -1 : 0, handleMouseMove = useCallback(
|
|
9992
|
+
}), horizontalOffset = placement.includes("right") ? offset2 : position.includes("left") ? offset2 * -1 : 0, verticalOffset = placement.includes("bottom") ? offset2 : position.includes("top") ? offset2 * -1 : 0, handleMouseMove = useCallback(
|
|
10301
9993
|
({ clientX, clientY }) => {
|
|
10302
9994
|
refs.setPositionReference({
|
|
10303
9995
|
getBoundingClientRect() {
|
|
@@ -10329,8 +10021,7 @@ ttom") ? offset2 : position.includes("top") ? offset2 * -1 : 0, handleMouseMove
|
|
|
10329
10021
|
});
|
|
10330
10022
|
};
|
|
10331
10023
|
}
|
|
10332
|
-
}, [elements.reference, refs.floating.current, update, handleMouseMove, opened]), { handleMouseMove, x, y, opened, setOpened, boundaryRef, floating: refs.
|
|
10333
|
-
setFloating };
|
|
10024
|
+
}, [elements.reference, refs.floating.current, update, handleMouseMove, opened]), { handleMouseMove, x, y, opened, setOpened, boundaryRef, floating: refs.setFloating };
|
|
10334
10025
|
}
|
|
10335
10026
|
var __default__$9 = { tooltip: "m_1b3c8819", arrow: "m_f898399f" };
|
|
10336
10027
|
const defaultProps$g = {
|
|
@@ -10388,8 +10079,7 @@ const defaultProps$g = {
|
|
|
10388
10079
|
});
|
|
10389
10080
|
if (!isElement$1(children))
|
|
10390
10081
|
throw new Error(
|
|
10391
|
-
"[@mantine/core] Tooltip.Floating component children should be an element or a component that accepts ref, fragments, strings, numbers and other
|
|
10392
|
-
primitive values are not supported"
|
|
10082
|
+
"[@mantine/core] Tooltip.Floating component children should be an element or a component that accepts ref, fragments, strings, numbers and other primitive values are not supported"
|
|
10393
10083
|
);
|
|
10394
10084
|
const targetRef = useMergedRef(boundaryRef, children.ref, ref), onMouseEnter = (event) => {
|
|
10395
10085
|
children.props.onMouseEnter?.(event), handleMouseMove(event), setOpened(!0);
|
|
@@ -10426,21 +10116,17 @@ const defaultProps$g = {
|
|
|
10426
10116
|
});
|
|
10427
10117
|
TooltipFloating.classes = __default__$9;
|
|
10428
10118
|
TooltipFloating.displayName = "@mantine/core/TooltipFloating";
|
|
10429
|
-
const TooltipGroupContext = createContext(!1), TooltipGroupProvider = TooltipGroupContext.Provider, useTooltipGroupContext = () => useContext(TooltipGroupContext),
|
|
10430
|
-
defaultProps$f = {
|
|
10119
|
+
const TooltipGroupContext = createContext(!1), TooltipGroupProvider = TooltipGroupContext.Provider, useTooltipGroupContext = () => useContext(TooltipGroupContext), defaultProps$f = {
|
|
10431
10120
|
openDelay: 0,
|
|
10432
10121
|
closeDelay: 0
|
|
10433
10122
|
};
|
|
10434
10123
|
function TooltipGroup(props) {
|
|
10435
10124
|
const { openDelay, closeDelay, children } = useProps("TooltipGroup", defaultProps$f, props);
|
|
10436
|
-
return /* @__PURE__ */ jsx(TooltipGroupProvider, { value: !0, children: /* @__PURE__ */ jsx(FloatingDelayGroup, { delay: { open: openDelay, close: closeDelay },
|
|
10437
|
-
children }) });
|
|
10125
|
+
return /* @__PURE__ */ jsx(TooltipGroupProvider, { value: !0, children: /* @__PURE__ */ jsx(FloatingDelayGroup, { delay: { open: openDelay, close: closeDelay }, children }) });
|
|
10438
10126
|
}
|
|
10439
10127
|
TooltipGroup.displayName = "@mantine/core/TooltipGroup";
|
|
10440
10128
|
function useTooltip(settings) {
|
|
10441
|
-
const [uncontrolledOpened, setUncontrolledOpened] = useState(settings.defaultOpened), opened = typeof settings.opened == "boolean" ? settings.opened :
|
|
10442
|
-
uncontrolledOpened, withinGroup = useTooltipGroupContext(), uid = useId$1(), { delay: groupDelay, currentId, setCurrentId } = useDelayGroupContext(),
|
|
10443
|
-
onChange = useCallback(
|
|
10129
|
+
const [uncontrolledOpened, setUncontrolledOpened] = useState(settings.defaultOpened), opened = typeof settings.opened == "boolean" ? settings.opened : uncontrolledOpened, withinGroup = useTooltipGroupContext(), uid = useId$1(), { delay: groupDelay, currentId, setCurrentId } = useDelayGroupContext(), onChange = useCallback(
|
|
10444
10130
|
(_opened) => {
|
|
10445
10131
|
setUncontrolledOpened(_opened), _opened && setCurrentId(uid);
|
|
10446
10132
|
},
|
|
@@ -10592,11 +10278,9 @@ const defaultProps$e = {
|
|
|
10592
10278
|
});
|
|
10593
10279
|
if (!isElement$1(children))
|
|
10594
10280
|
throw new Error(
|
|
10595
|
-
"[@mantine/core] Tooltip component children should be an element or a component that accepts ref, fragments, strings, numbers and other
|
|
10596
|
-
e values are not supported"
|
|
10281
|
+
"[@mantine/core] Tooltip component children should be an element or a component that accepts ref, fragments, strings, numbers and other primitive values are not supported"
|
|
10597
10282
|
);
|
|
10598
|
-
const targetRef = useMergedRef(tooltip.reference, children.ref, ref), transition = getTransitionProps(transitionProps, { duration: 100, transition: "
|
|
10599
|
-
fade" });
|
|
10283
|
+
const targetRef = useMergedRef(tooltip.reference, children.ref, ref), transition = getTransitionProps(transitionProps, { duration: 100, transition: "fade" });
|
|
10600
10284
|
return /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
10601
10285
|
/* @__PURE__ */ jsx(OptionalPortal, { ...portalProps, withinPortal, children: /* @__PURE__ */ jsx(
|
|
10602
10286
|
Transition,
|
|
@@ -10665,8 +10349,7 @@ Tooltip.classes = __default__$9;
|
|
|
10665
10349
|
Tooltip.displayName = "@mantine/core/Tooltip";
|
|
10666
10350
|
Tooltip.Floating = TooltipFloating;
|
|
10667
10351
|
Tooltip.Group = TooltipGroup;
|
|
10668
|
-
var __default__$8 = { root: "m_cf365364", indicator: "m_9e182ccd", label: "m_1738fcb2", input: "m_1714d588", control: "m_69686b9b", innerLabel: "
|
|
10669
|
-
82f40" };
|
|
10352
|
+
var __default__$8 = { root: "m_cf365364", indicator: "m_9e182ccd", label: "m_1738fcb2", input: "m_1714d588", control: "m_69686b9b", innerLabel: "m_78882f40" };
|
|
10670
10353
|
const defaultProps$d = {
|
|
10671
10354
|
withItemsBorders: !0
|
|
10672
10355
|
}, varsResolver$7 = (theme, { radius, color, transitionDuration, size: size2, transitionTimingFunction }) => ({
|
|
@@ -10858,14 +10541,12 @@ const defaultProps$c = {
|
|
|
10858
10541
|
autoComplete,
|
|
10859
10542
|
scrollAreaProps,
|
|
10860
10543
|
...others
|
|
10861
|
-
} = props, parsedData = useMemo(() => getParsedComboboxData(data), [data]), optionsLockup = useMemo(() => getOptionsLockup(parsedData), [parsedData]),
|
|
10862
|
-
_id = useId$1(id), [_value, setValue, controlled] = useUncontrolled({
|
|
10544
|
+
} = props, parsedData = useMemo(() => getParsedComboboxData(data), [data]), optionsLockup = useMemo(() => getOptionsLockup(parsedData), [parsedData]), _id = useId$1(id), [_value, setValue, controlled] = useUncontrolled({
|
|
10863
10545
|
value,
|
|
10864
10546
|
defaultValue,
|
|
10865
10547
|
finalValue: null,
|
|
10866
10548
|
onChange
|
|
10867
|
-
}), selectedOption = typeof _value == "string" ? optionsLockup[_value] : void 0, previousSelectedOption = usePrevious(selectedOption), [search, setSearch] = useUncontrolled(
|
|
10868
|
-
{
|
|
10549
|
+
}), selectedOption = typeof _value == "string" ? optionsLockup[_value] : void 0, previousSelectedOption = usePrevious(selectedOption), [search, setSearch] = useUncontrolled({
|
|
10869
10550
|
value: searchValue,
|
|
10870
10551
|
defaultValue: defaultSearchValue,
|
|
10871
10552
|
finalValue: selectedOption ? selectedOption.label : "",
|
|
@@ -10887,8 +10568,7 @@ const defaultProps$c = {
|
|
|
10887
10568
|
useEffect(() => {
|
|
10888
10569
|
selectFirstOptionOnChange && combobox.selectFirstOption();
|
|
10889
10570
|
}, [selectFirstOptionOnChange, _value]), useEffect(() => {
|
|
10890
|
-
value === null && setSearch(""), typeof value == "string" && selectedOption && (previousSelectedOption?.value !== selectedOption.value || previousSelectedOption?.
|
|
10891
|
-
label !== selectedOption.label) && setSearch(selectedOption.label);
|
|
10571
|
+
value === null && setSearch(""), typeof value == "string" && selectedOption && (previousSelectedOption?.value !== selectedOption.value || previousSelectedOption?.label !== selectedOption.label) && setSearch(selectedOption.label);
|
|
10892
10572
|
}, [value, selectedOption]);
|
|
10893
10573
|
const clearButton = clearable && !!_value && !disabled && !readOnly && /* @__PURE__ */ jsx(
|
|
10894
10574
|
Combobox.ClearButton,
|
|
@@ -10912,10 +10592,8 @@ const defaultProps$c = {
|
|
|
10912
10592
|
readOnly,
|
|
10913
10593
|
onOptionSubmit: (val) => {
|
|
10914
10594
|
onOptionSubmit?.(val);
|
|
10915
|
-
const optionLockup = allowDeselect && optionsLockup[val].value === _value ? null : optionsLockup[val], nextValue = optionLockup ? optionLockup.
|
|
10916
|
-
|
|
10917
|
-
nextValue !== _value && setValue(nextValue, optionLockup), !controlled && setSearch(typeof nextValue == "string" && optionLockup?.label || ""),
|
|
10918
|
-
combobox.closeDropdown();
|
|
10595
|
+
const optionLockup = allowDeselect && optionsLockup[val].value === _value ? null : optionsLockup[val], nextValue = optionLockup ? optionLockup.value : null;
|
|
10596
|
+
nextValue !== _value && setValue(nextValue, optionLockup), !controlled && setSearch(typeof nextValue == "string" && optionLockup?.label || ""), combobox.closeDropdown();
|
|
10919
10597
|
},
|
|
10920
10598
|
size: size2,
|
|
10921
10599
|
...comboboxProps,
|
|
@@ -11003,10 +10681,7 @@ function SimpleGridMediaVariables({
|
|
|
11003
10681
|
"--sg-spacing-y": getSpacing(getBaseValue$1(_verticalSpacing)),
|
|
11004
10682
|
"--sg-cols": getBaseValue$1(cols)?.toString()
|
|
11005
10683
|
}), queries = keys(theme.breakpoints).reduce(
|
|
11006
|
-
(acc, breakpoint) => (acc[breakpoint] || (acc[breakpoint] = {}), typeof spacing == "object" && spacing[breakpoint] !== void 0 && (acc[breakpoint]["
|
|
11007
|
-
--sg-spacing-x"] = getSpacing(spacing[breakpoint])), typeof _verticalSpacing == "object" && _verticalSpacing[breakpoint] !== void 0 && (acc[breakpoint]["\
|
|
11008
|
-
--sg-spacing-y"] = getSpacing(_verticalSpacing[breakpoint])), typeof cols == "object" && cols[breakpoint] !== void 0 && (acc[breakpoint]["--sg-cols"] =
|
|
11009
|
-
cols[breakpoint]), acc),
|
|
10684
|
+
(acc, breakpoint) => (acc[breakpoint] || (acc[breakpoint] = {}), typeof spacing == "object" && spacing[breakpoint] !== void 0 && (acc[breakpoint]["--sg-spacing-x"] = getSpacing(spacing[breakpoint])), typeof _verticalSpacing == "object" && _verticalSpacing[breakpoint] !== void 0 && (acc[breakpoint]["--sg-spacing-y"] = getSpacing(_verticalSpacing[breakpoint])), typeof cols == "object" && cols[breakpoint] !== void 0 && (acc[breakpoint]["--sg-cols"] = cols[breakpoint]), acc),
|
|
11010
10685
|
{}
|
|
11011
10686
|
), media = getSortedBreakpoints(keys(queries), theme).filter(
|
|
11012
10687
|
(breakpoint) => keys(queries[breakpoint.value]).length > 0
|
|
@@ -11047,10 +10722,7 @@ function SimpleGridContainerVariables({
|
|
|
11047
10722
|
"--sg-spacing-y": getSpacing(getBaseValue$1(_verticalSpacing)),
|
|
11048
10723
|
"--sg-cols": getBaseValue$1(cols)?.toString()
|
|
11049
10724
|
}), uniqueBreakpoints = getUniqueBreakpoints({ spacing, verticalSpacing, cols }), queries = uniqueBreakpoints.reduce(
|
|
11050
|
-
(acc, breakpoint) => (acc[breakpoint] || (acc[breakpoint] = {}), typeof spacing == "object" && spacing[breakpoint] !== void 0 && (acc[breakpoint]["
|
|
11051
|
-
--sg-spacing-x"] = getSpacing(spacing[breakpoint])), typeof _verticalSpacing == "object" && _verticalSpacing[breakpoint] !== void 0 && (acc[breakpoint]["\
|
|
11052
|
-
--sg-spacing-y"] = getSpacing(_verticalSpacing[breakpoint])), typeof cols == "object" && cols[breakpoint] !== void 0 && (acc[breakpoint]["--sg-cols"] =
|
|
11053
|
-
cols[breakpoint]), acc),
|
|
10725
|
+
(acc, breakpoint) => (acc[breakpoint] || (acc[breakpoint] = {}), typeof spacing == "object" && spacing[breakpoint] !== void 0 && (acc[breakpoint]["--sg-spacing-x"] = getSpacing(spacing[breakpoint])), typeof _verticalSpacing == "object" && _verticalSpacing[breakpoint] !== void 0 && (acc[breakpoint]["--sg-spacing-y"] = getSpacing(_verticalSpacing[breakpoint])), typeof cols == "object" && cols[breakpoint] !== void 0 && (acc[breakpoint]["--sg-cols"] = cols[breakpoint]), acc),
|
|
11054
10726
|
{}
|
|
11055
10727
|
), media = uniqueBreakpoints.map((breakpoint) => ({
|
|
11056
10728
|
query: `simple-grid (min-width: ${breakpoint})`,
|
|
@@ -11089,8 +10761,7 @@ const defaultProps$b = {
|
|
|
11089
10761
|
}), responsiveClassName = useRandomClassName();
|
|
11090
10762
|
return type === "container" ? /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
11091
10763
|
/* @__PURE__ */ jsx(SimpleGridContainerVariables, { ...props, selector: `.${responsiveClassName}` }),
|
|
11092
|
-
/* @__PURE__ */ jsx("div", { ...getStyles2("container"), children: /* @__PURE__ */ jsx(Box, { ref, ...getStyles2("root", { className: responsiveClassName }),
|
|
11093
|
-
...others }) })
|
|
10764
|
+
/* @__PURE__ */ jsx("div", { ...getStyles2("container"), children: /* @__PURE__ */ jsx(Box, { ref, ...getStyles2("root", { className: responsiveClassName }), ...others }) })
|
|
11094
10765
|
] }) : /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
11095
10766
|
/* @__PURE__ */ jsx(SimpleGridMediaVariables, { ...props, selector: `.${responsiveClassName}` }),
|
|
11096
10767
|
/* @__PURE__ */ jsx(Box, { ref, ...getStyles2("root", { className: responsiveClassName }), ...others })
|
|
@@ -11137,8 +10808,7 @@ const Thumb = forwardRef(
|
|
|
11137
10808
|
children = null,
|
|
11138
10809
|
disabled
|
|
11139
10810
|
}, ref) => {
|
|
11140
|
-
const { getStyles: getStyles2 } = useSliderContext(), [focused, setFocused] = useState(!1), isVisible = labelAlwaysOn || dragging || focused || showLabelOnHover &&
|
|
11141
|
-
isHovered;
|
|
10811
|
+
const { getStyles: getStyles2 } = useSliderContext(), [focused, setFocused] = useState(!1), isVisible = labelAlwaysOn || dragging || focused || showLabelOnHover && isHovered;
|
|
11142
10812
|
return /* @__PURE__ */ jsxs(
|
|
11143
10813
|
Box,
|
|
11144
10814
|
{
|
|
@@ -11185,8 +10855,7 @@ function getPosition({ value, min: min2, max: max2 }) {
|
|
|
11185
10855
|
return Math.min(Math.max(position, 0), 100);
|
|
11186
10856
|
}
|
|
11187
10857
|
function isMarkFilled({ mark, offset: offset2, value, inverted = !1 }) {
|
|
11188
|
-
return inverted ? typeof offset2 == "number" && mark.value <= offset2 || mark.value >= value : typeof offset2 == "number" ? mark.value >= offset2 &&
|
|
11189
|
-
mark.value <= value : mark.value <= value;
|
|
10858
|
+
return inverted ? typeof offset2 == "number" && mark.value <= offset2 || mark.value >= value : typeof offset2 == "number" ? mark.value >= offset2 && mark.value <= value : mark.value <= value;
|
|
11190
10859
|
}
|
|
11191
10860
|
function Marks({ marks, min: min2, max: max2, disabled, value, offset: offset2, inverted }) {
|
|
11192
10861
|
const { getStyles: getStyles2 } = useSliderContext();
|
|
@@ -11222,8 +10891,7 @@ function Track({
|
|
|
11222
10891
|
...others
|
|
11223
10892
|
}) {
|
|
11224
10893
|
const { getStyles: getStyles2 } = useSliderContext();
|
|
11225
|
-
return /* @__PURE__ */ jsx(Fragment$1, { children: /* @__PURE__ */ jsx(Box, { ...getStyles2("trackContainer"), mod: { disabled }, ...containerProps,
|
|
11226
|
-
children: /* @__PURE__ */ jsxs(Box, { ...getStyles2("track"), mod: { inverted, disabled }, children: [
|
|
10894
|
+
return /* @__PURE__ */ jsx(Fragment$1, { children: /* @__PURE__ */ jsx(Box, { ...getStyles2("trackContainer"), mod: { disabled }, ...containerProps, children: /* @__PURE__ */ jsxs(Box, { ...getStyles2("track"), mod: { inverted, disabled }, children: [
|
|
11227
10895
|
/* @__PURE__ */ jsx(
|
|
11228
10896
|
Box,
|
|
11229
10897
|
{
|
|
@@ -11248,8 +10916,7 @@ function getChangeValue({
|
|
|
11248
10916
|
step,
|
|
11249
10917
|
precision
|
|
11250
10918
|
}) {
|
|
11251
|
-
const dx = (containerWidth ? Math.min(Math.max(value, 0), containerWidth) / containerWidth : value) * (max2 - min2), nextValue = (dx !== 0 ? Math.round(
|
|
11252
|
-
dx / step) * step : 0) + min2, nextValueWithinStep = Math.max(nextValue, min2);
|
|
10919
|
+
const dx = (containerWidth ? Math.min(Math.max(value, 0), containerWidth) / containerWidth : value) * (max2 - min2), nextValue = (dx !== 0 ? Math.round(dx / step) * step : 0) + min2, nextValueWithinStep = Math.max(nextValue, min2);
|
|
11253
10920
|
return precision !== void 0 ? Number(nextValueWithinStep.toFixed(precision)) : nextValueWithinStep;
|
|
11254
10921
|
}
|
|
11255
10922
|
function getFloatingValue(value, precision) {
|
|
@@ -11261,8 +10928,7 @@ function getPrecision(step) {
|
|
|
11261
10928
|
const split = step.toString().split(".");
|
|
11262
10929
|
return split.length > 1 ? split[1].length : 0;
|
|
11263
10930
|
}
|
|
11264
|
-
var __default__$6 = { root: "m_dd36362e", label: "m_c9357328", thumb: "m_c9a9a60a", trackContainer: "m_a8645c2", track: "m_c9ade57f", bar: "m_38aeed47",
|
|
11265
|
-
markWrapper: "m_b7b0423a", mark: "m_dd33bc19", markLabel: "m_68c77a5b" };
|
|
10931
|
+
var __default__$6 = { root: "m_dd36362e", label: "m_c9357328", thumb: "m_c9a9a60a", trackContainer: "m_a8645c2", track: "m_c9ade57f", bar: "m_38aeed47", markWrapper: "m_b7b0423a", mark: "m_dd33bc19", markLabel: "m_68c77a5b" };
|
|
11266
10932
|
const defaultProps$a = {
|
|
11267
10933
|
radius: "xl",
|
|
11268
10934
|
min: 0,
|
|
@@ -11329,8 +10995,7 @@ const defaultProps$a = {
|
|
|
11329
10995
|
defaultValue: typeof defaultValue == "number" ? clamp$2(defaultValue, min2, max2) : defaultValue,
|
|
11330
10996
|
finalValue: clamp$2(0, min2, max2),
|
|
11331
10997
|
onChange
|
|
11332
|
-
}), valueRef = useRef(_value), root = useRef(), thumb = useRef(), position = getPosition({ value: _value, min: min2, max: max2 }), scaledValue = scale(
|
|
11333
|
-
_value), _label = typeof label == "function" ? label(scaledValue) : label, precision = _precision ?? getPrecision(step), handleChange = useCallback(
|
|
10998
|
+
}), valueRef = useRef(_value), root = useRef(), thumb = useRef(), position = getPosition({ value: _value, min: min2, max: max2 }), scaledValue = scale(_value), _label = typeof label == "function" ? label(scaledValue) : label, precision = _precision ?? getPrecision(step), handleChange = useCallback(
|
|
11334
10999
|
({ x }) => {
|
|
11335
11000
|
if (!disabled) {
|
|
11336
11001
|
const nextValue = getChangeValue({
|
|
@@ -11499,8 +11164,7 @@ const defaultProps$8 = {
|
|
|
11499
11164
|
defaultValue: initialState,
|
|
11500
11165
|
finalValue: !1,
|
|
11501
11166
|
onChange: onExpandedChange
|
|
11502
|
-
}), { ref: contentRef, height } = useElementSize(), spoilerMoreContent = show ? hideLabel : showLabel, spoiler = spoilerMoreContent !== null && maxHeight <
|
|
11503
|
-
height;
|
|
11167
|
+
}), { ref: contentRef, height } = useElementSize(), spoilerMoreContent = show ? hideLabel : showLabel, spoiler = spoilerMoreContent !== null && maxHeight < height;
|
|
11504
11168
|
return /* @__PURE__ */ jsxs(
|
|
11505
11169
|
Box,
|
|
11506
11170
|
{
|
|
@@ -11584,11 +11248,9 @@ Stack.displayName = "@mantine/core/Stack";
|
|
|
11584
11248
|
const [TabsProvider, useTabsContext] = createSafeContext(
|
|
11585
11249
|
"Tabs component was not found in the tree"
|
|
11586
11250
|
);
|
|
11587
|
-
var __default__$3 = { root: "m_89d60db1", "list--default": "m_576c9d4", list: "m_89d33d6d", panel: "m_b0c91715", tab: "m_4ec4dce6", tabSection: "
|
|
11588
|
-
20b1f", "tab--default": "m_539e827b", "list--outline": "m_6772fbd5", "tab--outline": "m_b59ab47c", "tab--pills": "m_c3381914" };
|
|
11251
|
+
var __default__$3 = { root: "m_89d60db1", "list--default": "m_576c9d4", list: "m_89d33d6d", panel: "m_b0c91715", tab: "m_4ec4dce6", tabSection: "m_fc420b1f", "tab--default": "m_539e827b", "list--outline": "m_6772fbd5", "tab--outline": "m_b59ab47c", "tab--pills": "m_c3381914" };
|
|
11589
11252
|
const defaultProps$6 = {}, TabsList = factory((_props, ref) => {
|
|
11590
|
-
const props = useProps("TabsList", defaultProps$6, _props), { children, className, grow, justify, classNames, styles, style, mod, ...others } = props,
|
|
11591
|
-
ctx = useTabsContext();
|
|
11253
|
+
const props = useProps("TabsList", defaultProps$6, _props), { children, className, grow, justify, classNames, styles, style, mod, ...others } = props, ctx = useTabsContext();
|
|
11592
11254
|
return /* @__PURE__ */ jsx(
|
|
11593
11255
|
Box,
|
|
11594
11256
|
{
|
|
@@ -11622,8 +11284,7 @@ const defaultProps$6 = {}, TabsList = factory((_props, ref) => {
|
|
|
11622
11284
|
TabsList.classes = __default__$3;
|
|
11623
11285
|
TabsList.displayName = "@mantine/core/TabsList";
|
|
11624
11286
|
const defaultProps$5 = {}, TabsPanel = factory((_props, ref) => {
|
|
11625
|
-
const props = useProps("TabsPanel", defaultProps$5, _props), { children, className, value, classNames, styles, style, mod, ...others } = props, ctx = useTabsContext(),
|
|
11626
|
-
active = ctx.value === value, content = ctx.keepMounted || props.keepMounted || active ? children : null;
|
|
11287
|
+
const props = useProps("TabsPanel", defaultProps$5, _props), { children, className, value, classNames, styles, style, mod, ...others } = props, ctx = useTabsContext(), active = ctx.value === value, content = ctx.keepMounted || props.keepMounted || active ? children : null;
|
|
11627
11288
|
return /* @__PURE__ */ jsx(
|
|
11628
11289
|
Box,
|
|
11629
11290
|
{
|
|
@@ -11838,8 +11499,7 @@ const defaultProps$2 = {}, varsResolver$2 = (theme, { size: size2, radius, varia
|
|
|
11838
11499
|
}
|
|
11839
11500
|
};
|
|
11840
11501
|
}, ThemeIcon = factory((_props, ref) => {
|
|
11841
|
-
const props = useProps("ThemeIcon", defaultProps$2, _props), { classNames, className, style, styles, unstyled, vars, autoContrast, ...others } = props,
|
|
11842
|
-
getStyles2 = useStyles({
|
|
11502
|
+
const props = useProps("ThemeIcon", defaultProps$2, _props), { classNames, className, style, styles, unstyled, vars, autoContrast, ...others } = props, getStyles2 = useStyles({
|
|
11843
11503
|
name: "ThemeIcon",
|
|
11844
11504
|
classes: __default__$2,
|
|
11845
11505
|
props,
|
|
@@ -11927,8 +11587,7 @@ Title.displayName = "@mantine/core/Title";
|
|
|
11927
11587
|
function getValuesRange(anchor, value, flatValues) {
|
|
11928
11588
|
if (!anchor || !value)
|
|
11929
11589
|
return [];
|
|
11930
|
-
const anchorIndex = flatValues.indexOf(anchor), valueIndex = flatValues.indexOf(value), start = Math.min(anchorIndex, valueIndex), end = Math.max(anchorIndex,
|
|
11931
|
-
valueIndex);
|
|
11590
|
+
const anchorIndex = flatValues.indexOf(anchor), valueIndex = flatValues.indexOf(value), start = Math.min(anchorIndex, valueIndex), end = Math.max(anchorIndex, valueIndex);
|
|
11932
11591
|
return flatValues.slice(start, end + 1);
|
|
11933
11592
|
}
|
|
11934
11593
|
function TreeNode({
|
|
@@ -11963,10 +11622,7 @@ function TreeNode({
|
|
|
11963
11622
|
},
|
|
11964
11623
|
child.value
|
|
11965
11624
|
)), handleKeyDown = (event) => {
|
|
11966
|
-
if (event.nativeEvent.code === "ArrowRight" && (event.stopPropagation(), event.preventDefault(), controller.expandedState[node.value] ? event.currentTarget.
|
|
11967
|
-
querySelector("[role=treeitem]")?.focus() : controller.expand(node.value)), event.nativeEvent.code === "ArrowLeft" && (event.stopPropagation(), event.
|
|
11968
|
-
preventDefault(), controller.expandedState[node.value] && (node.children || []).length > 0 ? controller.collapse(node.value) : isSubtree && findElementAncestor(
|
|
11969
|
-
event.currentTarget, "[role=treeitem]")?.focus()), event.nativeEvent.code === "ArrowDown" || event.nativeEvent.code === "ArrowUp") {
|
|
11625
|
+
if (event.nativeEvent.code === "ArrowRight" && (event.stopPropagation(), event.preventDefault(), controller.expandedState[node.value] ? event.currentTarget.querySelector("[role=treeitem]")?.focus() : controller.expand(node.value)), event.nativeEvent.code === "ArrowLeft" && (event.stopPropagation(), event.preventDefault(), controller.expandedState[node.value] && (node.children || []).length > 0 ? controller.collapse(node.value) : isSubtree && findElementAncestor(event.currentTarget, "[role=treeitem]")?.focus()), event.nativeEvent.code === "ArrowDown" || event.nativeEvent.code === "ArrowUp") {
|
|
11970
11626
|
const root = findElementAncestor(event.currentTarget, "[data-tree-root]");
|
|
11971
11627
|
if (!root)
|
|
11972
11628
|
return;
|
|
@@ -11984,9 +11640,7 @@ function TreeNode({
|
|
|
11984
11640
|
}
|
|
11985
11641
|
event.nativeEvent.code === "Space" && expandOnSpace && (event.stopPropagation(), event.preventDefault(), controller.toggleExpanded(node.value));
|
|
11986
11642
|
}, handleNodeClick = (event) => {
|
|
11987
|
-
event.stopPropagation(), allowRangeSelection && event.shiftKey && controller.anchorNode ? (controller.setSelectedState(getValuesRange(controller.anchorNode,
|
|
11988
|
-
node.value, flatValues)), ref.current?.focus()) : (expandOnClick && controller.toggleExpanded(node.value), selectOnClick && controller.select(node.
|
|
11989
|
-
value), ref.current?.focus());
|
|
11643
|
+
event.stopPropagation(), allowRangeSelection && event.shiftKey && controller.anchorNode ? (controller.setSelectedState(getValuesRange(controller.anchorNode, node.value, flatValues)), ref.current?.focus()) : (expandOnClick && controller.toggleExpanded(node.value), selectOnClick && controller.select(node.value), ref.current?.focus());
|
|
11990
11644
|
}, selected = controller.selectedState.includes(node.value), elementProps = {
|
|
11991
11645
|
...getStyles2("label"),
|
|
11992
11646
|
onClick: handleNodeClick,
|
|
@@ -12024,8 +11678,7 @@ function TreeNode({
|
|
|
12024
11678
|
hasChildren: Array.isArray(node.children) && node.children.length > 0,
|
|
12025
11679
|
elementProps
|
|
12026
11680
|
}) : /* @__PURE__ */ jsx("div", { ...elementProps, children: node.label }),
|
|
12027
|
-
controller.expandedState[node.value] && nested.length > 0 && /* @__PURE__ */ jsx("ul", { role: "group", ...getStyles2("subtree"), "data-level": level,
|
|
12028
|
-
children: nested })
|
|
11681
|
+
controller.expandedState[node.value] && nested.length > 0 && /* @__PURE__ */ jsx("ul", { role: "group", ...getStyles2("subtree"), "data-level": level, children: nested })
|
|
12029
11682
|
]
|
|
12030
11683
|
}
|
|
12031
11684
|
);
|
|
@@ -12033,8 +11686,7 @@ function TreeNode({
|
|
|
12033
11686
|
TreeNode.displayName = "@mantine/core/TreeNode";
|
|
12034
11687
|
function getInitialState(initialState, data, value, acc = {}) {
|
|
12035
11688
|
return data.forEach((node) => {
|
|
12036
|
-
acc[node.value] = node.value in initialState ? initialState[node.value] : node.value === value, Array.isArray(node.children) && getInitialState(initialState,
|
|
12037
|
-
node.children, value, acc);
|
|
11689
|
+
acc[node.value] = node.value in initialState ? initialState[node.value] : node.value === value, Array.isArray(node.children) && getInitialState(initialState, node.children, value, acc);
|
|
12038
11690
|
}), acc;
|
|
12039
11691
|
}
|
|
12040
11692
|
function useTree({
|
|
@@ -12042,8 +11694,7 @@ function useTree({
|
|
|
12042
11694
|
initialExpandedState = {},
|
|
12043
11695
|
multiple = !1
|
|
12044
11696
|
} = {}) {
|
|
12045
|
-
const [expandedState, setExpandedState] = useState(initialExpandedState), [selectedState, setSelectedState] = useState(initialSelectedState), [anchorNode,
|
|
12046
|
-
setAnchorNode] = useState(null), [hoveredNode, setHoveredNode] = useState(null), initialize = useCallback(
|
|
11697
|
+
const [expandedState, setExpandedState] = useState(initialExpandedState), [selectedState, setSelectedState] = useState(initialSelectedState), [anchorNode, setAnchorNode] = useState(null), [hoveredNode, setHoveredNode] = useState(null), initialize = useCallback(
|
|
12047
11698
|
(data) => {
|
|
12048
11699
|
setExpandedState((current) => getInitialState(current, data, selectedState));
|
|
12049
11700
|
},
|
|
@@ -12069,8 +11720,7 @@ function useTree({
|
|
|
12069
11720
|
}), next;
|
|
12070
11721
|
});
|
|
12071
11722
|
}, []), toggleSelected = useCallback(
|
|
12072
|
-
(value) => setSelectedState((current) => multiple ? current.includes(value) ? (setAnchorNode(null), current.filter((item) => item !== value)) : (setAnchorNode(
|
|
12073
|
-
value), [...current, value]) : current.includes(value) ? (setAnchorNode(null), []) : (setAnchorNode(value), [value])),
|
|
11723
|
+
(value) => setSelectedState((current) => multiple ? current.includes(value) ? (setAnchorNode(null), current.filter((item) => item !== value)) : (setAnchorNode(value), [...current, value]) : current.includes(value) ? (setAnchorNode(null), []) : (setAnchorNode(value), [value])),
|
|
12074
11724
|
[]
|
|
12075
11725
|
), select = useCallback((value) => {
|
|
12076
11726
|
setAnchorNode(value), setSelectedState(
|
|
@@ -12182,70 +11832,70 @@ const defaultProps = {
|
|
|
12182
11832
|
Tree.displayName = "@mantine/core/Tree";
|
|
12183
11833
|
Tree.classes = __default__;
|
|
12184
11834
|
export {
|
|
12185
|
-
|
|
11835
|
+
useMantineTheme as $,
|
|
12186
11836
|
ActionIcon as A,
|
|
12187
|
-
|
|
12188
|
-
|
|
12189
|
-
|
|
12190
|
-
|
|
11837
|
+
Button as B,
|
|
11838
|
+
Container as C,
|
|
11839
|
+
Divider as D,
|
|
11840
|
+
useTree as E,
|
|
12191
11841
|
Flex as F,
|
|
12192
11842
|
Group as G,
|
|
12193
|
-
|
|
12194
|
-
|
|
12195
|
-
|
|
12196
|
-
|
|
12197
|
-
|
|
11843
|
+
HoverCard as H,
|
|
11844
|
+
useComputedColorScheme as I,
|
|
11845
|
+
Tree as J,
|
|
11846
|
+
ThemeIcon as K,
|
|
11847
|
+
Drawer as L,
|
|
12198
11848
|
MantineProvider as M,
|
|
12199
|
-
|
|
12200
|
-
|
|
12201
|
-
|
|
12202
|
-
|
|
12203
|
-
|
|
12204
|
-
|
|
12205
|
-
|
|
12206
|
-
|
|
12207
|
-
|
|
12208
|
-
|
|
12209
|
-
|
|
12210
|
-
|
|
12211
|
-
|
|
12212
|
-
|
|
12213
|
-
|
|
12214
|
-
|
|
12215
|
-
|
|
12216
|
-
|
|
12217
|
-
|
|
12218
|
-
|
|
12219
|
-
|
|
12220
|
-
|
|
12221
|
-
|
|
12222
|
-
|
|
12223
|
-
|
|
12224
|
-
|
|
12225
|
-
|
|
12226
|
-
|
|
11849
|
+
ScrollArea as N,
|
|
11850
|
+
Alert as O,
|
|
11851
|
+
Code as P,
|
|
11852
|
+
ModalRoot as Q,
|
|
11853
|
+
ModalOverlay as R,
|
|
11854
|
+
Stack as S,
|
|
11855
|
+
Title as T,
|
|
11856
|
+
UnstyledButton as U,
|
|
11857
|
+
ModalContent as V,
|
|
11858
|
+
ModalBody as W,
|
|
11859
|
+
Tabs as X,
|
|
11860
|
+
TabsList as Y,
|
|
11861
|
+
TabsTab as Z,
|
|
11862
|
+
TabsPanel as _,
|
|
11863
|
+
Text as a,
|
|
11864
|
+
useMediaQuery as a0,
|
|
11865
|
+
useDisclosure as a1,
|
|
11866
|
+
Paper as a2,
|
|
11867
|
+
Menu as a3,
|
|
11868
|
+
MenuTarget as a4,
|
|
11869
|
+
MenuDropdown as a5,
|
|
11870
|
+
MenuItem as a6,
|
|
11871
|
+
MenuLabel as a7,
|
|
11872
|
+
MenuDivider as a8,
|
|
11873
|
+
Burger as a9,
|
|
11874
|
+
useCallbackRef as aa,
|
|
11875
|
+
Loader as ab,
|
|
11876
|
+
MantineContext as b,
|
|
12227
11877
|
createTheme as c,
|
|
12228
|
-
|
|
12229
|
-
|
|
12230
|
-
|
|
12231
|
-
|
|
12232
|
-
|
|
12233
|
-
|
|
12234
|
-
|
|
12235
|
-
|
|
12236
|
-
|
|
12237
|
-
|
|
12238
|
-
|
|
12239
|
-
|
|
12240
|
-
|
|
12241
|
-
|
|
11878
|
+
clsx as d,
|
|
11879
|
+
Box as e,
|
|
11880
|
+
HoverCardTarget as f,
|
|
11881
|
+
HoverCardDropdown as g,
|
|
11882
|
+
Anchor as h,
|
|
11883
|
+
CopyButton as i,
|
|
11884
|
+
Card as j,
|
|
11885
|
+
CardSection as k,
|
|
11886
|
+
Spoiler as l,
|
|
11887
|
+
useHotkeys as m,
|
|
11888
|
+
ButtonGroup as n,
|
|
11889
|
+
Space as o,
|
|
11890
|
+
TooltipGroup as p,
|
|
11891
|
+
Tooltip as q,
|
|
12242
11892
|
rem as r,
|
|
12243
|
-
|
|
12244
|
-
|
|
12245
|
-
|
|
12246
|
-
|
|
12247
|
-
|
|
12248
|
-
|
|
12249
|
-
|
|
12250
|
-
|
|
11893
|
+
ColorSwatch as s,
|
|
11894
|
+
CheckIcon as t,
|
|
11895
|
+
useLocalStorage as u,
|
|
11896
|
+
Select as v,
|
|
11897
|
+
Slider as w,
|
|
11898
|
+
SegmentedControl as x,
|
|
11899
|
+
SimpleGrid as y,
|
|
11900
|
+
useMantineColorScheme as z
|
|
12251
11901
|
};
|