nitro_kit 2.0.0.beta.3 → 2.0.0
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +37 -0
- data/LICENSE +21 -28
- data/README.md +10 -9
- data/app/assets/stylesheets/nitro_kit.css +1660 -1401
- data/app/components/nitro_kit/accordion.rb +1 -13
- data/app/components/nitro_kit/app_navigation.rb +0 -12
- data/app/components/nitro_kit/app_shell.rb +5 -11
- data/app/components/nitro_kit/appearance_picker.rb +1 -7
- data/app/components/nitro_kit/combobox.rb +366 -21
- data/app/components/nitro_kit/command_palette.rb +7 -20
- data/app/components/nitro_kit/details_table.rb +5 -11
- data/app/components/nitro_kit/dropzone.rb +3 -15
- data/app/components/nitro_kit/field.rb +20 -2
- data/app/components/nitro_kit/pagination.rb +2 -8
- data/app/components/nitro_kit/settings_layout.rb +3 -9
- data/app/javascript/controllers/nk/app_shell_controller.js +2 -2
- data/app/javascript/controllers/nk/combobox_controller.js +308 -22
- data/app/javascript/controllers/nk/combobox_remote.js +70 -0
- data/app/javascript/controllers/nk/dropzone_controller.js +2 -2
- data/app/javascript/controllers/nk/tabs_controller.js +2 -2
- data/config/locales/en.yml +3 -0
- data/docs/agent_guide.md +43 -13
- data/docs/component_contracts.md +90 -61
- data/docs/customization.md +173 -35
- data/docs/initialization_prompt.md +4 -5
- data/docs/migration_1_to_2.md +10 -8
- data/docs/patterns/application_foundation.md +5 -0
- data/docs/patterns/composition.md +61 -0
- data/docs/patterns/crud_resource.md +5 -0
- data/docs/patterns/inset_workspace.md +21 -22
- data/docs/patterns/resource_form.md +65 -0
- data/docs/rails_integration.md +214 -2
- data/lib/generators/nitro_kit/install_generator.rb +5 -4
- data/lib/nitro_kit/installation.rb +327 -68
- data/lib/nitro_kit/migration_inventory.rb +18 -3
- data/lib/nitro_kit/version.rb +1 -1
- data/lib/rails/commands/nitro_kit/nitro_kit_command.rb +2 -2
- data/patterns/README.md +21 -0
- data/patterns/account-settings/files/app/components/ui/account_settings/account_deletion.rb +72 -0
- data/patterns/account-settings/files/app/components/ui/account_settings/base.rb +44 -0
- data/patterns/account-settings/files/app/components/ui/account_settings/page.rb +57 -0
- data/patterns/account-settings/files/app/components/ui/account_settings/preferences.rb +68 -0
- data/patterns/account-settings/files/app/components/ui/account_settings/profile.rb +86 -0
- data/patterns/account-settings/files/app/components/ui/account_settings/security.rb +69 -0
- data/patterns/account-settings/files/app/components/ui/account_settings/sessions.rb +86 -0
- data/patterns/account-settings/files/app/controllers/settings/account_deletions_controller.rb +35 -0
- data/patterns/account-settings/files/app/controllers/settings/base_controller.rb +12 -0
- data/patterns/account-settings/files/app/controllers/settings/other_sessions_controller.rb +8 -0
- data/patterns/account-settings/files/app/controllers/settings/preferences_controller.rb +27 -0
- data/patterns/account-settings/files/app/controllers/settings/profiles_controller.rb +20 -0
- data/patterns/account-settings/files/app/controllers/settings/securities_controller.rb +37 -0
- data/patterns/account-settings/files/app/controllers/settings/sessions_controller.rb +31 -0
- data/patterns/account-settings/files/app/models/account_settings/account_closure.rb +33 -0
- data/patterns/account-settings/files/app/models/account_settings/password_change.rb +42 -0
- data/patterns/account-settings/files/app/models/account_settings/session_summary.rb +45 -0
- data/patterns/account-settings/files/app/models/concerns/user/account_configurable.rb +18 -0
- data/patterns/account-settings/files/config/routes/account_settings.rb +10 -0
- data/patterns/account-settings/files/db/migrate/20260731020000_add_account_settings.rb +27 -0
- data/patterns/account-settings/files/test/controllers/settings/account_settings_flow_test.rb +84 -0
- data/patterns/account-settings/files/test/models/account_settings/password_change_test.rb +40 -0
- data/patterns/account-settings/files/test/system/account_settings_test.rb +52 -0
- data/patterns/account-settings/item.yml +4 -0
- data/patterns/account-settings/pattern.md +44 -0
- data/patterns/application-shell/files/app/assets/stylesheets/ui/application_shell.css +267 -0
- data/patterns/application-shell/files/app/components/ui/application_shell.rb +184 -0
- data/patterns/application-shell/item.yml +4 -0
- data/patterns/application-shell/pattern.md +110 -0
- data/patterns/authentication/files/app/components/ui/authentication/base.rb +11 -0
- data/patterns/authentication/files/app/components/ui/authentication/page.rb +53 -0
- data/patterns/authentication/files/app/components/ui/email_verifications/show.rb +62 -0
- data/patterns/authentication/files/app/components/ui/password_resets/new.rb +65 -0
- data/patterns/authentication/files/app/components/ui/passwords/edit.rb +72 -0
- data/patterns/authentication/files/app/components/ui/sessions/new.rb +58 -0
- data/patterns/authentication/files/app/components/ui/verification_emails/new.rb +59 -0
- data/patterns/authentication/files/app/controllers/concerns/authentication.rb +66 -0
- data/patterns/authentication/files/app/controllers/concerns/safe_return_navigation.rb +37 -0
- data/patterns/authentication/files/app/controllers/email_verifications_controller.rb +39 -0
- data/patterns/authentication/files/app/controllers/password_resets_controller.rb +33 -0
- data/patterns/authentication/files/app/controllers/passwords_controller.rb +51 -0
- data/patterns/authentication/files/app/controllers/sessions_controller.rb +42 -0
- data/patterns/authentication/files/app/controllers/verification_emails_controller.rb +33 -0
- data/patterns/authentication/files/app/jobs/authentication_delivery_job.rb +17 -0
- data/patterns/authentication/files/app/mailers/authentication_mailer.rb +15 -0
- data/patterns/authentication/files/app/models/authentication/credentials.rb +16 -0
- data/patterns/authentication/files/app/models/authentication/email_request.rb +17 -0
- data/patterns/authentication/files/app/models/concerns/user/email_verifiable.rb +40 -0
- data/patterns/authentication/files/app/models/session.rb +5 -0
- data/patterns/authentication/files/app/views/authentication_mailer/email_verification.html.erb +3 -0
- data/patterns/authentication/files/app/views/authentication_mailer/email_verification.text.erb +5 -0
- data/patterns/authentication/files/app/views/authentication_mailer/password_reset.html.erb +3 -0
- data/patterns/authentication/files/app/views/authentication_mailer/password_reset.text.erb +5 -0
- data/patterns/authentication/files/config/routes/authentication.rb +11 -0
- data/patterns/authentication/files/db/migrate/20260731000000_add_authentication_and_recovery.rb +13 -0
- data/patterns/authentication/files/test/controllers/authentication_flow_test.rb +103 -0
- data/patterns/authentication/files/test/controllers/safe_return_navigation_test.rb +18 -0
- data/patterns/authentication/files/test/mailers/authentication_mailer_test.rb +21 -0
- data/patterns/authentication/files/test/models/user_email_verifiable_test.rb +36 -0
- data/patterns/authentication/files/test/system/authentication_flow_test.rb +23 -0
- data/patterns/authentication/item.yml +12 -0
- data/patterns/authentication/pattern.md +54 -0
- data/patterns/crud-resource/files/app/assets/stylesheets/ui/projects.css +4 -0
- data/patterns/crud-resource/files/app/components/ui/projects/form.rb +89 -0
- data/patterns/crud-resource/files/app/components/ui/projects/index.rb +161 -0
- data/patterns/crud-resource/files/app/components/ui/projects/show.rb +84 -0
- data/patterns/crud-resource/files/app/controllers/projects/archivals_controller.rb +23 -0
- data/patterns/crud-resource/files/app/controllers/projects_controller.rb +70 -0
- data/patterns/crud-resource/files/app/models/project/archival.rb +8 -0
- data/patterns/crud-resource/files/app/models/project/event.rb +12 -0
- data/patterns/crud-resource/files/app/models/project/filter.rb +41 -0
- data/patterns/crud-resource/files/app/models/project.rb +41 -0
- data/patterns/crud-resource/files/app/views/projects/edit.html.erb +19 -0
- data/patterns/crud-resource/files/app/views/projects/index.html.erb +18 -0
- data/patterns/crud-resource/files/app/views/projects/new.html.erb +16 -0
- data/patterns/crud-resource/files/app/views/projects/show.html.erb +28 -0
- data/patterns/crud-resource/files/config/routes/crud_resource.rb +7 -0
- data/patterns/crud-resource/files/db/migrate/20260720000000_create_crud_resource.rb +37 -0
- data/patterns/crud-resource/files/test/controllers/projects_controller_test.rb +64 -0
- data/patterns/crud-resource/files/test/models/project_test.rb +34 -0
- data/patterns/crud-resource/files/test/support/crud_resource_test_helpers.rb +25 -0
- data/patterns/crud-resource/files/test/system/projects_crud_test.rb +87 -0
- data/patterns/crud-resource/item.yml +6 -0
- data/patterns/crud-resource/pattern.md +48 -0
- data/patterns/file-uploads/files/app/assets/stylesheets/ui/uploads.css +133 -0
- data/patterns/file-uploads/files/app/components/ui/uploads/base.rb +30 -0
- data/patterns/file-uploads/files/app/components/ui/uploads/index.rb +188 -0
- data/patterns/file-uploads/files/app/components/ui/uploads/page.rb +33 -0
- data/patterns/file-uploads/files/app/controllers/uploads/base_controller.rb +29 -0
- data/patterns/file-uploads/files/app/controllers/uploads/direct_uploads_controller.rb +55 -0
- data/patterns/file-uploads/files/app/controllers/uploads/retries_controller.rb +14 -0
- data/patterns/file-uploads/files/app/controllers/uploads_controller.rb +40 -0
- data/patterns/file-uploads/files/app/jobs/upload_blob_cleanup_job.rb +9 -0
- data/patterns/file-uploads/files/app/jobs/upload_processing_job.rb +10 -0
- data/patterns/file-uploads/files/app/jobs/upload_repair_job.rb +17 -0
- data/patterns/file-uploads/files/app/models/concerns/team/uploadable.rb +9 -0
- data/patterns/file-uploads/files/app/models/upload.rb +295 -0
- data/patterns/file-uploads/files/config/recurring/uploads.yml +7 -0
- data/patterns/file-uploads/files/config/routes/uploads.rb +5 -0
- data/patterns/file-uploads/files/db/migrate/20260802000000_add_file_uploads.rb +30 -0
- data/patterns/file-uploads/files/test/controllers/uploads_flow_test.rb +77 -0
- data/patterns/file-uploads/files/test/fixtures/files/workspace.png.base64 +1 -0
- data/patterns/file-uploads/files/test/fixtures/uploads.yml +17 -0
- data/patterns/file-uploads/files/test/models/upload_test.rb +55 -0
- data/patterns/file-uploads/files/test/system/file_uploads_test.rb +30 -0
- data/patterns/file-uploads/item.yml +4 -0
- data/patterns/file-uploads/pattern.md +71 -0
- data/patterns/nitro-kit-1-upgrade/files/docs/nitro_kit_1_upgrade.md +57 -0
- data/patterns/nitro-kit-1-upgrade/item.yml +4 -0
- data/patterns/nitro-kit-1-upgrade/pattern.md +30 -0
- data/patterns/onboarding/files/app/assets/stylesheets/ui/onboarding.css +55 -0
- data/patterns/onboarding/files/app/components/ui/onboarding/base.rb +11 -0
- data/patterns/onboarding/files/app/components/ui/onboarding/branch_form.rb +36 -0
- data/patterns/onboarding/files/app/components/ui/onboarding/details_form.rb +67 -0
- data/patterns/onboarding/files/app/components/ui/onboarding/invitation_plan_form.rb +48 -0
- data/patterns/onboarding/files/app/components/ui/onboarding/page.rb +75 -0
- data/patterns/onboarding/files/app/components/ui/onboarding/review.rb +51 -0
- data/patterns/onboarding/files/app/components/ui/onboarding/show.rb +32 -0
- data/patterns/onboarding/files/app/controllers/concerns/requires_finished_onboarding.rb +14 -0
- data/patterns/onboarding/files/app/controllers/onboarding/base_controller.rb +30 -0
- data/patterns/onboarding/files/app/controllers/onboarding/branches_controller.rb +16 -0
- data/patterns/onboarding/files/app/controllers/onboarding/completions_controller.rb +13 -0
- data/patterns/onboarding/files/app/controllers/onboarding/details_controller.rb +16 -0
- data/patterns/onboarding/files/app/controllers/onboarding/invitation_plans_controller.rb +20 -0
- data/patterns/onboarding/files/app/controllers/onboardings_controller.rb +7 -0
- data/patterns/onboarding/files/app/jobs/onboarding_invitation_delivery_job.rb +15 -0
- data/patterns/onboarding/files/app/models/concerns/team/onboardable.rb +23 -0
- data/patterns/onboarding/files/app/models/onboarding/completion.rb +17 -0
- data/patterns/onboarding/files/app/models/onboarding/invitation_delivery.rb +14 -0
- data/patterns/onboarding/files/app/models/onboarding.rb +174 -0
- data/patterns/onboarding/files/config/routes/onboarding.rb +11 -0
- data/patterns/onboarding/files/db/migrate/20260731010000_create_onboarding.rb +60 -0
- data/patterns/onboarding/files/test/controllers/onboarding_flow_test.rb +62 -0
- data/patterns/onboarding/files/test/fixtures/onboarding_completions.yml +3 -0
- data/patterns/onboarding/files/test/fixtures/onboardings.yml +25 -0
- data/patterns/onboarding/files/test/jobs/onboarding_invitation_delivery_job_test.rb +18 -0
- data/patterns/onboarding/files/test/models/onboarding_test.rb +60 -0
- data/patterns/onboarding/files/test/system/onboarding_flow_test.rb +39 -0
- data/patterns/onboarding/item.yml +4 -0
- data/patterns/onboarding/pattern.md +53 -0
- data/patterns/subscription-billing/files/app/components/ui/billing/base.rb +39 -0
- data/patterns/subscription-billing/files/app/components/ui/billing/checkout_result.rb +64 -0
- data/patterns/subscription-billing/files/app/components/ui/billing/page.rb +33 -0
- data/patterns/subscription-billing/files/app/components/ui/billing/show.rb +149 -0
- data/patterns/subscription-billing/files/app/controllers/billing/base_controller.rb +16 -0
- data/patterns/subscription-billing/files/app/controllers/billing/checkouts_controller.rb +65 -0
- data/patterns/subscription-billing/files/app/controllers/billing/portals_controller.rb +18 -0
- data/patterns/subscription-billing/files/app/controllers/billing_controller.rb +17 -0
- data/patterns/subscription-billing/files/app/controllers/webhooks/stripe_events_controller.rb +21 -0
- data/patterns/subscription-billing/files/app/jobs/billing/stripe_event_job.rb +16 -0
- data/patterns/subscription-billing/files/app/jobs/billing/subscription_reconciliation_job.rb +16 -0
- data/patterns/subscription-billing/files/app/jobs/billing/subscription_reconciliation_sweep_job.rb +9 -0
- data/patterns/subscription-billing/files/app/models/billing/checkout.rb +58 -0
- data/patterns/subscription-billing/files/app/models/billing/plan.rb +19 -0
- data/patterns/subscription-billing/files/app/models/billing/stripe_event.rb +73 -0
- data/patterns/subscription-billing/files/app/models/billing/subscription.rb +106 -0
- data/patterns/subscription-billing/files/app/models/concerns/team/billable.rb +36 -0
- data/patterns/subscription-billing/files/config/initializers/stripe.rb +29 -0
- data/patterns/subscription-billing/files/config/routes/subscription_billing.rb +10 -0
- data/patterns/subscription-billing/files/db/migrate/20260801000000_add_subscription_billing.rb +61 -0
- data/patterns/subscription-billing/files/test/controllers/billing_flow_test.rb +60 -0
- data/patterns/subscription-billing/files/test/models/billing/subscription_test.rb +40 -0
- data/patterns/subscription-billing/files/test/system/subscription_billing_test.rb +28 -0
- data/patterns/subscription-billing/item.yml +4 -0
- data/patterns/subscription-billing/pattern.md +59 -0
- data/patterns/team-management/files/app/components/ui/invitations/acceptance.rb +33 -0
- data/patterns/team-management/files/app/components/ui/teams/index.rb +87 -0
- data/patterns/team-management/files/app/components/ui/teams/invitation_form.rb +51 -0
- data/patterns/team-management/files/app/components/ui/teams/member_form.rb +78 -0
- data/patterns/team-management/files/app/components/ui/teams/members.rb +125 -0
- data/patterns/team-management/files/app/controllers/invitations/acceptances_controller.rb +29 -0
- data/patterns/team-management/files/app/controllers/teams/base_controller.rb +18 -0
- data/patterns/team-management/files/app/controllers/teams/invitations_controller.rb +42 -0
- data/patterns/team-management/files/app/controllers/teams/memberships_controller.rb +53 -0
- data/patterns/team-management/files/app/controllers/teams_controller.rb +30 -0
- data/patterns/team-management/files/app/mailers/team_invitation_mailer.rb +10 -0
- data/patterns/team-management/files/app/models/concerns/current_team.rb +13 -0
- data/patterns/team-management/files/app/models/concerns/user_teams.rb +37 -0
- data/patterns/team-management/files/app/models/invitation.rb +41 -0
- data/patterns/team-management/files/app/models/membership.rb +45 -0
- data/patterns/team-management/files/app/models/team.rb +25 -0
- data/patterns/team-management/files/app/views/invitations/acceptances/show.html.erb +1 -0
- data/patterns/team-management/files/app/views/team_invitation_mailer/invite.html.erb +10 -0
- data/patterns/team-management/files/app/views/team_invitation_mailer/invite.text.erb +7 -0
- data/patterns/team-management/files/app/views/teams/index.html.erb +15 -0
- data/patterns/team-management/files/app/views/teams/invitations/new.html.erb +22 -0
- data/patterns/team-management/files/app/views/teams/memberships/edit.html.erb +22 -0
- data/patterns/team-management/files/app/views/teams/memberships/index.html.erb +20 -0
- data/patterns/team-management/files/config/routes/team_management.rb +11 -0
- data/patterns/team-management/files/db/migrate/20260717000000_create_team_management.rb +31 -0
- data/patterns/team-management/files/test/models/invitation_test.rb +28 -0
- data/patterns/team-management/files/test/models/membership_test.rb +29 -0
- data/patterns/team-management/files/test/models/team_test.rb +31 -0
- data/patterns/team-management/files/test/support/team_management_test_helpers.rb +22 -0
- data/patterns/team-management/item.yml +4 -0
- data/patterns/team-management/pattern.md +47 -0
- data/patterns/webhook-deliveries/files/app/assets/stylesheets/ui/webhooks.css +179 -0
- data/patterns/webhook-deliveries/files/app/components/ui/webhooks/base.rb +38 -0
- data/patterns/webhook-deliveries/files/app/components/ui/webhooks/delivery.rb +160 -0
- data/patterns/webhook-deliveries/files/app/components/ui/webhooks/endpoint.rb +149 -0
- data/patterns/webhook-deliveries/files/app/components/ui/webhooks/form.rb +75 -0
- data/patterns/webhook-deliveries/files/app/components/ui/webhooks/index.rb +142 -0
- data/patterns/webhook-deliveries/files/app/components/ui/webhooks/page.rb +33 -0
- data/patterns/webhook-deliveries/files/app/components/ui/webhooks/secret.rb +38 -0
- data/patterns/webhook-deliveries/files/app/controllers/webhook_deliveries/replays_controller.rb +13 -0
- data/patterns/webhook-deliveries/files/app/controllers/webhook_deliveries_controller.rb +7 -0
- data/patterns/webhook-deliveries/files/app/controllers/webhook_endpoints/secrets_controller.rb +41 -0
- data/patterns/webhook-deliveries/files/app/controllers/webhook_endpoints_controller.rb +67 -0
- data/patterns/webhook-deliveries/files/app/controllers/webhooks/base_controller.rb +15 -0
- data/patterns/webhook-deliveries/files/app/jobs/webhook_delivery_job.rb +9 -0
- data/patterns/webhook-deliveries/files/app/jobs/webhook_delivery_repair_job.rb +11 -0
- data/patterns/webhook-deliveries/files/app/models/concerns/team/webhookable.rb +11 -0
- data/patterns/webhook-deliveries/files/app/models/webhook/attempt.rb +30 -0
- data/patterns/webhook-deliveries/files/app/models/webhook/delivery.rb +268 -0
- data/patterns/webhook-deliveries/files/app/models/webhook/endpoint.rb +58 -0
- data/patterns/webhook-deliveries/files/app/models/webhook/event.rb +98 -0
- data/patterns/webhook-deliveries/files/app/models/webhook/secret_reveal.rb +53 -0
- data/patterns/webhook-deliveries/files/app/models/webhook/signature.rb +22 -0
- data/patterns/webhook-deliveries/files/app/models/webhook/transport.rb +176 -0
- data/patterns/webhook-deliveries/files/app/views/webhook_deliveries/show.html.erb +5 -0
- data/patterns/webhook-deliveries/files/app/views/webhook_endpoints/edit.html.erb +1 -0
- data/patterns/webhook-deliveries/files/app/views/webhook_endpoints/index.html.erb +6 -0
- data/patterns/webhook-deliveries/files/app/views/webhook_endpoints/new.html.erb +1 -0
- data/patterns/webhook-deliveries/files/app/views/webhook_endpoints/secrets/new.html.erb +1 -0
- data/patterns/webhook-deliveries/files/app/views/webhook_endpoints/show.html.erb +7 -0
- data/patterns/webhook-deliveries/files/config/recurring/webhooks.yml +4 -0
- data/patterns/webhook-deliveries/files/config/routes/webhook_deliveries.rb +10 -0
- data/patterns/webhook-deliveries/files/db/migrate/20260803000000_add_webhook_deliveries.rb +126 -0
- data/patterns/webhook-deliveries/files/test/controllers/webhook_endpoints_flow_test.rb +48 -0
- data/patterns/webhook-deliveries/files/test/models/webhook/delivery_test.rb +70 -0
- data/patterns/webhook-deliveries/files/test/system/webhook_deliveries_test.rb +29 -0
- data/patterns/webhook-deliveries/item.yml +4 -0
- data/patterns/webhook-deliveries/pattern.md +120 -0
- data/plugins/nitro-kit/.codex-plugin/plugin.json +4 -4
- data/plugins/nitro-kit/skills/nitro-kit-hotwire/SKILL.md +7 -9
- data/plugins/nitro-kit/skills/nitro-kit-hotwire/agents/openai.yaml +1 -1
- data/plugins/nitro-kit/skills/nitro-kit-rails/SKILL.md +10 -9
- data/plugins/nitro-kit/skills/nitro-kit-rails/agents/openai.yaml +1 -1
- data/plugins/nitro-kit/skills/nitro-kit-ui/SKILL.md +27 -16
- data/plugins/nitro-kit/skills/nitro-kit-ui/agents/openai.yaml +1 -1
- data/src/stylesheets/nitro_kit/components/accordion.css +40 -40
- data/src/stylesheets/nitro_kit/components/alert.css +7 -6
- data/src/stylesheets/nitro_kit/components/app_navigation.css +50 -41
- data/src/stylesheets/nitro_kit/components/app_shell.css +371 -280
- data/src/stylesheets/nitro_kit/components/appearance_picker.css +38 -38
- data/src/stylesheets/nitro_kit/components/avatar.css +3 -3
- data/src/stylesheets/nitro_kit/components/avatar_stack.css +18 -18
- data/src/stylesheets/nitro_kit/components/badge.css +5 -2
- data/src/stylesheets/nitro_kit/components/button.css +57 -49
- data/src/stylesheets/nitro_kit/components/button_group.css +14 -14
- data/src/stylesheets/nitro_kit/components/checkbox.css +24 -24
- data/src/stylesheets/nitro_kit/components/checkbox_group.css +13 -13
- data/src/stylesheets/nitro_kit/components/combobox.css +152 -25
- data/src/stylesheets/nitro_kit/components/command_palette.css +59 -59
- data/src/stylesheets/nitro_kit/components/control_group.css +71 -54
- data/src/stylesheets/nitro_kit/components/details_table.css +9 -9
- data/src/stylesheets/nitro_kit/components/dialog.css +8 -12
- data/src/stylesheets/nitro_kit/components/dropdown.css +22 -26
- data/src/stylesheets/nitro_kit/components/dropzone.css +97 -100
- data/src/stylesheets/nitro_kit/components/empty_state.css +1 -0
- data/src/stylesheets/nitro_kit/components/field.css +26 -30
- data/src/stylesheets/nitro_kit/components/fieldset.css +2 -2
- data/src/stylesheets/nitro_kit/components/input.css +6 -14
- data/src/stylesheets/nitro_kit/components/layout.css +165 -165
- data/src/stylesheets/nitro_kit/components/page_header.css +3 -3
- data/src/stylesheets/nitro_kit/components/pagination.css +66 -49
- data/src/stylesheets/nitro_kit/components/pagination_bar.css +6 -6
- data/src/stylesheets/nitro_kit/components/palette.css +24 -22
- data/src/stylesheets/nitro_kit/components/progressive_image.css +38 -41
- data/src/stylesheets/nitro_kit/components/radio_button.css +19 -19
- data/src/stylesheets/nitro_kit/components/radio_button_group.css +43 -43
- data/src/stylesheets/nitro_kit/components/rich_text_area.css +4 -4
- data/src/stylesheets/nitro_kit/components/select.css +2 -2
- data/src/stylesheets/nitro_kit/components/settings_layout.css +17 -18
- data/src/stylesheets/nitro_kit/components/settings_section.css +12 -12
- data/src/stylesheets/nitro_kit/components/sheet.css +10 -10
- data/src/stylesheets/nitro_kit/components/stat_grid.css +9 -9
- data/src/stylesheets/nitro_kit/components/switch.css +23 -23
- data/src/stylesheets/nitro_kit/components/table.css +27 -27
- data/src/stylesheets/nitro_kit/components/tabs.css +32 -34
- data/src/stylesheets/nitro_kit/components/toolbar.css +6 -6
- data/src/stylesheets/nitro_kit/components/tooltip.css +26 -28
- data/src/stylesheets/nitro_kit/layers.css +2 -1
- data/src/stylesheets/nitro_kit/reset.css +9 -9
- data/src/stylesheets/nitro_kit/tailwind.css +6 -2
- data/src/stylesheets/nitro_kit/tokens.css +18 -9
- metadata +238 -2
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
:where(
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
[data-nk="settings-layout"] > [data-slot="settings-layout-navigation"],
|
|
12
|
+
[data-nk="settings-layout"] > [data-slot="settings-layout-content"]
|
|
13
|
+
) {
|
|
14
14
|
min-inline-size: 0;
|
|
15
15
|
}
|
|
16
16
|
|
|
@@ -54,43 +54,42 @@
|
|
|
54
54
|
/* Emphasis alone marks the current destination without adding a decorative
|
|
55
55
|
edge or a filled block that would outweigh the content beside it. */
|
|
56
56
|
:where(
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
57
|
+
[data-nk="settings-layout"]
|
|
58
|
+
[data-slot="settings-layout-item-link"][data-state="current"]
|
|
59
|
+
) {
|
|
60
60
|
color: var(--nk-color-foreground);
|
|
61
61
|
font-weight: var(--nk-font-weight-semibold);
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
:where(
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
65
|
+
[data-nk="settings-layout"]
|
|
66
|
+
[data-slot="settings-layout-item-link"][data-state="current"]
|
|
67
|
+
[data-slot="settings-layout-item-icon"]
|
|
68
|
+
) {
|
|
69
69
|
color: var(--nk-color-foreground);
|
|
70
70
|
}
|
|
71
71
|
|
|
72
72
|
@media (hover: hover) {
|
|
73
73
|
:where(
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
) {
|
|
74
|
+
[data-nk="settings-layout"] [data-slot="settings-layout-item-link"]:hover
|
|
75
|
+
) {
|
|
77
76
|
color: var(--nk-color-foreground);
|
|
78
77
|
background: color-mix(in oklab, var(--nk-color-muted) 60%, transparent);
|
|
79
78
|
}
|
|
80
79
|
}
|
|
81
80
|
|
|
82
81
|
:where(
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
82
|
+
[data-nk="settings-layout"]
|
|
83
|
+
[data-slot="settings-layout-item-link"]:focus-visible
|
|
84
|
+
) {
|
|
86
85
|
outline: var(--nk-focus-width) solid var(--nk-color-focus);
|
|
87
86
|
outline-offset: calc(var(--nk-focus-offset) * -1);
|
|
88
87
|
}
|
|
89
88
|
|
|
90
89
|
@media (prefers-reduced-motion: reduce) {
|
|
91
90
|
:where(
|
|
92
|
-
|
|
93
|
-
|
|
91
|
+
[data-nk="settings-layout"] [data-slot="settings-layout-item-link"]
|
|
92
|
+
) {
|
|
94
93
|
transition-duration: 0.01ms;
|
|
95
94
|
}
|
|
96
95
|
}
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
:where(
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
[data-nk="settings-section"] [data-slot="settings-section-description"]
|
|
26
|
+
) {
|
|
27
27
|
max-inline-size: var(--nk-content-lg);
|
|
28
28
|
color: var(--nk-color-muted-foreground);
|
|
29
29
|
font-size: var(--nk-text-sm);
|
|
@@ -46,18 +46,18 @@
|
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
:where(
|
|
49
|
-
|
|
50
|
-
|
|
49
|
+
[data-nk="settings-section"] > [data-slot="settings-section-form"] > form
|
|
50
|
+
) {
|
|
51
51
|
display: grid;
|
|
52
52
|
gap: calc(var(--nk-space) * 5);
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
:where(
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
56
|
+
[data-nk="settings-section"]
|
|
57
|
+
> [data-slot="settings-section-form"]
|
|
58
|
+
> form
|
|
59
|
+
> [data-nk="button"]
|
|
60
|
+
) {
|
|
61
61
|
justify-self: start;
|
|
62
62
|
}
|
|
63
63
|
|
|
@@ -75,9 +75,9 @@
|
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
:where(
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
78
|
+
[data-nk="settings-section"] > [data-slot="settings-section-status"],
|
|
79
|
+
[data-nk="settings-section"] > [data-slot="settings-section-form"]
|
|
80
|
+
) {
|
|
81
81
|
grid-column: 1;
|
|
82
82
|
}
|
|
83
83
|
}
|
|
@@ -74,30 +74,30 @@
|
|
|
74
74
|
}
|
|
75
75
|
|
|
76
76
|
:where(
|
|
77
|
-
|
|
78
|
-
|
|
77
|
+
[data-nk="sheet"][data-side="left"] > [data-slot="sheet-panel"][open]
|
|
78
|
+
) {
|
|
79
79
|
--_nk-sheet-from: calc(var(--nk-space) * -4);
|
|
80
80
|
}
|
|
81
81
|
|
|
82
82
|
:where(
|
|
83
|
-
|
|
84
|
-
|
|
83
|
+
[data-nk="sheet"][data-side="right"] > [data-slot="sheet-panel"][open]
|
|
84
|
+
) {
|
|
85
85
|
--_nk-sheet-from: calc(var(--nk-space) * 4);
|
|
86
86
|
}
|
|
87
87
|
|
|
88
88
|
/* Sides are logical, but translateX is physical; RTL flips the slide so the
|
|
89
89
|
panel still enters from its own edge. */
|
|
90
90
|
:where(
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
91
|
+
[data-nk="sheet"][data-side="left"]:dir(rtl)
|
|
92
|
+
> [data-slot="sheet-panel"][open]
|
|
93
|
+
) {
|
|
94
94
|
--_nk-sheet-from: calc(var(--nk-space) * 4);
|
|
95
95
|
}
|
|
96
96
|
|
|
97
97
|
:where(
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
98
|
+
[data-nk="sheet"][data-side="right"]:dir(rtl)
|
|
99
|
+
> [data-slot="sheet-panel"][open]
|
|
100
|
+
) {
|
|
101
101
|
--_nk-sheet-from: calc(var(--nk-space) * -4);
|
|
102
102
|
}
|
|
103
103
|
|
|
@@ -5,19 +5,19 @@
|
|
|
5
5
|
}
|
|
6
6
|
|
|
7
7
|
:where(
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
[data-nk="stat-grid"]
|
|
9
|
+
> [data-slot="stat-grid-grid"]
|
|
10
|
+
> [data-slot="stat-grid-list"]
|
|
11
|
+
) {
|
|
12
12
|
display: contents;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
:where(
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
16
|
+
[data-nk="stat-grid"]
|
|
17
|
+
> [data-slot="stat-grid-grid"]
|
|
18
|
+
> [data-slot="stat-grid-list"]
|
|
19
|
+
> [data-slot="stat-grid-stat"]
|
|
20
|
+
) {
|
|
21
21
|
display: grid;
|
|
22
22
|
align-content: start;
|
|
23
23
|
gap: calc(var(--nk-space) * 2);
|
|
@@ -34,9 +34,9 @@
|
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
:where(
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
37
|
+
[data-nk="switch"] [data-slot="switch-control"],
|
|
38
|
+
[data-nk="switch"] [data-slot="switch-track"]
|
|
39
|
+
) {
|
|
40
40
|
grid-area: 1 / 1;
|
|
41
41
|
}
|
|
42
42
|
|
|
@@ -94,28 +94,28 @@
|
|
|
94
94
|
|
|
95
95
|
@layer nitro-kit.state {
|
|
96
96
|
:where(
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
97
|
+
[data-nk="switch"]
|
|
98
|
+
[data-slot="switch-control"]:checked
|
|
99
|
+
+ [data-slot="switch-track"]
|
|
100
|
+
) {
|
|
101
101
|
background: var(--nk-color-primary);
|
|
102
102
|
border-color: var(--nk-color-primary);
|
|
103
103
|
}
|
|
104
104
|
|
|
105
105
|
:where(
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
106
|
+
[data-nk="switch"]
|
|
107
|
+
[data-slot="switch-control"]:checked
|
|
108
|
+
+ [data-slot="switch-track"]
|
|
109
|
+
> [data-slot="switch-handle"]
|
|
110
|
+
) {
|
|
111
111
|
transform: translateX(var(--_nk-switch-travel));
|
|
112
112
|
}
|
|
113
113
|
|
|
114
114
|
:where(
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
115
|
+
[data-nk="switch"]
|
|
116
|
+
[data-slot="switch-control"]:focus-visible
|
|
117
|
+
+ [data-slot="switch-track"]
|
|
118
|
+
) {
|
|
119
119
|
outline: var(--nk-focus-width) solid var(--nk-color-focus);
|
|
120
120
|
outline-offset: var(--nk-focus-offset);
|
|
121
121
|
}
|
|
@@ -130,10 +130,10 @@
|
|
|
130
130
|
destructive border stands down. `:user-valid` never matches before the user
|
|
131
131
|
touches the control, so an untouched invalid switch keeps its border. */
|
|
132
132
|
:where(
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
133
|
+
[data-nk="switch"]
|
|
134
|
+
[data-slot="switch-control"][aria-invalid="true"]:not(:user-valid)
|
|
135
|
+
+ [data-slot="switch-track"]
|
|
136
|
+
) {
|
|
137
137
|
border-color: var(--nk-color-destructive);
|
|
138
138
|
}
|
|
139
139
|
}
|
|
@@ -141,9 +141,9 @@
|
|
|
141
141
|
@media (prefers-reduced-motion: reduce) {
|
|
142
142
|
@layer nitro-kit.base {
|
|
143
143
|
:where(
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
144
|
+
[data-nk="switch"] [data-slot="switch-track"],
|
|
145
|
+
[data-nk="switch"] [data-slot="switch-handle"]
|
|
146
|
+
) {
|
|
147
147
|
transition-duration: 0.01ms;
|
|
148
148
|
}
|
|
149
149
|
}
|
|
@@ -27,9 +27,9 @@
|
|
|
27
27
|
/* min-block-size is undefined on table cells, so the 40px minimum comes
|
|
28
28
|
from padding around a single line box instead. */
|
|
29
29
|
:where(
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
30
|
+
[data-nk="table"] [data-slot="table-header"],
|
|
31
|
+
[data-nk="table"] [data-slot="table-cell"]
|
|
32
|
+
) {
|
|
33
33
|
padding-block: calc((var(--nk-control-height-md) - 1lh) / 2);
|
|
34
34
|
padding-inline: calc(var(--nk-space) * 2);
|
|
35
35
|
text-align: start;
|
|
@@ -66,25 +66,25 @@
|
|
|
66
66
|
|
|
67
67
|
@layer nitro-kit.state {
|
|
68
68
|
:where(
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
69
|
+
[data-nk="table"]
|
|
70
|
+
[data-slot="table-header"]:is(
|
|
71
|
+
[aria-sort="ascending"],
|
|
72
|
+
[aria-sort="descending"]
|
|
73
|
+
)
|
|
74
|
+
[data-slot="table-sort"]
|
|
75
|
+
) {
|
|
76
76
|
color: var(--nk-color-foreground);
|
|
77
77
|
font-weight: var(--nk-font-weight-semibold);
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
:where(
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
81
|
+
[data-nk="table"]
|
|
82
|
+
[data-slot="table-header"]:is(
|
|
83
|
+
[aria-sort="ascending"],
|
|
84
|
+
[aria-sort="descending"]
|
|
85
|
+
)
|
|
86
|
+
[data-slot="table-sort-indicator"]
|
|
87
|
+
) {
|
|
88
88
|
color: var(--nk-color-primary);
|
|
89
89
|
}
|
|
90
90
|
|
|
@@ -94,10 +94,10 @@
|
|
|
94
94
|
}
|
|
95
95
|
|
|
96
96
|
:where(
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
97
|
+
[data-nk="table"]
|
|
98
|
+
[data-slot="table-sort"]:hover
|
|
99
|
+
[data-slot="table-sort-indicator"]
|
|
100
|
+
) {
|
|
101
101
|
color: var(--nk-color-muted-foreground);
|
|
102
102
|
}
|
|
103
103
|
}
|
|
@@ -110,15 +110,15 @@
|
|
|
110
110
|
|
|
111
111
|
@layer nitro-kit.compound {
|
|
112
112
|
:where(
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
113
|
+
[data-nk="table"] [data-slot="table-header"][data-align="center"],
|
|
114
|
+
[data-nk="table"] [data-slot="table-cell"][data-align="center"]
|
|
115
|
+
) {
|
|
116
116
|
text-align: center;
|
|
117
117
|
}
|
|
118
118
|
:where(
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
119
|
+
[data-nk="table"] [data-slot="table-header"][data-align="right"],
|
|
120
|
+
[data-nk="table"] [data-slot="table-cell"][data-align="right"]
|
|
121
|
+
) {
|
|
122
122
|
font-variant-numeric: tabular-nums;
|
|
123
123
|
text-align: right;
|
|
124
124
|
}
|
|
@@ -51,8 +51,8 @@
|
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
:where(
|
|
54
|
-
|
|
55
|
-
|
|
54
|
+
[data-nk="tabs"][data-orientation="vertical"] > [data-slot="tabs-list"]
|
|
55
|
+
) {
|
|
56
56
|
flex-direction: column;
|
|
57
57
|
grid-column: 1;
|
|
58
58
|
grid-row: 1;
|
|
@@ -63,26 +63,26 @@
|
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
:where(
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
66
|
+
[data-nk="tabs"][data-orientation="vertical"]
|
|
67
|
+
> [data-slot="tabs-list"]
|
|
68
|
+
> [data-slot="tabs-tab"]
|
|
69
|
+
) {
|
|
70
70
|
text-align: start;
|
|
71
71
|
border-block-end: 0;
|
|
72
72
|
border-inline-end: var(--nk-focus-width) solid transparent;
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
:where(
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
76
|
+
[data-nk="tabs"][data-orientation="vertical"]
|
|
77
|
+
> [data-slot="tabs-list"]
|
|
78
|
+
> [data-slot="tabs-tab"][aria-selected="true"]
|
|
79
|
+
) {
|
|
80
80
|
border-inline-end-color: var(--nk-color-primary);
|
|
81
81
|
}
|
|
82
82
|
|
|
83
83
|
:where(
|
|
84
|
-
|
|
85
|
-
|
|
84
|
+
[data-nk="tabs"][data-orientation="vertical"] > [data-slot="tabs-panel"]
|
|
85
|
+
) {
|
|
86
86
|
grid-column: 2;
|
|
87
87
|
grid-row: 1;
|
|
88
88
|
padding-block-start: calc(var(--nk-space) * 2);
|
|
@@ -92,45 +92,43 @@
|
|
|
92
92
|
@layer nitro-kit.state {
|
|
93
93
|
@media (hover: hover) {
|
|
94
94
|
:where(
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
95
|
+
[data-nk="tabs"]
|
|
96
|
+
> [data-slot="tabs-list"]
|
|
97
|
+
> [data-slot="tabs-tab"]:hover:not(:disabled)
|
|
98
|
+
) {
|
|
99
99
|
color: var(--nk-color-foreground);
|
|
100
100
|
}
|
|
101
101
|
}
|
|
102
102
|
|
|
103
103
|
:where(
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
104
|
+
[data-nk="tabs"]
|
|
105
|
+
> [data-slot="tabs-list"]
|
|
106
|
+
> [data-slot="tabs-tab"][aria-selected="true"]
|
|
107
|
+
) {
|
|
108
108
|
color: var(--nk-color-foreground);
|
|
109
109
|
border-block-end-color: var(--nk-color-primary);
|
|
110
110
|
}
|
|
111
111
|
|
|
112
112
|
:where(
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
113
|
+
[data-nk="tabs"][data-orientation="vertical"]
|
|
114
|
+
> [data-slot="tabs-list"]
|
|
115
|
+
> [data-slot="tabs-tab"][aria-selected="true"]
|
|
116
|
+
) {
|
|
117
117
|
border-block-end-color: transparent;
|
|
118
118
|
}
|
|
119
119
|
|
|
120
120
|
:where(
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
121
|
+
[data-nk="tabs"]
|
|
122
|
+
> [data-slot="tabs-list"]
|
|
123
|
+
> [data-slot="tabs-tab"]:focus-visible
|
|
124
|
+
) {
|
|
125
125
|
outline: var(--nk-focus-width) solid var(--nk-color-focus);
|
|
126
126
|
outline-offset: calc(var(--nk-focus-offset) * -1);
|
|
127
127
|
}
|
|
128
128
|
|
|
129
129
|
:where(
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
> [data-slot="tabs-tab"]:disabled
|
|
133
|
-
) {
|
|
130
|
+
[data-nk="tabs"] > [data-slot="tabs-list"] > [data-slot="tabs-tab"]:disabled
|
|
131
|
+
) {
|
|
134
132
|
color: var(--nk-color-muted-foreground);
|
|
135
133
|
cursor: not-allowed;
|
|
136
134
|
opacity: var(--nk-disabled-opacity);
|
|
@@ -138,8 +136,8 @@
|
|
|
138
136
|
|
|
139
137
|
@media (prefers-reduced-motion: reduce) {
|
|
140
138
|
:where(
|
|
141
|
-
|
|
142
|
-
|
|
139
|
+
[data-nk="tabs"] > [data-slot="tabs-list"] > [data-slot="tabs-tab"]
|
|
140
|
+
) {
|
|
143
141
|
transition-duration: 0.01ms;
|
|
144
142
|
}
|
|
145
143
|
}
|
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
:where(
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
[data-nk="toolbar"] > [data-slot="toolbar-leading"],
|
|
13
|
+
[data-nk="toolbar"] > [data-slot="toolbar-trailing"]
|
|
14
|
+
) {
|
|
15
15
|
display: flex;
|
|
16
16
|
min-inline-size: 0;
|
|
17
17
|
/* Regions never exceed the toolbar, so nested content such as a
|
|
@@ -30,9 +30,9 @@
|
|
|
30
30
|
/* Application content in a region is a flex item; without this a heading
|
|
31
31
|
holding one long word keeps its min-content width and widens the page. */
|
|
32
32
|
:where(
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
33
|
+
[data-nk="toolbar"] > [data-slot="toolbar-leading"] > *,
|
|
34
|
+
[data-nk="toolbar"] > [data-slot="toolbar-trailing"] > *
|
|
35
|
+
) {
|
|
36
36
|
min-inline-size: 0;
|
|
37
37
|
}
|
|
38
38
|
}
|
|
@@ -40,70 +40,68 @@
|
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
:where(
|
|
43
|
-
|
|
44
|
-
|
|
43
|
+
[data-nk="tooltip"][data-placement="top"] > [data-slot="tooltip-content"]
|
|
44
|
+
) {
|
|
45
45
|
inset-block-end: calc(100% + (var(--nk-space) * 2));
|
|
46
46
|
inset-inline-start: 50%;
|
|
47
47
|
transform: translateX(-50%);
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
:where(
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
51
|
+
[data-nk="tooltip"][data-placement="top"]
|
|
52
|
+
> [data-slot="tooltip-content"]::before
|
|
53
|
+
) {
|
|
54
54
|
inset-block-start: 100%;
|
|
55
55
|
inset-inline: 0;
|
|
56
56
|
block-size: calc(var(--nk-space) * 2);
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
:where(
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
) {
|
|
60
|
+
[data-nk="tooltip"][data-placement="right"] > [data-slot="tooltip-content"]
|
|
61
|
+
) {
|
|
63
62
|
inset-block-start: 50%;
|
|
64
63
|
inset-inline-start: calc(100% + (var(--nk-space) * 2));
|
|
65
64
|
transform: translateY(-50%);
|
|
66
65
|
}
|
|
67
66
|
|
|
68
67
|
:where(
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
68
|
+
[data-nk="tooltip"][data-placement="right"]
|
|
69
|
+
> [data-slot="tooltip-content"]::before
|
|
70
|
+
) {
|
|
72
71
|
inset-block: 0;
|
|
73
72
|
inset-inline-end: 100%;
|
|
74
73
|
inline-size: calc(var(--nk-space) * 2);
|
|
75
74
|
}
|
|
76
75
|
|
|
77
76
|
:where(
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
) {
|
|
77
|
+
[data-nk="tooltip"][data-placement="bottom"] > [data-slot="tooltip-content"]
|
|
78
|
+
) {
|
|
81
79
|
inset-block-start: calc(100% + (var(--nk-space) * 2));
|
|
82
80
|
inset-inline-start: 50%;
|
|
83
81
|
transform: translateX(-50%);
|
|
84
82
|
}
|
|
85
83
|
|
|
86
84
|
:where(
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
85
|
+
[data-nk="tooltip"][data-placement="bottom"]
|
|
86
|
+
> [data-slot="tooltip-content"]::before
|
|
87
|
+
) {
|
|
90
88
|
inset-block-end: 100%;
|
|
91
89
|
inset-inline: 0;
|
|
92
90
|
block-size: calc(var(--nk-space) * 2);
|
|
93
91
|
}
|
|
94
92
|
|
|
95
93
|
:where(
|
|
96
|
-
|
|
97
|
-
|
|
94
|
+
[data-nk="tooltip"][data-placement="left"] > [data-slot="tooltip-content"]
|
|
95
|
+
) {
|
|
98
96
|
inset-block-start: 50%;
|
|
99
97
|
inset-inline-end: calc(100% + (var(--nk-space) * 2));
|
|
100
98
|
transform: translateY(-50%);
|
|
101
99
|
}
|
|
102
100
|
|
|
103
101
|
:where(
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
102
|
+
[data-nk="tooltip"][data-placement="left"]
|
|
103
|
+
> [data-slot="tooltip-content"]::before
|
|
104
|
+
) {
|
|
107
105
|
inset-block: 0;
|
|
108
106
|
inset-inline-start: 100%;
|
|
109
107
|
inline-size: calc(var(--nk-space) * 2);
|
|
@@ -112,9 +110,9 @@
|
|
|
112
110
|
|
|
113
111
|
@layer nitro-kit.state {
|
|
114
112
|
:where(
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
113
|
+
[data-nk="tooltip"]:not([data-dismissed]):focus-within
|
|
114
|
+
> [data-slot="tooltip-content"]
|
|
115
|
+
) {
|
|
118
116
|
display: block;
|
|
119
117
|
visibility: visible;
|
|
120
118
|
opacity: 1;
|
|
@@ -126,9 +124,9 @@
|
|
|
126
124
|
|
|
127
125
|
@media (hover: hover) {
|
|
128
126
|
:where(
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
127
|
+
[data-nk="tooltip"]:not([data-dismissed]):hover
|
|
128
|
+
> [data-slot="tooltip-content"]
|
|
129
|
+
) {
|
|
132
130
|
display: block;
|
|
133
131
|
visibility: visible;
|
|
134
132
|
opacity: 1;
|