likec4 1.11.0 → 1.12.1
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__/react/likec4.tsx +13 -12
- package/dist/__app__/src/chunks/{-index-overview-B8AbCuYt.js → -index-overview-BCq3uZl4.js} +6 -6
- package/dist/__app__/src/chunks/{likec4-DOemzWvz.js → likec4-CNg5BLwi.js} +85 -24
- package/dist/__app__/src/chunks/{main-OEl3ruxE.js → main-TBVrmxK9.js} +8405 -4468
- package/dist/__app__/src/chunks/{mantine-BqgMLMPH.js → mantine-CDAXKBgY.js} +280 -119
- package/dist/__app__/src/chunks/{tanstack-router-Mzh8n5Lx.js → tanstack-router-COsz5nw6.js} +1 -1
- package/dist/__app__/src/const.js +2 -0
- package/dist/__app__/src/main.js +1 -1
- package/dist/__app__/src/style.css +1 -1
- package/dist/__app__/webcomponent/webcomponent.js +16783 -14204
- package/dist/chunks/prompt.mjs +1 -1
- package/dist/cli/index.mjs +3 -3
- package/dist/index.d.mts +16 -6
- package/dist/index.d.ts +16 -6
- package/dist/index.mjs +1 -1
- package/dist/shared/likec4.DIJE01bW.mjs +1816 -0
- package/icons/all.d.ts +589 -0
- package/icons/all.js +1178 -0
- package/icons/azure/abs-member.js +21 -0
- package/icons/azure/active-directory-connect-health.js +115 -0
- package/icons/azure/activity-log.js +33 -0
- package/icons/azure/administrative-units.js +80 -0
- package/icons/azure/advisor.js +44 -0
- package/icons/azure/ai-studio.js +105 -0
- package/icons/azure/aks-automatic.js +105 -0
- package/icons/azure/aks-istio.js +63 -0
- package/icons/azure/alerts.js +29 -0
- package/icons/azure/all-resources.js +21 -0
- package/icons/azure/analysis-services.js +34 -0
- package/icons/azure/anomaly-detector.js +33 -0
- package/icons/azure/api-center.js +31 -0
- package/icons/azure/api-connections.js +44 -0
- package/icons/azure/api-management-services.js +29 -0
- package/icons/azure/api-proxy.js +32 -0
- package/icons/azure/app-compliance-automation.js +71 -0
- package/icons/azure/app-configuration.js +45 -0
- package/icons/azure/app-registrations.js +39 -0
- package/icons/azure/app-service-certificates.js +31 -0
- package/icons/azure/app-service-domains.js +23 -0
- package/icons/azure/app-service-environments.js +25 -0
- package/icons/azure/app-service-plans.js +44 -0
- package/icons/azure/app-services.js +82 -0
- package/icons/azure/app-space-component.js +39 -0
- package/icons/azure/app-space.js +37 -0
- package/icons/azure/applens.js +45 -0
- package/icons/azure/application-gateway-containers.js +113 -0
- package/icons/azure/application-gateways.js +60 -0
- package/icons/azure/application-group.js +21 -0
- package/icons/azure/application-insights.js +46 -0
- package/icons/azure/application-security-groups.js +43 -0
- package/icons/azure/aquila.js +95 -0
- package/icons/azure/arc-data-services.js +49 -0
- package/icons/azure/arc-kubernetes.js +73 -0
- package/icons/azure/arc-machines.js +40 -0
- package/icons/azure/arc-postgre-sql.js +62 -0
- package/icons/azure/arc-sql-managed-instance.js +54 -0
- package/icons/azure/arc-sql-server.js +40 -0
- package/icons/azure/atm-multistack.js +59 -0
- package/icons/azure/auto-scale.js +32 -0
- package/icons/azure/automanaged-vm.js +65 -0
- package/icons/azure/automation-accounts.js +62 -0
- package/icons/azure/availability-sets.js +48 -0
- package/icons/azure/avs-vm.js +32 -0
- package/icons/azure/azure-a.js +46 -0
- package/icons/azure/azure-ad-b2c.js +129 -0
- package/icons/azure/azure-api-for-fhir.js +22 -0
- package/icons/azure/azure-applied-ai-services.js +60 -0
- package/icons/azure/azure-arc.js +75 -0
- package/icons/azure/azure-attestation.js +35 -0
- package/icons/azure/azure-backup-center.js +63 -0
- package/icons/azure/azure-blockchain-service.js +51 -0
- package/icons/azure/azure-center-for-sap.js +37 -0
- package/icons/azure/azure-chaos-studio.js +41 -0
- package/icons/azure/azure-cloud-shell.js +28 -0
- package/icons/azure/azure-communication-services.js +41 -0
- package/icons/azure/azure-communications-gateway.js +32 -0
- package/icons/azure/azure-compute-galleries.js +24 -0
- package/icons/azure/azure-cosmos-db.js +41 -0
- package/icons/azure/azure-data-catalog.js +69 -0
- package/icons/azure/azure-data-explorer-clusters.js +82 -0
- package/icons/azure/azure-database-maria-db-server.js +45 -0
- package/icons/azure/azure-database-migration-services.js +62 -0
- package/icons/azure/azure-database-my-sql-server.js +45 -0
- package/icons/azure/azure-database-postgre-sql-server-group.js +65 -0
- package/icons/azure/azure-database-postgre-sql-server.js +57 -0
- package/icons/azure/azure-databox-gateway.js +28 -0
- package/icons/azure/azure-databricks.js +12 -0
- package/icons/azure/azure-deployment-environments.js +48 -0
- package/icons/azure/azure-dev-ops.js +21 -0
- package/icons/azure/azure-dev-tunnels.js +20 -0
- package/icons/azure/azure-edge-hardware-center.js +58 -0
- package/icons/azure/azure-experimentation-studio.js +77 -0
- package/icons/azure/azure-fileshares.js +46 -0
- package/icons/azure/azure-firewall-manager.js +49 -0
- package/icons/azure/azure-firewall-policy.js +37 -0
- package/icons/azure/azure-hcp-cache.js +23 -0
- package/icons/azure/azure-hpc-workbenches.js +68 -0
- package/icons/azure/azure-hybrid-center.js +22 -0
- package/icons/azure/azure-information-protection.js +51 -0
- package/icons/azure/azure-io-t-operations.js +46 -0
- package/icons/azure/azure-lighthouse.js +35 -0
- package/icons/azure/azure-load-testing.js +56 -0
- package/icons/azure/azure-managed-grafana.js +19 -0
- package/icons/azure/azure-maps-accounts.js +16 -0
- package/icons/azure/azure-media-service.js +90 -0
- package/icons/azure/azure-migrate.js +46 -0
- package/icons/azure/azure-monitor-dashboard.js +47 -0
- package/icons/azure/azure-monitor-pipeline.js +57 -0
- package/icons/azure/azure-monitors-for-sap-solutions.js +49 -0
- package/icons/azure/azure-net-app-files.js +36 -0
- package/icons/azure/azure-network-function-manager-functions.js +41 -0
- package/icons/azure/azure-network-function-manager.js +65 -0
- package/icons/azure/azure-object-understanding.js +39 -0
- package/icons/azure/azure-open-ai.js +29 -0
- package/icons/azure/azure-operator-5g-core.js +64 -0
- package/icons/azure/azure-operator-insights.js +31 -0
- package/icons/azure/azure-operator-nexus.js +54 -0
- package/icons/azure/azure-operator-service-manager.js +30 -0
- package/icons/azure/azure-orbital.js +115 -0
- package/icons/azure/azure-programmable-connectivity.js +145 -0
- package/icons/azure/azure-purview-accounts.js +56 -0
- package/icons/azure/azure-quotas.js +43 -0
- package/icons/azure/azure-red-hat-open-shift.js +44 -0
- package/icons/azure/azure-sentinel.js +37 -0
- package/icons/azure/azure-service-bus.js +66 -0
- package/icons/azure/azure-sphere.js +57 -0
- package/icons/azure/azure-spring-apps.js +67 -0
- package/icons/azure/azure-sql-edge.js +146 -0
- package/icons/azure/azure-sql-server-stretch-databases.js +54 -0
- package/icons/azure/azure-sql-vm.js +37 -0
- package/icons/azure/azure-sql.js +27 -0
- package/icons/azure/azure-stack-edge.js +33 -0
- package/icons/azure/azure-stack-hci-sizer.js +57 -0
- package/icons/azure/azure-stack.js +54 -0
- package/icons/azure/azure-storage-mover.js +58 -0
- package/icons/azure/azure-support-center-blue.js +31 -0
- package/icons/azure/azure-sustainability.js +42 -0
- package/icons/azure/azure-synapse-analytics.js +49 -0
- package/icons/azure/azure-token-service.js +46 -0
- package/icons/azure/azure-video-indexer.js +60 -0
- package/icons/azure/azure-virtual-desktop.js +19 -0
- package/icons/azure/azure-vmware-solution.js +35 -0
- package/icons/azure/azure-workbooks.js +72 -0
- package/icons/azure/azurite.js +34 -0
- package/icons/azure/backlog.js +48 -0
- package/icons/azure/backup-vault.js +49 -0
- package/icons/azure/bare-metal-infrastructure.js +41 -0
- package/icons/azure/bastions.js +71 -0
- package/icons/azure/batch-accounts.js +52 -0
- package/icons/azure/batch-ai.js +56 -0
- package/icons/azure/biz-talk.js +39 -0
- package/icons/azure/blob-block.js +17 -0
- package/icons/azure/blob-page.js +43 -0
- package/icons/azure/blockchain-applications.js +32 -0
- package/icons/azure/blueprints.js +56 -0
- package/icons/azure/bonsai.js +63 -0
- package/icons/azure/bot-services.js +43 -0
- package/icons/azure/branch.js +32 -0
- package/icons/azure/browser.js +16 -0
- package/icons/azure/bug.js +26 -0
- package/icons/azure/builds.js +48 -0
- package/icons/azure/business-process-tracking.js +28 -0
- package/icons/azure/cache-redis.js +72 -0
- package/icons/azure/cache.js +113 -0
- package/icons/azure/capacity-reservation-groups.js +47 -0
- package/icons/azure/capacity.js +74 -0
- package/icons/azure/cdn-profiles.js +21 -0
- package/icons/azure/central-service-instance-for-sap.js +44 -0
- package/icons/azure/ceres.js +58 -0
- package/icons/azure/change-analysis.js +93 -0
- package/icons/azure/client-apps.js +21 -0
- package/icons/azure/cloud-services-classic.js +37 -0
- package/icons/azure/cloud-services-extended-support.js +50 -0
- package/icons/azure/cloud-test.js +58 -0
- package/icons/azure/code-optimization.js +146 -0
- package/icons/azure/code.js +94 -0
- package/icons/azure/cognitive-search.js +26 -0
- package/icons/azure/cognitive-services-decisions.js +94 -0
- package/icons/azure/cognitive-services.js +42 -0
- package/icons/azure/collaborative-service.js +46 -0
- package/icons/azure/commit.js +30 -0
- package/icons/azure/community-images.js +35 -0
- package/icons/azure/compliance-center.js +48 -0
- package/icons/azure/compliance.js +35 -0
- package/icons/azure/compute-fleet.js +91 -0
- package/icons/azure/computer-vision.js +24 -0
- package/icons/azure/conditional-access.js +45 -0
- package/icons/azure/confidential-ledgers.js +63 -0
- package/icons/azure/connected-cache.js +77 -0
- package/icons/azure/connected-vehicle-platform.js +66 -0
- package/icons/azure/connections.js +54 -0
- package/icons/azure/consortium.js +63 -0
- package/icons/azure/container-apps-environments.js +44 -0
- package/icons/azure/container-instances.js +37 -0
- package/icons/azure/container-registries.js +57 -0
- package/icons/azure/container-services-deprecated.js +65 -0
- package/icons/azure/content-moderators.js +41 -0
- package/icons/azure/content-safety.js +77 -0
- package/icons/azure/controls-horizontal.js +135 -0
- package/icons/azure/controls.js +33 -0
- package/icons/azure/cost-alerts.js +28 -0
- package/icons/azure/cost-analysis.js +35 -0
- package/icons/azure/cost-budgets.js +30 -0
- package/icons/azure/cost-export.js +25 -0
- package/icons/azure/cost-management-and-billing.js +31 -0
- package/icons/azure/cost-management.js +35 -0
- package/icons/azure/counter.js +33 -0
- package/icons/azure/cubes.js +16 -0
- package/icons/azure/custom-ip-prefix.js +34 -0
- package/icons/azure/custom-vision.js +48 -0
- package/icons/azure/customer-lockbox-for-microsoft-azure.js +42 -0
- package/icons/azure/dashboard-hub.js +61 -0
- package/icons/azure/dashboard.js +42 -0
- package/icons/azure/data-box.js +33 -0
- package/icons/azure/data-collection-rules.js +42 -0
- package/icons/azure/data-factories.js +36 -0
- package/icons/azure/data-lake-analytics.js +32 -0
- package/icons/azure/data-lake-storage-gen1.js +38 -0
- package/icons/azure/data-lake-store-gen1.js +38 -0
- package/icons/azure/data-share-invitations.js +23 -0
- package/icons/azure/data-shares.js +67 -0
- package/icons/azure/database-instance-for-sap.js +69 -0
- package/icons/azure/ddo-s-protection-plans.js +36 -0
- package/icons/azure/dedicated-hsm.js +38 -0
- package/icons/azure/defender-cm-local-manager.js +131 -0
- package/icons/azure/defender-dcs-controller.js +66 -0
- package/icons/azure/defender-distributer-control-system.js +45 -0
- package/icons/azure/defender-engineering-station.js +71 -0
- package/icons/azure/defender-external-management.js +88 -0
- package/icons/azure/defender-freezer-monitor.js +151 -0
- package/icons/azure/defender-historian.js +53 -0
- package/icons/azure/defender-hmi.js +43 -0
- package/icons/azure/defender-industrial-packaging-system.js +75 -0
- package/icons/azure/defender-industrial-printer.js +34 -0
- package/icons/azure/defender-industrial-robot.js +99 -0
- package/icons/azure/defender-industrial-scale-system.js +58 -0
- package/icons/azure/defender-marquee.js +38 -0
- package/icons/azure/defender-meter.js +101 -0
- package/icons/azure/defender-plc.js +55 -0
- package/icons/azure/defender-pneumatic-device.js +50 -0
- package/icons/azure/defender-programable-board.js +82 -0
- package/icons/azure/defender-relay.js +49 -0
- package/icons/azure/defender-robot-controller.js +79 -0
- package/icons/azure/defender-rtu.js +23 -0
- package/icons/azure/defender-sensor.js +44 -0
- package/icons/azure/defender-slot.js +31 -0
- package/icons/azure/defender-web-guiding-system.js +167 -0
- package/icons/azure/detonation.js +30 -0
- package/icons/azure/dev-console.js +30 -0
- package/icons/azure/dev-ops-starter.js +102 -0
- package/icons/azure/dev-test-labs.js +46 -0
- package/icons/azure/device-compliance.js +40 -0
- package/icons/azure/device-configuration.js +33 -0
- package/icons/azure/device-enrollment.js +37 -0
- package/icons/azure/device-provisioning-services.js +43 -0
- package/icons/azure/device-security-apple.js +43 -0
- package/icons/azure/device-security-google.js +43 -0
- package/icons/azure/device-security-windows.js +43 -0
- package/icons/azure/device-update-io-t-hub.js +35 -0
- package/icons/azure/devices.js +29 -0
- package/icons/azure/diagnostics-settings.js +40 -0
- package/icons/azure/digital-twins.js +40 -0
- package/icons/azure/disk-encryption-sets.js +63 -0
- package/icons/azure/disk-pool.js +92 -0
- package/icons/azure/disks-classic.js +63 -0
- package/icons/azure/disks-snapshots.js +49 -0
- package/icons/azure/disks.js +63 -0
- package/icons/azure/dns-multistack.js +49 -0
- package/icons/azure/dns-private-resolver.js +39 -0
- package/icons/azure/dns-security-policy.js +90 -0
- package/icons/azure/dns-zones.js +37 -0
- package/icons/azure/download.js +60 -0
- package/icons/azure/e-books.js +42 -0
- package/icons/azure/edge-management.js +53 -0
- package/icons/azure/education.js +42 -0
- package/icons/azure/elastic-job-agents.js +50 -0
- package/icons/azure/elastic-san.js +65 -0
- package/icons/azure/endpoint-analytics.js +72 -0
- package/icons/azure/enterprise-applications.js +55 -0
- package/icons/azure/entra-connect-health.js +115 -0
- package/icons/azure/entra-connect-sync.js +86 -0
- package/icons/azure/entra-connect.js +123 -0
- package/icons/azure/entra-domain-services.js +99 -0
- package/icons/azure/entra-global-secure-access.js +37 -0
- package/icons/azure/entra-id-protection.js +63 -0
- package/icons/azure/entra-identity-custom-roles.js +62 -0
- package/icons/azure/entra-identity-licenses.js +52 -0
- package/icons/azure/entra-identity-risky-signins.js +28 -0
- package/icons/azure/entra-identity-risky-users.js +28 -0
- package/icons/azure/entra-identity-roles-and-administrators.js +31 -0
- package/icons/azure/entra-internet-access.js +72 -0
- package/icons/azure/entra-managed-identities.js +114 -0
- package/icons/azure/entra-private-access.js +60 -0
- package/icons/azure/entra-privleged-identity-management.js +114 -0
- package/icons/azure/entra-verified-id.js +53 -0
- package/icons/azure/error.js +30 -0
- package/icons/azure/event-grid-domains.js +65 -0
- package/icons/azure/event-grid-subscriptions.js +65 -0
- package/icons/azure/event-grid-topics.js +68 -0
- package/icons/azure/event-hub-clusters.js +77 -0
- package/icons/azure/event-hubs.js +64 -0
- package/icons/azure/exchange-access.js +45 -0
- package/icons/azure/exchange-on-premises-access.js +28 -0
- package/icons/azure/express-route-circuits.js +38 -0
- package/icons/azure/express-route-direct.js +50 -0
- package/icons/azure/express-route-traffic-collector.js +86 -0
- package/icons/azure/extended-security-updates.js +33 -0
- package/icons/azure/extensions.js +28 -0
- package/icons/azure/external-identities.js +42 -0
- package/icons/azure/face-apis.js +19 -0
- package/icons/azure/feature-previews.js +21 -0
- package/icons/azure/fhir-service.js +60 -0
- package/icons/azure/fiji.js +42 -0
- package/icons/azure/file.js +29 -0
- package/icons/azure/files.js +45 -0
- package/icons/azure/firewalls.js +32 -0
- package/icons/azure/folder-blank.js +28 -0
- package/icons/azure/folder-website.js +84 -0
- package/icons/azure/form-recognizers.js +48 -0
- package/icons/azure/free-services.js +43 -0
- package/icons/azure/front-door-and-cdn-profiles.js +26 -0
- package/icons/azure/ftp.js +17 -0
- package/icons/azure/function-apps.js +61 -0
- package/icons/azure/gear.js +37 -0
- package/icons/azure/genomics-accounts.js +57 -0
- package/icons/azure/genomics.js +57 -0
- package/icons/azure/globe-error.js +42 -0
- package/icons/azure/globe-success.js +52 -0
- package/icons/azure/globe-warning.js +53 -0
- package/icons/azure/groups.js +42 -0
- package/icons/azure/guide.js +17 -0
- package/icons/azure/hd-insight-clusters.js +38 -0
- package/icons/azure/hdi-aks-cluster.js +60 -0
- package/icons/azure/heart.js +31 -0
- package/icons/azure/help-and-support.js +33 -0
- package/icons/azure/host-groups.js +48 -0
- package/icons/azure/host-pools.js +19 -0
- package/icons/azure/hosts.js +46 -0
- package/icons/azure/ic-m-troubleshooting.js +60 -0
- package/icons/azure/identity-governance.js +41 -0
- package/icons/azure/identity-multi-factor-authentication.js +71 -0
- package/icons/azure/identity-secure-score.js +55 -0
- package/icons/azure/image-definitions.js +27 -0
- package/icons/azure/image-templates.js +32 -0
- package/icons/azure/image-versions.js +27 -0
- package/icons/azure/image.js +31 -0
- package/icons/azure/images.js +37 -0
- package/icons/azure/immersive-readers.js +60 -0
- package/icons/azure/import-export-jobs.js +25 -0
- package/icons/azure/industrial-io-t.js +53 -0
- package/icons/azure/information.js +21 -0
- package/icons/azure/infrastructure-backup.js +67 -0
- package/icons/azure/input-output.js +97 -0
- package/icons/azure/instance-pools.js +76 -0
- package/icons/azure/integration-accounts.js +30 -0
- package/icons/azure/integration-environments.js +94 -0
- package/icons/azure/integration-service-environments.js +58 -0
- package/icons/azure/internet-analyzer-profiles.js +48 -0
- package/icons/azure/intune-app-protection.js +46 -0
- package/icons/azure/intune-for-education.js +46 -0
- package/icons/azure/intune-trends.js +29 -0
- package/icons/azure/intune.js +46 -0
- package/icons/azure/io-t-central-applications.js +20 -0
- package/icons/azure/io-t-edge.js +25 -0
- package/icons/azure/io-t-hub.js +36 -0
- package/icons/azure/ip-address-manager.js +52 -0
- package/icons/azure/ip-groups.js +39 -0
- package/icons/azure/journey-hub.js +30 -0
- package/icons/azure/key-vaults.js +61 -0
- package/icons/azure/keys.js +97 -0
- package/icons/azure/kubernetes-fleet-manager.js +73 -0
- package/icons/azure/kubernetes-services.js +65 -0
- package/icons/azure/lab-accounts.js +47 -0
- package/icons/azure/lab-services.js +46 -0
- package/icons/azure/language-understanding.js +14 -0
- package/icons/azure/language.js +71 -0
- package/icons/azure/launch-portal.js +25 -0
- package/icons/azure/learn.js +61 -0
- package/icons/azure/load-balancer-hub.js +90 -0
- package/icons/azure/load-balancers.js +28 -0
- package/icons/azure/load-test.js +50 -0
- package/icons/azure/load-testing.js +71 -0
- package/icons/azure/local-network-gateways.js +33 -0
- package/icons/azure/location.js +34 -0
- package/icons/azure/log-analytics-query-pack.js +57 -0
- package/icons/azure/log-analytics-workspaces.js +36 -0
- package/icons/azure/log-streaming.js +46 -0
- package/icons/azure/logic-apps-custom-connector.js +43 -0
- package/icons/azure/logic-apps.js +54 -0
- package/icons/azure/machine-learning-studio-classic-web-services.js +38 -0
- package/icons/azure/machine-learning-studio-web-service-plans.js +62 -0
- package/icons/azure/machine-learning-studio-workspaces.js +44 -0
- package/icons/azure/machine-learning.js +29 -0
- package/icons/azure/machines-azure-arc.js +27 -0
- package/icons/azure/maintenance-configuration.js +62 -0
- package/icons/azure/managed-applications-center.js +44 -0
- package/icons/azure/managed-database.js +57 -0
- package/icons/azure/managed-desktop.js +40 -0
- package/icons/azure/managed-dev-ops-pools.js +59 -0
- package/icons/azure/managed-file-shares.js +59 -0
- package/icons/azure/managed-identities.js +44 -0
- package/icons/azure/managed-instance-apache-cassandra.js +49 -0
- package/icons/azure/managed-service-fabric.js +98 -0
- package/icons/azure/management-groups.js +66 -0
- package/icons/azure/management-portal.js +17 -0
- package/icons/azure/marketplace-management.js +36 -0
- package/icons/azure/marketplace.js +38 -0
- package/icons/azure/med-tech-service.js +65 -0
- package/icons/azure/media-file.js +36 -0
- package/icons/azure/media.js +108 -0
- package/icons/azure/mesh-applications.js +47 -0
- package/icons/azure/metrics-advisor.js +47 -0
- package/icons/azure/metrics.js +34 -0
- package/icons/azure/microsoft-defender-easm.js +69 -0
- package/icons/azure/microsoft-defender-for-cloud.js +50 -0
- package/icons/azure/microsoft-defender-for-io-t.js +43 -0
- package/icons/azure/microsoft-dev-box.js +143 -0
- package/icons/azure/mindaro.js +47 -0
- package/icons/azure/mission-landing-zone.js +48 -0
- package/icons/azure/mobile-engagement.js +35 -0
- package/icons/azure/mobile-networks.js +75 -0
- package/icons/azure/mobile.js +28 -0
- package/icons/azure/modular-data-center.js +61 -0
- package/icons/azure/module.js +25 -0
- package/icons/azure/monitor-health-models.js +77 -0
- package/icons/azure/monitor.js +61 -0
- package/icons/azure/multi-tenancy.js +47 -0
- package/icons/azure/multifactor-authentication.js +84 -0
- package/icons/azure/my-customers.js +42 -0
- package/icons/azure/nat.js +45 -0
- package/icons/azure/network-interfaces.js +41 -0
- package/icons/azure/network-managers.js +44 -0
- package/icons/azure/network-security-groups.js +42 -0
- package/icons/azure/network-security-perimeters.js +91 -0
- package/icons/azure/network-watcher.js +55 -0
- package/icons/azure/notification-hub-namespaces.js +22 -0
- package/icons/azure/notification-hubs.js +22 -0
- package/icons/azure/offers.js +35 -0
- package/icons/azure/on-premises-data-gateways.js +33 -0
- package/icons/azure/open-supply-chain-platform.js +54 -0
- package/icons/azure/operation-log-classic.js +33 -0
- package/icons/azure/oracle-database.js +33 -0
- package/icons/azure/os-images-classic.js +38 -0
- package/icons/azure/osconfig.js +71 -0
- package/icons/azure/outbound-connection.js +24 -0
- package/icons/azure/partner-namespace.js +97 -0
- package/icons/azure/partner-registration.js +95 -0
- package/icons/azure/partner-topic.js +82 -0
- package/icons/azure/peering-service.js +27 -0
- package/icons/azure/peerings.js +33 -0
- package/icons/azure/personalizers.js +55 -0
- package/icons/azure/plans.js +40 -0
- package/icons/azure/policy.js +34 -0
- package/icons/azure/power-bi-embedded.js +69 -0
- package/icons/azure/power-platform.js +163 -0
- package/icons/azure/power-up.js +42 -0
- package/icons/azure/power.js +31 -0
- package/icons/azure/powershell.js +30 -0
- package/icons/azure/preview-features.js +50 -0
- package/icons/azure/private-endpoints.js +69 -0
- package/icons/azure/private-link-service.js +83 -0
- package/icons/azure/private-link-services.js +72 -0
- package/icons/azure/private-link.js +94 -0
- package/icons/azure/process-explorer.js +23 -0
- package/icons/azure/production-ready-database.js +70 -0
- package/icons/azure/proximity-placement-groups.js +71 -0
- package/icons/azure/public-ip-addresses-classic.js +19 -0
- package/icons/azure/public-ip-addresses.js +19 -0
- package/icons/azure/public-ip-prefixes.js +53 -0
- package/icons/azure/qn-a-makers.js +50 -0
- package/icons/azure/quickstart-center.js +54 -0
- package/icons/azure/recent.js +57 -0
- package/icons/azure/recovery-services-vaults.js +45 -0
- package/icons/azure/region-management.js +42 -0
- package/icons/azure/relays.js +45 -0
- package/icons/azure/remote-rendering.js +71 -0
- package/icons/azure/reservations.js +37 -0
- package/icons/azure/reserved-capacity.js +45 -0
- package/icons/azure/reserved-ip-addresses-classic.js +21 -0
- package/icons/azure/resource-explorer.js +33 -0
- package/icons/azure/resource-graph-explorer.js +25 -0
- package/icons/azure/resource-group-list.js +48 -0
- package/icons/azure/resource-groups.js +40 -0
- package/icons/azure/resource-guard.js +46 -0
- package/icons/azure/resource-linked.js +40 -0
- package/icons/azure/resource-management-private-link.js +44 -0
- package/icons/azure/resource-mover.js +20 -0
- package/icons/azure/resources-provider.js +27 -0
- package/icons/azure/restore-points-collections.js +40 -0
- package/icons/azure/restore-points.js +39 -0
- package/icons/azure/route-filters.js +39 -0
- package/icons/azure/route-tables.js +40 -0
- package/icons/azure/rtos.js +64 -0
- package/icons/azure/savings-plans.js +53 -0
- package/icons/azure/scheduler-job-collections.js +73 -0
- package/icons/azure/scheduler.js +75 -0
- package/icons/azure/scvmm-management-servers.js +68 -0
- package/icons/azure/search-grid.js +48 -0
- package/icons/azure/search.js +28 -0
- package/icons/azure/security-baselines.js +44 -0
- package/icons/azure/security.js +22 -0
- package/icons/azure/send-grid-accounts.js +25 -0
- package/icons/azure/server-farm.js +54 -0
- package/icons/azure/serverless-search.js +54 -0
- package/icons/azure/service-catalog-mad.js +48 -0
- package/icons/azure/service-endpoint-policies.js +64 -0
- package/icons/azure/service-fabric-clusters.js +53 -0
- package/icons/azure/service-health.js +34 -0
- package/icons/azure/service-providers.js +38 -0
- package/icons/azure/shared-image-galleries.js +21 -0
- package/icons/azure/signal-r.js +22 -0
- package/icons/azure/software-as-a-service.js +43 -0
- package/icons/azure/software-updates.js +22 -0
- package/icons/azure/solutions.js +58 -0
- package/icons/azure/sonic-dash.js +73 -0
- package/icons/azure/spatial-anchor-accounts.js +44 -0
- package/icons/azure/speech-services.js +32 -0
- package/icons/azure/spot-vm.js +40 -0
- package/icons/azure/spot-vmss.js +66 -0
- package/icons/azure/sql-data-warehouses.js +54 -0
- package/icons/azure/sql-database.js +52 -0
- package/icons/azure/sql-elastic-pools.js +78 -0
- package/icons/azure/sql-managed-instance.js +51 -0
- package/icons/azure/sql-server-registries.js +64 -0
- package/icons/azure/sql-server.js +46 -0
- package/icons/azure/ssd.js +30 -0
- package/icons/azure/ssh-keys.js +42 -0
- package/icons/azure/ssis-lift-and-shift-ir.js +72 -0
- package/icons/azure/stack-hci-premium.js +78 -0
- package/icons/azure/static-apps.js +29 -0
- package/icons/azure/stor-simple-data-managers.js +57 -0
- package/icons/azure/stor-simple-device-managers.js +27 -0
- package/icons/azure/storage-accounts-classic.js +36 -0
- package/icons/azure/storage-accounts.js +35 -0
- package/icons/azure/storage-actions.js +66 -0
- package/icons/azure/storage-azure-files.js +30 -0
- package/icons/azure/storage-container.js +29 -0
- package/icons/azure/storage-explorer.js +27 -0
- package/icons/azure/storage-functions.js +40 -0
- package/icons/azure/storage-queue.js +18 -0
- package/icons/azure/storage-sync-services.js +52 -0
- package/icons/azure/stream-analytics-jobs.js +53 -0
- package/icons/azure/subnet.js +43 -0
- package/icons/azure/subscriptions.js +41 -0
- package/icons/azure/system-topic.js +103 -0
- package/icons/azure/table.js +23 -0
- package/icons/azure/tag.js +28 -0
- package/icons/azure/tags.js +46 -0
- package/icons/azure/targets-management.js +43 -0
- package/icons/azure/template-specs.js +67 -0
- package/icons/azure/templates.js +33 -0
- package/icons/azure/tenant-properties.js +51 -0
- package/icons/azure/tenant-status.js +40 -0
- package/icons/azure/test-base.js +56 -0
- package/icons/azure/tfs-vc-repository.js +42 -0
- package/icons/azure/time-series-data-sets.js +52 -0
- package/icons/azure/time-series-insights-access-policies.js +42 -0
- package/icons/azure/time-series-insights-environments.js +39 -0
- package/icons/azure/time-series-insights-event-sources.js +36 -0
- package/icons/azure/toolbox.js +26 -0
- package/icons/azure/traffic-manager-profiles.js +36 -0
- package/icons/azure/translator-text.js +75 -0
- package/icons/azure/troubleshoot.js +38 -0
- package/icons/azure/universal-print.js +35 -0
- package/icons/azure/update-management-center.js +69 -0
- package/icons/azure/updates.js +47 -0
- package/icons/azure/user-privacy.js +44 -0
- package/icons/azure/user-settings.js +46 -0
- package/icons/azure/user-subscriptions.js +82 -0
- package/icons/azure/users.js +26 -0
- package/icons/azure/verifiable-credentials.js +99 -0
- package/icons/azure/verification-as-a-service.js +84 -0
- package/icons/azure/versions.js +24 -0
- package/icons/azure/video-analyzers.js +42 -0
- package/icons/azure/virtual-clusters.js +77 -0
- package/icons/azure/virtual-enclaves.js +40 -0
- package/icons/azure/virtual-instance-for-sap.js +70 -0
- package/icons/azure/virtual-machine.js +30 -0
- package/icons/azure/virtual-machines-classic.js +31 -0
- package/icons/azure/virtual-network-gateways.js +45 -0
- package/icons/azure/virtual-networks-classic.js +64 -0
- package/icons/azure/virtual-networks.js +64 -0
- package/icons/azure/virtual-router.js +29 -0
- package/icons/azure/virtual-visits-builder.js +75 -0
- package/icons/azure/virtual-wan-hub.js +55 -0
- package/icons/azure/virtual-wans.js +60 -0
- package/icons/azure/vm-app-definitions.js +66 -0
- package/icons/azure/vm-app-versions.js +58 -0
- package/icons/azure/vm-image-version.js +59 -0
- package/icons/azure/vm-images-classic.js +38 -0
- package/icons/azure/vm-scale-sets.js +38 -0
- package/icons/azure/wac-installer.js +104 -0
- package/icons/azure/wac.js +56 -0
- package/icons/azure/web-app-database.js +160 -0
- package/icons/azure/web-application-firewall-policies-waf.js +91 -0
- package/icons/azure/web-jobs.js +119 -0
- package/icons/azure/web-slots.js +30 -0
- package/icons/azure/web-test.js +105 -0
- package/icons/azure/website-power.js +62 -0
- package/icons/azure/website-staging.js +24 -0
- package/icons/azure/windows-notification-services.js +67 -0
- package/icons/azure/windows10-core-services.js +50 -0
- package/icons/azure/workbooks.js +38 -0
- package/icons/azure/worker-container-app.js +69 -0
- package/icons/azure/workflow.js +36 -0
- package/icons/azure/workspace-gateway.js +64 -0
- package/icons/azure/workspaces.js +23 -0
- package/package.json +43 -44
- package/react/index.d.ts +37 -16
- package/react/index.mjs +9899 -6547
- package/react/style.css +1 -1
- package/dist/shared/likec4.Cjx4es-x.mjs +0 -1224
|
@@ -531,7 +531,15 @@ function filterProps(props) {
|
|
|
531
531
|
return Object.keys(props).reduce((acc, key) => (props[key] !== void 0 && (acc[key] = props[key]), acc), {});
|
|
532
532
|
}
|
|
533
533
|
function isNumberLike(value) {
|
|
534
|
-
|
|
534
|
+
if (typeof value == "number")
|
|
535
|
+
return !0;
|
|
536
|
+
if (typeof value == "string") {
|
|
537
|
+
if (value.startsWith("calc(") || value.startsWith("var(") || value.includes(" ") && value.trim() !== "")
|
|
538
|
+
return !0;
|
|
539
|
+
const cssUnitsRegex = /^[+-]?[0-9]+(\.[0-9]+)?(px|em|rem|ex|ch|lh|rlh|vw|vh|vmin|vmax|vb|vi|svw|svh|lvw|lvh|dvw|dvh|cm|mm|in|pt|pc|q|%)?$/;
|
|
540
|
+
return value.trim().split(/\s+/).every((val) => cssUnitsRegex.test(val));
|
|
541
|
+
}
|
|
542
|
+
return !1;
|
|
535
543
|
}
|
|
536
544
|
function isElement$1(value) {
|
|
537
545
|
return Array.isArray(value) || value === null ? !1 : typeof value == "object" ? value.type !== Fragment : !1;
|
|
@@ -675,13 +683,13 @@ function createEventHandler(parentEventHandler, eventHandler) {
|
|
|
675
683
|
parentEventHandler?.(event), eventHandler?.(event);
|
|
676
684
|
};
|
|
677
685
|
}
|
|
678
|
-
function getBreakpointValue$
|
|
679
|
-
return breakpoint in
|
|
686
|
+
function getBreakpointValue$2(breakpoint, breakpoints) {
|
|
687
|
+
return breakpoint in breakpoints ? px(breakpoints[breakpoint]) : px(breakpoint);
|
|
680
688
|
}
|
|
681
|
-
function getSortedBreakpoints(
|
|
682
|
-
const convertedBreakpoints =
|
|
689
|
+
function getSortedBreakpoints(values2, breakpoints) {
|
|
690
|
+
const convertedBreakpoints = values2.map((breakpoint) => ({
|
|
683
691
|
value: breakpoint,
|
|
684
|
-
px: getBreakpointValue$
|
|
692
|
+
px: getBreakpointValue$2(breakpoint, breakpoints)
|
|
685
693
|
}));
|
|
686
694
|
return convertedBreakpoints.sort((a, b) => a.px - b.px), convertedBreakpoints;
|
|
687
695
|
}
|
|
@@ -768,6 +776,14 @@ function useMediaQuery(query, initialValue, { getInitialValueInEffect } = {
|
|
|
768
776
|
function useColorScheme(initialValue, options) {
|
|
769
777
|
return useMediaQuery("(prefers-color-scheme: dark)", initialValue === "dark", options) ? "dark" : "light";
|
|
770
778
|
}
|
|
779
|
+
function useDebouncedValue(value, wait, options = { leading: !1 }) {
|
|
780
|
+
const [_value, setValue] = useState(value), mountedRef = useRef(!1), timeoutRef = useRef(null), cooldownRef = useRef(!1), cancel = () => window.clearTimeout(timeoutRef.current);
|
|
781
|
+
return useEffect(() => {
|
|
782
|
+
mountedRef.current && (!cooldownRef.current && options.leading ? (cooldownRef.current = !0, setValue(value)) : (cancel(), timeoutRef.current = window.setTimeout(() => {
|
|
783
|
+
cooldownRef.current = !1, setValue(value);
|
|
784
|
+
}, wait)));
|
|
785
|
+
}, [value, options.leading, wait]), useEffect(() => (mountedRef.current = !0, cancel), []), [_value, cancel];
|
|
786
|
+
}
|
|
771
787
|
const useIsomorphicEffect = typeof document < "u" ? useLayoutEffect : useEffect;
|
|
772
788
|
function useDidUpdate(fn, dependencies) {
|
|
773
789
|
const mounted = useRef(!1);
|
|
@@ -1009,6 +1025,12 @@ function mergeRefs(...refs) {
|
|
|
1009
1025
|
function useMergedRef(...refs) {
|
|
1010
1026
|
return useCallback(mergeRefs(...refs), refs);
|
|
1011
1027
|
}
|
|
1028
|
+
function clampUseMovePosition(position) {
|
|
1029
|
+
return {
|
|
1030
|
+
x: clamp$2(position.x, 0, 1),
|
|
1031
|
+
y: clamp$2(position.y, 0, 1)
|
|
1032
|
+
};
|
|
1033
|
+
}
|
|
1012
1034
|
function useMove(onChange, handlers, dir = "ltr") {
|
|
1013
1035
|
const ref = useRef(null), mounted = useRef(!1), isSliding = useRef(!1), frame = useRef(0), [active, setActive] = useState(!1);
|
|
1014
1036
|
return useEffect(() => {
|
|
@@ -1165,8 +1187,12 @@ function usePrevious(value) {
|
|
|
1165
1187
|
}, [value]), ref.current;
|
|
1166
1188
|
}
|
|
1167
1189
|
function useInViewport() {
|
|
1168
|
-
const
|
|
1169
|
-
return
|
|
1190
|
+
const observer = useRef(null), [inViewport, setInViewport] = useState(!1);
|
|
1191
|
+
return { ref: useCallback((node) => {
|
|
1192
|
+
typeof IntersectionObserver < "u" && (node && !observer.current ? observer.current = new IntersectionObserver(
|
|
1193
|
+
([entry]) => setInViewport(entry.isIntersecting)
|
|
1194
|
+
) : observer.current?.disconnect(), node ? observer.current?.observe(node) : setInViewport(!1));
|
|
1195
|
+
}, []), inViewport };
|
|
1170
1196
|
}
|
|
1171
1197
|
function useMutationObserver(callback, options, target) {
|
|
1172
1198
|
const observer = useRef(), ref = useRef(null);
|
|
@@ -2003,9 +2029,9 @@ function getCSSColorVariables({
|
|
|
2003
2029
|
function isVirtualColor(value) {
|
|
2004
2030
|
return !!value && typeof value == "object" && "mantine-virtual-color" in value;
|
|
2005
2031
|
}
|
|
2006
|
-
function assignSizeVariables(variables,
|
|
2007
|
-
keys(
|
|
2008
|
-
(size2) => Object.assign(variables, { [`--mantine-${name}-${size2}`]:
|
|
2032
|
+
function assignSizeVariables(variables, sizes2, name) {
|
|
2033
|
+
keys(sizes2).forEach(
|
|
2034
|
+
(size2) => Object.assign(variables, { [`--mantine-${name}-${size2}`]: sizes2[size2] })
|
|
2009
2035
|
);
|
|
2010
2036
|
}
|
|
2011
2037
|
const defaultCssVariablesResolver = (theme) => {
|
|
@@ -2844,7 +2870,7 @@ function getBaseValue(value) {
|
|
|
2844
2870
|
function getBreakpointKeys(value) {
|
|
2845
2871
|
return typeof value == "object" && value !== null ? keys(value).filter((key) => key !== "base") : [];
|
|
2846
2872
|
}
|
|
2847
|
-
function getBreakpointValue(value, breakpoint) {
|
|
2873
|
+
function getBreakpointValue$1(value, breakpoint) {
|
|
2848
2874
|
return typeof value == "object" && value !== null && breakpoint in value ? value[breakpoint] : value;
|
|
2849
2875
|
}
|
|
2850
2876
|
function parseStyleProps({
|
|
@@ -2870,7 +2896,7 @@ function parseStyleProps({
|
|
|
2870
2896
|
acc.media[bp] = {
|
|
2871
2897
|
...acc.media[bp],
|
|
2872
2898
|
[property]: resolvers[propertyData.type](
|
|
2873
|
-
getBreakpointValue(styleProps[styleProp], breakpoint),
|
|
2899
|
+
getBreakpointValue$1(styleProps[styleProp], breakpoint),
|
|
2874
2900
|
theme
|
|
2875
2901
|
)
|
|
2876
2902
|
};
|
|
@@ -3084,8 +3110,8 @@ function getThumbRatio(viewportSize, contentSize) {
|
|
|
3084
3110
|
const ratio = viewportSize / contentSize;
|
|
3085
3111
|
return Number.isNaN(ratio) ? 0 : ratio;
|
|
3086
3112
|
}
|
|
3087
|
-
function getThumbSize(
|
|
3088
|
-
const ratio = getThumbRatio(
|
|
3113
|
+
function getThumbSize(sizes2) {
|
|
3114
|
+
const ratio = getThumbRatio(sizes2.viewport, sizes2.content), scrollbarPadding = sizes2.scrollbar.paddingStart + sizes2.scrollbar.paddingEnd, thumbSize = (sizes2.scrollbar.size - scrollbarPadding) * ratio;
|
|
3089
3115
|
return Math.max(thumbSize, 18);
|
|
3090
3116
|
}
|
|
3091
3117
|
function linearScale(input, output) {
|
|
@@ -3099,12 +3125,12 @@ function linearScale(input, output) {
|
|
|
3099
3125
|
function clamp$1(value, [min2, max2]) {
|
|
3100
3126
|
return Math.min(max2, Math.max(min2, value));
|
|
3101
3127
|
}
|
|
3102
|
-
function getThumbOffsetFromScroll(scrollPos,
|
|
3103
|
-
const thumbSizePx = getThumbSize(
|
|
3128
|
+
function getThumbOffsetFromScroll(scrollPos, sizes2, dir = "ltr") {
|
|
3129
|
+
const thumbSizePx = getThumbSize(sizes2), scrollbarPadding = sizes2.scrollbar.paddingStart + sizes2.scrollbar.paddingEnd, scrollbar = sizes2.scrollbar.size - scrollbarPadding, maxScrollPos = sizes2.content - sizes2.viewport, maxThumbPos = scrollbar - thumbSizePx, scrollClampRange = dir === "ltr" ? [0, maxScrollPos] : [maxScrollPos * -1, 0], scrollWithoutMomentum = clamp$1(scrollPos, scrollClampRange);
|
|
3104
3130
|
return linearScale([0, maxScrollPos], [0, maxThumbPos])(scrollWithoutMomentum);
|
|
3105
3131
|
}
|
|
3106
|
-
function getScrollPositionFromPointer(pointerPos, pointerOffset,
|
|
3107
|
-
const thumbSizePx = getThumbSize(
|
|
3132
|
+
function getScrollPositionFromPointer(pointerPos, pointerOffset, sizes2, dir = "ltr") {
|
|
3133
|
+
const thumbSizePx = getThumbSize(sizes2), thumbCenter = thumbSizePx / 2, offset2 = pointerOffset || thumbCenter, thumbOffsetFromEnd = thumbSizePx - offset2, minPointerPos = sizes2.scrollbar.paddingStart + offset2, maxPointerPos = sizes2.scrollbar.size - sizes2.scrollbar.paddingEnd - thumbOffsetFromEnd, maxScrollPos = sizes2.content - sizes2.viewport, scrollRange = dir === "ltr" ? [0, maxScrollPos] : [maxScrollPos * -1, 0];
|
|
3108
3134
|
return linearScale([minPointerPos, maxPointerPos], scrollRange)(pointerPos);
|
|
3109
3135
|
}
|
|
3110
3136
|
function isScrollingWithinScrollbarBounds(scrollPos, maxScrollPos) {
|
|
@@ -3122,7 +3148,7 @@ const [ScrollbarProvider, useScrollbarContext] = createSafeContext(
|
|
|
3122
3148
|
"ScrollAreaScrollbar was not found in tree"
|
|
3123
3149
|
), Scrollbar = forwardRef((props, forwardedRef) => {
|
|
3124
3150
|
const {
|
|
3125
|
-
sizes,
|
|
3151
|
+
sizes: sizes2,
|
|
3126
3152
|
hasThumb,
|
|
3127
3153
|
onThumbChange,
|
|
3128
3154
|
onThumbPointerUp,
|
|
@@ -3132,7 +3158,7 @@ const [ScrollbarProvider, useScrollbarContext] = createSafeContext(
|
|
|
3132
3158
|
onWheelScroll,
|
|
3133
3159
|
onResize,
|
|
3134
3160
|
...scrollbarProps
|
|
3135
|
-
} = props, context = useScrollAreaContext(), [scrollbar, setScrollbar] = useState(null), composeRefs = useMergedRef(forwardedRef, (node) => setScrollbar(node)), rectRef = useRef(null), prevWebkitUserSelectRef = useRef(""), { viewport } = context, maxScrollPos =
|
|
3161
|
+
} = props, context = useScrollAreaContext(), [scrollbar, setScrollbar] = useState(null), composeRefs = useMergedRef(forwardedRef, (node) => setScrollbar(node)), rectRef = useRef(null), prevWebkitUserSelectRef = useRef(""), { viewport } = context, maxScrollPos = sizes2.content - sizes2.viewport, handleWheelScroll = useCallbackRef(onWheelScroll), handleThumbPositionChange = useCallbackRef(onThumbPositionChange), handleResize = useDebouncedCallback(onResize, 10), handleDragScroll = (event) => {
|
|
3136
3162
|
if (rectRef.current) {
|
|
3137
3163
|
const x = event.clientX - rectRef.current.left, y = event.clientY - rectRef.current.top;
|
|
3138
3164
|
onDragScroll({ x, y });
|
|
@@ -3144,7 +3170,7 @@ const [ScrollbarProvider, useScrollbarContext] = createSafeContext(
|
|
|
3144
3170
|
scrollbar?.contains(element) && handleWheelScroll(event, maxScrollPos);
|
|
3145
3171
|
};
|
|
3146
3172
|
return document.addEventListener("wheel", handleWheel, { passive: !1 }), () => document.removeEventListener("wheel", handleWheel, { passive: !1 });
|
|
3147
|
-
}, [viewport, scrollbar, maxScrollPos, handleWheelScroll]), useEffect(handleThumbPositionChange, [
|
|
3173
|
+
}, [viewport, scrollbar, maxScrollPos, handleWheelScroll]), useEffect(handleThumbPositionChange, [sizes2, handleThumbPositionChange]), useResizeObserver(scrollbar, handleResize), useResizeObserver(context.content, handleResize), /* @__PURE__ */ jsx(
|
|
3148
3174
|
ScrollbarProvider,
|
|
3149
3175
|
{
|
|
3150
3176
|
value: {
|
|
@@ -3177,7 +3203,7 @@ const [ScrollbarProvider, useScrollbarContext] = createSafeContext(
|
|
|
3177
3203
|
);
|
|
3178
3204
|
}), ScrollAreaScrollbarX = forwardRef(
|
|
3179
3205
|
(props, forwardedRef) => {
|
|
3180
|
-
const { sizes, onSizesChange, style, ...others } = props, ctx = useScrollAreaContext(), [computedStyle, setComputedStyle] = useState(), ref = useRef(null), composeRefs = useMergedRef(forwardedRef, ref, ctx.onScrollbarXChange);
|
|
3206
|
+
const { sizes: sizes2, onSizesChange, style, ...others } = props, ctx = useScrollAreaContext(), [computedStyle, setComputedStyle] = useState(), ref = useRef(null), composeRefs = useMergedRef(forwardedRef, ref, ctx.onScrollbarXChange);
|
|
3181
3207
|
return useEffect(() => {
|
|
3182
3208
|
ref.current && setComputedStyle(getComputedStyle(ref.current));
|
|
3183
3209
|
}, [ref]), /* @__PURE__ */ jsx(
|
|
@@ -3186,10 +3212,10 @@ const [ScrollbarProvider, useScrollbarContext] = createSafeContext(
|
|
|
3186
3212
|
"data-orientation": "horizontal",
|
|
3187
3213
|
...others,
|
|
3188
3214
|
ref: composeRefs,
|
|
3189
|
-
sizes,
|
|
3215
|
+
sizes: sizes2,
|
|
3190
3216
|
style: {
|
|
3191
3217
|
...style,
|
|
3192
|
-
"--sa-thumb-width": `${getThumbSize(
|
|
3218
|
+
"--sa-thumb-width": `${getThumbSize(sizes2)}px`
|
|
3193
3219
|
},
|
|
3194
3220
|
onThumbPointerDown: (pointerPos) => props.onThumbPointerDown(pointerPos.x),
|
|
3195
3221
|
onDragScroll: (pointerPos) => props.onDragScroll(pointerPos.x),
|
|
@@ -3213,9 +3239,11 @@ const [ScrollbarProvider, useScrollbarContext] = createSafeContext(
|
|
|
3213
3239
|
}
|
|
3214
3240
|
);
|
|
3215
3241
|
}
|
|
3216
|
-
)
|
|
3242
|
+
);
|
|
3243
|
+
ScrollAreaScrollbarX.displayName = "@mantine/core/ScrollAreaScrollbarX";
|
|
3244
|
+
const ScrollAreaScrollbarY = forwardRef(
|
|
3217
3245
|
(props, forwardedRef) => {
|
|
3218
|
-
const { sizes, onSizesChange, style, ...others } = props, context = useScrollAreaContext(), [computedStyle, setComputedStyle] = useState(), ref = useRef(null), composeRefs = useMergedRef(forwardedRef, ref, context.onScrollbarYChange);
|
|
3246
|
+
const { sizes: sizes2, onSizesChange, style, ...others } = props, context = useScrollAreaContext(), [computedStyle, setComputedStyle] = useState(), ref = useRef(null), composeRefs = useMergedRef(forwardedRef, ref, context.onScrollbarYChange);
|
|
3219
3247
|
return useEffect(() => {
|
|
3220
3248
|
ref.current && setComputedStyle(window.getComputedStyle(ref.current));
|
|
3221
3249
|
}, []), /* @__PURE__ */ jsx(
|
|
@@ -3224,9 +3252,9 @@ const [ScrollbarProvider, useScrollbarContext] = createSafeContext(
|
|
|
3224
3252
|
...others,
|
|
3225
3253
|
"data-orientation": "vertical",
|
|
3226
3254
|
ref: composeRefs,
|
|
3227
|
-
sizes,
|
|
3255
|
+
sizes: sizes2,
|
|
3228
3256
|
style: {
|
|
3229
|
-
"--sa-thumb-height": `${getThumbSize(
|
|
3257
|
+
"--sa-thumb-height": `${getThumbSize(sizes2)}px`,
|
|
3230
3258
|
...style
|
|
3231
3259
|
},
|
|
3232
3260
|
onThumbPointerDown: (pointerPos) => props.onThumbPointerDown(pointerPos.y),
|
|
@@ -3251,14 +3279,16 @@ const [ScrollbarProvider, useScrollbarContext] = createSafeContext(
|
|
|
3251
3279
|
}
|
|
3252
3280
|
);
|
|
3253
3281
|
}
|
|
3254
|
-
)
|
|
3255
|
-
|
|
3282
|
+
);
|
|
3283
|
+
ScrollAreaScrollbarY.displayName = "@mantine/core/ScrollAreaScrollbarY";
|
|
3284
|
+
const ScrollAreaScrollbarVisible = forwardRef((props, forwardedRef) => {
|
|
3285
|
+
const { orientation = "vertical", ...scrollbarProps } = props, { dir } = useDirection(), context = useScrollAreaContext(), thumbRef = useRef(null), pointerOffsetRef = useRef(0), [sizes2, setSizes] = useState({
|
|
3256
3286
|
content: 0,
|
|
3257
3287
|
viewport: 0,
|
|
3258
3288
|
scrollbar: { size: 0, paddingStart: 0, paddingEnd: 0 }
|
|
3259
|
-
}), thumbRatio = getThumbRatio(
|
|
3289
|
+
}), thumbRatio = getThumbRatio(sizes2.viewport, sizes2.content), commonProps = {
|
|
3260
3290
|
...scrollbarProps,
|
|
3261
|
-
sizes,
|
|
3291
|
+
sizes: sizes2,
|
|
3262
3292
|
onSizesChange: setSizes,
|
|
3263
3293
|
hasThumb: thumbRatio > 0 && thumbRatio < 1,
|
|
3264
3294
|
onThumbChange: (thumb) => {
|
|
@@ -3270,7 +3300,7 @@ const [ScrollbarProvider, useScrollbarContext] = createSafeContext(
|
|
|
3270
3300
|
onThumbPointerDown: (pointerPos) => {
|
|
3271
3301
|
pointerOffsetRef.current = pointerPos;
|
|
3272
3302
|
}
|
|
3273
|
-
}, getScrollPosition = (pointerPos, direction) => getScrollPositionFromPointer(pointerPos, pointerOffsetRef.current,
|
|
3303
|
+
}, getScrollPosition = (pointerPos, direction) => getScrollPositionFromPointer(pointerPos, pointerOffsetRef.current, sizes2, direction);
|
|
3274
3304
|
return orientation === "horizontal" ? /* @__PURE__ */ jsx(
|
|
3275
3305
|
ScrollAreaScrollbarX,
|
|
3276
3306
|
{
|
|
@@ -3278,7 +3308,7 @@ const [ScrollbarProvider, useScrollbarContext] = createSafeContext(
|
|
|
3278
3308
|
ref: forwardedRef,
|
|
3279
3309
|
onThumbPositionChange: () => {
|
|
3280
3310
|
if (context.viewport && thumbRef.current) {
|
|
3281
|
-
const scrollPos = context.viewport.scrollLeft, offset2 = getThumbOffsetFromScroll(scrollPos,
|
|
3311
|
+
const scrollPos = context.viewport.scrollLeft, offset2 = getThumbOffsetFromScroll(scrollPos, sizes2, dir);
|
|
3282
3312
|
thumbRef.current.style.transform = `translate3d(${offset2}px, 0, 0)`;
|
|
3283
3313
|
}
|
|
3284
3314
|
},
|
|
@@ -3296,8 +3326,8 @@ const [ScrollbarProvider, useScrollbarContext] = createSafeContext(
|
|
|
3296
3326
|
ref: forwardedRef,
|
|
3297
3327
|
onThumbPositionChange: () => {
|
|
3298
3328
|
if (context.viewport && thumbRef.current) {
|
|
3299
|
-
const scrollPos = context.viewport.scrollTop, offset2 = getThumbOffsetFromScroll(scrollPos,
|
|
3300
|
-
|
|
3329
|
+
const scrollPos = context.viewport.scrollTop, offset2 = getThumbOffsetFromScroll(scrollPos, sizes2);
|
|
3330
|
+
sizes2.scrollbar.size === 0 ? thumbRef.current.style.opacity = "0" : thumbRef.current.style.opacity = "1", thumbRef.current.style.transform = `translate3d(0, ${offset2}px, 0)`;
|
|
3301
3331
|
}
|
|
3302
3332
|
},
|
|
3303
3333
|
onWheelScroll: (scrollPos) => {
|
|
@@ -3308,7 +3338,9 @@ const [ScrollbarProvider, useScrollbarContext] = createSafeContext(
|
|
|
3308
3338
|
}
|
|
3309
3339
|
}
|
|
3310
3340
|
) : null;
|
|
3311
|
-
})
|
|
3341
|
+
});
|
|
3342
|
+
ScrollAreaScrollbarVisible.displayName = "@mantine/core/ScrollAreaScrollbarVisible";
|
|
3343
|
+
const ScrollAreaScrollbarAuto = forwardRef(
|
|
3312
3344
|
(props, ref) => {
|
|
3313
3345
|
const context = useScrollAreaContext(), { forceMount, ...scrollbarProps } = props, [visible2, setVisible] = useState(!1), isHorizontal = props.orientation === "horizontal", handleResize = useDebouncedCallback(() => {
|
|
3314
3346
|
if (context.viewport) {
|
|
@@ -3325,7 +3357,9 @@ const [ScrollbarProvider, useScrollbarContext] = createSafeContext(
|
|
|
3325
3357
|
}
|
|
3326
3358
|
) : null;
|
|
3327
3359
|
}
|
|
3328
|
-
)
|
|
3360
|
+
);
|
|
3361
|
+
ScrollAreaScrollbarAuto.displayName = "@mantine/core/ScrollAreaScrollbarAuto";
|
|
3362
|
+
const ScrollAreaScrollbarHover = forwardRef(
|
|
3329
3363
|
(props, ref) => {
|
|
3330
3364
|
const { forceMount, ...scrollbarProps } = props, context = useScrollAreaContext(), [visible2, setVisible] = useState(!1);
|
|
3331
3365
|
return useEffect(() => {
|
|
@@ -3350,7 +3384,9 @@ const [ScrollbarProvider, useScrollbarContext] = createSafeContext(
|
|
|
3350
3384
|
}
|
|
3351
3385
|
) : null;
|
|
3352
3386
|
}
|
|
3353
|
-
)
|
|
3387
|
+
);
|
|
3388
|
+
ScrollAreaScrollbarHover.displayName = "@mantine/core/ScrollAreaScrollbarHover";
|
|
3389
|
+
const ScrollAreaScrollbarScroll = forwardRef(
|
|
3354
3390
|
(props, red) => {
|
|
3355
3391
|
const { forceMount, ...scrollbarProps } = props, context = useScrollAreaContext(), isHorizontal = props.orientation === "horizontal", [state, setState] = useState("hidden"), debounceScrollEnd = useDebouncedCallback(() => setState("idle"), 100);
|
|
3356
3392
|
return useEffect(() => {
|
|
@@ -3387,6 +3423,7 @@ const [ScrollbarProvider, useScrollbarContext] = createSafeContext(
|
|
|
3387
3423
|
}), [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;
|
|
3388
3424
|
}
|
|
3389
3425
|
);
|
|
3426
|
+
ScrollAreaScrollbar.displayName = "@mantine/core/ScrollAreaScrollbar";
|
|
3390
3427
|
function addUnlinkedScrollListener(node, handler = () => {
|
|
3391
3428
|
}) {
|
|
3392
3429
|
let prevPosition = { left: node.scrollLeft, top: node.scrollTop }, rAF = 0;
|
|
@@ -3428,12 +3465,16 @@ const Thumb$1 = forwardRef((props, forwardedRef) => {
|
|
|
3428
3465
|
onPointerUp: composeEventHandlers(props.onPointerUp, scrollbarContext.onThumbPointerUp)
|
|
3429
3466
|
}
|
|
3430
3467
|
);
|
|
3431
|
-
})
|
|
3468
|
+
});
|
|
3469
|
+
Thumb$1.displayName = "@mantine/core/ScrollAreaThumb";
|
|
3470
|
+
const ScrollAreaThumb = forwardRef(
|
|
3432
3471
|
(props, forwardedRef) => {
|
|
3433
3472
|
const { forceMount, ...thumbProps } = props, scrollbarContext = useScrollbarContext();
|
|
3434
3473
|
return forceMount || scrollbarContext.hasThumb ? /* @__PURE__ */ jsx(Thumb$1, { ref: forwardedRef, ...thumbProps }) : null;
|
|
3435
3474
|
}
|
|
3436
|
-
)
|
|
3475
|
+
);
|
|
3476
|
+
ScrollAreaThumb.displayName = "@mantine/core/ScrollAreaThumb";
|
|
3477
|
+
const ScrollAreaViewport = forwardRef(
|
|
3437
3478
|
({ children, style, ...others }, ref) => {
|
|
3438
3479
|
const ctx = useScrollAreaContext(), rootRef = useMergedRef(ref, ctx.onViewportChange);
|
|
3439
3480
|
return /* @__PURE__ */ jsx(
|
|
@@ -3514,7 +3555,7 @@ const classes$G = __default__$G, defaultProps$1r = {
|
|
|
3514
3555
|
onScroll: (e) => {
|
|
3515
3556
|
viewportProps?.onScroll?.(e), onScrollPositionChange?.({ x: e.currentTarget.scrollLeft, y: e.currentTarget.scrollTop });
|
|
3516
3557
|
const { scrollTop, scrollHeight, clientHeight } = e.currentTarget;
|
|
3517
|
-
scrollTop - (scrollHeight - clientHeight)
|
|
3558
|
+
scrollTop - (scrollHeight - clientHeight) >= 0 && onBottomReached?.(), scrollTop === 0 && onTopReached?.();
|
|
3518
3559
|
},
|
|
3519
3560
|
children
|
|
3520
3561
|
}
|
|
@@ -3575,6 +3616,7 @@ const ScrollAreaAutosize = factory((props, ref) => {
|
|
|
3575
3616
|
style,
|
|
3576
3617
|
vars,
|
|
3577
3618
|
onBottomReached,
|
|
3619
|
+
onTopReached,
|
|
3578
3620
|
...others
|
|
3579
3621
|
} = useProps("ScrollAreaAutosize", defaultProps$1r, props);
|
|
3580
3622
|
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(
|
|
@@ -3595,6 +3637,7 @@ const ScrollAreaAutosize = factory((props, ref) => {
|
|
|
3595
3637
|
vars,
|
|
3596
3638
|
scrollbars,
|
|
3597
3639
|
onBottomReached,
|
|
3640
|
+
onTopReached,
|
|
3598
3641
|
children
|
|
3599
3642
|
}
|
|
3600
3643
|
) }) });
|
|
@@ -6335,7 +6378,7 @@ function useFloatingAutoUpdate({
|
|
|
6335
6378
|
}) {
|
|
6336
6379
|
const [delayedUpdate, setDelayedUpdate] = useState(0);
|
|
6337
6380
|
useEffect(() => {
|
|
6338
|
-
if (floating.refs.reference.current && floating.refs.floating.current)
|
|
6381
|
+
if (floating.refs.reference.current && floating.refs.floating.current && opened)
|
|
6339
6382
|
return autoUpdate(
|
|
6340
6383
|
floating.refs.reference.current,
|
|
6341
6384
|
floating.refs.floating.current,
|
|
@@ -6385,7 +6428,7 @@ function getPopoverMiddlewares(options, getFloating) {
|
|
|
6385
6428
|
), middlewares;
|
|
6386
6429
|
}
|
|
6387
6430
|
function usePopover(options) {
|
|
6388
|
-
const [_opened, setOpened] = useUncontrolled({
|
|
6431
|
+
const [_opened, setOpened, isControlled] = useUncontrolled({
|
|
6389
6432
|
value: options.opened,
|
|
6390
6433
|
defaultValue: options.defaultOpened,
|
|
6391
6434
|
finalValue: !1,
|
|
@@ -6400,15 +6443,15 @@ function usePopover(options) {
|
|
|
6400
6443
|
middleware: getPopoverMiddlewares(options, () => floating)
|
|
6401
6444
|
});
|
|
6402
6445
|
return useFloatingAutoUpdate({
|
|
6403
|
-
opened:
|
|
6446
|
+
opened: _opened,
|
|
6404
6447
|
position: options.position,
|
|
6405
6448
|
positionDependencies: options.positionDependencies || [],
|
|
6406
6449
|
floating
|
|
6407
6450
|
}), useDidUpdate(() => {
|
|
6408
6451
|
options.onPositionChange?.(floating.placement);
|
|
6409
6452
|
}, [floating.placement]), useDidUpdate(() => {
|
|
6410
|
-
options.opened ? options.onOpen?.() : options.onClose?.();
|
|
6411
|
-
}, [options.opened]), {
|
|
6453
|
+
isControlled || (options.opened ? options.onOpen?.() : options.onClose?.());
|
|
6454
|
+
}, [options.opened, isControlled]), {
|
|
6412
6455
|
floating,
|
|
6413
6456
|
controlled: typeof options.opened == "boolean",
|
|
6414
6457
|
opened: _opened,
|
|
@@ -6583,11 +6626,17 @@ const classes$B = __default__$B, Bars = forwardRef(({ className, ...others }, re
|
|
|
6583
6626
|
/* @__PURE__ */ jsx("span", { className: classes$B.bar }),
|
|
6584
6627
|
/* @__PURE__ */ jsx("span", { className: classes$B.bar }),
|
|
6585
6628
|
/* @__PURE__ */ jsx("span", { className: classes$B.bar })
|
|
6586
|
-
] }))
|
|
6629
|
+
] }));
|
|
6630
|
+
Bars.displayName = "@mantine/core/Bars";
|
|
6631
|
+
const Dots = forwardRef(({ className, ...others }, ref) => /* @__PURE__ */ jsxs(Box, { component: "span", className: clsx(classes$B.dotsLoader, className), ...others, ref, children: [
|
|
6587
6632
|
/* @__PURE__ */ jsx("span", { className: classes$B.dot }),
|
|
6588
6633
|
/* @__PURE__ */ jsx("span", { className: classes$B.dot }),
|
|
6589
6634
|
/* @__PURE__ */ jsx("span", { className: classes$B.dot })
|
|
6590
|
-
] }))
|
|
6635
|
+
] }));
|
|
6636
|
+
Dots.displayName = "@mantine/core/Dots";
|
|
6637
|
+
const Oval = forwardRef(({ className, ...others }, ref) => /* @__PURE__ */ jsx(Box, { component: "span", className: clsx(classes$B.ovalLoader, className), ...others, ref }));
|
|
6638
|
+
Oval.displayName = "@mantine/core/Oval";
|
|
6639
|
+
const defaultLoaders = {
|
|
6591
6640
|
bars: Bars,
|
|
6592
6641
|
oval: Oval,
|
|
6593
6642
|
dots: Dots
|
|
@@ -7051,6 +7100,7 @@ const ModalBase = forwardRef(
|
|
|
7051
7100
|
) });
|
|
7052
7101
|
}
|
|
7053
7102
|
);
|
|
7103
|
+
ModalBase.displayName = "@mantine/core/ModalBase";
|
|
7054
7104
|
function useModalBodyId() {
|
|
7055
7105
|
const ctx = useModalBaseContext();
|
|
7056
7106
|
return useEffect(() => (ctx.setBodyMounted(!0), () => ctx.setBodyMounted(!1)), []), ctx.getBodyId();
|
|
@@ -7125,7 +7175,9 @@ const ModalBaseContent = forwardRef(
|
|
|
7125
7175
|
}
|
|
7126
7176
|
);
|
|
7127
7177
|
}
|
|
7128
|
-
)
|
|
7178
|
+
);
|
|
7179
|
+
ModalBaseContent.displayName = "@mantine/core/ModalBaseContent";
|
|
7180
|
+
const ModalBaseHeader = forwardRef(
|
|
7129
7181
|
({ className, ...others }, ref) => {
|
|
7130
7182
|
const ctx = useModalBaseContext();
|
|
7131
7183
|
return /* @__PURE__ */ jsx(
|
|
@@ -9845,11 +9897,12 @@ const defaultProps$q = {}, MenuDropdown = factory((props, ref) => {
|
|
|
9845
9897
|
vars,
|
|
9846
9898
|
onMouseEnter,
|
|
9847
9899
|
onMouseLeave,
|
|
9900
|
+
onKeyDown,
|
|
9848
9901
|
children,
|
|
9849
9902
|
...others
|
|
9850
|
-
} = useProps("MenuDropdown", defaultProps$q, props), wrapperRef = useRef(null), ctx = useMenuContext(), handleKeyDown = (event) => {
|
|
9903
|
+
} = useProps("MenuDropdown", defaultProps$q, props), wrapperRef = useRef(null), ctx = useMenuContext(), handleKeyDown = createEventHandler(onKeyDown, (event) => {
|
|
9851
9904
|
(event.key === "ArrowUp" || event.key === "ArrowDown") && (event.preventDefault(), wrapperRef.current?.querySelectorAll("[data-menu-item]:not(:disabled)")[0]?.focus());
|
|
9852
|
-
}, handleMouseEnter = createEventHandler(
|
|
9905
|
+
}), handleMouseEnter = createEventHandler(
|
|
9853
9906
|
onMouseEnter,
|
|
9854
9907
|
() => (ctx.trigger === "hover" || ctx.trigger === "click-hover") && ctx.openDropdown()
|
|
9855
9908
|
), handleMouseLeave = createEventHandler(
|
|
@@ -9932,7 +9985,7 @@ const defaultProps$p = {}, MenuItem = polymorphicFactory((props, ref) => {
|
|
|
9932
9985
|
loop: ctx.loop,
|
|
9933
9986
|
dir,
|
|
9934
9987
|
orientation: "vertical",
|
|
9935
|
-
onKeyDown: _others.
|
|
9988
|
+
onKeyDown: _others.onKeyDown
|
|
9936
9989
|
}),
|
|
9937
9990
|
__vars: {
|
|
9938
9991
|
"--menu-item-color": parsedThemeColor?.isThemeColor && parsedThemeColor?.shade === void 0 ? `var(--mantine-color-${parsedThemeColor.color}-6)` : colors?.color,
|
|
@@ -10479,7 +10532,7 @@ function useTooltip(settings) {
|
|
|
10479
10532
|
}),
|
|
10480
10533
|
useFocus(context, { enabled: settings.events?.focus, visibleOnly: !0 }),
|
|
10481
10534
|
useRole(context, { role: "tooltip" }),
|
|
10482
|
-
//
|
|
10535
|
+
// Cannot be used with controlled tooltip, page jumps
|
|
10483
10536
|
useDismiss(context, { enabled: typeof settings.opened > "u" }),
|
|
10484
10537
|
useDelayGroup(context, { id: uid })
|
|
10485
10538
|
]);
|
|
@@ -11004,7 +11057,7 @@ function SimpleGridMediaVariables({
|
|
|
11004
11057
|
}), queries = keys(theme.breakpoints).reduce(
|
|
11005
11058
|
(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),
|
|
11006
11059
|
{}
|
|
11007
|
-
), media = getSortedBreakpoints(keys(queries), theme).filter(
|
|
11060
|
+
), media = getSortedBreakpoints(keys(queries), theme.breakpoints).filter(
|
|
11008
11061
|
(breakpoint) => keys(queries[breakpoint.value]).length > 0
|
|
11009
11062
|
).map((breakpoint) => ({
|
|
11010
11063
|
query: `(min-width: ${theme.breakpoints[breakpoint.value]})`,
|
|
@@ -11212,7 +11265,7 @@ function Track({
|
|
|
11212
11265
|
...others
|
|
11213
11266
|
}) {
|
|
11214
11267
|
const { getStyles: getStyles2 } = useSliderContext();
|
|
11215
|
-
return /* @__PURE__ */ jsx(
|
|
11268
|
+
return /* @__PURE__ */ jsx(Box, { ...getStyles2("trackContainer"), mod: { disabled }, ...containerProps, children: /* @__PURE__ */ jsxs(Box, { ...getStyles2("track"), mod: { inverted, disabled }, children: [
|
|
11216
11269
|
/* @__PURE__ */ jsx(
|
|
11217
11270
|
Box,
|
|
11218
11271
|
{
|
|
@@ -11226,7 +11279,7 @@ function Track({
|
|
|
11226
11279
|
),
|
|
11227
11280
|
children,
|
|
11228
11281
|
/* @__PURE__ */ jsx(Marks, { ...others, offset: marksOffset, disabled, inverted })
|
|
11229
|
-
] }) })
|
|
11282
|
+
] }) });
|
|
11230
11283
|
}
|
|
11231
11284
|
Track.displayName = "@mantine/core/SliderTrack";
|
|
11232
11285
|
function getChangeValue({
|
|
@@ -11836,13 +11889,17 @@ const classes$2 = __default__$2, defaultProps$2 = {}, varsResolver$2 = (theme, {
|
|
|
11836
11889
|
});
|
|
11837
11890
|
ThemeIcon.classes = classes$2;
|
|
11838
11891
|
ThemeIcon.displayName = "@mantine/core/ThemeIcon";
|
|
11839
|
-
const headings = ["h1", "h2", "h3", "h4", "h5", "h6"];
|
|
11892
|
+
const headings = ["h1", "h2", "h3", "h4", "h5", "h6"], sizes = ["xs", "sm", "md", "lg", "xl"];
|
|
11840
11893
|
function getTitleSize(order, size2) {
|
|
11841
11894
|
const titleSize = size2 !== void 0 ? size2 : `h${order}`;
|
|
11842
11895
|
return headings.includes(titleSize) ? {
|
|
11843
11896
|
fontSize: `var(--mantine-${titleSize}-font-size)`,
|
|
11844
11897
|
fontWeight: `var(--mantine-${titleSize}-font-weight)`,
|
|
11845
11898
|
lineHeight: `var(--mantine-${titleSize}-line-height)`
|
|
11899
|
+
} : sizes.includes(titleSize) ? {
|
|
11900
|
+
fontSize: `var(--mantine-font-size-${titleSize})`,
|
|
11901
|
+
fontWeight: `var(--mantine-h${order}-font-weight)`,
|
|
11902
|
+
lineHeight: `var(--mantine-h${order}-line-height)`
|
|
11846
11903
|
} : {
|
|
11847
11904
|
fontSize: rem(titleSize),
|
|
11848
11905
|
fontWeight: `var(--mantine-h${order}-font-weight)`,
|
|
@@ -12231,83 +12288,187 @@ const defaultProps = {
|
|
|
12231
12288
|
});
|
|
12232
12289
|
Tree.displayName = "@mantine/core/Tree";
|
|
12233
12290
|
Tree.classes = classes;
|
|
12291
|
+
function getSizesVariables(theme, themeKey, name) {
|
|
12292
|
+
return Object.keys(theme[themeKey]).reduce((acc, size2) => (acc[size2] = `var(--mantine-${name}-${size2})`, acc), {});
|
|
12293
|
+
}
|
|
12294
|
+
function getBreakpointValue(value, theme) {
|
|
12295
|
+
return value in theme.breakpoints ? theme.breakpoints[value] : em(value);
|
|
12296
|
+
}
|
|
12297
|
+
function themeToVars(theme) {
|
|
12298
|
+
const mergedTheme = mergeMantineTheme(DEFAULT_THEME, theme), fontSizes = getSizesVariables(mergedTheme, "fontSizes", "font-size"), lineHeights = getSizesVariables(mergedTheme, "lineHeights", "line-height"), shadows = getSizesVariables(mergedTheme, "shadows", "shadow"), radius = getSizesVariables(mergedTheme, "radius", "radius"), spacing = getSizesVariables(mergedTheme, "spacing", "spacing"), headings2 = Object.keys(mergedTheme.headings.sizes).reduce(
|
|
12299
|
+
(acc, heading) => (acc[heading] = {
|
|
12300
|
+
fontSize: `var(--mantine-${heading}-font-size)`,
|
|
12301
|
+
lineHeight: `var(--mantine-${heading}-line-height)`,
|
|
12302
|
+
fontWeight: `var(--mantine-${heading}-font-weight)`
|
|
12303
|
+
}, acc),
|
|
12304
|
+
{}
|
|
12305
|
+
), colors = Object.keys(mergedTheme.colors).reduce(
|
|
12306
|
+
(acc, color) => (acc[color] = {
|
|
12307
|
+
0: `var(--mantine-color-${color}-0)`,
|
|
12308
|
+
1: `var(--mantine-color-${color}-1)`,
|
|
12309
|
+
2: `var(--mantine-color-${color}-2)`,
|
|
12310
|
+
3: `var(--mantine-color-${color}-3)`,
|
|
12311
|
+
4: `var(--mantine-color-${color}-4)`,
|
|
12312
|
+
5: `var(--mantine-color-${color}-5)`,
|
|
12313
|
+
6: `var(--mantine-color-${color}-6)`,
|
|
12314
|
+
7: `var(--mantine-color-${color}-7)`,
|
|
12315
|
+
8: `var(--mantine-color-${color}-8)`,
|
|
12316
|
+
9: `var(--mantine-color-${color}-9)`,
|
|
12317
|
+
filled: `var(--mantine-color-${color}-filled)`,
|
|
12318
|
+
filledHover: `var(--mantine-color-${color}-filled-hover)`,
|
|
12319
|
+
light: `var(--mantine-color-${color}-light)`,
|
|
12320
|
+
lightHover: `var(--mantine-color-${color}-light-hover)`,
|
|
12321
|
+
lightColor: `var(--mantine-color-${color}-light-color)`,
|
|
12322
|
+
outline: `var(--mantine-color-${color}-outline)`,
|
|
12323
|
+
outlineHover: `var(--mantine-color-${color}-outline-hover)`
|
|
12324
|
+
}, acc),
|
|
12325
|
+
{
|
|
12326
|
+
primary: "var(--mantine-primary-color-filled)",
|
|
12327
|
+
primaryColors: {
|
|
12328
|
+
0: "var(--mantine-primary-color-0)",
|
|
12329
|
+
1: "var(--mantine-primary-color-1)",
|
|
12330
|
+
2: "var(--mantine-primary-color-2)",
|
|
12331
|
+
3: "var(--mantine-primary-color-3)",
|
|
12332
|
+
4: "var(--mantine-primary-color-4)",
|
|
12333
|
+
5: "var(--mantine-primary-color-5)",
|
|
12334
|
+
6: "var(--mantine-primary-color-6)",
|
|
12335
|
+
7: "var(--mantine-primary-color-7)",
|
|
12336
|
+
8: "var(--mantine-primary-color-8)",
|
|
12337
|
+
9: "var(--mantine-primary-color-9)",
|
|
12338
|
+
filled: "var(--mantine-primary-color-filled)",
|
|
12339
|
+
filledHover: "var(--mantine-primary-color-filled-hover)",
|
|
12340
|
+
light: "var(--mantine-primary-color-light)",
|
|
12341
|
+
lightHover: "var(--mantine-primary-color-light-hover)",
|
|
12342
|
+
lightColor: "var(--mantine-primary-color-light-color)",
|
|
12343
|
+
outline: "var(--mantine-primary-color-outline)",
|
|
12344
|
+
outlineHover: "var(--mantine-primary-color-outline-hover)"
|
|
12345
|
+
},
|
|
12346
|
+
white: "var(--mantine-color-white)",
|
|
12347
|
+
black: "var(--mantine-color-black)",
|
|
12348
|
+
text: "var(--mantine-color-text)",
|
|
12349
|
+
body: "var(--mantine-color-body)",
|
|
12350
|
+
error: "var(--mantine-color-error)",
|
|
12351
|
+
placeholder: "var(--mantine-color-placeholder)",
|
|
12352
|
+
anchor: "var(--mantine-color-anchor)",
|
|
12353
|
+
default: "var(--mantine-color-default)",
|
|
12354
|
+
defaultHover: "var(--mantine-color-default-hover)",
|
|
12355
|
+
defaultColor: "var(--mantine-color-default-color)",
|
|
12356
|
+
defaultBorder: "var(--mantine-color-default-border)",
|
|
12357
|
+
dimmed: "var(--mantine-color-dimmed)"
|
|
12358
|
+
}
|
|
12359
|
+
);
|
|
12360
|
+
return {
|
|
12361
|
+
scale: "var(--mantine-scale)",
|
|
12362
|
+
cursorType: "var(--mantine-cursor-type)",
|
|
12363
|
+
webkitFontSmoothing: "var(--mantine-webkit-font-smoothing)",
|
|
12364
|
+
mozFontSmoothing: "var(--mantine-moz-font-smoothing)",
|
|
12365
|
+
lineHeight: "var(--mantine-line-height)",
|
|
12366
|
+
fontFamily: "var(--mantine-font-family)",
|
|
12367
|
+
fontFamilyMonospace: "var(--mantine-font-family-monospace)",
|
|
12368
|
+
fontFamilyHeadings: "var(--mantine-font-family-headings)",
|
|
12369
|
+
headingFontWeight: "var(--mantine-heading-font-weight)",
|
|
12370
|
+
radiusDefault: "var(--mantine-radius-default)",
|
|
12371
|
+
breakpoints: mergedTheme.breakpoints,
|
|
12372
|
+
fontSizes,
|
|
12373
|
+
lineHeights,
|
|
12374
|
+
shadows,
|
|
12375
|
+
radius,
|
|
12376
|
+
headings: headings2,
|
|
12377
|
+
spacing,
|
|
12378
|
+
colors,
|
|
12379
|
+
rtlSelector: '[dir="rtl"] &',
|
|
12380
|
+
darkSelector: '[data-mantine-color-scheme="dark"] &',
|
|
12381
|
+
lightSelector: '[data-mantine-color-scheme="light"] &',
|
|
12382
|
+
smallerThan: (breakpoint) => `(max-width: ${getBreakpointValue(breakpoint, mergedTheme)})`,
|
|
12383
|
+
largerThan: (breakpoint) => `(min-width: ${getBreakpointValue(breakpoint, mergedTheme)})`
|
|
12384
|
+
};
|
|
12385
|
+
}
|
|
12234
12386
|
export {
|
|
12235
|
-
|
|
12387
|
+
Tabs as $,
|
|
12236
12388
|
ActionIcon as A,
|
|
12237
12389
|
Box as B,
|
|
12238
12390
|
Card as C,
|
|
12239
|
-
|
|
12240
|
-
|
|
12241
|
-
|
|
12391
|
+
ColorSwatch as D,
|
|
12392
|
+
Divider as E,
|
|
12393
|
+
Flex as F,
|
|
12242
12394
|
Group as G,
|
|
12243
|
-
|
|
12395
|
+
CheckIcon as H,
|
|
12244
12396
|
Image as I,
|
|
12245
|
-
|
|
12246
|
-
|
|
12247
|
-
|
|
12397
|
+
rem as J,
|
|
12398
|
+
Slider as K,
|
|
12399
|
+
SegmentedControl as L,
|
|
12248
12400
|
MantineContext as M,
|
|
12249
|
-
|
|
12250
|
-
|
|
12401
|
+
useDebouncedValue as N,
|
|
12402
|
+
HoverCard as O,
|
|
12251
12403
|
Paper as P,
|
|
12252
|
-
|
|
12253
|
-
|
|
12404
|
+
HoverCardTarget as Q,
|
|
12405
|
+
HoverCardDropdown as R,
|
|
12254
12406
|
Stack as S,
|
|
12255
12407
|
ThemeIcon as T,
|
|
12256
12408
|
UnstyledButton as U,
|
|
12257
|
-
|
|
12258
|
-
|
|
12259
|
-
|
|
12260
|
-
|
|
12261
|
-
|
|
12262
|
-
|
|
12409
|
+
Anchor as V,
|
|
12410
|
+
CopyButton as W,
|
|
12411
|
+
useLocalStorage as X,
|
|
12412
|
+
Spoiler as Y,
|
|
12413
|
+
Badge as Z,
|
|
12414
|
+
ButtonGroup as _,
|
|
12263
12415
|
Text as a,
|
|
12264
|
-
|
|
12265
|
-
|
|
12266
|
-
|
|
12267
|
-
|
|
12268
|
-
|
|
12269
|
-
|
|
12270
|
-
|
|
12271
|
-
|
|
12272
|
-
|
|
12273
|
-
|
|
12274
|
-
|
|
12275
|
-
|
|
12276
|
-
|
|
12277
|
-
|
|
12278
|
-
|
|
12279
|
-
|
|
12280
|
-
|
|
12281
|
-
|
|
12282
|
-
|
|
12283
|
-
|
|
12284
|
-
|
|
12285
|
-
|
|
12286
|
-
|
|
12287
|
-
|
|
12416
|
+
TabsList as a0,
|
|
12417
|
+
TabsTab as a1,
|
|
12418
|
+
TabsPanel as a2,
|
|
12419
|
+
FloatingIndicator as a3,
|
|
12420
|
+
useUncontrolled as a4,
|
|
12421
|
+
clampUseMovePosition as a5,
|
|
12422
|
+
useMove as a6,
|
|
12423
|
+
ActionIconGroup as a7,
|
|
12424
|
+
Overlay as a8,
|
|
12425
|
+
Notification as a9,
|
|
12426
|
+
Code as aa,
|
|
12427
|
+
createTheme as ab,
|
|
12428
|
+
MantineProvider as ac,
|
|
12429
|
+
useInViewport as ad,
|
|
12430
|
+
SimpleGrid as ae,
|
|
12431
|
+
useTree as af,
|
|
12432
|
+
useComputedColorScheme as ag,
|
|
12433
|
+
Tree as ah,
|
|
12434
|
+
Drawer as ai,
|
|
12435
|
+
ScrollArea as aj,
|
|
12436
|
+
Alert as ak,
|
|
12437
|
+
Select as al,
|
|
12438
|
+
ModalRoot as am,
|
|
12439
|
+
ModalOverlay as an,
|
|
12440
|
+
ModalContent as ao,
|
|
12441
|
+
ModalBody as ap,
|
|
12442
|
+
useMantineTheme as aq,
|
|
12443
|
+
useMediaQuery as ar,
|
|
12444
|
+
useDisclosure as as,
|
|
12445
|
+
LoadingOverlay as at,
|
|
12446
|
+
useCallbackRef as au,
|
|
12447
|
+
Burger as av,
|
|
12448
|
+
Loader as aw,
|
|
12288
12449
|
CardSection as b,
|
|
12289
12450
|
clsx as c,
|
|
12290
12451
|
Center as d,
|
|
12291
12452
|
Container as e,
|
|
12292
12453
|
Title as f,
|
|
12293
12454
|
Button as g,
|
|
12294
|
-
|
|
12295
|
-
|
|
12296
|
-
|
|
12297
|
-
|
|
12298
|
-
|
|
12299
|
-
|
|
12300
|
-
|
|
12301
|
-
|
|
12302
|
-
|
|
12303
|
-
|
|
12304
|
-
|
|
12305
|
-
|
|
12306
|
-
|
|
12455
|
+
useMantineStyleNonce as h,
|
|
12456
|
+
useHotkeys as i,
|
|
12457
|
+
Tooltip as j,
|
|
12458
|
+
Menu as k,
|
|
12459
|
+
MenuTarget as l,
|
|
12460
|
+
MenuDropdown as m,
|
|
12461
|
+
MenuLabel as n,
|
|
12462
|
+
MenuDivider as o,
|
|
12463
|
+
TooltipGroup as p,
|
|
12464
|
+
Space as q,
|
|
12465
|
+
MenuItem as r,
|
|
12466
|
+
Popover as s,
|
|
12467
|
+
themeToVars as t,
|
|
12307
12468
|
useMantineColorScheme as u,
|
|
12308
|
-
|
|
12309
|
-
|
|
12310
|
-
|
|
12311
|
-
|
|
12312
|
-
|
|
12469
|
+
PopoverTarget as v,
|
|
12470
|
+
PopoverDropdown as w,
|
|
12471
|
+
ScrollAreaAutosize as x,
|
|
12472
|
+
CloseButton as y,
|
|
12473
|
+
keys as z
|
|
12313
12474
|
};
|